From 3f2ec05d1b884c31eae83f5fd5151b8eff5a453c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=9F=E8=B4=A4?= Date: Mon, 8 Jan 2024 14:25:56 +0800 Subject: [PATCH] Updates --- 1030.4f527266.async.js | 1 - 1366.b69e60db.async.js | 11 + 139.47d4caf0.async.js | 78 + 1787.9bb047b6.async.js | 12 + 1807.ca998b8f.async.js | 12 - 1914.7e360ee4.async.js | 1 - 215.9d995194.async.js | 3 - 2460.32f6ceb2.async.js | 10 + 2723.a59f0434.async.js | 1 - 2978.5afab472.async.js | 71 + 3049.c9102e77.async.js | 1 - 3188.8bf5a5ee.async.js | 1 + 3486.105c7c3f.async.js | 9 + 3633.0b3c6ef9.async.js | 7561 ----------------- 3930.6f891e88.async.js | 1 + 3960.7f543261.async.js | 10 - 3994.761443f5.async.js | 10 + 404.html | 4 +- 4118.83129dcd.async.js | 81 + 4154.d5769604.async.js | 1 - 4156.0679a40a.async.js | 2 + 4462.314aca21.async.js | 10 - 4587.d08ff5a6.async.js | 1 + 4629.172abe56.async.js | 1 + 4767.6e1e2f14.async.js | 1 - 5095.67961338.async.js | 3 - 5130.1b4858db.async.js | 1 + 546.790bf438.async.js | 78 - 5480.87196696.async.js | 40 - 5570.e4d2d4cd.async.js | 82 - 5743.6c627531.async.js | 10 + 5894.7e03ab68.async.js | 58 + 5911.ef2ef75b.async.js | 1 + 5922.af6d4b93.async.js | 40 + 622.3bf24976.async.js | 3 + 6375.0741f419.async.js | 1 + 6642.b17e39c1.async.js | 1 - 6774.00363424.async.js | 1 - ...6053660b.async.js => 692.447572cf.async.js | 8 +- 6928.8ffafeda.async.js | 1 - 701.15814a81.async.js | 2 - 7196.5d32e773.async.js | 8 - 7381.3bbb23bc.async.js | 10 - 7564.fb7c4ef7.async.js | 71 - 7609.d9008f64.async.js | 10 - 7688.b8bdde0d.async.js | 9 - 7919.5efdbd9a.async.js | 10 + 8178.f567e559.async.js | 1 - ...81935fb.async.js => 8283.8dbb8a4d.async.js | 4 +- 8307.686f4719.async.js | 6646 +++++++++++++++ 8366.180e1668.async.js | 10 + 8782.51faed84.async.js | 1 + 8912.7a51fc1f.async.js | 10 - 9146.1c9ee707.async.js | 8 + 9148.735e7fde.async.js | 3 + 9217.0e815c5b.async.js | 108 - 9262.f0286eaa.async.js | 1 + 9295.2fcd0b6c.async.js | 17 - 9328.876be29a.async.js | 21 + 9336.14d62ef2.async.js | 58 - 9555.00867e63.async.js | 107 + 9813.a403c862.async.js | 1 + 9906.e4b73fe6.async.js | 11 - account/center/index.html | 13 + account/index.html | 13 + account/settings/index.html | 13 + dashboard/analysis/index.html | 13 + dashboard/index.html | 13 + dashboard/monitor/index.html | 13 + dashboard/workplace/index.html | 13 + exception/403/index.html | 13 + exception/404/index.html | 13 + exception/500/index.html | 13 + exception/index.html | 13 + form/advanced-form/index.html | 13 + form/basic-form/index.html | 13 + form/index.html | 13 + form/step-form/index.html | 13 + index.html | 4 +- list/basic-list/index.html | 13 + list/card-list/index.html | 13 + list/index.html | 13 + list/search/applications/index.html | 13 + list/search/articles/index.html | 13 + list/search/index.html | 13 + list/search/projects/index.html | 13 + list/table-list/index.html | 13 + p__404.9275b5a6.async.js | 1 + p__404.d7494e27.async.js | 1 - p__account__center__index.064410af.async.js | 1 + p__account__center__index.c221b05c.async.js | 1 - p__account__settings__index.2a06c081.async.js | 1 + p__account__settings__index.bd56c1b7.async.js | 1 - ...shboard__analysis__index.edae6d06.async.js | 1 - ...shboard__analysis__index.fa730184.async.js | 1 + ...ashboard__monitor__index.3ded6df3.async.js | 1 - ...ashboard__monitor__index.e7a18b3d.async.js | 1 + ...hboard__workplace__index.4d303978.async.js | 1 + ...hboard__workplace__index.b715f6d4.async.js | 1 - p__exception__403__index.24d0eb0f.async.js | 1 - p__exception__403__index.ebe8bea0.async.js | 1 + p__exception__404__index.963c3e28.async.js | 1 + p__exception__404__index.e8b5e5fb.async.js | 1 - p__exception__500__index.913ed999.async.js | 1 + p__exception__500__index.f53cc9c5.async.js | 1 - ...rm__advanced-form__index.67d0a6c7.async.js | 1 - ...rm__advanced-form__index.adb4c197.async.js | 1 + p__form__basic-form__index.3d3a406a.async.js | 1 + p__form__basic-form__index.5666ede1.async.js | 1 - p__form__step-form__index.2e9ac0c7.async.js | 1 - p__form__step-form__index.8de27b63.async.js | 1 + p__list__basic-list__index.b7f4cabb.async.js | 1 - p__list__basic-list__index.d50ca99e.async.js | 1 + p__list__card-list__index.099d8041.async.js | 1 - p__list__card-list__index.f311db83.async.js | 1 + ...rch__applications__index.2d3323fa.async.js | 1 + ...rch__applications__index.ca9c1698.async.js | 1 - ..._search__articles__index.2602d53d.async.js | 1 + ..._search__articles__index.81f38a72.async.js | 1 - p__list__search__index.cadd0504.async.js | 1 - p__list__search__index.cc890783.async.js | 1 + ..._search__projects__index.76ebd307.async.js | 1 - ..._search__projects__index.918a1f83.async.js | 1 + p__profile__advanced__index.63c318e3.async.js | 1 - p__profile__advanced__index.b867d585.async.js | 1 + p__profile__basic__index.3aa436f5.async.js | 1 + p__profile__basic__index.96d9be29.async.js | 1 - ...> p__result__fail__index.6170b550.async.js | 4 +- p__result__success__index.0e68e42d.async.js | 10 - p__result__success__index.2124de55.async.js | 10 + p__table-list__index.80e3a8ed.async.js | 1 - p__table-list__index.a94a8218.async.js | 1 + p__user__login__index.3e66229c.async.js | 1 + p__user__login__index.d660a102.async.js | 1 - ...__register-result__index.85636c36.async.js | 1 - ...__register-result__index.f8aedd4b.async.js | 1 + p__user__register__index.22ccd76e.async.js | 1 + p__user__register__index.a4115c6a.async.js | 1 - profile/advanced/index.html | 13 + profile/basic/index.html | 13 + profile/index.html | 13 + result/fail/index.html | 13 + result/index.html | 13 + result/success/index.html | 13 + t__plugin-layout__Layout.05b79e69.async.js | 1 + ...__plugin-layout__Layout.6cae69f5.chunk.css | 2 +- t__plugin-layout__Layout.700a6c97.async.js | 1 - umi.5b7cd6ca.js | 374 - umi.91c13efd.css | 1 + umi.92e3357f.css | 1 - umi.c7e117e5.js | 373 + user/index.html | 13 + user/login/index.html | 13 + user/register-result/index.html | 13 + user/register/index.html | 13 + 155 files changed, 8061 insertions(+), 8546 deletions(-) delete mode 100644 1030.4f527266.async.js create mode 100644 1366.b69e60db.async.js create mode 100644 139.47d4caf0.async.js create mode 100644 1787.9bb047b6.async.js delete mode 100644 1807.ca998b8f.async.js delete mode 100644 1914.7e360ee4.async.js delete mode 100644 215.9d995194.async.js create mode 100644 2460.32f6ceb2.async.js delete mode 100644 2723.a59f0434.async.js create mode 100644 2978.5afab472.async.js delete mode 100644 3049.c9102e77.async.js create mode 100644 3188.8bf5a5ee.async.js create mode 100644 3486.105c7c3f.async.js delete mode 100644 3633.0b3c6ef9.async.js create mode 100644 3930.6f891e88.async.js delete mode 100644 3960.7f543261.async.js create mode 100644 3994.761443f5.async.js create mode 100644 4118.83129dcd.async.js delete mode 100644 4154.d5769604.async.js create mode 100644 4156.0679a40a.async.js delete mode 100644 4462.314aca21.async.js create mode 100644 4587.d08ff5a6.async.js create mode 100644 4629.172abe56.async.js delete mode 100644 4767.6e1e2f14.async.js delete mode 100644 5095.67961338.async.js create mode 100644 5130.1b4858db.async.js delete mode 100644 546.790bf438.async.js delete mode 100644 5480.87196696.async.js delete mode 100644 5570.e4d2d4cd.async.js create mode 100644 5743.6c627531.async.js create mode 100644 5894.7e03ab68.async.js create mode 100644 5911.ef2ef75b.async.js create mode 100644 5922.af6d4b93.async.js create mode 100644 622.3bf24976.async.js create mode 100644 6375.0741f419.async.js delete mode 100644 6642.b17e39c1.async.js delete mode 100644 6774.00363424.async.js rename 9809.6053660b.async.js => 692.447572cf.async.js (66%) delete mode 100644 6928.8ffafeda.async.js delete mode 100644 701.15814a81.async.js delete mode 100644 7196.5d32e773.async.js delete mode 100644 7381.3bbb23bc.async.js delete mode 100644 7564.fb7c4ef7.async.js delete mode 100644 7609.d9008f64.async.js delete mode 100644 7688.b8bdde0d.async.js create mode 100644 7919.5efdbd9a.async.js delete mode 100644 8178.f567e559.async.js rename 8588.f81935fb.async.js => 8283.8dbb8a4d.async.js (64%) create mode 100644 8307.686f4719.async.js create mode 100644 8366.180e1668.async.js create mode 100644 8782.51faed84.async.js delete mode 100644 8912.7a51fc1f.async.js create mode 100644 9146.1c9ee707.async.js create mode 100644 9148.735e7fde.async.js delete mode 100644 9217.0e815c5b.async.js create mode 100644 9262.f0286eaa.async.js delete mode 100644 9295.2fcd0b6c.async.js create mode 100644 9328.876be29a.async.js delete mode 100644 9336.14d62ef2.async.js create mode 100644 9555.00867e63.async.js create mode 100644 9813.a403c862.async.js delete mode 100644 9906.e4b73fe6.async.js create mode 100644 account/center/index.html create mode 100644 account/index.html create mode 100644 account/settings/index.html create mode 100644 dashboard/analysis/index.html create mode 100644 dashboard/index.html create mode 100644 dashboard/monitor/index.html create mode 100644 dashboard/workplace/index.html create mode 100644 exception/403/index.html create mode 100644 exception/404/index.html create mode 100644 exception/500/index.html create mode 100644 exception/index.html create mode 100644 form/advanced-form/index.html create mode 100644 form/basic-form/index.html create mode 100644 form/index.html create mode 100644 form/step-form/index.html create mode 100644 list/basic-list/index.html create mode 100644 list/card-list/index.html create mode 100644 list/index.html create mode 100644 list/search/applications/index.html create mode 100644 list/search/articles/index.html create mode 100644 list/search/index.html create mode 100644 list/search/projects/index.html create mode 100644 list/table-list/index.html create mode 100644 p__404.9275b5a6.async.js delete mode 100644 p__404.d7494e27.async.js create mode 100644 p__account__center__index.064410af.async.js delete mode 100644 p__account__center__index.c221b05c.async.js create mode 100644 p__account__settings__index.2a06c081.async.js delete mode 100644 p__account__settings__index.bd56c1b7.async.js delete mode 100644 p__dashboard__analysis__index.edae6d06.async.js create mode 100644 p__dashboard__analysis__index.fa730184.async.js delete mode 100644 p__dashboard__monitor__index.3ded6df3.async.js create mode 100644 p__dashboard__monitor__index.e7a18b3d.async.js create mode 100644 p__dashboard__workplace__index.4d303978.async.js delete mode 100644 p__dashboard__workplace__index.b715f6d4.async.js delete mode 100644 p__exception__403__index.24d0eb0f.async.js create mode 100644 p__exception__403__index.ebe8bea0.async.js create mode 100644 p__exception__404__index.963c3e28.async.js delete mode 100644 p__exception__404__index.e8b5e5fb.async.js create mode 100644 p__exception__500__index.913ed999.async.js delete mode 100644 p__exception__500__index.f53cc9c5.async.js delete mode 100644 p__form__advanced-form__index.67d0a6c7.async.js create mode 100644 p__form__advanced-form__index.adb4c197.async.js create mode 100644 p__form__basic-form__index.3d3a406a.async.js delete mode 100644 p__form__basic-form__index.5666ede1.async.js delete mode 100644 p__form__step-form__index.2e9ac0c7.async.js create mode 100644 p__form__step-form__index.8de27b63.async.js delete mode 100644 p__list__basic-list__index.b7f4cabb.async.js create mode 100644 p__list__basic-list__index.d50ca99e.async.js delete mode 100644 p__list__card-list__index.099d8041.async.js create mode 100644 p__list__card-list__index.f311db83.async.js create mode 100644 p__list__search__applications__index.2d3323fa.async.js delete mode 100644 p__list__search__applications__index.ca9c1698.async.js create mode 100644 p__list__search__articles__index.2602d53d.async.js delete mode 100644 p__list__search__articles__index.81f38a72.async.js delete mode 100644 p__list__search__index.cadd0504.async.js create mode 100644 p__list__search__index.cc890783.async.js delete mode 100644 p__list__search__projects__index.76ebd307.async.js create mode 100644 p__list__search__projects__index.918a1f83.async.js delete mode 100644 p__profile__advanced__index.63c318e3.async.js create mode 100644 p__profile__advanced__index.b867d585.async.js create mode 100644 p__profile__basic__index.3aa436f5.async.js delete mode 100644 p__profile__basic__index.96d9be29.async.js rename p__result__fail__index.2c78d606.async.js => p__result__fail__index.6170b550.async.js (51%) delete mode 100644 p__result__success__index.0e68e42d.async.js create mode 100644 p__result__success__index.2124de55.async.js delete mode 100644 p__table-list__index.80e3a8ed.async.js create mode 100644 p__table-list__index.a94a8218.async.js create mode 100644 p__user__login__index.3e66229c.async.js delete mode 100644 p__user__login__index.d660a102.async.js delete mode 100644 p__user__register-result__index.85636c36.async.js create mode 100644 p__user__register-result__index.f8aedd4b.async.js create mode 100644 p__user__register__index.22ccd76e.async.js delete mode 100644 p__user__register__index.a4115c6a.async.js create mode 100644 profile/advanced/index.html create mode 100644 profile/basic/index.html create mode 100644 profile/index.html create mode 100644 result/fail/index.html create mode 100644 result/index.html create mode 100644 result/success/index.html create mode 100644 t__plugin-layout__Layout.05b79e69.async.js rename t__plugin-layout__Layout.8f39539f.chunk.css => t__plugin-layout__Layout.6cae69f5.chunk.css (89%) delete mode 100644 t__plugin-layout__Layout.700a6c97.async.js delete mode 100644 umi.5b7cd6ca.js create mode 100644 umi.91c13efd.css delete mode 100644 umi.92e3357f.css create mode 100644 umi.c7e117e5.js create mode 100644 user/index.html create mode 100644 user/login/index.html create mode 100644 user/register-result/index.html create mode 100644 user/register/index.html diff --git a/1030.4f527266.async.js b/1030.4f527266.async.js deleted file mode 100644 index 15faf1e2ad..0000000000 --- a/1030.4f527266.async.js +++ /dev/null @@ -1 +0,0 @@ -"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/1366.b69e60db.async.js b/1366.b69e60db.async.js new file mode 100644 index 0000000000..2bdcaea44d --- /dev/null +++ b/1366.b69e60db.async.js @@ -0,0 +1,11 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1366],{57249:function($e,he,n){n.d(he,{Z:function(){return E}});var d=n(27263),P=n(50959),_={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=_,ye=n(38782),ge=function(U,ue){return P.createElement(ye.Z,(0,d.Z)({},U,{ref:ue,icon:le}))},E=P.forwardRef(ge)},96527:function($e,he,n){n.d(he,{Z:function(){return E}});var d=n(27263),P=n(50959),_={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=_,ye=n(38782),ge=function(U,ue){return P.createElement(ye.Z,(0,d.Z)({},U,{ref:ue,icon:le}))},E=P.forwardRef(ge)},38223:function($e,he,n){n.d(he,{Z:function(){return E}});var d=n(27263),P=n(50959),_={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=_,ye=n(38782),ge=function(U,ue){return P.createElement(ye.Z,(0,d.Z)({},U,{ref:ue,icon:le}))},E=P.forwardRef(ge)},9308:function($e,he,n){n.d(he,{Z:function(){return I}});var d=n(50959),P=n(82187),_=n.n(P),le=n(53314),ye=n(68300),ge=n(68280),E=n(92576),z=n(25162),U=n(12158),ue=n(59263),ee=d.createContext(null),Q=n(6479),X=function(k,y){var W={};for(var t in k)Object.prototype.hasOwnProperty.call(k,t)&&y.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:f,children:V,indeterminate:r=!1,style:i,onMouseEnter:h,onMouseLeave:m,skipGroup:Y=!1,disabled:se}=k,H=X(k,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:b,direction:R,checkbox:w}=d.useContext(E.E_),C=d.useContext(ee),{isFormItemInput:O}=d.useContext(ue.aM),ve=d.useContext(z.Z),A=(W=(C==null?void 0:C.disabled)||se)!==null&&W!==void 0?W:ve,pe=d.useRef(H.value);d.useEffect(()=>{C==null||C.registerValue(H.value)},[]),d.useEffect(()=>{if(!Y)return H.value!==pe.current&&(C==null||C.cancelValue(pe.current),C==null||C.registerValue(H.value),pe.current=H.value),()=>C==null?void 0:C.cancelValue(H.value)},[H.value]);const ae=b("checkbox",t),me=(0,U.Z)(ae),[ce,be,xe]=(0,Q.ZP)(ae,me),v=Object.assign({},H);C&&!Y&&(v.onChange=function(){H.onChange&&H.onChange.apply(H,arguments),C.toggleOption&&C.toggleOption({label:V,value:H.value})},v.name=C.name,v.checked=C.value.includes(H.value));const G=_()(`${ae}-wrapper`,{[`${ae}-rtl`]:R==="rtl",[`${ae}-wrapper-checked`]:v.checked,[`${ae}-wrapper-disabled`]:A,[`${ae}-wrapper-in-form-item`]:O},w==null?void 0:w.className,K,f,xe,me,be),q=_()({[`${ae}-indeterminate`]:r},ge.A,be),e=r?"mixed":void 0;return ce(d.createElement(ye.Z,{component:"Checkbox",disabled:A},d.createElement("label",{className:G,style:Object.assign(Object.assign({},w==null?void 0:w.style),i),onMouseEnter:h,onMouseLeave:m},d.createElement(le.Z,Object.assign({"aria-checked":e},v,{prefixCls:ae,className:q,disabled:A,ref:y})),V!==void 0&&d.createElement("span",null,V))))};var $=d.forwardRef(x),te=n(30360),re=n(87017),D=function(k,y){var W={};for(var t in k)Object.prototype.hasOwnProperty.call(k,t)&&y.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:f,className:V,rootClassName:r,style:i,onChange:h}=k,m=D(k,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Y,direction:se}=d.useContext(E.E_),[H,b]=d.useState(m.value||W||[]),[R,w]=d.useState([]);d.useEffect(()=>{"value"in m&&b(m.value||[])},[m.value]);const C=d.useMemo(()=>K.map(u=>typeof u=="string"||typeof u=="number"?{label:u,value:u}:u),[K]),O=u=>{w(B=>B.filter(j=>j!==u))},ve=u=>{w(B=>[].concat((0,te.Z)(B),[u]))},A=u=>{const B=H.indexOf(u.value),j=(0,te.Z)(H);B===-1?j.push(u.value):j.splice(B,1),"value"in m||b(j),h==null||h(j.filter(o=>R.includes(o)).sort((o,s)=>{const a=C.findIndex(M=>M.value===o),S=C.findIndex(M=>M.value===s);return a-S}))},pe=Y("checkbox",f),ae=`${pe}-group`,me=(0,U.Z)(pe),[ce,be,xe]=(0,Q.ZP)(pe,me),v=(0,re.Z)(m,["value","disabled"]),G=K.length?C.map(u=>d.createElement($,{prefixCls:pe,key:u.value.toString(),disabled:"disabled"in u?u.disabled:m.disabled,value:u.value,checked:H.includes(u.value),onChange:u.onChange,className:`${ae}-item`,style:u.style,title:u.title,id:u.id,required:u.required},u.label)):t,q={toggleOption:A,value:H,disabled:m.disabled,name:m.name,registerValue:ve,cancelValue:O},e=_()(ae,{[`${ae}-rtl`]:se==="rtl"},V,r,xe,me,be);return ce(d.createElement("div",Object.assign({className:e,style:i},v,{ref:y}),d.createElement(ee.Provider,{value:q},G)))},g=d.forwardRef(c);var L=d.memo(g);const N=$;N.Group=L,N.__ANT_CHECKBOX=!0;var I=N},6479:function($e,he,n){n.d(he,{C2:function(){return ge}});var d=n(25446),P=n(55985),_=n(37324),le=n(87077);const ye=E=>{const{checkboxCls:z}=E,U=`${z}-wrapper`;return[{[`${z}-group`]:Object.assign(Object.assign({},(0,P.Wf)(E)),{display:"inline-flex",flexWrap:"wrap",columnGap:E.marginXS,[`> ${E.antCls}-row`]:{flex:1}}),[U]:Object.assign(Object.assign({},(0,P.Wf)(E)),{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}}}),[z]:Object.assign(Object.assign({},(0,P.Wf)(E)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:E.borderRadiusSM,alignSelf:"center",[`${z}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${z}-inner`]:Object.assign({},(0,P.oN)(E))},[`${z}-inner`]:{boxSizing:"border-box",display:"block",width:E.checkboxSize,height:E.checkboxSize,direction:"ltr",backgroundColor:E.colorBgContainer,border:`${(0,d.bf)(E.lineWidth)} ${E.lineType} ${E.colorBorder}`,borderRadius:E.borderRadiusSM,borderCollapse:"separate",transition:`all ${E.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:E.calc(E.checkboxSize).div(14).mul(5).equal(),height:E.calc(E.checkboxSize).div(14).mul(8).equal(),border:`${(0,d.bf)(E.lineWidthBold)} solid ${E.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${E.motionDurationFast} ${E.motionEaseInBack}, opacity ${E.motionDurationFast}`}},"& + span":{paddingInlineStart:E.paddingXS,paddingInlineEnd:E.paddingXS}})},{[` + ${U}:not(${U}-disabled), + ${z}:not(${z}-disabled) + `]:{[`&:hover ${z}-inner`]:{borderColor:E.colorPrimary}},[`${U}:not(${U}-disabled)`]:{[`&:hover ${z}-checked:not(${z}-disabled) ${z}-inner`]:{backgroundColor:E.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${z}-checked:not(${z}-disabled):after`]:{borderColor:E.colorPrimaryHover}}},{[`${z}-checked`]:{[`${z}-inner`]:{backgroundColor:E.colorPrimary,borderColor:E.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${E.motionDurationMid} ${E.motionEaseOutBack} ${E.motionDurationFast}`}}},[` + ${U}-checked:not(${U}-disabled), + ${z}-checked:not(${z}-disabled) + `]:{[`&:hover ${z}-inner`]:{backgroundColor:E.colorPrimaryHover,borderColor:"transparent"}}},{[z]:{"&-indeterminate":{[`${z}-inner`]:{backgroundColor:E.colorBgContainer,borderColor:E.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:E.calc(E.fontSizeLG).div(2).equal(),height:E.calc(E.fontSizeLG).div(2).equal(),backgroundColor:E.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${U}-disabled`]:{cursor:"not-allowed"},[`${z}-disabled`]:{[`&, ${z}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${z}-inner`]:{background:E.colorBgContainerDisabled,borderColor:E.colorBorder,"&:after":{borderColor:E.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:E.colorTextDisabled},[`&${z}-indeterminate ${z}-inner::after`]:{background:E.colorTextDisabled}}}]};function ge(E,z){const U=(0,_.TS)(z,{checkboxCls:`.${E}`,checkboxSize:z.controlInteractiveSize});return[ye(U)]}he.ZP=(0,le.I$)("Checkbox",(E,z)=>{let{prefixCls:U}=z;return[ge(U,E)]})},21713:function($e,he,n){n.d(he,{Z:function(){return K}});var d=n(50959),P=n(82187),_=n.n(P),le=n(92576),ye=n(59263),ge=n(85580),z=f=>{const{getPrefixCls:V,direction:r}=(0,d.useContext)(le.E_),{prefixCls:i,className:h}=f,m=V("input-group",i),Y=V("input"),[se,H]=(0,ge.ZP)(Y),b=_()(m,{[`${m}-lg`]:f.size==="large",[`${m}-sm`]:f.size==="small",[`${m}-compact`]:f.compact,[`${m}-rtl`]:r==="rtl"},H,h),R=(0,d.useContext)(ye.aM),w=(0,d.useMemo)(()=>Object.assign(Object.assign({},R),{isFormItemInput:!1}),[R]);return se(d.createElement("span",{className:b,style:f.style,onMouseEnter:f.onMouseEnter,onMouseLeave:f.onMouseLeave,onFocus:f.onFocus,onBlur:f.onBlur},d.createElement(ye.aM.Provider,{value:w},f.children)))},U=n(99053),ue=n(57249),ie=n(96527),ee=n(87017),Q=n(12602),X=n(25341),x=function(f,V){var r={};for(var i in f)Object.prototype.hasOwnProperty.call(f,i)&&V.indexOf(i)<0&&(r[i]=f[i]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,i=Object.getOwnPropertySymbols(f);hf?d.createElement(ie.Z,null):d.createElement(ue.Z,null),$={click:"onClick",hover:"onMouseOver"};var re=d.forwardRef((f,V)=>{const{visibilityToggle:r=!0}=f,i=typeof r=="object"&&r.visible!==void 0,[h,m]=(0,d.useState)(()=>i?r.visible:!1),Y=(0,d.useRef)(null);d.useEffect(()=>{i&&m(r.visible)},[i,r]);const se=(0,X.Z)(Y),H=()=>{const{disabled:xe}=f;xe||(h&&se(),m(v=>{var G;const q=!v;return typeof r=="object"&&((G=r.onVisibleChange)===null||G===void 0||G.call(r,q)),q}))},b=xe=>{const{action:v="click",iconRender:G=l}=f,q=$[v]||"",e=G(h),u={[q]:H,className:`${xe}-icon`,key:"passwordIcon",onMouseDown:B=>{B.preventDefault()},onMouseUp:B=>{B.preventDefault()}};return d.cloneElement(d.isValidElement(e)?e:d.createElement("span",null,e),u)},{className:R,prefixCls:w,inputPrefixCls:C,size:O}=f,ve=x(f,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:A}=d.useContext(le.E_),pe=A("input",C),ae=A("input-password",w),me=r&&b(ae),ce=_()(ae,R,{[`${ae}-${O}`]:!!O}),be=Object.assign(Object.assign({},(0,ee.Z)(ve,["suffix","iconRender","visibilityToggle"])),{type:h?"text":"password",className:ce,prefixCls:pe,suffix:me});return O&&(be.size=O),d.createElement(U.Z,Object.assign({ref:(0,Q.sQ)(V,Y)},be))}),D=n(61020),c=n(37865),g=n(86865),L=n(50483),N=n(58163),I=function(f,V){var r={};for(var i in f)Object.prototype.hasOwnProperty.call(f,i)&&V.indexOf(i)<0&&(r[i]=f[i]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,i=Object.getOwnPropertySymbols(f);h{const{prefixCls:r,inputPrefixCls:i,className:h,size:m,suffix:Y,enterButton:se=!1,addonAfter:H,loading:b,disabled:R,onSearch:w,onChange:C,onCompositionStart:O,onCompositionEnd:ve}=f,A=I(f,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:pe,direction:ae}=d.useContext(le.E_),me=d.useRef(!1),ce=pe("input-search",r),be=pe("input",i),{compactSize:xe}=(0,N.ri)(ce,ae),v=(0,L.Z)(T=>{var F;return(F=m!=null?m:xe)!==null&&F!==void 0?F:T}),G=d.useRef(null),q=T=>{T&&T.target&&T.type==="click"&&w&&w(T.target.value,T,{source:"clear"}),C&&C(T)},e=T=>{var F;document.activeElement===((F=G.current)===null||F===void 0?void 0:F.input)&&T.preventDefault()},u=T=>{var F,oe;w&&w((oe=(F=G.current)===null||F===void 0?void 0:F.input)===null||oe===void 0?void 0:oe.value,T,{source:"input"})},B=T=>{me.current||b||u(T)},j=typeof se=="boolean"?d.createElement(D.Z,null):null,o=`${ce}-button`;let s;const a=se||{},S=a.type&&a.type.__ANT_BUTTON===!0;S||a.type==="button"?s=(0,c.Tm)(a,Object.assign({onMouseDown:e,onClick:T=>{var F,oe;(oe=(F=a==null?void 0:a.props)===null||F===void 0?void 0:F.onClick)===null||oe===void 0||oe.call(F,T),u(T)},key:"enterButton"},S?{className:o,size:v}:{})):s=d.createElement(g.ZP,{className:o,type:se?"primary":void 0,size:v,disabled:R,key:"enterButton",onMouseDown:e,onClick:u,loading:b,icon:j},se),H&&(s=[s,(0,c.Tm)(H,{key:"addonAfter"})]);const M=_()(ce,{[`${ce}-rtl`]:ae==="rtl",[`${ce}-${v}`]:!!v,[`${ce}-with-button`]:!!se},h),J=T=>{me.current=!0,O==null||O(T)},Z=T=>{me.current=!1,ve==null||ve(T)};return d.createElement(U.Z,Object.assign({ref:(0,Q.sQ)(G,V),onPressEnter:B},A,{size:v,onCompositionStart:J,onCompositionEnd:Z,prefixCls:be,addonAfter:s,suffix:Y,onChange:q,className:M,disabled:R}))}),W=n(41787);const t=U.Z;t.Group=z,t.Search=y,t.TextArea=W.Z,t.Password=re;var K=t},3590:function($e,he,n){n.d(he,{ZP:function(){return H}});var d=n(50959),P=n(82187),_=n.n(P),le=n(65589),ye=n(68924),ge=n(92576),E=n(50483);const z=d.createContext(null),U=z.Provider;var ue=z;const ie=d.createContext(null),ee=ie.Provider;var Q=n(53314),X=n(12602),x=n(68300),l=n(68280),$=n(25162),te=n(59263),re=n(25446),D=n(55985),c=n(87077),g=n(37324);const L=b=>{const{componentCls:R,antCls:w}=b,C=`${R}-group`;return{[C]:Object.assign(Object.assign({},(0,D.Wf)(b)),{display:"inline-block",fontSize:0,[`&${C}-rtl`]:{direction:"rtl"},[`${w}-badge ${w}-badge-count`]:{zIndex:1},[`> ${w}-badge:not(:first-child) > ${w}-button-wrapper`]:{borderInlineStart:"none"}})}},N=b=>{const{componentCls:R,wrapperMarginInlineEnd:w,colorPrimary:C,radioSize:O,motionDurationSlow:ve,motionDurationMid:A,motionEaseInOutCirc:pe,colorBgContainer:ae,colorBorder:me,lineWidth:ce,colorBgContainerDisabled:be,colorTextDisabled:xe,paddingXS:v,dotColorDisabled:G,lineType:q,radioColor:e,radioBgColor:u,calc:B}=b,j=`${R}-inner`,o=4,s=B(O).sub(B(o).mul(2)),a=B(1).mul(O).equal();return{[`${R}-wrapper`]:Object.assign(Object.assign({},(0,D.Wf)(b)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:w,cursor:"pointer",[`&${R}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:b.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${R}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${(0,re.bf)(ce)} ${q} ${C}`,borderRadius:"50%",visibility:"hidden",content:'""'},[R]:Object.assign(Object.assign({},(0,D.Wf)(b)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${R}-wrapper:hover &, + &:hover ${j}`]:{borderColor:C},[`${R}-input:focus-visible + ${j}`]:Object.assign({},(0,D.oN)(b)),[`${R}:hover::after, ${R}-wrapper:hover &::after`]:{visibility:"visible"},[`${R}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:a,height:a,marginBlockStart:B(1).mul(O).div(-2).equal(),marginInlineStart:B(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:ae,borderColor:me,borderStyle:"solid",borderWidth:ce,borderRadius:"50%",transition:`all ${A}`},[`${R}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${R}-checked`]:{[j]:{borderColor:C,backgroundColor:u,"&::after":{transform:`scale(${b.calc(b.dotSize).div(O).equal()})`,opacity:1,transition:`all ${ve} ${pe}`}}},[`${R}-disabled`]:{cursor:"not-allowed",[j]:{backgroundColor:be,borderColor:me,cursor:"not-allowed","&::after":{backgroundColor:G}},[`${R}-input`]:{cursor:"not-allowed"},[`${R}-disabled + span`]:{color:xe,cursor:"not-allowed"},[`&${R}-checked`]:{[j]:{"&::after":{transform:`scale(${B(s).div(O).equal({unit:!1})})`}}}},[`span${R} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},I=b=>{const{buttonColor:R,controlHeight:w,componentCls:C,lineWidth:O,lineType:ve,colorBorder:A,motionDurationSlow:pe,motionDurationMid:ae,buttonPaddingInline:me,fontSize:ce,buttonBg:be,fontSizeLG:xe,controlHeightLG:v,controlHeightSM:G,paddingXS:q,borderRadius:e,borderRadiusSM:u,borderRadiusLG:B,buttonCheckedBg:j,buttonSolidCheckedColor:o,colorTextDisabled:s,colorBgContainerDisabled:a,buttonCheckedBgDisabled:S,buttonCheckedColorDisabled:M,colorPrimary:J,colorPrimaryHover:Z,colorPrimaryActive:T,buttonSolidCheckedBg:F,buttonSolidCheckedHoverBg:oe,buttonSolidCheckedActiveBg:p,calc:ne}=b;return{[`${C}-button-wrapper`]:{position:"relative",display:"inline-block",height:w,margin:0,paddingInline:me,paddingBlock:0,color:R,fontSize:ce,lineHeight:(0,re.bf)(ne(w).sub(ne(O).mul(2)).equal()),background:be,border:`${(0,re.bf)(O)} ${ve} ${A}`,borderBlockStartWidth:ne(O).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:O,cursor:"pointer",transition:[`color ${ae}`,`background ${ae}`,`box-shadow ${ae}`].join(","),a:{color:R},[`> ${C}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:ne(O).mul(-1).equal(),insetInlineStart:ne(O).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:O,paddingInline:0,backgroundColor:A,transition:`background-color ${pe}`,content:'""'}},"&:first-child":{borderInlineStart:`${(0,re.bf)(O)} ${ve} ${A}`,borderStartStartRadius:e,borderEndStartRadius:e},"&:last-child":{borderStartEndRadius:e,borderEndEndRadius:e},"&:first-child:last-child":{borderRadius:e},[`${C}-group-large &`]:{height:v,fontSize:xe,lineHeight:(0,re.bf)(ne(v).sub(ne(O).mul(2)).equal()),"&:first-child":{borderStartStartRadius:B,borderEndStartRadius:B},"&:last-child":{borderStartEndRadius:B,borderEndEndRadius:B}},[`${C}-group-small &`]:{height:G,paddingInline:ne(q).sub(O).equal(),paddingBlock:0,lineHeight:(0,re.bf)(ne(G).sub(ne(O).mul(2)).equal()),"&:first-child":{borderStartStartRadius:u,borderEndStartRadius:u},"&:last-child":{borderStartEndRadius:u,borderEndEndRadius:u}},"&:hover":{position:"relative",color:J},"&:has(:focus-visible)":Object.assign({},(0,D.oN)(b)),[`${C}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${C}-button-wrapper-disabled)`]:{zIndex:1,color:J,background:j,borderColor:J,"&::before":{backgroundColor:J},"&:first-child":{borderColor:J},"&:hover":{color:Z,borderColor:Z,"&::before":{backgroundColor:Z}},"&:active":{color:T,borderColor:T,"&::before":{backgroundColor:T}}},[`${C}-group-solid &-checked:not(${C}-button-wrapper-disabled)`]:{color:o,background:F,borderColor:F,"&:hover":{color:o,background:oe,borderColor:oe},"&:active":{color:o,background:p,borderColor:p}},"&-disabled":{color:s,backgroundColor:a,borderColor:A,cursor:"not-allowed","&:first-child, &:hover":{color:s,backgroundColor:a,borderColor:A}},[`&-disabled${C}-button-wrapper-checked`]:{color:M,backgroundColor:S,borderColor:A,boxShadow:"none"}}}},k=b=>{const{wireframe:R,padding:w,marginXS:C,lineWidth:O,fontSizeLG:ve,colorText:A,colorBgContainer:pe,colorTextDisabled:ae,controlItemBgActiveDisabled:me,colorTextLightSolid:ce,colorPrimary:be,colorPrimaryHover:xe,colorPrimaryActive:v,colorWhite:G}=b,q=4,e=ve,u=R?e-q*2:e-(q+O)*2;return{radioSize:e,dotSize:u,dotColorDisabled:ae,buttonSolidCheckedColor:ce,buttonSolidCheckedBg:be,buttonSolidCheckedHoverBg:xe,buttonSolidCheckedActiveBg:v,buttonBg:pe,buttonCheckedBg:pe,buttonColor:A,buttonCheckedBgDisabled:me,buttonCheckedColorDisabled:ae,buttonPaddingInline:w-O,wrapperMarginInlineEnd:C,radioColor:R?be:G,radioBgColor:R?pe:be}};var y=(0,c.I$)("Radio",b=>{const{controlOutline:R,controlOutlineWidth:w}=b,C=`0 0 0 ${(0,re.bf)(w)} ${R}`,O=C,ve=(0,g.TS)(b,{radioFocusShadow:C,radioButtonFocusShadow:O});return[L(ve),N(ve),I(ve)]},k,{unitless:{radioSize:!0,dotSize:!0}}),W=n(12158),t=function(b,R){var w={};for(var C in b)Object.prototype.hasOwnProperty.call(b,C)&&R.indexOf(C)<0&&(w[C]=b[C]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,C=Object.getOwnPropertySymbols(b);O{var w,C;const O=d.useContext(ue),ve=d.useContext(ie),{getPrefixCls:A,direction:pe,radio:ae}=d.useContext(ge.E_),me=d.useRef(null),ce=(0,X.sQ)(R,me),{isFormItemInput:be}=d.useContext(te.aM),xe=oe=>{var p,ne;(p=b.onChange)===null||p===void 0||p.call(b,oe),(ne=O==null?void 0:O.onChange)===null||ne===void 0||ne.call(O,oe)},{prefixCls:v,className:G,rootClassName:q,children:e,style:u}=b,B=t(b,["prefixCls","className","rootClassName","children","style"]),j=A("radio",v),o=((O==null?void 0:O.optionType)||ve)==="button",s=o?`${j}-button`:j,a=(0,W.Z)(j),[S,M,J]=y(j,a),Z=Object.assign({},B),T=d.useContext($.Z);O&&(Z.name=O.name,Z.onChange=xe,Z.checked=b.value===O.value,Z.disabled=(w=Z.disabled)!==null&&w!==void 0?w:O.disabled),Z.disabled=(C=Z.disabled)!==null&&C!==void 0?C:T;const F=_()(`${s}-wrapper`,{[`${s}-wrapper-checked`]:Z.checked,[`${s}-wrapper-disabled`]:Z.disabled,[`${s}-wrapper-rtl`]:pe==="rtl",[`${s}-wrapper-in-form-item`]:be},ae==null?void 0:ae.className,G,q,M,J,a);return S(d.createElement(x.Z,{component:"Radio",disabled:Z.disabled},d.createElement("label",{className:F,style:Object.assign(Object.assign({},ae==null?void 0:ae.style),u),onMouseEnter:b.onMouseEnter,onMouseLeave:b.onMouseLeave},d.createElement(Q.Z,Object.assign({},Z,{className:_()(Z.className,!o&&l.A),type:"radio",prefixCls:s,ref:ce})),e!==void 0?d.createElement("span",null,e):null)))};var V=d.forwardRef(K);const r=d.forwardRef((b,R)=>{const{getPrefixCls:w,direction:C}=d.useContext(ge.E_),[O,ve]=(0,le.Z)(b.defaultValue,{value:b.value}),A=p=>{const ne=O,fe=p.target.value;"value"in b||ve(fe);const{onChange:de}=b;de&&fe!==ne&&de(p)},{prefixCls:pe,className:ae,rootClassName:me,options:ce,buttonStyle:be="outline",disabled:xe,children:v,size:G,style:q,id:e,onMouseEnter:u,onMouseLeave:B,onFocus:j,onBlur:o}=b,s=w("radio",pe),a=`${s}-group`,S=(0,W.Z)(s),[M,J,Z]=y(s,S);let T=v;ce&&ce.length>0&&(T=ce.map(p=>typeof p=="string"||typeof p=="number"?d.createElement(V,{key:p.toString(),prefixCls:s,disabled:xe,value:p,checked:O===p},p):d.createElement(V,{key:`radio-group-value-options-${p.value}`,prefixCls:s,disabled:p.disabled||xe,value:p.value,checked:O===p.value,title:p.title,style:p.style,id:p.id,required:p.required},p.label)));const F=(0,E.Z)(G),oe=_()(a,`${a}-${be}`,{[`${a}-${F}`]:F,[`${a}-rtl`]:C==="rtl"},ae,me,J,Z,S);return M(d.createElement("div",Object.assign({},(0,ye.Z)(b,{aria:!0,data:!0}),{className:oe,style:q,onMouseEnter:u,onMouseLeave:B,onFocus:j,onBlur:o,id:e,ref:R}),d.createElement(U,{value:{onChange:A,value:O,disabled:b.disabled,name:b.name,optionType:b.optionType}},T)))});var i=d.memo(r),h=function(b,R){var w={};for(var C in b)Object.prototype.hasOwnProperty.call(b,C)&&R.indexOf(C)<0&&(w[C]=b[C]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,C=Object.getOwnPropertySymbols(b);O{const{getPrefixCls:w}=d.useContext(ge.E_),{prefixCls:C}=b,O=h(b,["prefixCls"]),ve=w("radio",C);return d.createElement(ee,{value:"button"},d.createElement(V,Object.assign({prefixCls:ve},O,{type:"radio",ref:R})))};var Y=d.forwardRef(m);const se=V;se.Button=Y,se.Group=i,se.__ANT_RADIO=!0;var H=se},63701:function($e,he,n){n.d(he,{TM:function(){return Q},Yk:function(){return ee}});var d=n(25446),P=n(6479),_=n(55985),le=n(40283),ye=n(37324),ge=n(87077);const E=new d.E4("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),z=(x,l)=>({[`.${x}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${l.motionDurationSlow}`}}}),U=(x,l)=>({[`.${x}-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=(x,l)=>{const{treeCls:$,treeNodeCls:te,treeNodePadding:re,titleHeight:D,nodeSelectedBg:c,nodeHoverBg:g}=l,L=l.paddingXS;return{[$]:Object.assign(Object.assign({},(0,_.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,_.oN)(l)),[`${$}-list-holder-inner`]:{alignItems:"flex-start"},[`&${$}-block-node`]:{[`${$}-list-holder-inner`]:{alignItems:"stretch",[`${$}-node-content-wrapper`]:{flex:"auto"},[`${te}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:re,insetInlineStart:0,border:`1px solid ${l.colorPrimary}`,opacity:0,animationName:E,animationDuration:l.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${te}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${(0,d.bf)(re)} 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${$}-node-content-wrapper`]:{color:l.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${$}-node-content-wrapper`]:{background:l.controlItemBgHover},[`&:not(${te}-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}`,[`${te}:hover &`]:{opacity:.45}},[`&${te}-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({},z(x,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(re).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:L,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:g},[`&${$}-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(x,l)),[`${te}.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(re).mul(-1).equal(),borderInlineEnd:`1px solid ${l.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${$}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${te}-leaf-last`]:{[`${$}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${(0,d.bf)(l.calc(D).div(2).equal())} !important`}}}}})}},ie=x=>{const{treeCls:l,treeNodeCls:$,treeNodePadding:te,directoryNodeSelectedBg:re,directoryNodeSelectedColor:D}=x;return{[`${l}${l}-directory`]:{[$]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:te,insetInlineStart:0,transition:`background-color ${x.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:x.controlItemBgHover}},"> *":{zIndex:1},[`${l}-switcher`]:{transition:`color ${x.motionDurationMid}`},[`${l}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${l}-node-selected`]:{color:D,background:"transparent"}},"&-selected":{[` + &:hover::before, + &::before + `]:{background:re},[`${l}-switcher`]:{color:D},[`${l}-node-content-wrapper`]:{color:D,background:"transparent"}}}}}},ee=(x,l)=>{const $=`.${x}`,te=`${$}-treenode`,re=l.calc(l.paddingXS).div(2).equal(),D=(0,ye.TS)(l,{treeCls:$,treeNodeCls:te,treeNodePadding:re});return[ue(x,D),ie(D)]},Q=x=>{const{controlHeightSM:l}=x;return{titleHeight:l,nodeHoverBg:x.controlItemBgHover,nodeSelectedBg:x.controlItemBgActive}},X=x=>{const{colorTextLightSolid:l,colorPrimary:$}=x;return Object.assign(Object.assign({},Q(x)),{directoryNodeSelectedColor:l,directoryNodeSelectedBg:$})};he.ZP=(0,ge.I$)("Tree",(x,l)=>{let{prefixCls:$}=l;return[{[x.componentCls]:(0,P.C2)(`${$}-checkbox`,x)},ee($,x),(0,le.Z)(x)]},X)},22679:function($e,he,n){n.d(he,{Z:function(){return g}});var d=n(27263),P=n(50959),_={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=_,ye=n(38782),ge=function(N,I){return P.createElement(ye.Z,(0,d.Z)({},N,{ref:I,icon:le}))},E=P.forwardRef(ge),z=n(38223),U=n(58516),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,ee=function(N,I){return P.createElement(ye.Z,(0,d.Z)({},N,{ref:I,icon:ie}))},Q=P.forwardRef(ee),X={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"},x=X,l=function(N,I){return P.createElement(ye.Z,(0,d.Z)({},N,{ref:I,icon:x}))},$=P.forwardRef(l),te=n(82187),re=n.n(te),D=n(37865),g=L=>{const{prefixCls:N,switcherIcon:I,treeNodeProps:k,showLine:y}=L,{isLeaf:W,expanded:t,loading:K}=k;if(K)return P.createElement(U.Z,{className:`${N}-switcher-loading-icon`});let f;if(y&&typeof y=="object"&&(f=y.showLeafIcon),W){if(!y)return null;if(typeof f!="boolean"&&f){const i=typeof f=="function"?f(k):f,h=`${N}-switcher-line-custom-icon`;return(0,D.l$)(i)?(0,D.Tm)(i,{className:re()(i.props.className||"",h)}):i}return f?P.createElement(z.Z,{className:`${N}-switcher-line-icon`}):P.createElement("span",{className:`${N}-switcher-leaf-line`})}const V=`${N}-switcher-icon`,r=typeof I=="function"?I(k):I;return(0,D.l$)(r)?(0,D.Tm)(r,{className:re()(r.props.className||"",V)}):r!==void 0?r:y?t?P.createElement(Q,{className:`${N}-switcher-line-icon`}):P.createElement($,{className:`${N}-switcher-line-icon`}):P.createElement(E,{className:V})}},53314:function($e,he,n){var d=n(27263),P=n(35361),_=n(88357),le=n(959),ye=n(56929),ge=n(82187),E=n.n(ge),z=n(65589),U=n(50959),ue=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],ie=(0,U.forwardRef)(function(ee,Q){var X,x=ee.prefixCls,l=x===void 0?"rc-checkbox":x,$=ee.className,te=ee.style,re=ee.checked,D=ee.disabled,c=ee.defaultChecked,g=c===void 0?!1:c,L=ee.type,N=L===void 0?"checkbox":L,I=ee.title,k=ee.onChange,y=(0,ye.Z)(ee,ue),W=(0,U.useRef)(null),t=(0,z.Z)(g,{value:re}),K=(0,le.Z)(t,2),f=K[0],V=K[1];(0,U.useImperativeHandle)(Q,function(){return{focus:function(){var m;(m=W.current)===null||m===void 0||m.focus()},blur:function(){var m;(m=W.current)===null||m===void 0||m.blur()},input:W.current}});var r=E()(l,$,(X={},(0,_.Z)(X,"".concat(l,"-checked"),f),(0,_.Z)(X,"".concat(l,"-disabled"),D),X)),i=function(m){D||("checked"in ee||V(m.target.checked),k==null||k({target:(0,P.Z)((0,P.Z)({},ee),{},{type:N,checked:m.target.checked}),stopPropagation:function(){m.stopPropagation()},preventDefault:function(){m.preventDefault()},nativeEvent:m.nativeEvent}))};return U.createElement("span",{className:r,title:I,style:te},U.createElement("input",(0,d.Z)({},y,{className:"".concat(l,"-input"),ref:W,onChange:i,disabled:D,checked:!!f,type:N})),U.createElement("span",{className:"".concat(l,"-inner")}))});he.Z=ie},36289:function($e,he,n){n.d(he,{Z:function(){return I}});var d=n(27263),P=n(88357),_=n(56929),le=n(35361),ye=n(5952),ge=n(97086),E=n(1378),z=n(90242),U=n(14553),ue=n(82187),ie=n.n(ue),ee=n(68924),Q=n(50959),X=n(32866),x=function(y){for(var W=y.prefixCls,t=y.level,K=y.isStart,f=y.isEnd,V="".concat(W,"-indent-unit"),r=[],i=0;i0&&arguments[0]!==void 0?arguments[0]:[],G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],q=v.length,e=G.length;if(Math.abs(q-e)!==1)return{add:!1,key:null};function u(B,j){var o=new Map;B.forEach(function(a){o.set(a,!0)});var s=j.filter(function(a){return!o.has(a)});return s.length===1?s[0]:null}return q ").concat(G);return G}var O=l.forwardRef(function(v,G){var q=v.prefixCls,e=v.data,u=v.selectable,B=v.checkable,j=v.expandedKeys,o=v.selectedKeys,s=v.checkedKeys,a=v.loadedKeys,S=v.loadingKeys,M=v.halfCheckedKeys,J=v.keyEntities,Z=v.disabled,T=v.dragging,F=v.dragOverNodeKey,oe=v.dropPosition,p=v.motion,ne=v.height,fe=v.itemHeight,de=v.virtual,Ce=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(G,function(){return{scrollTo:function(Ze){we.current.scrollTo(Ze)},getIndentWidth:function(){return Te.current.offsetWidth}}});var Le=l.useState(j),Ge=(0,D.Z)(Le,2),qe=Ge[0],_e=Ge[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,g.Z)(function(){_e(j);var Pe=V(qe,j);if(Pe.key!==null)if(Pe.add){var Ze=Ae.findIndex(function(Ue){var Ve=Ue.key;return Ve===Pe.key}),ze=R(r(Ae,e,Pe.key),de,ne,fe),Fe=Ae.slice();Fe.splice(Ze+1,0,b),He(Fe),rt(ze),at("show")}else{var je=e.findIndex(function(Ue){var Ve=Ue.key;return Ve===Pe.key}),We=R(r(e,Ae,Pe.key),de,ne,fe),Je=e.slice();Je.splice(je+1,0,b),He(Je),rt(We),at("hide")}else Ae!==e&&(Ye(e),He(e))},[j,e]),l.useEffect(function(){T||it()},[T]);var vt=p?nt:e,dt={expandedKeys:j,selectedKeys:o,loadedKeys:a,loadingKeys:S,checkedKeys:s,halfCheckedKeys:M,dragOverNodeKey:F,dropPosition:oe,keyEntities:J};return l.createElement(l.Fragment,null,Ke&&Ee&&l.createElement("span",{style:h,"aria-live":"assertive"},C(Ee)),l.createElement("div",null,l.createElement("input",{style:h,disabled:Ce===!1||Z,tabIndex:Ce!==!1?Se:null,onKeyDown:Oe,onFocus:Me,onBlur:De,value:"",onChange:m,"aria-label":"for screen reader"})),l.createElement("div",{className:"".concat(q,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},l.createElement("div",{className:"".concat(q,"-indent")},l.createElement("div",{ref:Te,className:"".concat(q,"-indent-unit")}))),l.createElement(L.Z,(0,d.Z)({},Re,{data:vt,itemKey:w,height:ne,fullHeight:!1,virtual:de,itemHeight:fe,prefixCls:"".concat(q,"-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 w(We)===Y})&&it()}}),function(Pe){var Ze=Pe.pos,ze=(0,d.Z)({},(re(Pe.data),Pe.data)),Fe=Pe.title,je=Pe.key,We=Pe.isStart,Je=Pe.isEnd,Ue=(0,y.km)(je,Ze);delete ze.key,delete ze.children;var Ve=(0,y.H8)(Ue,dt);return l.createElement(f,(0,d.Z)({},ze,Ve,{title:Fe,active:!!Ee&&je===Ee.key,pos:Ze,data:Pe.data,isStart:We,isEnd:Je,motion:p,motionNodes:je===Y?ct:null,motionType:ft,onMotionStart:ke,onMotionEnd:it,treeNodeRequiredProps:dt,onMouseMove:function(){Ne(null)}}))}))});O.displayName="NodeList";var ve=O,A=n(31087),pe=n(27545),ae=n(55369),me=10,ce=function(v){(0,U.Z)(q,v);var G=(0,ue.Z)(q);function q(){var e;(0,ge.Z)(this,q);for(var u=arguments.length,B=new Array(u),j=0;j2&&arguments[2]!==void 0?arguments[2]:!1,M=e.state,J=M.dragChildrenKeys,Z=M.dropPosition,T=M.dropTargetKey,F=M.dropTargetPos,oe=M.dropAllowed;if(oe){var p=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),T!==null){var ne=(0,le.Z)((0,le.Z)({},(0,y.H8)(T,e.getTreeNodeRequiredProps())),{},{active:((a=e.getActiveItem())===null||a===void 0?void 0:a.key)===T,data:(0,ae.Z)(e.state.keyEntities,T).node}),fe=J.indexOf(T)!==-1;(0,x.ZP)(!fe,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var de=(0,A.yx)(F),Ce={event:o,node:(0,y.F)(ne),dragNode:e.dragNode?(0,y.F)(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(J),dropToGap:Z!==0,dropPosition:Z+Number(de[de.length-1])};S||p==null||p(Ce),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,S=a.expandedKeys,M=a.flattenNodes,J=s.expanded,Z=s.key,T=s.isLeaf;if(!(T||o.shiftKey||o.metaKey||o.ctrlKey)){var F=M.filter(function(p){return p.key===Z})[0],oe=(0,y.F)((0,le.Z)((0,le.Z)({},(0,y.H8)(Z,e.getTreeNodeRequiredProps())),{},{data:F.data}));e.setExpandedKeys(J?(0,A._5)(S,Z):(0,A.L0)(S,Z)),e.onNodeExpand(o,oe)}},e.onNodeClick=function(o,s){var a=e.props,S=a.onClick,M=a.expandAction;M==="click"&&e.triggerExpandActionExpand(o,s),S==null||S(o,s)},e.onNodeDoubleClick=function(o,s){var a=e.props,S=a.onDoubleClick,M=a.expandAction;M==="doubleClick"&&e.triggerExpandActionExpand(o,s),S==null||S(o,s)},e.onNodeSelect=function(o,s){var a=e.state.selectedKeys,S=e.state,M=S.keyEntities,J=S.fieldNames,Z=e.props,T=Z.onSelect,F=Z.multiple,oe=s.selected,p=s[J.key],ne=!oe;ne?F?a=(0,A.L0)(a,p):a=[p]:a=(0,A._5)(a,p);var fe=a.map(function(de){var Ce=(0,ae.Z)(M,de);return Ce?Ce.node:null}).filter(function(de){return de});e.setUncontrolledState({selectedKeys:a}),T==null||T(a,{event:"select",selected:ne,node:s,selectedNodes:fe,nativeEvent:o.nativeEvent})},e.onNodeCheck=function(o,s,a){var S=e.state,M=S.keyEntities,J=S.checkedKeys,Z=S.halfCheckedKeys,T=e.props,F=T.checkStrictly,oe=T.onCheck,p=s.key,ne,fe={event:"check",node:s,checked:a,nativeEvent:o.nativeEvent};if(F){var de=a?(0,A.L0)(J,p):(0,A._5)(J,p),Ce=(0,A._5)(Z,p);ne={checked:de,halfChecked:Ce},fe.checkedNodes=de.map(function(De){return(0,ae.Z)(M,De)}).filter(function(De){return De}).map(function(De){return De.node}),e.setUncontrolledState({checkedKeys:de})}else{var Ee=(0,pe.S)([].concat((0,ye.Z)(J),[p]),!0,M),Ke=Ee.checkedKeys,Se=Ee.halfCheckedKeys;if(!a){var Oe=new Set(Ke);Oe.delete(p);var Me=(0,pe.S)(Array.from(Oe),{checked:!1,halfCheckedKeys:Se},M);Ke=Me.checkedKeys,Se=Me.halfCheckedKeys}ne=Ke,fe.checkedNodes=[],fe.checkedNodesPositions=[],fe.halfCheckedKeys=Se,Ke.forEach(function(De){var Ne=(0,ae.Z)(M,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})}oe==null||oe(ne,fe)},e.onNodeLoad=function(o){var s=o.key,a=new Promise(function(S,M){e.setState(function(J){var Z=J.loadedKeys,T=Z===void 0?[]:Z,F=J.loadingKeys,oe=F===void 0?[]:F,p=e.props,ne=p.loadData,fe=p.onLoad;if(!ne||T.indexOf(s)!==-1||oe.indexOf(s)!==-1)return null;var de=ne(o);return de.then(function(){var Ce=e.state.loadedKeys,Ee=(0,A.L0)(Ce,s);fe==null||fe(Ee,{event:"load",node:o}),e.setUncontrolledState({loadedKeys:Ee}),e.setState(function(Ke){return{loadingKeys:(0,A._5)(Ke.loadingKeys,s)}}),S()}).catch(function(Ce){if(e.setState(function(Ke){return{loadingKeys:(0,A._5)(Ke.loadingKeys,s)}}),e.loadingRetryTimes[s]=(e.loadingRetryTimes[s]||0)+1,e.loadingRetryTimes[s]>=me){var Ee=e.state.loadedKeys;(0,x.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,A.L0)(Ee,s)}),S()}M(Ce)}),{loadingKeys:(0,A.L0)(oe,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),S=0;S1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!e.destroyed){var S=!1,M=!0,J={};Object.keys(o).forEach(function(Z){if(Z in e.props){M=!1;return}S=!0,J[Z]=o[Z]}),S&&(!s||M)&&e.setState((0,le.Z)((0,le.Z)({},J),a))}},e.scrollTo=function(o){e.listRef.current.scrollTo(o)},e}return(0,E.Z)(q,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var u=this.props,B=u.activeKey,j=u.itemScrollOffset,o=j===void 0?0:j;B!==void 0&&B!==this.state.activeKey&&(this.setState({activeKey:B}),B!==null&&this.scrollTo({key:B,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 u,B=this.state,j=B.focused,o=B.flattenNodes,s=B.keyEntities,a=B.draggingNodeKey,S=B.activeKey,M=B.dropLevelOffset,J=B.dropContainerKey,Z=B.dropTargetKey,T=B.dropPosition,F=B.dragOverNodeKey,oe=B.indent,p=this.props,ne=p.prefixCls,fe=p.className,de=p.style,Ce=p.showLine,Ee=p.focusable,Ke=p.tabIndex,Se=Ke===void 0?0:Ke,Oe=p.selectable,Me=p.showIcon,De=p.icon,Ne=p.switcherIcon,ke=p.draggable,Ie=p.checkable,Re=p.checkStrictly,we=p.disabled,Te=p.motion,Le=p.loadData,Ge=p.filterTreeNode,qe=p.height,_e=p.itemHeight,et=p.virtual,Xe=p.titleRender,Ae=p.dropIndicatorRender,Ye=p.onContextMenu,tt=p.onScroll,Qe=p.direction,nt=p.rootClassName,He=p.rootStyle,ot=(0,X.Z)(this.props,{aria:!0,data:!0}),Be;return ke&&((0,_.Z)(ke)==="object"?Be=ke:typeof ke=="function"?Be={nodeDraggable:ke}:Be={}),l.createElement($.k.Provider,{value:{prefixCls:ne,selectable:Oe,showIcon:Me,icon:De,switcherIcon:Ne,draggable:Be,draggingNodeKey:a,checkable:Ie,checkStrictly:Re,disabled:we,keyEntities:s,dropLevelOffset:M,dropContainerKey:J,dropTargetKey:Z,dropPosition:T,dragOverNodeKey:F,indent:oe,direction:Qe,dropIndicatorRender:Ae,loadData:Le,filterTreeNode:Ge,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:ee()(ne,fe,nt,(u={},(0,P.Z)(u,"".concat(ne,"-show-line"),Ce),(0,P.Z)(u,"".concat(ne,"-focused"),j),(0,P.Z)(u,"".concat(ne,"-active-focused"),S!==null),u)),style:He},l.createElement(ve,(0,d.Z)({ref:this.listRef,prefixCls:ne,style:de,data:o,disabled:we,selectable:Oe,checkable:!!Ie,motion:Te,dragging:a!==null,height:qe,itemHeight:_e,virtual:et,focusable:Ee,focused:j,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(u,B){var j=B.prevProps,o={prevProps:u};function s(Ee){return!j&&Ee in u||j&&j[Ee]!==u[Ee]}var a,S=B.fieldNames;if(s("fieldNames")&&(S=(0,y.w$)(u.fieldNames),o.fieldNames=S),s("treeData")?a=u.treeData:s("children")&&((0,x.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=(0,y.zn)(u.children)),a){o.treeData=a;var M=(0,y.I8)(a,{fieldNames:S});o.keyEntities=(0,le.Z)((0,P.Z)({},Y,H),M.keyEntities)}var J=o.keyEntities||B.keyEntities;if(s("expandedKeys")||j&&s("autoExpandParent"))o.expandedKeys=u.autoExpandParent||!j&&u.defaultExpandParent?(0,A.r7)(u.expandedKeys,J):u.expandedKeys;else if(!j&&u.defaultExpandAll){var Z=(0,le.Z)({},J);delete Z[Y],o.expandedKeys=Object.keys(Z).map(function(Ee){return Z[Ee].key})}else!j&&u.defaultExpandedKeys&&(o.expandedKeys=u.autoExpandParent||u.defaultExpandParent?(0,A.r7)(u.defaultExpandedKeys,J):u.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,a||o.expandedKeys){var T=(0,y.oH)(a||B.treeData,o.expandedKeys||B.expandedKeys,S);o.flattenNodes=T}if(u.selectable&&(s("selectedKeys")?o.selectedKeys=(0,A.BT)(u.selectedKeys,u):!j&&u.defaultSelectedKeys&&(o.selectedKeys=(0,A.BT)(u.defaultSelectedKeys,u))),u.checkable){var F;if(s("checkedKeys")?F=(0,A.E6)(u.checkedKeys)||{}:!j&&u.defaultCheckedKeys?F=(0,A.E6)(u.defaultCheckedKeys)||{}:a&&(F=(0,A.E6)(u.checkedKeys)||{checkedKeys:B.checkedKeys,halfCheckedKeys:B.halfCheckedKeys}),F){var oe=F,p=oe.checkedKeys,ne=p===void 0?[]:p,fe=oe.halfCheckedKeys,de=fe===void 0?[]:fe;if(!u.checkStrictly){var Ce=(0,pe.S)(ne,!0,J);ne=Ce.checkedKeys,de=Ce.halfCheckedKeys}o.checkedKeys=ne,o.halfCheckedKeys=de}}return s("loadedKeys")&&(o.loadedKeys=u.loadedKeys),o}}]),q}(l.Component);ce.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:te,allowDrop:function(){return!0},expandAction:!1},ce.TreeNode=I.Z;var be=ce,xe=be},31087:function($e,he,n){n.d(he,{BT:function(){return l},E6:function(){return re},L0:function(){return ue},OM:function(){return x},_5:function(){return U},r7:function(){return D},wA:function(){return ee},yx:function(){return ie}});var d=n(30360),P=n(97382),_=n(12868),le=n(50959),ye=n(36289),ge=n(55369),E=n(25237),z=null;function U(c,g){if(!c)return[];var L=c.slice(),N=L.indexOf(g);return N>=0&&L.splice(N,1),L}function ue(c,g){var L=(c||[]).slice();return L.indexOf(g)===-1&&L.push(g),L}function ie(c){return c.split("-")}function ee(c,g){var L=[],N=(0,ge.Z)(g,c);function I(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];k.forEach(function(y){var W=y.key,t=y.children;L.push(W),I(t)})}return I(N.children),L}function Q(c){if(c.parent){var g=ie(c.pos);return Number(g[g.length-1])===c.parent.children.length-1}return!1}function X(c){var g=ie(c.pos);return Number(g[g.length-1])===0}function x(c,g,L,N,I,k,y,W,t,K){var f,V=c.clientX,r=c.clientY,i=c.target.getBoundingClientRect(),h=i.top,m=i.height,Y=(K==="rtl"?-1:1)*(((I==null?void 0:I.x)||0)-V),se=(Y-12)/N,H=(0,ge.Z)(W,L.props.eventKey);if(r-1.5?k({dragNode:me,dropNode:ce,dropPosition:1})?A=1:be=!1:k({dragNode:me,dropNode:ce,dropPosition:0})?A=0:k({dragNode:me,dropNode:ce,dropPosition:1})?A=1:be=!1:k({dragNode:me,dropNode:ce,dropPosition:1})?A=1:be=!1,{dropPosition:A,dropLevelOffset:pe,dropTargetKey:H.key,dropTargetPos:H.pos,dragOverNodeKey:ve,dropContainerKey:A===0?null:((f=H.parent)===null||f===void 0?void 0:f.key)||null,dropAllowed:be}}function l(c,g){if(c){var L=g.multiple;return L?c.slice():c.length?[c[0]]:c}}var $=function(g){return g};function te(c,g){if(!c)return[];var L=g||{},N=L.processProps,I=N===void 0?$:N,k=Array.isArray(c)?c:[c];return k.map(function(y){var W=y.children,t=_objectWithoutProperties(y,z),K=te(W,g);return React.createElement(TreeNode,_extends({key:t.key},I(t)),K)})}function re(c){if(!c)return null;var g;if(Array.isArray(c))g={checkedKeys:c,halfCheckedKeys:void 0};else if((0,P.Z)(c)==="object")g={checkedKeys:c.checked||void 0,halfCheckedKeys:c.halfChecked||void 0};else return(0,_.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return g}function D(c,g){var L=new Set;function N(I){if(!L.has(I)){var k=(0,ge.Z)(g,I);if(k){L.add(I);var y=k.parent,W=k.node;W.disabled||y&&N(y.key)}}}return(c||[]).forEach(function(I){N(I)}),(0,d.Z)(L)}},27545:function($e,he,n){n.d(he,{S:function(){return E}});var d=n(12868),P=n(55369);function _(z,U){var ue=new Set;return z.forEach(function(ie){U.has(ie)||ue.add(ie)}),ue}function le(z){var U=z||{},ue=U.disabled,ie=U.disableCheckbox,ee=U.checkable;return!!(ue||ie)||ee===!1}function ye(z,U,ue,ie){for(var ee=new Set(z),Q=new Set,X=0;X<=ue;X+=1){var x=U.get(X)||new Set;x.forEach(function(re){var D=re.key,c=re.node,g=re.children,L=g===void 0?[]:g;ee.has(D)&&!ie(c)&&L.filter(function(N){return!ie(N.node)}).forEach(function(N){ee.add(N.key)})})}for(var l=new Set,$=ue;$>=0;$-=1){var te=U.get($)||new Set;te.forEach(function(re){var D=re.parent,c=re.node;if(!(ie(c)||!re.parent||l.has(re.parent.key))){if(ie(re.parent.node)){l.add(D.key);return}var g=!0,L=!1;(D.children||[]).filter(function(N){return!ie(N.node)}).forEach(function(N){var I=N.key,k=ee.has(I);g&&!k&&(g=!1),!L&&(k||Q.has(I))&&(L=!0)}),g&&ee.add(D.key),L&&Q.add(D.key),l.add(D.key)}})}return{checkedKeys:Array.from(ee),halfCheckedKeys:Array.from(_(Q,ee))}}function ge(z,U,ue,ie,ee){for(var Q=new Set(z),X=new Set(U),x=0;x<=ie;x+=1){var l=ue.get(x)||new Set;l.forEach(function(D){var c=D.key,g=D.node,L=D.children,N=L===void 0?[]:L;!Q.has(c)&&!X.has(c)&&!ee(g)&&N.filter(function(I){return!ee(I.node)}).forEach(function(I){Q.delete(I.key)})})}X=new Set;for(var $=new Set,te=ie;te>=0;te-=1){var re=ue.get(te)||new Set;re.forEach(function(D){var c=D.parent,g=D.node;if(!(ee(g)||!D.parent||$.has(D.parent.key))){if(ee(D.parent.node)){$.add(c.key);return}var L=!0,N=!1;(c.children||[]).filter(function(I){return!ee(I.node)}).forEach(function(I){var k=I.key,y=Q.has(k);L&&!y&&(L=!1),!N&&(y||X.has(k))&&(N=!0)}),L||Q.delete(c.key),N&&X.add(c.key),$.add(c.key)}})}return{checkedKeys:Array.from(Q),halfCheckedKeys:Array.from(_(X,Q))}}function E(z,U,ue,ie){var ee=[],Q;ie?Q=ie:Q=le;var X=new Set(z.filter(function(te){var re=!!(0,P.Z)(ue,te);return re||ee.push(te),re})),x=new Map,l=0;Object.keys(ue).forEach(function(te){var re=ue[te],D=re.level,c=x.get(D);c||(c=new Set,x.set(D,c)),c.add(re),l=Math.max(l,D)}),(0,d.ZP)(!ee.length,"Tree missing follow keys: ".concat(ee.slice(0,100).map(function(te){return"'".concat(te,"'")}).join(", ")));var $;return U===!0?$=ye(X,x,l,Q):$=ge(X,U.halfCheckedKeys,x,l,Q),$}},55369:function($e,he,n){n.d(he,{Z:function(){return d}});function d(P,_){return P[_]}},25237:function($e,he,n){n.d(he,{F:function(){return D},H8:function(){return re},I8:function(){return te},km:function(){return ee},oH:function(){return l},w$:function(){return Q},zn:function(){return x}});var d=n(97382),P=n(30360),_=n(35361),le=n(56929),ye=n(13763),ge=n(87017),E=n(12868),z=n(55369),U=["children"];function ue(c,g){return"".concat(c,"-").concat(g)}function ie(c){return c&&c.type&&c.type.isTreeNode}function ee(c,g){return c!=null?c:g}function Q(c){var g=c||{},L=g.title,N=g._title,I=g.key,k=g.children,y=L||"title";return{title:y,_title:N||[y],key:I||"key",children:k||"children"}}function X(c,g){var L=new Map;function N(I){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(I||[]).forEach(function(y){var W=y[g.key],t=y[g.children];warning(W!=null,"Tree node must have a certain key: [".concat(k).concat(W,"]"));var K=String(W);warning(!L.has(K)||W===null||W===void 0,"Same 'key' exist in the Tree: ".concat(K)),L.set(K,!0),N(t,"".concat(k).concat(K," > "))})}N(c)}function x(c){function g(L){var N=(0,ye.Z)(L);return N.map(function(I){if(!ie(I))return(0,E.ZP)(!I,"Tree/TreeNode can only accept TreeNode as children."),null;var k=I.key,y=I.props,W=y.children,t=(0,le.Z)(y,U),K=(0,_.Z)({key:k},t),f=g(W);return f.length&&(K.children=f),K}).filter(function(I){return I})}return g(c)}function l(c,g,L){var N=Q(L),I=N._title,k=N.key,y=N.children,W=new Set(g===!0?[]:g),t=[];function K(f){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return f.map(function(r,i){for(var h=ue(V?V.pos:"0",i),m=ee(r[k],h),Y,se=0;se1&&arguments[1]!==void 0?arguments[1]:{},L=g.initWrapper,N=g.processEntity,I=g.onProcessFinished,k=g.externalGetKey,y=g.childrenPropName,W=g.fieldNames,t=arguments.length>2?arguments[2]:void 0,K=k||t,f={},V={},r={posEntities:f,keyEntities:V};return L&&(r=L(r)||r),$(c,function(i){var h=i.node,m=i.index,Y=i.pos,se=i.key,H=i.parentPos,b=i.level,R=i.nodes,w={node:h,nodes:R,index:m,key:se,pos:Y,level:b},C=ee(se,Y);f[Y]=w,V[C]=w,w.parent=f[H],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),N&&N(w,r)},{externalGetKey:K,childrenPropName:y,fieldNames:W}),I&&I(r),r}function re(c,g){var L=g.expandedKeys,N=g.selectedKeys,I=g.loadedKeys,k=g.loadingKeys,y=g.checkedKeys,W=g.halfCheckedKeys,t=g.dragOverNodeKey,K=g.dropPosition,f=g.keyEntities,V=(0,z.Z)(f,c),r={eventKey:c,expanded:L.indexOf(c)!==-1,selected:N.indexOf(c)!==-1,loaded:I.indexOf(c)!==-1,loading:k.indexOf(c)!==-1,checked:y.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 g=c.data,L=c.expanded,N=c.selected,I=c.checked,k=c.loaded,y=c.loading,W=c.halfChecked,t=c.dragOver,K=c.dragOverGapTop,f=c.dragOverGapBottom,V=c.pos,r=c.active,i=c.eventKey,h=(0,_.Z)((0,_.Z)({},g),{},{expanded:L,selected:N,checked:I,loaded:k,loading:y,halfChecked:W,dragOver:t,dragOverGapTop:K,dragOverGapBottom:f,pos:V,active:r,key:i});return"props"in h||Object.defineProperty(h,"props",{get:function(){return(0,E.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),c}}),h}},52802:function($e,he,n){n.d(he,{Z:function(){return P}});var d=n(10422);function P(_,le,ye,ge){var E=d.unstable_batchedUpdates?function(U){d.unstable_batchedUpdates(ye,U)}:ye;return _!=null&&_.addEventListener&&_.addEventListener(le,E,ge),{remove:function(){_!=null&&_.removeEventListener&&_.removeEventListener(le,E,ge)}}}},74253:function($e,he,n){n.d(he,{g1:function(){return ie},os:function(){return Q}});var d=/margin|padding|width|height|max|min|offset/,P={left:!0,top:!0},_={cssFloat:1,styleFloat:1,float:1};function le(X){return X.nodeType===1?X.ownerDocument.defaultView.getComputedStyle(X,null):{}}function ye(X,x,l){if(x=x.toLowerCase(),l==="auto"){if(x==="height")return X.offsetHeight;if(x==="width")return X.offsetWidth}return x in P||(P[x]=d.test(x)),P[x]?parseFloat(l)||0:l}function ge(X,x){var l=arguments.length,$=le(X);return x=_[x]?"cssFloat"in X.style?"cssFloat":"styleFloat":x,l===1?$:ye(X,x,$[x]||X.style[x])}function E(X,x,l){var $=arguments.length;if(x=_[x]?"cssFloat"in X.style?"cssFloat":"styleFloat":x,$===3)return typeof l=="number"&&d.test(x)&&(l="".concat(l,"px")),X.style[x]=l,l;for(var te in x)x.hasOwnProperty(te)&&E(X,te,x[te]);return le(X)}function z(X){return X===document.body?document.documentElement.clientWidth:X.offsetWidth}function U(X){return X===document.body?window.innerHeight||document.documentElement.clientHeight:X.offsetHeight}function ue(){var X=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),x=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:X,height:x}}function ie(){var X=document.documentElement.clientWidth,x=window.innerHeight||document.documentElement.clientHeight;return{width:X,height:x}}function ee(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Q(X){var x=X.getBoundingClientRect(),l=document.documentElement;return{left:x.left+(window.pageXOffset||l.scrollLeft)-(l.clientLeft||document.body.clientLeft||0),top:x.top+(window.pageYOffset||l.scrollTop)-(l.clientTop||document.body.clientTop||0)}}}}]); diff --git a/139.47d4caf0.async.js b/139.47d4caf0.async.js new file mode 100644 index 0000000000..e8a3af9d70 --- /dev/null +++ b/139.47d4caf0.async.js @@ -0,0 +1,78 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[139],{7819:function(un,mt){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"};mt.Z=b},71506:function(un,mt){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"};mt.Z=b},9455:function(un,mt){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"};mt.Z=b},6053:function(un,mt,b){b.d(mt,{Z:function(){return qe}});var o=b(50959);function qe(_,de,ht){const vt=o.useRef({});function bt(Ft){if(!vt.current||vt.current.data!==_||vt.current.childrenColumnName!==de||vt.current.getRowKey!==ht){let Fe=function(ye){ye.forEach((rt,Jt)=>{const Ht=ht(rt,Jt);It.set(Ht,rt),rt&&typeof rt=="object"&&de in rt&&Fe(rt[de]||[])})};const It=new Map;Fe(_),vt.current={data:_,childrenColumnName:de,kvMap:It,getRowKey:ht}}return vt.current.kvMap.get(Ft)}return[bt]}},92307:function(un,mt,b){b.d(mt,{Z:function(){return Ya}});var o=b(50959),qe={},_="rc-table-internal-hook",de=b(959),ht=b(7748),vt=b(77189),bt=b(18342),Ft=b(10422);function It(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,de.Z)(i,1),f=d[0];return(0,vt.Z)(function(){(0,Ft.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 Fe(e,t){var n=(0,ht.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,de.Z)(i,2),f=d[1];return(0,vt.Z)(function(){if(!r)return;function u(v){var m=n(v);(0,bt.Z)(s.current,m,!0)||f({})}return a.add(u),function(){a.delete(u)}},[r]),s.current}var ye=b(27263),rt=b(12602);function Jt(){var e=o.createContext(null);function t(){return o.useContext(e)}function n(l,a){var c=(0,rt.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,ye.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,ye.Z)({},d,u))))};return c?o.forwardRef(s):s}function r(l,a){var c=(0,rt.Yr)(l),s=function(d,f){var u=c?{ref:f}:{};return t(),o.createElement(l,(0,ye.Z)({},d,u))};return c?o.memo(o.forwardRef(s),a):o.memo(s,a)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var Ht=Jt(),ur=Ht.makeImmutable,Bn=Ht.responseImmutable,fr=Ht.useImmutableMark,Nt=Jt(),fn=Nt.makeImmutable,kt=Nt.responseImmutable,Fn=Nt.useImmutableMark,Hn=It(),Xe=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,Cn=o.memo(function(){var e=Mn();return o.createElement("h1",null,"Render Times: ",e)});Cn.displayName="RenderBlock";var Tt=b(97382),P=b(35361),ne=b(88357),vr=b(82187),Q=b.n(vr),st=b(12554),Qt=b(85108),pr=b(12868),mn=o.createContext({renderWithProps:!1}),vn=mn,Kn="RC_TABLE_KEY";function Sn(e){return e==null?[]:Array.isArray(e)?e:[e]}function qt(e){var t=[],n={};return e.forEach(function(r){for(var l=r||{},a=l.key,c=l.dataIndex,s=a||Sn(c).join("-")||Kn;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function wn(e){return e!=null}function zn(e){return e&&(0,Tt.Z)(e)==="object"&&!Array.isArray(e)&&!o.isValidElement(e)}function pn(e,t,n,r,l,a){var c=o.useContext(vn),s=Fn(),i=(0,st.Z)(function(){if(wn(r))return[r];var d=t==null||t===""?[]:Array.isArray(t)?t:[t],f=(0,Qt.Z)(e,d),u=f,v=void 0;if(l){var m=l(f,e,n);zn(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,de.Z)(d,2),v=u[1],m=(0,de.Z)(f,2),p=m[1];return a(p,v)}return c.renderWithProps?!0:!(0,bt.Z)(d,f,!0)});return i}function Ln(e,t,n,r){var l=e+t-1;return e<=r&&l>=n}function q(e,t){return Fe(Xe,function(n){var r=Ln(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var pe=b(96771),fe=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 ue(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,R=e.index,k=e.rowType,O=e.colSpan,D=e.rowSpan,I=e.fixLeft,j=e.fixRight,$=e.firstFixLeft,w=e.lastFixLeft,h=e.firstFixRight,N=e.lastFixRight,F=e.appendNode,K=e.additionalProps,Z=K===void 0?{}:K,V=e.isSticky,re="".concat(m,"-cell"),z=Fe(Xe,["supportSticky","allColumnsFixedLeft"]),Y=z.supportSticky,Re=z.allColumnsFixedLeft,Ne=pn(g,y,C,f,S,T),Le=(0,de.Z)(Ne,2),ge=Le[0],X=Le[1],me={},Ie=typeof I=="number"&&Y,G=typeof j=="number"&&Y;Ie&&(me.position="sticky",me.left=I),G&&(me.position="sticky",me.right=j);var $e=(t=(n=(r=X==null?void 0:X.colSpan)!==null&&r!==void 0?r:Z.colSpan)!==null&&n!==void 0?n:O)!==null&&t!==void 0?t:1,L=(l=(a=(c=X==null?void 0:X.rowSpan)!==null&&c!==void 0?c:Z.rowSpan)!==null&&a!==void 0?a:D)!==null&&l!==void 0?l:1,A=q(R,L),M=(0,de.Z)(A,2),B=M[0],J=M[1],E=(0,pe.zX)(function(Je){var Se;g&&J(R,R+L-1),Z==null||(Se=Z.onMouseEnter)===null||Se===void 0||Se.call(Z,Je)}),W=(0,pe.zX)(function(Je){var Se;g&&J(-1,-1),Z==null||(Se=Z.onMouseLeave)===null||Se===void 0||Se.call(Z,Je)});if($e===0||L===0)return null;var le=(s=Z.title)!==null&&s!==void 0?s:fe({rowType:k,ellipsis:u,children:ge}),Ce=Q()(re,p,(i={},(0,ne.Z)(i,"".concat(re,"-fix-left"),Ie&&Y),(0,ne.Z)(i,"".concat(re,"-fix-left-first"),$&&Y),(0,ne.Z)(i,"".concat(re,"-fix-left-last"),w&&Y),(0,ne.Z)(i,"".concat(re,"-fix-left-all"),w&&Re&&Y),(0,ne.Z)(i,"".concat(re,"-fix-right"),G&&Y),(0,ne.Z)(i,"".concat(re,"-fix-right-first"),h&&Y),(0,ne.Z)(i,"".concat(re,"-fix-right-last"),N&&Y),(0,ne.Z)(i,"".concat(re,"-ellipsis"),u),(0,ne.Z)(i,"".concat(re,"-with-append"),F),(0,ne.Z)(i,"".concat(re,"-fix-sticky"),(Ie||G)&&V&&Y),(0,ne.Z)(i,"".concat(re,"-row-hover"),!X&&B),i),Z.className,X==null?void 0:X.className),oe={};x&&(oe.textAlign=x);var Ye=(0,P.Z)((0,P.Z)((0,P.Z)((0,P.Z)({},me),Z.style),oe),X==null?void 0:X.style),Ke=ge;return(0,Tt.Z)(Ke)==="object"&&!Array.isArray(Ke)&&!o.isValidElement(Ke)&&(Ke=null),u&&(w||h)&&(Ke=o.createElement("span",{className:"".concat(re,"-content")},Ke)),o.createElement(d,(0,ye.Z)({},X,Z,{className:Ce,style:Ye,title:le,scope:v,onMouseEnter:E,onMouseLeave:W,colSpan:$e!==1?$e:null,rowSpan:L!==1?L:null}),F,Ke)}var se=o.memo(ue);function ee(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 Ee=o.createContext({}),Ze=Ee;function Ge(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=Fe(Xe,["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=ee(n,n+S-1,p,m,f,x==null?void 0:x[n]);return o.createElement(se,(0,ye.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 He=b(56929),Mt=["children"];function _t(e){var t=e.children,n=(0,He.Z)(e,Mt);return o.createElement("tr",n,t)}function Ct(e){var t=e.children;return t}Ct.Row=_t,Ct.Cell=Ge;var en=Ct;function Kt(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,l=e.columns,a=Fe(Xe,"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 xt=kt(Kt),yt=en,St=b(34682),gn=b(95992),ct=b(5449),Zt=b(22692),tn=b(68924);function Ot(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?$-1:0),h=1;h<$;h++)w[h-1]=arguments[h];R==null||R.apply(void 0,[j].concat(w))},O;typeof m=="string"?O=m:typeof m=="function"&&(O=m(e,n,r));var D=qt(a);return(0,P.Z)((0,P.Z)({},l),{},{columnsKey:D,nestExpandable:p,expanded:S,hasNestChildren:y,record:e,onTriggerExpand:C,rowSupportExpand:x,expandable:g,rowProps:(0,P.Z)((0,P.Z)({},T),{},{className:Q()(O,T==null?void 0:T.className),onClick:k})})}function ot(e){var t=e.prefixCls,n=e.children,r=e.component,l=e.cellComponent,a=e.className,c=e.expanded,s=e.colSpan,i=e.isEmpty,d=Fe(Xe,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),f=d.scrollbarSize,u=d.fixHeader,v=d.fixColumn,m=d.componentWidth,p=d.horizonScroll,x=n;return(i?p&&m:v)&&(x=o.createElement("div",{style:{width:m-(u?f:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},x)),o.createElement(r,{className:a,style:{display:c?null:"none"}},o.createElement(se,{component:l,prefixCls:t,colSpan:s},x))}var _e=ot;function zt(e,t,n,r,l){var a=e.record,c=e.prefixCls,s=e.columnsKey,i=e.fixedInfoList,d=e.expandIconColumnIndex,f=e.nestExpandable,u=e.indentSize,v=e.expandIcon,m=e.expanded,p=e.hasNestChildren,x=e.onTriggerExpand,g=s[n],S=i[n],y;n===(d||0)&&f&&(y=o.createElement(o.Fragment,null,o.createElement("span",{style:{paddingLeft:"".concat(u*r,"px")},className:"".concat(c,"-row-indent indent-level-").concat(r)}),v({prefixCls:c,expanded:m,expandable:p,record:a,onExpand:x})));var C;return t.onCell&&(C=t.onCell(a,l)),{key:g,fixedInfo:S,appendCellNode:y,additionalCellProps:C||{}}}function wt(e){var t=e.className,n=e.style,r=e.record,l=e.index,a=e.renderIndex,c=e.rowKey,s=e.indent,i=s===void 0?0:s,d=e.rowComponent,f=e.cellComponent,u=e.scopeCellComponent,v=dt(r,c,l,i),m=v.prefixCls,p=v.flattenColumns,x=v.expandedRowClassName,g=v.expandedRowRender,S=v.rowProps,y=v.expanded,C=v.rowSupportExpand,T=o.useRef(!1);T.current||(T.current=y);var R=o.createElement(d,(0,ye.Z)({},S,{"data-row-key":c,className:Q()(t,"".concat(m,"-row"),"".concat(m,"-row-level-").concat(i),S==null?void 0:S.className),style:(0,P.Z)((0,P.Z)({},n),S==null?void 0:S.style)}),p.map(function(I,j){var $=I.render,w=I.dataIndex,h=I.className,N=zt(v,I,j,i,l),F=N.key,K=N.fixedInfo,Z=N.appendCellNode,V=N.additionalCellProps;return o.createElement(se,(0,ye.Z)({className:h,ellipsis:I.ellipsis,align:I.align,scope:I.rowScope,component:I.rowScope?u:f,prefixCls:m,key:F,record:r,index:l,renderIndex:a,dataIndex:w,render:$,shouldCellUpdate:I.shouldCellUpdate},K,{appendNode:Z,additionalProps:V}))})),k;if(C&&(T.current||y)){var O=g(r,l,i+1,y),D=x&&x(r,l,i);k=o.createElement(_e,{expanded:y,className:Q()("".concat(m,"-expanded-row"),"".concat(m,"-expanded-row-level-").concat(i+1),D),prefixCls:m,component:d,cellComponent:f,colSpan:p.length,isEmpty:!1},O)}return o.createElement(o.Fragment,null,R,k)}wt.displayName="BodyRow";var hn=kt(wt);function Me(e){var t=e.columnKey,n=e.onColumnResize,r=o.useRef();return o.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),o.createElement(St.Z,{data:t},o.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function rn(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return o.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},o.createElement(St.Z.Collection,{onBatchResize:function(a){a.forEach(function(c){var s=c.data,i=c.size;r(s,i.offsetWidth)})}},n.map(function(l){return o.createElement(Me,{key:l,columnKey:l,onColumnResize:r})})))}function Lt(e){var t=e.data,n=e.measureColumnWidth,r=Fe(Xe,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),l=r.prefixCls,a=r.getComponent,c=r.onColumnResize,s=r.flattenColumns,i=r.getRowKey,d=r.expandedKeys,f=r.childrenColumnName,u=r.emptyNode,v=nn(t,f,d,i),m=o.useRef({renderWithProps:!1}),p=a(["body","wrapper"],"tbody"),x=a(["body","row"],"tr"),g=a(["body","cell"],"td"),S=a(["body","cell"],"th"),y;t.length?y=v.map(function(T,R){var k=T.record,O=T.indent,D=T.index,I=i(k,R);return o.createElement(hn,{key:I,rowKey:I,record:k,index:R,renderIndex:D,rowComponent:x,cellComponent:g,scopeCellComponent:S,getRowKey:i,indent:O})}):y=o.createElement(_e,{expanded:!0,className:"".concat(l,"-placeholder"),prefixCls:l,component:x,cellComponent:g,colSpan:s.length,isEmpty:!0},u);var C=qt(s);return o.createElement(vn.Provider,{value:m.current},o.createElement(p,{className:"".concat(l,"-tbody")},n&&o.createElement(rn,{prefixCls:l,columnsKey:C,onColumnResize:c}),y))}Lt.displayName="Body";var on=kt(Lt),Dn=["expandable"],Dt="RC_TABLE_INTERNAL_COL_DEFINE";function ut(e){var t=e.expandable,n=(0,He.Z)(e,Dn),r;return"expandable"in e?r=(0,P.Z)((0,P.Z)({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var xo=["columnType"];function yo(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,l=[],a=r||n.length,c=!1,s=a-1;s>=0;s-=1){var i=t[s],d=n&&n[s],f=d&&d[Dt];if(i||f||c){var u=f||{},v=u.columnType,m=(0,He.Z)(u,xo);l.unshift(o.createElement("col",(0,ye.Z)({key:s,style:{width:i}},m))),c=!0}}return o.createElement("colgroup",null,l)}var gr=yo,be=b(30360),bo=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Co(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"}))}))}yr.displayName="HeaderRow";var So=yr;function wo(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 $o(e,t,n){return o.useMemo(function(){if(t&&t>0){var r=0,l=0;e.forEach(function(v){var m=Cr(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=Cr(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,Tt.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,be.Z)(n),(0,be.Z)(An(i,s).map(function(d){return(0,P.Z)({fixed:c},d)}))):[].concat((0,be.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 ko(e){return e.map(function(t){var n=t.fixed,r=(0,He.Z)(t,No),l=n;return n==="left"?l="right":n==="right"&&(l="left"),(0,P.Z)({fixed:l},r)})}function To(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 $,w=C.slice();if(!w.includes(qe)){var h=v||0;h>=0&&w.splice(h,0,qe)}var N=w.indexOf(qe);w=w.filter(function(V,re){return V!==qe||re===N});var F=C[N],K;(g==="left"||g)&&!v?K="left":(g==="right"||g)&&v===C.length?K="right":K=F?F.fixed:null;var Z=($={},(0,ne.Z)($,Dt,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,ne.Z)($,"title",s),(0,ne.Z)($,"fixed",K),(0,ne.Z)($,"className","".concat(n,"-row-expand-icon-cell")),(0,ne.Z)($,"width",x),(0,ne.Z)($,"render",function(re,z,Y){var Re=i(z,Y),Ne=c.has(Re),Le=u?u(z):!0,ge=f({prefixCls:n,expanded:Ne,expandable:Le,record:z,onExpand:d});return p?o.createElement("span",{onClick:function(me){return me.stopPropagation()}},ge):ge}),$);return w.map(function(V){return V===qe?Z:V})}return C.filter(function(V){return V!==qe})},[a,C,i,c,f,m]),R=o.useMemo(function(){var $=T;return t&&($=t($)),$.length||($=[{render:function(){return null}}]),$},[t,T,m]),k=o.useMemo(function(){return m==="rtl"?ko(An(R)):An(R)},[R,m,S]),O=$o(k,S,y),D=(0,de.Z)(O,2),I=D[0],j=D[1];return[R,I,j]}var Zo=To;function Oo(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:Q()(s,"".concat(n,"-row-spaced"))});var i=function(f){l(r,f),f.stopPropagation()};return o.createElement("span",{className:Q()(s,(t={},(0,ne.Z)(t,"".concat(n,"-row-expanded"),a),(0,ne.Z)(t,"".concat(n,"-row-collapsed"),!a),t)),onClick:i})}function Po(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 Bo(e,t,n){var r=ut(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||Oo,m=u||"children",p=o.useMemo(function(){return i?"row":e.expandable&&e.internalHooks===_&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(R){return R&&(0,Tt.Z)(R)==="object"&&R[m]})?"nest":!1},[!!i,t]),x=o.useState(function(){return c||(s?Po(t,n,m):[])}),g=(0,de.Z)(x,2),S=g[0],y=g[1],C=o.useMemo(function(){return new Set(a||S||[])},[a,S]),T=o.useCallback(function(R){var k=n(R,t.indexOf(R)),O,D=C.has(k);D?(C.delete(k),O=(0,be.Z)(C)):O=[].concat((0,be.Z)(C),[k]),y(O),d&&d(!D,R),f&&f(O)},[n,C,t,d,f]);return[r,p,C,v,m,T]}function Fo(e,t,n,r){var l=e.map(function(a,c){return ee(c,c,e,t,n,r==null?void 0:r[c])});return(0,st.Z)(function(){return l},[l],function(a,c){return!(0,bt.Z)(a,c)})}function Sr(e){var t=(0,o.useRef)(e),n=(0,o.useState)({}),r=(0,de.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 Ho(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 Mo(){var e=o.useState(-1),t=(0,de.Z)(e,2),n=t[0],r=t[1],l=o.useState(-1),a=(0,de.Z)(l,2),c=a[0],s=a[1],i=o.useCallback(function(d,f){r(d),s(f)},[]);return[n,c,i]}var Ko=b(63490),wr=(0,Ko.Z)()?window:null;function zo(e,t){var n=(0,Tt.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 wr}:d,u=f()||wr;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 Lo(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,Rr.os)(a.current).top,N=h+a.current.offsetHeight,F=i===window?document.documentElement.scrollTop+window.innerHeight:(0,Rr.os)(i).top+i.clientHeight;N-(0,Zt.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})})}},$=function(h){S(function(N){return(0,P.Z)((0,P.Z)({},N),{},{scrollLeft:h/f*u||0})})};return o.useImperativeHandle(n,function(){return{setScrollLeft:$}}),o.useEffect(function(){var w=(0,En.Z)(document.body,"mouseup",O,!1),h=(0,En.Z)(document.body,"mousemove",I,!1);return j(),function(){w.remove(),h.remove()}},[v,R]),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,Zt.Z)(),width:u,bottom:s},className:"".concat(d,"-sticky-scroll")},o.createElement("div",{onMouseDown:D,ref:m,className:Q()("".concat(d,"-sticky-scroll-bar"),(0,ne.Z)({},"".concat(d,"-sticky-scroll-bar-active"),R)),style:{width:"".concat(v,"px"),transform:"translate3d(".concat(g.scrollLeft,"px, 0, 0)")}}))},Wo=o.forwardRef(Ao);function Vo(e){return null}var Xo=Vo;function Uo(e){return null}var Go=Uo,$r="rc-table",Yo=[],Jo={};function Qo(){return"No Data"}function qo(e,t){var n,r=(0,P.Z)({rowKey:"key",prefixCls:$r,emptyText:Qo},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,R=r.onRow,k=r.onHeaderRow,O=r.internalHooks,D=r.transformColumns,I=r.internalRefs,j=r.tailor,$=r.getContainerWidth,w=r.sticky,h=i||Yo,N=!!h.length,F=O===_,K=o.useCallback(function(te,ie){return(0,Qt.Z)(C,te)||ie},[C]),Z=o.useMemo(function(){return typeof d=="function"?d:function(te){var ie=te&&te[d];return ie}},[d]),V=K(["body"]),re=Mo(),z=(0,de.Z)(re,3),Y=z[0],Re=z[1],Ne=z[2],Le=Bo(r,h,Z),ge=(0,de.Z)(Le,6),X=ge[0],me=ge[1],Ie=ge[2],G=ge[3],$e=ge[4],L=ge[5],A=f==null?void 0:f.x,M=o.useState(0),B=(0,de.Z)(M,2),J=B[0],E=B[1],W=Zo((0,P.Z)((0,P.Z)((0,P.Z)({},r),X),{},{expandable:!!X.expandedRowRender,columnTitle:X.columnTitle,expandedKeys:Ie,getRowKey:Z,onTriggerExpand:L,expandIcon:G,expandIconColumnIndex:X.expandIconColumnIndex,direction:v,scrollWidth:F&&j&&typeof A=="number"?A:null,clientWidth:J}),F?D:null),le=(0,de.Z)(W,3),Ce=le[0],oe=le[1],Ye=le[2],Ke=Ye!=null?Ye:A,Je=o.useMemo(function(){return{columns:Ce,flattenColumns:oe}},[Ce,oe]),Se=o.useRef(),De=o.useRef(),he=o.useRef(),sn=o.useRef();o.useImperativeHandle(t,function(){return{nativeElement:Se.current,scrollTo:function(ie){var Qe;if(he.current instanceof HTMLElement){var Ue=ie.index,gt=ie.top,dn=ie.key;if(gt){var Gt;(Gt=he.current)===null||Gt===void 0||Gt.scrollTo({top:gt})}else{var Yt,bn=dn!=null?dn:Z(h[Ue]);(Yt=he.current.querySelector('[data-row-key="'.concat(bn,'"]')))===null||Yt===void 0||Yt.scrollIntoView()}}else(Qe=he.current)!==null&&Qe!==void 0&&Qe.scrollTo&&he.current.scrollTo(ie)}}});var At=o.useRef(),Wt=o.useState(!1),ae=(0,de.Z)(Wt,2),we=ae[0],ve=ae[1],je=o.useState(!1),ke=(0,de.Z)(je,2),xe=ke[0],Te=ke[1],Oe=Sr(new Map),et=(0,de.Z)(Oe,2),Rt=et[0],pt=et[1],Pe=qt(oe),Vt=Pe.map(function(te){return Rt.get(te)}),Xt=o.useMemo(function(){return Vt},[Vt.join("_")]),Ve=Do(Xt,oe.length,v),ze=f&&wn(f.y),Ae=f&&wn(Ke)||!!X.fixed,$t=Ae&&oe.some(function(te){var ie=te.fixed;return ie}),Bt=o.useRef(),tt=zo(w,l),ft=tt.isSticky,nr=tt.offsetHeader,rr=tt.offsetSummary,or=tt.offsetScroll,lr=tt.stickyClassName,Tn=tt.container,lt=o.useMemo(function(){return x==null?void 0:x(h)},[x,h]),U=(ze||ft)&&o.isValidElement(lt)&<.type===en&<.props.fixed,ce,Be,We;ze&&(Be={overflowY:"scroll",maxHeight:f.y}),Ae&&(ce={overflowX:"auto"},ze||(Be={overflowY:"hidden"}),We={width:Ke===!0?"auto":Ke,minWidth:"100%"});var nt=o.useCallback(function(te,ie){(0,gn.Z)(Se.current)&&pt(function(Qe){if(Qe.get(te)!==ie){var Ue=new Map(Qe);return Ue.set(te,ie),Ue}return Qe})},[]),at=Ho(null),it=(0,de.Z)(at,2),Ut=it[0],no=it[1];function Zn(te,ie){ie&&(typeof ie=="function"?ie(te):ie.scrollLeft!==te&&(ie.scrollLeft=te,ie.scrollLeft!==te&&setTimeout(function(){ie.scrollLeft=te},0)))}var cn=(0,ht.Z)(function(te){var ie=te.currentTarget,Qe=te.scrollLeft,Ue=v==="rtl",gt=typeof Qe=="number"?Qe:ie.scrollLeft,dn=ie||Jo;if(!no()||no()===dn){var Gt;Ut(dn),Zn(gt,De.current),Zn(gt,he.current),Zn(gt,At.current),Zn(gt,(Gt=Bt.current)===null||Gt===void 0?void 0:Gt.setScrollLeft)}var Yt=ie||De.current;if(Yt){var bn=Yt.scrollWidth,dr=Yt.clientWidth;if(bn===dr){ve(!1),Te(!1);return}Ue?(ve(-gt0)):(ve(gt>0),Te(gt1?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:N,pointerEvents:"auto"}),K=o.useMemo(function(){return f?$<=1:I===0||$===0||$>1},[$,I,f]);K?F.visibility="hidden":f&&(F.height=u==null?void 0:u($));var Z=K?function(){return null}:v,V={};return($===0||I===0)&&(V.rowSpan=1,V.colSpan=1),o.createElement(se,(0,ye.Z)({className:Q()(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:R,additionalProps:(0,P.Z)((0,P.Z)({},k),{},{style:F},V)}))}var ol=rl,ll=["data","index","className","rowKey","style","extra","getHeight"],al=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,He.Z)(e,ll),f=n.record,u=n.indent,v=n.index,m=Fe(Xe,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),p=m.scrollX,x=m.flattenColumns,g=m.prefixCls,S=m.fixColumn,y=m.componentWidth,C=dt(f,a,r,u),T=C.rowSupportExpand,R=C.expanded,k=C.rowProps,O=C.expandedRowRender,D=C.expandedRowClassName,I;if(T&&R){var j=O(f,r,u+1,R),$=D==null?void 0:D(f,r,u),w={};S&&(w={style:(0,ne.Z)({},"--virtual-width","".concat(y,"px"))});var h="".concat(g,"-expanded-row-cell");I=o.createElement("div",{className:Q()("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(u+1),$)},o.createElement(se,{component:"div",prefixCls:g,className:Q()(h,(0,ne.Z)({},"".concat(h,"-fixed"),S)),additionalProps:w},j))}var N=(0,P.Z)((0,P.Z)({},c),{},{width:p});s&&(N.position="absolute",N.pointerEvents="none");var F=o.createElement("div",(0,ye.Z)({},k,d,{ref:T?null:t,className:Q()(l,"".concat(g,"-row"),k==null?void 0:k.className,(0,ne.Z)({},"".concat(g,"-row-extra"),s)),style:(0,P.Z)((0,P.Z)({},N),k==null?void 0:k.style)}),x.map(function(K,Z){return o.createElement(ol,{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,I):F}),il=kt(al),Tr=il,sl=o.forwardRef(function(e,t){var n=e.data,r=e.onScroll,l=Fe(Xe,["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=Fe(Nr),p=m.sticky,x=m.scrollY,g=m.listItemHeight,S=o.useRef(),y=nn(n,f,i,s),C=o.useMemo(function(){var $=0;return a.map(function(w){var h=w.width,N=w.key;return $+=h,[N,h,$]})},[a]),T=o.useMemo(function(){return C.map(function($){return $[2]})},[C]);o.useEffect(function(){C.forEach(function($){var w=(0,de.Z)($,2),h=w[0],N=w[1];c(h,N)})},[C]),o.useImperativeHandle(t,function(){var $={scrollTo:function(h){var N;(N=S.current)===null||N===void 0||N.scrollTo(h)}};return Object.defineProperty($,"scrollLeft",{get:function(){var h;return((h=S.current)===null||h===void 0?void 0:h.getScrollInfo().x)||0},set:function(h){var N;(N=S.current)===null||N===void 0||N.scrollTo({left:h})}}),$});var R=function(w,h){var N,F=(N=y[h])===null||N===void 0?void 0:N.record,K=w.onCell;if(K){var Z,V=K(F,h);return(Z=V==null?void 0:V.rowSpan)!==null&&Z!==void 0?Z:1}return 1},k=function(w){var h=w.start,N=w.end,F=w.getSize,K=w.offsetY;if(N<0)return null;for(var Z=a.filter(function(G){return R(G,h)===0}),V=h,re=function($e){if(Z=Z.filter(function(L){return R(L,$e)===0}),!Z.length)return V=$e,1},z=h;z>=0&&!re(z);z-=1);for(var Y=a.filter(function(G){return R(G,N)!==1}),Re=N,Ne=function($e){if(Y=Y.filter(function(L){return R(L,$e)!==1}),!Y.length)return Re=Math.max($e-1,N),1},Le=N;Le1})&&ge.push($e)},me=V;me<=Re;me+=1)X(me);var Ie=ge.map(function(G){var $e=y[G],L=s($e.record,G),A=function(J){var E=G+J-1,W=s(y[E].record,E),le=F(L,W);return le.bottom-le.top},M=F(L);return o.createElement(Tr,{key:G,data:$e,rowKey:L,index:G,style:{top:-K+M.top},extra:!0,getHeight:A})});return Ie},O=o.useMemo(function(){return{columnsOffset:T}},[T]),D="".concat(d,"-tbody"),I;if(y.length){var j={};p&&(j.position="sticky",j.bottom=0,(0,Tt.Z)(p)==="object"&&p.offsetScroll&&(j.bottom=p.offsetScroll)),I=o.createElement(tl.Z,{fullHeight:!1,ref:S,styles:{horizontalScrollBar:j},className:Q()(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:k},function($,w,h){var N=s($.record,w);return o.createElement(Tr,(0,ye.Z)({data:$,rowKey:N,index:w},h))})}else I=o.createElement("div",{className:Q()("".concat(d,"-placeholder"))},o.createElement(se,{component:"div",prefixCls:d},u));return o.createElement(kr.Provider,{value:O},I)}),cl=kt(sl),dl=cl,ul=function(t,n){var r=n.ref,l=n.onScroll;return o.createElement(dl,{ref:r,data:t,onScroll:l})};function fl(e,t){var n=e.columns,r=e.scroll,l=e.sticky,a=e.prefixCls,c=a===void 0?$r: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(Nr.Provider,{value:m},o.createElement(el,(0,ye.Z)({},e,{className:Q()(s,"".concat(c,"-virtual")),scroll:(0,P.Z)((0,P.Z)({},r),{},{x:u}),components:(0,P.Z)((0,P.Z)({},d),{},{body:ul}),columns:n,internalHooks:_,tailor:!0,ref:t})))}var ml=o.forwardRef(fl);function Zr(e){return fn(ml,e)}var li=Zr(),ai=null;function vl(e){return null}var pl=vl;function gl(e){return null}var hl=gl,xl=b(85824),Or=b(31087),Wn=b(27545),yl=b(25237),bl=b(65589);function Cl(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(14107),Rn=b(9308),Pr=b(92965),Br=b(3590);const Pt={},Xn="SELECT_ALL",Un="SELECT_INVERT",Gn="SELECT_NONE",Fr=[],Hr=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat((0,be.Z)(n),(0,be.Z)(Hr(e,r[e]))))}),n};var Sl=(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:R,getRecordByKey:k,getRowKey:O,expandType:D,childrenColumnName:I,locale:j,getPopupContainer:$}=e,w=(0,Vn.ln)("Table"),[h,N]=Cl(L=>L),[F,K]=(0,bl.Z)(r||l||Fr,{value:r}),Z=o.useRef(new Map),V=(0,o.useCallback)(L=>{if(n){const A=new Map;L.forEach(M=>{let B=k(M);!B&&Z.current.has(M)&&(B=Z.current.get(M)),A.set(M,B)}),Z.current=A}},[k,n]);o.useEffect(()=>{V(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,J)=>O(B,J))),M=Array.from(Z.current).reduce((B,J)=>{let[E,W]=J;return A.has(E)?B:B.concat(W)},[]);L=[].concat((0,be.Z)(L),(0,be.Z)(M))}return(0,yl.I8)(L,{externalGetKey:O,childrenPropName:I})},[T,O,y,I,n]),z=(0,o.useMemo)(()=>Hr(I,R),[I,R]),Y=(0,o.useMemo)(()=>{const L=new Map;return z.forEach((A,M)=>{const B=O(A,M),J=(a?a(A):null)||{};L.set(B,J)}),L},[z,O,a]),Re=(0,o.useCallback)(L=>{var A;return!!(!((A=Y.get(O(L)))===null||A===void 0)&&A.disabled)},[Y,O]),[Ne,Le]=(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]),ge=(0,o.useMemo)(()=>{const L=m==="radio"?Ne.slice(0,1):Ne;return new Set(L)},[Ne,m]),X=(0,o.useMemo)(()=>m==="radio"?new Set:new Set(Le),[Le,m]);o.useEffect(()=>{t||K(Fr)},[!!t]);const me=(0,o.useCallback)((L,A)=>{let M,B;V(L),n?(M=L,B=L.map(J=>Z.current.get(J))):(M=[],B=[],L.forEach(J=>{const E=k(J);E!==void 0&&(M.push(J),B.push(E))})),K(M),c==null||c(M,B,{type:A})},[K,k,c,n]),Ie=(0,o.useCallback)((L,A,M,B)=>{if(s){const J=M.map(E=>k(E));s(k(L),A,J,B)}me(M,"single")},[s,k,me]),G=(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=Y.get(M);return!(B!=null&&B.disabled)||ge.has(M)}),"all")}}:A===Un?{key:"invert",text:j.selectInvert,onSelect(){const M=new Set(ge);R.forEach((J,E)=>{const W=O(J,E),le=Y.get(W);le!=null&&le.disabled||(M.has(W)?M.delete(W):M.add(W))});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(ge).filter(M=>{const B=Y.get(M);return B==null?void 0:B.disabled}),"none")}}:A).map(A=>Object.assign(Object.assign({},A),{onSelect:function(){for(var M,B,J=arguments.length,E=new Array(J),W=0;W{var A;if(!t)return L.filter(ae=>ae!==Pt);let M=(0,be.Z)(L);const B=new Set(ge),J=z.map(O).filter(ae=>!Y.get(ae).disabled),E=J.every(ae=>B.has(ae)),W=J.some(ae=>B.has(ae)),le=()=>{const ae=[];E?J.forEach(ve=>{B.delete(ve),ae.push(ve)}):J.forEach(ve=>{B.has(ve)||(B.add(ve),ae.push(ve))});const we=Array.from(B);i==null||i(!E,we.map(ve=>k(ve)),ae.map(ve=>k(ve))),me(we,"all"),N(null)};let Ce,oe;if(m!=="radio"){let ae;if(G){const xe={getPopupContainer:$,items:G.map((Te,Oe)=>{const{key:et,text:Rt,onSelect:pt}=Te;return{key:et!=null?et:Oe,onClick:()=>{pt==null||pt(J)},label:Rt}})};ae=o.createElement("div",{className:`${C}-selection-extra`},o.createElement(Pr.Z,{menu:xe,getPopupContainer:$},o.createElement("span",null,o.createElement(xl.Z,null))))}const we=z.map((xe,Te)=>{const Oe=O(xe,Te),et=Y.get(Oe)||{};return Object.assign({checked:B.has(Oe)},et)}).filter(xe=>{let{disabled:Te}=xe;return Te}),ve=!!we.length&&we.length===z.length,je=ve&&we.every(xe=>{let{checked:Te}=xe;return Te}),ke=ve&&we.some(xe=>{let{checked:Te}=xe;return Te});oe=o.createElement(Rn.Z,{checked:ve?je:!!z.length&&E,indeterminate:ve?!je&&ke:!E&&W,onChange:le,disabled:z.length===0||ve,"aria-label":ae?"Custom selection":"Select all",skipGroup:!0}),Ce=!S&&o.createElement("div",{className:`${C}-selection`},oe,ae)}let Ye;m==="radio"?Ye=(ae,we,ve)=>{const je=O(we,ve),ke=B.has(je);return{node:o.createElement(Br.ZP,Object.assign({},Y.get(je),{checked:ke,onClick:xe=>xe.stopPropagation(),onChange:xe=>{B.has(je)||Ie(je,!0,[je],xe.nativeEvent)}})),checked:ke}}:Ye=(ae,we,ve)=>{var je;const ke=O(we,ve),xe=B.has(ke),Te=X.has(ke),Oe=Y.get(ke);let et;return D==="nest"?et=Te:et=(je=Oe==null?void 0:Oe.indeterminate)!==null&&je!==void 0?je:Te,{node:o.createElement(Rn.Z,Object.assign({},Oe,{indeterminate:et,checked:xe,skipGroup:!0,onClick:Rt=>Rt.stopPropagation(),onChange:Rt=>{let{nativeEvent:pt}=Rt;const{shiftKey:Pe}=pt,Vt=J.findIndex(Ve=>Ve===ke),Xt=Ne.some(Ve=>J.includes(Ve));if(Pe&&y&&Xt){const Ve=h(Vt,J,B),ze=Array.from(B);u==null||u(!xe,ze.map(Ae=>k(Ae)),Ve.map(Ae=>k(Ae))),me(ze,"multiple")}else{const Ve=Ne;if(y){const ze=xe?(0,Or._5)(Ve,ke):(0,Or.L0)(Ve,ke);Ie(ke,!xe,ze,pt)}else{const ze=(0,Wn.S)([].concat((0,be.Z)(Ve),[ke]),!0,re,Re),{checkedKeys:Ae,halfCheckedKeys:$t}=ze;let Bt=Ae;if(xe){const tt=new Set(Ae);tt.delete(ke),Bt=(0,Wn.S)(Array.from(tt),{checked:!1,halfCheckedKeys:$t},re,Re).checkedKeys}Ie(ke,!xe,Bt,pt)}}N(xe?null:Vt)}})),checked:xe}};const Ke=(ae,we,ve)=>{const{node:je,checked:ke}=Ye(ae,we,ve);return g?g(ke,we,ve,je):je};if(!M.includes(Pt))if(M.findIndex(ae=>{var we;return((we=ae[Dt])===null||we===void 0?void 0:we.columnType)==="EXPAND_COLUMN"})===0){const[ae,...we]=M;M=[ae,Pt].concat((0,be.Z)(we))}else M=[Pt].concat((0,be.Z)(M));const Je=M.indexOf(Pt);M=M.filter((ae,we)=>ae!==Pt||we===Je);const Se=M[Je-1],De=M[Je+1];let he=x;he===void 0&&((De==null?void 0:De.fixed)!==void 0?he=De.fixed:(Se==null?void 0:Se.fixed)!==void 0&&(he=Se.fixed)),he&&Se&&((A=Se[Dt])===null||A===void 0?void 0:A.columnType)==="EXPAND_COLUMN"&&Se.fixed===void 0&&(Se.fixed=he);const sn=Q()(`${C}-selection-col`,{[`${C}-selection-col-with-dropdown`]:p&&m==="checkbox"}),At=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(oe):t.columnTitle:Ce,Wt={fixed:he,width:v,className:`${C}-selection-column`,title:At(),render:Ke,onCell:t.onCell,[Dt]:{className:sn}};return M.map(ae=>ae===Pt?Wt:ae)},[O,z,t,Ne,ge,X,v,G,D,Y,u,Ie,Re]),ge]},wl=b(87017);function El(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 Rl(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)}}):El(r,n)})}var Mr=b(28449);function $l(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 Il(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 Nl(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=Il(a,!0),s=Date.now(),i=()=>{const f=Date.now()-s,u=$l(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:Q()(i,{[`${i}-spaced`]:!s,[`${i}-expanded`]:s&&c,[`${i}-collapsed`]:s&&!c}),"aria-label":c?e.collapse:e.expand,"aria-expanded":c})}}var Kl=Ml;function zl(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 jt(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 xn(e,t){return t?`${t}-${e}`:`${e}`}function $n(e,t){return typeof e=="function"?e(t):e}function Ll(e,t){const n=$n(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n}var Dl={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"},jl=Dl,Jn=b(38782),Al=function(t,n){return o.createElement(Jn.Z,(0,ye.Z)({},t,{ref:n,icon:jl}))},Wl=o.forwardRef(Al),Vl=b(97950);function Xl(e){const t=o.useRef(e),n=(0,Vl.Z)();return[()=>t.current,r=>{t.current=r,n()}]}var zr=b(86865),Lr=b(72171),Ul=b(68865),Gl=b(87554),Yl=b(44566),Jl=b(61020),Ql=b(21713);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(Ql.Z,{prefix:o.createElement(Jl.Z,null),placeholder:a.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,className:`${l}-filter-dropdown-search-input`})):null}var Dr=ql,jr=b(57);const _l=e=>{const{keyCode:t}=e;t===jr.Z.ENTER&&e.stopPropagation()};var ea=o.forwardRef((e,t)=>o.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:_l,ref:t},e.children));function an(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:l}=n;t.push(r),l&&(t=[].concat((0,be.Z)(t),(0,be.Z)(an(l))))}),t}function ta(e){return e.some(t=>{let{children:n}=t;return n})}function Ar(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function Wr(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:Wr({filters:s.children,prefixCls:n,filteredKeys:r,filterMultiple:l,searchValue:a,filterSearch:c})};const f=l?Rn.Z:Br.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:Ar(a,s.text)?u:null:u})}function Qn(e){return e||[]}function na(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:R,onFilterDropdownVisibleChange:k}=a,[O,D]=o.useState(!1),I=!!(u&&(!((t=u.filteredKeys)===null||t===void 0)&&t.length||u.forceFiltered)),j=E=>{D(E),y==null||y(E),k==null||k(E)},$=(n=S!=null?S:R)!==null&&n!==void 0?n:O,w=u==null?void 0:u.filteredKeys,[h,N]=Xl(Qn(w)),F=E=>{let{selectedKeys:W}=E;N(W)},K=(E,W)=>{let{node:le,checked:Ce}=W;F(i?{selectedKeys:E}:{selectedKeys:Ce&&le.key?[le.key]:[]})};o.useEffect(()=>{O&&F({selectedKeys:Qn(w)})},[w]);const[Z,V]=o.useState([]),re=E=>{V(E)},[z,Y]=o.useState(""),Re=E=>{const{value:W}=E.target;Y(W)};o.useEffect(()=>{O||Y("")},[O]);const Ne=E=>{const W=E&&E.length?E:null;if(W===null&&(!u||!u.filteredKeys)||(0,bt.Z)(W,u==null?void 0:u.filteredKeys,!0))return null;v({column:a,key:s,filteredKeys:W})},Le=()=>{j(!1),Ne(h())},ge=function(){let{confirm:E,closeDropdown:W}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};E&&Ne([]),W&&j(!1),Y(""),N(C?(T||[]).map(le=>String(le)):[])},X=function(){let{closeDropdown:E}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};E&&j(!1),Ne(h())},me=(E,W)=>{W.source==="trigger"&&(E&&w!==void 0&&N(Qn(w)),j(E),!E&&!a.filterDropdown&&Le())},Ie=Q()({[`${c}-menu-without-submenu`]:!ta(a.filters||[])}),G=E=>{if(E.target.checked){const W=an(a==null?void 0:a.filters).map(le=>String(le));N(W)}else N([])},$e=E=>{let{filters:W}=E;return(W||[]).map((le,Ce)=>{const oe=String(le.value),Ye={title:le.text,key:le.value!==void 0?oe:String(Ce)};return le.children&&(Ye.children=$e({filters:le.children})),Ye})},L=E=>{var W;return Object.assign(Object.assign({},E),{text:E.title,value:E.key,children:((W=E.children)===null||W===void 0?void 0:W.map(le=>L(le)))||[]})};let A;if(typeof a.filterDropdown=="function")A=a.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:E=>F({selectedKeys:E}),selectedKeys:h(),confirm:X,clearFilters:ge,filters:a.filters,visible:$,close:()=>{j(!1)}});else if(a.filterDropdown)A=a.filterDropdown;else{const E=h()||[],W=()=>(a.filters||[]).length===0?o.createElement(Lr.Z,{image:Lr.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(Dr,{filterSearch:f,value:z,onChange:Re,tablePrefixCls:r,locale:m}),o.createElement("div",{className:`${r}-filter-dropdown-tree`},i?o.createElement(Rn.Z,{checked:E.length===an(a.filters).length,indeterminate:E.length>0&&E.lengthtypeof f=="function"?f(z,L(Ce)):Ar(z,Ce.title):void 0}))):o.createElement(o.Fragment,null,o.createElement(Dr,{filterSearch:f,value:z,onChange:Re,tablePrefixCls:r,locale:m}),o.createElement(Ul.Z,{selectable:!0,multiple:i,prefixCls:`${c}-menu`,className:Ie,onSelect:F,onDeselect:F,selectedKeys:E,getPopupContainer:x,openKeys:Z,onOpenChange:re,items:Wr({filters:a.filters||[],filterSearch:f,prefixCls:l,filteredKeys:h(),filterMultiple:i,searchValue:z})})),le=()=>C?(0,bt.Z)((T||[]).map(Ce=>String(Ce)),E,!0):E.length===0;A=o.createElement(o.Fragment,null,W(),o.createElement("div",{className:`${l}-dropdown-btns`},o.createElement(zr.ZP,{type:"link",size:"small",disabled:le(),onClick:()=>ge()},m.filterReset),o.createElement(zr.ZP,{type:"primary",size:"small",onClick:Le},m.filterConfirm)))}a.filterDropdown&&(A=o.createElement(Gl.J,{selectable:void 0},A));const M=()=>o.createElement(ea,{className:`${l}-dropdown`},A);let B;typeof a.filterIcon=="function"?B=a.filterIcon(I):a.filterIcon?B=a.filterIcon:B=o.createElement(Wl,null);const{direction:J}=o.useContext(Kr.E_);return o.createElement("div",{className:`${l}-column`},o.createElement("span",{className:`${r}-column-title`},p),o.createElement(Pr.Z,{dropdownRender:M,trigger:["click"],open:$,onOpenChange:me,getPopupContainer:x,placement:J==="rtl"?"bottomLeft":"bottomRight",rootClassName:g},o.createElement("span",{role:"button",tabIndex:-1,className:Q()(`${l}-trigger`,{active:I}),onClick:E=>{E.stopPropagation()}},B)))}var ra=na;function qn(e,t,n){let r=[];return(e||[]).forEach((l,a)=>{var c;const s=xn(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:jt(l,s),filteredKeys:i,forceFiltered:l.filtered})}else r.push({column:l,key:jt(l,s),filteredKeys:t&&l.defaultFilteredValue?l.defaultFilteredValue:void 0,forceFiltered:l.filtered});"children"in l&&(r=[].concat((0,be.Z)(r),(0,be.Z)(qn(l.children,t,s))))}),r}function Vr(e,t,n,r,l,a,c,s,i){return n.map((d,f)=>{const u=xn(f,s),{filterMultiple:v=!0,filterMode:m,filterSearch:p}=d;let x=d;if(x.filters||x.filterDropdown){const g=jt(x,u),S=r.find(y=>{let{key:C}=y;return g===C});x=Object.assign(Object.assign({},x),{title:y=>o.createElement(ra,{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:Vr(e,t,x.children,r,l,a,c,u,i)})),x})}function Xr(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=an(s);t[c]=d.filter(f=>l.includes(String(f)))}else t[c]=null}),t}function Ur(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=an(a),f=d.findIndex(v=>String(v)===String(i)),u=f!==-1?d[f]:i;return l(u,s)})):n},e)}const Gr=e=>e.flatMap(t=>"children"in t?[t].concat((0,be.Z)(Gr(t.children||[]))):[t]);function oa(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(()=>Gr(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,R)=>jt(T,xn(R)));return f.filter(T=>{let{key:R}=T;return C.includes(R)}).map(T=>{const R=d[C.findIndex(k=>k===T.key)];return Object.assign(Object.assign({},T),{column:Object.assign(Object.assign({},T.column),R),forceFiltered:R.filtered})})}return g},[d,f]),m=o.useMemo(()=>Xr(v),[v]),p=g=>{const S=v.filter(y=>{let{key:C}=y;return C!==g.key});S.push(g),u(S),l(Xr(S),S)};return[g=>Vr(t,n,g,v,c,p,a,void 0,s),v,m]}var la=oa,aa=b(6053),ia=b(13850),sa=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 da(e,t,n){const r=n&&typeof n=="object"?n:{},{total:l=0}=r,a=sa(r,["total"]),[c,s]=(0,o.useState)(()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:Yr})),i=(0,ia.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 ua=da,fa=b(7819),ma=function(t,n){return o.createElement(Jn.Z,(0,ye.Z)({},t,{ref:n,icon:fa.Z}))},va=o.forwardRef(ma),pa=b(71506),ga=function(t,n){return o.createElement(Jn.Z,(0,ye.Z)({},t,{ref:n,icon:pa.Z}))},ha=o.forwardRef(ga),xa=b(27850);const In="ascend",_n="descend";function Nn(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function Jr(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function ya(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:jt(a,c),multiplePriority:Nn(a),sortOrder:a.sortOrder})}return(e||[]).forEach((a,c)=>{const s=xn(c,n);a.children?("sortOrder"in a&&l(a,s),r=[].concat((0,be.Z)(r),(0,be.Z)(er(a.children,t,s)))):a.sorter&&("sortOrder"in a?l(a,s):t&&a.defaultSortOrder&&r.push({column:a,key:jt(a,s),multiplePriority:Nn(a),sortOrder:a.defaultSortOrder}))}),r}function Qr(e,t,n,r,l,a,c,s){return(t||[]).map((i,d)=>{const f=xn(d,s);let u=i;if(u.sorter){const v=u.sortDirections||l,m=u.showSorterTooltip===void 0?c:u.showSorterTooltip,p=jt(u,f),x=n.find(D=>{let{key:I}=D;return I===p}),g=x?x.sortOrder:null,S=ya(v,g);let y;if(i.sortIcon)y=i.sortIcon({sortOrder:g});else{const D=v.includes(In)&&o.createElement(ha,{className:Q()(`${e}-column-sorter-up`,{active:g===In})}),I=v.includes(_n)&&o.createElement(va,{className:Q()(`${e}-column-sorter-down`,{active:g===_n})});y=o.createElement("span",{className:Q()(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(D&&I)})},o.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},D,I))}const{cancelSort:C,triggerAsc:T,triggerDesc:R}=a||{};let k=C;S===_n?k=R:S===In&&(k=T);const O=typeof m=="object"?Object.assign({title:k},m):{title:k};u=Object.assign(Object.assign({},u),{className:Q()(u.className,{[`${e}-column-sort`]:g}),title:D=>{const I=o.createElement("div",{className:`${e}-column-sorters`},o.createElement("span",{className:`${e}-column-title`},$n(i.title,D)),y);return m?o.createElement(xa.Z,Object.assign({},O),I):I},onHeaderCell:D=>{const I=i.onHeaderCell&&i.onHeaderCell(D)||{},j=I.onClick,$=I.onKeyDown;I.onClick=N=>{r({column:i,key:p,sortOrder:S,multiplePriority:Nn(i)}),j==null||j(N)},I.onKeyDown=N=>{N.keyCode===jr.Z.ENTER&&(r({column:i,key:p,sortOrder:S,multiplePriority:Nn(i)}),$==null||$(N))};const w=Ll(i.title,{}),h=w==null?void 0:w.toString();return g?I["aria-sort"]=g==="ascend"?"ascending":"descending":I["aria-label"]=h||"",I.className=Q()(I.className,`${e}-column-has-sorters`),I.tabIndex=0,i.ellipsis&&(I.title=(w!=null?w:"").toString()),I}})}return"children"in u&&(u=Object.assign(Object.assign({},u),{children:Qr(e,u.children,n,r,l,a,c,f)})),u})}function qr(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function _r(e){const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(qr);return t.length===0&&e.length?Object.assign(Object.assign({},qr(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 Jr(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 ba(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,be.Z)(d.filter(g=>{let{key:S}=g;return S!==p.key})),[p]),i(x),r(_r(x),x)}return[p=>Qr(t,p,d,u,l,a,c),d,f,()=>_r(d)]}function eo(e,t){return e.map(n=>{const r=Object.assign({},n);return r.title=$n(n.title,t),"children"in r&&(r.children=eo(r.children,t)),r})}function Ca(e){return[o.useCallback(n=>eo(n,e),[e])]}var Sa=Ir((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),wa=Zr((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),H=b(25446),yn=b(99978),kn=b(55985),Ea=b(87077),Ra=b(37324),$a=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}}}},Ia=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"}})}}},Na=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}}}}},ka=b(8663),Ta=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}`,R=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,ka.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:R,insetInlineStart:R,height:l},"&::after":{top:R,bottom:R,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)}`}}}},Za=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:R,tableFilterDropdownHeight:k,controlItemBgHover:O,controlItemBgActive:D,boxShadowSecondary:I,filterDropdownMenuBg:j,calc:$}=e,w=`${n}-dropdown`,h=`${t}-filter-dropdown`,N=`${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:$(c).mul(-1).equal(),marginInline:`${(0,H.bf)(c)} ${(0,H.bf)($(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:R,borderRadius:x,boxShadow:I,overflow:"hidden",[`${w}-menu`]:{maxHeight:k,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,[N]:{padding:0},[`${N}-treenode ${N}-node-content-wrapper:hover`]:{backgroundColor:O},[`${N}-treenode-checkbox-checked ${N}-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)($(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"}}}]},Oa=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`]:{position:"relative","&::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::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::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}`}}}}},Pa=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"}}}}},Ba=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)}`}}}}},Fa=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"}}}}},Ha=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}}}}}},Ma=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))}},Ka=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}}}},za=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}}}}}}},to=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}`}}}},La=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 Da=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}})}},ja=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:R,controlInteractiveSize:k}=e,O=new yn.C(l).onBackground(n).toHexShortString(),D=new yn.C(a).onBackground(n).toHexShortString(),I=new yn.C(t).onBackground(n).toHexShortString(),j=new yn.C(C),$=new yn.C(T),w=k/2-y,h=w*2+y*3;return{headerBg:I,headerColor:r,headerSortActiveBg:O,headerSortHoverBg:D,bodySortBg:I,rowHoverBg:I,rowSelectedBg:c,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:i,cellPaddingInline:i,cellPaddingBlockMD:d,cellPaddingInlineMD:f,cellPaddingBlockSM:f,cellPaddingInlineSM:f,borderColor:u,headerBorderRadius:v,footerBg:I,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()*R).toRgbString(),headerIconHoverColor:$.clone().setAlpha($.getAlpha()*R).toRgbString(),expandIconHalfInner:w,expandIconSize:h,expandIconScale:k/h}};var Aa=(0,Ea.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:R,footerColor:k,headerBorderRadius:O,cellFontSize:D,cellFontSizeMD:I,cellFontSizeSM:j,headerSplitColor:$,fixedHeaderSortActiveBg:w,headerFilterHoverBg:h,filterDropdownBg:N,expandIconBg:F,selectionColumnWidth:K,stickyScrollBarBg:Z,calc:V}=e,re=2,z=(0,Ra.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:k,tableFooterBg:R,tableHeaderCellSplitColor:$,tableHeaderSortBg:s,tableHeaderSortHoverBg:i,tableBodySortBg:d,tableFixedHeaderSortActiveBg:w,tableHeaderFilterActiveBg:h,tableFilterDropdownBg:N,tableRowHoverBg:f,tableSelectedRowBg:u,tableSelectedRowHoverBg:v,zIndexTableFixed:re,zIndexTableSticky:re+1,tableFontSizeMiddle:I,tableFontSizeSmall:j,tableSelectionColumnWidth:K,tableExpandIconBg:F,tableExpandColumnWidth:V(l).add(V(e.padding).mul(2)).equal(),tableExpandedRowBg:m,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Z,tableScrollThumbBgHover:t,tableScrollBg:n});return[Da(z),Pa(z),to(z),Ka(z),Za(z),$a(z),Ba(z),Ta(z),to(z),Na(z),Ha(z),Oa(z),za(z),Ia(z),Ma(z),Fa(z),La(z)]},ja,{unitless:{expandIconScale:!0}});const Wa=[],Va=(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:R,expandedRowRender:k,expandIconColumnIndex:O,indentSize:D,scroll:I,sortDirections:j,locale:$,showSorterTooltip:w=!0,virtual:h}=e,N=(0,Vn.ln)("Table"),F=o.useMemo(()=>p||jn(x),[p,x]),K=o.useMemo(()=>F.some(U=>U.responsive),[F]),Z=(0,Ol.Z)(K),V=o.useMemo(()=>{const U=new Set(Object.keys(Z).filter(ce=>Z[ce]));return F.filter(ce=>!ce.responsive||ce.responsive.some(Be=>U.has(Be)))},[F,Z]),re=(0,wl.Z)(e,["className","style","columns"]),{locale:z=Pl.Z,direction:Y,table:Re,renderEmpty:Ne,getPrefixCls:Le,getPopupContainer:ge}=o.useContext(Kr.E_),X=(0,Zl.Z)(c),me=Object.assign(Object.assign({},z.Table),$),Ie=d||Wa,G=Le("table",n),$e=Le("dropdown",i),[,L]=(0,Hl.ZP)(),A=(0,Tl.Z)(G),[M,B,J]=Aa(G,A),E=Object.assign({childrenColumnName:g,expandIconColumnIndex:O},R),{childrenColumnName:W="children"}=E,le=o.useMemo(()=>Ie.some(U=>U==null?void 0:U[W])?"nest":k||R&&R.expandedRowRender?"row":null,[Ie]),Ce={body:o.useRef()},oe=zl(G),Ye=o.useRef(null),Ke=o.useRef(null);Rl(t,()=>Object.assign(Object.assign({},Ke.current),{nativeElement:Ye.current}));const Je=o.useMemo(()=>typeof v=="function"?v:U=>U==null?void 0:U[v],[v]),[Se]=(0,aa.Z)(Ie,W,Je),De={},he=function(U,ce){let Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var We,nt,at;const it=Object.assign(Object.assign({},De),U);Be&&((We=De.resetPagination)===null||We===void 0||We.call(De),!((nt=it.pagination)===null||nt===void 0)&&nt.current&&(it.pagination.current=1),f&&f.onChange&&f.onChange(1,(at=it.pagination)===null||at===void 0?void 0:at.pageSize)),I&&I.scrollToFirstRowOnChange!==!1&&Ce.body.current&&Nl(0,{getContainer:()=>Ce.body.current}),S==null||S(it.pagination,it.filters,it.sorter,{currentDataSource:Ur(tr(Ie,it.sorterStates,W),it.filterStates),action:ce})},sn=(U,ce)=>{he({sorter:U,sorterStates:ce},"sort",!1)},[At,Wt,ae,we]=ba({prefixCls:G,mergedColumns:V,onSorterChange:sn,sortDirections:j||["ascend","descend"],tableLocale:me,showSorterTooltip:w}),ve=o.useMemo(()=>tr(Ie,Wt,W),[Ie,Wt]);De.sorter=we(),De.sorterStates=Wt;const je=(U,ce)=>{he({filters:U,filterStates:ce},"filter",!0)},[ke,xe,Te]=la({prefixCls:G,locale:me,dropdownPrefixCls:$e,mergedColumns:V,onFilterChange:je,getPopupContainer:y||ge,rootClassName:Q()(l,A)}),Oe=Ur(ve,xe);De.filters=Te,De.filterStates=xe;const et=o.useMemo(()=>{const U={};return Object.keys(Te).forEach(ce=>{Te[ce]!==null&&(U[ce]=Te[ce])}),Object.assign(Object.assign({},ae),{filters:U})},[ae,Te]),[Rt]=Ca(et),pt=(U,ce)=>{he({pagination:Object.assign(Object.assign({},De.pagination),{current:U,pageSize:ce})},"paginate")},[Pe,Vt]=ua(Oe.length,pt,f);De.pagination=f===!1?{}:ca(Pe,f),De.resetPagination=Vt;const Xt=o.useMemo(()=>{if(f===!1||!Pe.pageSize)return Oe;const{current:U=1,total:ce,pageSize:Be=Yr}=Pe;return Oe.lengthBe?Oe.slice((U-1)*Be,U*Be):Oe:Oe.slice((U-1)*Be,U*Be)},[!!f,Oe,Pe&&Pe.current,Pe&&Pe.pageSize,Pe&&Pe.total]),[Ve,ze]=Sl({prefixCls:G,data:Oe,pageData:Xt,getRowKey:Je,getRecordByKey:Se,expandType:le,childrenColumnName:W,locale:me,getPopupContainer:y||ge},u),Ae=(U,ce,Be)=>{let We;return typeof m=="function"?We=Q()(m(U,ce,Be)):We=Q()(m),Q()({[`${G}-row-selected`]:ze.has(Je(U,ce))},We)};E.__PARENT_RENDER_ICON__=E.expandIcon,E.expandIcon=E.expandIcon||T||Kl(me),le==="nest"&&E.expandIconColumnIndex===void 0?E.expandIconColumnIndex=u?1:0:E.expandIconColumnIndex>0&&u&&(E.expandIconColumnIndex-=1),typeof E.indentSize!="number"&&(E.indentSize=typeof D=="number"?D:15);const $t=o.useCallback(U=>Rt(Ve(ke(At(U)))),[At,ke,Ve]);let Bt,tt;if(f!==!1&&(Pe!=null&&Pe.total)){let U;Pe.size?U=Pe.size:U=X==="small"||X==="middle"?"small":void 0;const ce=nt=>o.createElement(Bl.Z,Object.assign({},Pe,{className:Q()(`${G}-pagination ${G}-pagination-${nt}`,Pe.className),size:U})),Be=Y==="rtl"?"left":"right",{position:We}=Pe;if(We!==null&&Array.isArray(We)){const nt=We.find(Ut=>Ut.includes("top")),at=We.find(Ut=>Ut.includes("bottom")),it=We.every(Ut=>`${Ut}`=="none");!nt&&!at&&!it&&(tt=ce(Be)),nt&&(Bt=ce(nt.toLowerCase().replace("top",""))),at&&(tt=ce(at.toLowerCase().replace("bottom","")))}else tt=ce(Be)}let ft;typeof C=="boolean"?ft={spinning:C}:typeof C=="object"&&(ft=Object.assign({spinning:!0},C));const nr=Q()(J,A,`${G}-wrapper`,Re==null?void 0:Re.className,{[`${G}-wrapper-rtl`]:Y==="rtl"},r,l,B),rr=Object.assign(Object.assign({},Re==null?void 0:Re.style),a),or=$&&$.emptyText||(Ne==null?void 0:Ne("Table"))||o.createElement(kl.Z,{componentName:"Table"}),lr=h?wa:Sa,Tn={},lt=o.useMemo(()=>{const{fontSize:U,lineHeight:ce,padding:Be,paddingXS:We,paddingSM:nt}=L,at=Math.floor(U*ce);switch(X){case"large":return Be*2+at;case"small":return We*2+at;default:return nt*2+at}},[L,X]);return h&&(Tn.listItemHeight=lt),M(o.createElement("div",{ref:Ye,className:nr,style:rr},o.createElement(Fl.Z,Object.assign({spinning:!1},ft),Bt,o.createElement(lr,Object.assign({},Tn,re,{ref:Ke,columns:V,direction:Y,expandable:E,prefixCls:G,className:Q()({[`${G}-middle`]:X==="middle",[`${G}-small`]:X==="small",[`${G}-bordered`]:s,[`${G}-empty`]:Ie.length===0},J,A,B),data:Xt,rowKey:Je,rowClassName:Ae,emptyText:or,internalHooks:_,internalRefs:Ce,transformColumns:$t,getContainerWidth:oe})),tt)))};var Xa=o.forwardRef(Va);const Ua=(e,t)=>{const n=o.useRef(0);return n.current+=1,o.createElement(Xa,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Et=o.forwardRef(Ua);Et.SELECTION_COLUMN=Pt,Et.EXPAND_COLUMN=qe,Et.SELECTION_ALL=Xn,Et.SELECTION_INVERT=Un,Et.SELECTION_NONE=Gn,Et.Column=pl,Et.ColumnGroup=hl,Et.Summary=yt;var Ga=Et,Ya=Ga},44566:function(un,mt,b){b.d(mt,{Z:function(){return Ln}});var o=b(99035),qe=b(30360),_=b(50959),de=b(38223),ht=b(27263),vt={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"},bt=vt,Ft=b(38782),It=function(pe,fe){return _.createElement(Ft.Z,(0,ht.Z)({},pe,{ref:fe,icon:bt}))},Fe=_.forwardRef(It),ye={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"},rt=ye,Jt=function(pe,fe){return _.createElement(Ft.Z,(0,ht.Z)({},pe,{ref:fe,icon:rt}))},Ht=_.forwardRef(Jt),ur=b(82187),Bn=b.n(ur),fr=b(31087),Nt=b(25237),fn=b(92576),kt={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=kt,Hn=function(pe,fe){return _.createElement(Ft.Z,(0,ht.Z)({},pe,{ref:fe,icon:Fn}))},Xe=_.forwardRef(Hn),Mn=b(48141),mr=b(63701);const Cn=4;function Tt(q){const{dropPosition:pe,dropLevelOffset:fe,prefixCls:ue,indent:se,direction:ee="ltr"}=q,Ee=ee==="ltr"?"left":"right",Ze=ee==="ltr"?"right":"left",Ge={[Ee]:-fe*se+Cn,[Ze]:0};switch(pe){case-1:Ge.top=-3;break;case 1:Ge.bottom=-3;break;default:Ge.bottom=-3,Ge[Ee]=se+Cn;break}return _.createElement("div",{style:Ge,className:`${ue}-drop-indicator`})}var P=b(22679),ne=b(45824),Q=_.forwardRef((q,pe)=>{var fe;const{getPrefixCls:ue,direction:se,virtual:ee,tree:Ee}=_.useContext(fn.E_),{prefixCls:Ze,className:Ge,showIcon:He=!1,showLine:Mt,switcherIcon:_t,blockNode:Ct=!1,children:en,checkable:Kt=!1,selectable:xt=!0,draggable:yt,motion:St,style:gn}=q,ct=ue("tree",Ze),Zt=ue(),tn=St!=null?St:Object.assign(Object.assign({},(0,Mn.Z)(Zt)),{motionAppear:!1}),Ot=Object.assign(Object.assign({},q),{checkable:Kt,selectable:xt,showIcon:He,motion:tn,blockNode:Ct,showLine:!!Mt,dropIndicatorRender:Tt}),[nn,dt,ot]=(0,mr.ZP)(ct),[,_e]=(0,ne.ZP)(),zt=_e.paddingXS/2+(((fe=_e.Tree)===null||fe===void 0?void 0:fe.titleHeight)||_e.controlHeightSM),wt=_.useMemo(()=>{if(!yt)return!1;let Me={};switch(typeof yt){case"function":Me.nodeDraggable=yt;break;case"object":Me=Object.assign({},yt);break;default:break}return Me.icon!==!1&&(Me.icon=Me.icon||_.createElement(Xe,null)),Me},[yt]),hn=Me=>_.createElement(P.Z,{prefixCls:ct,switcherIcon:_t,treeNodeProps:Me,showLine:Mt});return nn(_.createElement(o.Z,Object.assign({itemHeight:zt,ref:pe,virtual:ee},Ot,{style:Object.assign(Object.assign({},Ee==null?void 0:Ee.style),gn),prefixCls:ct,className:Bn()({[`${ct}-icon-hide`]:!He,[`${ct}-block-node`]:Ct,[`${ct}-unselectable`]:!xt,[`${ct}-rtl`]:se==="rtl"},Ee==null?void 0:Ee.className,Ge,dt,ot),direction:se,checkable:Kt&&_.createElement("span",{className:`${ct}-checkbox-inner`}),selectable:xt,switcherIcon:hn,draggable:wt}),en))}),st;(function(q){q[q.None=0]="None",q[q.Start=1]="Start",q[q.End=2]="End"})(st||(st={}));function Qt(q,pe,fe){const{key:ue,children:se}=fe;function ee(Ee){const Ze=Ee[ue],Ge=Ee[se];pe(Ze,Ee)!==!1&&Qt(Ge||[],pe,fe)}q.forEach(ee)}function pr(q){let{treeData:pe,expandedKeys:fe,startKey:ue,endKey:se,fieldNames:ee}=q;const Ee=[];let Ze=st.None;if(ue&&ue===se)return[ue];if(!ue||!se)return[];function Ge(He){return He===ue||He===se}return Qt(pe,He=>{if(Ze===st.End)return!1;if(Ge(He)){if(Ee.push(He),Ze===st.None)Ze=st.Start;else if(Ze===st.Start)return Ze=st.End,!1}else Ze===st.Start&&Ee.push(He);return fe.includes(He)},(0,Nt.w$)(ee)),Ee}function mn(q,pe,fe){const ue=(0,qe.Z)(pe),se=[];return Qt(q,(ee,Ee)=>{const Ze=ue.indexOf(ee);return Ze!==-1&&(se.push(Ee),ue.splice(Ze,1)),!!ue.length},(0,Nt.w$)(fe)),se}var vn=function(q,pe){var fe={};for(var ue in q)Object.prototype.hasOwnProperty.call(q,ue)&&pe.indexOf(ue)<0&&(fe[ue]=q[ue]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ue=Object.getOwnPropertySymbols(q);se{var{defaultExpandAll:fe,defaultExpandParent:ue,defaultExpandedKeys:se}=q,ee=vn(q,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Ee=_.useRef(),Ze=_.useRef(),Ge=()=>{const{keyEntities:dt}=(0,Nt.I8)(Sn(ee));let ot;return fe?ot=Object.keys(dt):ue?ot=(0,fr.r7)(ee.expandedKeys||se||[],dt):ot=ee.expandedKeys||se,ot},[He,Mt]=_.useState(ee.selectedKeys||ee.defaultSelectedKeys||[]),[_t,Ct]=_.useState(()=>Ge());_.useEffect(()=>{"selectedKeys"in ee&&Mt(ee.selectedKeys)},[ee.selectedKeys]),_.useEffect(()=>{"expandedKeys"in ee&&Ct(ee.expandedKeys)},[ee.expandedKeys]);const en=(dt,ot)=>{var _e;return"expandedKeys"in ee||Ct(dt),(_e=ee.onExpand)===null||_e===void 0?void 0:_e.call(ee,dt,ot)},Kt=(dt,ot)=>{var _e;const{multiple:zt,fieldNames:wt}=ee,{node:hn,nativeEvent:Me}=ot,{key:rn=""}=hn,Lt=Sn(ee),on=Object.assign(Object.assign({},ot),{selected:!0}),Dn=(Me==null?void 0:Me.ctrlKey)||(Me==null?void 0:Me.metaKey),Dt=Me==null?void 0:Me.shiftKey;let ut;zt&&Dn?(ut=dt,Ee.current=rn,Ze.current=ut,on.selectedNodes=mn(Lt,ut,wt)):zt&&Dt?(ut=Array.from(new Set([].concat((0,qe.Z)(Ze.current||[]),(0,qe.Z)(pr({treeData:Lt,expandedKeys:_t,startKey:rn,endKey:Ee.current,fieldNames:wt}))))),on.selectedNodes=mn(Lt,ut,wt)):(ut=[rn],Ee.current=rn,Ze.current=ut,on.selectedNodes=mn(Lt,ut,wt)),(_e=ee.onSelect)===null||_e===void 0||_e.call(ee,ut,on),"selectedKeys"in ee||Mt(ut)},{getPrefixCls:xt,direction:yt}=_.useContext(fn.E_),{prefixCls:St,className:gn,showIcon:ct=!0,expandAction:Zt="click"}=ee,tn=vn(ee,["prefixCls","className","showIcon","expandAction"]),Ot=xt("tree",St),nn=Bn()(`${Ot}-directory`,{[`${Ot}-directory-rtl`]:yt==="rtl"},gn);return _.createElement(Q,Object.assign({icon:Kn,ref:pe,blockNode:!0},tn,{showIcon:ct,expandAction:Zt,prefixCls:Ot,className:nn,expandedKeys:_t,selectedKeys:He,onSelect:Kt,onExpand:en}))};var zn=_.forwardRef(qt);const pn=Q;pn.DirectoryTree=zn,pn.TreeNode=o.O;var Ln=pn}}]); diff --git a/1787.9bb047b6.async.js b/1787.9bb047b6.async.js new file mode 100644 index 0000000000..e1ecfb6ee0 --- /dev/null +++ b/1787.9bb047b6.async.js @@ -0,0 +1,12 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1787],{99053:function(Fe,de,e){e.d(de,{Z:function(){return Be},n:function(){return Pe}});var t=e(50959),L=e(67536),P=e(82187),w=e.n(P),y=e(56994),g=e(12602),r=e(79587),x=e(92576),u=e(25162),N=e(50483),q=e(59263),oe=e(58163),ye=e(25341),Ae=e(85580);function $e(o){return!!(o.prefix||o.suffix||o.allowClear)}var Te=e(12158),Ie=function(o,a){var H={};for(var R in o)Object.prototype.hasOwnProperty.call(o,R)&&a.indexOf(R)<0&&(H[R]=o[R]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,R=Object.getOwnPropertySymbols(o);j{var H;const{prefixCls:R,bordered:j=!0,status:U,size:re,disabled:Y,onBlur:fe,onFocus:_,suffix:le,allowClear:ne,addonAfter:be,addonBefore:Ee,className:ve,style:Re,styles:ae,rootClassName:me,onChange:Ze,classNames:ue}=o,O=Ie(o,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:F,direction:ee,input:f}=t.useContext(x.E_),c=F("input",R),n=(0,t.useRef)(null),$=(0,Te.Z)(c),[i,l,p]=(0,Ae.ZP)(c,$),{compactSize:h,compactItemClassnames:z}=(0,oe.ri)(c,ee),d=(0,N.Z)(M=>{var S;return(S=re!=null?re:h)!==null&&S!==void 0?S:M}),C=t.useContext(u.Z),v=Y!=null?Y:C,{status:T,hasFeedback:A,feedbackIcon:Z}=(0,t.useContext)(q.aM),X=(0,r.F)(T,U),V=$e(o)||!!A,W=(0,t.useRef)(V),b=(0,ye.Z)(n,!0),I=M=>{b(),fe==null||fe(M)},J=M=>{b(),_==null||_(M)},se=M=>{b(),Ze==null||Ze(M)},B=(A||le)&&t.createElement(t.Fragment,null,le,A&&Z);let G;return typeof ne=="object"&&(ne!=null&&ne.clearIcon)?G=ne:ne&&(G={clearIcon:t.createElement(L.Z,null)}),i(t.createElement(y.Z,Object.assign({ref:(0,g.sQ)(a,n),prefixCls:c,autoComplete:f==null?void 0:f.autoComplete},O,{disabled:v,onBlur:I,onFocus:J,style:Object.assign(Object.assign({},f==null?void 0:f.style),Re),styles:Object.assign(Object.assign({},f==null?void 0:f.styles),ae),suffix:B,allowClear:G,className:w()(ve,me,p,$,l,z,f==null?void 0:f.className),onChange:se,addonAfter:be&&t.createElement(oe.BR,null,t.createElement(q.Ux,{override:!0,status:!0},be)),addonBefore:Ee&&t.createElement(oe.BR,null,t.createElement(q.Ux,{override:!0,status:!0},Ee)),classNames:Object.assign(Object.assign(Object.assign({},ue),f==null?void 0:f.classNames),{input:w()({[`${c}-sm`]:d==="small",[`${c}-lg`]:d==="large",[`${c}-rtl`]:ee==="rtl",[`${c}-borderless`]:!j},!V&&(0,r.Z)(c,X),ue==null?void 0:ue.input,(H=f==null?void 0:f.classNames)===null||H===void 0?void 0:H.input,l)}),classes:{affixWrapper:w()({[`${c}-affix-wrapper-sm`]:d==="small",[`${c}-affix-wrapper-lg`]:d==="large",[`${c}-affix-wrapper-rtl`]:ee==="rtl",[`${c}-affix-wrapper-borderless`]:!j},(0,r.Z)(`${c}-affix-wrapper`,X,A),l),wrapper:w()({[`${c}-group-rtl`]:ee==="rtl"},l),group:w()({[`${c}-group-wrapper-sm`]:d==="small",[`${c}-group-wrapper-lg`]:d==="large",[`${c}-group-wrapper-rtl`]:ee==="rtl",[`${c}-group-wrapper-disabled`]:v},(0,r.Z)(`${c}-group-wrapper`,X,A),l)}})))})},41787:function(Fe,de,e){e.d(de,{Z:function(){return c}});var t=e(50959),L=e(67536),P=e(82187),w=e.n(P),y=e(27263),g=e(35361),r=e(88357),x=e(30360),u=e(959),N=e(56929),q=e(56994),oe=e(25931),ye=e(55901),Ae=e(65589),$e=e(97382),Te=e(34682),Ie=e(77189),Pe=e(28449),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 $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=n.getAttribute("id")||n.getAttribute("data-reactid")||n.getAttribute("name");if($&&o[i])return o[i];var l=window.getComputedStyle(n),p=l.getPropertyValue("box-sizing")||l.getPropertyValue("-moz-box-sizing")||l.getPropertyValue("-webkit-box-sizing"),h=parseFloat(l.getPropertyValue("padding-bottom"))+parseFloat(l.getPropertyValue("padding-top")),z=parseFloat(l.getPropertyValue("border-bottom-width"))+parseFloat(l.getPropertyValue("border-top-width")),d=Be.map(function(v){return"".concat(v,":").concat(l.getPropertyValue(v))}).join(";"),C={sizingStyle:d,paddingSize:h,borderSize:z,boxSizing:p};return $&&i&&(o[i]=C),C}function R(n){var $=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 p=H(n,$),h=p.paddingSize,z=p.borderSize,d=p.boxSizing,C=p.sizingStyle;a.setAttribute("style","".concat(C,";").concat(Ve)),a.value=n.value||n.placeholder||"";var v=void 0,T=void 0,A,Z=a.scrollHeight;if(d==="border-box"?Z+=z:d==="content-box"&&(Z-=h),i!==null||l!==null){a.value=" ";var X=a.scrollHeight-h;i!==null&&(v=X*i,d==="border-box"&&(v=v+h+z),Z=Math.max(v,Z)),l!==null&&(T=X*l,d==="border-box"&&(T=T+h+z),A=Z>T?"":"hidden",Z=Math.min(T,Z))}var V={height:Z,overflowY:A,resize:"none"};return v&&(V.minHeight=v),T&&(V.maxHeight=T),V}var j=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],U=0,re=1,Y=2,fe=t.forwardRef(function(n,$){var i=n,l=i.prefixCls,p=i.onPressEnter,h=i.defaultValue,z=i.value,d=i.autoSize,C=i.onResize,v=i.className,T=i.style,A=i.disabled,Z=i.onChange,X=i.onInternalAutoSize,V=(0,N.Z)(i,j),W=(0,Ae.Z)(h,{value:z,postState:function(D){return D!=null?D:""}}),b=(0,u.Z)(W,2),I=b[0],J=b[1],se=function(D){J(D.target.value),Z==null||Z(D)},B=t.useRef();t.useImperativeHandle($,function(){return{textArea:B.current}});var G=t.useMemo(function(){return d&&(0,$e.Z)(d)==="object"?[d.minRows,d.maxRows]:[]},[d]),M=(0,u.Z)(G,2),S=M[0],te=M[1],ce=!!d,Se=function(){try{if(document.activeElement===B.current){var D=B.current,We=D.selectionStart,Je=D.selectionEnd,Ke=D.scrollTop;B.current.setSelectionRange(We,Je),B.current.scrollTop=Ke}}catch(Ue){}},we=t.useState(Y),ze=(0,u.Z)(we,2),Q=ze[0],m=ze[1],s=t.useState(),K=(0,u.Z)(s,2),ie=K[0],ge=K[1],pe=function(){m(U)};(0,Ie.Z)(function(){ce&&pe()},[z,S,te,ce]),(0,Ie.Z)(function(){if(Q===U)m(re);else if(Q===re){var xe=R(B.current,!1,S,te);m(Y),ge(xe)}else Se()},[Q]);var Oe=t.useRef(),Le=function(){Pe.Z.cancel(Oe.current)},He=function(D){Q===Y&&(C==null||C(D),d&&(Le(),Oe.current=(0,Pe.Z)(function(){pe()})))};t.useEffect(function(){return Le},[]);var Xe=ce?ie:null,Me=(0,g.Z)((0,g.Z)({},T),Xe);return(Q===U||Q===re)&&(Me.overflowY="hidden",Me.overflowX="hidden"),t.createElement(Te.Z,{onResize:He,disabled:!(d||C)},t.createElement("textarea",(0,y.Z)({},V,{ref:B,style:Me,className:w()(l,v,(0,r.Z)({},"".concat(l,"-disabled"),A)),disabled:A,value:I,onChange:se})))}),_=fe,le=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],ne=t.forwardRef(function(n,$){var i,l,p=n.defaultValue,h=n.value,z=n.onFocus,d=n.onBlur,C=n.onChange,v=n.allowClear,T=n.maxLength,A=n.onCompositionStart,Z=n.onCompositionEnd,X=n.suffix,V=n.prefixCls,W=V===void 0?"rc-textarea":V,b=n.classes,I=n.showCount,J=n.count,se=n.className,B=n.style,G=n.disabled,M=n.hidden,S=n.classNames,te=n.styles,ce=n.onResize,Se=(0,N.Z)(n,le),we=(0,Ae.Z)(p,{value:h,defaultValue:p}),ze=(0,u.Z)(we,2),Q=ze[0],m=ze[1],s=Q==null?"":String(Q),K=t.useState(!1),ie=(0,u.Z)(K,2),ge=ie[0],pe=ie[1],Oe=t.useRef(!1),Le=t.useState(null),He=(0,u.Z)(Le,2),Xe=He[0],Me=He[1],xe=(0,t.useRef)(null),D=function(){var E;return(E=xe.current)===null||E===void 0?void 0:E.textArea},We=function(){D().focus()};(0,t.useImperativeHandle)($,function(){return{resizableTextArea:xe.current,focus:We,blur:function(){D().blur()}}}),(0,t.useEffect)(function(){pe(function(k){return!G&&k})},[G]);var Je=t.useState(null),Ke=(0,u.Z)(Je,2),Ue=Ke[0],ke=Ke[1];t.useEffect(function(){if(Ue){var k;(k=D()).setSelectionRange.apply(k,(0,x.Z)(Ue))}},[Ue]);var he=(0,oe.Z)(J,I),je=(i=he.max)!==null&&i!==void 0?i:T,qe=Number(je)>0,Ye=he.strategy(s),_e=!!je&&Ye>je,Qe=function(E,Ce){var Ne=Ce;!Oe.current&&he.exceedFormatter&&he.max&&he.strategy(Ce)>he.max&&(Ne=he.exceedFormatter(Ce,{max:he.max}),Ce!==Ne&&ke([D().selectionStart||0,D().selectionEnd||0])),m(Ne),(0,ye.rJ)(E.currentTarget,E,C,Ne)},et=function(E){Oe.current=!0,A==null||A(E)},tt=function(E){Oe.current=!1,Qe(E,E.currentTarget.value),Z==null||Z(E)},nt=function(E){Qe(E,E.target.value)},at=function(E){var Ce=Se.onPressEnter,Ne=Se.onKeyDown;E.key==="Enter"&&Ce&&Ce(E),Ne==null||Ne(E)},ot=function(E){pe(!0),z==null||z(E)},rt=function(E){pe(!1),d==null||d(E)},lt=function(E){m(""),We(),(0,ye.rJ)(D(),E,C)},Ge=X,De;he.show&&(he.showFormatter?De=he.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:w()("".concat(W,"-data-count"),S==null?void 0:S.count),style:te==null?void 0:te.count},De)));var st=function(E){var Ce;ce==null||ce(E),(Ce=D())!==null&&Ce!==void 0&&Ce.style.height&&Me(!0)},it=!Se.autoSize&&!I&&!v,ut=t.createElement(q.Q,{value:s,allowClear:v,handleReset:lt,suffix:Ge,prefixCls:W,classes:{affixWrapper:w()(b==null?void 0:b.affixWrapper,(l={},(0,r.Z)(l,"".concat(W,"-show-count"),I),(0,r.Z)(l,"".concat(W,"-textarea-allow-clear"),v),l))},disabled:G,focused:ge,className:w()(se,_e&&"".concat(W,"-out-of-range")),style:(0,g.Z)((0,g.Z)({},B),Xe&&!it?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof De=="string"?De:void 0}},hidden:M,inputElement:t.createElement(_,(0,y.Z)({},Se,{maxLength:T,onKeyDown:at,onChange:nt,onFocus:ot,onBlur:rt,onCompositionStart:et,onCompositionEnd:tt,className:w()(S==null?void 0:S.textarea),style:(0,g.Z)((0,g.Z)({},te==null?void 0:te.textarea),{},{resize:B==null?void 0:B.resize}),disabled:G,prefixCls:W,onResize:st,ref:xe}))});return ut}),be=ne,Ee=be,ve=e(79587),Re=e(92576),ae=e(25162),me=e(50483),Ze=e(59263),ue=e(99053),O=e(85580),F=e(12158),ee=function(n,$){var i={};for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&$.indexOf(l)<0&&(i[l]=n[l]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,l=Object.getOwnPropertySymbols(n);p{var i;const{prefixCls:l,bordered:p=!0,size:h,disabled:z,status:d,allowClear:C,classNames:v,rootClassName:T,className:A}=n,Z=ee(n,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className"]),{getPrefixCls:X,direction:V}=t.useContext(Re.E_),W=(0,me.Z)(h),b=t.useContext(ae.Z),I=z!=null?z:b,{status:J,hasFeedback:se,feedbackIcon:B}=t.useContext(Ze.aM),G=(0,ve.F)(J,d),M=t.useRef(null);t.useImperativeHandle($,()=>{var Q;return{resizableTextArea:(Q=M.current)===null||Q===void 0?void 0:Q.resizableTextArea,focus:m=>{var s,K;(0,ue.n)((K=(s=M.current)===null||s===void 0?void 0:s.resizableTextArea)===null||K===void 0?void 0:K.textArea,m)},blur:()=>{var m;return(m=M.current)===null||m===void 0?void 0:m.blur()}}});const S=X("input",l);let te;typeof C=="object"&&(C!=null&&C.clearIcon)?te=C:C&&(te={clearIcon:t.createElement(L.Z,null)});const ce=(0,F.Z)(S),[Se,we,ze]=(0,O.ZP)(S,ce);return Se(t.createElement(Ee,Object.assign({},Z,{disabled:I,allowClear:te,className:w()(ze,ce,A,T),classes:{affixWrapper:w()(`${S}-textarea-affix-wrapper`,{[`${S}-affix-wrapper-rtl`]:V==="rtl",[`${S}-affix-wrapper-borderless`]:!p,[`${S}-affix-wrapper-sm`]:W==="small",[`${S}-affix-wrapper-lg`]:W==="large",[`${S}-textarea-show-count`]:n.showCount||((i=n.count)===null||i===void 0?void 0:i.show)},(0,ve.Z)(`${S}-affix-wrapper`,G),we)},classNames:Object.assign(Object.assign({},v),{textarea:w()({[`${S}-borderless`]:!p,[`${S}-sm`]:W==="small",[`${S}-lg`]:W==="large"},(0,ve.Z)(S,G),we,v==null?void 0:v.textarea)}),prefixCls:S,suffix:se&&t.createElement("span",{className:`${S}-textarea-suffix`},B),ref:M})))})},25341:function(Fe,de,e){e.d(de,{Z:function(){return L}});var t=e(50959);function L(P,w){const y=(0,t.useRef)([]),g=()=>{y.current.push(setTimeout(()=>{var r,x,u,N;!((r=P.current)===null||r===void 0)&&r.input&&((x=P.current)===null||x===void 0?void 0:x.input.getAttribute("type"))==="password"&&(!((u=P.current)===null||u===void 0)&&u.input.hasAttribute("value"))&&((N=P.current)===null||N===void 0||N.input.removeAttribute("value"))}))};return(0,t.useEffect)(()=>(w&&g(),()=>y.current.forEach(r=>{r&&clearTimeout(r)})),[]),g}},25931:function(Fe,de,e){e.d(de,{Z:function(){return r}});var t=e(56929),L=e(35361),P=e(97382),w=e(50959),y=["show"];function g(x,u){if(!u.max)return!0;var N=u.strategy(x);return N<=u.max}function r(x,u){return w.useMemo(function(){var N={};u&&(N.show=(0,P.Z)(u)==="object"&&u.formatter?u.formatter:!!u),N=(0,L.Z)((0,L.Z)({},N),x);var q=N,oe=q.show,ye=(0,t.Z)(q,y);return(0,L.Z)((0,L.Z)({},ye),{},{show:!!oe,showFormatter:typeof oe=="function"?oe:void 0,strategy:ye.strategy||function(Ae){return Ae.length}})},[x,u])}},56994:function(Fe,de,e){e.d(de,{Q:function(){return N},Z:function(){return Be}});var t=e(27263),L=e(35361),P=e(88357),w=e(97382),y=e(82187),g=e.n(y),r=e(50959),x=e(55901),u=function(a){var H,R,j=a.inputElement,U=a.prefixCls,re=a.prefix,Y=a.suffix,fe=a.addonBefore,_=a.addonAfter,le=a.className,ne=a.style,be=a.disabled,Ee=a.readOnly,ve=a.focused,Re=a.triggerFocus,ae=a.allowClear,me=a.value,Ze=a.handleReset,ue=a.hidden,O=a.classes,F=a.classNames,ee=a.dataAttrs,f=a.styles,c=a.components,n=(c==null?void 0:c.affixWrapper)||"span",$=(c==null?void 0:c.groupWrapper)||"span",i=(c==null?void 0:c.wrapper)||"span",l=(c==null?void 0:c.groupAddon)||"span",p=(0,r.useRef)(null),h=function(I){var J;(J=p.current)!==null&&J!==void 0&&J.contains(I.target)&&(Re==null||Re())},z=function(){var I;if(!ae)return null;var J=!be&&!Ee&&me,se="".concat(U,"-clear-icon"),B=(0,w.Z)(ae)==="object"&&ae!==null&&ae!==void 0&&ae.clearIcon?ae.clearIcon:"\u2716";return r.createElement("span",{onClick:Ze,onMouseDown:function(M){return M.preventDefault()},className:g()(se,(I={},(0,P.Z)(I,"".concat(se,"-hidden"),!J),(0,P.Z)(I,"".concat(se,"-has-suffix"),!!Y),I)),role:"button",tabIndex:-1},B)},d=(0,r.cloneElement)(j,{value:me,hidden:ue,className:g()((H=j.props)===null||H===void 0?void 0:H.className,!(0,x.X3)(a)&&!(0,x.He)(a)&&le)||null,style:(0,L.Z)((0,L.Z)({},(R=j.props)===null||R===void 0?void 0:R.style),!(0,x.X3)(a)&&!(0,x.He)(a)?ne:{})});if((0,x.X3)(a)){var C,v="".concat(U,"-affix-wrapper"),T=g()(v,(C={},(0,P.Z)(C,"".concat(v,"-disabled"),be),(0,P.Z)(C,"".concat(v,"-focused"),ve),(0,P.Z)(C,"".concat(v,"-readonly"),Ee),(0,P.Z)(C,"".concat(v,"-input-with-clear-btn"),Y&&ae&&me),C),!(0,x.He)(a)&&le,O==null?void 0:O.affixWrapper,F==null?void 0:F.affixWrapper),A=(Y||ae)&&r.createElement("span",{className:g()("".concat(U,"-suffix"),F==null?void 0:F.suffix),style:f==null?void 0:f.suffix},z(),Y);d=r.createElement(n,(0,t.Z)({className:T,style:(0,L.Z)((0,L.Z)({},(0,x.He)(a)?void 0:ne),f==null?void 0:f.affixWrapper),hidden:!(0,x.He)(a)&&ue,onClick:h},ee==null?void 0:ee.affixWrapper,{ref:p}),re&&r.createElement("span",{className:g()("".concat(U,"-prefix"),F==null?void 0:F.prefix),style:f==null?void 0:f.prefix},re),(0,r.cloneElement)(j,{value:me,hidden:null}),A)}if((0,x.He)(a)){var Z="".concat(U,"-group"),X="".concat(Z,"-addon"),V=g()("".concat(U,"-wrapper"),Z,O==null?void 0:O.wrapper),W=g()("".concat(U,"-group-wrapper"),le,O==null?void 0:O.group);return r.createElement($,{className:W,style:ne,hidden:ue},r.createElement(i,{className:V},fe&&r.createElement(l,{className:X},fe),(0,r.cloneElement)(d,{hidden:null}),_&&r.createElement(l,{className:X},_)))}return d},N=u,q=e(30360),oe=e(959),ye=e(56929),Ae=e(65589),$e=e(87017),Te=e(25931),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,R=o.onChange,j=o.onFocus,U=o.onBlur,re=o.onPressEnter,Y=o.onKeyDown,fe=o.prefixCls,_=fe===void 0?"rc-input":fe,le=o.disabled,ne=o.htmlSize,be=o.className,Ee=o.maxLength,ve=o.suffix,Re=o.showCount,ae=o.count,me=o.type,Ze=me===void 0?"text":me,ue=o.classes,O=o.classNames,F=o.styles,ee=o.onCompositionStart,f=o.onCompositionEnd,c=(0,ye.Z)(o,Ie),n=(0,r.useState)(!1),$=(0,oe.Z)(n,2),i=$[0],l=$[1],p=r.useRef(!1),h=(0,r.useRef)(null),z=function(s){h.current&&(0,x.nH)(h.current,s)},d=(0,Ae.Z)(o.defaultValue,{value:o.value}),C=(0,oe.Z)(d,2),v=C[0],T=C[1],A=v==null?"":String(v),Z=r.useState(null),X=(0,oe.Z)(Z,2),V=X[0],W=X[1],b=(0,Te.Z)(ae,Re),I=b.max||Ee,J=b.strategy(A),se=!!I&&J>I;(0,r.useImperativeHandle)(a,function(){return{focus:z,blur:function(){var s;(s=h.current)===null||s===void 0||s.blur()},setSelectionRange:function(s,K,ie){var ge;(ge=h.current)===null||ge===void 0||ge.setSelectionRange(s,K,ie)},select:function(){var s;(s=h.current)===null||s===void 0||s.select()},input:h.current}}),(0,r.useEffect)(function(){l(function(m){return m&&le?!1:m})},[le]);var B=function(s,K){var ie=K;if(!p.current&&b.exceedFormatter&&b.max&&b.strategy(K)>b.max&&(ie=b.exceedFormatter(K,{max:b.max}),K!==ie)){var ge,pe;W([((ge=h.current)===null||ge===void 0?void 0:ge.selectionStart)||0,((pe=h.current)===null||pe===void 0?void 0:pe.selectionEnd)||0])}T(ie),h.current&&(0,x.rJ)(h.current,s,R,ie)};r.useEffect(function(){if(V){var m;(m=h.current)===null||m===void 0||m.setSelectionRange.apply(m,(0,q.Z)(V))}},[V]);var G=function(s){B(s,s.target.value)},M=function(s){p.current=!1,B(s,s.currentTarget.value),f==null||f(s)},S=function(s){re&&s.key==="Enter"&&re(s),Y==null||Y(s)},te=function(s){l(!0),j==null||j(s)},ce=function(s){l(!1),U==null||U(s)},Se=function(s){T(""),z(),h.current&&(0,x.rJ)(h.current,s,R)},we=se&&"".concat(_,"-out-of-range"),ze=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:G,onFocus:te,onBlur:ce,onKeyDown:S,className:g()(_,(0,P.Z)({},"".concat(_,"-disabled"),le),O==null?void 0:O.input),style:F==null?void 0:F.input,ref:h,size:ne,type:Ze,onCompositionStart:function(ie){p.current=!0,ee==null||ee(ie)},onCompositionEnd:M}))},Q=function(){var s=Number(I)>0;if(ve||b.show){var K=b.showFormatter?b.showFormatter({value:A,count:J,maxLength:I}):"".concat(J).concat(s?" / ".concat(I):"");return r.createElement(r.Fragment,null,b.show&&r.createElement("span",{className:g()("".concat(_,"-show-count-suffix"),(0,P.Z)({},"".concat(_,"-show-count-has-suffix"),!!ve),O==null?void 0:O.count),style:(0,L.Z)({},F==null?void 0:F.count)},K),ve)}return null};return r.createElement(N,(0,t.Z)({},c,{prefixCls:_,className:g()(be,we),inputElement:ze(),handleReset:Se,value:A,focused:i,triggerFocus:z,suffix:Q(),disabled:le,classes:ue,classNames:O,styles:F}))}),Ve=Pe,Be=Ve},55901:function(Fe,de,e){e.d(de,{He:function(){return t},X3:function(){return L},nH:function(){return w},rJ:function(){return P}});function t(y){return!!(y.addonBefore||y.addonAfter)}function L(y){return!!(y.prefix||y.suffix||y.allowClear)}function P(y,g,r,x){if(r){var u=g;if(g.type==="click"){var N=y.cloneNode(!0);u=Object.create(g,{target:{value:N},currentTarget:{value:N}}),N.value="",r(u);return}if(x!==void 0){var q=y.cloneNode(!0);u=Object.create(g,{target:{value:q},currentTarget:{value:q}}),q.type!=="file"&&(q.value=x),r(u);return}r(u)}}function w(y,g){if(y){y.focus(g);var r=g||{},x=r.cursor;if(x){var u=y.value.length;switch(x){case"start":y.setSelectionRange(0,0);break;case"end":y.setSelectionRange(u,u);break;default:y.setSelectionRange(0,u)}}}}}}]); diff --git a/1807.ca998b8f.async.js b/1807.ca998b8f.async.js deleted file mode 100644 index 754e519fd8..0000000000 --- a/1807.ca998b8f.async.js +++ /dev/null @@ -1,12 +0,0 @@ -"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 deleted file mode 100644 index 4aaa77edf5..0000000000 --- a/1914.7e360ee4.async.js +++ /dev/null @@ -1 +0,0 @@ -(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/215.9d995194.async.js b/215.9d995194.async.js deleted file mode 100644 index 68c46e39af..0000000000 --- a/215.9d995194.async.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[215],{35122:function(pr,Bn,c){var X=c(93264),J=c(57963),Ue=c(98787),te=c(5745),v=c(27097),Rn=c(79714),l=c(89259),G=c(79685),Ge=c(46821),vn=c(25393),ln=c(63342),Dn=["children","value","valuePropName","onChange","fieldProps","space","type","transform","convertValue","lightProps"],Me=["children","space","valuePropName"],ye={space:v.Z,group:Rn.Z.Group};function ve(Ze){var He=arguments.length<=1?void 0:arguments[1];return He&&He.target&&Ze in He.target?He.target[Ze]:He}var en=function(He){var Un=He.children,i=He.value,de=i===void 0?[]:i,nn=He.valuePropName,rn=He.onChange,ee=He.fieldProps,An=He.space,Ke=He.type,$n=Ke===void 0?"space":Ke,Wn=He.transform,jn=He.convertValue,Nn=He.lightProps,tn=(0,Ue.Z)(He,Dn),Jn=(0,te.J)(function(un,In){var wn,bn=(0,J.Z)(de);bn[In]=ve(nn||"value",un),rn==null||rn(bn),ee==null||(wn=ee.onChange)===null||wn===void 0||wn.call(ee,bn)}),Yn=-1,hr=(0,l.Z)(Un).map(function(un){if(G.isValidElement(un)){var In,wn,bn;Yn+=1;var on=Yn,Tr=(un==null||(In=un.type)===null||In===void 0?void 0:In.displayName)==="ProFormComponent"||(un==null||(wn=un.props)===null||wn===void 0?void 0:wn.readonly),lr=Tr?(0,X.Z)((0,X.Z)({key:on,ignoreFormItem:!0},un.props||{}),{},{fieldProps:(0,X.Z)((0,X.Z)({},un==null||(bn=un.props)===null||bn===void 0?void 0:bn.fieldProps),{},{onChange:function(){Jn(arguments.length<=0?void 0:arguments[0],on)}}),value:de==null?void 0:de[on],onChange:void 0}):(0,X.Z)((0,X.Z)({key:on},un.props||{}),{},{value:de==null?void 0:de[on],onChange:function(br){var rr,Hn;Jn(br,on),(rr=(Hn=un.props).onChange)===null||rr===void 0||rr.call(Hn,br)}});return G.cloneElement(un,lr)}return un}),yr=ye[$n],Cr=(0,vn.zx)(tn),tr=Cr.RowWrapper,qn=(0,G.useMemo)(function(){return(0,X.Z)({},$n==="group"?{compact:!0}:{})},[$n]),ar=(0,G.useCallback)(function(un){var In=un.children;return(0,ln.jsx)(yr,(0,X.Z)((0,X.Z)((0,X.Z)({},qn),An),{},{align:"start",wrap:!0,children:In}))},[yr,An,qn]);return(0,ln.jsx)(tr,{Wrapper:ar,children:hr})},Ye=G.forwardRef(function(Ze,He){var Un=Ze.children,i=Ze.space,de=Ze.valuePropName,nn=(0,Ue.Z)(Ze,Me);return(0,G.useImperativeHandle)(He,function(){return{}}),(0,ln.jsx)(en,(0,X.Z)((0,X.Z)((0,X.Z)({space:i,valuePropName:de},nn.fieldProps),{},{onChange:void 0},nn),{},{children:Un}))}),d=(0,Ge.G)(Ye);Bn.Z=d},33636:function(pr,Bn,c){var X=c(66197);Bn.ZP=X.A},47481:function(pr,Bn,c){c.d(Bn,{Y:function(){return d}});var X=c(7623),J=c(64632),Ue=c(93264),te=c(89342),v=c(98787),Rn=c(74454),l=c(89543),G=c(8910),Ge=c(25239),vn=c.n(Ge),ln=c(46501),Dn=c(30765),Me=c(79685),ye=c(50374),ve=c(29927),en=c(63342),Ye=["children","trigger","onVisibleChange","onOpenChange","modalProps","onFinish","submitTimeout","title","width","visible","open"];function d(Ze){var He,Un,i=Ze.children,de=Ze.trigger,nn=Ze.onVisibleChange,rn=Ze.onOpenChange,ee=Ze.modalProps,An=Ze.onFinish,Ke=Ze.submitTimeout,$n=Ze.title,Wn=Ze.width,jn=Ze.visible,Nn=Ze.open,tn=(0,v.Z)(Ze,Ye);(0,Dn.ET)(!tn.footer||!(ee!=null&&ee.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 Jn=(0,Me.useContext)(l.ZP.ConfigContext),Yn=(0,Me.useState)([]),hr=(0,te.Z)(Yn,2),yr=hr[1],Cr=(0,Me.useState)(!1),tr=(0,te.Z)(Cr,2),qn=tr[0],ar=tr[1],un=(0,ln.Z)(!!jn,{value:Nn||jn,onChange:rn||nn}),In=(0,te.Z)(un,2),wn=In[0],bn=In[1],on=(0,Me.useRef)(null),Tr=(0,Me.useCallback)(function(fn){on.current===null&&fn&&yr([]),on.current=fn},[]),lr=(0,Me.useRef)(),Er=(0,Me.useCallback)(function(){var fn,$e,Ce,sn=(fn=($e=tn.form)!==null&&$e!==void 0?$e:(Ce=tn.formRef)===null||Ce===void 0?void 0:Ce.current)!==null&&fn!==void 0?fn:lr.current;sn&&ee!==null&&ee!==void 0&&ee.destroyOnClose&&sn.resetFields()},[ee==null?void 0:ee.destroyOnClose,tn.form,tn.formRef]);(0,Me.useImperativeHandle)(tn.formRef,function(){return lr.current},[lr.current]),(0,Me.useEffect)(function(){wn&&(Nn||jn)&&(rn==null||rn(!0),nn==null||nn(!0))},[jn,Nn,wn]);var br=(0,Me.useMemo)(function(){return de?Me.cloneElement(de,(0,Ue.Z)((0,Ue.Z)({key:"trigger"},de.props),{},{onClick:function(){var fn=(0,J.Z)((0,X.Z)().mark(function Ce(sn){var kn,mn;return(0,X.Z)().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:bn(!wn),(kn=de.props)===null||kn===void 0||(mn=kn.onClick)===null||mn===void 0||mn.call(kn,sn);case 2:case"end":return je.stop()}},Ce)}));function $e(Ce){return fn.apply(this,arguments)}return $e}()})):null},[bn,de,wn]),rr=(0,Me.useMemo)(function(){var fn,$e,Ce,sn,kn,mn;return tn.submitter===!1?!1:vn()({searchConfig:{submitText:(fn=($e=ee==null?void 0:ee.okText)!==null&&$e!==void 0?$e:(Ce=Jn.locale)===null||Ce===void 0||(Ce=Ce.Modal)===null||Ce===void 0?void 0:Ce.okText)!==null&&fn!==void 0?fn:"\u786E\u8BA4",resetText:(sn=(kn=ee==null?void 0:ee.cancelText)!==null&&kn!==void 0?kn:(mn=Jn.locale)===null||mn===void 0||(mn=mn.Modal)===null||mn===void 0?void 0:mn.cancelText)!==null&&sn!==void 0?sn:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:Ke?qn:void 0,onClick:function(je){var Zr;bn(!1),ee==null||(Zr=ee.onCancel)===null||Zr===void 0||Zr.call(ee,je)}}},tn.submitter)},[(He=Jn.locale)===null||He===void 0||(He=He.Modal)===null||He===void 0?void 0:He.cancelText,(Un=Jn.locale)===null||Un===void 0||(Un=Un.Modal)===null||Un===void 0?void 0:Un.okText,ee,tn.submitter,bn,qn,Ke]),Hn=(0,Me.useCallback)(function(fn,$e){return(0,en.jsxs)(en.Fragment,{children:[fn,on.current&&$e?(0,en.jsx)(Me.Fragment,{children:(0,ye.createPortal)($e,on.current)},"submitter"):$e]})},[]),Lr=(0,Me.useCallback)(function(){var fn=(0,J.Z)((0,X.Z)().mark(function $e(Ce){var sn,kn,mn;return(0,X.Z)().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return sn=An==null?void 0:An(Ce),Ke&&sn instanceof Promise&&(ar(!0),kn=setTimeout(function(){return ar(!1)},Ke),sn.finally(function(){clearTimeout(kn),ar(!1)})),je.next=4,sn;case 4:return mn=je.sent,mn&&bn(!1),je.abrupt("return",mn);case 7:case"end":return je.stop()}},$e)}));return function($e){return fn.apply(this,arguments)}}(),[An,bn,Ke]),Kr=(0,Rn.X)(wn);return(0,en.jsxs)(en.Fragment,{children:[(0,en.jsx)(G.Z,(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({title:$n,width:Wn||800},ee),Kr),{},{onCancel:function($e){var Ce;Ke&&qn||(bn(!1),ee==null||(Ce=ee.onCancel)===null||Ce===void 0||Ce.call(ee,$e))},afterClose:function(){var $e;Er(),bn(!1),ee==null||($e=ee.afterClose)===null||$e===void 0||$e.call(ee)},footer:tn.submitter!==!1?(0,en.jsx)("div",{ref:Tr,style:{display:"flex",justifyContent:"flex-end"}}):null,children:(0,en.jsx)(ve.I,(0,Ue.Z)((0,Ue.Z)({formComponentType:"ModalForm",layout:"vertical"},tn),{},{onInit:function($e,Ce){var sn;tn.formRef&&(tn.formRef.current=Ce),tn==null||(sn=tn.onInit)===null||sn===void 0||sn.call(tn,$e,Ce),lr.current=Ce},formRef:lr,submitter:rr,onFinish:function(){var fn=(0,J.Z)((0,X.Z)().mark(function $e(Ce){var sn;return(0,X.Z)().wrap(function(mn){for(;;)switch(mn.prev=mn.next){case 0:return mn.next=2,Lr(Ce);case 2:return sn=mn.sent,mn.abrupt("return",sn);case 4:case"end":return mn.stop()}},$e)}));return function($e){return fn.apply(this,arguments)}}(),contentRender:Hn,children:i}))})),br]})}},90215:function(pr,Bn,c){c.d(Bn,{Z:function(){return eo}});var X=c(7623),J=c(64632),Ue=c(63195),te=c(89342),v=c(6346),Rn=c(57963),l=c(93264),G=c(98787),Ge=c(60190),vn=c(89869),ln=c(89543),Dn=c(71275),Me=c(55095),ye=c(68591),ve=c.n(ye),en=c(12869),Ye=c(46501),d=c(79685),Ze=c(33298),He=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 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/2460.32f6ceb2.async.js b/2460.32f6ceb2.async.js new file mode 100644 index 0000000000..db2df339ed --- /dev/null +++ b/2460.32f6ceb2.async.js @@ -0,0 +1,10 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2460],{73715:function(L,v){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"};v.Z=n},82574:function(L,v,n){var o=n(35361),u=n(50959),h=n(5590),C=n(69164),f=function(S,O){return u.createElement(C.Z,(0,o.Z)((0,o.Z)({},S),{},{ref:O,icon:h.Z}))};f.displayName="DownOutlined",v.Z=u.forwardRef(f)},19791:function(L,v,n){n.d(v,{Z:function(){return S}});var o=n(35361),u=n(50959),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"},C=h,f=n(69164),$=function(z,j){return u.createElement(f.Z,(0,o.Z)((0,o.Z)({},z),{},{ref:j,icon:C}))};$.displayName="LikeOutlined";var S=u.forwardRef($)},69012:function(L,v,n){var o=n(35361),u=n(50959),h=n(52225),C=n(69164),f=function(S,O){return u.createElement(C.Z,(0,o.Z)((0,o.Z)({},S),{},{ref:O,icon:h.Z}))};f.displayName="LoadingOutlined",v.Z=u.forwardRef(f)},245:function(L,v,n){n.d(v,{Z:function(){return S}});var o=n(35361),u=n(50959),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"},C=h,f=n(69164),$=function(z,j){return u.createElement(f.Z,(0,o.Z)((0,o.Z)({},z),{},{ref:j,icon:C}))};$.displayName="MessageOutlined";var S=u.forwardRef($)},70941:function(L,v,n){n.d(v,{Z:function(){return S}});var o=n(35361),u=n(50959),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"},C=h,f=n(69164),$=function(z,j){return u.createElement(f.Z,(0,o.Z)((0,o.Z)({},z),{},{ref:j,icon:C}))};$.displayName="StarOutlined";var S=u.forwardRef($)},1861:function(L,v,n){var o=n(35361),u=n(50959),h=n(73715),C=n(69164),f=function(S,O){return u.createElement(C.Z,(0,o.Z)((0,o.Z)({},S),{},{ref:O,icon:h.Z}))};f.displayName="UpOutlined",v.Z=u.forwardRef(f)},16965:function(L,v,n){n.d(v,{Z:function(){return s}});var o=n(50959),u=n(82187),h=n.n(u),C=n(87017),f=n(92576),$=n(50483),S=n(9146),O=n(40622),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:m}=o.useContext(f.E_),b=m("card",l),M=h()(`${b}-grid`,a,{[`${b}-grid-hoverable`]:r});return o.createElement("div",Object.assign({},i,{className:M}))},c=n(25446),T=n(55985),ee=n(87077),K=n(37324);const U=e=>{const{antCls:l,componentCls:a,headerHeight:r,cardPaddingBase:i,tabsMarginBottom:m}=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:m,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},Q=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}}},te=e=>{const{componentCls:l,iconCls:a,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:m,actionsBg:b}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:b,borderTop:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${m}`,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} ${m}`}}})},be=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}}),ae=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)}`}}},ne=e=>{const{componentCls:l}=e;return{overflow:"hidden",[`${l}-body`]:{userSelect:"none"}}},re=e=>{const{antCls:l,componentCls:a,cardShadow:r,cardHeadPadding:i,colorBorderSecondary:m,boxShadowTertiary:b,cardPaddingBase:M,extraColor:y}=e;return{[a]:Object.assign(Object.assign({},(0,T.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${a}-bordered)`]:{boxShadow:b},[`${a}-head`]:U(e),[`${a}-extra`]:{marginInlineStart:"auto",color:y,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`]:Q(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`]:te(e),[`${a}-meta`]:be(e)}),[`${a}-bordered`]:{border:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${m}`,[`${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`]:ae(e),[`${a}-loading`]:ne(e),[`${a}-rtl`]:{direction:"rtl"}}},oe=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"}}}}},le=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,ee.I$)("Card",e=>{const l=(0,K.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[re(l),oe(l)]},le),J=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 m=`action-${i}`;return o.createElement("li",{style:{width:`${100/a.length}%`},key:m},o.createElement("span",null,r))}))};var Y=o.forwardRef((e,l)=>{const{prefixCls:a,className:r,rootClassName:i,style:m,extra:b,headStyle:M={},bodyStyle:y={},title:x,loading:I,bordered:D=!0,size:E,type:N,cover:F,actions:G,tabList:W,children:R,activeTabKey:_,defaultActiveTabKey:P,tabBarExtraContent:ce,hoverable:de,tabProps:ge={}}=e,ue=J(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:q,direction:fe,card:Z}=o.useContext(f.E_),k=H=>{var B;(B=e.onTabChange)===null||B===void 0||B.call(e,H)},me=o.useMemo(()=>{let H=!1;return o.Children.forEach(R,B=>{B&&B.type&&B.type===X&&(H=!0)}),H},[R]),p=q("card",a),[A,ye,$e]=w(p),Se=o.createElement(S.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},R),ve=_!==void 0,Oe=Object.assign(Object.assign({},ge),{[ve?"activeKey":"defaultActiveKey"]:ve?_:P,tabBarExtraContent:ce});let he;const V=(0,$.Z)(E),xe=!V||V==="default"?"large":V,Ce=W?o.createElement(O.Z,Object.assign({size:xe},Oe,{className:`${p}-head-tabs`,onChange:k,items:W.map(H=>{var{tab:B}=H,Le=J(H,["tab"]);return Object.assign({label:B},Le)})})):null;(x||b||Ce)&&(he=o.createElement("div",{className:`${p}-head`,style:M},o.createElement("div",{className:`${p}-head-wrapper`},x&&o.createElement("div",{className:`${p}-head-title`},x),b&&o.createElement("div",{className:`${p}-extra`},b)),Ce));const Ee=F?o.createElement("div",{className:`${p}-cover`},F):null,Pe=o.createElement("div",{className:`${p}-body`,style:y},I?Se:R),Te=G&&G.length?o.createElement(ie,{prefixCls:p,actions:G}):null,Me=(0,C.Z)(ue,["onTabChange"]),ze=h()(p,Z==null?void 0:Z.className,{[`${p}-loading`]:I,[`${p}-bordered`]:D,[`${p}-hoverable`]:de,[`${p}-contain-grid`]:me,[`${p}-contain-tabs`]:W&&W.length,[`${p}-${V}`]:V,[`${p}-type-${N}`]:!!N,[`${p}-rtl`]:fe==="rtl"},r,i,ye,$e),Be=Object.assign(Object.assign({},Z==null?void 0:Z.style),m);return A(o.createElement("div",Object.assign({ref:l},Me,{className:ze,style:Be}),he,Ee,Pe,Te))}),se=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:m}=e,b=se(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:M}=o.useContext(f.E_),y=M("card",l),x=h()(`${y}-meta`,a),I=r?o.createElement("div",{className:`${y}-meta-avatar`},r):null,D=i?o.createElement("div",{className:`${y}-meta-title`},i):null,E=m?o.createElement("div",{className:`${y}-meta-description`},m):null,N=D||E?o.createElement("div",{className:`${y}-meta-detail`},D,E):null;return o.createElement("div",Object.assign({},b,{className:x}),I,N)};const g=Y;g.Grid=X,g.Meta=d;var s=g},59084:function(L,v,n){n.d(v,{Z:function(){return se}});var o=n(50959),u=n(22410),h=n(82187),C=n.n(h),f=n(60811),$=n(17005),S=n(68300),O=n(92576),z=n(25446),j=n(99978),X=n(55985),c=n(37324),T=n(87077);const ee=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,X.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}}},K=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})},U=t=>({defaultBg:new j.C(t.colorFillQuaternary).onBackground(t.colorBgContainer).toHexString(),defaultColor:t.colorText});var Q=(0,T.I$)("Tag",t=>{const d=K(t);return ee(d)},U),te=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=te(t,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:m,tag:b}=o.useContext(O.E_),M=N=>{a==null||a(!l),r==null||r(N)},y=m("tag",g),[x,I,D]=Q(y),E=C()(y,`${y}-checkable`,{[`${y}-checkable-checked`]:l},b==null?void 0:b.className,e,I,D);return x(o.createElement("span",Object.assign({},i,{ref:d,style:Object.assign(Object.assign({},s),b==null?void 0:b.style),className:E,onClick:M})))}),ne=n(61281);const re=t=>(0,ne.Z)(t,(d,g)=>{let{textColor:s,lightBorderColor:e,lightColor:l,darkColor:a}=g;return{[`${t.componentCls}${t.componentCls}-${d}`]:{color:s,background:l,borderColor:e,"&-inverse":{color:t.colorTextLightSolid,background:a,borderColor:a},[`&${t.componentCls}-borderless`]:{borderColor:"transparent"}}}});var oe=(0,T.bk)(["Tag","preset"],t=>{const d=K(t);return re(d)},U);function le(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.slice(1)}const w=(t,d,g)=>{const s=le(g);return{[`${t.componentCls}${t.componentCls}-${d}`]:{color:t[`color${g}`],background:t[`color${s}Bg`],borderColor:t[`color${s}Border`],[`&${t.componentCls}-borderless`]:{borderColor:"transparent"}}}};var J=(0,T.bk)(["Tag","status"],t=>{const d=K(t);return[w(d,"success","Success"),w(d,"processing","Info"),w(d,"error","Error"),w(d,"warning","Warning")]},U),ie=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:m,closeIcon:b,closable:M,bordered:y=!0}=t,x=ie(t,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:I,direction:D,tag:E}=o.useContext(O.E_),[N,F]=o.useState(!0);o.useEffect(()=>{"visible"in x&&F(x.visible)},[x.visible]);const G=(0,f.o2)(i),W=(0,f.yT)(i),R=G||W,_=Object.assign(Object.assign({backgroundColor:i&&!R?i:void 0},E==null?void 0:E.style),l),P=I("tag",g),[ce,de,ge]=Q(P),ue=C()(P,E==null?void 0:E.className,{[`${P}-${i}`]:R,[`${P}-has-color`]:i&&!R,[`${P}-hidden`]:!N,[`${P}-rtl`]:D==="rtl",[`${P}-borderless`]:!y},s,e,de,ge),q=A=>{A.stopPropagation(),m==null||m(A),!A.defaultPrevented&&F(!1)},[,fe]=(0,$.Z)(M,b,A=>A===null?o.createElement(u.Z,{className:`${P}-close-icon`,onClick:q}):o.createElement("span",{className:`${P}-close-icon`,onClick:q},A),null,!1),Z=typeof x.onClick=="function"||a&&a.type==="a",k=r||null,me=k?o.createElement(o.Fragment,null,k,a&&o.createElement("span",null,a)):a,p=o.createElement("span",Object.assign({},x,{ref:d,className:ue,style:_}),me,fe,G&&o.createElement(oe,{key:"preset",prefixCls:P}),W&&o.createElement(J,{key:"status",prefixCls:P}));return ce(Z?o.createElement(S.Z,{component:"Tag"},p):p)},Y=o.forwardRef(pe);Y.CheckableTag=ae;var se=Y}}]); diff --git a/2723.a59f0434.async.js b/2723.a59f0434.async.js deleted file mode 100644 index 70f9016e51..0000000000 --- a/2723.a59f0434.async.js +++ /dev/null @@ -1 +0,0 @@ -"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/2978.5afab472.async.js b/2978.5afab472.async.js new file mode 100644 index 0000000000..4defa69bb5 --- /dev/null +++ b/2978.5afab472.async.js @@ -0,0 +1,71 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2978],{52978:function(Ti,yr,R){R.d(yr,{default:function(){return Gl}});var $r=R(5726),Be=R.n($r),Wn=R(12868),Pr=R(68102),Rr=R.n(Pr),Er=R(99471),Nr=R.n(Er),kr=R(83867),Mr=R.n(kr),Zr=R(1942),Ir=R.n(Zr),Yr=R(1293),Or=R.n(Yr),Tr=R(25010),Vr=R.n(Tr);Be().extend(Vr()),Be().extend(Or()),Be().extend(Rr()),Be().extend(Nr()),Be().extend(Mr()),Be().extend(Ir()),Be().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"},wn=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 Be()()},getFixedDate:function(n){return Be()(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 Be()().locale(wn(n)).localeData().firstDayOfWeek()},getWeekFirstDate:function(n,t){return t.locale(wn(n)).weekday(0)},getWeek:function(n,t){return t.locale(wn(n)).week()},getShortWeekDays:function(n){return Be()().locale(wn(n)).localeData().weekdaysMin()},getShortMonths:function(n){return Be()().locale(wn(n)).localeData().monthsShort()},format:function(n,t,a){return t.locale(wn(n)).format(a)},parse:function(n,t,a){for(var r=wn(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 Ze(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(57),Kn=R(28449),sa=R(30360),no=R(95992),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 Yn(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(77189);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({}),Ae=fo,On=R(97382);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,L=i?n.getSecond(i):-1,j=n.getNow(),J=o.useMemo(function(){if(D){var V=D(j);return[V.disabledHours,V.disabledMinutes,V.disabledSeconds]}return[g,C,S]},[g,C,S,D,j]),Q=(0,O.Z)(J,3),W=Q[0],G=Q[1],te=Q[2],ie=yt(0,23,v,W&&W()),ce=(0,la.Z)(function(){return ie},ie,Po);f&&(A=z>=12,z%=12);var Se=o.useMemo(function(){if(!f)return[!1,!1];var V=[!0,!0];return ce.forEach(function(he){var fe=he.disabled,De=he.value;fe||(De>=12?V[1]=!1:V[0]=!1)}),V},[f,ce]),ne=(0,O.Z)(Se,2),ye=ne[0],Ne=ne[1],Ie=o.useMemo(function(){return f?ce.filter(A?function(V){return V.value>=12}:function(V){return V.value<12}).map(function(V){var he=V.value%12,fe=he===0?"12":ha(he,2);return(0,oe.Z)((0,oe.Z)({},V),{},{label:fe,value:he})}):ce},[f,A,ce]),be=yt(0,59,p,G&&G(q)),xe=yt(0,59,u,te&&te(q,ee)),ae=yo({value:i,generateConfig:n,disabledMinutes:G,disabledSeconds:te,minutes:be,seconds:xe,use12Hours:f});a.current={onUpDown:function(he){var fe=I[r];if(fe)for(var De=fe.units.findIndex(function(cn){return cn.value===fe.value}),$e=fe.units.length,ve=1;ve<$e;ve+=1){var Qe=fe.units[(De+he*ve+$e)%$e];if(Qe.disabled!==!0){fe.onSelect(Qe.value);break}}}};function Ce(V,he,fe,De,$e){V!==!1&&I.push({node:o.cloneElement(he,{prefixCls:N,value:fe,active:r===I.length,onSelect:$e,units:De,hideDisabledOptions:y}),onSelect:$e,value:fe,units:De})}Ce(l,o.createElement(ot,{key:"hour",type:"hour",info:{today:j,locale:x,cellRender:w}}),z,Ie,function(V){$(ae(A,V,ee,L),"mouse")}),Ce(s,o.createElement(ot,{key:"minute",type:"minute",info:{today:j,locale:x,cellRender:w}}),ee,be,function(V){$(ae(A,z,V,L),"mouse")}),Ce(c,o.createElement(ot,{key:"second",type:"second",info:{today:j,locale:x,cellRender:w}}),L,xe,function(V){$(ae(A,z,ee,V),"mouse")});var de=-1;return typeof A=="boolean"&&(de=A?1:0),Ce(f===!0,o.createElement(ot,{key:"meridiem",type:"meridiem",info:{today:j,locale:x,cellRender:w}}),de,[{label:"AM",value:0,disabled:ye},{label:"PM",value:1,disabled:Ne}],function(V){$(ae(!!V,z,ee,L),"mouse")}),o.createElement("div",{className:E},I.map(function(V){var he=V.node;return he}))}var Eo=Ro;function No(e){var n=o.useContext(Ae),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(Tn,{prefixCls:c},l?Ze(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 Yn(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:me()(m,(0,M.Z)({},"".concat(m,"-active"),i))},o.createElement(ko,(0,H.Z)({},e,{format:a,prefixCls:r})),o.createElement(Eo,(0,H.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,On.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),L=$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,L))||[-1],59);E=a.setHour(E,ee),E=a.setMinute(E,L),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:me()(h,(0,M.Z)({},"".concat(h,"-active"),p))},o.createElement(Dt,(0,H.Z)({},e,{cellRender:f,operationRef:u,active:p==="date",onSelect:function(x){y(wa(a,x,!r&&(0,On.Z)(s)==="object"?s.defaultValue:null),"date")}})),o.createElement(Sa,(0,H.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(Ae),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(Tn,(0,H.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,H.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 Yn(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,H.Z)({},e,{prefixCls:n,onPrevDecades:function(){f(-1)},onNextDecades:function(){f(1)}})),o.createElement(Ho,(0,H.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(Ae),f=c.hideHeader;if(f)return null;var h="".concat(n,"-header");return o.createElement(Tn,(0,H.Z)({},e,{prefixCls:h,onSuperPrev:l,onSuperNext:i}),o.createElement("button",{type:"button",onClick:s,className:"".concat(n,"-year-btn")},Ze(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(xn),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,H.Z)({},e,{rowNum:Fo,colNum:Rt,baseDate:p,getCellNode:m,getCellText:function(g){return t.monthFormat?Ze(g,{locale:t,format:t.monthFormat,generateConfig:i}):d[i.getMonth(g)]},getCellClassName:v,getCellDate:i.addMonth,titleCell:function(g){return Ze(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 Yn(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,H.Z)({},e,{prefixCls:n,onPrevYear:function(){h(-1)},onNextYear:function(){h(1)},onYearClick:function(){s("year",l)}})),o.createElement(Uo,(0,H.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(Ae),f=c.hideHeader;if(f)return null;var h="".concat(n,"-header");return o.createElement(Tn,(0,H.Z)({},e,{prefixCls:h,onSuperPrev:l,onSuperNext:i}),o.createElement("button",{type:"button",onClick:s,className:"".concat(n,"-year-btn")},Ze(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(xn),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,H.Z)({},e,{rowNum:qo,colNum:Xo,baseDate:d,getCellNode:p,getCellText:function(u){return Ze(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 Ze(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 Yn(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,H.Z)({},e,{prefixCls:n,onPrevYear:function(){h(-1)},onNextYear:function(){h(1)},onYearClick:function(){s("year",l)}})),o.createElement(_o,(0,H.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(xn),c=s.rangedValue,f=s.hoverRangedValue,h=o.useContext(Ae),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:me()(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 me()(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,H.Z)({},e,{panelName:"week",prefixColumn:g,rowClassName:S,keyboardConfig:{onLeftRight:null},isSameCell:function(){return!1}}))}var al=tl,mn=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(Ae),c=s.hideHeader;if(c)return null;var f="".concat(n,"-header"),h=t.getYear(a),v=Math.floor(h/mn)*mn,d=v+mn-1;return o.createElement(Tn,(0,H.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(xn),c=s.rangedValue,f=s.hoverRangedValue,h="".concat(n,"-cell"),v=i.getYear(a),d=Math.floor(v/mn)*mn,p=d+mn-1,m=i.setYear(a,d-Math.ceil((Et*ya-mn)/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,H.Z)({},e,{rowNum:ya,colNum:Et,baseDate:m,getCellNode:S,getCellText:i.getYear,getCellClassName:C,getCellDate:i.addYear,titleCell:function(y){return Ze(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 Yn(p,{onLeftRight:function(u){c(r.addYear(i||l,u),"key")},onCtrlLeftRight:function(u){c(r.addYear(i||l,u*mn),"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,H.Z)({},e,{prefixCls:n,onPrevDecade:function(){v(-1)},onNextDecade:function(){v(1)},onDecadeClick:function(){f("decade",l)}})),o.createElement(il,(0,H.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,L=t.direction,j=t.hourStep,J=j===void 0?1:j,Q=t.minuteStep,W=Q===void 0?1:Q,G=t.secondStep,te=G===void 0?1:G,ie=t.dateRender,ce=t.monthCellRender,Se=t.cellRender,ne=g==="date"&&!!y||g==="time",ye=24%J===0,Ne=60%W===0,Ie=60%te===0,be=o.useContext(Ae),xe=be.operationRef,ae=be.onSelect,Ce=be.hideRanges,de=be.defaultOpenValue,V=o.useContext(xn),he=V.inRange,fe=V.panelPosition,De=V.rangedValue,$e=V.hoverRangedValue,ve=o.useRef({}),Qe=o.useRef(!0),cn=(0,gn.Z)(null,{value:f,defaultValue:h,postState:function(b){return!b&&de&&g==="time"?de:b}}),Te=(0,O.Z)(cn,2),Pe=Te[0],Re=Te[1],tn=(0,gn.Z)(null,{value:v,defaultValue:d||Pe,postState:function(b){var Y=c.getNow();if(!b)return Y;if(!Pe&&y){var pe=(0,On.Z)(y)==="object"?y.defaultValue:h;return wa(c,Array.isArray(b)?b[0]:b,pe||Y)}return Array.isArray(b)?b[0]:b}}),yn=(0,O.Z)(tn,2),ke=yn[0],Ge=yn[1],We=function(b){Ge(b),q&&q(b)},$n=function(b){var Y=uo[g];return Y?Y(b):b},un=(0,gn.Z)(function(){return g==="time"?"time":$n("date")},{value:m}),Ye=(0,O.Z)(un,2),ge=Ye[0],Ve=Ye[1];o.useEffect(function(){Ve(g)},[g]);var an=o.useState(function(){return ge}),rn=(0,O.Z)(an,2),Fe=rn[0],je=rn[1],Je=function(b,Y){var pe=$n(b||ge);je(ge),Ve(pe),N&&(ge!==pe||In(c,ke,ke))&&N(Y,pe)},we=function(b,Y){var pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(ge===g||pe)&&(Re(b),I&&I(b),ae&&ae(b,Y),E&&!In(c,b,Pe)&&!(p!=null&&p(b))&&E(b))},He=function(b){if(sl.includes(ge)){var Y,pe,fn=ge==="date";switch(b===X.Z.PAGE_UP||b===X.Z.PAGE_DOWN?pe=fn?c.addMonth:c.addYear:pe=fn?c.addDate:c.addMonth,b){case X.Z.LEFT:case X.Z.PAGE_UP:Y=pe(ke,-1);break;case X.Z.RIGHT:case X.Z.PAGE_DOWN:Y=pe(ke,1);break;case X.Z.UP:case X.Z.DOWN:Y=pe(ke,Number("".concat(b===X.Z.UP?"-":"").concat(fn?Fn:Rt)));break}if(Y)return!(p!=null&&p(Y))}return!0},Pn=function(b){if(ve.current&&ve.current.onKeyDown){var Y=!0,pe=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(pe)&&(b.preventDefault(),pe!==X.Z.ENTER&&S===0&&(Y=He(pe))),Y)return ve.current.onKeyDown(b)}return(0,Wn.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},hn=function(b){ve.current&&ve.current.onBlur&&ve.current.onBlur(b)};xe&&fe!=="right"&&(xe.current={onKeyDown:Pn,onClose:function(){ve.current&&ve.current.onClose&&ve.current.onClose()}}),o.useEffect(function(){f&&!Qe.current&&Ge(f)},[f]),o.useEffect(function(){Qe.current=!1},[]);var _,sn=ma({cellRender:Se,monthCellRender:ce,dateRender:ie}),Me=(0,oe.Z)((0,oe.Z)({},e),{},{cellRender:sn,operationRef:ve,prefixCls:r,viewDate:ke,value:Pe,onViewDateChange:We,sourceMode:Fe,onPanelChange:Je,disabledDate:p});switch(delete Me.onChange,delete Me.onSelect,ge){case"decade":_=o.createElement(Bo,(0,H.Z)({},Me,{onSelect:function(b,Y){We(b),we(b,Y)}}));break;case"year":_=o.createElement(ul,(0,H.Z)({},Me,{onSelect:function(b,Y){We(b),we(b,Y)}}));break;case"month":_=o.createElement(Ko,(0,H.Z)({},Me,{onSelect:function(b,Y){We(b),we(b,Y)}}));break;case"quarter":_=o.createElement(nl,(0,H.Z)({},Me,{onSelect:function(b,Y){We(b),we(b,Y)}}));break;case"week":_=o.createElement(al,(0,H.Z)({},Me,{onSelect:function(b,Y){We(b),we(b,Y)}}));break;case"time":delete Me.showTime,_=o.createElement(Sa,(0,H.Z)({},Me,(0,On.Z)(y)==="object"?y:null,{onSelect:function(b,Y){We(b),we(b,Y)}}));break;default:y?_=o.createElement(Yo,(0,H.Z)({},Me,{onSelect:function(b,Y){We(b),we(b,Y)}})):_=o.createElement(Dt,(0,H.Z)({},Me,{onSelect:function(b,Y){We(b),we(b,Y)}}))}var ue,Xe,_e=function(){var b=c.getNow(),Y=mo(c.getHour(b),c.getMinute(b),c.getSecond(b),ye?J:1,Ne?W:1,Ie?te:1),pe=ba(c,b,Y[0],Y[1],Y[2]);we(pe,"submit")};Ce||(ue=$a(r,ge,w),y&&ge!=="date"?Xe=null:Xe=Pa({prefixCls:r,components:ee,needConfirmButton:ne,okDisabled:!Pe||p&&p(Pe),locale:s,showNow:D,onNow:ne&&_e,onOk:function(){Pe&&(we(Pe,"submit",!0),z&&z(Pe))}}));var pn;if($&&ge==="date"&&g==="date"&&!y){var Ln=c.getNow(),dn="".concat(r,"-today-btn"),Rn=p&&p(Ln);pn=o.createElement("a",{className:me()(dn,Rn&&"".concat(dn,"-disabled")),"aria-disabled":Rn,onClick:function(){Rn||we(Ln,"mouse",!0)}},s.today)}return o.createElement(Ae.Provider,{value:(0,oe.Z)((0,oe.Z)({},be),{},{mode:ge,hideHeader:"hideHeader"in e?x:be.hideHeader,hidePrevBtn:he&&fe==="right",hideNextBtn:he&&fe==="left"})},o.createElement("div",{tabIndex:S,className:me()("".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"),L==="rtl"),n)),style:l,onKeyDown:Pn,onBlur:hn,onMouseDown:A},_,ue||Xe||pn?o.createElement("div",{className:"".concat(r,"-footer")},ue,Xe,pn):null))}var Ra=dl,fl=R(62382),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:me()(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,On.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,L=t.clearIcon,j=t.disabled,J=t.disabledDate,Q=t.placeholder,W=t.getPopupContainer,G=t.pickerRef,te=t.panelRender,ie=t.onChange,ce=t.onOpenChange,Se=t.onFocus,ne=t.onBlur,ye=t.onMouseDown,Ne=t.onMouseUp,Ie=t.onMouseEnter,be=t.onMouseLeave,xe=t.onContextMenu,ae=t.onClick,Ce=t.onKeyDown,de=t.onSelect,V=t.direction,he=t.autoComplete,fe=he===void 0?"off":he,De=t.inputRender,$e=t.changeOnBlur,ve=o.useRef(null),Qe=$==="date"&&!!D||$==="time",cn=ga(N),Te=pa(da(w,$,D,x)),Pe=o.useRef(null),Re=o.useRef(null),tn=o.useRef(null),yn=(0,gn.Z)(null,{value:I,defaultValue:E}),ke=(0,O.Z)(yn,2),Ge=ke[0],We=ke[1],$n=o.useState(Ge),un=(0,O.Z)($n,2),Ye=un[0],ge=un[1],Ve=o.useRef(null),an=(0,gn.Z)(!1,{value:A,defaultValue:q,postState:function(k){return j?!1:k},onChange:function(k){ce&&ce(k),!k&&Ve.current&&Ve.current.onClose&&Ve.current.onClose()}}),rn=(0,O.Z)(an,2),Fe=rn[0],je=rn[1],Je=et(Ye,{formatList:Te,generateConfig:m,locale:u}),we=(0,O.Z)(Je,2),He=we[0],Pn=we[1],hn=xt({valueTexts:He,onTextChange:function(k){var Le=ua(k,{locale:u,formatList:Te,generateConfig:m});Le&&(!J||!J(Le))&&ge(Le)}}),_=(0,O.Z)(hn,3),sn=_[0],Me=_[1],ue=_[2],Xe=function(k){ge(k),We(k),ie&&!In(m,Ge,k)&&ie(k,k?Ze(k,{generateConfig:m,locale:u,format:Te[0]}):"")},_e=function(k){j&&k||je(k)},pn=function(k){return Fe&&Ve.current&&Ve.current.onKeyDown?Ve.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,Le=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;Ee&&An&&An[0]&&An[1]&&u.isAfter(An[1],An[0])&&(B=An);var F=x;if(x&&(0,On.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(xn.Provider,{value:{inRange:!0,panelPosition:K,rangedValue:ri||b,hoverRangedValue:B}},o.createElement(Ra,(0,H.Z)({},e,P,{cellRender:$i,showTime:F,mode:En[Z],generateConfig:u,style:void 0,direction:ke,disabledDate:Z===0?st:dt,disabledTime:function(nn){return J?J(nn,Z===0?"start":"end"):!1},className:me()((0,M.Z)({},"".concat(l,"-panel-focused"),Z===0?!gr:!Cr)),value:U(b,Z),locale:g,tabIndex:-1,onPanelChange:function(nn,vn){Z===0&&Ft(!0),Z===1&&Ut(!0),ut(Ke(En,vn,Z),Ke(b,nn,Z));var bn=nn;K==="right"&&En[Z]===vn&&(bn=zn(bn,vn,u,-1)),dn(bn,Z)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:Z===0?U(b,1):U(b,0)})))}var Cn=0,br=0;if(Z&&an.current&&Fe.current&&Ve.current&&we.current){Cn=an.current.offsetWidth+Fe.current.offsetWidth;var Ri=we.current.offsetLeft>Cn?we.current.offsetLeft-Cn:we.current.offsetLeft,wr=Ve.current.offsetWidth,Sr=we.current.offsetWidth;wr&&Sr&&Cn>wr-Sr-(ke==="rtl"?0:Ri)&&(br=Cn)}var Ei=ke==="rtl"?{right:Cn}:{left:Cn};function Ni(){var K,P=$a(l,En[Z],ae),B=Pa({prefixCls:l,components:tn,needConfirmButton:Ye,okDisabled:!U(b,Z)||j&&j(b[Z]),locale:g,onOk:function(){var ze=U(b,Z);ze&&(kn(b,Z),Pe==null||Pe(b),Ue(!1,Z,"confirm"))}});if(w!=="time"&&!x){var F=Ln(Z),re=zn(F,w,u),Oe=En[Z],nn=Oe===w,vn=Kt(nn?"left":!1,{pickerValue:F,onPickerValueChange:function(ze){dn(ze,Z)}}),bn=Kt("right",{pickerValue:re,onPickerValueChange:function(ze){dn(zn(ze,w,u,-1),Z)}});ke==="rtl"?K=o.createElement(o.Fragment,null,bn,nn&&vn):K=o.createElement(o.Fragment,null,vn,nn&&bn)}else K=Kt();var qn=o.createElement("div",{className:"".concat(l,"-panel-layout")},o.createElement(Na,{prefixCls:l,presets:Pi,onClick:function(ze){kn(ze,null),Ue(!1,Z,"preset")},onHover:function(ze){oi(ze)}}),o.createElement("div",null,o.createElement("div",{className:"".concat(l,"-panels")},K),(P||B)&&o.createElement("div",{className:"".concat(l,"-footer")},P,B)));return te&&(qn=te(qn)),o.createElement("div",{className:"".concat(l,"-panel-container"),style:{marginLeft:br},ref:Ve,onMouseDown:function(ze){ze.preventDefault()}},qn)}var ki=o.createElement("div",{className:me()("".concat(l,"-range-wrapper"),"".concat(l,"-").concat(w,"-range-wrapper")),style:{minWidth:k}},o.createElement("div",{ref:we,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,ne,Ne),Zi=o.createElement("span",{onMouseDown:function(P){P.preventDefault(),P.stopPropagation()},onMouseUp:function(P){P.preventDefault(),P.stopPropagation();var B=ue;_[0]||(B=Ke(B,null,0)),_[1]||(B=Ke(B,null,1)),kn(B,null),Ue(!1,Z,"clear")},className:"".concat(l,"-clear"),role:"button"},Mi),Ii=ne&&(U(ue,0)&&!_[0]||U(ue,1)&&!_[1]),Dr={size:fa(w,He[0],u)},Qt=0,Gt=0;an.current&&rn.current&&Fe.current&&(Z===0?Gt=an.current.offsetWidth:(Qt=Cn,Gt=rn.current.offsetWidth));var Yi=ke==="rtl"?{right:Qt}:{left:Qt},Oi=function(P,B){var F=Ke(b,P,Z);if(B==="submit"||B!=="key"&&!Ye){kn(F,Z),Z===0?Ft():Ut();var re=Z===0?1:0;_[re]?Ue(!1,!1,"confirm"):Ue(!1,Z,"confirm")}else Y(F)};return o.createElement(Ae.Provider,{value:{operationRef:hn,hideHeader:w==="time",onDateMouseEnter:di,onDateMouseLeave:fi,hideRanges:!0,onSelect:Oi,open:Ee}},o.createElement(Ea,{visible:Ee,popupElement:ki,popupStyle:h,prefixCls:l,dropdownClassName:v,dropdownAlign:p,getPopupContainer:m,transitionName:d,range:!0,direction:ke},o.createElement("div",(0,H.Z)({ref:ge,className:me()(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"),ke==="rtl"),n)),style:c,onClick:Si,onMouseEnter:Qe,onMouseLeave:cn,onMouseDown:xi,onMouseUp:ve},(0,oa.Z)(e,{aria:!0,data:!0})),o.createElement("div",{className:me()("".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,H.Z)({id:s,disabled:_[0],readOnly:be||typeof He[0]=="function"||!gr,value:lr||gt,onChange:function(P){_a(P.target.value)},autoFocus:S,placeholder:U(C,0)||"",ref:je},Ci,Dr,{autoComplete:$n}))),o.createElement("div",{className:"".concat(l,"-range-separator"),ref:Fe},N),o.createElement("div",{className:me()("".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,H.Z)({disabled:_[1],readOnly:be||typeof He[0]=="function"||!Cr,value:ir||mt,onChange:function(P){nr(P.target.value)},placeholder:U(C,1)||"",ref:Je},wi,Dr,{autoComplete:$n}))),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:L,colorLink:j,colorLinkActive:J,colorLinkHover:Q,cellRangeBorderColor:W,borderRadiusSM:G,colorTextLightSolid:te,cellHoverBg:ie,timeColumnHeight:ce,timeColumnWidth:Se,timeCellHeight:ne,controlItemBgActive:ye,marginXXS:Ne,pickerDatePanelPaddingHorizontal:Ie,pickerControlIconMargin:be}=e,xe=e.calc(l).mul(7).add(e.calc(Ie).mul(2)).equal(),ae=e.calc(xe).sub(e.calc(c).mul(2)).div(3).sub(e.pickerYearMonthCellWidth).sub(s).equal(),Ce=e.calc(xe).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:xe},"&-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:be,insetInlineStart:be,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:L},[`${n}-cell-range-hover-start::after`]:{insetInlineStart:Ce,borderInlineStart:`${(0,T.bf)(v)} dashed ${W}`,[`${n}-panel-rtl &`]:{insetInlineEnd:Ce,borderInlineEnd:`${(0,T.bf)(v)} dashed ${W}`}},[`${n}-cell-range-hover-end::after`]:{insetInlineEnd:Ce,borderInlineEnd:`${(0,T.bf)(v)} dashed ${W}`,[`${n}-panel-rtl &`]:{insetInlineStart:Ce,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:ae,borderInlineStart:`${(0,T.bf)(v)} dashed ${W}`,[`${n}-panel-rtl &`]:{insetInlineEnd:ae,borderInlineEnd:`${(0,T.bf)(v)} dashed ${W}`}},[`${n}-cell-range-hover-end::after`]:{insetInlineEnd:ae,borderInlineEnd:`${(0,T.bf)(v)} dashed ${W}`,[`${n}-panel-rtl &`]:{insetInlineStart:ae,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:ie}},[`&-range-start td, + &-range-end td, + &-selected td`]:{[`&${t}`]:{"&:before":{background:m},[`&${n}-cell-week`]:{color:new it.C(te).setAlpha(.5).toHexString()},[a]:{color:te}}},["&-range-hover td:before"]:{background:ye}}},"&-date-panel":{[`${n}-body`]:{padding:`${(0,T.bf)(c)} ${(0,T.bf)(Ie)}`},[`${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:Se,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(ne).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:Ne,[`${n}-time-panel-cell-inner`]:{display:"block",width:e.calc(Se).sub(e.calc(Ne).mul(2)).equal(),height:ne,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(Se).sub(ne).div(2).equal(),color:N,lineHeight:(0,T.bf)(ne),borderRadius:G,cursor:"pointer",transition:`background ${y}`,"&:hover":{background:ie}},"&-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(ne).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,Dn.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,Dn.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:L,borderRadiusLG:j,boxShadowSecondary:J,borderRadiusSM:Q,colorSplit:W,cellHoverBg:G,presetsWidth:te,presetsMaxWidth:ie,boxShadowPopoverArrow:ce,colorTextQuaternary:Se,fontHeight:ne,fontHeightLG:ye,lineHeightLG:Ne}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},(0,kt.Wf)(e)),Zt(e,a,ne,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,Dn.pU)(e)),[`&-focused${n}`]:Object.assign({},(0,Dn.M1)(e)),[`&${n}-disabled`]:{background:v,borderColor:c,cursor:"not-allowed",[`${n}-suffix`]:{color:Se}},[`&${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,Dn.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:Ne}}),"&-small":Object.assign({},Zt(e,g,ne,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:Vn.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:Vn.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:Vn.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:Vn.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,L,ce)),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:L,borderRadius:j,boxShadow:J,transition:`margin ${x}`,[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:te,maxWidth:ie,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(ne).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,Vn.oN)(e,"slide-up"),(0,Vn.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,Dn.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,Dn.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(86865);function Al(e){return o.createElement(Bl.ZP,Object.assign({size:"small",type:"primary"},e))}var ja={button:Al},Ua=R(33915),za=R(12158),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:L}=t,j=w(),J=(0,za.Z)(N),[Q,W,G]=Wa(N,J),te=Object.assign(Object.assign({},ee?ct(Object.assign({format:z,picker:L},ee)):{}),L==="time"?ct(Object.assign(Object.assign({format:z},t),{picker:L})):{}),ie=(0,Oa.Z)(de=>{var V;return(V=h!=null?h:A)!==null&&V!==void 0?V:de}),ce=o.useContext(Ya.Z),Se=v!=null?v:ce,ne=(0,o.useContext)(Ta.aM),{hasFeedback:ye,status:Ne,feedbackIcon:Ie}=ne,be=o.createElement(o.Fragment,null,L==="time"?o.createElement(_t,null):o.createElement(Jt,null),ye&&Ie);(0,o.useImperativeHandle)(a,()=>({focus:()=>{var de;return(de=$.current)===null||de===void 0?void 0:de.focus()},blur:()=>{var de;return(de=$.current)===null||de===void 0?void 0:de.blur()}}));const[xe]=(0,Va.Z)("Calendar",La.Z),ae=Object.assign(Object.assign({},xe),t.locale),[Ce]=(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:Se,ref:$,dropdownAlign:It(x,f),placeholder:Hl(ae,L,p),suffixIcon:be,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,te,{className:me()({[`${N}-${ie}`]:ie,[`${N}-borderless`]:!d},(0,lt.Z)(N,(0,lt.F)(Ne,g),ye),W,q,s,E==null?void 0:E.className,G,J,D),style:Object.assign(Object.assign({},E==null?void 0:E.style),c),locale:ae.lang,prefixCls:N,getPopupContainer:l||I,generateConfig:e,components:ja,direction:x,dropdownClassName:me()(W,m||u,G,J,D),popupStyle:Object.assign(Object.assign({},t.popupStyle),{zIndex:Ce}),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:L,direction:j,getPopupContainer:J,[h]:Q}=(0,o.useContext)(Ia.E_),W=L("picker",u),{compactSize:G,compactItemClassnames:te}=(0,Ha.ri)(W,j),ie=o.useRef(null),{format:ce,showTime:Se}=d,ne=(0,za.Z)(W),[ye,Ne,Ie]=Wa(W,ne);(0,o.useImperativeHandle)(p,()=>({focus:()=>{var Re;return(Re=ie.current)===null||Re===void 0?void 0:Re.focus()},blur:()=>{var Re;return(Re=ie.current)===null||Re===void 0?void 0:Re.blur()}}));const be={showToday:!0};let xe={};c&&(xe.picker=c);const ae=c||d.picker;xe=Object.assign(Object.assign(Object.assign({},xe),Se?ct(Object.assign({format:ce,picker:ae},Se)):{}),ae==="time"?ct(Object.assign(Object.assign({format:ce},d),{picker:ae})):{});const Ce=L(),de=(0,Oa.Z)(Re=>{var tn;return(tn=y!=null?y:G)!==null&&tn!==void 0?tn:Re}),V=o.useContext(Ya.Z),he=N!=null?N:V,fe=(0,o.useContext)(Ta.aM),{hasFeedback:De,status:$e,feedbackIcon:ve}=fe,Qe=o.createElement(o.Fragment,null,ae==="time"?o.createElement(_t,null):o.createElement(Jt,null),De&&ve),[cn]=(0,Va.Z)("DatePicker",La.Z),Te=Object.assign(Object.assign({},cn),d.locale),[Pe]=(0,Ua.Cn)("DatePicker",(m=d.popupStyle)===null||m===void 0?void 0:m.zIndex);return ye(o.createElement(Rl,Object.assign({ref:ie,placeholder:Vl(Te,ae,x),suffixIcon:Qe,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:`${Ce}-slide-up`},be,ee,xe,{locale:Te.lang,className:me()({[`${W}-${de}`]:de,[`${W}-borderless`]:!$},(0,lt.Z)(W,(0,lt.F)($e,A),De),Ne,te,Q==null?void 0:Q.className,S,Ie,ne,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:he,dropdownClassName:me()(Ne,Ie,ne,D,I||E),popupStyle:Object.assign(Object.assign({},d.popupStyle),{zIndex:Pe}),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 Hn=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)(Hn,"picker",null,Qa);Hn._InternalPanelDoNotUseOrYouWillBeFired=Kl;const Ql=(0,qt.Z)(Hn.RangePicker,"picker",null,Qa);Hn._InternalRangePanelDoNotUseOrYouWillBeFired=Ql,Hn.generatePicker=Ka;var Gl=Hn}}]); diff --git a/3049.c9102e77.async.js b/3049.c9102e77.async.js deleted file mode 100644 index a41dceed0a..0000000000 --- a/3049.c9102e77.async.js +++ /dev/null @@ -1 +0,0 @@ -(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/3188.8bf5a5ee.async.js b/3188.8bf5a5ee.async.js new file mode 100644 index 0000000000..2d76b510e9 --- /dev/null +++ b/3188.8bf5a5ee.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3188],{83188:function(o,n,t){t.r(n),t.d(n,{default:function(){return E}});var O=t(50959),u=t(29670),s=t(11527);function E(){var e=(0,u.useOutletContext)();return(0,s.jsx)(u.Outlet,{context:e})}}}]); diff --git a/3486.105c7c3f.async.js b/3486.105c7c3f.async.js new file mode 100644 index 0000000000..f7c41d300f --- /dev/null +++ b/3486.105c7c3f.async.js @@ -0,0 +1,9 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3486],{61323:function($e,ce,s){var W=s(53263);ce.Z=W.Z},26935:function($e,ce,s){s.d(ce,{Z:function(){return sn}});var W=s(30360),ke=s(82187),J=s.n(ke),Se=s(10091),l=s(50959),Ie=s(48141),N=s(59263);function me(e){const[t,n]=l.useState(e);return l.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}var ae=s(25446),Ee=s(55985),Fe=s(74185),_e=s(40283),et=s(37324),we=s(87077),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:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:c,labelHeight:m,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:v,itemMarginBottom:h}=e;return{[t]:Object.assign(Object.assign({},(0,Ee.Wf)(e)),{marginBottom:h,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden.${o}-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:a,fontSize:c,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,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^="'${o}-col-'"]):not([class*="' ${o}-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"}}}}},it=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"}}}}},se=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),at=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:se(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`]:se(e),[`@media (max-width: ${(0,ae.bf)(e.screenXSMax)})`]:[at(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:se(e)}}],[`@media (max-width: ${(0,ae.bf)(e.screenSMMax)})`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:se(e)}},[`@media (max-width: ${(0,ae.bf)(e.screenMDMax)})`]:{[t]:{[`.${r}-col-md-24${n}-label`]:se(e)}},[`@media (max-width: ${(0,ae.bf)(e.screenLGMax)})`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:se(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),it(r),st(r),(0,_e.Z)(r),Fe.kr]},ct,{order:-1e3}),pe=s(12158);const Ne=[];function he(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:o=Ne,className:i,fieldId:a,onVisibleChanged:c}=e;const{prefixCls:m}=l.useContext(N.Rk),u=`${m}-item-explain`,v=(0,pe.Z)(m),[h,P,I]=ge(m,v),y=(0,l.useMemo)(()=>(0,Ie.Z)(m),[m]),E=me(r),w=me(o),S=l.useMemo(()=>t!=null?[he(t,"help",n)]:[].concat((0,W.Z)(E.map((f,g)=>he(f,"error","error",g))),(0,W.Z)(w.map((f,g)=>he(f,"warning","warning",g)))),[t,n,E,w]),d={};return a&&(d.id=`${a}_help`),h(l.createElement(Se.ZP,{motionDeadline:y.motionDeadline,motionName:`${m}-show-help`,visible:!!S.length,onVisibleChanged:c},f=>{const{className:g,style:b}=f;return l.createElement("div",Object.assign({},d,{className:J()(u,g,I,v,i,P),style:b,role:"alert"}),l.createElement(Se.V4,Object.assign({keys:S},(0,Ie.Z)(m),{motionName:`${m}-show-help-item`,component:!1}),x=>{const{key:j,error:O,errorStatus:H,className:L,style:B}=x;return l.createElement("div",{key:j,className:J()(L,{[`${u}-${H}`]:H}),style:B},O)}))}))},oe=s(7445),be=s(92576),je=s(25162),dt=s(50483),mt=s(73743);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 o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch(a){return null}})(r);return!!o&&(o.clientHeightit||i>e&&a=t&&c>=n?i-e-r:a>t&&cn?a-t+o:0,ut=e=>{const t=e.parentElement;return t==null?e.getRootNode().host||null:t},Te=(e,t)=>{var n,r,o,i;if(typeof document=="undefined")return[];const{scrollMode:a,block:c,inline:m,boundary:u,skipOverflowHiddenElements:v}=t,h=typeof u=="function"?u:R=>R!==u;if(!Re(e))throw new TypeError("Invalid target");const P=document.scrollingElement||document.documentElement,I=[];let y=e;for(;Re(y)&&h(y);){if(y=ut(y),y===P){I.push(y);break}y!=null&&y===document.body&&ve(y)&&!ve(document.documentElement)||y!=null&&ve(y,v)&&I.push(y)}const E=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,w=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:S,scrollY:d}=window,{height:f,width:g,top:b,right:x,bottom:j,left:O}=e.getBoundingClientRect(),{top:H,right:L,bottom:B,left:G}=(R=>{const C=window.getComputedStyle(R);return{top:parseFloat(C.scrollMarginTop)||0,right:parseFloat(C.scrollMarginRight)||0,bottom:parseFloat(C.scrollMarginBottom)||0,left:parseFloat(C.scrollMarginLeft)||0}})(e);let T=c==="start"||c==="nearest"?b-H:c==="end"?j+B:b+f/2-H+B,p=m==="center"?O+g/2-G+L:m==="end"?x+L:O-G;const X=[];for(let R=0;R=0&&O>=0&&j<=w&&x<=E&&b>=K&&j<=q&&O>=Q&&x<=te)return X;const ne=getComputedStyle(C),A=parseInt(ne.borderLeftWidth,10),D=parseInt(ne.borderTopWidth,10),$=parseInt(ne.borderRightWidth,10),V=parseInt(ne.borderBottomWidth,10);let F=0,Z=0;const Y="offsetWidth"in C?C.offsetWidth-C.clientWidth-A-$:0,U="offsetHeight"in C?C.offsetHeight-C.clientHeight-D-V:0,re="offsetWidth"in C?C.offsetWidth===0?0:ee/C.offsetWidth:0,_="offsetHeight"in C?C.offsetHeight===0?0:z/C.offsetHeight:0;if(P===C)F=c==="start"?T:c==="end"?T-w:c==="nearest"?ue(d,d+w,w,D,V,d+T,d+T+f,f):T-w/2,Z=m==="start"?p:m==="center"?p-E/2:m==="end"?p-E:ue(S,S+E,E,A,$,S+p,S+p+g,g),F=Math.max(0,F+d),Z=Math.max(0,Z+S);else{F=c==="start"?T-K-D:c==="end"?T-q+V+U:c==="nearest"?ue(K,q,z,D,V+U,T,T+f,f):T-(K+z/2)+U/2,Z=m==="start"?p-Q-A:m==="center"?p-(Q+ee/2)+Y/2:m==="end"?p-te+$+Y:ue(Q,te,ee,A,$+Y,p,p+g,g);const{scrollLeft:M,scrollTop:le}=C;F=_===0?0:Math.max(0,Math.min(le+F/_,C.scrollHeight-z/_+U)),Z=re===0?0:Math.max(0,Math.min(M+Z/re,C.scrollWidth-ee/re+Y)),T+=le-F,p+=M-Z}X.push({el:C,top:F,left:Z})}return X},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||!(o=>{let i=o;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(o=>{const i=window.getComputedStyle(o);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(Te(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of Te(e,ft(t))){const c=i-n.top+n.bottom,m=a-n.left+n.right;o.scroll({top:c,left:m,behavior:r})}}const pt=["parentNode"],ht="form_item";function de(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}`:pt.includes(n)?`${ht}_${n}`:n}function Ze(e,t,n,r,o,i){let a=r;return i!==void 0?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function We(e){return de(e).join("_")}function He(e){const[t]=(0,oe.cI)(),n=l.useRef({}),r=l.useMemo(()=>e!=null?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const a=We(o);i?n.current[a]=i:delete n.current[a]}},scrollToField:function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=de(o),c=Ve(a,r.__INTERNAL__.name),m=c?document.getElementById(c):null;m&>(m,Object.assign({scrollMode:"if-needed",block:"nearest"},i))},getFieldInstance:o=>{const i=We(o);return n.current[i]}}),[e,t]);return[r]}var bt=s(8934),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 o=0,r=Object.getOwnPropertySymbols(e);o{const n=l.useContext(je.Z),{getPrefixCls:r,direction:o,form:i}=l.useContext(be.E_),{prefixCls:a,className:c,rootClassName:m,size:u,disabled:v=n,form:h,colon:P,labelAlign:I,labelWrap:y,labelCol:E,wrapperCol:w,hideRequiredMark:S,layout:d="horizontal",scrollToFirstError:f,requiredMark:g,onFinishFailed:b,name:x,style:j,feedbackIcons:O}=e,H=vt(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),L=(0,dt.Z)(u),B=l.useContext(bt.Z),G=(0,l.useMemo)(()=>g!==void 0?g:S?!1:i&&i.requiredMark!==void 0?i.requiredMark:!0,[S,g,i]),T=P!=null?P:i==null?void 0:i.colon,p=r("form",a),X=(0,pe.Z)(p),[R,C,z]=ge(p,X),ee=J()(p,`${p}-${d}`,{[`${p}-hide-required-mark`]:G===!1,[`${p}-rtl`]:o==="rtl",[`${p}-${L}`]:L},z,X,C,i==null?void 0:i.className,c,m),[K]=He(h),{__INTERNAL__:te}=K;te.name=x;const q=(0,l.useMemo)(()=>({name:x,labelAlign:I,labelCol:E,labelWrap:y,wrapperCol:w,vertical:d==="vertical",colon:T,requiredMark:G,itemRef:te.itemRef,form:K,feedbackIcons:O}),[x,I,E,w,d,T,G,K,O]);l.useImperativeHandle(t,()=>K);const Q=(A,D)=>{if(A){let $={block:"nearest"};typeof A=="object"&&($=A),K.scrollToField(D,$)}},ne=A=>{if(b==null||b(A),A.errorFields.length){const D=A.errorFields[0].name;if(f!==void 0){Q(f,D);return}i&&i.scrollToFirstError!==void 0&&Q(i.scrollToFirstError,D)}};return R(l.createElement(je.n,{disabled:v},l.createElement(mt.Z.Provider,{value:L},l.createElement(N.RV,{validateMessages:B},l.createElement(N.q3.Provider,{value:q},l.createElement(oe.ZP,Object.assign({id:x},H,{name:x,onFinishFailed:ne,form:K,style:Object.assign(Object.assign({},i==null?void 0:i.style),j),className:ee})))))))};var Ct=l.forwardRef(yt),xt=s(42291),ze=s(12602),Ae=s(37865),$t=s(14107),St=s(13763);function It(e){if(typeof e=="function")return e;const t=(0,St.Z)(e);return t.length<=1?t[0]:t}const De=()=>{const{status:e,errors:t=[],warnings:n=[]}=(0,l.useContext)(N.aM);return{status:e,errors:t,warnings:n}};De.Context=N.aM;var Et=De,Be=s(28449);function Ft(e){const[t,n]=l.useState(e),r=(0,l.useRef)(null),o=(0,l.useRef)([]),i=(0,l.useRef)(!1);l.useEffect(()=>(i.current=!1,()=>{i.current=!0,Be.Z.cancel(r.current),r.current=null}),[]);function a(c){i.current||(r.current===null&&(o.current=[],r.current=(0,Be.Z)(()=>{r.current=null,n(m=>{let u=m;return o.current.forEach(v=>{u=v(u)}),u})})),o.current.push(c))}return[t,a]}function wt(){const{itemRef:e}=l.useContext(N.q3),t=l.useRef({});function n(r,o){const i=o&&typeof o=="object"&&o.ref,a=r.join("_");return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=(0,ze.sQ)(e(r),i)),t.current.ref}return n}var Ot=s(95992),Mt=s(77189),Nt=s(87017),Pt=s(92002),Xe=s(53263);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:o,errors:i,warnings:a,_internalItemRender:c,extra:m,help:u,fieldId:v,marginBottom:h,onErrorVisibleChanged:P}=e,I=`${t}-item`,y=l.useContext(N.q3),E=r||y.wrapperCol||{},w=J()(`${I}-control`,E.className),S=l.useMemo(()=>Object.assign({},y),[y]);delete S.labelCol,delete S.wrapperCol;const d=l.createElement("div",{className:`${I}-control-input`},l.createElement("div",{className:`${I}-control-input-content`},o)),f=l.useMemo(()=>({prefixCls:t,status:n}),[t,n]),g=h!==null||i.length||a.length?l.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},l.createElement(N.Rk.Provider,{value:f},l.createElement(Pe,{fieldId:v,errors:i,warnings:a,help:u,helpStatus:n,className:`${I}-explain-connected`,onVisibleChanged:P})),!!h&&l.createElement("div",{style:{width:0,height:h}})):null,b={};v&&(b.id=`${v}_extra`);const x=m?l.createElement("div",Object.assign({},b,{className:`${I}-extra`}),m):null,j=c&&c.mark==="pro_table_render"&&c.render?c.render(e,{input:d,errorList:g,extra:x}):l.createElement(l.Fragment,null,d,g,x);return l.createElement(N.q3.Provider,{value:S},l.createElement(Xe.Z,Object.assign({},E,{className:w}),j),l.createElement(Rt,{prefixCls:t}))},Tt=s(27263),Vt=s(948),Zt=s(38782),Wt=function(t,n){return l.createElement(Zt.Z,(0,Tt.Z)({},t,{ref:n,icon:Vt.Z}))},Ht=l.forwardRef(Wt),zt=s(32698),At=s(91886),Dt=s(27850),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 o=0,r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:c,requiredMark:m,tooltip:u}=e;var v;const[h]=(0,At.Z)("Form"),{vertical:P,labelAlign:I,labelCol:y,labelWrap:E,colon:w}=l.useContext(N.q3);if(!n)return null;const S=o||y||{},d=i||I,f=`${t}-item-label`,g=J()(f,d==="left"&&`${f}-left`,S.className,{[`${f}-wrap`]:!!E});let b=n;const x=a===!0||w!==!1&&a!==!1;x&&!P&&typeof n=="string"&&n.trim()!==""&&(b=n.replace(/[:|:]\s*$/,""));const O=Xt(u);if(O){const{icon:G=l.createElement(Ht,null)}=O,T=Bt(O,["icon"]),p=l.createElement(Dt.Z,Object.assign({},T),l.cloneElement(G,{className:`${t}-item-tooltip`,title:"",onClick:X=>{X.preventDefault()},tabIndex:null}));b=l.createElement(l.Fragment,null,b,p)}const H=m==="optional",L=typeof m=="function";L?b=m(b,{required:!!c}):H&&!c&&(b=l.createElement(l.Fragment,null,b,l.createElement("span",{className:`${t}-item-optional`,title:""},(h==null?void 0:h.optional)||((v=zt.Z.Form)===null||v===void 0?void 0:v.optional))));const B=J()({[`${t}-item-required`]:c,[`${t}-item-required-mark-optional`]:H||L,[`${t}-item-no-colon`]:!x});return l.createElement(Xe.Z,Object.assign({},S,{className:g}),l.createElement("label",{htmlFor:r,className:B,title:typeof n=="string"?n:""},b))},Gt=s(71349),Yt=s(67536),qt=s(39388),Qt=s(58516);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:o,validateStatus:i,prefixCls:a,meta:c,noStyle:m}=e;const u=`${a}-item`,{feedbackIcons:v}=l.useContext(N.q3),h=Ze(n,r,c,null,!!o,i),{isFormItemInput:P,status:I,hasFeedback:y,feedbackIcon:E}=l.useContext(N.aM),w=l.useMemo(()=>{var S;let d;if(o){const g=o!==!0&&o.icons||v,b=h&&((S=g==null?void 0:g({status:h,errors:n,warnings:r}))===null||S===void 0?void 0:S[h]),x=h&&Ut[h];d=b!==!1&&x?l.createElement("span",{className:J()(`${u}-feedback-icon`,`${u}-feedback-icon-${h}`)},b||l.createElement(x,null)):null}const f={status:h||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:d,isFormItemInput:!0};return m&&(f.status=(h!=null?h:I)||"",f.isFormItemInput=P,f.hasFeedback=!!(o!=null?o:y),f.feedbackIcon=o!==void 0?f.feedbackIcon:E),f},[h,o,m,P,I]);return l.createElement(N.aM.Provider,{value:w},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 o=0,r=Object.getOwnPropertySymbols(e);o{if(O&&g.current){const R=getComputedStyle(g.current);B(parseInt(R.marginBottom,10))}},[O,H]);const G=R=>{R||B(null)},p=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const C=R?b:u.errors,z=R?x:u.warnings;return Ze(C,z,u,"",!!v,m)}(),X=J()(d,n,r,{[`${d}-with-help`]:j||b.length||x.length,[`${d}-has-feedback`]:p&&v,[`${d}-has-success`]:p==="success",[`${d}-has-warning`]:p==="warning",[`${d}-has-error`]:p==="error",[`${d}-is-validating`]:p==="validating",[`${d}-hidden`]:h});return l.createElement("div",{className:X,style:o,ref:g},l.createElement(Pt.Z,Object.assign({className:`${d}-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"])),l.createElement(Kt,Object.assign({htmlFor:I},e,{requiredMark:f,required:y!=null?y:E,prefixCls:t})),l.createElement(Lt,Object.assign({},e,u,{errors:b,warnings:x,prefixCls:t,status:p,help:i,marginBottom:L,onErrorVisibleChanged:G}),l.createElement(N.qI.Provider,{value:w},l.createElement(Ke,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:v,validateStatus:p},P)))),!!L&&l.createElement("div",{className:`${d}-margin-offset`,style:{marginBottom:-L}}))}const _t="__SPLIT__",pn=null;function en(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const i=e[o],a=t[o];return i===a||typeof i=="function"||typeof a=="function"})}const tn=l.memo(e=>{let{children:t}=e;return t},(e,t)=>en(e.control,t.control)&&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 nn(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:c,children:m,required:u,label:v,messageVariables:h,trigger:P="onChange",validateTrigger:I,hidden:y,help:E}=e,{getPrefixCls:w}=l.useContext(be.E_),{name:S}=l.useContext(N.q3),d=It(m),f=typeof d=="function",g=l.useContext(N.qI),{validateTrigger:b}=l.useContext(oe.zb),x=I!==void 0?I:b,j=t!=null,O=w("form",i),H=(0,pe.Z)(O),[L,B,G]=ge(O,H),T=(0,$t.ln)("Form.Item"),p=l.useContext(oe.ZM),X=l.useRef(),[R,C]=Ft({}),[z,ee]=(0,xt.Z)(()=>Ge()),K=$=>{const V=p==null?void 0:p.getKey($.name);if(ee($.destroy?Ge():$,!0),n&&E!==!1&&g){let F=$.name;if($.destroy)F=X.current||F;else if(V!==void 0){const[Z,Y]=V;F=[Z].concat((0,W.Z)(Y)),X.current=F}g($,F)}},te=($,V)=>{C(F=>{const Z=Object.assign({},F),U=[].concat((0,W.Z)($.name.slice(0,-1)),(0,W.Z)(V)).join(_t);return $.destroy?delete Z[U]:Z[U]=$,Z})},[q,Q]=l.useMemo(()=>{const $=(0,W.Z)(z.errors),V=(0,W.Z)(z.warnings);return Object.values(R).forEach(F=>{$.push.apply($,(0,W.Z)(F.errors||[])),V.push.apply(V,(0,W.Z)(F.warnings||[]))}),[$,V]},[R,z.errors,z.warnings]),ne=wt();function A($,V,F){return n&&!y?l.createElement(Ke,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:z,errors:q,warnings:Q,noStyle:!0},$):l.createElement(kt,Object.assign({key:"row"},e,{className:J()(r,G,H,B),prefixCls:O,fieldId:V,isRequired:F,errors:q,warnings:Q,meta:z,onSubItemMetaChange:te}),$)}if(!j&&!f&&!o)return L(A(d));let D={};return typeof v=="string"?D.label=v:t&&(D.label=String(t)),h&&(D=Object.assign(Object.assign({},D),h)),L(l.createElement(oe.gN,Object.assign({},e,{messageVariables:D,trigger:P,validateTrigger:x,onMetaChange:K}),($,V,F)=>{const Z=de(t).length&&V?V.name:[],Y=Ve(Z,S),U=u!==void 0?u:!!(c&&c.some(M=>{if(M&&typeof M=="object"&&M.required&&!M.warningOnly)return!0;if(typeof M=="function"){const le=M(F);return le&&le.required&&!le.warningOnly}return!1})),re=Object.assign({},$);let _=null;if(Array.isArray(d)&&j)_=d;else if(!(f&&(!(a||o)||j))){if(!(o&&!f&&!j))if((0,Ae.l$)(d)){const M=Object.assign(Object.assign({},d.props),re);if(M.id||(M.id=Y),E||q.length>0||Q.length>0||e.extra){const ie=[];(E||q.length>0)&&ie.push(`${Y}_help`),e.extra&&ie.push(`${Y}_extra`),M["aria-describedby"]=ie.join(" ")}q.length>0&&(M["aria-invalid"]="true"),U&&(M["aria-required"]="true"),(0,ze.Yr)(d)&&(M.ref=ne(Z,d)),new Set([].concat((0,W.Z)(de(P)),(0,W.Z)(de(x)))).forEach(ie=>{M[ie]=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=on(e,["prefixCls","children"]);const{getPrefixCls:o}=l.useContext(be.E_),i=o("form",t),a=l.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return l.createElement(oe.aV,Object.assign({},r),(c,m,u)=>l.createElement(N.Rk.Provider,{value:a},n(c.map(v=>Object.assign(Object.assign({},v),{fieldKey:v.key})),m,{errors:u.errors,warnings:u.warnings})))};function an(){const{form:e}=(0,l.useContext)(N.q3);return e}const k=Ct;k.Item=rn,k.List=ln,k.ErrorList=Pe,k.useForm=He,k.useFormInstance=an,k.useWatch=oe.qo,k.Provider=N.RV,k.create=()=>{};var sn=k},48966:function($e,ce,s){var W=s(92002);ce.Z=W.Z}}]); diff --git a/3633.0b3c6ef9.async.js b/3633.0b3c6ef9.async.js deleted file mode 100644 index 9c945b14f6..0000000000 --- a/3633.0b3c6ef9.async.js +++ /dev/null @@ -1,7561 +0,0 @@ -!(function(){var Z_=(rr,ee,L)=>new 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 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,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 $e(e,r,t){r===void 0&&(r=!0);var n=t||new Set;if(e){if(vt(e))n.add(e);else if(vt(e.buffer))n.add(e.buffer);else if(!ArrayBuffer.isView(e)){if(r&&typeof e=="object")for(var i in e)$e(e[i],r,n)}}return t===void 0?Array.from(n):[]}function vt(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 Rt=function(){},Jt=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=Rt,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=Rt,this.onError=Rt,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||$e(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=Ue({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}(),zt=Jt,ar=function(){return ar=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.")},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 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||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=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 -#define SHIFT_RIGHT21 1.0 / 2097152.0 -#define SHIFT_RIGHT22 1.0 / 4194304.0 -#define SHIFT_RIGHT23 1.0 / 8388608.0 -#define SHIFT_RIGHT24 1.0 / 16777216.0 - -#define SHIFT_LEFT17 131072.0 -#define SHIFT_LEFT18 262144.0 -#define SHIFT_LEFT19 524288.0 -#define SHIFT_LEFT20 1048576.0 -#define SHIFT_LEFT21 2097152.0 -#define SHIFT_LEFT22 4194304.0 -#define SHIFT_LEFT23 8388608.0 -#define SHIFT_LEFT24 16777216.0 - -vec2 unpack_float(float packedValue) { - int packedIntValue = int(packedValue); - int v0 = packedIntValue / 256; - return vec2(v0, packedIntValue - v0 * 256); -} - -vec4 decode_color(vec2 encodedColor) { - return vec4( - unpack_float(encodedColor[0]) / 255.0, - unpack_float(encodedColor[1]) / 255.0 - ); -} -`,hg=`layout(std140) uniform SceneUniforms { - mat4 u_ViewMatrix; - mat4 u_ProjectionMatrix; - mat4 u_ViewProjectionMatrix; - mat4 u_ModelMatrix; - mat4 u_Mvp; - vec4 u_ViewportCenterProjection; - vec3 u_PixelsPerDegree; - float u_Zoom; - vec3 u_PixelsPerDegree2; - float u_ZoomScale; - vec3 u_PixelsPerMeter; - float u_CoordinateSystem; - vec3 u_CameraPosition; - float u_DevicePixelRatio; - vec2 u_ViewportCenter; - vec2 u_ViewportSize; - vec2 u_sceneCenterMercator; - float u_FocalDistance; -};`,pg=`layout(std140) uniform PickingUniforms { - vec4 u_HighlightColor; - vec4 u_SelectColor; - vec3 u_PickingColor; - float u_PickingStage; - vec3 u_CurrentSelectedId; - float u_PickingThreshold; - float u_PickingBuffer; - float u_shaderPick; - float u_EnableSelect; - float u_activeMix; -};`,w0=`#define ambientRatio 0.5 -#define diffuseRatio 0.3 -#define specularRatio 0.2 - - -float calc_lighting(vec4 pos) { - - vec3 worldPos = vec3(pos * u_ModelMatrix); - - vec3 worldNormal = a_Normal; - // //cal light weight - vec3 viewDir = normalize(u_CameraPosition - worldPos); - - vec3 lightDir = normalize(vec3(1, -10.5, 12)); - - vec3 halfDir = normalize(viewDir+lightDir); - // //lambert - float lambert = dot(worldNormal, lightDir); - //specular - float specular = pow(max(0.0, dot(worldNormal, halfDir)), 32.0); - //sum to light weight - float lightWeight = ambientRatio + diffuseRatio * lambert + specularRatio * specular; - - return lightWeight; -} -`,C0=`// Blinn-Phong model -// apply lighting in vertex shader instead of fragment shader -// @see https://learnopengl.com/Advanced-Lighting/Advanced-Lighting -uniform float u_Ambient : 1.0; -uniform float u_Diffuse : 1.0; -uniform float u_Specular : 1.0; -uniform int u_NumOfDirectionalLights : 1; -uniform int u_NumOfSpotLights : 0; - -#define SHININESS 32.0 -#define MAX_NUM_OF_DIRECTIONAL_LIGHTS 3 -#define MAX_NUM_OF_SPOT_LIGHTS 3 - -struct DirectionalLight { - vec3 direction; - vec3 ambient; - vec3 diffuse; - vec3 specular; -}; - -struct SpotLight { - vec3 position; - vec3 direction; - vec3 ambient; - vec3 diffuse; - vec3 specular; - float constant; - float linear; - float quadratic; - float angle; - float blur; - float exponent; -}; - -uniform DirectionalLight u_DirectionalLights[MAX_NUM_OF_DIRECTIONAL_LIGHTS]; -uniform SpotLight u_SpotLights[MAX_NUM_OF_SPOT_LIGHTS]; - -vec3 calc_directional_light(DirectionalLight light, vec3 normal, vec3 viewDir) { - vec3 lightDir = normalize(light.direction); - // diffuse shading - float diff = max(dot(normal, lightDir), 0.0); - // Blinn-Phong specular shading - vec3 halfwayDir = normalize(lightDir + viewDir); - float spec = pow(max(dot(normal, halfwayDir), 0.0), SHININESS); - - vec3 ambient = light.ambient * u_Ambient; - vec3 diffuse = light.diffuse * diff * u_Diffuse; - vec3 specular = light.specular * spec * u_Specular; - - return ambient + diffuse + specular; -} - -// vec3 calc_spot_light(SpotLight light, vec3 normal, vec3 fragPos, vec3 viewDir) { -// vec3 lightDir = normalize(light.position - fragPos); -// // diffuse shading -// float diff = max(dot(normal, lightDir), 0.0); -// // specular shading -// vec3 reflectDir = reflect(-lightDir, normal); -// float spec = pow(max(dot(viewDir, reflectDir), 0.0), SHININESS); -// // attenuation -// float distance = length(light.position - fragPos); -// float attenuation = 1.0 / (light.constant + light.linear * distance + -// light.quadratic * (distance * distance)); - -// vec3 ambient = light.ambient * u_Ambient; -// vec3 diffuse = light.diffuse * diff * u_Diffuse; -// vec3 specular = light.specular * spec * u_Specular; - -// float spotEffect = dot(normalize(light.direction), -lightDir); -// float spotCosCutoff = cos(light.angle / 180.0 * PI); -// float spotCosOuterCutoff = cos((light.angle + light.blur) / 180.0 * PI); -// float spotCosInnerCutoff = cos((light.angle - light.blur) / 180.0 * PI); -// if (spotEffect > spotCosCutoff) { -// spotEffect = pow(smoothstep(spotCosOuterCutoff, spotCosInnerCutoff, spotEffect), light.exponent); -// } else { -// spotEffect = 0.0; -// } - -// return ambient + attenuation * (spotEffect * diffuse + specular); -// } - -vec3 calc_lighting(vec3 position, vec3 normal, vec3 viewDir) { - vec3 weight = vec3(0.0); - for (int i = 0; i < MAX_NUM_OF_DIRECTIONAL_LIGHTS; i++) { - if (i >= u_NumOfDirectionalLights) { - break; - } - weight += calc_directional_light(u_DirectionalLights[i], normal, viewDir); - } - // for (int i = 0; i < MAX_NUM_OF_SPOT_LIGHTS; i++) { - // if (i >= u_NumOfSpotLights) { - // break; - // } - // weight += calc_spot_light(u_SpotLights[i], normal, position, viewDir); - // } - return weight; -} -`,R0=` -in vec4 v_PickingResult; - -#pragma include "picking_uniforms" - -#define PICKING_NONE 0.0 -#define PICKING_ENCODE 1.0 -#define PICKING_HIGHLIGHT 2.0 -#define COLOR_SCALE 1. / 255. - -#define HIGHLIGHT 1.0 -#define SELECT 2.0 - -/* - * Returns highlight color if this item is selected. - */ -vec4 filterHighlightColor(vec4 color, float weight) { - // float selected = v_PickingResult.a; - bool selected = bool(v_PickingResult.a); - - // if (selected == SELECT) { - if (selected) { - // // \u70B9\u51FB\u9009\u4E2D\u72B6\u6001 - // vec4 selectColor = u_SelectColor * COLOR_SCALE; - // return selectColor; - // } else if (selected == HIGHLIGHT) { - // // hover \u9AD8\u4EAE\u72B6\u6001 - vec4 highLightColor = u_HighlightColor * COLOR_SCALE; - - float highLightAlpha = highLightColor.a; - float highLightRatio = highLightAlpha / (highLightAlpha + color.a * (1.0 - highLightAlpha)); - - vec3 resultRGB = mix(color.rgb, highLightColor.rgb, highLightRatio); - return vec4(mix(resultRGB * weight, color.rgb, u_activeMix), color.a); - } else { - return color; - } -} - -/* - * Returns picking color if picking enabled else unmodified argument. - */ -vec4 filterPickingColor(vec4 color) { - vec3 pickingColor = v_PickingResult.rgb; - if (u_PickingStage == PICKING_ENCODE && length(pickingColor) < 0.001) { - discard; - } - return u_PickingStage == PICKING_ENCODE ? vec4(pickingColor, step(0.001,color.a)): color; -} - -/* - * Returns picking color if picking is enabled if not - * highlight color if this item is selected, otherwise unmodified argument. - */ -vec4 filterColor(vec4 color) { - // \u8FC7\u6EE4\u591A\u4F59\u7684 shader \u8BA1\u7B97 - // return color; - if(u_shaderPick < 0.5) { - return color; // \u6682\u65F6\u53BB\u9664 \u76F4\u63A5\u53D6\u6D88\u8BA1\u7B97\u5728\u9009\u4E2D\u65F6\u62D6\u62FD\u5730\u56FE\u4F1A\u6709\u95EE\u9898 - } else { - return filterPickingColor(filterHighlightColor(color, 1.0)); - } - -} - -vec4 filterColorAlpha(vec4 color, float alpha) { - // \u8FC7\u6EE4\u591A\u4F59\u7684 shader \u8BA1\u7B97 - // return color; - if(u_shaderPick < 0.5) { - return color; // \u6682\u65F6\u53BB\u9664 \u76F4\u63A5\u53D6\u6D88\u8BA1\u7B97\u5728\u9009\u4E2D\u65F6\u62D6\u62FD\u5730\u56FE\u4F1A\u6709\u95EE\u9898 - } else { - return filterPickingColor(filterHighlightColor(color, alpha)); - } -} - -`,M0=`layout(location = 2) in vec3 a_PickingColor; -out vec4 v_PickingResult; - -#pragma include "picking_uniforms" - -#define PICKING_NONE 0.0 -#define PICKING_ENCODE 1.0 -#define PICKING_HIGHLIGHT 2.0 -#define COLOR_SCALE 1. / 255. - -#define NORMAL 0.0 -#define HIGHLIGHT 1.0 -#define SELECT 2.0 - -bool isVertexPicked(vec3 vertexColor) { - return distance(vertexColor,u_PickingColor.rgb) < 0.01; -} - -// \u5224\u65AD\u5F53\u524D\u70B9\u662F\u5426\u5DF2\u7ECF\u88AB select \u9009\u4E2D -bool isVertexSelected(vec3 vertexColor) { - return distance(vertexColor,u_CurrentSelectedId.rgb) < 0.01; -} - -void setPickingColor(vec3 pickingColor) { - if(u_shaderPick < 0.5) { - return; - } - // compares only in highlight stage - - v_PickingResult.a = float((u_PickingStage == PICKING_HIGHLIGHT) && isVertexPicked(pickingColor)); - - // Stores the picking color so that the fragment shader can render it during picking - v_PickingResult.rgb = pickingColor * COLOR_SCALE; -} - -float setPickingSize(float x) { - return u_PickingStage == PICKING_ENCODE ? x + u_PickingBuffer : x; -} - -float setPickingOrder(float z) { - bool selected = bool(v_PickingResult.a); - return selected ? z + 1. : 0.; -} -`,$c=` -#define E 2.718281828459045 -vec2 ProjectFlat(vec2 lnglat){ - float maxs=85.0511287798; - float lat=max(min(maxs,lnglat.y),-maxs); - float scale= 268435456.; - float d=PI/180.; - float x=lnglat.x*d; - float y=lat*d; - y=log(tan((PI/4.)+(y/2.))); - - float a=.5/PI, - b=.5, - c=-.5/PI; - d=.5; - x=scale*(a*x+b); - y=scale*(c*y+d); - return vec2(x,y); -} - -vec2 unProjectFlat(vec2 px){ - float a=.5/PI; - float b=.5; - float c=-.5/PI; - float d=.5; - float scale = 268435456.; - float x=(px.x/scale-b)/a; - float y=(px.y/scale-d)/c; - y=(atan(pow(E,y))-(PI/4.))*2.; - d=PI/180.; - float lat=y/d; - float lng=x/d; - return vec2(lng,lat); -} - -float pixelDistance(vec2 from, vec2 to) { - vec2 a1 = ProjectFlat(from); - vec2 b1 = ProjectFlat(to); - return distance(a1, b1); -} - -// gaode2.0 -vec2 customProject(vec2 lnglat) { // \u7ECF\u7EAC\u5EA6 => \u5E73\u9762\u5750\u6807 - float t = lnglat.x; - float e = lnglat.y; - float Sm = 180.0 / PI; - float Tm = 6378137.0; - float Rm = PI / 180.0; - float r = 85.0511287798; - e = max(min(r, e), -r); - t *= Rm; - e *= Rm; - e = log(tan(PI / 4.0 + e / 2.0)); - return vec2(t * Tm, e * Tm); -} - -vec2 unProjCustomCoord(vec2 point) { // \u5E73\u9762\u5750\u6807 => \u7ECF\u7EAC\u5EA6 - float Sm = 57.29577951308232; //180 / Math.PI - float Tm = 6378137.0; - float t = point.x; - float e = point.y; - return vec2(t / Tm * Sm, (2.0 * atan(exp(e / Tm)) - PI / 2.0) * Sm); -} - - -float customPixelDistance(vec2 from, vec2 to) { - vec2 a1 = ProjectFlat(from); - vec2 b1 = ProjectFlat(to); - return distance(a1, b1); -}`,pd=`#define TILE_SIZE 512.0 -#define PI 3.1415926536 -#define WORLD_SCALE TILE_SIZE / (PI * 2.0) -#define EARTH_CIRCUMFERENCE 40.03e6 - -#define COORDINATE_SYSTEM_LNGLAT 1.0 // mapbox -#define COORDINATE_SYSTEM_LNGLAT_OFFSET 2.0 // mapbox offset -#define COORDINATE_SYSTEM_VECTOR_TILE 3.0 -#define COORDINATE_SYSTEM_IDENTITY 4.0 -#define COORDINATE_SYSTEM_P20 5.0 // amap -#define COORDINATE_SYSTEM_P20_OFFSET 6.0 // amap offset -#define COORDINATE_SYSTEM_METER_OFFSET 7.0 - -#define COORDINATE_SYSTEM_P20_2 8.0 // amap2.0 -#pragma include "scene_uniforms" - - -// web mercator coords -> world coords -vec2 project_mercator(vec2 lnglat) { - if (u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.0 - return lnglat; - } - float x = lnglat.x; - return vec2( - radians(x) + PI, - PI - log(tan(PI * 0.25 + radians(lnglat.y) * 0.5)) - ); -} - -float project_scale(float meters) { - return meters * u_PixelsPerMeter.z; -} - - -// offset coords -> world coords -vec4 project_offset(vec4 offset) { - float dy = offset.y; - dy = clamp(dy, -1., 1.); - vec3 pixels_per_unit = u_PixelsPerDegree + u_PixelsPerDegree2 * dy; - return vec4(offset.xyz * pixels_per_unit, offset.w); -} - -vec3 project_normal(vec3 normal) { - vec4 normal_modelspace = u_ModelMatrix * vec4(normal, 0.0); - return normalize(normal_modelspace.xyz * u_PixelsPerMeter); -} - -vec3 project_offset_normal(vec3 vector) { - if (u_CoordinateSystem < COORDINATE_SYSTEM_LNGLAT + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_LNGLAT - 0.01 - || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - // normals generated by the polygon tesselator are in lnglat offsets instead of meters - return normalize(vector * u_PixelsPerDegree); - } - return project_normal(vector); -} -// || u_CoordinateSystem < COORDINATE_SYSTEM_P20_OFFSET + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_P20_OFFSET - 0.01 -// reverse Y -vec3 reverse_offset_normal(vec3 vector) { - if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 ||u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET ) { - return vector * vec3(1.0, -1.0, 1.0); - } - - if (u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.0 - return vector; - } - return vector; -} - -vec4 project_mvt_offset_position(vec4 position) { - float a = COORDINATE_SYSTEM_LNGLAT_OFFSET; - float b = COORDINATE_SYSTEM_P20_OFFSET; - float c = COORDINATE_SYSTEM_LNGLAT; - if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { - return project_offset(vec4(0.0, 0.0, position.z, position.w)); - } - if (u_CoordinateSystem < COORDINATE_SYSTEM_LNGLAT + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_LNGLAT - 0.01) { - return vec4( - project_mercator(position.xy) * WORLD_SCALE * u_ZoomScale, - project_scale(position.z), - position.w - ); - } - return position; -} - -vec4 project_position(vec4 position) { - float a = COORDINATE_SYSTEM_LNGLAT_OFFSET; - float b = COORDINATE_SYSTEM_P20_OFFSET; - float c = COORDINATE_SYSTEM_LNGLAT; - if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET - || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { - float X = position.x - u_ViewportCenter.x; - float Y = position.y - u_ViewportCenter.y; - return project_offset(vec4(X, Y, position.z, position.w)); - } - if (u_CoordinateSystem < COORDINATE_SYSTEM_LNGLAT + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_LNGLAT - 0.01) { - return vec4( - project_mercator(position.xy) * WORLD_SCALE * u_ZoomScale, - project_scale(position.z), - position.w - ); - } - if (u_CoordinateSystem == COORDINATE_SYSTEM_P20) { - return vec4( - (project_mercator(position.xy) * WORLD_SCALE * u_ZoomScale - vec2(215440491., 106744817.)) * vec2(1., -1.), - project_scale(position.z), - position.w - ); - } - - // if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - - - // return vec4( - // position.xy, - // project_scale(position.z), - // position.w); - // } - return position; - - // TODO: \u74E6\u7247\u5750\u6807\u7CFB & \u5E38\u89C4\u4E16\u754C\u5750\u6807\u7CFB -} -vec2 project_pixel_size_to_clipspace(vec2 pixels) { - vec2 offset = pixels / u_ViewportSize * u_DevicePixelRatio * 2.0; - return offset * u_FocalDistance; -} - - - -float project_pixel_allmap(float pixel) { - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT) { - return pixel * pow(2.0, u_Zoom); - } - return pixel * u_FocalDistance ; -} - -// \u9002\u914D\u7EB9\u7406\u8D34\u56FE\u7684\u7B49\u50CF\u7D20\u5927\u5C0F -float project_pixel_texture(float pixel) { - // mapbox zoom > 12 - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - return pixel * pow(0.5, u_Zoom) * u_FocalDistance ; - } - - // amap2 zoom > 12 - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom))* u_FocalDistance ; - } - - // amap zoom > 12 - if (u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { - return pixel * pow(0.5, u_Zoom)* u_FocalDistance ; - } - - // amap zoom < 12 - if (u_CoordinateSystem == COORDINATE_SYSTEM_P20) { - return pixel * pow(2.0, (20.0 - u_Zoom))* u_FocalDistance ; - } - return pixel * 2.0 * u_FocalDistance;; -} - -// \u5728\u4E0D\u8BBA\u4EC0\u4E48\u5E95\u56FE\u4E0B\u9700\u8981\u7EDF\u4E00\u5904\u7406\u7684\u65F6\u5019\u4F7F\u7528 -float project_float_pixel(float pixel) { - if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - // mapbox P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 - return pixel * pow(2.0, (19.0 - u_Zoom)) * u_FocalDistance ; - } - if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { - // amap P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 - return pixel * pow(2.0, (19.0 - u_Zoom)); - } - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - // amap2 P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 - return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom))* u_FocalDistance ; - } - return pixel * u_FocalDistance; -} - -// Project meter into the unit of pixel which used in the camera world space -float project_float_meter(float meter) { - if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - // Since the zoom level uniform is updated by mapservice and it's alread been subtracted by 1 - // Not sure if we are supposed to do that again - return meter; - } else { - return project_float_pixel(meter); - } - - // TODO: change the following code to make adaptations for amap - return u_FocalDistance * TILE_SIZE * pow(2.0, u_Zoom) * meter / EARTH_CIRCUMFERENCE; -} - -float project_pixel(float pixel) { - if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { - // amap P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 - return pixel * pow(2.0, (19.0 - u_Zoom)) * u_FocalDistance ; - } - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - // amap2 P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 - return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom)) * u_FocalDistance ; - } - return pixel * u_FocalDistance; -} -vec2 project_pixel(vec2 pixel) { - if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { - // P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 - return pixel * pow(2.0, (19.0 - u_Zoom)) * u_FocalDistance ; - } - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - // P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 - return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom)) * u_FocalDistance ; - } - return pixel * -1. * u_FocalDistance; -} -vec3 project_pixel(vec3 pixel) { - if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { - // P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 - return pixel * pow(2.0, (19.0 - u_Zoom)) * u_FocalDistance ; - } - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - // P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 - return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom)) * u_FocalDistance ; - } - return pixel * -1. * u_FocalDistance; -} - -vec4 project_common_position_to_clipspace(vec4 position, mat4 viewProjectionMatrix, vec4 center) { - if (u_CoordinateSystem == COORDINATE_SYSTEM_METER_OFFSET || - u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - // Needs to be divided with project_uCommonUnitsPerMeter - position.w *= u_PixelsPerMeter.z; - } - - return viewProjectionMatrix * position + center; -} - -// Projects from common space coordinates to clip space -vec4 project_common_position_to_clipspace(vec4 position) { - return project_common_position_to_clipspace( - position, - u_ViewProjectionMatrix, - u_ViewportCenterProjection - ); -} - -vec4 unproject_clipspace_to_position(vec4 clipspacePos, mat4 u_InverseViewProjectionMatrix) { - vec4 pos = u_InverseViewProjectionMatrix * (clipspacePos - u_ViewportCenterProjection); - - if (u_CoordinateSystem == COORDINATE_SYSTEM_METER_OFFSET || - u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - // Needs to be divided with project_uCommonUnitsPerMeter - pos.w = pos.w / u_PixelsPerMeter.z; - } - return pos; -} - - -bool isEqual( float a, float b) { - return a< b + 0.001 && a > b - 0.001; -} - -// \u652F\u6301 GaodeV2\u3001Mapbox -vec4 project_common_position_to_clipspace_v2(vec4 position) { - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - return u_Mvp * position; - } else { - return project_common_position_to_clipspace(position); - } -} -`,dg=`vec2 rotate_matrix(vec2 v, float a) { - float b = a / 180.0 * 3.1415926535897932384626433832795; - float s = sin(b); - float c = cos(b); - mat2 m = mat2(c, s, -s, c); - return m * v; -}`,dd=`/** - * 2D signed distance field functions - * @see http://www.iquilezles.org/www/articles/distfunctions2d/distfunctions2d.htm - */ - -float ndot(vec2 a, vec2 b ) { return a.x*b.x - a.y*b.y; } - -float sdCircle(vec2 p, float r) { - return length(p) - r; -} - -float sdEquilateralTriangle(vec2 p) { - float k = sqrt(3.0); - p.x = abs(p.x) - 1.0; - p.y = p.y + 1.0/k; - if( p.x + k*p.y > 0.0 ) p = vec2(p.x-k*p.y,-k*p.x-p.y)/2.0; - p.x -= clamp( p.x, -2.0, 0.0 ); - return -length(p)*sign(p.y); -} - -float sdBox(vec2 p, vec2 b) { - vec2 d = abs(p)-b; - return length(max(d,vec2(0))) + min(max(d.x,d.y),0.0); -} - -float sdPentagon(vec2 p, float r) { - vec3 k = vec3(0.809016994,0.587785252,0.726542528); - p.x = abs(p.x); - p -= 2.0*min(dot(vec2(-k.x,k.y),p),0.0)*vec2(-k.x,k.y); - p -= 2.0*min(dot(vec2( k.x,k.y),p),0.0)*vec2( k.x,k.y); - p -= vec2(clamp(p.x,-r*k.z,r*k.z),r); - return length(p)*sign(p.y); -} - -float sdHexagon(vec2 p, float r) { - vec3 k = vec3(-0.866025404,0.5,0.577350269); - p = abs(p); - p -= 2.0*min(dot(k.xy,p),0.0)*k.xy; - p -= vec2(clamp(p.x, -k.z*r, k.z*r), r); - return length(p)*sign(p.y); -} - -float sdOctogon(vec2 p, float r) { - vec3 k = vec3(-0.9238795325, 0.3826834323, 0.4142135623 ); - p = abs(p); - p -= 2.0*min(dot(vec2( k.x,k.y),p),0.0)*vec2( k.x,k.y); - p -= 2.0*min(dot(vec2(-k.x,k.y),p),0.0)*vec2(-k.x,k.y); - p -= vec2(clamp(p.x, -k.z*r, k.z*r), r); - return length(p)*sign(p.y); -} - -float sdHexagram(vec2 p, float r) { - vec4 k=vec4(-0.5,0.8660254038,0.5773502692,1.7320508076); - p = abs(p); - p -= 2.0*min(dot(k.xy,p),0.0)*k.xy; - p -= 2.0*min(dot(k.yx,p),0.0)*k.yx; - p -= vec2(clamp(p.x,r*k.z,r*k.w),r); - return length(p)*sign(p.y); -} - -float sdRhombus(vec2 p, vec2 b) { - vec2 q = abs(p); - float h = clamp((-2.0*ndot(q,b)+ndot(b,b))/dot(b,b),-1.0,1.0); - float d = length( q - 0.5*b*vec2(1.0-h,1.0+h) ); - return d * sign( q.x*b.y + q.y*b.x - b.x*b.y ); -} - -float sdVesica(vec2 p, float r, float d) { - p = abs(p); - float b = sqrt(r*r-d*d); // can delay this sqrt - return ((p.y-b)*d>p.x*b) - ? length(p-vec2(0.0,b)) - : length(p-vec2(-d,0.0))-r; -} -`,sm=/precision\s+(high|low|medium)p\s+float/,V_=`#ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; - #else - precision mediump float; -#endif -`,J2=/#pragma include (["^+"]?["[a-zA-Z_0-9](.*)"]*?)/g,eS=/void\s+main\s*\([^)]*\)\s*\{\n?/,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,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,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,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; -uniform sampler2D u_Texture2; - -uniform vec2 u_ViewportSize: [1.0, 1.0]; -uniform float u_radius: 5.0; -uniform float u_intensity: 0.3; -uniform float u_baseRadio: 0.5; - -// https://github.com/Jam3/glsl-fast-gaussian-blur/blob/master/9.glsl -vec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { - vec4 color = vec4(0.0); - vec2 off1 = vec2(1.3846153846) * direction; - vec2 off2 = vec2(3.2307692308) * direction; - color += texture2D(image, uv) * 0.2270270270; - color += texture2D(image, uv + (off1 / resolution)) * 0.3162162162; - color += texture2D(image, uv - (off1 / resolution)) * 0.3162162162; - color += texture2D(image, uv + (off2 / resolution)) * 0.0702702703; - color += texture2D(image, uv - (off2 / resolution)) * 0.0702702703; - return color; -} - -float luminance(vec4 color) { - return 0.2125 * color.r + 0.7154 * color.g + 0.0721 * color.b; -} - -void main() { - // vec4 baseColor = texture2D(u_Texture, v_UV); - - float r = sqrt(u_radius); - - vec4 c1 = blur9(u_Texture, v_UV, u_ViewportSize, vec2(u_radius, 0.0)); - // c1 *= luminance(c1); - vec4 c2 = blur9(u_Texture, v_UV, u_ViewportSize, vec2(0.0, u_radius)); - // c2 *= luminance(c2); - vec4 c3 = blur9(u_Texture, v_UV, u_ViewportSize, vec2(r, r)); - // c3 *= luminance(c3); - vec4 c4 = blur9(u_Texture, v_UV, u_ViewportSize, vec2(r, -r)); - // c4 *= luminance(c4); - vec4 inbloomColor = (c1 + c2 + c3 + c4) * 0.25; - - // float lum = luminance(inbloomColor); - // inbloomColor.rgb *= lum; - - if(u_BloomFinal > 0.0) { - vec4 baseColor = texture2D(u_Texture2, v_UV); - float baselum = luminance(baseColor); - gl_FragColor = mix(inbloomColor, baseColor, u_baseRadio); - if(baselum <= 0.2) { - gl_FragColor = inbloomColor * u_intensity; - } - } else { - gl_FragColor = inbloomColor; - } -}`,yS=`attribute vec2 a_Position; - -varying vec2 v_UV; - -void main() { - v_UV = 0.5 * (a_Position + 1.0); - gl_Position = vec4(a_Position, 0., 1.); -}`,O0=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; - -uniform vec2 u_ViewportSize: [1.0, 1.0]; -uniform vec2 u_BlurDir: [1.0, 0.0]; - -// https://github.com/Jam3/glsl-fast-gaussian-blur/blob/master/9.glsl -vec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { - vec4 color = vec4(0.0); - vec2 off1 = vec2(1.3846153846) * direction; - vec2 off2 = vec2(3.2307692308) * direction; - color += texture2D(image, uv) * 0.2270270270; - color += texture2D(image, uv + (off1 / resolution)) * 0.3162162162; - color += texture2D(image, uv - (off1 / resolution)) * 0.3162162162; - color += texture2D(image, uv + (off2 / resolution)) * 0.0702702703; - color += texture2D(image, uv - (off2 / resolution)) * 0.0702702703; - return color; -} - -void main() { - gl_FragColor = blur9(u_Texture, v_UV, u_ViewportSize, u_BlurDir); -}`,AS=`attribute vec2 a_Position; - -varying vec2 v_UV; - -void main() { - v_UV = 0.5 * (a_Position + 1.0); - gl_Position = vec4(a_Position, 0., 1.); -}`,TS=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; - -uniform vec2 u_ViewportSize: [1.0, 1.0]; -uniform vec2 u_BlurDir: [1.0, 0.0]; - -// https://github.com/Jam3/glsl-fast-gaussian-blur/blob/master/9.glsl -vec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { - vec4 color = vec4(0.0); - vec2 off1 = vec2(1.3846153846) * direction; - vec2 off2 = vec2(3.2307692308) * direction; - color += texture2D(image, uv) * 0.2270270270; - color += texture2D(image, uv + (off1 / resolution)) * 0.3162162162; - color += texture2D(image, uv - (off1 / resolution)) * 0.3162162162; - color += texture2D(image, uv + (off2 / resolution)) * 0.0702702703; - color += texture2D(image, uv - (off2 / resolution)) * 0.0702702703; - return color; -} - -void main() { - gl_FragColor = blur9(u_Texture, v_UV, u_ViewportSize, u_BlurDir); -}`,IS=`attribute vec2 a_Position; - -varying vec2 v_UV; - -void main() { - v_UV = 0.5 * (a_Position + 1.0); - gl_Position = vec4(a_Position, 0., 1.); -}`,PS=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]; -uniform vec2 u_Center : [0.5, 0.5]; -uniform float u_Angle : 0; -uniform float u_Size : 8; - -#pragma include "common" - -float scale = PI / u_Size; - -float pattern(float u_Angle, vec2 texSize, vec2 texCoord) { - float s = sin(u_Angle), c = cos(u_Angle); - vec2 tex = texCoord * texSize - u_Center * texSize; - vec2 point = vec2( - c * tex.x - s * tex.y, - s * tex.x + c * tex.y - ) * scale; - return (sin(point.x) * sin(point.y)) * 4.0; -} - -// https://github.com/evanw/glfx.js/blob/master/src/filters/fun/colorhalftone.js -vec4 colorHalftone_filterColor(vec4 color, vec2 texSize, vec2 texCoord) { - vec3 cmy = 1.0 - color.rgb; - float k = min(cmy.x, min(cmy.y, cmy.z)); - cmy = (cmy - k) / (1.0 - k); - cmy = clamp( - cmy * 10.0 - 3.0 + vec3( - pattern(u_Angle + 0.26179, texSize, texCoord), - pattern(u_Angle + 1.30899, texSize, texCoord), - pattern(u_Angle, texSize, texCoord) - ), - 0.0, - 1.0 - ); - k = clamp(k * 10.0 - 5.0 + pattern(u_Angle + 0.78539, texSize, texCoord), 0.0, 1.0); - return vec4(1.0 - cmy - k, color.a); -} - -void main() { - gl_FragColor = vec4(texture2D(u_Texture, v_UV)); - gl_FragColor = colorHalftone_filterColor(gl_FragColor, u_ViewportSize, v_UV); -}`,BS=`attribute vec2 a_Position; - -varying vec2 v_UV; - -void main() { - v_UV = 0.5 * (a_Position + 1.0); - gl_Position = vec4(a_Position, 0., 1.); -}`,LS=(cy=(0,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; - -void main() { - gl_FragColor = vec4(texture2D(u_Texture, v_UV)); -}`,ZS=`attribute vec2 a_Position; - -varying vec2 v_UV; - -void main() { - v_UV = 0.5 * (a_Position + 1.0); - gl_Position = vec4(a_Position, 0., 1.); -}`,VS=(hy=(0,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]; -uniform vec2 u_Center : [0.5, 0.5]; -uniform float u_Scale : 10; - -// https://github.com/evanw/glfx.js/blob/master/src/filters/fun/hexagonalpixelate.js -vec4 hexagonalPixelate_sampleColor(sampler2D texture, vec2 texSize, vec2 texCoord) { - vec2 tex = (texCoord * texSize - u_Center * texSize) / u_Scale; - tex.y /= 0.866025404; - tex.x -= tex.y * 0.5; - vec2 a; - if (tex.x + tex.y - floor(tex.x) - floor(tex.y) < 1.0) { - a = vec2(floor(tex.x), floor(tex.y)); - } - else a = vec2(ceil(tex.x), ceil(tex.y)); - vec2 b = vec2(ceil(tex.x), floor(tex.y)); - vec2 c = vec2(floor(tex.x), ceil(tex.y)); - vec3 TEX = vec3(tex.x, tex.y, 1.0 - tex.x - tex.y); - vec3 A = vec3(a.x, a.y, 1.0 - a.x - a.y); - vec3 B = vec3(b.x, b.y, 1.0 - b.x - b.y); - vec3 C = vec3(c.x, c.y, 1.0 - c.x - c.y); - float alen = length(TEX - A); - float blen = length(TEX - B); - float clen = length(TEX - C); - vec2 choice; - if (alen < blen) { - if (alen < clen) choice = a; - else choice = c; - } else { - if (blen < clen) choice = b; - else choice = c; - } - choice.x += choice.y * 0.5; - choice.y *= 0.866025404; - choice *= u_Scale / texSize; - return texture2D(texture, choice + u_Center); -} - -void main() { - gl_FragColor = vec4(texture2D(u_Texture, v_UV)); - gl_FragColor = hexagonalPixelate_sampleColor(u_Texture, u_ViewportSize, v_UV); -}`,GS=`attribute vec2 a_Position; - -varying vec2 v_UV; - -void main() { - v_UV = 0.5 * (a_Position + 1.0); - gl_Position = vec4(a_Position, 0., 1.); -}`,XS=(dy=(0,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]; -uniform float u_Strength : 0.6; - -vec4 ink_sampleColor(sampler2D texture, vec2 texSize, vec2 texCoord) { - vec2 dx = vec2(1.0 / texSize.x, 0.0); - vec2 dy = vec2(0.0, 1.0 / texSize.y); - vec4 color = texture2D(texture, texCoord); - float bigTotal = 0.0; - float smallTotal = 0.0; - vec3 bigAverage = vec3(0.0); - vec3 smallAverage = vec3(0.0); - for (float x = -2.0; x <= 2.0; x += 1.0) { - for (float y = -2.0; y <= 2.0; y += 1.0) { - vec3 sample = texture2D(texture, texCoord + dx * x + dy * y).rgb; - bigAverage += sample; - bigTotal += 1.0; - if (abs(x) + abs(y) < 2.0) { - smallAverage += sample; - smallTotal += 1.0; - } - } - } - vec3 edge = max(vec3(0.0), bigAverage / bigTotal - smallAverage / smallTotal); - float power = u_Strength * u_Strength * u_Strength * u_Strength * u_Strength; - return vec4(color.rgb - dot(edge, edge) * power * 100000.0, color.a); -} - -void main() { - gl_FragColor = vec4(texture2D(u_Texture, v_UV)); - gl_FragColor = ink_sampleColor(u_Texture, u_ViewportSize, v_UV); -}`,KS=`attribute vec2 a_Position; - -varying vec2 v_UV; - -void main() { - v_UV = 0.5 * (a_Position + 1.0); - gl_Position = vec4(a_Position, 0., 1.); -}`,QS=(gy=(0,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; - -float rand(vec2 co) { - return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453); -} - -// https://github.com/evanw/glfx.js/blob/master/src/filters/adjust/noise.js -vec4 noise_filterColor(vec4 color, vec2 texCoord) { - float diff = (rand(texCoord) - 0.5) * u_Amount; - color.r += diff; - color.g += diff; - color.b += diff; - return color; -} - -void main() { - gl_FragColor = vec4(texture2D(u_Texture, v_UV)); - gl_FragColor = noise_filterColor(gl_FragColor, v_UV); -}`,rA=`attribute vec2 a_Position; - -varying vec2 v_UV; - -void main() { - v_UV = 0.5 * (a_Position + 1.0); - gl_Position = vec4(a_Position, 0., 1.); -}`,nA=(yy=(0,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; - -void main() { - v_UV = 0.5 * (a_Position + 1.0); - gl_Position = vec4(a_Position, 0., 1.); -}`,sA=`varying vec2 v_UV; - -uniform sampler2D u_Texture; - -uniform float u_Amount : 0.5; - -// https://github.com/evanw/glfx.js/blob/master/src/filters/adjust/sepia.js -vec4 sepia_filterColor(vec4 color) { - float r = color.r; - float g = color.g; - float b = color.b; - color.r = - min(1.0, (r * (1.0 - (0.607 * u_Amount))) + (g * (0.769 * u_Amount)) + (b * (0.189 * u_Amount))); - color.g = min(1.0, (r * 0.349 * u_Amount) + (g * (1.0 - (0.314 * u_Amount))) + (b * 0.168 * u_Amount)); - color.b = min(1.0, (r * 0.272 * u_Amount) + (g * 0.534 * u_Amount) + (b * (1.0 - (0.869 * u_Amount)))); - return color; -} - -void main() { - gl_FragColor = vec4(texture2D(u_Texture, v_UV)); - gl_FragColor = sepia_filterColor(gl_FragColor); -}`,uA=(by=(0,yt.b2)(),by(Ey=function(e){(0,Le.Z)(t,e);var r=iA(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("sepia-pass",{vs:oA,fs:sA}),this.shaderModuleService.getModule("sepia-pass")}}]),t}(jh))||Ey),Sy,Ay,Ty,wy,av,Cy,lA=(Sy=(0,yt.b2)(),Ay=(0,yt.f3)(ot.IRendererService),Ty=(0,yt.zY)(),Sy(wy=(av=function(){function e(){(0,Q.Z)(this,e),Ni(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,j.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,Pt.Z)(ge().mark(function o(){return ge().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,Pt.Z)(ge().mark(function n(i,o){var s,l;return ge().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,Pt.Z)(ge().mark(function n(i){var o,s;return ge().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,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%; - overflow: hidden; -} -.l7-marker { - position: absolute !important; - top: 0; - left: 0; - z-index: 5; - cursor: pointer; -} -.l7-marker-cluster { - width: 40px; - height: 40px; - background-color: rgba(181, 226, 140, 0.6); - background-clip: padding-box; - border-radius: 20px; -} -.l7-marker-cluster div { - width: 30px; - height: 30px; - margin-top: 5px; - margin-left: 5px; - font: 12px 'Helvetica Neue', Arial, Helvetica, sans-serif; - text-align: center; - background-color: rgba(110, 204, 57, 0.6); - border-radius: 15px; -} -.l7-marker-cluster span { - line-height: 30px; -} -.l7-touch .l7-control-attribution, -.l7-touch .l7-control-layers, -.l7-touch .l7-bar { - -webkit-box-shadow: none; - box-shadow: none; -} -.l7-touch .l7-control-layers, -.l7-touch .l7-bar { - background-clip: padding-box; - border: 2px solid rgba(0, 0, 0, 0.2); -} -.mapboxgl-ctrl-logo, -.amap-logo { - display: none !important; -} -.l7-select-box { - border: 3px dashed gray; - border-radius: 2px; - position: absolute; - z-index: 999; - -webkit-box-sizing: border-box; - box-sizing: border-box; -} -.l7-control-container { - font: 12px/1.5 'Helvetica Neue', Arial, Helvetica, sans-serif; -} -.l7-control-container .l7-control { - position: relative; - z-index: 999; - float: left; - clear: both; - color: #595959; - font-size: 12px; - pointer-events: visiblePainted; - /* IE 9-10 doesn't have auto */ - pointer-events: auto; -} -.l7-control-container .l7-control.l7-control--hide { - display: none; -} -.l7-control-container .l7-top { - top: 0; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - position: absolute; - z-index: 999; - pointer-events: none; -} -.l7-control-container .l7-top .l7-control:not(.l7-control--hide) { - margin-top: 8px; -} -.l7-control-container .l7-right { - right: 0; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - position: absolute; - z-index: 999; - pointer-events: none; -} -.l7-control-container .l7-right .l7-control:not(.l7-control--hide) { - margin-right: 8px; -} -.l7-control-container .l7-bottom { - bottom: 0; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - position: absolute; - z-index: 999; - pointer-events: none; -} -.l7-control-container .l7-bottom .l7-control:not(.l7-control--hide) { - margin-bottom: 8px; -} -.l7-control-container .l7-left { - left: 0; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - position: absolute; - z-index: 999; - pointer-events: none; -} -.l7-control-container .l7-left .l7-control:not(.l7-control--hide) { - margin-left: 8px; -} -.l7-control-container .l7-center { - position: absolute; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; -} -.l7-control-container .l7-center.l7-top, -.l7-control-container .l7-center.l7-bottom { - width: 100%; -} -.l7-control-container .l7-center.l7-left, -.l7-control-container .l7-center.l7-right { - height: 100%; -} -.l7-control-container .l7-center .l7-control { - margin-right: 8px; - margin-bottom: 8px; -} -.l7-control-container .l7-row { - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-direction: row; - flex-direction: row; -} -.l7-control-container .l7-row.l7-top { - -webkit-box-align: start; - -ms-flex-align: start; - align-items: flex-start; -} -.l7-control-container .l7-row.l7-bottom { - -webkit-box-align: end; - -ms-flex-align: end; - align-items: flex-end; -} -.l7-control-container .l7-column { - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; -} -.l7-control-container .l7-column.l7-left { - -webkit-box-align: start; - -ms-flex-align: start; - align-items: flex-start; -} -.l7-control-container .l7-column.l7-right { - -webkit-box-align: end; - -ms-flex-align: end; - align-items: flex-end; -} -.l7-button-control { - min-width: 28px; - height: 28px; - background-color: #fff; - border-width: 0; - border-radius: 2px; - outline: 0; - cursor: pointer; - -webkit-transition: all 0.2s; - transition: all 0.2s; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - padding: 0 6px; - -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); - box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); - line-height: 16px; -} -.l7-button-control .l7-iconfont { - fill: #595959; - color: #595959; - width: 16px; - height: 16px; -} -.l7-button-control.l7-button-control--row { - padding: 0 16px 0 13px; -} -.l7-button-control.l7-button-control--row * + .l7-button-control__text { - margin-left: 8px; -} -.l7-button-control.l7-button-control--column { - height: 44px; - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; -} -.l7-button-control.l7-button-control--column .l7-iconfont { - margin-top: 3px; -} -.l7-button-control.l7-button-control--column .l7-button-control__text { - margin-top: 3px; - font-size: 10px; - -webkit-transform: scale(0.83333); - transform: scale(0.83333); -} -.l7-button-control:not(:disabled):hover { - background-color: #f3f3f3; -} -.l7-button-control:not(:disabled):active { - background-color: #f3f3f3; -} -.l7-button-control:disabled { - background-color: #fafafa; - color: #bdbdbd; - cursor: not-allowed; -} -.l7-button-control:disabled .l7-iconfont { - fill: #bdbdbd; - color: #bdbdbd; -} -.l7-button-control:disabled:hover { - background-color: #fafafa; -} -.l7-button-control:disabled:active { - background-color: #fafafa; -} -.l7-popper { - position: absolute; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - z-index: 5; - color: #595959; -} -.l7-popper.l7-popper-hide { - display: none; -} -.l7-popper .l7-popper-content { - min-height: 28px; - background: #fff; - border-radius: 2px; - -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); - box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); -} -.l7-popper .l7-popper-arrow { - width: 0; - height: 0; - border-width: 4px; - border-style: solid; - border-top-color: transparent; - border-bottom-color: transparent; - border-left-color: transparent; - border-right-color: transparent; - -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); - box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); -} -.l7-popper.l7-popper-left { - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-direction: row; - flex-direction: row; -} -.l7-popper.l7-popper-left .l7-popper-arrow { - border-left-color: #fff; - margin: 10px 0; -} -.l7-popper.l7-popper-right { - -webkit-box-orient: horizontal; - -webkit-box-direction: reverse; - -ms-flex-direction: row-reverse; - flex-direction: row-reverse; -} -.l7-popper.l7-popper-right .l7-popper-arrow { - border-right-color: #fff; - margin: 10px 0; -} -.l7-popper.l7-popper-top { - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; -} -.l7-popper.l7-popper-top .l7-popper-arrow { - border-top-color: #fff; - margin: 0 10px; -} -.l7-popper.l7-popper-bottom { - -webkit-box-orient: vertical; - -webkit-box-direction: reverse; - -ms-flex-direction: column-reverse; - flex-direction: column-reverse; -} -.l7-popper.l7-popper-bottom .l7-popper-arrow { - border-bottom-color: #fff; - margin: 0 10px; -} -.l7-popper.l7-popper-start { - -webkit-box-align: start; - -ms-flex-align: start; - align-items: flex-start; -} -.l7-popper.l7-popper-end { - -webkit-box-align: end; - -ms-flex-align: end; - align-items: flex-end; -} -.l7-select-control--normal { - padding: 4px 0; -} -.l7-select-control--normal .l7-select-control-item { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - height: 24px; - padding: 0 16px; - font-size: 12px; - line-height: 24px; -} -.l7-select-control--normal .l7-select-control-item > * + * { - margin-left: 6px; -} -.l7-select-control--normal .l7-select-control-item input[type='checkbox'] { - width: 14px; - height: 14px; -} -.l7-select-control--normal .l7-select-control-item:hover { - background-color: #f3f3f3; -} -.l7-select-control--image { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -webkit-box-align: start; - -ms-flex-align: start; - align-items: flex-start; - -webkit-box-sizing: content-box; - box-sizing: content-box; - max-width: 460px; - max-height: 400px; - margin: 12px 0 0 12px; - overflow-x: hidden; - overflow-y: auto; -} -.l7-select-control--image .l7-select-control-item { - position: relative; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-flex: 0; - -ms-flex: 0 0 calc((100% - (12px + 9px) * 2) / 3); - flex: 0 0 calc((100% - (12px + 9px) * 2) / 3); - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - -webkit-box-sizing: content-box; - box-sizing: content-box; - margin-right: 12px; - margin-bottom: 12px; - overflow: hidden; - font-size: 12px; - border: 1px solid #fff; - border-radius: 2px; -} -.l7-select-control--image .l7-select-control-item img { - width: 100%; - height: 80px; -} -.l7-select-control--image .l7-select-control-item input[type='checkbox'] { - position: absolute; - top: 0; - right: 0; -} -.l7-select-control--image .l7-select-control-item .l7-select-control-item-row { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: center; - -ms-flex-pack: center; - justify-content: center; - line-height: 26px; -} -.l7-select-control--image .l7-select-control-item .l7-select-control-item-row > * + * { - margin-left: 8px; -} -.l7-select-control--image .l7-select-control-item.l7-select-control-item-active { - border-color: #0370fe; -} -.l7-select-control-item { - cursor: pointer; -} -.l7-select-control-item input[type='checkbox'] { - margin: 0; - cursor: pointer; -} -.l7-select-control--multiple .l7-select-control-item:hover { - background-color: transparent; -} -.l7-control-logo { - width: 89px; - height: 16px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} -.l7-control-logo img { - height: 100%; - width: 100%; -} -.l7-control-logo .l7-control-logo-link { - display: block; - cursor: pointer; -} -.l7-control-logo .l7-control-logo-link img { - cursor: pointer; -} -.l7-control-mouse-location { - background-color: #fff; - border-radius: 2px; - -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); - box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); - padding: 2px 4px; - min-width: 130px; -} -.l7-control-zoom { - overflow: hidden; - border-radius: 2px; - -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); - box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); -} -.l7-control-zoom .l7-button-control { - font-size: 16px; - border-bottom: 1px solid #f0f0f0; - border-radius: 0; - -webkit-box-shadow: 0 0 0; - box-shadow: 0 0 0; -} -.l7-control-zoom .l7-button-control .l7-iconfont { - width: 14px; - height: 14px; -} -.l7-control-zoom .l7-button-control:last-child { - border-bottom: 0; -} -.l7-control-zoom .l7-control-zoom__number { - color: #595959; - padding: 0; -} -.l7-control-zoom .l7-control-zoom__number:hover { - background-color: #fff; -} -.l7-control-scale { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; -} -.l7-control-scale .l7-control-scale-line { - -webkit-box-sizing: border-box; - box-sizing: border-box; - padding: 2px 5px 1px; - overflow: hidden; - color: #595959; - font-size: 10px; - line-height: 1.1; - white-space: nowrap; - background: #fff; - border: 2px solid #000; - border-top: 0; - -webkit-transition: width 0.1s; - transition: width 0.1s; -} -.l7-control-scale .l7-control-scale-line + .l7-control-scale .l7-control-scale-line { - margin-top: -2px; - border-top: 2px solid #777; - border-bottom: none; -} -.l7-right .l7-control-scale { - display: -webkit-box; - display: -ms-flexbox; - display: flex; - -webkit-box-align: end; - -ms-flex-align: end; - align-items: flex-end; -} -.l7-right .l7-control-scale .l7-control-scale-line { - text-align: right; -} -.l7-popup { - position: absolute; - top: 0; - left: 0; - z-index: 5; - display: -webkit-box; - display: -ms-flexbox; - display: flex; - will-change: transform; - pointer-events: none; -} -.l7-popup.l7-popup-hide { - display: none; -} -.l7-popup .l7-popup-content { - position: relative; - padding: 16px; - font-size: 14px; - background: #fff; - border-radius: 3px; - -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); - box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); -} -.l7-popup .l7-popup-content .l7-popup-content__title { - margin-bottom: 8px; - font-weight: bold; -} -.l7-popup .l7-popup-content .l7-popup-close-button, -.l7-popup .l7-popup-content .l7-popup-content__title, -.l7-popup .l7-popup-content .l7-popup-content__panel { - white-space: normal; - -webkit-user-select: text; - -moz-user-select: text; - -ms-user-select: text; - user-select: text; - pointer-events: initial; -} -.l7-popup .l7-popup-content .l7-popup-close-button { - position: absolute; - top: 0; - right: 0; - width: 18px; - height: 18px; - padding: 0; - font-size: 14px; - line-height: 18px; - text-align: center; - background-color: transparent; - border: 0; - border-radius: 0 3px 0 0; - cursor: pointer; -} -.l7-popup .l7-popup-tip { - position: relative; - z-index: 1; - width: 0; - height: 0; - border: 10px solid transparent; -} -.l7-popup.l7-popup-anchor-bottom, -.l7-popup.l7-popup-anchor-bottom-left, -.l7-popup.l7-popup-anchor-bottom-right { - -webkit-box-orient: vertical; - -webkit-box-direction: reverse; - -ms-flex-direction: column-reverse; - flex-direction: column-reverse; -} -.l7-popup.l7-popup-anchor-bottom .l7-popup-tip, -.l7-popup.l7-popup-anchor-bottom-left .l7-popup-tip, -.l7-popup.l7-popup-anchor-bottom-right .l7-popup-tip { - bottom: 1px; -} -.l7-popup.l7-popup-anchor-top, -.l7-popup.l7-popup-anchor-top-left, -.l7-popup.l7-popup-anchor-top-right { - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - -ms-flex-direction: column; - flex-direction: column; -} -.l7-popup.l7-popup-anchor-top .l7-popup-tip, -.l7-popup.l7-popup-anchor-top-left .l7-popup-tip, -.l7-popup.l7-popup-anchor-top-right .l7-popup-tip { - top: 1px; -} -.l7-popup.l7-popup-anchor-left { - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -ms-flex-direction: row; - flex-direction: row; -} -.l7-popup.l7-popup-anchor-right { - -webkit-box-orient: horizontal; - -webkit-box-direction: reverse; - -ms-flex-direction: row-reverse; - flex-direction: row-reverse; -} -.l7-popup-anchor-top .l7-popup-tip { - position: relative; - -webkit-align-self: center; - -ms-flex-item-align: center; - align-self: center; - border-top: none; - border-bottom-color: #fff; -} -.l7-popup-anchor-top-left .l7-popup-tip { - -webkit-align-self: flex-start; - -ms-flex-item-align: start; - align-self: flex-start; - border-top: none; - border-bottom-color: #fff; - border-left: none; -} -.l7-popup-anchor-top-right .l7-popup-tip { - -webkit-align-self: flex-end; - -ms-flex-item-align: end; - align-self: flex-end; - border-top: none; - border-right: none; - border-bottom-color: #fff; -} -.l7-popup-anchor-bottom .l7-popup-tip { - -webkit-align-self: center; - -ms-flex-item-align: center; - align-self: center; - border-top-color: #fff; - border-bottom: none; -} -.l7-popup-anchor-bottom-left .l7-popup-tip { - -webkit-align-self: flex-start; - -ms-flex-item-align: start; - align-self: flex-start; - border-top-color: #fff; - border-bottom: none; - border-left: none; -} -.l7-popup-anchor-bottom-right .l7-popup-tip { - -webkit-align-self: flex-end; - -ms-flex-item-align: end; - align-self: flex-end; - border-top-color: #fff; - border-right: none; - border-bottom: none; -} -.l7-popup-anchor-left .l7-popup-tip { - -webkit-align-self: center; - -ms-flex-item-align: center; - align-self: center; - border-right-color: #fff; - border-left: none; -} -.l7-popup-anchor-right .l7-popup-tip { - right: 1px; - -webkit-align-self: center; - -ms-flex-item-align: center; - align-self: center; - border-right: none; - border-left-color: #fff; -} -.l7-popup-anchor-top-left .l7-popup-content { - border-top-left-radius: 0; -} -.l7-popup-anchor-top-right .l7-popup-content { - border-top-right-radius: 0; -} -.l7-popup-anchor-bottom-left .l7-popup-content { - border-bottom-left-radius: 0; -} -.l7-popup-anchor-bottom-right .l7-popup-content { - border-bottom-right-radius: 0; -} -.l7-popup-track-pointer { - display: none; -} -.l7-popup-track-pointer * { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - pointer-events: none; -} -.l7-map:hover .l7-popup-track-pointer { - display: -webkit-box; - display: -ms-flexbox; - display: flex; -} -.l7-map:active .l7-popup-track-pointer { - display: none; -} -.l7-layer-popup__row { - font-size: 12px; -} -.l7-layer-popup__row + .l7-layer-popup__row { - margin-top: 4px; -} -`);var Mp,n1=(Mp={},(0,B.Z)(Mp,Zs.additive,{enable:!0,func:{srcRGB:R.ONE,dstRGB:R.ONE,srcAlpha:1,dstAlpha:1}}),(0,B.Z)(Mp,Zs.none,{enable:!1}),(0,B.Z)(Mp,Zs.normal,{enable:!0,func:{srcRGB:R.SRC_ALPHA,dstRGB:R.ONE_MINUS_SRC_ALPHA,srcAlpha:1,dstAlpha:1}}),(0,B.Z)(Mp,Zs.subtractive,{enable:!0,func:{srcRGB:R.ONE,dstRGB:R.ONE,srcAlpha:R.ZERO,dstAlpha:R.ONE_MINUS_SRC_COLOR},equation:{rgb:R.FUNC_SUBTRACT,alpha:R.FUNC_SUBTRACT}}),(0,B.Z)(Mp,Zs.max,{enable:!0,func:{srcRGB:R.ONE,dstRGB:R.ONE},equation:{rgb:R.MAX_EXT}}),(0,B.Z)(Mp,Zs.min,{enable:!0,func:{srcRGB:R.ONE,dstRGB:R.ONE},equation:{rgb:R.MIN_EXT}}),Mp);function i1(e){return e.map(function(r){return typeof r=="string"&&(r=[r,{}]),r})}function a1(e,r,t,n){var i=e.multiPassRenderer,o=e.getLayerConfig(),s=o.enableTAA;return s?i.add(n("taa")):i.add(n("render")),i1(r).forEach(function(l){var f=(0,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: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(),` - layout(location = `).concat(m1[l],") in ").concat(yg[l]," a_").concat(l.charAt(0).toUpperCase()+l.slice(1),`; - #endif - - `)});var o=i.length?` -layout(std140) uniform AttributeUniforms { -`.concat(i.join(` -`),` -}; - `):"";n+=o;var s="";return this.layer.enableShaderEncodeStyles.forEach(function(l){s+=` - - #ifdef USE_ATTRIBUTE_`.concat(l.toUpperCase(),` - `).concat(yg[l]," ").concat(l," = a_").concat(l.charAt(0).toUpperCase()+l.slice(1),`; - #else - `).concat(yg[l]," ").concat(l," = u_").concat(l,`; - #endif - - `)}),{"vs:#decl":n,"fs:#decl":o,"vs:#main-start":s}}},{key:"getStyleAttribute",value:function(){var t=this,n={};return this.layer.enableShaderEncodeStyles.forEach(function(i){if(!t.layer.encodeStyleAttribute[i]){var o=t.layer.getLayerConfig()[i],s=typeof o=="undefined"?Iw[i]:o;i==="stroke"&&(s=fi(s)),n["u_"+i]=s}}),n}},{key:"registerStyleAttribute",value:function(){var t=this;Object.keys(this.layer.encodeStyleAttribute).forEach(function(n){var i=Pw(n);i&&(t.styleAttributeService.registerStyleAttribute(i),i.descriptor&&(i.descriptor.shaderLocation=m1[n]))})}},{key:"updateEncodeAttribute",value:function(t,n){this.encodeStyleAttribute[t]=n}},{key:"initUniformsBuffer",value:function(){var t=this.getUniformsBufferInfo(this.getStyleAttribute()),n=this.getCommonUniformsInfo();this.attributeUnifoms=this.rendererService.createBuffer({data:new Float32Array(p1(t.uniformsLength)),isUBO:!0}),this.commonUnifoms=this.rendererService.createBuffer({data:new Float32Array(p1(n.uniformsLength)),isUBO:!0}),this.uniformBuffers=[this.attributeUnifoms,this.commonUnifoms]}},{key:"getUniformsBufferInfo",value:function(t){var n=0,i=[];return Object.values(t).forEach(function(o){Array.isArray(o)?(i.push.apply(i,(0,Kt.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=ki(z0.prototype,"configService",[d1],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z0),Z0=100,pL=36,dL=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 vL(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=[],F=0;F<=l;F++){for(var $=F/l,G=$*Math.PI,ue=0;ue<=f;ue++){var xe=ue/f,ze=xe*Math.PI*2;mat4.identity(n),mat4.rotateZ(n,n,-G),mat4.identity(t),mat4.rotateY(t,t,ze),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([xe,1-$]),T.push(xe,1-$)}if(F>0)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;b 0.0 && v_worldDis < u_cityMinSize) { - float r = fract(((v_worldDis/u_cityMinSize) - u_time * u_circleSweepSpeed) * 2.0); - gl_FragColor.rgb += r * r * u_circleSweepColor; - } - - gl_FragColor.a *= u_opacity; - gl_FragColor = filterColor(gl_FragColor); -} -`,$w=`precision highp float; - -#define ambientRatio 0.5 -#define diffuseRatio 0.3 -#define specularRatio 0.2 - -attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec3 a_Normal; -attribute float a_Size; -uniform mat4 u_ModelMatrix; - -attribute vec2 a_Uv; -varying vec2 v_texCoord; - -varying vec4 v_Color; - -uniform float u_circleSweep; -uniform vec2 u_cityCenter; - -varying float v_worldDis; - -#pragma include "projection" -#pragma include "light" -#pragma include "picking" - - -void main() { - vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0); - vec4 project_pos = project_position(pos); - - v_texCoord = a_Uv; - - if(u_circleSweep > 0.0) { - vec2 lnglatscale = vec2(0.0); - if(u_CoordinateSystem != COORDINATE_SYSTEM_P20_2) { - lnglatscale = (a_Position.xy - u_cityCenter) * vec2(0.0, 0.135); - } - v_worldDis = length(a_Position.xy + lnglatscale - u_cityCenter); - } - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0)); - } else { - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); - } - - float lightWeight = calc_lighting(pos); - // v_Color = a_Color; - v_Color = vec4(a_Color.rgb * lightWeight, a_Color.w); - - setPickingColor(a_PickingColor); -} -`,Yw=function(e){(0,Le.Z)(t,e);var r=Ww(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.baseColor,f=l===void 0?"rgb(16,16,16)":l,v=i.brightColor,y=v===void 0?"rgb(255,176,38)":v,b=i.windowColor,T=b===void 0?"rgb(30,60,89)":b,M=i.time,O=M===void 0?0:M,F=i.sweep,$=F===void 0?{enable:!1,sweepRadius:1,sweepColor:"rgb(255, 255, 255)",sweepSpeed:.4,sweepCenter:this.cityCenter}:F;return{u_cityCenter:$.sweepCenter||this.cityCenter,u_cityMinSize:this.cityMinSize*$.sweepRadius,u_circleSweep:$.enable?1:0,u_circleSweepColor:fi($.sweepColor).slice(0,3),u_circleSweepSpeed:$.sweepSpeed,u_opacity:s,u_baseColor:fi(f),u_brightColor:fi(y),u_windowColor:fi(T),u_time:this.layer.getLayerAnimateTime()||O}}},{key:"calCityGeo",value:function(){var i=(0,Sn.Z)(this.layer.getSource().extent,4),o=i[0],s=i[1],l=i[2],f=i[3];if(this.mapService.version==="GAODE2.x"){this.cityCenter=this.mapService.lngLatToCoord([(l+o)/2,(f+s)/2]);var v=this.mapService.lngLatToCoord([l,f]),y=this.mapService.lngLatToCoord([o,s]);this.cityMinSize=Math.sqrt(Math.pow(v[0]-y[0],2)+Math.pow(v[1]-y[1],2))/4}else{var b=l-o,T=f-s;this.cityCenter=[(l+o)/2,(f+s)/2],this.cityMinSize=Math.sqrt(Math.pow(b,2)+Math.pow(T,2))/4}}},{key:"initModels",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){return ge().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.calCityGeo(),this.startModelAnimate(),l.abrupt("return",this.buildModels());case 3:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,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:"cityBuilding",vertexShader:$w,fragmentShader:Xw,triangulation:$0,depth:{enable:!0},cull:{enable:!0,face:R.BACK}});case 2:return s=f.sent,f.abrupt("return",[s]);case 4:case"end":return f.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"normal",type: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:"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?10:s;return Array.isArray(l)?[l[0]]:[l]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:dn.Attribute,descriptor:{name:"a_Uv",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:2,update:function(o,s,l){return[l[3],l[4]]}}})}}]),t}(Ma);function qw(e){var r=Kw();return function(){var n=(0,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 Kw(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Qw=function(e){(0,Le.Z)(t,e);var r=qw(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s 1 \u7684 uv \u8F6C\u6362\u4E3A -1 -> 1 \u7684\u6807\u51C6\u5750\u6807\u7A7A\u95F4\uFF08NDC\uFF09 - - vec4 p1 = vec4(pos, 0.0, 1.0); // x/y \u5E73\u9762\u4E0A\u7684\u70B9\uFF08z == 0\uFF09\u53EF\u4EE5\u8BA4\u4E3A\u662F\u4E09\u7EF4\u4E0A\u7684\u70B9\u88AB\u6295\u5F71\u5230\u5E73\u9762\u540E\u7684\u70B9 - vec4 p2 = vec4(pos, 1.0, 1.0); // \u5E73\u884C\u4E8Ex/y\u5E73\u9762\u3001z==1 \u7684\u5E73\u9762\u4E0A\u7684\u70B9 - - vec4 inverseP1 = u_InverseViewProjectionMatrix * p1; // \u6839\u636E\u89C6\u56FE\u6295\u5F71\u77E9\u9635\u7684\u9006\u77E9\u9635\u5E73\u9762\u4E0A\u7684\u53CD\u7B97\u51FA\u4E09\u7EF4\u7A7A\u95F4\u4E2D\u7684\u70B9\uFF08p1\u5E73\u9762\u4E0A\u7684\u70B9\uFF09 - vec4 inverseP2 = u_InverseViewProjectionMatrix * p2; - - inverseP1 = inverseP1 / inverseP1.w; // \u5F52\u4E00\u5316\u64CD\u4F5C\uFF08\u5F52\u4E00\u5316\u540E\u4E3A\u4E16\u754C\u5750\u6807\uFF09 - inverseP2 = inverseP2 / inverseP2.w; - - float zPos = (0.0 - inverseP1.z) / (inverseP2.z - inverseP1.z); // ?? - vec4 position = inverseP1 + zPos * (inverseP2 - inverseP1); - - vec4 b= vec4(0.5000, 0.0, 1.0, 0.5000); - float fh; - - v_intensity = texture2D(u_texture, v_texCoord).r; - fh = toBezier(v_intensity, b).y; - gl_Position = u_ViewProjectionMatrixUncentered * vec4(position.xy, fh * project_pixel(50.), 1.0); - -} -`,dC=`uniform sampler2D u_texture; // \u70ED\u529B\u5F3A\u5EA6\u56FE -uniform sampler2D u_colorTexture; // \u6839\u636E\u5F3A\u5EA6\u5206\u5E03\u7684\u8272\u5E26 -uniform float u_opacity; -varying vec2 v_texCoord; - -uniform vec2 u_ViewportSize; - -float getBlurIndusty() { - float vW = 2.0/u_ViewportSize.x; - float vH = 2.0/u_ViewportSize.y; - vec2 vUv = v_texCoord; - float i11 = texture2D( u_texture, vec2( vUv.x - 1.0 * vW, vUv.y + 1.0 * vH) ).r; - float i12 = texture2D( u_texture, vec2( vUv.x - 0.0 * vW, vUv.y + 1.0 * vH) ).r; - float i13 = texture2D( u_texture, vec2( vUv.x + 1.0 * vW, vUv.y + 1.0 * vH) ).r; - - float i21 = texture2D( u_texture, vec2( vUv.x - 1.0 * vW, vUv.y) ).r; - float i22 = texture2D( u_texture, vec2( vUv.x , vUv.y) ).r; - float i23 = texture2D( u_texture, vec2( vUv.x + 1.0 * vW, vUv.y) ).r; - - float i31 = texture2D( u_texture, vec2( vUv.x - 1.0 * vW, vUv.y-1.0*vH) ).r; - float i32 = texture2D( u_texture, vec2( vUv.x - 0.0 * vW, vUv.y-1.0*vH) ).r; - float i33 = texture2D( u_texture, vec2( vUv.x + 1.0 * vW, vUv.y-1.0*vH) ).r; - - return( - i11 + - i12 + - i13 + - i21 + - i21 + - i22 + - i23 + - i31 + - i32 + - i33 - )/9.0; -} - - -void main(){ - // float intensity = texture2D(u_texture, v_texCoord).r; - float intensity = getBlurIndusty(); - vec4 color = texture2D(u_colorTexture, vec2(intensity, 0.0)); - - gl_FragColor =color; - gl_FragColor.a = color.a * smoothstep(0.,0.1,intensity) * u_opacity; - -} -`,vC=`precision highp float; -attribute vec3 a_Position; -attribute vec2 a_Uv; -varying vec2 v_texCoord; - -void main() { - v_texCoord = a_Uv; - - gl_Position = vec4(a_Position.xy, 0, 1.); -} -`,mC=`precision highp float; -uniform float u_intensity; -varying float v_weight; -varying vec2 v_extrude; -#define GAUSS_COEF 0.3989422804014327 -void main(){ - float d = -0.5 * 3.0 * 3.0 * dot(v_extrude, v_extrude); - float val = v_weight * u_intensity * GAUSS_COEF * exp(d); - gl_FragColor = vec4(val, 1., 1., 1.); -} -`,gC=`precision highp float; -attribute vec3 a_Position; -attribute float a_Size; -attribute vec2 a_Dir; -uniform float u_intensity; -uniform float u_radius; -varying vec2 v_extrude; -varying float v_weight; -uniform mat4 u_ModelMatrix; - - -#define GAUSS_COEF 0.3989422804014327 - -#pragma include "projection" - -void main(){ - v_weight = a_Size; - float ZERO = 1.0 / 255.0 / 16.0; - float extrude_x = a_Dir.x * 2.0 -1.0; - float extrude_y = a_Dir.y * 2.0 -1.0; - vec2 extrude_dir = normalize(vec2(extrude_x,extrude_y)); - float S = sqrt(-2.0 * log(ZERO / a_Size / u_intensity / GAUSS_COEF)) / 2.5; - v_extrude = extrude_dir * S; - - vec2 offset = project_pixel(v_extrude * u_radius); - vec4 project_pos = project_position(vec4(a_Position.xy, 0.0, 1.0)); - - // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0)); - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * (vec4(project_pos.xy + offset, 0.0, 1.0)); - } else { - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0)); - } -} -`,_C=oi.isEqual,I1=(R1=(0,yt.b2)(),R1(M1=function(e){(0,Le.Z)(t,e);var r=cC(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"render",value:function(i){var o=this,s=this.rendererService,l=s.clear,f=s.useFramebuffer,v=this.layer.getLayerConfig(),y=v.rampColors;f(this.heatmapFramerBuffer,function(){l({color:[0,0,0,0],depth:1,stencil:0,framebuffer:o.heatmapFramerBuffer}),o.drawIntensityMode()}),_C(this.preRampColors,y)||this.updateColorTexture(),this.shapeType==="heatmap"?this.drawColorMode(i):this.draw3DHeatMap(i)}},{key:"getUninforms",value:function(){throw new Error("Method not implemented.")}},{key:"initModels",value:function(){var n=(0,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 l=this.rendererService,f=l.createFramebuffer,v=l.getViewportSize,y=l.createTexture2D,b=this.styleAttributeService.getLayerStyleAttribute("shape"),T=(b==null||(s=b.scale)===null||s===void 0?void 0:s.field)||"heatmap",this.shapeType=T,G.next=6,this.buildHeatMapIntensity();case 6:return this.intensityModel=G.sent,this.colorModel=T==="heatmap"?this.buildHeatmapColor():this.build3dHeatMap(),M=v(),O=M.width,F=M.height,this.heatmapFramerBuffer=f({color:y({width:Math.floor(O/4),height:Math.floor(F/4),wrapS:R.CLAMP_TO_EDGE,wrapT:R.CLAMP_TO_EDGE,min:R.LINEAR,mag:R.LINEAR}),depth:!1}),this.updateColorTexture(),G.abrupt("return",[this.intensityModel,this.colorModel]);case 12:case"end":return G.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){return ge().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.initModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"dir",type:dn.Attribute,descriptor:{name:"a_Dir",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:2,update:function(o,s,l){return[l[3],l[4]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type: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?1:s;return[l]}}})}},{key:"buildHeatMapIntensity",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=C1,f.next=3,this.layer.buildLayerModel({moduleName:"heatmapIntensity",vertexShader:gC,fragmentShader:mC,triangulation:C1,depth:{enable:!1},cull:{enable:!0,face:ea(this.mapService.version)}});case 3:return s=f.sent,f.abrupt("return",s);case 5:case"end":return f.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildHeatmapColor",value:function(){this.shaderModuleService.registerModule("heatmapColor",{vs:vC,fs:dC});var i=this.shaderModuleService.getModule("heatmapColor"),o=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService,v=f.createAttribute,y=f.createElements,b=f.createBuffer,T=f.createModel;return T({vs:o,fs:s,attributes:{a_Position:v({buffer:b({data:[-1,1,0,1,1,0,-1,-1,0,1,-1,0],type:R.FLOAT}),size:3}),a_Uv:v({buffer:b({data:[0,1,1,1,0,0,1,0],type:R.FLOAT}),size:2})},uniforms:(0,V.Z)({},l),depth:{enable:!1},elements:y({data:[0,2,1,2,3,1],type:R.UNSIGNED_INT,count:6})})}},{key:"drawIntensityMode",value:function(){var i,o=this.layer.getLayerConfig(),s=o.opacity,l=o.intensity,f=l===void 0?10:l,v=o.radius,y=v===void 0?5:v;this.layerService.beforeRenderData(this.layer),this.layer.hooks.beforeRender.call(),(i=this.intensityModel)===null||i===void 0||i.draw({uniforms:{u_opacity:s||1,u_radius:y,u_intensity:f},blend:{enable:!0,func:{srcRGB:R.ONE,srcAlpha:1,dstRGB:R.ONE,dstAlpha:1}},stencil:{enable:!1,mask:255,func:{cmp:514,ref:1,mask:255}}}),this.layer.hooks.afterRender.call()}},{key:"drawColorMode",value:function(i){var o,s=this.layer.getLayerConfig(),l=s.opacity;(o=this.colorModel)===null||o===void 0||o.draw({uniforms:{u_opacity:l||1,u_colorTexture:this.colorTexture,u_texture:this.heatmapFramerBuffer},blend:this.getBlend(),stencil:this.getStencil(i)})}},{key:"draw3DHeatMap",value:function(i){var o,s=this.layer.getLayerConfig(),l=s.opacity,f=me.create();me.invert(f,this.cameraService.getViewProjectionMatrixUncentered()),(o=this.colorModel)===null||o===void 0||o.draw({uniforms:{u_opacity:l||1,u_colorTexture:this.colorTexture,u_texture:this.heatmapFramerBuffer,u_ViewProjectionMatrixUncentered:this.cameraService.getViewProjectionMatrixUncentered(),u_InverseViewProjectionMatrix:(0,Kt.Z)(f)},blend:{enable:!0,func:{srcRGB:R.SRC_ALPHA,srcAlpha:1,dstRGB:R.ONE_MINUS_SRC_ALPHA,dstAlpha:1}},stencil:this.getStencil(i)})}},{key:"build3dHeatMap",value:function(){var i=this.rendererService.getViewportSize,o=i(),s=o.width,l=o.height,f=lC(s/4,l/4);this.shaderModuleService.registerModule("heatmap3dColor",{vs:pC,fs:hC});var v=this.shaderModuleService.getModule("heatmap3dColor"),y=v.vs,b=v.fs,T=v.uniforms,M=this.rendererService,O=M.createAttribute,F=M.createElements,$=M.createBuffer,G=M.createModel;return G({vs:y,fs:b,attributes:{a_Position:O({buffer:$({data:f.vertices,type:R.FLOAT}),size:3}),a_Uv:O({buffer:$({data:f.uvs,type:R.FLOAT}),size:2})},primitive:R.TRIANGLES,uniforms:(0,V.Z)({},T),depth:{enable:!0},blend:{enable:!0,func:{srcRGB:R.SRC_ALPHA,srcAlpha:1,dstRGB:R.ONE_MINUS_SRC_ALPHA,dstAlpha:1}},elements:F({data:f.indices,type:R.UNSIGNED_INT,count:f.indices.length})})}},{key:"updateStyle",value:function(){this.updateColorTexture()}},{key:"updateColorTexture",value:function(){var i=this.rendererService.createTexture2D;this.texture&&this.texture.destroy();var o=this.layer.getLayerConfig(),s=o.rampColors,l=Ao(s);this.colorTexture=i({data:new Uint8Array(l.data),width:l.width,height:l.height,wrapS:R.CLAMP_TO_EDGE,wrapT:R.CLAMP_TO_EDGE,min:R.NEAREST,mag:R.NEAREST,flipY:!1}),this.preRampColors=s}}]),t}(Ma))||M1);function yC(e){var r=xC();return function(){var n=(0,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 xC(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var bC=`precision highp float; -varying vec4 v_color; -uniform float u_opacity: 1; - -#pragma include "picking" - -void main() { - gl_FragColor = v_color; - gl_FragColor.a *= u_opacity; - - gl_FragColor = filterColor(gl_FragColor); -} -`,EC=`precision highp float; -// \u591A\u8FB9\u5F62\u9876\u70B9\u5750\u6807 -attribute vec3 a_Position; -// \u591A\u8FB9\u5F62\u7ECF\u7EAC\u5EA6\u5750\u6807 -attribute vec3 a_Pos; -attribute float a_Size; -attribute vec4 a_Color; -uniform vec2 u_radius; -uniform float u_coverage: 0.9; -uniform float u_angle: 0; -uniform mat4 u_ModelMatrix; - -varying vec4 v_color; - -uniform vec2 u_sceneCenterMercator; - -#pragma include "projection" -#pragma include "project" -#pragma include "picking" - -void main() { - v_color = a_Color; - - mat2 rotationMatrix = mat2(cos(u_angle), sin(u_angle), -sin(u_angle), cos(u_angle)); - vec2 offset =(vec2(a_Position.xy * u_radius * rotationMatrix * u_coverage)); - vec2 lnglat = unProjectFlat(a_Pos.xy + offset); - - // vec4 project_pos = project_position(vec4(lnglat, 0, 1.0)); - // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, 0., 1.0)); - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - // gl_Position = u_Mvp * (vec4(project_pos.xy, 0., 1.0)); - // gl_Position = u_Mvp * (vec4(a_Pos.xy + offset, 0., 1.0)); - vec2 customLnglat = customProject(lnglat) - u_sceneCenterMercator; - vec4 project_pos = project_position(vec4(customLnglat, 0, 1.0)); - gl_Position = u_Mvp * vec4(project_pos.xy, 0.0, 1.0); - } else { - vec4 project_pos = project_position(vec4(lnglat, 0, 1.0)); - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, 0., 1.0)); - } - setPickingColor(a_PickingColor); -} -`,SC=function(e){(0,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; -void main() { - vec4 color = texture2D(u_texture,vec2(v_texCoord.x,v_texCoord.y)); - gl_FragColor = color; - gl_FragColor.a *= u_opacity; - if(gl_FragColor.a < 0.01) - discard; -} -`,OC=`precision highp float; -uniform mat4 u_ModelMatrix; - -attribute vec3 a_Position; -attribute vec2 a_Uv; -varying vec2 v_texCoord; -#pragma include "projection" -void main() { - v_texCoord = a_Uv; - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); - -} -`,DC=function(e){(0,Le.Z)(t,e);var r=MC(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;return{u_opacity:o||1,u_texture:this.texture}}},{key:"initModels",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.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,Pt.Z)(ge().mark(function o(){return ge().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:dn.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),FC={image:DC},kC=FC;function BC(e){var r=LC();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 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,Le.Z)(t,e);var r=BC(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { - flag = 1.; - }; - gl_FragColor.a *=flag; - - gl_FragColor = filterColor(gl_FragColor); -}`,ZC=` -attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec4 a_Instance; -attribute float a_Size; -uniform mat4 u_ModelMatrix; - -uniform float segmentNumber; -varying vec4 v_color; - - -uniform vec4 u_dash_array: [10.0, 5., 0, 0]; -uniform float u_lineDir: 1.0; -varying vec4 v_dash_array; -varying float v_distance_ratio; -#pragma include "projection" -#pragma include "project" -#pragma include "picking" - -float bezier3(vec3 arr, float t) { - float ut = 1. - t; - return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; -} -vec2 midPoint(vec2 source, vec2 target, float arcThetaOffset) { - vec2 center = target - source; - float r = length(center); - float theta = atan(center.y, center.x); - float thetaOffset = arcThetaOffset; - float r2 = r / 2.0 / cos(thetaOffset); - float theta2 = theta + thetaOffset; - vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); - if(u_lineDir == 1.0) { // \u6B63\u5411 - return mid; - } else { // \u9006\u5411 - // (mid + vmin)/2 = (s + t)/2 - vec2 vmid = source + target - mid; - return vmid; - } - // return mid; -} -float getSegmentRatio(float index) { - // dash: index / (segmentNumber - 1.); - // normal: smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); - return index / (segmentNumber - 1.); -} -vec2 interpolate (vec2 source, vec2 target, float t, float arcThetaOffset) { - // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation - vec2 mid = midPoint(source, target, arcThetaOffset); - vec3 x = vec3(source.x, mid.x, target.x); - vec3 y = vec3(source.y, mid.y, target.y); - return vec2(bezier3(x ,t), bezier3(y,t)); -} -vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; - return offset; -} -vec2 getNormal(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); -} - -void main() { - v_color = vec4(a_Color.xyz, a_Color.w * opacity); - - vec2 source = a_Instance.rg; // \u8D77\u59CB\u70B9 - vec2 target = a_Instance.ba; // \u7EC8\u70B9 - float segmentIndex = a_Position.x; - float segmentRatio = getSegmentRatio(segmentIndex); - - float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); - float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); - - vec2 s = source; - vec2 t = target; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - s = unProjCustomCoord(source); - t = unProjCustomCoord(target); - } - float total_Distance = pixelDistance(s, t) / 2.0 * PI; - v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / total_Distance; - - v_distance_ratio = segmentIndex / segmentNumber; - - vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio, thetaOffset), 0.0, 1.0)); - vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio, thetaOffset), 0.0, 1.0)); - - - vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); - - gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + offset, 0, 1.0)); - - gl_PointSize = 5.0; - setPickingColor(a_PickingColor); -} -`,VC=` -#define Animate 0.0 -#define LineTexture 1.0 -uniform float u_textureBlend; -uniform float u_blur : 0.9; -uniform float u_line_type: 0.0; -// varying vec2 v_normal; -varying vec4 v_dash_array; -varying vec4 v_color; - -uniform float u_time; -uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; - -uniform float u_line_texture; -uniform sampler2D u_texture; -uniform vec2 u_textSize; - -uniform float segmentNumber; -varying vec2 v_iconMapUV; -varying vec4 v_lineData; - - -#pragma include "picking" - -void main() { - float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 - gl_FragColor = v_color; - - - if(u_animate.x == Animate && u_line_texture != LineTexture) { - animateSpeed = u_time / u_animate.y; - float alpha =1.0 - fract( mod(1.0- v_lineData.b, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y); - alpha = (alpha + u_animate.w -1.0) / u_animate.w; - // alpha = smoothstep(0., 1., alpha); - alpha = clamp(alpha, 0.0, 1.0); - gl_FragColor.a *= alpha; - } - - // \u5F53\u5B58\u5728\u8D34\u56FE\u65F6\u5728\u5E95\u8272\u4E0A\u8D34\u4E0A\u8D34\u56FE - if(u_line_texture == LineTexture) { // while load texture - float arcRadio = smoothstep( 0.0, 1.0, (v_lineData.r / segmentNumber)); - // float arcRadio = smoothstep( 0.0, 1.0, d_distance_ratio); - - float count = v_lineData.g; // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF - - float time = 0.0; - if(u_animate.x == Animate) { - time = u_time / u_animate.y; - } - float redioCount = arcRadio * count; - - float u = fract(redioCount - time); - float v = v_lineData.a; // \u6A2A\u5411 v - vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; - - vec4 pattern = texture2D(u_texture, uv); - - if(u_animate.x == Animate) { - float currentPlane = floor(redioCount - time); - float textureStep = floor(count * u_animate.z); - float a = mod(currentPlane, textureStep); - if(a < textureStep - 1.0) { - pattern = vec4(0.0); - } - } - - if(u_textureBlend == 0.0) { // normal - pattern.a = 0.0; - gl_FragColor = filterColor(gl_FragColor + pattern); - } else { // replace - pattern.a *= v_color.a; - if(gl_FragColor.a <= 0.0) { - pattern.a = 0.0; - } - gl_FragColor = filterColor(pattern); - } - - } else { - gl_FragColor = filterColor(gl_FragColor); - } -}`,jC=`#define Animate 0.0 -#define LineTexture 1.0 - -attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec4 a_Instance; -attribute float a_Size; -uniform mat4 u_ModelMatrix; - -uniform float segmentNumber; -uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; -varying vec4 v_color; - -uniform float u_lineDir: 1.0; - -uniform float u_icon_step: 100; -uniform float u_line_texture: 0.0; -attribute vec2 a_iconMapUV; -varying vec2 v_iconMapUV; -varying vec4 v_lineData; -varying vec2 v_distance_ratio; - - -#pragma include "projection" -#pragma include "project" -#pragma include "picking" - -float bezier3(vec3 arr, float t) { - float ut = 1. - t; - return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; -} -vec2 midPoint(vec2 source, vec2 target, float arcThetaOffset) { - vec2 center = target - source; - float r = length(center); - float theta = atan(center.y, center.x); - float thetaOffset = arcThetaOffset; - float r2 = r / 2.0 / cos(thetaOffset); - float theta2 = theta + thetaOffset; - vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); - if(u_lineDir == 1.0) { // \u6B63\u5411 - return mid; - } else { // \u9006\u5411 - // (mid + vmin)/2 = (s + t)/2 - vec2 vmid = source + target - mid; - return vmid; - } - // return mid; -} -float getSegmentRatio(float index) { - // dash: index / (segmentNumber - 1.); - // normal: smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); - return smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); - // return index / (segmentNumber - 1.); -} -vec2 interpolate (vec2 source, vec2 target, float t, float arcThetaOffset) { - // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation - vec2 mid = midPoint(source, target, arcThetaOffset); - vec3 x = vec3(source.x, mid.x, target.x); - vec3 y = vec3(source.y, mid.y, target.y); - return vec2(bezier3(x ,t), bezier3(y,t)); -} -vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; - return offset; -} -vec2 getNormal(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); -} - -void main() { - v_color = a_Color; - v_color.a = v_color.a * opacity; - - vec2 source = a_Instance.rg; // \u8D77\u59CB\u70B9 - vec2 target = a_Instance.ba; // \u7EC8\u70B9 - float segmentIndex = a_Position.x; - float segmentRatio = getSegmentRatio(segmentIndex); - - float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); - float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); - float d_distance_ratio; - - if(u_animate.x == Animate) { - d_distance_ratio = segmentIndex / segmentNumber; - if(u_lineDir != 1.0) { - d_distance_ratio = 1.0 - d_distance_ratio; - } - } - - v_lineData.b = d_distance_ratio; - - vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio, thetaOffset), 0.0, 1.0)); - vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio, thetaOffset), 0.0, 1.0)); - - - vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); - - - float d_segmentIndex = a_Position.x + 1.0; // \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u4F4D\u7F6E - v_lineData.r = d_segmentIndex; - - if(LineTexture == u_line_texture) { // \u5F00\u542F\u8D34\u56FE\u6A21\u5F0F - - float arcDistrance = length(source - target); // \u8D77\u59CB\u70B9\u548C\u7EC8\u70B9\u7684\u8DDD\u79BB - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20) { // amap - arcDistrance *= 1000000.0; - } - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { // mapbox - // arcDistrance *= 8.0; - arcDistrance = project_pixel_allmap(arcDistrance); - } - v_iconMapUV = a_iconMapUV; - - float pixelLen = project_pixel_texture(u_icon_step); // \u8D34\u56FE\u6CBF\u5F27\u7EBF\u65B9\u5411\u7684\u957F\u5EA6 - \u968F\u5730\u56FE\u7F29\u653E\u6539\u53D8 - float texCount = floor(arcDistrance/pixelLen); // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF - v_lineData.g = texCount; - - float lineOffsetWidth = length(offset + offset * sign(a_Position.y)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB - float linePixelSize = project_pixel(a_Size); // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB - v_lineData.a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - } - - gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + offset, 0, 1.0)); - - setPickingColor(a_PickingColor); -} -`,HC=`varying vec4 v_color; - -#pragma include "picking" - -void main() { -// \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u4F4D\u7F6E - - gl_FragColor = v_color; - gl_FragColor = filterColor(gl_FragColor); -}`,WC=` -attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec4 a_Instance; -attribute float a_Size; -uniform mat4 u_ModelMatrix; - -uniform float segmentNumber; -varying vec4 v_color; -varying float v_segmentIndex; - -uniform float u_lineDir: 1.0; - -uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; - - - - -#pragma include "projection" -#pragma include "project" -#pragma include "picking" - -float bezier3(vec3 arr, float t) { - float ut = 1. - t; - return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; -} -vec2 midPoint(vec2 source, vec2 target, float arcThetaOffset) { - vec2 center = target - source; - float r = length(center); - float theta = atan(center.y, center.x); - float thetaOffset = arcThetaOffset; - float r2 = r / 2.0 / cos(thetaOffset); - float theta2 = theta + thetaOffset; - vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); - if(u_lineDir == 1.0) { // \u6B63\u5411 - return mid; - } else { // \u9006\u5411 - // (mid + vmin)/2 = (s + t)/2 - vec2 vmid = source + target - mid; - return vmid; - } - // return mid; -} -float getSegmentRatio(float index) { - return smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); -} -vec2 interpolate (vec2 source, vec2 target, float t, float arcThetaOffset) { - // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation - vec2 mid = midPoint(source, target, arcThetaOffset); - vec3 x = vec3(source.x, mid.x, target.x); - vec3 y = vec3(source.y, mid.y, target.y); - return vec2(bezier3(x ,t), bezier3(y,t)); -} -vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; - return offset; -} -vec2 getNormal(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); -} - -void main() { - v_color = a_Color; - - vec2 source = a_Instance.rg; // \u8D77\u59CB\u70B9 - vec2 target = a_Instance.ba; // \u7EC8\u70B9 - float segmentIndex = a_Position.x; - float segmentRatio = getSegmentRatio(segmentIndex); - - float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); - float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); - float d_distance_ratio; - vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio, thetaOffset), 0.0, 1.0)); - vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio, thetaOffset), 0.0, 1.0)); - // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); - //unProjCustomCoord - - vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); - - - float d_segmentIndex = a_Position.x + 1.0; // \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u4F4D\u7F6E - - v_color = mix(u_sourceColor, u_targetColor, d_segmentIndex/segmentNumber); - v_color.a *= opacity; - - gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + offset, 0, 1.0)); - - setPickingColor(a_PickingColor); -} -`,GC={solid:0,dash:1},AL=oi.isNumber,XC=function(e){(0,Le.Z)(t,e);var r=NC(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { - flag = 1.; - } - gl_FragColor.a *=flag; - } - - if(u_animate.x == Animate && u_line_texture != LineTexture) { - animateSpeed = u_time / u_animate.y; - float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y); - - alpha = (alpha + u_animate.w -1.0) / u_animate.w; - // alpha = smoothstep(0., 1., alpha); - alpha = clamp(alpha, 0.0, 1.0); - gl_FragColor.a *= alpha; - - // u_animate - // x enable - // y duration - // z interval - // w trailLength - } - - if(u_line_texture == LineTexture && u_line_type != LineTypeDash) { // while load texture - // float arcRadio = smoothstep( 0.0, 1.0, (v_segmentIndex / segmentNumber)); - float arcRadio = v_segmentIndex / (segmentNumber - 1.0); - float count = v_line_data.b; // // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF - - float time = 0.0; - if(u_animate.x == Animate) { - time = u_time / u_animate.y; - } - float redioCount = arcRadio * count; - - float u = fract(redioCount - time); - - float v = v_line_data.a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; - vec4 pattern = texture2D(u_texture, uv); - - if(u_animate.x == Animate) { - float currentPlane = floor(redioCount - time); - float textureStep = floor(count * u_animate.z); - float a = mod(currentPlane, textureStep); - if(a < textureStep - 1.0) { - pattern = vec4(0.0); - } - } - - if(u_textureBlend == 0.0) { // normal - pattern.a = 0.0; - gl_FragColor = filterColor(gl_FragColor + pattern); - } else { // replace - pattern.a *= v_color.a; - if(gl_FragColor.a <= 0.0) { - pattern.a = 0.0; - discard; - } else { - gl_FragColor = filterColor(pattern); - } - } - - } else { - gl_FragColor = filterColor(gl_FragColor); - } -} -`,KC=`#define LineTypeSolid 0.0 -#define LineTypeDash 1.0 -#define Animate 0.0 -#define LineTexture 1.0 -attribute vec3 a_Position; -attribute vec4 a_Instance; -attribute vec4 a_Color; -attribute float a_Size; - -uniform float u_globel; -uniform float u_globel_radius; -uniform float u_global_height: 10; -uniform mat4 u_ModelMatrix; - -uniform float segmentNumber; -uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; -varying vec4 v_color; - -uniform float u_line_type: 0.0; -uniform vec4 u_dash_array: [10.0, 5., 0, 0]; -varying vec4 v_dash_array; - -uniform float u_icon_step: 100; -uniform float u_line_texture: 0.0; -varying float v_segmentIndex; - -attribute vec2 a_iconMapUV; -varying vec2 v_iconMapUV; -varying vec4 v_line_data; - -#pragma include "projection" -#pragma include "project" -#pragma include "picking" - -float maps (float value, float start1, float stop1, float start2, float stop2) { - return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); -} - -float getSegmentRatio(float index) { - return smoothstep(0.0, 1.0, index / (segmentNumber - 1.0)); -} - -float paraboloid(vec2 source, vec2 target, float ratio) { - vec2 x = mix(source, target, ratio); - vec2 center = mix(source, target, 0.5); - float dSourceCenter = distance(source, center); - float dXCenter = distance(x, center); - return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter); -} - -vec3 getPos(vec2 source, vec2 target, float segmentRatio) { - float vertex_height = paraboloid(source, target, segmentRatio); - - return vec3( - mix(source, target, segmentRatio), - sqrt(max(0.0, vertex_height)) - ); -} -vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - - vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; - - return offset; -} -vec2 getNormal(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); -} - -float torad(float deg) { - return (deg / 180.0) * acos(-1.0); -} - -vec3 lglt2xyz(vec2 lnglat) { - float pi = 3.1415926; - // + Math.PI/2 \u662F\u4E3A\u4E86\u5BF9\u9F50\u5750\u6807 - float lng = torad(lnglat.x) + pi / 2.0; - float lat = torad(lnglat.y); - - // \u624B\u52A8\u589E\u52A0\u4E00\u4E9B\u504F\u79FB\uFF0C\u51CF\u8F7B\u9762\u7684\u51B2\u7A81 - float radius = u_globel_radius; - - float z = radius * cos(lat) * cos(lng); - float x = radius * cos(lat) * sin(lng); - float y = radius * sin(lat); - return vec3(x, y, z); -} - -void main() { - - v_color = a_Color; - v_color.a = v_color.a * opacity; - vec2 source = project_position(vec4(a_Instance.rg, 0, 0)).xy; - vec2 target = project_position(vec4(a_Instance.ba, 0, 0)).xy; - float segmentIndex = a_Position.x; - float segmentRatio = getSegmentRatio(segmentIndex); - float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); - - float d_distance_ratio; - if(u_line_type == LineTypeDash) { - d_distance_ratio = segmentIndex / segmentNumber; - vec2 s = source; - vec2 t = target; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - s = unProjCustomCoord(source); - t = unProjCustomCoord(target); - } - float total_Distance = pixelDistance(s, t) / 2.0 * PI; - v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / (total_Distance / segmentNumber * segmentIndex); - } - if(u_animate.x == Animate) { - d_distance_ratio = segmentIndex / segmentNumber; - } - v_line_data.g = d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - - float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); - vec3 curr = getPos(source, target, segmentRatio); - vec3 next = getPos(source, target, nextSegmentRatio); - vec2 offset = getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y); - // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); - - - v_segmentIndex = a_Position.x; - if(LineTexture == u_line_texture && u_line_type != LineTypeDash) { // \u5F00\u542F\u8D34\u56FE\u6A21\u5F0F - - float arcDistrance = length(source - target); - float pixelLen = project_pixel_texture(u_icon_step); - v_line_data.b = floor(arcDistrance/pixelLen); // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF - - vec2 projectOffset = project_pixel(offset); - float lineOffsetWidth = length(projectOffset + projectOffset * sign(a_Position.y)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB - float linePixelSize = project_pixel(a_Size); // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB - v_line_data.a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - - v_iconMapUV = a_iconMapUV; - } - - - gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + project_pixel(offset), curr.z * thetaOffset, 1.0)); - - // \u5730\u7403\u6A21\u5F0F - if(u_globel > 0.0) { - vec3 startLngLat = lglt2xyz(a_Instance.rg); - vec3 endLngLat = lglt2xyz(a_Instance.ba); - float globalRadius = length(startLngLat); - - vec3 lineDir = normalize(endLngLat - startLngLat); - vec3 midPointDir = normalize((startLngLat + endLngLat)/2.0); - - // \u7EBF\u7684\u504F\u79FB - vec3 lnglatOffset = cross(lineDir, midPointDir) * a_Position.y; - // \u8BA1\u7B97\u8D77\u59CB\u70B9\u548C\u7EC8\u6B62\u70B9\u7684\u8DDD\u79BB - float lnglatLength = length(a_Instance.rg - a_Instance.ba)/50.0; - // \u8BA1\u7B97\u98DE\u7EBF\u5404\u4E2A\u8282\u70B9\u76F8\u5E94\u7684\u9AD8\u5EA6 - float lineHeight = u_global_height * (-4.0*segmentRatio*segmentRatio + 4.0 * segmentRatio) * lnglatLength; - // \u5730\u7403\u70B9\u4F4D - vec3 globalPoint = normalize(mix(startLngLat, endLngLat, segmentRatio)) * (globalRadius + lineHeight) + lnglatOffset * a_Size; - - gl_Position = u_ViewProjectionMatrix * vec4(globalPoint, 1.0); - } - - - setPickingColor(a_PickingColor); -} -`,QC=` -#define Animate 0.0 -uniform float u_time; -uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; -varying vec4 v_Color; - -varying float v_distance_ratio; -#pragma include "picking" - -void main() { - - float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 - gl_FragColor = v_Color; - - if(u_animate.x == Animate) { - animateSpeed = u_time / u_animate.y; - float alpha =1.0 - fract( mod(1.0- v_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y); - - alpha = (alpha + u_animate.w -1.0) / u_animate.w; - // alpha = smoothstep(0., 1., alpha); - alpha = clamp(alpha, 0.0, 1.0); - gl_FragColor.a *= alpha; - - // u_animate - // x enable - // y duration - // z interval - // w trailLength - } - - gl_FragColor = filterColor(gl_FragColor); -} -`,JC=`#define LineTypeSolid 0.0 -#define LineTypeDash 1.0 -#define Animate 0.0 -#define LineTexture 1.0 -attribute vec3 a_Position; -attribute vec4 a_Instance; -attribute vec4 a_Color; -attribute float a_Size; -attribute vec2 a_iconMapUV; - -uniform float u_globel; -uniform float u_globel_radius; -uniform float u_global_height: 10; -uniform mat4 u_ModelMatrix; - -uniform float segmentNumber; -uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; -uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; - -uniform float u_line_type: 0.0; -uniform vec4 u_dash_array: [10.0, 5., 0, 0]; -uniform float u_icon_step: 100; -uniform float u_line_texture: 0.0; -varying float v_distance_ratio; - -varying vec4 v_dash_array; -varying vec4 v_color; -varying vec2 v_iconMapUV; -varying vec4 v_Color; - -#pragma include "projection" -#pragma include "project" -#pragma include "picking" - -float maps (float value, float start1, float stop1, float start2, float stop2) { - return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); -} - -float getSegmentRatio(float index) { - return smoothstep(0.0, 1.0, index / (segmentNumber - 1.0)); -} - -float paraboloid(vec2 source, vec2 target, float ratio) { - vec2 x = mix(source, target, ratio); - vec2 center = mix(source, target, 0.5); - float dSourceCenter = distance(source, center); - float dXCenter = distance(x, center); - return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter); -} - -vec3 getPos(vec2 source, vec2 target, float segmentRatio) { - float vertex_height = paraboloid(source, target, segmentRatio); - - return vec3( - mix(source, target, segmentRatio), - sqrt(max(0.0, vertex_height)) - ); -} -vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - - vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; - - return offset; -} -vec2 getNormal(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); -} - -float torad(float deg) { - return (deg / 180.0) * acos(-1.0); -} - -vec3 lglt2xyz(vec2 lnglat) { - float pi = 3.1415926; - // + Math.PI/2 \u662F\u4E3A\u4E86\u5BF9\u9F50\u5750\u6807 - float lng = torad(lnglat.x) + pi / 2.0; - float lat = torad(lnglat.y); - - // \u624B\u52A8\u589E\u52A0\u4E00\u4E9B\u504F\u79FB\uFF0C\u51CF\u8F7B\u9762\u7684\u51B2\u7A81 - float radius = u_globel_radius; - - float z = radius * cos(lat) * cos(lng); - float x = radius * cos(lat) * sin(lng); - float y = radius * sin(lat); - return vec3(x, y, z); -} - -void main() { - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - v_color = a_Color; - vec2 source = project_position(vec4(a_Instance.rg, 0, 0)).xy; - vec2 target = project_position(vec4(a_Instance.ba, 0, 0)).xy; - float segmentIndex = a_Position.x; - float segmentRatio = getSegmentRatio(segmentIndex); - float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); - - float d_distance_ratio; - if(u_line_type == LineTypeDash) { - d_distance_ratio = segmentIndex / segmentNumber; - // float total_Distance = pixelDistance(a_Instance.rg, a_Instance.ba) / 2.0 * PI; - vec2 s = source; - vec2 t = target; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - s = unProjCustomCoord(source); - t = unProjCustomCoord(target); - } - float total_Distance = pixelDistance(s, t) / 2.0 * PI; - v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / (total_Distance / segmentNumber * segmentIndex); - } - if(u_animate.x == Animate) { - v_distance_ratio = segmentIndex / segmentNumber; - } - - - float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); - vec3 curr = getPos(source, target, segmentRatio); - vec3 next = getPos(source, target, nextSegmentRatio); - vec2 offset = getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y); - - float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 - v_Color = mix(u_sourceColor, u_targetColor, a_Position.x/segmentNumber); - - v_Color.a *= opacity; - - gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + project_pixel(offset), curr.z, 1.0)); - - // \u5730\u7403\u6A21\u5F0F - if(u_globel > 0.0) { - vec3 startLngLat = lglt2xyz(a_Instance.rg); - vec3 endLngLat = lglt2xyz(a_Instance.ba); - float globalRadius = length(startLngLat); - - vec3 lineDir = normalize(endLngLat - startLngLat); - vec3 midPointDir = normalize((startLngLat + endLngLat)/2.0); - - // \u7EBF\u7684\u504F\u79FB - vec3 lnglatOffset = cross(lineDir, midPointDir) * a_Position.y; - // \u8BA1\u7B97\u8D77\u59CB\u70B9\u548C\u7EC8\u6B62\u70B9\u7684\u8DDD\u79BB - float lnglatLength = length(a_Instance.rg - a_Instance.ba)/50.0; - // \u8BA1\u7B97\u98DE\u7EBF\u5404\u4E2A\u8282\u70B9\u76F8\u5E94\u7684\u9AD8\u5EA6 - float lineHeight = u_global_height * (-4.0*segmentRatio*segmentRatio + 4.0 * segmentRatio) * lnglatLength; - // \u5730\u7403\u70B9\u4F4D - vec3 globalPoint = normalize(mix(startLngLat, endLngLat, segmentRatio)) * (globalRadius + lineHeight) + lnglatOffset * a_Size; - - gl_Position = u_ViewProjectionMatrix * vec4(globalPoint, 1.0); - } - - - setPickingColor(a_PickingColor); -} -`,e3={solid:0,dash:1},t3=function(e){(0,Le.Z)(t,e);var r=$C(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { - flag = 1.; - } - gl_FragColor.a *=flag; - } - - if(u_animate.x == Animate && u_line_texture != LineTexture) { - animateSpeed = u_time / u_animate.y; - float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y); - - alpha = (alpha + u_animate.w -1.0) / u_animate.w; - // alpha = smoothstep(0., 1., alpha); - alpha = clamp(alpha, 0.0, 1.0); - gl_FragColor.a *= alpha; - - // u_animate - // x enable - // y duration - // z interval - // w trailLength - } - - if(u_line_texture == LineTexture && u_line_type != LineTypeDash) { // while load texture - // float arcRadio = smoothstep( 0.0, 1.0, (v_segmentIndex / segmentNumber)); - float arcRadio = v_segmentIndex / (segmentNumber - 1.0); - float count = v_line_data.b; // // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF - - float time = 0.0; - if(u_animate.x == Animate) { - time = u_time / u_animate.y; - } - float redioCount = arcRadio * count; - - float u = fract(redioCount - time); - - float v = v_line_data.a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; - vec4 pattern = texture2D(u_texture, uv); - - if(u_animate.x == Animate) { - float currentPlane = floor(redioCount - time); - float textureStep = floor(count * u_animate.z); - float a = mod(currentPlane, textureStep); - if(a < textureStep - 1.0) { - pattern = vec4(0.0); - } - } - - if(u_textureBlend == 0.0) { // normal - pattern.a = 0.0; - gl_FragColor = filterColor(gl_FragColor + pattern); - } else { // replace - pattern.a *= v_color.a; - if(gl_FragColor.a <= 0.0) { - pattern.a = 0.0; - discard; - } else { - gl_FragColor = filterColor(pattern); - } - } - - } else { - gl_FragColor = filterColor(gl_FragColor); - } -} -`,a3=`#define LineTypeSolid 0.0 -#define LineTypeDash 1.0 -#define Animate 0.0 -#define LineTexture 1.0 -attribute vec3 a_Position; -attribute vec4 a_Instance; -attribute vec4 a_Color; -attribute float a_Size; - -uniform float u_globel; -uniform float u_globel_radius; -uniform float u_global_height: 10; -uniform mat4 u_ModelMatrix; - -uniform float segmentNumber; -uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; -varying vec4 v_color; - -uniform float u_line_type: 0.0; -uniform vec4 u_dash_array: [10.0, 5., 0, 0]; -varying vec4 v_dash_array; - -uniform float u_icon_step: 100; -uniform float u_line_texture: 0.0; -varying float v_segmentIndex; - -attribute vec2 a_iconMapUV; -varying vec2 v_iconMapUV; -varying vec4 v_line_data; - -#pragma include "projection" -#pragma include "project" -#pragma include "picking" - -float maps (float value, float start1, float stop1, float start2, float stop2) { - return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); -} - -float getSegmentRatio(float index) { - return smoothstep(0.0, 1.0, index / (segmentNumber - 1.0)); -} - -float paraboloid(vec2 source, vec2 target, float ratio) { - vec2 x = mix(source, target, ratio); - vec2 center = mix(source, target, 0.5); - float dSourceCenter = distance(source, center); - float dXCenter = distance(x, center); - return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter); -} - -vec3 getPos(vec2 source, vec2 target, float segmentRatio) { - float vertex_height = paraboloid(source, target, segmentRatio); - - return vec3( - mix(source, target, segmentRatio), - sqrt(max(0.0, vertex_height)) - ); -} -vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - - vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; - - return offset; -} -vec2 getNormal(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); -} - -float torad(float deg) { - return (deg / 180.0) * acos(-1.0); -} - -vec3 lglt2xyz(vec2 lnglat) { - float pi = 3.1415926; - // + Math.PI/2 \u662F\u4E3A\u4E86\u5BF9\u9F50\u5750\u6807 - float lng = torad(lnglat.x) + pi / 2.0; - float lat = torad(lnglat.y); - - // \u624B\u52A8\u589E\u52A0\u4E00\u4E9B\u504F\u79FB\uFF0C\u51CF\u8F7B\u9762\u7684\u51B2\u7A81 - float radius = u_globel_radius; - - float z = radius * cos(lat) * cos(lng); - float x = radius * cos(lat) * sin(lng); - float y = radius * sin(lat); - return vec3(x, y, z); -} - -void main() { - - v_color = a_Color; - v_color.a = v_color.a * opacity; - vec2 source = project_position(vec4(a_Instance.rg, 0, 0)).xy; - vec2 target = project_position(vec4(a_Instance.ba, 0, 0)).xy; - float segmentIndex = a_Position.x; - float segmentRatio = getSegmentRatio(segmentIndex); - float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); - - float d_distance_ratio; - if(u_line_type == LineTypeDash) { - d_distance_ratio = segmentIndex / segmentNumber; - vec2 s = source; - vec2 t = target; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - s = unProjCustomCoord(source); - t = unProjCustomCoord(target); - } - float total_Distance = pixelDistance(s, t) / 2.0 * PI; - v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / (total_Distance / segmentNumber * segmentIndex); - } - if(u_animate.x == Animate) { - d_distance_ratio = segmentIndex / segmentNumber; - } - v_line_data.g = d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - - float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); - vec3 curr = getPos(source, target, segmentRatio); - vec3 next = getPos(source, target, nextSegmentRatio); - vec2 offset = getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y); - // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); - - - v_segmentIndex = a_Position.x; - if(LineTexture == u_line_texture && u_line_type != LineTypeDash) { // \u5F00\u542F\u8D34\u56FE\u6A21\u5F0F - - float arcDistrance = length(source - target); - float pixelLen = project_pixel_texture(u_icon_step); - v_line_data.b = floor(arcDistrance/pixelLen); // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF - - vec2 projectOffset = project_pixel(offset); - float lineOffsetWidth = length(projectOffset + projectOffset * sign(a_Position.y)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB - float linePixelSize = project_pixel(a_Size); // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB - v_line_data.a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - - v_iconMapUV = a_iconMapUV; - } - - - gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + project_pixel(offset), curr.z * thetaOffset, 1.0)); - - // \u5730\u7403\u6A21\u5F0F - if(u_globel > 0.0) { - vec3 startLngLat = lglt2xyz(a_Instance.rg); - vec3 endLngLat = lglt2xyz(a_Instance.ba); - float globalRadius = length(startLngLat); - - vec3 lineDir = normalize(endLngLat - startLngLat); - vec3 midPointDir = normalize((startLngLat + endLngLat)/2.0); - - // \u7EBF\u7684\u504F\u79FB - vec3 lnglatOffset = cross(lineDir, midPointDir) * a_Position.y; - // \u8BA1\u7B97\u8D77\u59CB\u70B9\u548C\u7EC8\u6B62\u70B9\u7684\u8DDD\u79BB - float lnglatLength = length(a_Instance.rg - a_Instance.ba)/50.0; - // \u8BA1\u7B97\u98DE\u7EBF\u5404\u4E2A\u8282\u70B9\u76F8\u5E94\u7684\u9AD8\u5EA6 - float lineHeight = u_global_height * (-4.0*segmentRatio*segmentRatio + 4.0 * segmentRatio) * lnglatLength; - // \u5730\u7403\u70B9\u4F4D - vec3 globalPoint = normalize(mix(startLngLat, endLngLat, segmentRatio)) * (globalRadius + lineHeight) + lnglatOffset * a_Size; - - gl_Position = u_ViewProjectionMatrix * vec4(globalPoint, 1.0); - } - - - setPickingColor(a_PickingColor); -} -`,o3=` -#define Animate 0.0 -uniform float u_time; -uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; -varying vec4 v_Color; - -varying float v_distance_ratio; -#pragma include "picking" - -void main() { - - float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 - gl_FragColor = v_Color; - - if(u_animate.x == Animate) { - animateSpeed = u_time / u_animate.y; - float alpha =1.0 - fract( mod(1.0- v_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y); - - alpha = (alpha + u_animate.w -1.0) / u_animate.w; - // alpha = smoothstep(0., 1., alpha); - alpha = clamp(alpha, 0.0, 1.0); - gl_FragColor.a *= alpha; - - // u_animate - // x enable - // y duration - // z interval - // w trailLength - } - - gl_FragColor = filterColor(gl_FragColor); -} -`,s3=`#define LineTypeSolid 0.0 -#define LineTypeDash 1.0 -#define Animate 0.0 -#define LineTexture 1.0 -attribute vec3 a_Position; -attribute vec4 a_Instance; -attribute vec4 a_Color; -attribute float a_Size; -attribute vec2 a_iconMapUV; - -uniform float u_globel; -uniform float u_globel_radius; -uniform float u_global_height: 10; -uniform mat4 u_ModelMatrix; - -uniform float segmentNumber; -uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; -uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; - -uniform float u_line_type: 0.0; -uniform vec4 u_dash_array: [10.0, 5., 0, 0]; -uniform float u_icon_step: 100; -uniform float u_line_texture: 0.0; -varying float v_distance_ratio; - -varying vec4 v_dash_array; -varying vec4 v_color; -varying vec2 v_iconMapUV; -varying vec4 v_Color; - -#pragma include "projection" -#pragma include "project" -#pragma include "picking" - -float maps (float value, float start1, float stop1, float start2, float stop2) { - return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); -} - -float getSegmentRatio(float index) { - return smoothstep(0.0, 1.0, index / (segmentNumber - 1.0)); -} - -float paraboloid(vec2 source, vec2 target, float ratio) { - vec2 x = mix(source, target, ratio); - vec2 center = mix(source, target, 0.5); - float dSourceCenter = distance(source, center); - float dXCenter = distance(x, center); - return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter); -} - -vec3 getPos(vec2 source, vec2 target, float segmentRatio) { - float vertex_height = paraboloid(source, target, segmentRatio); - - return vec3( - mix(source, target, segmentRatio), - sqrt(max(0.0, vertex_height)) - ); -} -vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - - vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; - - return offset; -} -vec2 getNormal(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); -} - -float torad(float deg) { - return (deg / 180.0) * acos(-1.0); -} - -vec3 lglt2xyz(vec2 lnglat) { - float pi = 3.1415926; - // + Math.PI/2 \u662F\u4E3A\u4E86\u5BF9\u9F50\u5750\u6807 - float lng = torad(lnglat.x) + pi / 2.0; - float lat = torad(lnglat.y); - - // \u624B\u52A8\u589E\u52A0\u4E00\u4E9B\u504F\u79FB\uFF0C\u51CF\u8F7B\u9762\u7684\u51B2\u7A81 - float radius = u_globel_radius; - - float z = radius * cos(lat) * cos(lng); - float x = radius * cos(lat) * sin(lng); - float y = radius * sin(lat); - return vec3(x, y, z); -} - -void main() { - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - v_color = a_Color; - vec2 source = project_position(vec4(a_Instance.rg, 0, 0)).xy; - vec2 target = project_position(vec4(a_Instance.ba, 0, 0)).xy; - float segmentIndex = a_Position.x; - float segmentRatio = getSegmentRatio(segmentIndex); - float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); - - float d_distance_ratio; - if(u_line_type == LineTypeDash) { - d_distance_ratio = segmentIndex / segmentNumber; - // float total_Distance = pixelDistance(a_Instance.rg, a_Instance.ba) / 2.0 * PI; - vec2 s = source; - vec2 t = target; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - s = unProjCustomCoord(source); - t = unProjCustomCoord(target); - } - float total_Distance = pixelDistance(s, t) / 2.0 * PI; - v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / (total_Distance / segmentNumber * segmentIndex); - } - if(u_animate.x == Animate) { - v_distance_ratio = segmentIndex / segmentNumber; - } - - - float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); - vec3 curr = getPos(source, target, segmentRatio); - vec3 next = getPos(source, target, nextSegmentRatio); - vec2 offset = getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y); - - float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 - v_Color = mix(u_sourceColor, u_targetColor, a_Position.x/segmentNumber); - - v_Color.a *= opacity; - - gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + project_pixel(offset), curr.z, 1.0)); - - // \u5730\u7403\u6A21\u5F0F - if(u_globel > 0.0) { - vec3 startLngLat = lglt2xyz(a_Instance.rg); - vec3 endLngLat = lglt2xyz(a_Instance.ba); - float globalRadius = length(startLngLat); - - vec3 lineDir = normalize(endLngLat - startLngLat); - vec3 midPointDir = normalize((startLngLat + endLngLat)/2.0); - - // \u7EBF\u7684\u504F\u79FB - vec3 lnglatOffset = cross(lineDir, midPointDir) * a_Position.y; - // \u8BA1\u7B97\u8D77\u59CB\u70B9\u548C\u7EC8\u6B62\u70B9\u7684\u8DDD\u79BB - float lnglatLength = length(a_Instance.rg - a_Instance.ba)/50.0; - // \u8BA1\u7B97\u98DE\u7EBF\u5404\u4E2A\u8282\u70B9\u76F8\u5E94\u7684\u9AD8\u5EA6 - float lineHeight = u_global_height * (-4.0*segmentRatio*segmentRatio + 4.0 * segmentRatio) * lnglatLength; - // \u5730\u7403\u70B9\u4F4D - vec3 globalPoint = normalize(mix(startLngLat, endLngLat, segmentRatio)) * (globalRadius + lineHeight) + lnglatOffset * a_Size; - - gl_Position = u_ViewProjectionMatrix * vec4(globalPoint, 1.0); - } - - - setPickingColor(a_PickingColor); -} -`,u3={solid:0,dash:1},l3=function(e){(0,Le.Z)(t,e);var r=r3(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0,n=(0,cl.Z)(t.source)==="object"?t.source.type:t.source,i=(0,cl.Z)(t.target)==="object"?t.target.type:t.target,o=(0,cl.Z)(t.source)==="object"?t.source:{},s=o.width,l=s===void 0?n?O1[n]:0:s,f=o.height,v=f===void 0?2:f,y=(0,cl.Z)(t.target)==="object"?t.target:{},b=y.width,T=b===void 0?i?O1[i]:0:b,M=y.height,O=M===void 0?2:M;return{vertices:[0,Hl,1*l].concat((0,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;v (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { - // \u5B9E\u7EBF\u90E8\u5206 - } else { - // \u865A\u7EBF\u90E8\u5206 - discard; - }; - } - - // \u8BBE\u7F6E\u5F27\u7EBF\u7684\u52A8\u753B\u6A21\u5F0F - if(u_animate.x == Animate) { - animateSpeed = u_time / u_animate.y; - float alpha =1.0 - fract( mod(1.0- v_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y); - alpha = (alpha + u_animate.w -1.0) / u_animate.w; - alpha = smoothstep(0., 1., alpha); - gl_FragColor.a *= alpha; - } - - // \u8BBE\u7F6E\u5F27\u7EBF\u7684\u8D34\u56FE - if(LineTexture == u_line_texture && u_line_type != LineTypeDash) { - float arcRadio = smoothstep( 0.0, 1.0, (d_segmentIndex / (segmentNumber - 1.0))); - // float arcRadio = d_segmentIndex / (segmentNumber - 1.0); - float count = v_line_data.b; // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF - float u = fract(arcRadio * count - animateSpeed * count); - // float u = fract(arcRadio * count - animateSpeed); - if(u_animate.x == Animate) { - u = gl_FragColor.a/v_color.a; - } - - float v = v_line_data.a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - - vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; - vec4 pattern = texture2D(u_texture, uv); - - // \u8BBE\u7F6E\u8D34\u56FE\u548C\u5E95\u8272\u7684\u53E0\u52A0\u6A21\u5F0F - if(u_textureBlend == 0.0) { // normal - pattern.a = 0.0; - gl_FragColor = filterColor(gl_FragColor + pattern); - } else { // replace - pattern.a *= v_color.a; - if(gl_FragColor.a <= 0.0) { - pattern.a = 0.0; - } - gl_FragColor = filterColor(pattern); - } - } else { - gl_FragColor = filterColor(gl_FragColor); - } - - // gl_FragColor = filterColor(gl_FragColor); -}`,M3=`#define LineTypeSolid 0.0 -#define LineTypeDash 1.0 -#define Animate 0.0 -#define LineTexture 1.0 - -attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec4 a_Instance; -attribute float a_Size; -uniform mat4 u_ModelMatrix; - -uniform float segmentNumber; -uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; -varying vec4 v_color; - -varying float v_distance_ratio; -uniform float u_line_type: 0.0; -uniform vec4 u_dash_array: [10.0, 5., 0, 0]; -varying vec4 v_dash_array; - -uniform float u_icon_step: 100; -uniform float u_line_texture: 0.0; - -attribute vec2 a_iconMapUV; -varying vec2 v_iconMapUV; -varying vec4 v_line_data; - - -#pragma include "projection" -#pragma include "project" -#pragma include "picking" - -float maps (float value, float start1, float stop1, float start2, float stop2) { - return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); -} - -float getSegmentRatio(float index) { - return index / (segmentNumber - 1.); -} - -float paraboloid(vec2 source, vec2 target, float ratio) { - vec2 x = mix(source, target, ratio); - vec2 center = mix(source, target, 0.5); - float dSourceCenter = distance(source, center); - float dXCenter = distance(x, center); - return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter); -} - -vec3 getPos(vec2 source, vec2 target, float segmentRatio) { - float vertex_height = paraboloid(source, target, segmentRatio); - - return vec3( - mix(source, target, segmentRatio), - sqrt(max(0.0, vertex_height)) - ); -} -vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size)/ 2.0; - return offset; -} -vec2 getNormal(vec2 line_clipspace, float offset_direction) { - // normalized direction of the line - vec2 dir_screenspace = normalize(line_clipspace); - // rotate by 90 degrees - dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); - return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); -} -float getAngularDist (vec2 source, vec2 target) { - vec2 delta = source - target; - vec2 sin_half_delta = sin(delta / 2.0); - float a = - sin_half_delta.y * sin_half_delta.y + - cos(source.y) * cos(target.y) * - sin_half_delta.x * sin_half_delta.x; - return 2.0 * atan(sqrt(a), sqrt(1.0 - a)); -} - -vec2 midPoint(vec2 source, vec2 target) { - vec2 center = target - source; - float r = length(center); - float theta = atan(center.y, center.x); - float thetaOffset = 0.314; - float r2 = r / 2.0 / cos(thetaOffset); - float theta2 = theta + thetaOffset; - vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); - return mid; -} -float bezier3(vec3 arr, float t) { - float ut = 1. - t; - return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; -} - -vec2 interpolate (vec2 source, vec2 target, float angularDist, float t) { - // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - vec2 mid = midPoint(source, target); - vec3 x = vec3(source.x, mid.x, target.x); - vec3 y = vec3(source.y, mid.y, target.y); - return vec2(bezier3(x ,t), bezier3(y,t)); - }else { - if(abs(angularDist - PI) < 0.001) { - return (1.0 - t) * source + t * target; - } - float a = sin((1.0 - t) * angularDist) / sin(angularDist); - float b = sin(t * angularDist) / sin(angularDist); - vec2 sin_source = sin(source); - vec2 cos_source = cos(source); - vec2 sin_target = sin(target); - vec2 cos_target = cos(target); - float x = a * cos_source.y * cos_source.x + b * cos_target.y * cos_target.x; - float y = a * cos_source.y * sin_source.x + b * cos_target.y * sin_target.x; - float z = a * sin_source.y + b * sin_target.y; - return vec2(atan(y, x), atan(z, sqrt(x * x + y * y))); - } -} - -void main() { - v_color = a_Color; - v_color.a = v_color.a * opacity; - vec2 source = radians(a_Instance.rg); - vec2 target = radians(a_Instance.ba); - float angularDist = getAngularDist(source, target); - float segmentIndex = a_Position.x; - float segmentRatio = getSegmentRatio(segmentIndex); - float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); - - if(u_line_type == LineTypeDash) { - v_distance_ratio = segmentIndex / segmentNumber; - vec2 s = source; - vec2 t = target; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - s = unProjCustomCoord(source); - t = unProjCustomCoord(target); - } - float total_Distance = pixelDistance(s, t) / 2.0 * PI; - total_Distance = total_Distance*16.0; // total_Distance*16.0 \u8C03\u6574\u9ED8\u8BA4\u7684\u6548\u679C - v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / total_Distance; - } - - if(u_animate.x == Animate) { - v_distance_ratio = segmentIndex / segmentNumber; - } - - float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); - v_distance_ratio = segmentIndex / segmentNumber; - vec4 curr = project_position(vec4(degrees(interpolate(source, target, angularDist, segmentRatio)), 0.0, 1.0)); - vec4 next = project_position(vec4(degrees(interpolate(source, target, angularDist, nextSegmentRatio)), 0.0, 1.0)); - // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); - vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); - // vec4 project_pos = project_position(vec4(curr.xy, 0, 1.0)); - // gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, curr.z, 1.0)); - -v_line_data.g = a_Position.x; // \u8BE5\u9876\u70B9\u5728\u5F27\u7EBF\u4E0A\u7684\u5206\u6BB5\u6392\u5E8F - if(LineTexture == u_line_texture) { // \u5F00\u542F\u8D34\u56FE\u6A21\u5F0F - // float mapZoomScale = u_CoordinateSystem !== COORDINATE_SYSTEM_P20_2?10000000.0:1.0; - float d_arcDistrance = length(source - target); - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20) { // amap - d_arcDistrance = d_arcDistrance * 1000000.0; - } - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { // mapbox - d_arcDistrance = project_pixel_allmap(d_arcDistrance); - } - float d_pixelLen = project_pixel(u_icon_step)/8.0; -v_line_data.b = floor(d_arcDistrance/d_pixelLen); // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF - - float lineOffsetWidth = length(offset + offset * sign(a_Position.y)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB - float linePixelSize = project_pixel(a_Size); // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB -v_line_data.a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - - v_iconMapUV = a_iconMapUV; - } - - - - gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + offset, 0, 1.0)); - setPickingColor(a_PickingColor); -} - -`,I3={solid:0,dash:1},P3=function(e){(0,Le.Z)(t,e);var r=w3(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { - // \u5B9E\u7EBF\u90E8\u5206 - } else { - // \u865A\u7EBF\u90E8\u5206 - discard; - }; - - gl_FragColor = filterColor(gl_FragColor); -} -`,B3=`#define LineTypeSolid 0.0 -#define LineTypeDash 1.0 -#define Animate 0.0 - -attribute float a_Miter; -attribute vec4 a_Color; -attribute vec2 a_Size; -attribute vec3 a_Normal; -attribute vec3 a_Position; - -attribute vec2 a_iconMapUV; - -// dash line -attribute float a_Total_Distance; -attribute vec2 a_DistanceAndIndex; -uniform float u_raisingHeight: 0.0; -uniform float u_heightfixed: 0.0; - -uniform mat4 u_ModelMatrix; - -uniform vec4 u_dash_array: [10.0, 5., 0, 0]; - -uniform float u_vertexScale: 1.0; - -#pragma include "projection" -#pragma include "picking" - -varying vec4 v_color; -varying vec4 v_dash_array; -varying float v_d_distance_ratio; - - -void main() { - - v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / a_Total_Distance; - v_color = vec4(a_Color.xyz, a_Color.w * opacity); - - vec3 size = a_Miter * setPickingSize(a_Size.x) * reverse_offset_normal(a_Normal); - vec2 offset = project_pixel(size.xy); - v_d_distance_ratio = a_DistanceAndIndex.x / a_Total_Distance; - - - vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0)); - - float h = float(a_Position.z) * u_vertexScale; // \u7EBF\u9876\u70B9\u7684\u9AD8\u5EA6 - \u517C\u5BB9\u4E0D\u5B58\u5728\u7B2C\u4E09\u4E2A\u6570\u503C\u7684\u60C5\u51B5 vertex height - float lineHeight = a_Size.y; // size \u7B2C\u4E8C\u4E2A\u53C2\u6570\u4EE3\u8868\u7684\u9AD8\u5EA6 [linewidth, lineheight] - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - lineHeight *= 0.2; // \u4FDD\u6301\u548C amap/mapbox \u4E00\u81F4\u7684\u6548\u679C - h *= 0.2; - if(u_heightfixed < 1.0) { - lineHeight = project_pixel(a_Size.y); - } - gl_Position = u_Mvp * (vec4(project_pos.xy + offset, lineHeight + h + u_raisingHeight, 1.0)); - } else { - // mapbox - amap - - // \u517C\u5BB9 mapbox \u5728\u7EBF\u9AD8\u5EA6\u4E0A\u7684\u6548\u679C\u8868\u73B0\u57FA\u672C\u4E00\u81F4 - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - // mapbox - // \u4FDD\u6301\u9AD8\u5EA6\u76F8\u5BF9\u4E0D\u53D8 - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - h *= mapboxZoomScale; - h += u_raisingHeight * mapboxZoomScale; - if(u_heightfixed > 0.0) { - lineHeight *= mapboxZoomScale; - } - - } else { - // amap - h += u_raisingHeight; - // lineHeight \u9876\u70B9\u504F\u79FB\u9AD8\u5EA6 - if(u_heightfixed < 1.0) { - lineHeight *= pow(2.0, 20.0 - u_Zoom); - } - } - - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, lineHeight + h, 1.0)); - } - - setPickingColor(a_PickingColor); -} -`,L3=`#extension GL_OES_standard_derivatives : enable -#define Animate 0.0 -#define LineTexture 1.0 -uniform float u_textureBlend; - -uniform float u_strokeWidth: 0.0; - -uniform vec3 u_blur; -varying vec4 v_color; -varying vec4 v_stroke; - -// line texture -uniform float u_line_texture; -uniform sampler2D u_texture; -uniform vec2 u_textSize; -varying vec2 v_iconMapUV; -varying vec4 v_texture_data; - - -#pragma include "picking" - -uniform float u_time; -uniform vec4 u_animate: [ 1, 2., 1.0, 0.2 ]; // \u63A7\u5236\u8FD0\u52A8 -// [animate, duration, interval, trailLength], -void main() { - float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 - float d_distance_ratio = v_texture_data.r; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - gl_FragColor = v_color; - // anti-alias - // float blur = 1.0 - smoothstep(u_blur, 1., length(v_normal.xy)); - if(u_animate.x == Animate) { - animateSpeed = u_time / u_animate.y; - float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + animateSpeed); - alpha = (alpha + u_animate.w -1.0) / u_animate.w; - alpha = smoothstep(0., 1., alpha); - gl_FragColor.a *= alpha; - } - - if(u_line_texture == LineTexture) { // while load texture - float aDistance = v_texture_data.g; // \u5F53\u524D\u9876\u70B9\u7684\u8DDD\u79BB - float d_texPixelLen = v_texture_data.b; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E - float u = fract(mod(aDistance, d_texPixelLen)/d_texPixelLen - animateSpeed); - float v = v_texture_data.a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - - // v = max(smoothstep(0.95, 1.0, v), v); - vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; - vec4 pattern = texture2D(u_texture, uv); - - if(u_textureBlend == 0.0) { // normal - pattern.a = 0.0; - gl_FragColor += pattern; - } else { // replace - pattern.a *= v_color.a; - if(gl_FragColor.a <= 0.0) { - pattern.a = 0.0; - } - gl_FragColor = pattern; - } - } - - float v = v_texture_data.a; - float strokeWidth = min(0.5, u_strokeWidth); - // \u7ED8\u5236 border - if(strokeWidth > 0.01) { - float borderOuterWidth = strokeWidth / 2.0; - - - if(v >= 1.0 - strokeWidth || v <= strokeWidth) { - if(v > strokeWidth) { // \u5916\u4FA7 - float linear = smoothstep(0.0, 1.0, (v - (1.0 - strokeWidth))/strokeWidth); - // float linear = step(0.0, (v - (1.0 - borderWidth))/borderWidth); - gl_FragColor.rgb = mix(gl_FragColor.rgb, v_stroke.rgb, linear); - } else if(v <= strokeWidth) { - float linear = smoothstep(0.0, 1.0, v/strokeWidth); - gl_FragColor.rgb = mix(v_stroke.rgb, gl_FragColor.rgb, linear); - } - } - - if(v < borderOuterWidth) { - gl_FragColor.a = mix(0.0, gl_FragColor.a, v/borderOuterWidth); - } else if(v > 1.0 - borderOuterWidth) { - gl_FragColor.a = mix(gl_FragColor.a, 0.0, (v - (1.0 - borderOuterWidth))/borderOuterWidth); - } - } - - // blur - float blurV = v_texture_data.a; - if(blurV < 0.5) { - gl_FragColor.a *= mix(u_blur.r, u_blur.g, blurV/0.5); - } else { - gl_FragColor.a *= mix(u_blur.g, u_blur.b, (blurV - 0.5)/0.5); - } - - gl_FragColor = filterColor(gl_FragColor); -} -`,k1=` -#define Animate 0.0 - -attribute float a_Miter; -attribute vec4 a_Color; -attribute vec2 a_Size; -attribute vec3 a_Normal; -attribute vec3 a_Position; - -attribute vec2 a_iconMapUV; - -// dash line -attribute float a_Total_Distance; -attribute vec2 a_DistanceAndIndex; - -uniform mat4 u_ModelMatrix; - -uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; -uniform float u_icon_step: 100; - -uniform float u_heightfixed: 0.0; -uniform float u_vertexScale: 1.0; -uniform float u_raisingHeight: 0.0; - -#pragma include "projection" -#pragma include "picking" - -varying vec4 v_color; -varying vec4 v_stroke; - -// texV \u7EBF\u56FE\u5C42 - \u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\uFF08\u7EBF\u7684\u5BBD\u5EA6\u65B9\u5411\uFF09 -varying vec2 v_iconMapUV; - - -uniform float u_linearColor: 0; -uniform float u_arrow: 0.0; -uniform float u_arrowHeight: 3.0; -uniform float u_arrowWidth: 2.0; -uniform float u_tailWidth: 1.0; - -varying vec4 v_texture_data; - -vec2 calculateArrow(vec2 offset) { - /* - * \u5728\u652F\u6301\u7BAD\u5934\u7684\u65F6\u5019\uFF0C\u7B2C\u4E8C\u3001\u7B2C\u4E09\u7EC4\u9876\u70B9\u662F\u989D\u5916\u63D2\u5165\u7528\u4E8E\u6784\u5EFA\u9876\u70B9\u7684 - */ - float arrowFlag = -1.0; - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - // \u9AD8\u5FB7 2.0 \u7684\u65CB\u8F6C\u89D2\u5EA6\u4E0D\u540C - arrowFlag = 1.0; - } - float pi = arrowFlag * 3.1415926/2.; - if(a_Miter < 0.) { - // \u6839\u636E\u7EBF\u7684\u4E24\u4FA7\u504F\u79FB\u4E0D\u540C\u3001\u65CB\u8F6C\u7684\u65B9\u5411\u76F8\u53CD - pi = -pi; - } - highp float angle_sin = sin(pi); - highp float angle_cos = cos(pi); - // \u8BA1\u7B97\u5782\u76F4\u4E0E\u7EBF\u65B9\u5411\u7684\u65CB\u8F6C\u77E9\u9635 - mat2 rotation_matrix = mat2(angle_cos, -1.0 * angle_sin, angle_sin, angle_cos); - float arrowWidth = u_arrowWidth; - float arrowHeight = u_arrowHeight; - - vec2 arrowOffset = vec2(0.0); - /* - * a_DistanceAndIndex.y \u7528\u4E8E\u6807\u8BB0\u5F53\u524D\u9876\u70B9\u5C5E\u4E8E\u54EA\u4E00\u7EC4\uFF08\u4E24\u4E2A\u9876\u70B9\u4E00\u7EC4\uFF0C\u6784\u6210\u7EBF\u7684\u5176\u5B9E\u662F\u77E9\u5F62\uFF0C\u6700\u7B80\u9700\u8981\u56DB\u4E2A\u9876\u70B9\u3001\u4E24\u7EC4\u9876\u70B9\u6784\u6210\uFF09 - */ - if(a_DistanceAndIndex.y == 0.0) { - // \u7BAD\u5934\u5C16\u90E8 - offset = vec2(0.0); - } else if(a_DistanceAndIndex.y == 1.0) { - // \u7BAD\u5934\u4E24\u4FA7 - arrowOffset = rotation_matrix*(offset * arrowHeight); - offset += arrowOffset; // \u6CBF\u7EBF\u504F\u79FB - offset = offset * arrowWidth; // \u5782\u76F4\u7EBF\u5411\u5916\u504F\u79FB\uFF08\u662F\u6784\u5EFA\u7BAD\u5934\u4E24\u4FA7\u7684\u9876\u70B9\uFF09 - } else if(a_DistanceAndIndex.y == 2.0 || a_DistanceAndIndex.y == 3.0 || a_DistanceAndIndex.y == 4.0) { - // \u504F\u79FB\u5176\u4F59\u7684\u70B9\u4F4D\uFF08\u5C06\u957F\u5EA6\u8BA9\u4F4D\u7ED9\u7BAD\u5934\uFF09 - arrowOffset = rotation_matrix*(offset * arrowHeight) * arrowWidth; - offset += arrowOffset;// \u6CBF\u7EBF\u504F\u79FB - } - - return offset; -} - -void main() { - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - - float d_texPixelLen; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E - - v_iconMapUV = a_iconMapUV; - d_texPixelLen = project_float_pixel(u_icon_step); - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - d_texPixelLen *= 10.0; - } - - v_color = a_Color; - v_color.a *= opacity; - v_stroke = stroke; - - vec3 size = a_Miter * setPickingSize(a_Size.x) * reverse_offset_normal(a_Normal); - - vec2 offset = project_pixel(size.xy); - - float lineDistance = a_DistanceAndIndex.x; - float currentLinePointRatio = lineDistance / a_Total_Distance; - - if(u_arrow > 0.0) { - // \u8BA1\u7B97\u7BAD\u5934 - offset = calculateArrow(offset); - - if(a_DistanceAndIndex.y > 4.0) { - offset *= mix(1.0, u_tailWidth, currentLinePointRatio); - } - } - - float lineOffsetWidth = length(offset + offset * sign(a_Miter)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB\uFF08\u5411\u4E24\u4FA7\u504F\u79FB\u7684\u548C\uFF09 - float linePixelSize = project_pixel(a_Size.x) * 2.0; // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB \u5355\u4FA7 * 2 - float texV = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C - - v_texture_data = vec4(currentLinePointRatio, lineDistance, d_texPixelLen, texV); - // \u8BBE\u7F6E\u6570\u636E\u96C6\u7684\u53C2\u6570 - - vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0)); - - // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, a_Size.y, 1.0)); - - float h = float(a_Position.z) * u_vertexScale; // \u7EBF\u9876\u70B9\u7684\u9AD8\u5EA6 - \u517C\u5BB9\u4E0D\u5B58\u5728\u7B2C\u4E09\u4E2A\u6570\u503C\u7684\u60C5\u51B5 vertex height - float lineHeight = a_Size.y; // size \u7B2C\u4E8C\u4E2A\u53C2\u6570\u4EE3\u8868\u7684\u9AD8\u5EA6 [linewidth, lineheight] - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - lineHeight *= 0.2; // \u4FDD\u6301\u548C amap/mapbox \u4E00\u81F4\u7684\u6548\u679C - h *= 0.2; - if(u_heightfixed < 1.0) { - lineHeight = project_pixel(a_Size.y); - } - gl_Position = u_Mvp * (vec4(project_pos.xy + offset, lineHeight + h + u_raisingHeight, 1.0)); - } else { - // mapbox - amap - - // \u517C\u5BB9 mapbox \u5728\u7EBF\u9AD8\u5EA6\u4E0A\u7684\u6548\u679C\u8868\u73B0\u57FA\u672C\u4E00\u81F4 - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - // mapbox - // \u4FDD\u6301\u9AD8\u5EA6\u76F8\u5BF9\u4E0D\u53D8 - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - h *= mapboxZoomScale; - h += u_raisingHeight * mapboxZoomScale; - if(u_heightfixed > 0.0) { - lineHeight *= mapboxZoomScale; - } - - } else { - // amap - h += u_raisingHeight; - // lineHeight \u9876\u70B9\u504F\u79FB\u9AD8\u5EA6 - if(u_heightfixed < 1.0) { - lineHeight *= pow(2.0, 20.0 - u_Zoom); - } - } - - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, lineHeight + h, 1.0)); - } - - setPickingColor(a_PickingColor); -} -`,N3=`varying vec4 v_color; -varying vec4 v_texture_data; -uniform float u_linearDir: 1.0; -uniform float u_linearColor: 0; -uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; - -#pragma include "picking" - - -void main() { - float linearRadio = v_texture_data.r; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - if(u_linearDir < 1.0) { - linearRadio = v_texture_data.a; - } - - if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 - gl_FragColor = mix(u_sourceColor, u_targetColor, linearRadio); - gl_FragColor.a *= v_color.a; - } else { // \u4F7F\u7528 color \u65B9\u6CD5\u4F20\u5165\u7684\u989C\u8272 - gl_FragColor = v_color; - } - - gl_FragColor = filterColor(gl_FragColor); -} -`,U3={solid:0,dash:1},B1=function(e){(0,Le.Z)(t,e);var r=D3(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s 0.0) { - lineHeight *= mapboxZoomScale; - } - - } else { - // amap - h += u_raisingHeight; - // lineHeight \u9876\u70B9\u504F\u79FB\u9AD8\u5EA6 - if(u_heightfixed < 1.0) { - lineHeight *= pow(2.0, 20.0 - u_Zoom); - } - } - - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, lineHeight + h, 1.0)); - } - - setPickingColor(a_PickingColor); -} -`,CL=oi.isNumber,H3=function(e){(0,Le.Z)(t,e);var r=z3(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s 1.0/u_iconStepCount) { - flag = 1.0; - } - u = fract(u*u_iconStepCount); - // \u8BA1\u7B97\u7EB9\u7406\u95F4\u9694 end - - vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; - vec4 pattern = texture2D(u_texture, uv); - - // Tip: \u5224\u65AD\u7EB9\u7406\u95F4\u9694 - if(flag > 0.0) { - pattern = vec4(0.0); - } - - if(u_textureBlend == 0.0) { // normal - pattern.a = 0.0; - gl_FragColor = filterColor(gl_FragColor + pattern); - } else { // replace - pattern.a *= v_color.a; - if(gl_FragColor.a <= 0.0) { - pattern.a = 0.0; - } - gl_FragColor = filterColor(pattern); - } - } - - - // blur - AA - if(v < v_blur) { - gl_FragColor.a = mix(0.0, gl_FragColor.a, v/v_blur); - } else if(v > 1.0 - v_blur) { - gl_FragColor.a = mix(gl_FragColor.a, 0.0, (v - (1.0 - v_blur))/v_blur); - } - - gl_FragColor = filterColor(gl_FragColor); -} -`,J3=`#define Animate 0.0 - -attribute float a_Miter; -attribute vec4 a_Color; -attribute vec2 a_Size; -attribute vec3 a_Normal; -attribute vec3 a_Position; -attribute vec2 a_iconMapUV; -attribute float a_Total_Distance; -attribute float a_Distance; - -uniform mat4 u_ModelMatrix; - -uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; -uniform float u_icon_step: 100; -uniform float u_heightfixed; -uniform float u_linearColor: 0; - -#pragma include "projection" -#pragma include "light" -#pragma include "picking" - -// texV \u7EBF\u56FE\u5C42 - \u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\uFF08\u7EBF\u7684\u5BBD\u5EA6\u65B9\u5411\uFF09 -varying vec2 v_iconMapUV; -varying vec4 v_color; -varying float v_blur; -varying float v_radio; -varying vec4 v_dataset; - -void main() { - - - float d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - float d_texPixelLen; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E - - v_iconMapUV = a_iconMapUV; - if(u_heightfixed < 1.0) { // \u9AD8\u5EA6\u968F zoom \u8C03\u6574 - d_texPixelLen = project_pixel(u_icon_step); - } else { - d_texPixelLen = u_icon_step; - } - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - d_texPixelLen *= 10.0; - } - - if(u_animate.x == Animate || u_linearColor == 1.0) { - d_distance_ratio = a_Distance / a_Total_Distance; - } - - float miter = (a_Miter + 1.0)/2.0; - // \u8BBE\u7F6E\u6570\u636E\u96C6\u7684\u53C2\u6570 - v_dataset[0] = d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B - v_dataset[1] = a_Distance; // \u5F53\u524D\u9876\u70B9\u7684\u8DDD\u79BB - v_dataset[2] = d_texPixelLen; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E - v_dataset[3] = miter; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C 0 - 1 - - vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0)); - - float originSize = a_Size.x; // \u56FA\u5B9A\u9AD8\u5EA6 - if(u_heightfixed < 1.0) { - originSize = project_float_meter(a_Size.x); // \u9AD8\u5EA6\u968F zoom \u8C03\u6574 - } - - - float wallHeight = originSize * miter; - float lightWeight = calc_lighting(vec4(project_pos.xy, wallHeight, 1.0)); - - v_blur = min(project_float_pixel(2.0) / originSize, 0.05); - v_color = vec4(a_Color.rgb * lightWeight, a_Color.w * opacity); - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * (vec4(project_pos.xy, wallHeight, 1.0)); - } else { - gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, wallHeight, 1.0)); - } - - setPickingColor(a_PickingColor); -} -`,eR=function(e){(0,Le.Z)(t,e);var r=q3(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s 0.01 - float blurWidth = (1.0 - v_blur)/2.0; - vec4 stroke = vec4(u_stroke_color.rgb, u_stroke_opacity); - if(fragmengTocenter > v_innerRadius + blurWidth) { - gl_FragColor = stroke; - } else if(fragmengTocenter > v_innerRadius - blurWidth){ - float mixR = (fragmengTocenter - (v_innerRadius - blurWidth)) / (blurWidth * 2.0); - gl_FragColor = mix(v_color, stroke, mixR); - } else { - gl_FragColor = v_color; - } - } else { - // \u5F53\u4E0D\u5B58\u5728 stroke \u6216 stroke <= 0.01 - gl_FragColor = v_color; - } - - gl_FragColor = filterColor(gl_FragColor); - - if(u_additive > 0.0) { - gl_FragColor *= circleClipOpacity; - } else { - gl_FragColor.a *= circleClipOpacity; - } - -} -`,uR=` -attribute vec3 a_Position; -uniform mat4 u_ModelMatrix; - -attribute float a_Size; -attribute vec4 a_Color; -varying vec4 v_color; - -uniform float u_opacity : 1; -uniform vec2 u_offsets; -uniform float u_stroke_width; - -varying float v_blur; -varying float v_innerRadius; - - - -#pragma include "projection" -#pragma include "picking" -#pragma include "project" -void main() { - v_color = vec4(a_Color.xyz, a_Color.w * u_opacity); - v_blur = 1.0 - max(2.0/a_Size, 0.05); - v_innerRadius = max((a_Size - u_stroke_width) / a_Size, 0.0); - - vec2 offset = project_pixel(u_offsets); - - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x - gl_Position = u_Mvp * vec4(a_Position.xy + offset, a_Position.z, 1.0); - } else { // else - vec4 project_pos = project_position(vec4(a_Position, 1.0)) + vec4(a_Size / 2.,-a_Size /2.,0.,0.); - gl_Position = project_common_position_to_clipspace(vec4(vec2(project_pos.xy+offset),project_pos.z,project_pos.w)); - } - - gl_PointSize = a_Size * 2.0 * u_DevicePixelRatio; - setPickingColor(a_PickingColor); -} -`;function N1(e){var r=e.coordinates;return{vertices:(0,Kt.Z)(r),indices:[0],size:r.length}}var lR=function(e){(0,Le.Z)(t,e);var r=aR(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"getDefaultStyle",value:function(){return{blend:"additive"}}},{key:"getUninforms",value:function(){var i=this.layer.getLayerConfig(),o=i.opacity,s=o===void 0?1:o,l=i.offsets,f=l===void 0?[0,0]:l,v=i.blend,y=i.strokeOpacity,b=y===void 0?1:y,T=i.strokeWidth,M=T===void 0?0:T,O=i.stroke,F=O===void 0?"#fff":O;return{u_additive:v==="additive"?1:0,u_opacity:s,u_offsets:f,u_stroke_opacity:b,u_stroke_width:M,u_stroke_color:fi(F)}}},{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=N1,f.next=3,this.layer.buildLayerModel({moduleName:"pointSimple",vertexShader:uR,fragmentShader:sR,triangulation:N1,depth:{enable:!1},primitive:R.POINTS});case 3:return s=f.sent,f.abrupt("return",[s]);case 5:case"end":return f.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type: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?1:s;return Array.isArray(l)?[l[0]]:[l]}}})}}]),t}(Ma);function cR(e){var r=fR();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 fR(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var hR=`varying vec4 v_color; -uniform float u_opacity: 1.0; - -uniform float u_pickLight: 0.0; - -#pragma include "picking" - - -uniform float u_linearColor: 0; -uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; - -uniform float u_opacitylinear: 0.0; -uniform float u_opacitylinear_dir: 1.0; -varying float v_lightWeight; -varying float v_barLinearZ; -void main() { - - gl_FragColor = v_color; - - // \u5F00\u542F\u900F\u660E\u5EA6\u6E10\u53D8 - if(u_opacitylinear > 0.0) { - gl_FragColor.a *= u_opacitylinear_dir > 0.0 ? (1.0 - v_barLinearZ): v_barLinearZ; - } - - // picking - if(u_pickLight > 0.0) { - gl_FragColor = filterColorAlpha(gl_FragColor, v_lightWeight); - } else { - gl_FragColor = filterColor(gl_FragColor); - } -} -`,pR=`precision highp float; - -#define pi 3.1415926535 -#define ambientRatio 0.5 -#define diffuseRatio 0.3 -#define specularRatio 0.2 - -attribute vec3 a_Position; -attribute vec3 a_Pos; -attribute vec4 a_Color; -attribute vec3 a_Size; -attribute vec3 a_Normal; - -uniform float u_heightfixed: 0.0; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A -uniform float u_globel; -uniform float u_r; -uniform mat4 u_ModelMatrix; - -varying vec4 v_color; - -uniform float u_opacity : 1; -uniform float u_lightEnable: 1; -varying float v_lightWeight; -varying float v_barLinearZ; -// \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 - - -#pragma include "projection" -#pragma include "light" -#pragma include "picking" - -float getYRadian(float x, float z) { - if(x > 0.0 && z > 0.0) { - return atan(x/z); - } else if(x > 0.0 && z <= 0.0){ - return atan(-z/x) + pi/2.0; - } else if(x <= 0.0 && z <= 0.0) { - return pi + atan(x/z); //atan(x/z) + - } else { - return atan(z/-x) + pi*3.0/2.0; - } -} - -float getXRadian(float y, float r) { - return atan(y/r); -} - -void main() { - - - float textureOffset = 0.0; // \u5728 cell \u4E2D\u53D6\u503C\u7684\u504F\u79FB\u91CF - - textureOffset = opacityAndOffset.g; - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - vec3 size = a_Size * a_Position; - - // a_Position.z \u662F\u5728\u6784\u5EFA\u7F51\u683C\u7684\u65F6\u5019\u4F20\u5165\u7684\u6807\u51C6\u503C 0 - 1\uFF0C\u5728\u63D2\u503C\u5668\u63D2\u503C\u53EF\u4EE5\u83B7\u53D6 0\uFF5E1 \u7EBF\u6027\u6E10\u53D8\u7684\u503C - v_barLinearZ = a_Position.z; - - vec3 offset = size; // \u63A7\u5236\u5706\u67F1\u4F53\u7684\u5927\u5C0F - \u4ECE\u6807\u51C6\u5355\u4F4D\u5706\u67F1\u4F53\u8FDB\u884C\u504F\u79FB - if(u_heightfixed < 1.0) { // \u5706\u67F1\u4F53\u4E0D\u56FA\u5B9A\u9AD8\u5EA6 - - if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { - // P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 - offset = offset * pow(2.0, (19.0 - u_Zoom)); - } - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - // P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 - offset = offset * pow(2.0, (19.0 - 3.0 - u_Zoom)); - } - } else {// \u5706\u67F1\u4F53\u56FA\u5B9A\u9AD8\u5EA6 \uFF08 \u5904\u7406 mapbox \uFF09 - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - offset *= 4.0/pow(2.0, 21.0 - u_Zoom); - } - } - - - vec4 project_pos = project_position(vec4(a_Pos.xy, 0., 1.0)); - - // u_r \u63A7\u5236\u5706\u67F1\u7684\u751F\u957F - vec4 pos = vec4(project_pos.xy + offset.xy, offset.z * u_r, 1.0); - - // \u5706\u67F1\u5149\u7167\u6548\u679C - float lightWeight = 1.0; - if(u_lightEnable > 0.0) { // \u53D6\u6D88\u4E09\u5143\u8868\u8FBE\u5F0F\uFF0C\u589E\u5F3A\u5065\u58EE\u6027 - lightWeight = calc_lighting(pos); - } - v_lightWeight = lightWeight; - // \u8BBE\u7F6E\u5706\u67F1\u7684\u5E95\u8272 - if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 - v_color = mix(u_sourceColor, u_targetColor, barLinearZ); - v_color.rgb *= lightWeight; - } else { // \u4F7F\u7528 color \u65B9\u6CD5\u4F20\u5165\u7684\u989C\u8272 - v_color = a_Color; - } - v_color.a *= u_opacity; - - - // \u5728\u5730\u7403\u6A21\u5F0F\u4E0B\uFF0C\u5C06\u539F\u672C\u5782\u76F4\u4E8E xy \u5E73\u9762\u7684\u5706\u67F1\u8C03\u6574\u59FF\u6001\u5230\u9002\u5E94\u5706\u7684\u89D2\u5EA6 - //\u65CB\u8F6C\u77E9\u9635mx\uFF0C\u521B\u5EFA\u7ED5x\u8F74\u65CB\u8F6C\u77E9\u9635 - float r = sqrt(a_Pos.z*a_Pos.z + a_Pos.x*a_Pos.x); - float xRadian = getXRadian(a_Pos.y, r); - float xcos = cos(xRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u4F59\u5F26\u503C - float xsin = sin(xRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u6B63\u5F26\u503C - mat4 mx = mat4( - 1,0,0,0, - 0,xcos,-xsin,0, - 0,xsin,xcos,0, - 0,0,0,1); - - //\u65CB\u8F6C\u77E9\u9635my\uFF0C\u521B\u5EFA\u7ED5y\u8F74\u65CB\u8F6C\u77E9\u9635 - float yRadian = getYRadian(a_Pos.x, a_Pos.z); - float ycos = cos(yRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u4F59\u5F26\u503C - float ysin = sin(yRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u6B63\u5F26\u503C - mat4 my = mat4( - ycos,0,-ysin,0, - 0,1,0,0, - ysin,0,ycos,0, - 0,0,0,1); - - gl_Position = u_ViewProjectionMatrix * vec4(( my * mx * vec4(a_Position * a_Size, 1.0)).xyz + a_Pos, 1.0); - - - setPickingColor(a_PickingColor); -} -`,dR=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; - -varying vec4 v_data; -varying vec4 v_color; -varying float v_radius; - -#pragma include "sdf_2d" -#pragma include "picking" - - -void main() { - int shape = int(floor(v_data.w + 0.5)); - - vec4 strokeColor = textrueStroke == vec4(0) ? v_color : textrueStroke; - - lowp float antialiasblur = v_data.z; - float r = v_radius / (v_radius + strokeWidth); - - float outer_df; - float inner_df; - // 'circle', 'triangle', 'square', 'pentagon', 'hexagon', 'octogon', 'hexagram', 'rhombus', 'vesica' - if (shape == 0) { - outer_df = sdCircle(v_data.xy, 1.0); - inner_df = sdCircle(v_data.xy, r); - } else if (shape == 1) { - outer_df = sdEquilateralTriangle(1.1 * v_data.xy); - inner_df = sdEquilateralTriangle(1.1 / r * v_data.xy); - } else if (shape == 2) { - outer_df = sdBox(v_data.xy, vec2(1.)); - inner_df = sdBox(v_data.xy, vec2(r)); - } else if (shape == 3) { - outer_df = sdPentagon(v_data.xy, 0.8); - inner_df = sdPentagon(v_data.xy, r * 0.8); - } else if (shape == 4) { - outer_df = sdHexagon(v_data.xy, 0.8); - inner_df = sdHexagon(v_data.xy, r * 0.8); - } else if (shape == 5) { - outer_df = sdOctogon(v_data.xy, 1.0); - inner_df = sdOctogon(v_data.xy, r); - } else if (shape == 6) { - outer_df = sdHexagram(v_data.xy, 0.52); - inner_df = sdHexagram(v_data.xy, r * 0.52); - } else if (shape == 7) { - outer_df = sdRhombus(v_data.xy, vec2(1.0)); - inner_df = sdRhombus(v_data.xy, vec2(r)); - } else if (shape == 8) { - outer_df = sdVesica(v_data.xy, 1.1, 0.8); - inner_df = sdVesica(v_data.xy, r * 1.1, r * 0.8); - } - - if(outer_df > antialiasblur + 0.018) discard; - - float opacity_t = smoothstep(0.0, antialiasblur, outer_df); - - float color_t = strokeWidth < 0.01 ? 0.0 : smoothstep( - antialiasblur, - 0.0, - inner_df - ); - - if(strokeWidth < 0.01) { - gl_FragColor = vec4(v_color.rgb, v_color.a * u_opacity); - } else { - gl_FragColor = mix(vec4(v_color.rgb, v_color.a * u_opacity), u_stroke_color * u_stroke_opacity, color_t); - } - - if(u_additive > 0.0) { - gl_FragColor *= opacity_t; - gl_FragColor = filterColorAlpha(gl_FragColor, gl_FragColor.a); - } else { - gl_FragColor.a *= opacity_t; - gl_FragColor = filterColor(gl_FragColor); - } -} -`,yR=`attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec3 a_Extrude; -attribute float a_Size; -attribute float a_Shape; -uniform mat4 u_ModelMatrix; - - -varying vec4 v_data; -varying vec4 v_color; -varying float v_radius; - -uniform float u_opacity : 1; -uniform float u_stroke_opacity : 1; -uniform float u_stroke_width : 2; -uniform vec4 u_stroke_color : [0.0, 0.0, 0.0, 0.0]; -uniform vec2 u_offsets; - -uniform float u_blur : 0.0; - -#pragma include "projection" -#pragma include "picking" - - -void main() { - vec3 extrude = a_Extrude; - float shape_type = a_Shape; - /* - * setPickingSize \u8BBE\u7F6E\u62FE\u53D6\u5927\u5C0F - */ - float newSize = setPickingSize(a_Size); - // float newSize = setPickingSize(a_Size) * 0.00001038445708445579; - - // unpack color(vec2) - v_color = a_Color; - - // radius(16-bit) - v_radius = newSize; - - // anti-alias - // float antialiased_blur = -max(u_blur, antialiasblur); - float antialiasblur = -max(2.0 / u_DevicePixelRatio / newSize, u_blur); - - // TODP: /abs(extrude.x) \u662F\u4E3A\u4E86\u517C\u5BB9\u5730\u7403\u6A21\u5F0F - v_data = vec4(extrude.x/abs(extrude.x), extrude.y/abs(extrude.y), antialiasblur,shape_type); - - - gl_Position = u_ViewProjectionMatrix * vec4(a_Position + extrude * newSize * 0.1 + u_offsets, 1.0); - - setPickingColor(a_PickingColor); -} -`,xR=function(e){(0,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; - - -layout(std140) uniform commonUniforms { - float u_pickLight; - float u_heightfixed; - float u_r; - float u_linearColor; - vec4 u_sourceColor; - vec4 u_targetColor; - float u_opacitylinear; - float u_opacitylinear_dir; - float u_lightEnable; -}; - -#pragma include "picking" - -void main() { - - outputColor = v_color; - // \u5F00\u542F\u900F\u660E\u5EA6\u6E10\u53D8 - // picking - if(u_pickLight > 0.0) { - outputColor = filterColorAlpha(outputColor, v_lightWeight); - } else { - outputColor = filterColor(outputColor); - } -} -`,AR=`#define pi 3.1415926535 -#define ambientRatio 0.5 -#define diffuseRatio 0.3 -#define specularRatio 0.2 - -layout(location = 0) in vec3 a_Position; -layout(location = 1) in vec4 a_Color; -layout(location = 9) in vec3 a_Size; -layout(location = 11) in vec3 a_Extrude; -layout(location = 13) in vec3 a_Normal; - -layout(std140) uniform commonUniforms { - float u_pickLight; - float u_heightfixed; - float u_r; - float u_linearColor; - vec4 u_sourceColor; - vec4 u_targetColor; - float u_opacitylinear; - float u_opacitylinear_dir; - float u_lightEnable; -}; -out vec4 v_color; -out float v_lightWeight; -out float v_barLinearZ; - -#pragma include "projection" -#pragma include "light" -#pragma include "picking" - -float getYRadian(float x, float z) { - if(x > 0.0 && z > 0.0) { - return atan(x/z); - } else if(x > 0.0 && z <= 0.0){ - return atan(-z/x) + pi/2.0; - } else if(x <= 0.0 && z <= 0.0) { - return pi + atan(x/z); //atan(x/z) + - } else { - return atan(z/-x) + pi*3.0/2.0; - } -} - -float getXRadian(float y, float r) { - return atan(y/r); -} - -void main() { - - - vec3 size = a_Size * a_Position; - - vec3 offset = size; // \u63A7\u5236\u5706\u67F1\u4F53\u7684\u5927\u5C0F - \u4ECE\u6807\u51C6\u5355\u4F4D\u5706\u67F1\u4F53\u8FDB\u884C\u504F\u79FB - - if(u_heightfixed < 1.0) { // \u5706\u67F1\u4F53\u4E0D\u56FA\u5B9A\u9AD8\u5EA6 - - if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { - // P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 - offset = offset * pow(2.0, (19.0 - u_Zoom)); - } - if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { - // P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 - offset = offset * pow(2.0, (19.0 - 3.0 - u_Zoom)); - } - } else {// \u5706\u67F1\u4F53\u56FA\u5B9A\u9AD8\u5EA6 \uFF08 \u5904\u7406 mapbox \uFF09 - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - offset *= 4.0/pow(2.0, 21.0 - u_Zoom); - } - } - - - vec4 project_pos = project_position(vec4(a_Extrude.xy, 0., 1.0)); - - // u_r \u63A7\u5236\u5706\u67F1\u7684\u751F\u957F - vec4 pos = vec4(project_pos.xy + offset.xy, offset.z * u_r, 1.0); - - // // \u5706\u67F1\u5149\u7167\u6548\u679C - float lightWeight = 1.0; - - if(u_lightEnable > 0.0) { // \u53D6\u6D88\u4E09\u5143\u8868\u8FBE\u5F0F\uFF0C\u589E\u5F3A\u5065\u58EE\u6027 - lightWeight = calc_lighting(pos); - } - - v_lightWeight = lightWeight; - - v_color = a_Color; - - // \u8BBE\u7F6E\u5706\u67F1\u7684\u5E95\u8272 - if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 - v_color = mix(u_sourceColor, u_targetColor, a_Position.z); - v_color.a = v_color.a * opacity; - } else { - v_color = vec4(a_Color.rgb * lightWeight, a_Color.w * opacity); - } - - if(u_opacitylinear > 0.0) { - v_color.a *= u_opacitylinear_dir > 0.0 ? (1.0 - a_Position.z): a_Position.z; - } - - - gl_Position = project_common_position_to_clipspace_v2(pos); - - setPickingColor(a_PickingColor); -} -`,U1=function(e){(0,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; - - -varying vec4 v_data; -varying vec4 v_color; -varying float v_radius; -uniform float u_time; -uniform vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; - -#pragma include "sdf_2d" -#pragma include "picking" - -void main() { - - lowp float antialiasblur = v_data.z; - float r = v_radius / (v_radius); - - float outer_df; - float inner_df; - // 'circle', 'triangle', 'square', 'pentagon', 'hexagon', 'octogon', 'hexagram', 'rhombus', 'vesica' - - outer_df = sdCircle(v_data.xy, 1.0); - inner_df = sdCircle(v_data.xy, r); - - - float opacity_t = smoothstep(0.0, antialiasblur, outer_df); - - float color_t = smoothstep( - antialiasblur, - 0.0, - inner_df - ); - float PI = 3.14159; - float N_RINGS = 3.0; - float FREQ = 1.0; - - gl_FragColor = v_color; - - float d = length(v_data.xy); - if(d > 0.5) { - discard; - } - float intensity = clamp(cos(d * PI), 0.0, 1.0) * clamp(cos(2.0 * PI * (d * 2.0 * u_animate.z - u_animate.y * u_time)), 0.0, 1.0); - - // \u6839\u636E\u53E0\u52A0\u6A21\u5F0F\u9009\u62E9\u6548\u679C - if(u_additive > 0.0) { - gl_FragColor *= intensity; - // \u4F18\u5316\u6C34\u6CE2\u70B9 blend additive \u6A21\u5F0F\u4E0B\u6709\u7684\u62FE\u53D6\u6548\u679C - gl_FragColor = filterColorAlpha(gl_FragColor, gl_FragColor.a); - } else { - gl_FragColor = vec4(gl_FragColor.xyz, gl_FragColor.a * intensity); - gl_FragColor = filterColor(gl_FragColor); - } -} -`,CR=` -layout(std140) uniform commonUniforms { - vec3 u_blur_height_fixed; - float u_stroke_width; - float u_additive; - float u_stroke_opacity; - float u_size_unit; -}; - -in vec4 v_color; -in vec4 v_stroke; -in vec4 v_data; -in float v_radius; - -#pragma include "scene_uniforms" -#pragma include "sdf_2d" -#pragma include "picking" - -out vec4 outputColor; - -void main() { - int shape = int(floor(v_data.w + 0.5)); - lowp float antialiasblur = v_data.z; - float r = v_radius / (v_radius + u_stroke_width); - - float outer_df; - float inner_df; - // 'circle', 'triangle', 'square', 'pentagon', 'hexagon', 'octogon', 'hexagram', 'rhombus', 'vesica' - if (shape == 0) { - outer_df = sdCircle(v_data.xy, 1.0); - inner_df = sdCircle(v_data.xy, r); - } else if (shape == 1) { - outer_df = sdEquilateralTriangle(1.1 * v_data.xy); - inner_df = sdEquilateralTriangle(1.1 / r * v_data.xy); - } else if (shape == 2) { - outer_df = sdBox(v_data.xy, vec2(1.)); - inner_df = sdBox(v_data.xy, vec2(r)); - } else if (shape == 3) { - outer_df = sdPentagon(v_data.xy, 0.8); - inner_df = sdPentagon(v_data.xy, r * 0.8); - } else if (shape == 4) { - outer_df = sdHexagon(v_data.xy, 0.8); - inner_df = sdHexagon(v_data.xy, r * 0.8); - } else if (shape == 5) { - outer_df = sdOctogon(v_data.xy, 1.0); - inner_df = sdOctogon(v_data.xy, r); - } else if (shape == 6) { - outer_df = sdHexagram(v_data.xy, 0.52); - inner_df = sdHexagram(v_data.xy, r * 0.52); - } else if (shape == 7) { - outer_df = sdRhombus(v_data.xy, vec2(1.0)); - inner_df = sdRhombus(v_data.xy, vec2(r)); - } else if (shape == 8) { - outer_df = sdVesica(v_data.xy, 1.1, 0.8); - inner_df = sdVesica(v_data.xy, r * 1.1, r * 0.8); - } - - float opacity_t = smoothstep(0.0, antialiasblur, outer_df); - - float color_t = u_stroke_width < 0.01 ? 0.0 : smoothstep( - antialiasblur, - 0.0, - inner_df - ); - - if(u_stroke_width < 0.01) { - outputColor = v_color; - } else { - outputColor = mix(v_color, v_stroke * u_stroke_opacity, color_t); - } - - if(u_additive > 0.0) { - outputColor *= opacity_t; - outputColor = filterColorAlpha(outputColor, outputColor.a); - } else { - outputColor.a *= opacity_t; - outputColor = filterColor(outputColor); - } - // \u4F5C\u4E3A mask \u6A21\u677F\u65F6\u9700\u8981\u4E22\u5F03\u900F\u660E\u7684\u50CF\u7D20 - if(outputColor.a < 0.01) { - discard; - } -} -`,K0=`layout(location = 0) in vec3 a_Position; -layout(location = 1) in vec4 a_Color; -layout(location = 9) in float a_Size; -layout(location = 11) in vec3 a_Extrude; -layout(location = 10) in float a_Shape; - -layout(std140) uniform commonUniforms { - vec3 u_blur_height_fixed; - float u_stroke_width; - float u_additive; - float u_stroke_opacity; - float u_size_unit; -}; - -out vec4 v_color; -out vec4 v_stroke; -out vec4 v_data; -out float v_radius; - -#pragma include "projection" -#pragma include "picking" -#pragma include "rotation_2d" - -void main() { - // \u900F\u660E\u5EA6\u8BA1\u7B97 - v_stroke = stroke; - vec3 extrude = a_Extrude; - float shape_type = a_Shape; - /* - * setPickingSize \u8BBE\u7F6E\u62FE\u53D6\u5927\u5C0F - * u_meter2coord \u5728\u7B49\u9762\u79EF\u5927\u5C0F\u7684\u65F6\u5019\u8BBE\u7F6E\u5355\u4F4D - */ - float newSize = setPickingSize(a_Size); - // float newSize = setPickingSize(a_Size) * 0.00001038445708445579; - - - - // unpack color(vec2) - v_color = vec4(a_Color.xyz, a_Color.w * opacity); - - if(u_size_unit == 1.0) { - newSize = newSize * u_PixelsPerMeter.z; - } - - v_radius = newSize; - - // anti-alias - // float antialiased_blur = -max(u_blur, antialiasblur); - float antialiasblur = -max(2.0 / u_DevicePixelRatio / newSize, u_blur_height_fixed.x); - - vec2 offset = (extrude.xy * (newSize + u_stroke_width) + u_offsets); - vec3 aPosition = a_Position; - - offset = project_pixel(offset); - offset = rotate_matrix(offset,rotation); - - // TODP: /abs(extrude.x) \u662F\u4E3A\u4E86\u517C\u5BB9\u5730\u7403\u6A21\u5F0F - v_data = vec4(extrude.x/abs(extrude.x), extrude.y/abs(extrude.y), antialiasblur,shape_type); - - - // vec4 project_pos = project_position(vec4(a_Position.xy, 0.0, 1.0)); - vec4 project_pos = project_position(vec4(aPosition.xy, 0.0, 1.0)); - // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, project_pixel(setPickingOrder(0.0)), 1.0)); - - float raisingHeight = u_blur_height_fixed.y; - - if(u_blur_height_fixed.z < 1.0) { // false - raisingHeight = project_pixel(u_blur_height_fixed.y); - } else { - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - raisingHeight = u_blur_height_fixed.y * mapboxZoomScale; - } - } - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy + offset, raisingHeight, 1.0)); - - setPickingColor(a_PickingColor); -} -`,Z1=function(e){(0,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; - -#pragma include "sdf_2d" -#pragma include "picking" -varying vec2 v_uv; // \u672C\u8EAB\u7684 uv \u5750\u6807 -varying vec2 v_Iconuv; -varying float v_opacity; - -void main() { - - vec2 pos = v_Iconuv / u_textSize + v_uv / u_textSize * 64.; - gl_FragColor = texture2D(u_texture, pos); - gl_FragColor.a *= v_opacity; - - gl_FragColor = filterColor(gl_FragColor); -} -`,PR=`attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec3 a_Extrude; -attribute float a_Size; -attribute vec2 a_Uv; - -uniform mat4 u_ModelMatrix; - -uniform mat2 u_RotateMatrix; -uniform int u_size_unit; - -varying vec2 v_uv; // \u672C\u8EAB\u7684 uv \u5750\u6807 -varying vec2 v_Iconuv; // icon \u8D34\u56FE\u7684 uv \u5750\u6807 - -uniform float u_raisingHeight: 0.0; -uniform float u_heightfixed: 0.0; -varying float v_opacity; -// uniform vec2 u_offsets; // shader \u6CE8\u5165 - - -#pragma include "projection" -#pragma include "picking" -#pragma include "rotation_2d" - -void main() { - vec3 extrude = a_Extrude; - v_uv = (a_Extrude.xy + 1.0)/2.0; - v_uv.y = 1.0 - v_uv.y; - v_Iconuv = a_Uv; - v_opacity = opacity; - float newSize = a_Size; - if(u_size_unit == 1) { - newSize = newSize * u_PixelsPerMeter.z; - } - - // vec2 offset = (u_RotateMatrix * extrude.xy * (a_Size) + textrueOffsets); - vec2 offset = (extrude.xy * (newSize) + offsets); - - offset = rotate_matrix(offset,rotation); - - vec3 aPosition = a_Position; - - offset = project_pixel(offset); - - vec4 project_pos = project_position(vec4(aPosition.xy, 0.0, 1.0)); - float raisingHeight = u_raisingHeight; - if(u_heightfixed < 1.0) { // height fixed - raisingHeight = project_pixel(u_raisingHeight); - } else { - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - raisingHeight = u_raisingHeight * mapboxZoomScale; - } - } - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy + offset, 0.0, 1.0)); - - setPickingColor(a_PickingColor); -} -`,OR=function(e){(0,Le.Z)(t,e);var r=RR(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s= 0.5) { - float luma = 0.299 * textureColor.r + 0.587 * textureColor.g + 0.114 * textureColor.b; - textureColor.a *= luma; - } - - - - if(all(lessThan(v_color, vec4(1.0+0.00001))) && all(greaterThan(v_color, vec4(1.0-0.00001))) || v_color==vec4(1.0)){ - gl_FragColor= textureColor; - }else { - gl_FragColor= step(0.01, textureColor.z) * v_color; - } - gl_FragColor.a *= v_opacity; - if (gl_FragColor.a < 0.01) { - discard; - } - gl_FragColor = filterColor(gl_FragColor); -} -`,BR=`precision highp float; -attribute vec3 a_Position; -attribute vec4 a_Color; -attribute vec2 a_Uv; -attribute float a_Size; -varying vec4 v_color; -varying vec2 v_uv; -varying float v_opacity; -uniform mat4 u_ModelMatrix; - - -uniform float u_raisingHeight: 0.0; -uniform float u_heightfixed: 0.0; - -#pragma include "projection" -#pragma include "picking" - -void main() { - - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - v_color = a_Color; - v_opacity = opacity; - v_uv = a_Uv; - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - - vec2 offset = project_pixel(offsets); - - float raisingHeight = u_raisingHeight; - if(u_heightfixed < 1.0) { // false - raisingHeight = project_pixel(u_raisingHeight); - } else { - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - raisingHeight = u_raisingHeight * mapboxZoomScale; - } - } - - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy + offset, raisingHeight, 1.0)); - - gl_PointSize = a_Size * 2.0 * u_DevicePixelRatio; - setPickingColor(a_PickingColor); -} -`,V1=function(e){(0,Le.Z)(t,e);var r=DR(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s 0.0) { - gl_FragColor *= opacity_t; - } else { - gl_FragColor.a *= opacity_t; - } - - if(gl_FragColor.a > 0.0) { - gl_FragColor = filterColor(gl_FragColor); - } - - vec2 extrude = v_exteude; - vec2 dir = normalize(extrude); - vec2 baseDir = vec2(1.0, 0.0); - float pi = 3.14159265359; - float flag = sign(dir.y); - float rades = dot(dir, baseDir); - float radar_v = (flag - 1.0) * -0.5 * acos(rades)/pi; - // simple AA - if(radar_v > 0.99) { - radar_v = 1.0 - (radar_v - 0.99)/0.01; - } - - gl_FragColor.a *= radar_v; -} -`,HR=`attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec3 a_Extrude; -attribute float a_Size; -uniform float u_speed: 1.0; -uniform float u_time; - -uniform mat4 u_ModelMatrix; - -uniform int u_size_unit; - -varying vec4 v_data; -varying vec4 v_color; -varying float v_radius; -varying vec2 v_exteude; - -#pragma include "projection" -#pragma include "picking" - -void main() { - vec3 extrude = a_Extrude; - float newSize = setPickingSize(a_Size); - - float time = u_time * u_speed; - mat2 rotateMatrix = mat2( - cos(time), sin(time), - -sin(time), cos(time) - ); - v_exteude = rotateMatrix * a_Extrude.xy; - - // unpack color(vec2) - v_color = a_Color; - - // anti-alias - float blur = 0.0; - float antialiasblur = -max(2.0 / u_DevicePixelRatio / a_Size, blur); - - if(u_size_unit == 1) { - newSize = newSize * u_PixelsPerMeter.z; - } - // radius(16-bit) - v_radius = newSize; - - vec2 offset = (extrude.xy * (newSize)); - vec3 aPosition = a_Position; - - // \u4E0D\u4EE5\u7C73\u4E3A\u5B9E\u9645\u5355\u4F4D - offset = project_pixel(offset); - - v_data = vec4(extrude.x, extrude.y, antialiasblur, -1.0); - - vec4 project_pos = project_position(vec4(aPosition.xy, 0.0, 1.0)); - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy + offset, project_pixel(setPickingOrder(0.0)), 1.0)); - - setPickingColor(a_PickingColor); -} -`,WR=function(e){(0,Le.Z)(t,e);var r=ZR(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.blend,f=i.speed,v=f===void 0?1:f,y=i.unit,b=y===void 0?"pixel":y;return{u_size_unit:Y0[b],u_speed:v,u_additive:l==="additive"?1:0,u_opacity:s}}},{key:"getAnimateUniforms",value:function(){var i=this.layer.getLayerConfig(),o=i.animateOption,s=o===void 0?{enable:!1}:o;return{u_animate:this.animateOption2Array(s),u_time:this.layer.getLayerAnimateTime()}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),Eg)}},{key:"initModels",value:function(){var n=(0,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:"pointRadar",vertexShader:HR,fragmentShader:jR,triangulation:Eg,depth:{enable:!1}});case 2:return s=f.sent,f.abrupt("return",[s]);case 4:case"end":return f.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"animateOption2Array",value:function(i){return[i.enable?0:1,i.speed||1,i.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"extrude",type:dn.Attribute,descriptor:{name:"a_Extrude",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(o,s,l,f){var v=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],y=f%4*3;return[v[y],v[y+1],v[y+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type: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?5:s;return Array.isArray(l)?[l[0]]:[l]}}})}}]),t}(Ma);function GR(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=XR(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(v){throw v},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var v=t.next();return o=v.done,v},e:function(v){s=!0,l=v},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function XR(e,r){if(e){if(typeof e=="string")return W1(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return W1(e,r)}}function W1(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);tthis.width||o<0||n>this.height)return s?!1:[];var f=[];if(t<=0&&n<=0&&this.width<=i&&this.height<=o){if(s)return!0;for(var v=0;v0:f}},{key:"queryCell",value:function(t,n,i,o,s,l,f,v){var y=f.seenUids,b=this.boxCells[s];if(b!==null){var T=this.bboxes,M=GR(b),O;try{for(M.s();!(O=M.n()).done;){var 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)){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);t 0.0) { // \u5224\u65AD\u51E0\u4F55\u4F53\u662F\u5426\u56FA\u5B9A\u9AD8\u5EA6 - project_pos.z = a_Position.z * a_Size; - project_pos.z += u_raisingHeight; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - project_pos.z *= mapboxZoomScale; - project_pos.z += u_raisingHeight * mapboxZoomScale; - } - } - - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); - - // Tip: \u90E8\u5206\u673A\u578B GPU \u8BA1\u7B97\u7CBE\u5EA6\u517C\u5BB9 - if(isSide < 0.999) { - // side face - // if(u_sidesurface < 1.0) { - // discard; - // } - - if(u_linearColor == 1.0) { - vec4 linearColor = mix(u_targetColor, u_sourceColor, sidey); - linearColor.rgb *= lightWeight; - v_Color = linearColor; - } else { - v_Color = a_Color; - } - - } else { - v_Color = a_Color; - } - - v_Color = vec4(v_Color.rgb * lightWeight, v_Color.w * opacity); - - - setPickingColor(a_PickingColor); -} -`,mM=`uniform sampler2D u_texture; -uniform float u_opacity: 1.0; -uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; -uniform float u_linearColor: 0; - -uniform float u_topsurface: 1.0; -uniform float u_sidesurface: 1.0; - -varying vec4 v_Color; -varying vec3 v_uvs; -varying vec2 v_texture_data; - - -#pragma include "picking" - -void main() { - float opacity = u_opacity; - float isSide = v_texture_data.x; - float lightWeight = v_texture_data.y; - float topU = v_uvs[0]; - float topV = 1.0 - v_uvs[1]; - float sidey = v_uvs[2]; - // Tip: \u90E8\u5206\u673A\u578B GPU \u8BA1\u7B97\u7CBE\u5EA6\u517C\u5BB9 - if(isSide < 0.999) {// \u662F\u5426\u662F\u8FB9\u7F18 - // side face - if(u_sidesurface < 1.0) { - discard; - } - - if(u_linearColor == 1.0) { - vec4 linearColor = mix(u_targetColor, u_sourceColor, sidey); - linearColor.rgb *= lightWeight; - gl_FragColor = linearColor; - } else { - gl_FragColor = v_Color; - } - } else { - - // top face - if(u_topsurface < 1.0) { - discard; - } - - gl_FragColor = texture2D(u_texture, vec2(topU, topV)); - // gl_FragColor = vec4(1.0, 0., 0., 1.0); - } - - - gl_FragColor.a *= opacity; - gl_FragColor = filterColor(gl_FragColor); -} -`,gM=`precision highp float; - -#define ambientRatio 0.5 -#define diffuseRatio 0.3 -#define specularRatio 0.2 - -attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec3 a_Normal; -attribute float a_Size; -attribute vec3 a_uvs; -uniform mat4 u_ModelMatrix; - -uniform sampler2D u_texture; - - -uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; -uniform float u_topsurface: 1.0; -uniform float u_sidesurface: 1.0; -varying vec4 v_Color; -uniform float u_heightfixed: 0.0; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A -uniform float u_raisingHeight: 0.0; -uniform float u_linearColor: 0.0; - -varying vec2 v_texture_data; -varying vec3 v_uvs; - -#pragma include "projection" -#pragma include "light" -#pragma include "picking" - -void main() { - - vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0); - float lightWeight = calc_lighting(pos); - vec4 project_pos = project_position(pos); - v_uvs = a_uvs; - - v_texture_data = vec2(a_Position.z, lightWeight); - - if(u_heightfixed > 0.0) { // \u5224\u65AD\u51E0\u4F55\u4F53\u662F\u5426\u56FA\u5B9A\u9AD8\u5EA6 - project_pos.z = a_Position.z * a_Size; - project_pos.z += u_raisingHeight; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - project_pos.z *= mapboxZoomScale; - project_pos.z += u_raisingHeight * mapboxZoomScale; - } - } - - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); - - - - setPickingColor(a_PickingColor); -} -`,_M=`uniform float u_opacity: 1.0; -uniform vec4 u_sourceColor; -uniform vec4 u_targetColor; -uniform float u_linearColor: 0; - -uniform float u_topsurface: 1.0; -uniform float u_sidesurface: 1.0; - -varying vec4 v_Color; -varying vec3 v_uvs; -varying vec2 v_texture_data; - -#pragma include "picking" - -void main() { - float opacity = u_opacity; - float isSide = v_texture_data.x; - float sidey = v_uvs[2]; - float lightWeight = v_texture_data.y; - - // Tip: \u90E8\u5206\u673A\u578B GPU \u8BA1\u7B97\u7CBE\u5EA6\u517C\u5BB9 - if(isSide < 0.999) { - // side face - if(u_sidesurface < 1.0) { - discard; - } - - if( u_linearColor == 1.0) { - // side use linear - vec4 linearColor = mix(u_targetColor, u_sourceColor, sidey); - linearColor.rgb *= lightWeight; - gl_FragColor = linearColor; - } else { - // side notuse linear - gl_FragColor = v_Color; - } - } else { - // top face - if(u_topsurface < 1.0) { - discard; - } - gl_FragColor = v_Color; - } - - gl_FragColor.a *= opacity; - gl_FragColor = filterColorAlpha(gl_FragColor, lightWeight); -} -`,yM=`precision highp float; - -#define ambientRatio 0.5 -#define diffuseRatio 0.3 -#define specularRatio 0.2 - -attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec3 a_Normal; -attribute float a_Size; -attribute vec3 a_uvs; -uniform mat4 u_ModelMatrix; - - -uniform float u_heightfixed: 0.0; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A -uniform float u_raisingHeight: 0.0; - -varying vec2 v_texture_data; -varying vec3 v_uvs; -varying vec4 v_Color; - - -#pragma include "projection" -#pragma include "light" -#pragma include "picking" - -void main() { - - - v_uvs = a_uvs; - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0); - vec4 project_pos = project_position(pos); - - if(u_heightfixed > 0.0) { // \u5224\u65AD\u51E0\u4F55\u4F53\u662F\u5426\u56FA\u5B9A\u9AD8\u5EA6 - project_pos.z = a_Position.z * a_Size; - project_pos.z += u_raisingHeight; - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - project_pos.z *= mapboxZoomScale; - project_pos.z += u_raisingHeight * mapboxZoomScale; - } - } - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); - float lightWeight = calc_lighting(pos); - v_texture_data = vec2(a_Position.z,lightWeight); - - v_Color = vec4(a_Color.rgb * lightWeight, a_Color.w); - - setPickingColor(a_PickingColor); -} -`,xM=function(e){(0,Le.Z)(t,e);var r=hM(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.heightfixed,s=o===void 0?!1:o,l=i.raisingHeight,f=l===void 0?0:l,v=i.topsurface,y=v===void 0?!0:v,b=i.sidesurface,T=b===void 0?!0:b,M=i.sourceColor,O=i.targetColor,F=0,$=[1,1,1,1],G=[1,1,1,1];return M&&O&&($=fi(M),G=fi(O),F=1),(0,V.Z)({u_topsurface:Number(y),u_sidesurface:Number(T),u_heightfixed:Number(s),u_raisingHeight:Number(f),u_linearColor:F,u_sourceColor:$,u_targetColor:G,u_texture:this.texture},this.getStyleAttribute())}},{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.next=2,this.loadTexture();case 2:return l.abrupt("return",this.buildModels());case 3:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){var s,l,f,v,y;return ge().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return s=this.getShaders(),l=s.frag,f=s.vert,v=s.type,T.next=3,this.layer.buildLayerModel({moduleName:v,vertexShader:f,fragmentShader:l,inject:this.getInject(),triangulation:$0});case 3:return y=T.sent,T.abrupt("return",[y]);case 5:case"end":return T.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getShaders",value:function(){var i=this.layer.getLayerConfig(),o=i.pickLight,s=i.mapTexture;return s?{frag:mM,vert:gM,type:"polygonExtrudeTexture"}:o?{frag:_M,vert:yM,type:"polygonExtrudePickLight"}:{frag:dM,vert:vM,type:"polygonExtrude"}}},{key:"clearModels",value:function(){var i;(i=this.texture)===null||i===void 0||i.destroy()}},{key:"registerBuiltinAttributes",value:function(){var i=this.layer.getSource().extent,o=i,s=this.layer.coordCenter||this.layer.getSource().center,l=o[2]-o[0],f=o[3]-o[1];if(this.mapService.version==="GAODE2.x"){var v=this.mapService.coordToAMap2RelativeCoordinates([i[0],i[1]],s),y=(0,Sn.Z)(v,2),b=y[0],T=y[1],M=this.mapService.coordToAMap2RelativeCoordinates([i[2],i[3]],s),O=(0,Sn.Z)(M,2),F=O[0],$=O[1];l=F-b,f=$-T,o=[b,T,F,$]}this.styleAttributeService.registerStyleAttribute({name:"uvs",type:dn.Attribute,descriptor:{name:"a_uvs",buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(ue,xe,ze){var Je=ze[0],ht=ze[1];return[(Je-o[0])/l,(ht-o[1])/f,ze[4]]}}}),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(ue,xe,ze,Je,ht){return ht}}}),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(ue){var xe=ue.size,ze=xe===void 0?10:xe;return Array.isArray(ze)?[ze[0]]:[ze]}}})}},{key:"loadTexture",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){var s=this,l,f,v;return ge().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(l=this.layer.getLayerConfig(),f=l.mapTexture,v=this.rendererService.createTexture2D,this.texture=v({height:0,width:0}),!f){b.next=5;break}return b.abrupt("return",new Promise(function(T,M){var O=new Image;O.crossOrigin="anonymous",O.src=f,O.onload=function(){return s.texture=v({data:O,width:O.width,height:O.height,wrapS:R.CLAMP_TO_EDGE,wrapT:R.CLAMP_TO_EDGE,min:R.LINEAR,mag:R.LINEAR}),T(null)},O.onerror=function(){M(new Error("image load error"))}}));case 5:case"end":return b.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()}]),t}(Ma);function bM(e){var r=EM();return function(){var n=(0,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 EM(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var SM=` -uniform float u_opacity: 1.0; -varying vec4 v_Color; -varying vec2 v_texture_data; - - -#pragma include "picking" - -void main() { - - gl_FragColor = v_Color; - gl_FragColor = filterColor(gl_FragColor); -} -`,AM=`precision highp float; - -#define ambientRatio 0.5 -#define diffuseRatio 0.3 -#define specularRatio 0.2 - -attribute vec4 a_Color; -attribute vec3 a_Position; -attribute vec3 a_Normal; -attribute float a_Size; -uniform mat4 u_ModelMatrix; - - - - -varying vec4 v_Color; - -#pragma include "projection" -#pragma include "light" -#pragma include "picking" - -void main() { - - vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size + (1.0 - a_Position.z) * extrusionBase, 1.0); - float lightWeight = calc_lighting(pos); - vec4 project_pos = project_position(pos); - v_Color = a_Color; - v_Color = vec4(v_Color.rgb * lightWeight, v_Color.w * opacity); - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); - - setPickingColor(a_PickingColor); -} -`,TM=function(e){(0,Le.Z)(t,e);var r=bM(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"getUninforms",value:function(){return(0,V.Z)({},this.getStyleAttribute())}},{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;return ge().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return s=this.getShaders(),l=s.frag,f=s.vert,v=s.type,T.next=3,this.layer.buildLayerModel({moduleName:v,vertexShader:f,fragmentShader:l,inject:this.getInject(),triangulation:$0});case 3:return y=T.sent,T.abrupt("return",[y]);case 5:case"end":return T.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getShaders",value:function(){return{frag:SM,vert:AM,type:"polygonExtrude"}}},{key:"clearModels",value:function(){var i;(i=this.texture)===null||i===void 0||i.destroy()}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"normal",type: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:"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?10:s;return Array.isArray(l)?[l[0]]:[l]}}})}}]),t}(Ma);function wM(e){var r=CM();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 CM(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var RM=`varying vec4 v_color; -#pragma include "picking" - -void main() { - gl_FragColor = v_color; - gl_FragColor = filterColor(gl_FragColor); -} -`,MM=`#pragma include "picking" -uniform float u_opacitylinear: 0.0; -uniform float u_dir: 1.0; -varying vec3 v_linear; -varying vec2 v_pos; -varying vec4 v_Color; - - -void main() { - gl_FragColor = v_Color; - if(u_opacitylinear > 0.0) { - gl_FragColor.a *= u_dir == 1.0 ? 1.0 - length(v_pos - v_linear.xy)/v_linear.z : length(v_pos - v_linear.xy)/v_linear.z; - } - gl_FragColor = filterColor(gl_FragColor); -} -`,IM=`attribute vec4 a_Color; -attribute vec3 a_Position; - -uniform mat4 u_ModelMatrix; - -uniform float u_raisingHeight: 0.0; - -varying vec4 v_Color; - - -#pragma include "projection" -#pragma include "picking" - -uniform float u_opacitylinear: 0.0; - -attribute vec3 a_linear; -varying vec3 v_linear; -varying vec2 v_pos; - -void main() { - if(u_opacitylinear > 0.0) { - v_linear = a_linear; - v_pos = a_Position.xy; - } - v_Color = vec4(a_Color.xyz, a_Color.w * opacity); - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - project_pos.z += u_raisingHeight; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - project_pos.z *= mapboxZoomScale; - project_pos.z += u_raisingHeight * mapboxZoomScale; - } - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); - setPickingColor(a_PickingColor); -}`,PM=`attribute vec4 a_Color; -attribute vec3 a_Position; - -uniform mat4 u_ModelMatrix; - - -uniform float u_raisingHeight: 0.0; - -varying vec4 v_color; - - -#pragma include "projection" -#pragma include "picking" - -void main() { - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 - - v_color = vec4(a_Color.xyz, a_Color.w * opacity); - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); - - project_pos.z += u_raisingHeight; - - if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { - float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); - project_pos.z *= mapboxZoomScale; - project_pos.z += u_raisingHeight * mapboxZoomScale; - } - - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); - - setPickingColor(a_PickingColor); -} - -`,OM=function(e){(0,Le.Z)(t,e);var r=wM(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.raisingHeight,s=o===void 0?0:o,l=i.opacityLinear,f=l===void 0?{enable:!1,dir:"in"}:l;return(0,V.Z)({u_raisingHeight:Number(s),u_opacitylinear:Number(f.enable),u_dir:f.dir==="in"?1:0},this.getStyleAttribute())}},{key:"initModels",value:function(){var n=(0,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.getModelParams(),l=s.frag,f=s.vert,v=s.triangulation,y=s.type,this.layer.triangulation=v,M.next=4,this.layer.buildLayerModel({moduleName:y,vertexShader:f,fragmentShader:l,inject:this.getInject(),triangulation:v,primitive:R.TRIANGLES,depth:{enable:!1}});case 4:return b=M.sent,M.abrupt("return",[b]);case 6:case"end":return M.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){var i=this.layer.getLayerConfig(),o=i.opacityLinear,s=o===void 0?{enable:!1,dir:"in"}:o;s.enable&&this.styleAttributeService.registerStyleAttribute({name:"linear",type:dn.Attribute,descriptor:{name:"a_linear",buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:3,update:function(f,v,y){return[y[3],y[4],y[5]]}}})}},{key:"getModelParams",value:function(){var i=this.layer.getLayerConfig(),o=i.opacityLinear,s=o===void 0?{enable:!1}:o;return s.enable?{frag:MM,vert:IM,type:"polygonLinear",triangulation:zw}:{frag:RM,vert:PM,type:"polygonFill",triangulation:Id}}}]),t}(Ma);function DM(e){var r=FM();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 FM(){if(typeof Reflect=="undefined"||!Reflect.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 kM=` -uniform float u_time: 0.0; -uniform float u_opacity: 1.0; - -varying vec2 v_uv; - -float coast2water_fadedepth = 0.10; -float large_waveheight = .750; // change to adjust the "heavy" waves -float large_wavesize = 3.4; // factor to adjust the large wave size -float small_waveheight = 0.6; // change to adjust the small random waves -float small_wavesize = 0.5; // factor to ajust the small wave size -float water_softlight_fact = 15.; // range [1..200] (should be << smaller than glossy-fact) -float water_glossylight_fact= 120.; // range [1..200] -float particle_amount = 70.; -// vec3 watercolor = vec3(0.43, 0.60, 0.66); // 'transparent' low-water color (RGB) -// vec3 watercolor2 = vec3(0.06, 0.07, 0.11); // deep-water color (RGB, should be darker than the low-water color) -uniform vec4 u_watercolor; -uniform vec4 u_watercolor2; -vec3 water_specularcolor = vec3(1.3, 1.3, 0.9); // specular Color (RGB) of the water-highlights -#define light vec3(-0., sin(u_time*0.5)*.5 + .35, 2.8) // position of the sun - -uniform sampler2D u_texture1; -uniform sampler2D u_texture2; -uniform sampler2D u_texture3; - - - -float hash( float n ) { - return fract(sin(n)*43758.5453123); -} - -// 2d noise function -float noise1( in vec2 x ) { - vec2 p = floor(x); - vec2 f = smoothstep(0.0, 1.0, fract(x)); - float n = p.x + p.y*57.0; - return mix(mix( hash(n+ 0.0), hash(n+ 1.0),f.x), - mix( hash(n+ 57.0), hash(n+ 58.0),f.x),f.y); -} - -float noise(vec2 p) { - return texture2D(u_texture2,p*vec2(1./256.)).x; -} - -vec4 highness(vec2 p) { - vec4 t = texture2D(u_texture1,fract(p)); - float clipped = -2.0-smoothstep(3.,10.,t.a)*6.9-smoothstep(10.,100.,t.a)*89.9-smoothstep(0.,10000.,t.a)*10000.0; - return clamp(t, 0.0,3.0)+clamp(t/3.0-1.0, 0.0,1.0)+clamp(t/16.0-1.0, 0.0,1.0); -} - -float height_map( vec2 p ) { - vec4 height=highness(p); - /* - height = -0.5+ - 0.5*smoothstep(-100.,0.,-height)+ - 2.75*smoothstep(0.,2.,height)+ - 1.75*smoothstep(2.,4.,height)+ - 2.75*smoothstep(4.,16.,height)+ - 1.5*smoothstep(16.,1000.,height); - */ - - mat2 m = mat2( 0.9563*1.4, -0.2924*1.4, 0.2924*1.4, 0.9563*1.4 ); - //p = p*6.; - float f = 0.6000*noise1( p ); p = m*p*1.1*6.; - f += 0.2500*noise( p ); p = m*p*1.32; - f += 0.1666*noise( p ); p = m*p*1.11; - f += 0.0834*noise( p ); p = m*p*1.12; - f += 0.0634*noise( p ); p = m*p*1.13; - f += 0.0444*noise( p ); p = m*p*1.14; - f += 0.0274*noise( p ); p = m*p*1.15; - f += 0.0134*noise( p ); p = m*p*1.16; - f += 0.0104*noise( p ); p = m*p*1.17; - f += 0.0084*noise( p ); - f = .25*f+dot(height,vec4(-.03125,-.125,.25,.25))*.5; - const float FLAT_LEVEL = 0.92525; - //f = f*0.25+height*0.75; - if (f level) - { - col = CalcTerrain(uv, height); - } - if (height <= level) - { - vec2 dif = vec2(.0, .01); - vec2 pos = uv*15. + vec2(u_time*.01); - float h1 = water_map(pos-dif,waveheight); - float h2 = water_map(pos+dif,waveheight); - float h3 = water_map(pos-dif.yx,waveheight); - float h4 = water_map(pos+dif.yx,waveheight); - vec3 normwater = normalize(vec3(h3-h4, h1-h2, .125)); // norm-vector of the 'bumpy' water-plane - uv += normwater.xy*.002*(level-height); - - col = CalcTerrain(uv, height); - - float coastfade = clamp((level-height)/coast2water_fadedepth, 0., 1.); - float coastfade2= clamp((level-height)/deepwater_fadedepth, 0., 1.); - float intensity = col.r*.2126+col.g*.7152+col.b*.0722; - watercolor = mix(watercolor*intensity, watercolor2, smoothstep(0., 1., coastfade2)); - - vec3 r0 = vec3(uv, WATER_LEVEL); - vec3 rd = normalize( light - r0 ); // ray-direction to the light from water-position - float grad = dot(normwater, rd); // dot-product of norm-vector and light-direction - float specular = pow(grad, water_softlight_fact); // used for soft highlights - float specular2= pow(grad, water_glossylight_fact); // used for glossy highlights - float gradpos = dot(vec3(0., 0., 1.), rd); - float specular1= smoothstep(0., 1., pow(gradpos, 5.)); // used for diffusity (some darker corona around light's specular reflections...) - float watershade = test_shadow( uv, level ); - watercolor *= 2.2+watershade; - watercolor += (.2+.8*watershade) * ((grad-1.0)*.5+specular) * .25; - watercolor /= (1.+specular1*1.25); - watercolor += watershade*specular2*water_specularcolor; - watercolor += watershade*coastfade*(1.-coastfade2)*(vec3(.5, .6, .7)*nautic(uv)+vec3(1., 1., 1.)*particles(uv)); - - col = mix(col, watercolor, coastfade); - } - - - float opacity = u_opacity; - gl_FragColor = vec4(col, opacity); -} -`,BM=`attribute vec2 a_uv; -attribute vec3 a_Position; -uniform mat4 u_ModelMatrix; - - -varying vec2 v_uv; - -#pragma include "projection" - -void main() { - v_uv = a_uv; - - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); -} - -`,LM=oi.isNumber,NM=function(e){(0,Le.Z)(t,e);var r=DM(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.watercolor,f=l===void 0?"#6D99A8":l,v=i.watercolor2,y=v===void 0?"#0F121C":v;return{u_texture1:this.texture1,u_texture2:this.texture2,u_texture3:this.texture3,u_watercolor:fi(f),u_watercolor2:fi(y),u_opacity:LM(s)?s:1}}},{key:"getAnimateUniforms",value:function(){return{u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){return ge().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.loadTexture(),l.abrupt("return",this.buildModels());case 2:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,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:"polygonOcean",vertexShader:BM,fragmentShader:kM,triangulation:X0,primitive:R.TRIANGLES,depth:{enable:!1}});case 2:return s=f.sent,f.abrupt("return",[s]);case 4:case"end":return f.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"clearModels",value:function(){var i,o,s;(i=this.texture1)===null||i===void 0||i.destroy(),(o=this.texture2)===null||o===void 0||o.destroy(),(s=this.texture3)===null||s===void 0||s.destroy()}},{key:"registerBuiltinAttributes",value:function(){var i=this.layer.getSource().extent,o=(0,Sn.Z)(i,4),s=o[0],l=o[1],f=o[2],v=o[3],y=f-s,b=v-l;this.styleAttributeService.registerStyleAttribute({name:"oceanUv",type:dn.Attribute,descriptor:{name:"a_uv",buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:2,update:function(M,O,F,$){var G=M.version==="GAODE2.x"?M.originCoordinates[0][$]:F,ue=(0,Sn.Z)(G,2),xe=ue[0],ze=ue[1];return[(xe-s)/y,(ze-l)/b]}}})}},{key:"loadTexture",value:function(){var i=this,o=this.rendererService.createTexture2D,s={height:0,width:0};this.texture1=o(s),this.texture2=o(s),this.texture3=o(s),l(function(v){i.texture1=f(v[0]),i.texture2=f(v[1]),i.texture3=f(v[2]),i.layerService.reRender()});function l(v){var y=0,b=[],T=["https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ","https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*MJ22QbpuCzIAAAAAAAAAAAAAARQnAQ","https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*-z2HSIVDsHIAAAAAAAAAAAAAARQnAQ"];T.map(function(M){var O=new Image;O.crossOrigin="",O.src=M,b.push(O),O.onload=function(){y++,y===3&&v(b)}})}function f(v){return o({data:v,width:v.width,height:v.height,wrapS:R.MIRRORED_REPEAT,wrapT:R.MIRRORED_REPEAT,min:R.LINEAR,mag:R.LINEAR})}}}]),t}(Ma);function UM(e){var r=zM();return function(){var n=(0,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 zM(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var ZM=`uniform sampler2D u_texture; -uniform float u_time: 0.0; -uniform float u_speed: 1.0; -uniform float u_opacity: 1.0; - -varying vec4 v_Color; -varying vec2 v_uv; - -float rand(vec2 n) { return 0.5 + 0.5 * fract(sin(dot(n.xy, vec2(12.9898, 78.233)))* 43758.5453); } - -float water(vec3 p) { - float t = u_time * u_speed; - p.z += t * 2.; p.x += t * 2.; - vec3 c1 = texture2D(u_texture, p.xz / 30.).xyz; - p.z += t * 3.; p.x += t * 0.52; - vec3 c2 = texture2D(u_texture, p.xz / 30.).xyz; - p.z += t * 4.; p.x += t * 0.8; - vec3 c3 = texture2D(u_texture, p.xz / 30.).xyz; - c1 += c2 - c3; - float z = (c1.x + c1.y + c1.z) / 3.; - return p.y + z / 4.; -} - -float map(vec3 p) { - float d = 100.0; - d = water(p); - return d; -} - -float intersect(vec3 ro, vec3 rd) { - float d = 0.0; - for (int i = 0; i <= 100; i++) { - float h = map(ro + rd * d); - if (h < 0.1) return d; - d += h; - } - return 0.0; -} - -vec3 norm(vec3 p) { - float eps = .1; - return normalize(vec3( - map(p + vec3(eps, 0, 0)) - map(p + vec3(-eps, 0, 0)), - map(p + vec3(0, eps, 0)) - map(p + vec3(0, -eps, 0)), - map(p + vec3(0, 0, eps)) - map(p + vec3(0, 0, -eps)) - )); -} - -float calSpc() { - vec3 l1 = normalize(vec3(1, 1, 1)); - vec3 ro = vec3(-3, 20, -8); - vec3 rc = vec3(0, 0, 0); - vec3 ww = normalize(rc - ro); - vec3 uu = normalize(cross(vec3(0,1,0), ww)); - vec3 vv = normalize(cross(rc - ro, uu)); - vec3 rd = normalize(uu * v_uv.x + vv * v_uv.y + ww); - float d = intersect(ro, rd); - vec3 p = ro + rd * d; - vec3 n = norm(p); - float spc = pow(max(0.0, dot(reflect(l1, n), rd)), 30.0); - return spc; -} - -void main() { - float opacity = u_opacity; - gl_FragColor = v_Color; - gl_FragColor.a *= opacity; - - float spc = calSpc(); - gl_FragColor += spc * 0.4; -} -`,VM=`attribute vec4 a_Color; -attribute vec2 a_uv; -attribute vec3 a_Position; -uniform mat4 u_ModelMatrix; - - -varying vec4 v_Color; -varying vec2 v_uv; -uniform float u_opacity: 1.0; - - -#pragma include "projection" - -void main() { - v_uv = a_uv; - - v_Color = a_Color; - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); -} - -`,jM=oi.isNumber,HM=function(e){(0,Le.Z)(t,e);var r=UM(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.speed,f=l===void 0?.5:l;return{u_texture:this.texture,u_speed:f,u_opacity:jM(s)?s:1}}},{key:"getAnimateUniforms",value:function(){return{u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){return ge().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.loadTexture(),l.abrupt("return",this.buildModels());case 2:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,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:"polygonWater",vertexShader:VM,fragmentShader:ZM,triangulation:X0,primitive:R.TRIANGLES,depth:{enable:!1}});case 2:return s=f.sent,f.abrupt("return",[s]);case 4:case"end":return f.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"clearModels",value:function(){var i;(i=this.texture)===null||i===void 0||i.destroy()}},{key:"registerBuiltinAttributes",value:function(){var i=this.layer.getSource().extent,o=(0,Sn.Z)(i,4),s=o[0],l=o[1],f=o[2],v=o[3],y=f-s,b=v-l;this.styleAttributeService.registerStyleAttribute({name:"waterUv",type:dn.Attribute,descriptor:{name:"a_uv",buffer:{usage:R.STATIC_DRAW,data:[],type:R.FLOAT},size:2,update:function(M,O,F,$){var G=M.version==="GAODE2.x"?M.originCoordinates[0][$]:F,ue=(0,Sn.Z)(G,2),xe=ue[0],ze=ue[1];return[(xe-s)/y,(ze-l)/b]}}})}},{key:"loadTexture",value:function(){var i=this,o=this.layer.getLayerConfig(),s=o.waterTexture,l=this.rendererService.createTexture2D;this.texture=l({height:0,width:0});var f=new Image;f.crossOrigin="",s?(console.warn("L7 recommend\uFF1Ahttps://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ"),f.src=s):f.src="https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ",f.onload=function(){i.texture=l({data:f,width:f.width,height:f.height,wrapS:R.MIRRORED_REPEAT,wrapT:R.MIRRORED_REPEAT,min:R.LINEAR,mag:R.LINEAR}),i.layerService.reRender()}}}]),t}(Ma),WM={fill:OM,line:B1,extrude:xM,text:tx,point_fill:Z1,point_image:V1,point_normal:H1,point_extrude:U1,water:HM,ocean:NM,extrusion:TM},GM=WM;function XM(e){var r=$M();return function(){var n=(0,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 $M(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Rg=function(e){(0,Le.Z)(t,e);var r=XM(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s 0.0 || x < 0.0) ? x != x : x != 0.0; } - - -void main() { - - float value = texture2D(u_texture,vec2(v_texCoord.x,v_texCoord.y)).r; - if (value == u_noDataValue || isnan_emu(value)) - discard; - else if ((!u_clampLow && value < u_domain[0]) || (!u_clampHigh && value > u_domain[1])) - discard; - else { - float normalisedValue =(value - u_domain[0]) / (u_domain[1] -u_domain[0]); - vec4 color = texture2D(u_colorTexture,vec2(normalisedValue, 0)); - - gl_FragColor = color; - gl_FragColor.a = gl_FragColor.a * u_opacity ; - if(gl_FragColor.a < 0.01) - discard; - - } -} -`,QM=`precision highp float; -uniform mat4 u_ModelMatrix; - -attribute vec3 a_Position; -attribute vec2 a_Uv; -varying vec2 v_texCoord; -#pragma include "projection" -void main() { - v_texCoord = a_Uv; - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); -} -`,nx=function(e){(0,Le.Z)(t,e);var r=YM(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.clampLow,f=l===void 0?!0:l,v=i.clampHigh,y=v===void 0?!0:v,b=i.noDataValue,T=b===void 0?-9999999:b,M=i.domain,O=i.rampColors,F=M||Cc(O);return this.colorTexture=this.layer.textureService.getColorTexture(O,F),{u_opacity:s||1,u_texture:this.texture,u_domain:F,u_clampLow:f,u_clampHigh:typeof y!="undefined"?y:f,u_noDataValue:T,u_colorTexture:this.colorTexture}}},{key:"getRasterData",value:function(){var n=(0,Pt.Z)(ge().mark(function o(s){var l,f,v,y;return ge().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(!Array.isArray(s.data)){T.next=4;break}return T.abrupt("return",{data:s.data,width:s.width,height:s.height});case 4:return T.next=6,s.data;case 6:return l=T.sent,f=l.rasterData,v=l.width,y=l.height,T.abrupt("return",{data:Array.from(f),width:v,height:y});case 11:case"end":return T.stop()}},o)}));function i(o){return n.apply(this,arguments)}return i}()},{key:"initModels",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){var s,l,f,v,y,b,T,M;return ge().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return s=this.layer.getSource(),l=this.rendererService.createTexture2D,f=s.data.dataArray[0],F.next=5,this.getRasterData(f);case 5:return v=F.sent,y=v.data,b=v.width,T=v.height,this.texture=l({data:y,width:b,height:T,format:R.LUMINANCE,type:R.FLOAT}),F.next=12,this.layer.buildLayerModel({moduleName:"rasterImageData",vertexShader:QM,fragmentShader:KM,triangulation:Sg,primitive:R.TRIANGLES,depth:{enable:!1}});case 12:return M=F.sent,F.abrupt("return",[M]);case 14:case"end":return F.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(){return ge().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.initModels());case 1:case"end":return l.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"clearModels",value:function(){var i,o;(i=this.texture)===null||i===void 0||i.destroy(),(o=this.colorTexture)===null||o===void 0||o.destroy()}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"uv",type:dn.Attribute,descriptor:{name:"a_Uv",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:2,update:function(o,s,l){return[l[3],l[4]]}}})}}]),t}(Ma),JM=["data"],eI=["rasterData"];function tI(e){var r=rI();return function(){var n=(0,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 rI(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var nI=`precision highp float; -uniform mat4 u_ModelMatrix; - -attribute vec3 a_Position; -attribute vec2 a_Uv; -varying vec2 v_texCoord; -#pragma include "projection" -void main() { - v_texCoord = a_Uv; - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); -} -`,iI=`precision mediump float; -uniform vec2 u_rminmax: vec2(0,255); -uniform vec2 u_gminmax: vec2(0,255); -uniform vec2 u_bminmax: vec2(0,255); -uniform float u_opacity: 1.0; -uniform sampler2D u_texture; -uniform float u_noDataValue : 0.0; -varying vec2 v_texCoord; - -void main() { - vec3 rgb = texture2D(u_texture,vec2(v_texCoord.x,v_texCoord.y)).rgb; - if(rgb == vec3(u_noDataValue)) { - gl_FragColor = vec4(0.0, 0, 0, 0.0); - } else { - gl_FragColor = vec4(rgb.r / (u_rminmax.y -u_rminmax.x), rgb.g /(u_gminmax.y -u_gminmax.x), rgb.b/ (u_bminmax.y - u_bminmax.x), u_opacity); - } - if(gl_FragColor.a < 0.01) - discard; - -}`,aI=function(e){(0,Le.Z)(t,e);var r=tI(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s u_domain[1])) { - gl_FragColor = vec4(0.0, 0, 0, 0.0); - } else { - - gl_FragColor = getColor(value); - gl_FragColor.a = gl_FragColor.a * u_opacity ; - if(gl_FragColor.a < 0.01) - discard; - } -} -`,lI=`precision highp float; -uniform mat4 u_ModelMatrix; - -attribute vec3 a_Position; -attribute vec2 a_Uv; -varying vec2 v_texCoord; -#pragma include "projection" -void main() { - v_texCoord = a_Uv; - vec4 project_pos = project_position(vec4(a_Position, 1.0)); - gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); -} -`,cI=function(e){(0,Le.Z)(t,e);var r=oI(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.clampLow,l=s===void 0?!0:s,f=i.clampHigh,v=f===void 0?!0:f,y=i.noDataValue,b=y===void 0?-9999999:y,T=i.domain,M=i.rampColors,O=i.colorTexture,F=i.rScaler,$=F===void 0?6553.6:F,G=i.gScaler,ue=G===void 0?25.6:G,xe=i.bScaler,ze=xe===void 0?.1:xe,Je=i.offset,ht=Je===void 0?1e4:Je,gt=T||Cc(M),Ot=O;return O?this.layer.textureService.setColorTexture(O,M,gt):Ot=this.layer.textureService.getColorTexture(M,gt),{u_opacity:o||1,u_texture:this.texture,u_domain:gt,u_clampLow:l,u_clampHigh:typeof v!="undefined"?v:l,u_noDataValue:b,u_unpack:[$,ue,ze,ht],u_colorTexture:Ot}}},{key:"initModels",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.getSource(),l=this.rendererService.createTexture2D,b.next=4,s.data.images;case 4:return f=b.sent,this.texture=l({data:f[0],width:f[0].width,height:f[0].height,min:R.LINEAR,mag:R.LINEAR}),b.next=8,this.layer.buildLayerModel({moduleName:"RasterTileDataImage",vertexShader:lI,fragmentShader:uI,triangulation:Sg,primitive:R.TRIANGLES,depth:{enable:!1}});case 8:return v=b.sent,b.abrupt("return",[v]);case 10:case"end":return b.stop()}},o,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"clearModels",value:function(){var i;(i=this.texture)===null||i===void 0||i.destroy()}},{key:"buildModels",value:function(){var n=(0,Pt.Z)(ge().mark(function o(){return ge().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:dn.Attribute,descriptor:{name:"a_Uv",buffer:{usage:R.DYNAMIC_DRAW,data:[],type:R.FLOAT},size:2,update:function(o,s,l){return[l[3],l[4]]}}})}}]),t}(Ma),fI={raster:nx,rasterRgb:aI,raster3d:nx,rasterTerrainRgb:cI},hI=fI;function pI(e){var r=dI();return function(){var n=(0,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 dI(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Mg=function(e){(0,Le.Z)(t,e);var r=pI(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,o=new Array(i),s=0;s0&&arguments[0]!==void 0?arguments[0]:!0;i&&this.layerService.clear()}},{key:"registerBuiltinAttributes",value:function(){return""}}]),t}(Ma),bI={fill:xI},EI=bI;function SI(e){var r=AI();return function(){var n=(0,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 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(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,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(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 -`:"").concat(i?y:"",` -`).concat(T||"").concat(v?v+` -`:"",` -`).concat(b,` -`).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(` -`))+ue.substring(ze)}else{var Je;if(ue=ue.replace(/^\s*out\s+(\S+)\s*(.*);$/gm,function(ht,gt,Ot){return Je=Ot,"".concat(gt," ").concat(Ot,`; -`)}),Je){var ze=ue.lastIndexOf("}");ue=ue.substring(0,ze)+` - gl_FragColor = vec4(`.concat(Je,`); -`)+ue.substring(ze)}}ue=ue.replace(/^\s*layout\((.*)\)/gm,"")}return ue}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,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.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),W4=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.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 Hn(e){return typeof WebGL2RenderingContext!="undefined"&&e instanceof WebGL2RenderingContext?!0:!!(e&&e._version===2)}function UE(e){var r=ch(e);switch(r){case Rr.BC1:case Rr.BC2:case Rr.BC3:case Rr.BC4_UNORM:case Rr.BC4_SNORM:case Rr.BC5_UNORM:case Rr.BC5_SNORM:return!0;default:return!1}}function zE(e){var r=Sv(e);if(r&wn.Normalized)return!1;var t=ch(e);return t===Rr.S8||t===Rr.S16||t===Rr.S32||t===Rr.U8||t===Rr.U16||t===Rr.U32}function G4(e){switch(e){case Af.STATIC:return We.STATIC_DRAW;case Af.DYNAMIC:return We.DYNAMIC_DRAW}}function ZE(e){if(e&no.INDEX)return We.ELEMENT_ARRAY_BUFFER;if(e&no.VERTEX)return We.ARRAY_BUFFER;if(e&no.UNIFORM)return We.UNIFORM_BUFFER}function X4(e){switch(e){case ms.TRIANGLES:return We.TRIANGLES;case ms.POINTS:return We.POINTS;case ms.TRIANGLE_STRIP:return We.TRIANGLE_STRIP;case ms.LINES:return We.LINES;case ms.LINE_STRIP:return We.LINE_STRIP;default:throw new Error("Unknown primitive topology mode")}}function $4(e){switch(e){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.S16:return We.SHORT;case Rr.S32:return We.INT;case Rr.F16:return We.HALF_FLOAT;case Rr.F32:return We.FLOAT;default:throw new Error("whoops")}}function Y4(e){switch(e){case Wn.R:return 1;case Wn.RG:return 2;case Wn.RGB:return 3;case Wn.RGBA:return 4;default:return 1}}function q4(e){var r=ch(e),t=Qg(e),n=Sv(e),i=$4(r),o=Y4(t),s=!!(n&wn.Normalized);return{size:o,type:i,normalized:s}}function K4(e){switch(e){case Mt.U8_R:return We.UNSIGNED_BYTE;case Mt.U16_R:return We.UNSIGNED_SHORT;case Mt.U32_R:return We.UNSIGNED_INT;default:throw new Error("whoops")}}function Dm(e){switch(e){case gl.CLAMP_TO_EDGE:return We.CLAMP_TO_EDGE;case gl.REPEAT:return We.REPEAT;case gl.MIRRORED_REPEAT:return We.MIRRORED_REPEAT;default:throw new Error("whoops")}}function a0(e,r){if(r===Xs.LINEAR&&e===vs.BILINEAR)return We.LINEAR_MIPMAP_LINEAR;if(r===Xs.LINEAR&&e===vs.POINT)return We.NEAREST_MIPMAP_LINEAR;if(r===Xs.NEAREST&&e===vs.BILINEAR)return We.LINEAR_MIPMAP_NEAREST;if(r===Xs.NEAREST&&e===vs.POINT)return We.NEAREST_MIPMAP_NEAREST;if(r===Xs.NO_MIP&&e===vs.BILINEAR)return We.LINEAR;if(r===Xs.NO_MIP&&e===vs.POINT)return We.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 Fm(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==la.ONE&&e.blendDstFactor===la.ZERO}function Q4(e){switch(e){case Kg.OcclusionConservative:return We.ANY_SAMPLES_PASSED_CONSERVATIVE;default:throw new Error("whoops")}}function J4(e){if(e===Gi.TEXTURE_2D)return We.TEXTURE_2D;if(e===Gi.TEXTURE_2D_ARRAY)return We.TEXTURE_2D_ARRAY;if(e===Gi.TEXTURE_CUBE_MAP)return We.TEXTURE_CUBE_MAP;if(e===Gi.TEXTURE_3D)return We.TEXTURE_3D;throw new Error("whoops")}function R_(e,r,t,n){return!(e%t!==0||r%n!==0)}var eD=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.viewOrSize,f=o.usage,v=o.hint,y=v===void 0?Af.STATIC:v,b=i.uniformBufferMaxPageByteSize,T=i.gl,M=f&no.UNIFORM;M||(Hn(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 F;if(M){for(var $=O;$>0;)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&&(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 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 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=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 -#pragma mapbox: initialize lowp float opacity -gl_FragColor=color*opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`attribute vec2 a_pos;uniform mat4 u_matrix; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float opacity -gl_Position=u_matrix*vec4(a_pos,0,1);}`),Jc=Ii(`varying vec2 v_pos; -#pragma mapbox: define highp vec4 outline_color -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize highp vec4 outline_color -#pragma mapbox: initialize lowp float opacity -float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos; -#pragma mapbox: define highp vec4 outline_color -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize highp vec4 outline_color -#pragma mapbox: initialize lowp float opacity -gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),Pu=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 -void main() { -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),tp=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 -void main() { -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b; -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),Ho=Ii(`varying vec4 v_color;void main() {gl_FragColor=v_color; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color; -#pragma mapbox: define highp float base -#pragma mapbox: define highp float height -#pragma mapbox: define highp vec4 color -void main() { -#pragma mapbox: initialize highp float base -#pragma mapbox: initialize highp float height -#pragma mapbox: initialize highp vec4 color -vec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),Yl=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 -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float base -#pragma mapbox: initialize lowp float height -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; -#pragma mapbox: define lowp float base -#pragma mapbox: define lowp float height -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float base -#pragma mapbox: initialize lowp float height -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 -? a_pos -: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),Sl=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;}"),$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=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 -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,` -#define scale 0.015873016 -attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define mediump float gapwidth -#pragma mapbox: define lowp float offset -#pragma mapbox: define mediump float width -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump float gapwidth -#pragma mapbox: initialize lowp float offset -#pragma mapbox: initialize mediump float width -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),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() { -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,` -#define scale 0.015873016 -attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv; -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define mediump float gapwidth -#pragma mapbox: define lowp float offset -#pragma mapbox: define mediump float width -void main() { -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump float gapwidth -#pragma mapbox: initialize lowp float offset -#pragma mapbox: initialize mediump float width -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),el=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 -#pragma mapbox: define lowp float pixel_ratio_to -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,` -#define scale 0.015873016 -#define LINE_DISTANCE_SCALE 2.0 -attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float offset -#pragma mapbox: define mediump float gapwidth -#pragma mapbox: define mediump float width -#pragma mapbox: define lowp float floorwidth -#pragma mapbox: define lowp vec4 pattern_from -#pragma mapbox: define lowp vec4 pattern_to -#pragma mapbox: define lowp float pixel_ratio_from -#pragma mapbox: define lowp float pixel_ratio_to -void main() { -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float offset -#pragma mapbox: initialize mediump float gapwidth -#pragma mapbox: initialize mediump float width -#pragma mapbox: initialize lowp float floorwidth -#pragma mapbox: initialize mediump vec4 pattern_from -#pragma mapbox: initialize mediump vec4 pattern_to -#pragma mapbox: initialize lowp float pixel_ratio_from -#pragma mapbox: initialize lowp float pixel_ratio_to -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),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 -#pragma mapbox: define mediump float width -#pragma mapbox: define lowp float floorwidth -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump float width -#pragma mapbox: initialize lowp float floorwidth -float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,` -#define scale 0.015873016 -#define LINE_DISTANCE_SCALE 2.0 -attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; -#pragma mapbox: define highp vec4 color -#pragma mapbox: define lowp float blur -#pragma mapbox: define lowp float opacity -#pragma mapbox: define mediump float gapwidth -#pragma mapbox: define lowp float offset -#pragma mapbox: define mediump float width -#pragma mapbox: define lowp float floorwidth -void main() { -#pragma mapbox: initialize highp vec4 color -#pragma mapbox: initialize lowp float blur -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize mediump float gapwidth -#pragma mapbox: initialize lowp float offset -#pragma mapbox: initialize mediump float width -#pragma mapbox: initialize lowp float floorwidth -float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),Ou=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=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 -lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity; -#pragma mapbox: define lowp float opacity -void main() { -#pragma mapbox: initialize lowp float opacity -vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? -camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`),rp=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 -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float halo_width -#pragma mapbox: define lowp float halo_blur -void main() { -#pragma mapbox: initialize highp vec4 fill_color -#pragma mapbox: initialize highp vec4 halo_color -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float halo_width -#pragma mapbox: initialize lowp float halo_blur -float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1; -#pragma mapbox: define highp vec4 fill_color -#pragma mapbox: define highp vec4 halo_color -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float halo_width -#pragma mapbox: define lowp float halo_blur -void main() { -#pragma mapbox: initialize highp vec4 fill_color -#pragma mapbox: initialize highp vec4 halo_color -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float halo_width -#pragma mapbox: initialize lowp float halo_blur -vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? -camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),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; -#pragma mapbox: define highp vec4 fill_color -#pragma mapbox: define highp vec4 halo_color -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float halo_width -#pragma mapbox: define lowp float halo_blur -void main() { -#pragma mapbox: initialize highp vec4 fill_color -#pragma mapbox: initialize highp vec4 halo_color -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float halo_width -#pragma mapbox: initialize lowp float halo_blur -float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha; -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); -#ifdef OVERDRAW_INSPECTOR -gl_FragColor=vec4(1.0); -#endif -}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1; -#pragma mapbox: define highp vec4 fill_color -#pragma mapbox: define highp vec4 halo_color -#pragma mapbox: define lowp float opacity -#pragma mapbox: define lowp float halo_width -#pragma mapbox: define lowp float halo_blur -void main() { -#pragma mapbox: initialize highp vec4 fill_color -#pragma mapbox: initialize highp vec4 halo_color -#pragma mapbox: initialize lowp float opacity -#pragma mapbox: initialize lowp float halo_width -#pragma mapbox: initialize lowp float halo_blur -vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? -camera_to_anchor_distance/u_camera_to_center_distance : -u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`);function 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 `+pe+" "+_e+" u_"+ye+`; -#endif -`:` -#ifdef HAS_UNIFORM_u_`+ye+` - `+pe+" "+_e+" "+ye+" = u_"+ye+`; -#endif -`}),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 `+pe+" "+_e+" u_"+ye+`; -#endif -`:ke==="vec4"?` -#ifndef HAS_UNIFORM_u_`+ye+` - `+ye+" = a_"+ye+`; -#else - `+pe+" "+_e+" "+ye+" = u_"+ye+`; -#endif -`:` -#ifndef HAS_UNIFORM_u_`+ye+` - `+ye+" = unpack_mix_"+ke+"(a_"+ye+", u_"+ye+`_t); -#else - `+pe+" "+_e+" "+ye+" = u_"+ye+`; -#endif -`:Y==="define"?` -#ifndef HAS_UNIFORM_u_`+ye+` -uniform lowp float u_`+ye+`_t; -attribute `+pe+" "+Ue+" a_"+ye+`; -#else -uniform `+pe+" "+_e+" u_"+ye+`; -#endif -`:ke==="vec4"?` -#ifndef HAS_UNIFORM_u_`+ye+` - `+pe+" "+_e+" "+ye+" = a_"+ye+`; -#else - `+pe+" "+_e+" "+ye+" = u_"+ye+`; -#endif -`:` -#ifndef HAS_UNIFORM_u_`+ye+` - `+pe+" "+_e+" "+ye+" = unpack_mix_"+ke+"(a_"+ye+", u_"+ye+`_t); -#else - `+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:$s,line:Al,lineGradient:oi,linePattern:el,lineSDF:Ds,raster:Ou,symbolIcon:tl,symbolSDF:rp,symbolTextAndIcon:ta}),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]}}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)||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/3930.6f891e88.async.js b/3930.6f891e88.async.js new file mode 100644 index 0000000000..e8ccc5d5ce --- /dev/null +++ b/3930.6f891e88.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3930],{83011:function(je,q,n){var o=n(35361),E=n(50959),I=n(8941),$=n(69164),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)},1442:function(je,q,n){var o=n(35361),E=n(50959),I=n(63374),$=n(69164),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)},46880:function(je,q,n){n.d(q,{vY:function(){return rt}});var o=n(30360),E=n(11642),I=n(73356),$=n(56929),i=n(35361),Z=n(50959),Q=n(70616),Y=n(69164),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(67880),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(83011),W=n(6457),B=n(8376),f=n(9146),de=n(48578),y=n(16965),x=n(32923),N=n(10994),e=n(11527),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(42247),fe=n(94683),ge=n(45057),te=n(78974),G=n(54070),me=n(64567),ye=n(959),Oe=n(99192),De=n(39617),Te=n(65589),xe=n(2223),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(16458),be=n(71503),Ce=n(5519),Qe=n(38751),Le=n(13763),Ye=n(85108),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(34829),et=["valueEnum","render","renderText","mode","plain","dataIndex","request","params","editable"],Be=["request","columns","params","dataSource","onDataSourceChange","formProps","editable","loading","onLoadingChange","actionRef","onRequestError","emptyText"],we=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},nt=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,et),d=(ne=we(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)(nt,(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)(nt,(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}},at=function(t){return(0,e.jsx)(Ce.Z.Item,(0,i.Z)((0,i.Z)({},t),{},{children:t.children}))};at.displayName="ProDescriptionsItem";var it=function(t){return t.children},rt=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,Be),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,tt=F.request;return!$e&&!Re&&!ze&&!tt&&!_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")})};rt.Item=at;var ot=null},60013:function(je,q,n){var o=n(35361),E=n(56929),I=n(50959),$=n(86047),i=n(8376),Z=n(11527),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},5778:function(je,q,n){var o=n(35361),E=n(56929),I=n(75442),$=n(3590),i=n(50959),Z=n(33359),Q=n(8376),Y=n(11527),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},34635:function(je,q,n){var o=n(35361),E=n(56929),I=n(75442),$=n(50959),i=n(86047),Z=n(8376),Q=n(11527),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},44896:function(je,q,n){var o=n(959),E=n(35361),I=n(56929),$=n(65589),i=n(26935),Z=n(23835),Q=n(71770),Y=n(50959),J=n(8376),K=n(11527),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},19805:function(je,q,n){var o=n(35361),E=n(56929),I=n(50959),$=n(8376),i=n(11527),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)},5519:function(je,q,n){n.d(q,{Z:function(){return ke}});var o=n(50959),E=n(82187),I=n.n(E),$=n(27189),i=n(92576),Z=n(50483),Q=n(63671),J={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},le=o.createContext({}),ie=n(13763),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(25446),ee=n(55985),Ue=n(87077),He=n(37324);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,Ke]=Ae(re),et=o.useMemo(()=>({labelStyle:Oe,contentStyle:De}),[Oe,De]);return Je(o.createElement(le.Provider,{value:et},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,Ke),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/3960.7f543261.async.js b/3960.7f543261.async.js deleted file mode 100644 index 0c014d3115..0000000000 --- a/3960.7f543261.async.js +++ /dev/null @@ -1,10 +0,0 @@ -"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/3994.761443f5.async.js b/3994.761443f5.async.js new file mode 100644 index 0000000000..f0286dbdef --- /dev/null +++ b/3994.761443f5.async.js @@ -0,0 +1,10 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3994],{82574:function(re,B,r){var o=r(35361),m=r(50959),f=r(5590),b=r(69164),C=function(x,I){return m.createElement(b.Z,(0,o.Z)((0,o.Z)({},x),{},{ref:I,icon:f.Z}))};C.displayName="DownOutlined",B.Z=m.forwardRef(C)},1442:function(re,B,r){var o=r(35361),m=r(50959),f=r(63374),b=r(69164),C=function(x,I){return m.createElement(b.Z,(0,o.Z)((0,o.Z)({},x),{},{ref:I,icon:f.Z}))};C.displayName="PlusOutlined",B.Z=m.forwardRef(C)},60013:function(re,B,r){var o=r(35361),m=r(56929),f=r(50959),b=r(86047),C=r(8376),L=r(11527),x=["fieldProps","proFieldProps"],I="dateTime",Z=f.forwardRef(function(O,G){var s=O.fieldProps,u=O.proFieldProps,w=(0,m.Z)(O,x),$=(0,f.useContext)(b.Z);return(0,L.jsx)(C.Z,(0,o.Z)({ref:G,fieldProps:(0,o.Z)({getPopupContainer:$.getPopupContainer},s),valueType:I,proFieldProps:u,filedConfig:{valueType:I,customLightMode:!0}},w))});B.Z=Z},34635:function(re,B,r){var o=r(35361),m=r(56929),f=r(75442),b=r(50959),C=r(86047),L=r(8376),x=r(11527),I=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],Z=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],O=function(_,V){var Y=_.fieldProps,c=_.children,d=_.params,M=_.proFieldProps,T=_.mode,W=_.valueEnum,j=_.request,A=_.showSearch,i=_.options,F=(0,m.Z)(_,I),K=(0,b.useContext)(C.Z);return(0,x.jsx)(L.Z,(0,o.Z)((0,o.Z)({valueEnum:(0,f.h)(W),request:j,params:d,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,o.Z)({options:i,mode:T,showSearch:A,getPopupContainer:K.getPopupContainer},Y),ref:V,proFieldProps:M},F),{},{children:c}))},G=b.forwardRef(function($,_){var V=$.fieldProps,Y=$.children,c=$.params,d=$.proFieldProps,M=$.mode,T=$.valueEnum,W=$.request,j=$.options,A=(0,m.Z)($,Z),i=(0,o.Z)({options:j,mode:M||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},V),F=(0,b.useContext)(C.Z);return(0,x.jsx)(L.Z,(0,o.Z)((0,o.Z)({valueEnum:(0,f.h)(T),request:W,params:c,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,o.Z)({getPopupContainer:F.getPopupContainer},i),ref:_,proFieldProps:d},A),{},{children:Y}))}),s=b.forwardRef(O),u=G,w=s;w.SearchSelect=u,w.displayName="ProFormComponent",B.Z=w},44896:function(re,B,r){var o=r(959),m=r(35361),f=r(56929),b=r(65589),C=r(26935),L=r(23835),x=r(71770),I=r(50959),Z=r(8376),O=r(11527),G=["fieldProps","proFieldProps"],s=["fieldProps","proFieldProps"],u="text",w=function(c){var d=c.fieldProps,M=c.proFieldProps,T=(0,f.Z)(c,G);return(0,O.jsx)(Z.Z,(0,m.Z)({valueType:u,fieldProps:d,filedConfig:{valueType:u},proFieldProps:M},T))},$=function(c){var d=(0,b.Z)(c.open||!1,{value:c.open,onChange:c.onOpenChange}),M=(0,o.Z)(d,2),T=M[0],W=M[1];return(0,O.jsx)(C.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(A){var i,F=A.getFieldValue(c.name||[]);return(0,O.jsx)(L.Z,(0,m.Z)((0,m.Z)({getPopupContainer:function(D){return D&&D.parentNode?D.parentNode:D},onOpenChange:W,content:(0,O.jsxs)("div",{style:{padding:"4px 0"},children:[(i=c.statusRender)===null||i===void 0?void 0:i.call(c,F),c.strengthText?(0,O.jsx)("div",{style:{marginTop:10},children:(0,O.jsx)("span",{children:c.strengthText})}):null]}),overlayStyle:{width:240},placement:"right"},c.popoverProps),{},{open:T,children:c.children}))}})},_=function(c){var d=c.fieldProps,M=c.proFieldProps,T=(0,f.Z)(c,s),W=(0,I.useState)(!1),j=(0,o.Z)(W,2),A=j[0],i=j[1];return d!=null&&d.statusRender&&T.name?(0,O.jsx)($,{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:A,onOpenChange:i,children:(0,O.jsx)(Z.Z,(0,m.Z)({valueType:"password",fieldProps:(0,m.Z)((0,m.Z)({},(0,x.Z)(d,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(K){var D;d==null||(D=d.onBlur)===null||D===void 0||D.call(d,K),i(!1)},onClick:function(K){var D;d==null||(D=d.onClick)===null||D===void 0||D.call(d,K),i(!0)}}),proFieldProps:M,filedConfig:{valueType:u}},T))}):(0,O.jsx)(Z.Z,(0,m.Z)({valueType:"password",fieldProps:d,proFieldProps:M,filedConfig:{valueType:u}},T))},V=w;V.Password=_,V.displayName="ProFormComponent",B.Z=V},19805:function(re,B,r){var o=r(35361),m=r(56929),f=r(50959),b=r(8376),C=r(11527),L=["fieldProps","proFieldProps"],x=function(Z,O){var G=Z.fieldProps,s=Z.proFieldProps,u=(0,m.Z)(Z,L);return(0,C.jsx)(b.Z,(0,o.Z)({ref:O,valueType:"textarea",fieldProps:G,proFieldProps:s},u))};B.Z=f.forwardRef(x)},62217:function(re,B,r){r.d(B,{Y:function(){return Y}});var o=r(11642),m=r(73356),f=r(35361),b=r(959),C=r(56929),L=r(11130),x=r(38751),I=r(88574),Z=r(72266),O=r.n(Z),G=r(65589),s=r(12868),u=r(50959),w=r(10422),$=r(22332),_=r(11527),V=["children","trigger","onVisibleChange","onOpenChange","modalProps","onFinish","submitTimeout","title","width","visible","open"];function Y(c){var d,M,T=c.children,W=c.trigger,j=c.onVisibleChange,A=c.onOpenChange,i=c.modalProps,F=c.onFinish,K=c.submitTimeout,D=c.title,me=c.width,ie=c.visible,se=c.open,E=(0,C.Z)(c,V);(0,s.ET)(!E.footer||!(i!=null&&i.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 ne=(0,u.useContext)(x.ZP.ConfigContext),e=(0,u.useState)([]),l=(0,b.Z)(e,2),t=l[1],n=(0,u.useState)(!1),a=(0,b.Z)(n,2),y=a[0],R=a[1],Q=(0,G.Z)(!!ie,{value:se||ie,onChange:A||j}),H=(0,b.Z)(Q,2),X=H[0],N=H[1],q=(0,u.useRef)(null),oe=(0,u.useCallback)(function(g){q.current===null&&g&&t([]),q.current=g},[]),J=(0,u.useRef)(),pe=(0,u.useCallback)(function(){var g,p,v,h=(g=(p=E.form)!==null&&p!==void 0?p:(v=E.formRef)===null||v===void 0?void 0:v.current)!==null&&g!==void 0?g:J.current;h&&i!==null&&i!==void 0&&i.destroyOnClose&&h.resetFields()},[i==null?void 0:i.destroyOnClose,E.form,E.formRef]);(0,u.useImperativeHandle)(E.formRef,function(){return J.current},[J.current]),(0,u.useEffect)(function(){X&&(se||ie)&&(A==null||A(!0),j==null||j(!0))},[ie,se,X]);var de=(0,u.useMemo)(function(){return W?u.cloneElement(W,(0,f.Z)((0,f.Z)({key:"trigger"},W.props),{},{onClick:function(){var g=(0,m.Z)((0,o.Z)().mark(function v(h){var U,P;return(0,o.Z)().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:N(!X),(U=W.props)===null||U===void 0||(P=U.onClick)===null||P===void 0||P.call(U,h);case 2:case"end":return z.stop()}},v)}));function p(v){return g.apply(this,arguments)}return p}()})):null},[N,W,X]),ae=(0,u.useMemo)(function(){var g,p,v,h,U,P;return E.submitter===!1?!1:O()({searchConfig:{submitText:(g=(p=i==null?void 0:i.okText)!==null&&p!==void 0?p:(v=ne.locale)===null||v===void 0||(v=v.Modal)===null||v===void 0?void 0:v.okText)!==null&&g!==void 0?g:"\u786E\u8BA4",resetText:(h=(U=i==null?void 0:i.cancelText)!==null&&U!==void 0?U:(P=ne.locale)===null||P===void 0||(P=P.Modal)===null||P===void 0?void 0:P.cancelText)!==null&&h!==void 0?h:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:K?y:void 0,onClick:function(z){var ce;N(!1),i==null||(ce=i.onCancel)===null||ce===void 0||ce.call(i,z)}}},E.submitter)},[(d=ne.locale)===null||d===void 0||(d=d.Modal)===null||d===void 0?void 0:d.cancelText,(M=ne.locale)===null||M===void 0||(M=M.Modal)===null||M===void 0?void 0:M.okText,i,E.submitter,N,y,K]),le=(0,u.useCallback)(function(g,p){return(0,_.jsxs)(_.Fragment,{children:[g,q.current&&p?(0,_.jsx)(u.Fragment,{children:(0,w.createPortal)(p,q.current)},"submitter"):p]})},[]),ve=(0,u.useCallback)(function(){var g=(0,m.Z)((0,o.Z)().mark(function p(v){var h,U,P;return(0,o.Z)().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return h=F==null?void 0:F(v),K&&h instanceof Promise&&(R(!0),U=setTimeout(function(){return R(!1)},K),h.finally(function(){clearTimeout(U),R(!1)})),z.next=4,h;case 4:return P=z.sent,P&&N(!1),z.abrupt("return",P);case 7:case"end":return z.stop()}},p)}));return function(p){return g.apply(this,arguments)}}(),[F,N,K]),fe=(0,L.X)(X);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(I.Z,(0,f.Z)((0,f.Z)((0,f.Z)({title:D,width:me||800},i),fe),{},{onCancel:function(p){var v;K&&y||(N(!1),i==null||(v=i.onCancel)===null||v===void 0||v.call(i,p))},afterClose:function(){var p;pe(),N(!1),i==null||(p=i.afterClose)===null||p===void 0||p.call(i)},footer:E.submitter!==!1?(0,_.jsx)("div",{ref:oe,style:{display:"flex",justifyContent:"flex-end"}}):null,children:(0,_.jsx)($.I,(0,f.Z)((0,f.Z)({formComponentType:"ModalForm",layout:"vertical"},E),{},{onInit:function(p,v){var h;E.formRef&&(E.formRef.current=v),E==null||(h=E.onInit)===null||h===void 0||h.call(E,p,v),J.current=v},formRef:J,submitter:ae,onFinish:function(){var g=(0,m.Z)((0,o.Z)().mark(function p(v){var h;return(0,o.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,ve(v);case 2:return h=P.sent,P.abrupt("return",h);case 4:case"end":return P.stop()}},p)}));return function(p){return g.apply(this,arguments)}}(),contentRender:le,children:T}))})),de]})}},16965:function(re,B,r){r.d(B,{Z:function(){return ne}});var o=r(50959),m=r(82187),f=r.n(m),b=r(87017),C=r(92576),L=r(50483),x=r(9146),I=r(40622),Z=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{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(25446),u=r(55985),w=r(87077),$=r(37324);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,be]=A(S),Ce=o.createElement(x.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},le),_e=ve!==void 0,Oe=Object.assign(Object.assign({},v),{[_e?"activeKey":"defaultActiveKey"]:_e?ve:fe,tabBarExtraContent:g});let ge;const ue=(0,L.Z)(oe),Me=!ue||ue==="default"?"large":ue,Pe=ae?o.createElement(I.Z,Object.assign({size:Me},Oe,{className:`${S}-head-tabs`,onChange:z,items:ae.map(te=>{var{tab:ee}=te,Re=i(te,["tab"]);return Object.assign({label:ee},Re)})})):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 ye=pe?o.createElement("div",{className:`${S}-cover`},pe):null,$e=o.createElement("div",{className:`${S}-body`,style:H},N?Ce:le),Se=de&&de.length?o.createElement(F,{prefixCls:S,actions:de}):null,xe=(0,b.Z)(h,["onTabChange"]),Te=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,be),De=Object.assign(Object.assign({},k==null?void 0:k.style),y);return he(o.createElement("div",Object.assign({ref:l},xe,{className:Te,style:De}),ge,ye,$e,Se))}),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/404.html b/404.html index 83a4c7a67b..59a32ec0a3 100644 --- a/404.html +++ b/404.html @@ -3,11 +3,11 @@ Ant Design Pro - +
- + \ No newline at end of file diff --git a/4118.83129dcd.async.js b/4118.83129dcd.async.js new file mode 100644 index 0000000000..48c663b8c6 --- /dev/null +++ b/4118.83129dcd.async.js @@ -0,0 +1,81 @@ +var rg=Object.defineProperty;var vs=Object.getOwnPropertySymbols;var ag=Object.prototype.hasOwnProperty,og=Object.prototype.propertyIsEnumerable;var ms=(ge,_,c)=>_ in ge?rg(ge,_,{enumerable:!0,configurable:!0,writable:!0,value:c}):ge[_]=c,hs=(ge,_)=>{for(var c in _||(_={}))ag.call(_,c)&&ms(ge,c,_[c]);if(vs)for(var c of vs(_))og.call(_,c)&&ms(ge,c,_[c]);return ge};(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4118],{73715:function(ge,_){"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"};_.Z=c},22717:function(ge,_,c){"use strict";c.d(_,{Z:function(){return J}});var d=c(27263),E=c(50959),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"},W=R,H=c(38782),K=function(B,te){return E.createElement(H.Z,(0,d.Z)({},B,{ref:te,icon:W}))},J=E.forwardRef(K)},66286:function(ge,_,c){"use strict";c.d(_,{ZP:function(){return bt},NA:function(){return G},aK:function(){return Ae}});var d=c(35361),E=c(56929),R=c(959),W=c(97382),H=c(30360),K=c(88357),J=c(99192),T=c(34829),B=c(14463),te=c(16177),oe=c(81447),o=c(72684),O=c(65589),ve=c(28491),w=c(50959),U=c(98339);function X(at){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,Ve=arguments.length>2?arguments[2]:void 0,$t=(0,w.useState)(at),$e=(0,R.Z)($t,2),We=$e[0],qe=$e[1],Ye=(0,U.d)(at);return(0,w.useEffect)(function(){var tn=setTimeout(function(){qe(Ye.current)},Y);return function(){return clearTimeout(tn)}},Ve?[Y].concat((0,H.Z)(Ve)):void 0),We}var ue=c(38751),Ue=c(13089),k=c(84707),ie=c(61020),wt=c(79189),vn=c(46545),yt=c(21713),rt=c(82187),an=c.n(rt),ft=c(13763),Z=c(11527),Ee=["label","prefixCls","onChange","value","mode","children","defaultValue","size","showSearch","disabled","style","className","bordered","options","onSearch","allowClear","labelInValue","fieldNames","lightLabel","labelTrigger","optionFilterProp","optionLabelProp","valueMaxLength"],Ct=function(Y,Ve){return(0,W.Z)(Ve)!=="object"?Y[Ve]||Ve:Y[Ve==null?void 0:Ve.value]||Ve.label},pt=function(Y,Ve){var $t=Y.label,$e=Y.prefixCls,We=Y.onChange,qe=Y.value,Ye=Y.mode,tn=Y.children,re=Y.defaultValue,me=Y.size,be=Y.showSearch,Re=Y.disabled,Oe=Y.style,Se=Y.className,Ce=Y.bordered,et=Y.options,Te=Y.onSearch,xe=Y.allowClear,Kt=Y.labelInValue,Et=Y.fieldNames,Wt=Y.lightLabel,Cn=Y.labelTrigger,Ut=Y.optionFilterProp,_t=Y.optionLabelProp,ot=_t===void 0?"":_t,ze=Y.valueMaxLength,Me=ze===void 0?41:ze,Ze=(0,E.Z)(Y,Ee),fe=Y.placeholder,he=fe===void 0?$t:fe,Pe=Et||{},Ke=Pe.label,Zt=Ke===void 0?"label":Ke,Dt=Pe.value,Nt=Dt===void 0?"value":Dt,Gt=(0,w.useContext)(ue.ZP.ConfigContext),Sn=Gt.getPrefixCls,gn=Sn("pro-field-select-light-select"),Xt=(0,w.useState)(!1),on=(0,R.Z)(Xt,2),pn=on[0],bn=on[1],Rt=(0,w.useState)(""),rn=(0,R.Z)(Rt,2),dn=rn[0],Ht=rn[1],Vn=(0,T.Xj)("LightSelect",function(je){var Qe;return(0,K.Z)({},".".concat(gn),(Qe={},(0,K.Z)(Qe,"".concat(je.antCls,"-select"),{position:"absolute",width:"153px",height:"28px",visibility:"hidden","&-selector":{height:28}}),(0,K.Z)(Qe,"&.".concat(gn,"-searchable"),(0,K.Z)({},"".concat(je.antCls,"-select"),{width:"200px","&-selector":{height:28}})),Qe))}),Yn=Vn.wrapSSR,Bt=Vn.hashId,ct=(0,w.useMemo)(function(){var je={};return et==null||et.forEach(function(Qe){var Xe=Qe[ot]||Qe[Zt],nn=Qe[Nt];je[nn]=Xe||nn}),je},[Zt,et,Nt,ot]),tt=Array.isArray(qe)?qe.map(function(je){return Ct(ct,je)}):Ct(ct,qe);return Yn((0,Z.jsxs)("div",{className:an()(gn,Bt,(0,K.Z)({},"".concat(gn,"-searchable"),be),"".concat(gn,"-container-").concat(Ze.placement||"bottomLeft"),Se),style:Oe,onClick:function(Qe){var Xe;if(!Re){var nn=Wt==null||(Xe=Wt.current)===null||Xe===void 0||(Xe=Xe.labelRef)===null||Xe===void 0||(Xe=Xe.current)===null||Xe===void 0?void 0:Xe.contains(Qe.target);bn(nn?!pn:!0)}},children:[(0,Z.jsx)(vn.Z,(0,d.Z)((0,d.Z)({popupMatchSelectWidth:!1},Ze),{},{allowClear:xe,value:qe,mode:Ye,labelInValue:Kt,size:me,disabled:Re,onChange:function(Qe,Xe){We==null||We(Qe,Xe),Ye!=="multiple"&&bn(!1)},bordered:Ce,showSearch:be,onSearch:Te,style:Oe,dropdownRender:function(Qe){return(0,Z.jsxs)("div",{ref:Ve,children:[be&&(0,Z.jsx)("div",{style:{margin:"4px 8px"},children:(0,Z.jsx)(yt.Z,{value:dn,allowClear:!!xe,onChange:function(nn){Ht(nn.target.value),Te==null||Te(nn.target.value)},onKeyDown:function(nn){nn.stopPropagation()},style:{width:"100%"},prefix:(0,Z.jsx)(ie.Z,{})})}),Qe]})},open:pn,onDropdownVisibleChange:function(Qe){var Xe;Qe||Ht(""),Cn||bn(Qe),Ze==null||(Xe=Ze.onDropdownVisibleChange)===null||Xe===void 0||Xe.call(Ze,Qe)},prefixCls:$e,options:Te||!dn?et:et==null?void 0:et.filter(function(je){var Qe,Xe;return Ut?(0,ft.Z)(je[Ut]).join("").toLowerCase().includes(dn):((Qe=String(je[Zt]))===null||Qe===void 0||(Qe=Qe.toLowerCase())===null||Qe===void 0?void 0:Qe.includes(dn==null?void 0:dn.toLowerCase()))||((Xe=je[Nt])===null||Xe===void 0||(Xe=Xe.toString())===null||Xe===void 0||(Xe=Xe.toLowerCase())===null||Xe===void 0?void 0:Xe.includes(dn==null?void 0:dn.toLowerCase()))})})),(0,Z.jsx)(wt.Q,{ellipsis:!0,label:$t,placeholder:he,disabled:Re,bordered:Ce,allowClear:!!xe,value:tt||(qe==null?void 0:qe.label)||qe,onClear:function(){We==null||We(void 0,void 0)},ref:Wt,valueMaxLength:Me})]}))},Ge=w.forwardRef(pt),pe=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","fetchDataOnSearch","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames","defaultSearchValue"],vt=["className","optionType"],Lt=function(Y,Ve){var $t=Y.optionItemRender,$e=Y.mode,We=Y.onSearch,qe=Y.onFocus,Ye=Y.onChange,tn=Y.autoClearSearchValue,re=tn===void 0?!0:tn,me=Y.searchOnFocus,be=me===void 0?!1:me,Re=Y.resetAfterSelect,Oe=Re===void 0?!1:Re,Se=Y.fetchDataOnSearch,Ce=Se===void 0?!0:Se,et=Y.optionFilterProp,Te=et===void 0?"label":et,xe=Y.optionLabelProp,Kt=xe===void 0?"label":xe,Et=Y.className,Wt=Y.disabled,Cn=Y.options,Ut=Y.fetchData,_t=Y.resetData,ot=Y.prefixCls,ze=Y.onClear,Me=Y.searchValue,Ze=Y.showSearch,fe=Y.fieldNames,he=Y.defaultSearchValue,Pe=(0,E.Z)(Y,pe),Ke=fe||{},Zt=Ke.label,Dt=Zt===void 0?"label":Zt,Nt=Ke.value,Gt=Nt===void 0?"value":Nt,Sn=Ke.options,gn=Sn===void 0?"options":Sn,Xt=(0,w.useState)(Me!=null?Me:he),on=(0,R.Z)(Xt,2),pn=on[0],bn=on[1],Rt=(0,w.useRef)();(0,w.useImperativeHandle)(Ve,function(){return Rt.current}),(0,w.useEffect)(function(){if(Pe.autoFocus){var ct;Rt==null||(ct=Rt.current)===null||ct===void 0||ct.focus()}},[Pe.autoFocus]),(0,w.useEffect)(function(){bn(Me)},[Me]);var rn=(0,w.useContext)(ue.ZP.ConfigContext),dn=rn.getPrefixCls,Ht=dn("pro-filed-search-select",ot),Vn=an()(Ht,Et,(0,K.Z)({},"".concat(Ht,"-disabled"),Wt)),Yn=function(tt,je){return Array.isArray(tt)&&Array.isArray(je)&&tt.length>0?tt.map(function(Qe,Xe){var nn=je==null?void 0:je[Xe],wn=(nn==null?void 0:nn["data-item"])||{};return(0,d.Z)((0,d.Z)({},wn),Qe)}):[]},Bt=function ct(tt){return tt.map(function(je,Qe){var Xe,nn=je,wn=nn.className,_e=nn.optionType,Un=(0,E.Z)(nn,vt),Rn=je[Dt],ar=je[Gt],fr=(Xe=je[gn])!==null&&Xe!==void 0?Xe:[];return _e==="optGroup"||je.options?(0,d.Z)((0,d.Z)({label:Rn},Un),{},{data_title:Rn,title:Rn,key:ar!=null?ar:Rn==null?void 0:Rn.toString(),children:ct(fr)}):(0,d.Z)((0,d.Z)({title:Rn},Un),{},{data_title:Rn,value:ar!=null?ar:Qe,key:ar!=null?ar:Rn==null?void 0:Rn.toString(),"data-item":je,className:"".concat(Ht,"-option ").concat(wn||"").trim(),label:($t==null?void 0:$t(je))||Rn})})};return(0,Z.jsx)(vn.Z,(0,d.Z)((0,d.Z)({ref:Rt,className:Vn,allowClear:!0,autoClearSearchValue:re,disabled:Wt,mode:$e,showSearch:Ze,searchValue:pn,optionFilterProp:Te,optionLabelProp:Kt,onClear:function(){ze==null||ze(),Ut(void 0),Ze&&bn(void 0)}},Pe),{},{filterOption:Pe.filterOption==!1?!1:function(ct,tt){var je,Qe,Xe;return Pe.filterOption&&typeof Pe.filterOption=="function"?Pe.filterOption(ct,(0,d.Z)((0,d.Z)({},tt),{},{label:tt==null?void 0:tt.data_title})):!!(tt!=null&&(je=tt.data_title)!==null&&je!==void 0&&je.toString().toLowerCase().includes(ct.toLowerCase())||tt!=null&&(Qe=tt.label)!==null&&Qe!==void 0&&Qe.toString().toLowerCase().includes(ct.toLowerCase())||tt!=null&&(Xe=tt.value)!==null&&Xe!==void 0&&Xe.toString().toLowerCase().includes(ct.toLowerCase()))},onSearch:Ze?function(ct){Ce&&Ut(ct),We==null||We(ct),bn(ct)}:void 0,onChange:function(tt,je){Ze&&re&&(Ut(void 0),We==null||We(""),bn(void 0));for(var Qe=arguments.length,Xe=new Array(Qe>2?Qe-2:0),nn=2;nn2&&arguments[2]!==void 0?arguments[2]:!0,Oe=Object.keys(be).reduce(function(et,Te){var xe=be[Te];return(0,an.k)(xe)||(et[Te]=xe),et},{});if(Object.keys(Oe).length<1||typeof window=="undefined"||(0,ie.Z)(me)!=="object"||(0,an.k)(me)||me instanceof Blob)return me;var Se=Array.isArray(me)?[]:{},Ce=function et(Te,xe){var Kt=Array.isArray(Te),Et=Kt?[]:{};return Te==null||Te===void 0?Et:(Object.keys(Te).forEach(function(Wt){var Cn=function Ze(fe,he){return Array.isArray(fe)&&fe.forEach(function(Pe,Ke){if(Pe){var Zt=he==null?void 0:he[Ke];typeof Pe=="function"&&(he[Ke]=Pe(he,Wt,Te)),(0,ie.Z)(Pe)==="object"&&!Array.isArray(Pe)&&Object.keys(Pe).forEach(function(Dt){var Nt=Zt==null?void 0:Zt[Dt];if(typeof Pe[Dt]=="function"&&Nt){var Gt=Pe[Dt](Zt[Dt],Wt,Te);Zt[Dt]=(0,ie.Z)(Gt)==="object"?Gt[Dt]:Gt}else(0,ie.Z)(Pe[Dt])==="object"&&Array.isArray(Pe[Dt])&&Nt&&Ze(Pe[Dt],Nt)}),(0,ie.Z)(Pe)==="object"&&Array.isArray(Pe)&&Zt&&Ze(Pe,Zt)}}),Wt},Ut=xe?[xe,Wt].flat(1):[Wt].flat(1),_t=Te[Wt],ot=(0,yt.Z)(Oe,Ut),ze=function(){var fe,he,Pe=!1;if(typeof ot=="function"){he=ot==null?void 0:ot(_t,Wt,Te);var Ke=(0,ie.Z)(he);Ke!=="object"&&Ke!=="undefined"?(fe=Wt,Pe=!0):fe=he}else fe=Cn(ot,_t);if(Array.isArray(fe)){Et=(0,rt.Z)(Et,fe,_t);return}(0,ie.Z)(fe)==="object"&&!Array.isArray(Se)?Se=vn()(Se,fe):(0,ie.Z)(fe)==="object"&&Array.isArray(Se)?Et=(0,R.Z)((0,R.Z)({},Et),fe):(fe!==null||fe!==void 0)&&(Et=(0,rt.Z)(Et,[fe],Pe?he:_t))};if(ot&&typeof ot=="function"&&ze(),typeof window!="undefined"){if(Z(_t)){var Me=et(_t,Ut);if(Object.keys(Me).length<1)return;Et=(0,rt.Z)(Et,[Wt],Me);return}ze()}}),Re?Et:Te)};return Se=Array.isArray(me)&&Array.isArray(Se)?(0,k.Z)(Ce(me)):(0,ft.T)({},Ce(me),Se),Se},Ct=c(68922),pt=c(87375),Ge=c(26935),pe=c(38751),vt=c(13089),Lt=c(82187),kt=c.n(Lt),At=c(71770),le=c(12868),Je=c(86047),Ie=c(86865),G=c(11527),Ae=function(me){var be=(0,J.YB)(),Re=Ge.Z.useFormInstance();if(me.render===!1)return null;var Oe=me.onSubmit,Se=me.render,Ce=me.onReset,et=me.searchConfig,Te=et===void 0?{}:et,xe=me.submitButtonProps,Kt=me.resetButtonProps,Et=Ue.Ow.useToken(),Wt=Et.token,Cn=function(){Re.submit(),Oe==null||Oe()},Ut=function(){Re.resetFields(),Ce==null||Ce()},_t=Te.submitText,ot=_t===void 0?be.getMessage("tableForm.submit","\u63D0\u4EA4"):_t,ze=Te.resetText,Me=ze===void 0?be.getMessage("tableForm.reset","\u91CD\u7F6E"):ze,Ze=[];Kt!==!1&&Ze.push((0,w.createElement)(Ie.ZP,(0,R.Z)((0,R.Z)({},(0,At.Z)(Kt,["preventDefault"])),{},{key:"rest",onClick:function(Pe){var Ke;Kt!=null&&Kt.preventDefault||Ut(),Kt==null||(Ke=Kt.onClick)===null||Ke===void 0||Ke.call(Kt,Pe)}}),Me)),xe!==!1&&Ze.push((0,w.createElement)(Ie.ZP,(0,R.Z)((0,R.Z)({type:"primary"},(0,At.Z)(xe||{},["preventDefault"])),{},{key:"submit",onClick:function(Pe){var Ke;xe!=null&&xe.preventDefault||Cn(),xe==null||(Ke=xe.onClick)===null||Ke===void 0||Ke.call(xe,Pe)}}),ot));var fe=Se?Se((0,R.Z)((0,R.Z)({},me),{},{form:Re,submit:Cn,reset:Ut}),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:Wt.marginXS,alignItems:"center"},children:fe}):fe:null},mt=Ae,bt=c(74315),at=c(81408),Y=c(54856),Ve=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],$t=["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)},We=function(me){return!me||Array.isArray(me)?me:[me]};function qe(re){var me,be=re.children,Re=re.contentRender,Oe=re.submitter,Se=re.fieldProps,Ce=re.formItemProps,et=re.groupProps,Te=re.transformKey,xe=re.formRef,Kt=re.onInit,Et=re.form,Wt=re.loading,Cn=re.formComponentType,Ut=re.extraUrlParams,_t=Ut===void 0?{}:Ut,ot=re.syncToUrl,ze=re.onUrlSearchChange,Me=re.onReset,Ze=re.omitNil,fe=Ze===void 0?!0:Ze,he=re.isKeyPressSubmit,Pe=re.autoFocusFirstInput,Ke=Pe===void 0?!0:Pe,Zt=re.grid,Dt=re.rowProps,Nt=re.colProps,Gt=(0,K.Z)(re,Ve),Sn=Ge.Z.useFormInstance(),gn=(pe.ZP===null||pe.ZP===void 0||(me=pe.ZP.useConfig)===null||me===void 0?void 0:me.call(pe.ZP))||{componentSize:"middle"},Xt=gn.componentSize,on=(0,w.useRef)(Et||Sn),pn=(0,at.zx)({grid:Zt,rowProps:Dt}),bn=pn.RowWrapper,Rt=(0,B.J)(function(){return Sn}),rn=(0,w.useMemo)(function(){return{getFieldsFormatValue:function(tt){var je;return Te((je=Rt())===null||je===void 0?void 0:je.getFieldsValue(tt),fe)},getFieldFormatValue:function(){var tt,je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Qe=We(je);if(!Qe)throw new Error("nameList is require");var Xe=(tt=Rt())===null||tt===void 0?void 0:tt.getFieldValue(Qe),nn=Qe?(0,rt.Z)({},Qe,Xe):Xe;return(0,yt.Z)(Te(nn,fe,Qe),Qe)},getFieldFormatValueObject:function(tt){var je,Qe=We(tt),Xe=(je=Rt())===null||je===void 0?void 0:je.getFieldValue(Qe),nn=Qe?(0,rt.Z)({},Qe,Xe):Xe;return Te(nn,fe,Qe)},validateFieldsReturnFormatValue:function(){var ct=(0,H.Z)((0,W.Z)().mark(function je(Qe){var Xe,nn,wn;return(0,W.Z)().wrap(function(Un){for(;;)switch(Un.prev=Un.next){case 0:if(!(!Array.isArray(Qe)&&Qe)){Un.next=2;break}throw new Error("nameList must be array");case 2:return Un.next=4,(Xe=Rt())===null||Xe===void 0?void 0:Xe.validateFields(Qe);case 4:return nn=Un.sent,wn=Te(nn,fe),Un.abrupt("return",wn||{});case 7:case"end":return Un.stop()}},je)}));function tt(je){return ct.apply(this,arguments)}return tt}()}},[fe,Te]),dn=(0,w.useMemo)(function(){return w.Children.toArray(be).map(function(ct,tt){return tt===0&&w.isValidElement(ct)&&Ke?w.cloneElement(ct,(0,R.Z)((0,R.Z)({},ct.props),{},{autoFocus:Ke})):ct})},[Ke,be]),Ht=(0,w.useMemo)(function(){return typeof Oe=="boolean"||!Oe?{}:Oe},[Oe]),Vn=(0,w.useMemo)(function(){if(Oe!==!1)return(0,G.jsx)(mt,(0,R.Z)((0,R.Z)({},Ht),{},{onReset:function(){var tt,je,Qe=Te((tt=on.current)===null||tt===void 0?void 0:tt.getFieldsValue(),fe);if(Ht==null||(je=Ht.onReset)===null||je===void 0||je.call(Ht,Qe),Me==null||Me(Qe),ot){var Xe,nn=Object.keys(Te((Xe=on.current)===null||Xe===void 0?void 0:Xe.getFieldsValue(),!1)).reduce(function(wn,_e){return(0,R.Z)((0,R.Z)({},wn),{},(0,E.Z)({},_e,Qe[_e]||void 0))},_t);ze($e(ot,nn||{},"set"))}},submitButtonProps:(0,R.Z)({loading:Wt},Ht.submitButtonProps)}),"submitter")},[Oe,Ht,Wt,Te,fe,Me,ot,_t,ze]),Yn=(0,w.useMemo)(function(){var ct=Zt?(0,G.jsx)(bn,{children:dn}):dn;return Re?Re(ct,Vn,on.current):ct},[Zt,bn,dn,Re,Vn]),Bt=(0,te.D)(re.initialValues);return(0,w.useEffect)(function(){if(!(ot||!re.initialValues||!Bt||Gt.request)){var ct=(0,oe.A)(re.initialValues,Bt);(0,le.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,le.ET)(ct,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[re.initialValues]),(0,w.useImperativeHandle)(xe,function(){return(0,R.Z)((0,R.Z)({},on.current),rn)},[rn,on.current]),(0,w.useEffect)(function(){var ct,tt,je=Te((ct=on.current)===null||ct===void 0||(tt=ct.getFieldsValue)===null||tt===void 0?void 0:tt.call(ct,!0),fe);Kt==null||Kt(je,(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:Gt.size||Xt,children:(0,G.jsxs)(at._p.Provider,{value:{grid:Zt,colProps:Nt},children:[Gt.component!==!1&&(0,G.jsx)("input",{type:"text",style:{display:"none"}}),Yn]})})})}var Ye=0;function tn(re){var me=re.extraUrlParams,be=me===void 0?{}:me,Re=re.syncToUrl,Oe=re.isKeyPressSubmit,Se=re.syncToUrlAsImportant,Ce=Se===void 0?!1:Se,et=re.syncToInitialValues,Te=et===void 0?!0:et,xe=re.children,Kt=re.contentRender,Et=re.submitter,Wt=re.fieldProps,Cn=re.proFieldProps,Ut=re.formItemProps,_t=re.groupProps,ot=re.dateFormatter,ze=ot===void 0?"string":ot,Me=re.formRef,Ze=re.onInit,fe=re.form,he=re.formComponentType,Pe=re.onReset,Ke=re.grid,Zt=re.rowProps,Dt=re.colProps,Nt=re.omitNil,Gt=Nt===void 0?!0:Nt,Sn=re.request,gn=re.params,Xt=re.initialValues,on=re.formKey,pn=on===void 0?Ye:on,bn=re.readonly,Rt=re.onLoadingChange,rn=re.loading,dn=(0,K.Z)(re,$t),Ht=(0,w.useRef)({}),Vn=(0,O.Z)(!1,{onChange:Rt,value:rn}),Yn=(0,d.Z)(Vn,2),Bt=Yn[0],ct=Yn[1],tt=(0,pt.l)({},{disabled:!Re}),je=(0,d.Z)(tt,2),Qe=je[0],Xe=je[1],nn=(0,w.useRef)((0,ve.x)());(0,w.useEffect)(function(){Ye+=0},[]);var wn=ue({request:Sn,params:gn,proFieldKey:pn}),_e=(0,d.Z)(wn,1),Un=_e[0],Rn=(0,w.useContext)(pe.ZP.ConfigContext),ar=Rn.getPrefixCls,fr=ar("pro-form"),Nr=(0,Ue.Xj)("ProForm",function(Xn){return(0,E.Z)({},".".concat(fr),(0,E.Z)({},"> div:not(".concat(Xn.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,Zr=Nr.hashId,oa=(0,w.useState)(function(){return Re?$e(Re,Qe,"get"):{}}),ia=(0,d.Z)(oa,2),wa=ia[0],Za=ia[1],Fr=(0,w.useRef)({}),Wr=(0,w.useRef)({}),zr=(0,B.J)(function(Xn,Gn,Jn){return Ee((0,Ct.lp)(Xn,ze,Wr.current,Gn,Jn),Fr.current,Gn)});(0,w.useEffect)(function(){Te||Za({})},[Te]),(0,w.useEffect)(function(){Re&&Xe($e(Re,(0,R.Z)((0,R.Z)({},Qe),be),"set"))},[be,Re]);var Oa=(0,w.useMemo)(function(){if(typeof window!="undefined"&&he&&["DrawerForm"].includes(he))return function(Xn){return Xn.parentNode||document.body}},[he]),Ea=(0,B.J)((0,H.Z)((0,W.Z)().mark(function Xn(){var Gn,Jn,Qn,N,Or,tr;return(0,W.Z)().wrap(function(Nn){for(;;)switch(Nn.prev=Nn.next){case 0:if(dn.onFinish){Nn.next=2;break}return Nn.abrupt("return");case 2:if(!Bt){Nn.next=4;break}return Nn.abrupt("return");case 4:return ct(!0),Nn.prev=5,Qn=Ht==null||(Gn=Ht.current)===null||Gn===void 0||(Jn=Gn.getFieldsFormatValue)===null||Jn===void 0?void 0:Jn.call(Gn),Nn.next=9,dn.onFinish(Qn);case 9:Re&&(tr=Object.keys(Ht==null||(N=Ht.current)===null||N===void 0||(Or=N.getFieldsFormatValue)===null||Or===void 0?void 0:Or.call(N,void 0,!1)).reduce(function(vr,xr){var kr;return(0,R.Z)((0,R.Z)({},vr),{},(0,E.Z)({},xr,(kr=Qn[xr])!==null&&kr!==void 0?kr:void 0))},be),Object.keys(Qe).forEach(function(vr){tr[vr]!==!1&&tr[vr]!==0&&!tr[vr]&&(tr[vr]=void 0)}),Xe($e(Re,tr,"set"))),ct(!1),Nn.next=17;break;case 13:Nn.prev=13,Nn.t0=Nn.catch(5),console.log(Nn.t0),ct(!1);case 17:case"end":return Nn.stop()}},Xn,null,[[5,13]])})));return(0,w.useImperativeHandle)(Me,function(){return Ht.current},[!Un]),!Un&&re.request?(0,G.jsx)("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:(0,G.jsx)(vt.Z,{})}):aa((0,G.jsx)(Y.A.Provider,{value:{mode:re.readonly?"read":"edit"},children:(0,G.jsx)(J._Y,{needDeps:!0,children:(0,G.jsx)(Je.Z.Provider,{value:{formRef:Ht,fieldProps:Wt,proFieldProps:Cn,formItemProps:Ut,groupProps:_t,formComponentType:he,getPopupContainer:Oa,formKey:nn.current,setFieldValueType:function(Gn,Jn){var Qn=Jn.valueType,N=Qn===void 0?"text":Qn,Or=Jn.dateFormat,tr=Jn.transform;Array.isArray(Gn)&&(Fr.current=(0,rt.Z)(Fr.current,Gn,tr),Wr.current=(0,rt.Z)(Wr.current,Gn,{valueType:N,dateFormat:Or}))}},children:(0,G.jsx)(bt.J.Provider,{value:{},children:(0,G.jsx)(Ge.Z,(0,R.Z)((0,R.Z)({onKeyPress:function(Gn){if(Oe&&Gn.key==="Enter"){var Jn;(Jn=Ht.current)===null||Jn===void 0||Jn.submit()}},autoComplete:"off",form:fe},(0,At.Z)(dn,["labelWidth","autoFocusFirstInput"])),{},{initialValues:Ce?(0,R.Z)((0,R.Z)((0,R.Z)({},Xt),Un),wa):(0,R.Z)((0,R.Z)((0,R.Z)({},wa),Xt),Un),onValuesChange:function(Gn,Jn){var Qn;dn==null||(Qn=dn.onValuesChange)===null||Qn===void 0||Qn.call(dn,zr(Gn,!!Gt),zr(Jn,!!Gt))},className:kt()(re.className,fr,Zr),onFinish:Ea,children:(0,G.jsx)(qe,(0,R.Z)((0,R.Z)({transformKey:zr,autoComplete:"off",loading:Bt,onUrlSearchChange:Xe},re),{},{formRef:Ht,initialValues:(0,R.Z)((0,R.Z)({},Xt),Un)}))}))})})})}))}},54856:function(ge,_,c){"use strict";c.d(_,{A:function(){return E}});var d=c(50959),E=d.createContext({mode:"edit"})},33359:function(ge,_,c){"use strict";c.d(_,{G:function(){return an}});var d=c(88357),E=c(959),R=c(35361),W=c(56929),H=c(72684),K=c(65199),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(ft){var Z={};return J.forEach(function(Ee){ft[Ee]!==void 0&&(Z[Ee]=ft[Ee])}),Z}var B=c(64567),te=c(81447),oe=c(82187),o=c.n(oe),O=c(7445),ve=c(12868),w=c(50959),U=c(86047),X=c(76001),ue=c(75657),Ue=c(81408),k=c(11527),ie=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],wt=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],vn=Symbol("ProFormComponent"),yt={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},rt=["switch","radioButton","radio","rate"];function an(ft,Z){ft.displayName="ProFormComponent";var Ee=function(Ge){var pe=(0,R.Z)((0,R.Z)({},Ge==null?void 0:Ge.filedConfig),Z)||{},vt=pe.valueType,Lt=pe.customLightMode,kt=pe.lightFilterLabelFormatter,At=pe.valuePropName,le=At===void 0?"value":At,Je=pe.ignoreWidth,Ie=pe.defaultProps,G=(0,W.Z)(pe,ie),Ae=(0,R.Z)((0,R.Z)({},Ie),Ge),mt=Ae.label,bt=Ae.tooltip,at=Ae.placeholder,Y=Ae.width,Ve=Ae.bordered,$t=Ae.messageVariables,$e=Ae.ignoreFormItem,We=Ae.transform,qe=Ae.convertValue,Ye=Ae.readonly,tn=Ae.allowClear,re=Ae.colSize,me=Ae.getFormItemProps,be=Ae.getFieldProps,Re=Ae.filedConfig,Oe=Ae.cacheForSwr,Se=Ae.proFieldProps,Ce=(0,W.Z)(Ae,wt),et=vt||Ce.valueType,Te=(0,w.useMemo)(function(){return Je||rt.includes(et)},[Je,et]),xe=(0,w.useState)(),Kt=(0,E.Z)(xe,2),Et=Kt[1],Wt=(0,w.useState)(),Cn=(0,E.Z)(Wt,2),Ut=Cn[0],_t=Cn[1],ot=w.useContext(U.Z),ze=(0,H.Z)(function(){return{formItemProps:me==null?void 0:me(),fieldProps:be==null?void 0:be()}},[be,me,Ce.dependenciesValues,Ut]),Me=(0,H.Z)(function(){var Rt=(0,R.Z)((0,R.Z)((0,R.Z)((0,R.Z)({},$e?(0,K.Y)({value:Ce.value}):{}),{},{placeholder:at,disabled:Ge.disabled},ot.fieldProps),ze.fieldProps),Ce.fieldProps);return Rt.style=(0,K.Y)(Rt==null?void 0:Rt.style),Rt},[$e,Ce.value,Ce.fieldProps,at,Ge.disabled,ot.fieldProps,ze.fieldProps]),Ze=T(Ce),fe=(0,H.Z)(function(){return(0,R.Z)((0,R.Z)((0,R.Z)((0,R.Z)({},ot.formItemProps),Ze),ze.formItemProps),Ce.formItemProps)},[ze.formItemProps,ot.formItemProps,Ce.formItemProps,Ze]),he=(0,H.Z)(function(){return(0,R.Z)((0,R.Z)({messageVariables:$t},G),fe)},[G,fe,$t]);(0,ve.ET)(!Ce.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 Pe=(0,w.useContext)(O.zb),Ke=Pe.prefixName,Zt=(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 dn=rn&&"form-".concat((Rt=ot.formKey)!==null&&Rt!==void 0?Rt:"","-field-").concat(rn);return dn},[(0,B.ZP)(he==null?void 0:he.name),Ke,ot.formKey]),Dt=(0,te.J)(function(){var Rt;me||be?_t([]):Ce.renderFormItem&&Et([]);for(var rn=arguments.length,dn=new Array(rn),Ht=0;Ht2&&arguments[2]!==void 0?arguments[2]:!1;b.forEach(function(y){if(!(!h&&m!==!1&&m>0&&g.length>=m)){var I=[].concat((0,ue.Z)(C),[y]),M=y[n.children],P=x||y.disabled;if((!M||M.length===0||i)&&s(t,I,{label:n.label})){var $;g.push((0,d.Z)((0,d.Z)({},y),{},($={disabled:P},(0,Z.Z)($,n.label,f(t,I,r,n)),(0,Z.Z)($,Ee,I),(0,Z.Z)($,n.children,void 0),$)))}M&&p(y[n.children],I,P)}})}return p(e,[]),h&&g.sort(function(b,C){return h(b[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__",vt="SHOW_PARENT",Lt="SHOW_CHILD";function kt(t){return t.join(pe)}function At(t){return t.map(kt)}function le(t){return t.split(pe)}function Je(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 Ae(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 mt(t){return Array.isArray(t)&&Array.isArray(t[0])}function bt(t){return t?mt(t)?t:(t.length===0?[]:[t]).map(function(e){return Array.isArray(e)?e:[e]}):[]}function at(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===Lt?!(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(b){var C=b[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);y(A)}else f(!1)},P=function(){var A,F=((A=C[b])===null||A===void 0?void 0:A[n.children])||[],j=F.find(function(z){return!z.disabled});if(j){var V=[].concat((0,ue.Z)(p),[j[n.value]]);y(V)}};o.useImperativeHandle(t,function(){return{onKeyDown:function(A){var F=A.which;switch(F){case xe.Z.UP:case xe.Z.DOWN:{var j=0;F===xe.Z.UP?j=-1:F===xe.Z.DOWN&&(j=1),j!==0&&I(j);break}case xe.Z.LEFT:{if(u)break;m?P():M();break}case xe.Z.RIGHT:{if(u)break;m?M():P();break}case xe.Z.BACKSPACE:{u||M();break}case xe.Z.ENTER:{if(p.length){var V=C[b],z=(V==null?void 0:V[Ee])||[];z.length?i(z.map(function(D){return D[n.value]}),z[z.length-1]):i(p,C[b])}break}case xe.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(ft),b=p.options,C=p.values,x=p.halfValues,y=p.fieldNames,I=p.changeOnSelect,M=p.onSelect,P=p.searchOptions,$=p.dropdownPrefixCls,A=p.loadData,F=p.expandTrigger,j=$||i,V=o.useState([]),z=(0,O.Z)(V,2),D=z[0],ne=z[1],Q=function(Be){if(!(!A||s)){var gt=Y(Be,b,y),ke=gt.map(function(Vt){var qt=Vt.option;return qt}),dt=ke[ke.length-1];if(dt&&!Ie(dt,y)){var ut=kt(Be);ne(function(Vt){return[].concat((0,ue.Z)(Vt),[ut])}),A(ke)}}};o.useEffect(function(){D.length&&D.forEach(function(lt){var Be=le(lt),gt=Y(Be,b,y,!0).map(function(dt){var ut=dt.option;return ut}),ke=gt[gt.length-1];(!ke||ke[y.children]||Ie(ke,y))&&ne(function(dt){return dt.filter(function(ut){return ut!==lt})})})},[b,D,y]);var se=o.useMemo(function(){return new Set(At(C))},[C]),ce=o.useMemo(function(){return new Set(At(x))},[x]),q=Te(l,m),ee=(0,O.Z)(q,2),de=ee[0],ye=ee[1],Fe=function(Be){ye(Be),Q(Be)},De=function(Be){var gt=Be.disabled,ke=Ie(Be,y);return!gt&&(ke||I||l)},Le=function(Be,gt){var ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;M(Be),!l&&(gt||I&&(F==="hover"||ke))&&u(!1)},St=o.useMemo(function(){return s?P:b},[s,P,b]),Ne=o.useMemo(function(){for(var lt=[{options:St}],Be=St,gt=Ae(Be,y),ke=function(){var Vt=de[dt],qt=Be.find(function(sn,mn){return(gt[mn]?kt(gt[mn]):sn[y.value])===Vt}),Ft=qt==null?void 0:qt[y.children];if(!(Ft!=null&&Ft.length))return 1;Be=Ft,lt.push({options:Ft})},dt=0;dt":x,I=n.loadingIcon,M=n.direction,P=n.notFoundContent,$=P===void 0?"Not Found":P,A=!!u,F=(0,_t.C8)(f,{value:v,postState:bt}),j=(0,O.Z)(F,2),V=j[0],z=j[1],D=o.useMemo(function(){return Je(m)},[JSON.stringify(m)]),ne=qe(D,s),Q=(0,O.Z)(ne,3),se=Q[0],ce=Q[1],q=Q[2],ee=$t(se,D),de=be(A,V,ce,q,ee),ye=(0,O.Z)(de,3),Fe=ye[0],De=ye[1],Le=ye[2],St=(0,_t.zX)(function(Mt){if(z(Mt),g){var Tt=bt(Mt),lt=Tt.map(function(ke){return Y(ke,se,D).map(function(dt){return dt.option})}),Be=A?Tt:Tt[0],gt=A?lt:lt[0];g(Be,gt)}}),Ne=me(A,St,Fe,De,Le,ce,q,p),ht=(0,_t.zX)(function(Mt){Ne(Mt)}),it=o.useMemo(function(){return{options:se,fieldNames:D,values:Fe,halfValues:De,changeOnSelect:h,onSelect:ht,checkable:u,searchOptions:[],dropdownPrefixCls:null,loadData:b,expandTrigger:C,expandIcon:y,loadingIcon:I,dropdownMenuColumnStyle:null}},[se,D,Fe,De,h,ht,u,b,C,y,I]),we="".concat(a,"-panel"),He=!se.length;return o.createElement(ft.Provider,{value:it},o.createElement("div",{className:k()(we,(e={},(0,Z.Z)(e,"".concat(we,"-rtl"),M==="rtl"),(0,Z.Z)(e,"".concat(we,"-empty"),He),e),l),style:i},He?$:o.createElement(Wt,{prefixCls:a,searchValue:null,multiple:A,toggleOpen:ot,open:!0,direction:M})))}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":se,q=t.loadingIcon,ee=t.children,de=t.dropdownMatchSelectWidth,ye=de===void 0?!1:de,Fe=t.showCheckedStrategy,De=Fe===void 0?vt:Fe,Le=(0,E.Z)(t,he),St=(0,vn.ZP)(n),Ne=!!m,ht=(0,rt.Z)(l,{value:s,postState:bt}),it=(0,O.Z)(ht,2),we=it[0],He=it[1],Mt=o.useMemo(function(){return Je(i)},[JSON.stringify(i)]),Tt=qe(Mt,y),lt=(0,O.Z)(Tt,3),Be=lt[0],gt=lt[1],ke=lt[2],dt=(0,rt.Z)("",{value:p,postState:function($n){return $n||""}}),ut=(0,O.Z)(dt,2),Vt=ut[0],qt=ut[1],Ft=function($n,qn){qt($n),qn.source!=="blur"&&b&&b($n)},sn=tn(C),mn=(0,O.Z)(sn,2),Zn=mn[0],Pn=mn[1],un=Ge(Vt,Be,Mt,I||a,Pn,u),Ot=$t(Be,Mt),xt=be(Ne,we,gt,ke,Ot),jt=(0,O.Z)(xt,3),Jt=jt[0],zt=jt[1],fn=jt[2],Fn=o.useMemo(function(){var Qt=At(Jt),$n=at(Qt,gt,De);return[].concat((0,ue.Z)(fn),(0,ue.Z)(ke($n)))},[Jt,gt,ke,fn,De]),Hn=Ve(Fn,Be,Mt,Ne,v),jn=(0,yt.Z)(function(Qt){if(He(Qt),f){var $n=bt(Qt),qn=$n.map(function(Hr){return Y(Hr,Be,Mt).map(function(Ya){return Ya.option})}),lr=Ne?$n:$n[0],dr=Ne?qn:qn[0];f(lr,dr)}}),kn=me(Ne,jn,Jt,zt,fn,gt,ke,De),_n=(0,yt.Z)(function(Qt){(!Ne||g)&&qt(""),kn(Qt)}),Dn=function($n,qn){if(qn.type==="clear"){jn([]);return}var lr=qn.values[0],dr=lr.valueCells;_n(dr)},On=$!==void 0?$:P,ir=F||A,br=D||z,Lr=function($n){ne==null||ne($n),Q==null||Q($n)},ln=o.useMemo(function(){return{options:Be,fieldNames:Mt,values:Jt,halfValues:zt,changeOnSelect:u,onSelect:_n,checkable:m,searchOptions:un,dropdownPrefixCls:I,loadData:M,expandTrigger:x,expandIcon:ce,loadingIcon:q,dropdownMenuColumnStyle:j}},[Be,Mt,Jt,zt,u,_n,m,un,I,M,x,ce,q,j]),Yt=!(Vt?un:Be).length,hn=Vt&&Pn.matchInputWidth||Yt?{}:{minWidth:"auto"};return o.createElement(ft.Provider,{value:ln},o.createElement(wt.Ac,(0,ie.Z)({},Le,{ref:e,id:St,prefixCls:a,autoClearSearchValue:g,dropdownMatchSelectWidth:ye,dropdownStyle:(0,d.Z)((0,d.Z)({},hn),V),displayValues:Hn,onDisplayValuesChange:Dn,mode:Ne?"multiple":void 0,searchValue:Vt,onSearch:Ft,showSearch:Zn,OptionList:Ut,emptyOptions:Yt,open:On,dropdownClassName:ir,placement:br,onDropdownVisibleChange:Lr,getRawInputElement:function(){return ee}})))});Pe.SHOW_PARENT=vt,Pe.SHOW_CHILD=Lt,Pe.Panel=ze;var Ke=Pe,Zt=Ke,Dt=c(87017),Nt=c(33915),Gt=c(48141),Sn=c(16239),gn=c(79587),Xt=c(92576),on=c(35572),pn=c(25162),bn=c(12158),Rt=c(50483),rn=c(59263),dn=c(25181),Ht=c(839),Vn=c(41779),Yn=c(39188),Bt=c(58163);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 tt(t,e){return o.useMemo(()=>e?o.createElement("span",{className:`${t}-checkbox-inner`}):!1,[e])}var je=c(70474),Qe=c(25671);function Xe(t,e,n){let r=n;n||(r=e?o.createElement(je.Z,null):o.createElement(Qe.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(75928),wn=c(87077),_e=c(25446),Un=c(6479),Rn=c(55985),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,_e.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 Zr=(0,wn.I$)("Cascader",t=>[Nr(t)],aa);const oa=t=>{const{componentCls:e}=t;return{[`${e}-panel`]:[fr(t),{display:"inline-flex",border:`${(0,_e.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,wn.ZP)(["Cascader","Panel"],t=>oa(t),aa),Za=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,bn.Z)(f),[g,p,b]=Zr(f,h);ia(f);const C=v==="rtl",[x,y]=Xe(u,C,s),I=i||(m==null?void 0:m("Cascader"))||o.createElement(on.Z,{componentName:"Cascader"}),M=tt(f,r);return g(o.createElement(ze,Object.assign({},t,{checkable:M,prefixCls:f,className:k()(n,p,a,b,h),notFoundContent:I,direction:v,expandIcon:x,loadingIcon:y})))},Fr=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,ue.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 Ea=(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=Oa(String(u),i,n)),a.push(u)}),a},Xn=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:b,showSearch:C,allowClear:x=!0,notFoundContent:y,direction:I,getPopupContainer:M,status:P,showArrow:$,builtinPlacements:A,style:F}=t,j=Fr(t,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),V=(0,Dt.Z)(j,["suffixIcon"]),{getPopupContainer:z,getPrefixCls:D,popupOverflow:ne,cascader:Q}=o.useContext(Xt.E_),{status:se,hasFeedback:ce,isFormItemInput:q,feedbackIcon:ee}=o.useContext(rn.aM),de=(0,gn.F)(se,P),[ye,Fe,De,Le]=ct(r,I),St=De==="rtl",Ne=D(),ht=(0,bn.Z)(ye),[it,we,He]=(0,Ht.Z)(ye,ht),Mt=(0,bn.Z)(Fe),[Tt]=Zr(Fe,Mt),{compactSize:lt,compactItemClassnames:Be}=(0,Bt.ri)(ye,I),gt=y||(Le==null?void 0:Le("Cascader"))||o.createElement(on.Z,{componentName:"Cascader"}),ke=k()(h||g,`${Fe}-dropdown`,{[`${Fe}-dropdown-rtl`]:De==="rtl"},s,ht,Mt,we,He),dt=o.useMemo(()=>{if(!C)return C;let fn={render:Ea};return typeof C=="object"&&(fn=Object.assign(Object.assign({},fn),C)),fn},[C]),ut=(0,Rt.Z)(fn=>{var Fn;return(Fn=a!=null?a:lt)!==null&&Fn!==void 0?Fn:fn}),Vt=o.useContext(pn.Z),qt=i!=null?i:Vt,[Ft,sn]=Xe(ye,St,p),mn=tt(Fe,u),Zn=(0,Yn.Z)(t.suffixIcon,$),{suffixIcon:Pn,removeIcon:un,clearIcon:Ot}=(0,Vn.Z)(Object.assign(Object.assign({},t),{hasFeedback:ce,feedbackIcon:ee,showSuffixIcon:Zn,multiple:u,prefixCls:ye,componentName:"Cascader"})),xt=o.useMemo(()=>b!==void 0?b:St?"bottomRight":"bottomLeft",[b,St]),jt=x===!0?{clearIcon:Ot}:x,[Jt]=(0,Nt.Cn)("SelectLike",(n=V.dropdownStyle)===null||n===void 0?void 0:n.zIndex),zt=o.createElement(Zt,Object.assign({prefixCls:ye,className:k()(!r&&Fe,{[`${ye}-lg`]:ut==="large",[`${ye}-sm`]:ut==="small",[`${ye}-rtl`]:St,[`${ye}-borderless`]:!f,[`${ye}-in-form-item`]:q},(0,gn.Z)(ye,de,ce),Be,Q==null?void 0:Q.className,l,s,ht,Mt,we,He),disabled:qt,style:Object.assign(Object.assign({},Q==null?void 0:Q.style),F)},V,{builtinPlacements:(0,dn.Z)(A,ne),direction:De,placement:xt,notFoundContent:gt,allowClear:jt,showSearch:dt,expandIcon:Ft,suffixIcon:Pn,removeIcon:un,loadingIcon:sn,checkable:mn,dropdownClassName:ke,dropdownPrefixCls:r||Fe,dropdownStyle:Object.assign(Object.assign({},V.dropdownStyle),{zIndex:Jt}),choiceTransitionName:(0,Gt.m)(Ne,"",m),transitionName:(0,Gt.m)(Ne,"slide-up",v),getPopupContainer:M||z,ref:e}));return Tt(it(zt))}),Gn=(0,Sn.Z)(Xn);Xn.SHOW_PARENT=zr,Xn.SHOW_CHILD=Wr,Xn.Panel=Za,Xn._InternalPanelDoNotUseOrYouWillBeFired=Gn;var Jn=Xn,Qn=c(66286),N=c(11527),Or=["radioType","renderFormItem","mode","render","label","light"],tr=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,Or),m=(0,o.useContext)(X.ZP.ConfigContext),h=m.getPrefixCls,g=h("pro-field-cascader"),p=(0,Qn.aK)(v),b=(0,O.Z)(p,3),C=b[0],x=b[1],y=b[2],I=(0,W.YB)(),M=(0,o.useRef)(),P=(0,o.useState)(!1),$=(0,O.Z)(P,2),A=$[0],F=$[1];(0,o.useImperativeHandle)(n,function(){return(0,d.Z)((0,d.Z)({},M.current||{}),{},{fetchData:function(Fe){return y(Fe)}})},[y]);var j=(0,o.useMemo)(function(){var ye;if(l==="read"){var Fe=((ye=v.fieldProps)===null||ye===void 0?void 0:ye.fieldNames)||{},De=Fe.value,Le=De===void 0?"value":De,St=Fe.label,Ne=St===void 0?"label":St,ht=Fe.children,it=ht===void 0?"children":ht,we=new Map,He=function Mt(Tt){if(!(Tt!=null&&Tt.length))return we;for(var lt=Tt.length,Be=0;Be=1?1:C,a:x.a})},Ma=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}}},jo=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:k()(s,a),style:i,onClick:l},o.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))},S=jo;function L(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 ae(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),b=(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",b.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",b.current),p.current=null,b.current=null}},[]);var x=function($){var A=L($),F=A.pageX,j=A.pageY,V=r.current.getBoundingClientRect(),z=V.x,D=V.y,ne=V.width,Q=V.height,se=n.current.getBoundingClientRect(),ce=se.width,q=se.height,ee=ce/2,de=q/2,ye=Math.max(0,Math.min(F-z,ne))-ee,Fe=Math.max(0,Math.min(j-D,Q))-de,De={x:ye,y:a==="x"?h.y:Fe};if(ce===0&&q===0||ce!==q)return!1;g(De),i==null||i(De)},y=function($){$.preventDefault(),x($)},I=function($){$.preventDefault(),C.current.flag=!1,document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",b.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",b.current),p.current=null,b.current=null,l==null||l()},M=function($){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",b.current),!f&&(x($),C.current.flag=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",I),document.addEventListener("touchmove",y),document.addEventListener("touchend",I),p.current=y,b.current=I)};return[h,M]}var st=ae,xn=function(e){var n=e.size,r=n===void 0?"default":n,a=e.color,i=e.prefixCls;return o.createElement("div",{className:k()("".concat(i,"-handler"),(0,Z.Z)({},"".concat(i,"-handler-sm"),r==="small")),style:{backgroundColor:a}})},Mn=xn,Tn=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)},yn=Tn,An=(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)}),nr=An,rr=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=st({color:n,containerRef:s,targetRef:u,calculate:function(b){return Ma(b,u,n)},onDragChange:function(b){var C=Qa({offset:b,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(yn,{prefixCls:a},o.createElement(nr,{offset:h,ref:u},o.createElement(Mn,{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))"}})))},Yr=rr,$a=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=hr(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=$a,_a=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),b=st({color:l,targetRef:g,containerRef:h,calculate:function(M){return Ma(M,g,l,i)},onDragChange:function(M){var P=Qa({offset:M,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)(b,2),x=C[0],y=C[1];return o.createElement("div",{ref:h,className:k()("".concat(m,"-slider"),"".concat(m,"-slider-").concat(i)),onMouseDown:y,onTouchStart:y},o.createElement(yn,{prefixCls:m},o.createElement(nr,{offset:x,ref:g},o.createElement(Mn,{size:"small",color:s,prefixCls:m})),o.createElement(Na,{colors:n,direction:r,type:i,prefixCls:m})))},Ci=_a;function xi(t){return t!==void 0}var gs=function(e,n){var r=n.defaultValue,a=n.value,i=(0,o.useState)(function(){var f;return xi(a)?f=a:xi(r)?f=r:f=e,hr(f)}),l=(0,O.Z)(i,2),s=l[0],u=l[1];return(0,o.useEffect)(function(){a&&u(hr(a))},[a]),[s,u]},ps=gs,bs=["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%"],ys=(0,o.forwardRef)(function(t,e){var n=t.value,r=t.defaultValue,a=t.prefixCls,i=a===void 0?No: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,b=ps(Fo,{value:n,defaultValue:r}),C=(0,O.Z)(b,2),x=C[0],y=C[1],I=(0,o.useMemo)(function(){var F=hr(x.toRgbString());return F.setAlpha(1),F.toRgbString()},[x]),M=k()("".concat(i,"-panel"),u,(0,Z.Z)({},"".concat(i,"-panel-disabled"),p)),P={prefixCls:i,onChangeComplete:s,disabled:p},$=function(j,V){n||y(j),l==null||l(j,V)},A=o.createElement(o.Fragment,null,o.createElement(Yr,(0,ie.Z)({color:x,onChange:$},P)),o.createElement("div",{className:"".concat(i,"-slider-container")},o.createElement("div",{className:k()("".concat(i,"-slider-group"),(0,Z.Z)({},"".concat(i,"-slider-group-disabled-alpha"),h))},o.createElement(Ci,(0,ie.Z)({gradientColors:bs,color:x,value:"hsl(".concat(x.toHsb().h,",100%, 50%)"),onChange:function(j){return $(j,"hue")}},P)),!h&&o.createElement(Ci,(0,ie.Z)({type:"alpha",gradientColors:["rgba(255, 0, 4, 0) 0%",I],color:x,value:x.toRgbString(),onChange:function(j){return $(j,"alpha")}},P))),o.createElement(S,{color:x.toRgbString(),prefixCls:i})));return o.createElement("div",{className:M,style:f,ref:e},typeof v=="function"?v(A):A)}),Cs=ys;const Si=o.createContext({}),Pi=o.createContext({}),{Provider:xs}=Si,{Provider:Ss}=Pi,qa=(t,e)=>(t==null?void 0:t.replace(/[^\w/]/gi,"").slice(0,e?8:6))||"",Ps=(t,e)=>t?qa(t,e):"";let wi=function(){function t(e){(0,jr.Z)(this,t),this.metaColor=new Ur(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 Ps(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 er=t=>t instanceof wi?t:new wi(t),eo=t=>Math.round(Number(t||0)),to=t=>eo(t.toHsb().a*100),Do=(t,e)=>{const n=t.toHsb();return n.a=e||1,er(n)};var Zi=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=er(l);a==null||a(s)}};return o.createElement("div",{className:`${e}-clear`,onClick:i})},ws=c(46545),Ir;(function(t){t.hex="hex",t.rgb="rgb",t.hsb="hsb"})(Ir||(Ir={}));var Zs=c(85824),Os=c(73715),Xr=c(38782),Es=function(e,n){return o.createElement(Xr.Z,(0,ie.Z)({},e,{ref:n,icon:Os.Z}))},Rs=o.forwardRef(Es);function To(){return typeof BigInt=="function"}function Oi(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 no(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),Oi(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()?"":no(this.number):this.origin}}]),t}();function Ei(t){return To()?new Is(t):new Ms(t)}function ro(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=Ei(t).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-v));return ro(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 Sr=Ei,$s=c(56994),Fa=c(77189),ja=c(12602);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,Ye.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message))}}return[r,a]}var Fs=c(88473),js=function(){var e=(0,o.useState)(!1),n=(0,O.Z)(e,2),r=n[0],a=n[1];return(0,Fa.Z)(function(){a((0,Fs.Z)())},[]),r},Ds=js,Qr=c(28449),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,M){I.preventDefault(),v(),f.current(M);function P(){f.current(M),s.current=setTimeout(P,Ts)}s.current=setTimeout(P,As)};o.useEffect(function(){return function(){v(),u.current.forEach(function(y){return Qr.Z.cancel(y)})}},[]);var h=Ds();if(h)return null;var g="".concat(e,"-handler"),p=k()(g,"".concat(g,"-up"),(0,Z.Z)({},"".concat(g,"-up-disabled"),a)),b=k()(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,ie.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,ie.Z)({},x,{onMouseDown:function(I){m(I,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:b}),r||o.createElement("span",{unselectable:"on",className:"".concat(e,"-handler-down-inner")})))}function Ri(t){var e=typeof t=="number"?no(t):Gr(t).fullStr,n=e.includes(".");return n?Gr(e.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:t+"0"}var Hs=c(55901),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"],Ii=function(e,n){return e||n.isEmpty()?n.toString():n.toNumber()},Mi=function(e){var n=Sr(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,b=t.upHandler,C=t.downHandler,x=t.keyboard,y=t.controls,I=y===void 0?!0:y,M=t.classNames,P=t.stringMode,$=t.parser,A=t.formatter,F=t.precision,j=t.decimalSeparator,V=t.onChange,z=t.onInput,D=t.onPressEnter,ne=t.onStep,Q=t.changeOnBlur,se=Q===void 0?!0:Q,ce=(0,E.Z)(t,Vs),q="".concat(a,"-input"),ee=o.useRef(null),de=o.useState(!1),ye=(0,O.Z)(de,2),Fe=ye[0],De=ye[1],Le=o.useRef(!1),St=o.useRef(!1),Ne=o.useRef(!1),ht=o.useState(function(){return Sr(h!=null?h:m)}),it=(0,O.Z)(ht,2),we=it[0],He=it[1];function Mt(ln){h===void 0&&He(ln)}var Tt=o.useCallback(function(ln,Yt){if(!Yt)return F>=0?F:Math.max(Jr(ln),Jr(v))},[F,v]),lt=o.useCallback(function(ln){var Yt=String(ln);if($)return $(Yt);var hn=Yt;return j&&(hn=hn.replace(j,".")),hn.replace(/[^\w.-]+/g,"")},[$,j]),Be=o.useRef(""),gt=o.useCallback(function(ln,Yt){if(A)return A(ln,{userTyping:Yt,input:String(Be.current)});var hn=typeof ln=="number"?no(ln):ln;if(!Yt){var Qt=Tt(hn,Yt);if(Lo(hn)&&(j||Qt>=0)){var $n=j||".";hn=ro(hn,$n,Qt)}}return hn},[A,Tt,j]),ke=o.useState(function(){var ln=m!=null?m:h;return we.isInvalidate()&&["string","number"].includes((0,R.Z)(ln))?Number.isNaN(ln)?"":ln:gt(we.toString(),!1)}),dt=(0,O.Z)(ke,2),ut=dt[0],Vt=dt[1];Be.current=ut;function qt(ln,Yt){Vt(gt(ln.isInvalidate()?ln.toString(!1):ln.toString(!Yt),Yt))}var Ft=o.useMemo(function(){return Mi(u)},[u,F]),sn=o.useMemo(function(){return Mi(s)},[s,F]),mn=o.useMemo(function(){return!Ft||!we||we.isInvalidate()?!1:Ft.lessEquals(we)},[Ft,we]),Zn=o.useMemo(function(){return!sn||!we||we.isInvalidate()?!1:we.lessEquals(sn)},[sn,we]),Pn=Ns(ee.current,Fe),un=(0,O.Z)(Pn,2),Ot=un[0],xt=un[1],jt=function(Yt){return Ft&&!Yt.lessEquals(Ft)?Ft:sn&&!sn.lessEquals(Yt)?sn:null},Jt=function(Yt){return!jt(Yt)},zt=function(Yt,hn){var Qt=Yt,$n=Jt(Qt)||Qt.isEmpty();if(!Qt.isEmpty()&&!hn&&(Qt=jt(Qt)||Qt,$n=!0),!p&&!g&&$n){var qn=Qt.toString(),lr=Tt(qn,hn);return lr>=0&&(Qt=Sr(ro(qn,".",lr)),Jt(Qt)||(Qt=Sr(ro(qn,".",lr,!0)))),Qt.equals(we)||(Mt(Qt),V==null||V(Qt.isEmpty()?null:Ii(P,Qt)),h===void 0&&qt(Qt,hn)),Qt}return we},fn=Bs(),Fn=function ln(Yt){if(Ot(),Be.current=Yt,Vt(Yt),!St.current){var hn=lt(Yt),Qt=Sr(hn);Qt.isNaN()||zt(Qt,!0)}z==null||z(Yt),fn(function(){var $n=Yt;$||($n=Yt.replace(/。/g,".")),$n!==Yt&&ln($n)})},Hn=function(){St.current=!0},jn=function(){St.current=!1,Fn(ee.current.value)},kn=function(Yt){Fn(Yt.target.value)},_n=function(Yt){var hn;if(!(Yt&&mn||!Yt&&Zn)){Le.current=!1;var Qt=Sr(Ne.current?Ri(v):v);Yt||(Qt=Qt.negate());var $n=(we||Sr(0)).add(Qt.toString()),qn=zt($n,!1);ne==null||ne(Ii(P,qn),{offset:Ne.current?Ri(v):v,type:Yt?"up":"down"}),(hn=ee.current)===null||hn===void 0||hn.focus()}},Dn=function(Yt){var hn=Sr(lt(ut)),Qt=hn;hn.isNaN()?Qt=zt(we,Yt):Qt=zt(hn,Yt),h!==void 0?qt(we,!1):Qt.isNaN()||qt(Qt,!1)},On=function(){Le.current=!0},ir=function(Yt){var hn=Yt.key,Qt=Yt.shiftKey;Le.current=!0,Ne.current=Qt,hn==="Enter"&&(St.current||(Le.current=!1),Dn(!1),D==null||D(Yt)),x!==!1&&!St.current&&["Up","ArrowUp","Down","ArrowDown"].includes(hn)&&(_n(hn==="Up"||hn==="ArrowUp"),Yt.preventDefault())},br=function(){Le.current=!1,Ne.current=!1},Lr=function(){se&&Dn(!1),De(!1),Le.current=!1};return(0,Fa.o)(function(){we.isInvalidate()||qt(we,!1)},[F,A]),(0,Fa.o)(function(){var ln=Sr(h);He(ln);var Yt=Sr(lt(ut));(!ln.equals(Yt)||!Le.current||A)&&qt(ln,Le.current)},[h]),(0,Fa.o)(function(){A&&xt()},[ut]),o.createElement("div",{className:k()(a,M==null?void 0:M.input,i,(n={},(0,Z.Z)(n,"".concat(a,"-focused"),Fe),(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"),we.isNaN()),(0,Z.Z)(n,"".concat(a,"-out-of-range"),!we.isInvalidate()&&!Jt(we)),n)),style:l,onFocus:function(){De(!0)},onBlur:Lr,onKeyDown:ir,onKeyUp:br,onCompositionStart:Hn,onCompositionEnd:jn,onBeforeInput:On},I&&o.createElement(Ls,{prefixCls:a,upNode:b,downNode:C,upDisabled:mn,downDisabled:Zn,onStep:_n}),o.createElement("div",{className:"".concat(q,"-wrap")},o.createElement("input",(0,ie.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":u,"aria-valuenow":we.isInvalidate()?null:we.toString(),step:v},ce,{ref:(0,ja.sQ)(ee,e),className:q,value:ut,onChange:kn,disabled:g,readOnly:p}))))}),$i=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),b=function(x){p.current&&(0,Hs.nH)(p.current,x)};return o.createElement($s.Q,{inputElement:o.createElement(zs,(0,ie.Z)({prefixCls:a,disabled:n,classNames:h,ref:(0,ja.sQ)(p,e)},g)),className:m,triggerFocus:b,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"}})});$i.displayName="InputNumber";var ks=$i,Ks=ks,Mr=c(85580),Pr=c(37324);const Ni=(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:b,handleBg:C,handleActiveBg:x,colorTextDisabled:y,borderRadiusSM:I,borderRadiusLG:M,controlWidth:P,handleOpacity:$,handleBorderColor:A,calc:F}=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,_e.bf)(n)} ${r} ${a}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${e}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:l,borderRadius:M,[`input${e}-input`]:{height:F(s).sub(F(n).mul(2)).equal()}},"&-sm":{padding:0,borderRadius:I,[`input${e}-input`]:{height:F(u).sub(F(n).mul(2)).equal(),padding:`0 ${(0,_e.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:M,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,_e.bf)(b)} ${(0,_e.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:$,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,_e.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,_e.bf)(n)} ${r} ${A}`,borderEndEndRadius:i}},Ni(t,"lg")),Ni(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:y}})},{[`${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,_e.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,wn.I$)("InputNumber",t=>{const e=(0,Pr.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:b,controls:C}=t,x=Qs(t,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),y=n("input-number",f),I=(0,bn.Z)(y),[M,P,$]=Js(y,I),{compactSize:A,compactItemClassnames:F}=(0,Bt.ri)(y,r);let j=o.createElement(Rs,{className:`${y}-handler-up-inner`}),V=o.createElement(Zs.Z,{className:`${y}-handler-down-inner`});const z=typeof C=="boolean"?C:void 0;typeof C=="object"&&(j=typeof C.upIcon=="undefined"?j:o.createElement("span",{className:`${y}-handler-up-inner`},C.upIcon),V=typeof C.downIcon=="undefined"?V:o.createElement("span",{className:`${y}-handler-down-inner`},C.downIcon));const{hasFeedback:D,status:ne,isFormItemInput:Q,feedbackIcon:se}=o.useContext(rn.aM),ce=(0,gn.F)(ne,b),q=(0,Rt.Z)(St=>{var Ne;return(Ne=s!=null?s:A)!==null&&Ne!==void 0?Ne:St}),ee=o.useContext(pn.Z),de=u!=null?u:ee,ye=k()({[`${y}-lg`]:q==="large",[`${y}-sm`]:q==="small",[`${y}-rtl`]:r==="rtl",[`${y}-borderless`]:!g,[`${y}-in-form-item`]:Q},(0,gn.Z)(y,ce),P),Fe=`${y}-group`,De=D&&o.createElement(o.Fragment,null,se),Le=o.createElement(Ks,Object.assign({ref:a,disabled:de,className:k()($,I,i,l,F),upHandler:j,downHandler:V,prefixCls:y,readOnly:p,controls:z,prefix:h,suffix:De,addonAfter:m&&o.createElement(Bt.BR,null,o.createElement(rn.Ux,{override:!0,status:!0},m)),addonBefore:v&&o.createElement(Bt.BR,null,o.createElement(rn.Ux,{override:!0,status:!0},v)),classNames:{input:ye},classes:{affixWrapper:k()((0,gn.Z)(`${y}-affix-wrapper`,ce,D),{[`${y}-affix-wrapper-sm`]:q==="small",[`${y}-affix-wrapper-lg`]:q==="large",[`${y}-affix-wrapper-rtl`]:r==="rtl",[`${y}-affix-wrapper-borderless`]:!g},P),wrapper:k()({[`${Fe}-rtl`]:r==="rtl",[`${y}-wrapper-disabled`]:de},P),group:k()({[`${y}-group-wrapper-sm`]:q==="small",[`${y}-group-wrapper-lg`]:q==="large",[`${y}-group-wrapper-rtl`]:r==="rtl"},(0,gn.Z)(`${y}-group-wrapper`,ce,D),P)}},x));return M(Le)}),ji=Fi,_s=t=>o.createElement(X.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},o.createElement(Fi,Object.assign({},t)));ji._InternalPanelDoNotUseOrYouWillBeFired=_s;var Tr=ji,_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:k()(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)(er(n||"#000"));(0,o.useEffect)(()=>{n&&l(n)},[n]);const s=u=>{const f=i.toHsb();f.a=(u||0)/100;const v=er(f);n||l(v),r==null||r(v)};return o.createElement(_r,{value:to(i),prefixCls:e,formatter:u=>`${u}%`,className:a,onChange:s})};const eu=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,Di=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();Di(u)&&n&&l(qa(u))},[n]);const s=u=>{const f=u.target.value;l(qa(f)),Di(qa(f,!0))&&(r==null||r(er(f)))};return o.createElement(mr.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)(er(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=er(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=>eo(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=>`${eo(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=>`${eo(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)(er(n||"#000"));(0,o.useEffect)(()=>{n&&l(n)},[n]);const s=(u,f)=>{const v=i.toRgb();v[f]=u||0;const m=er(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,rt.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)(Si),{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(Zi,Object.assign({prefixCls:e,value:a,colorCleared:n,onChange:v=>{l==null||l(v),s==null||s()}},f)),o.createElement(Cs,{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(13763),Bo=c(10091),Ai=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:k()("".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});Ai.displayName="PanelContent";var lu=Ai,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,b=t.extra,C=t.header,x=t.expandIcon,y=t.openMotion,I=t.destroyInactivePanel,M=t.children,P=(0,E.Z)(t,su),$=h==="disabled",A=h==="header",F=h==="icon",j=b!=null&&typeof b!="boolean",V=function(){u==null||u(p)},z=function(q){(q.key==="Enter"||q.keyCode===xe.Z.ENTER||q.which===xe.Z.ENTER)&&V()},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)?V:void 0},D));var ne=k()((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"),$),n),v),Q=k()(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"),F),r)),se={className:Q,"aria-expanded":s,"aria-disabled":$,onKeyDown:z};return!A&&!F&&(se.onClick=V,se.role=g?"tab":"button",se.tabIndex=$?-1:0),o.createElement("div",(0,ie.Z)({},P,{ref:e,className:ne}),o.createElement("div",se,i&&D,o.createElement("span",{className:"".concat(m,"-header-text"),onClick:h==="header"?V:void 0},C),j&&o.createElement("div",{className:"".concat(m,"-extra")},b)),o.createElement(Bo.ZP,(0,ie.Z)({visible:s,leavedClassName:"".concat(m,"-content-hidden")},y,{forceRender:f,removeOnLeave:I}),function(ce,q){var ee=ce.className,de=ce.style;return o.createElement(lu,{ref:q,prefixCls:m,className:ee,style:de,isActive:s,forceRender:f,role:g?"tabpanel":void 0},M)}))}),Li=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,b=m.key,C=m.collapsible,x=m.onItemClick,y=m.destroyInactivePanel,I=(0,E.Z)(m,cu),M=String(b!=null?b:h),P=C!=null?C:i,$=y!=null?y:l,A=function(V){P!=="disabled"&&(s(V),x==null||x(V))},F=!1;return a?F=u[0]===M:F=u.indexOf(M)>-1,o.createElement(Li,(0,ie.Z)({},I,{prefixCls:r,key:M,panelKey:M,isActive:F,accordion:a,openMotion:f,expandIcon:v,header:p,collapsible:P,onItemClick:A,destroyInactivePanel:$}),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,b=g.headerClass,C=g.destroyInactivePanel,x=g.collapsible,y=g.onItemClick,I=!1;i?I=f[0]===h:I=f.indexOf(h)>-1;var M=x!=null?x:l,P=function(F){M!=="disabled"&&(u(F),y==null||y(F))},$={key:h,panelKey:h,header:p,headerClass:b,isActive:I,prefixCls:a,destroyInactivePanel:C!=null?C:s,openMotion:v,accordion:i,children:e.props.children,onItemClick:P,expandIcon:m,collapsible:M};return typeof e.type=="string"?e:(Object.keys($).forEach(function(A){typeof $[A]=="undefined"&&delete $[A]}),o.cloneElement(e,$))};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,b=t.onChange,C=t.items,x=k()(r,u),y=(0,rt.Z)([],{value:g,onChange:function(j){return b==null?void 0:b(j)},defaultValue:p,postState:hu}),I=(0,O.Z)(y,2),M=I[0],P=I[1],$=function(j){return P(function(){if(s)return M[0]===j?[]:[j];var V=M.indexOf(j),z=V>-1;return z?M.filter(function(D){return D!==j}):[].concat((0,ue.Z)(M),[j])})};(0,Ye.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:$,activeKey:M});return o.createElement("div",{ref:e,className:x,style:l,role:s?"tablist":void 0},A)}),Hi=Object.assign(gu,{Panel:Li}),Bi=Hi,mg=Hi.Panel,Vi=c(37865),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=k()({[`${l}-no-arrow`]:!i},a);return o.createElement(Bi.Panel,Object.assign({ref:e},t,{prefixCls:l,className:s}))}),bu=c(40283);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:b,lineHeight:C,lineHeightLG:x,marginSM:y,paddingSM:I,paddingLG:M,paddingXS:P,motionDurationSlow:$,fontSizeIcon:A,contentPadding:F,fontHeight:j,fontHeightLG:V}=t,z=`${(0,_e.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,_e.bf)(u)} ${(0,_e.bf)(u)}`}},[`> ${e}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:g,lineHeight:C,cursor:"pointer",transition:`all ${$}, visibility 0s`,[`> ${e}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${e}-expand-icon`]:{height:j,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${e}-arrow`]:Object.assign(Object.assign({},(0,Rn.Ro)()),{fontSize:A,svg:{transition:`transform ${$}`}}),[`${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:F},["&-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:b,lineHeight:x,[`> ${e}-header`]:{padding:s,paddingInlineStart:r,[`> ${e}-expand-icon`]:{height:V,marginInlineStart:t.calc(M).sub(r).equal()}},[`> ${e}-content > ${e}-content-box`]:{padding:M}}},[`${e}-item:last-child`]:{[`> ${e}-content`]:{borderRadius:`0 0 ${(0,_e.bf)(u)} ${(0,_e.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:y}}}}})}},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,wn.I$)("Collapse",t=>{const e=(0,Pr.TS)(t,{collapseHeaderPaddingSM:`${(0,_e.bf)(t.paddingXS)} ${(0,_e.bf)(t.paddingSM)}`,collapseHeaderPaddingLG:`${(0,_e.bf)(t.padding)} ${(0,_e.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,b=(0,Rt.Z)(V=>{var z;return(z=m!=null?m:V)!==null&&z!==void 0?z:"middle"}),C=n("collapse",i),x=n(),[y,I,M]=wu(C),P=o.useMemo(()=>h==="left"?"start":h==="right"?"end":h,[h]),$=function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const z=p?p(V):o.createElement(Qe.Z,{rotate:V.isActive?90:void 0});return(0,Vi.Tm)(z,()=>({className:k()(z.props.className,`${C}-arrow`)}))},A=k()(`${C}-icon-position-${P}`,{[`${C}-borderless`]:!f,[`${C}-rtl`]:r==="rtl",[`${C}-ghost`]:!!v,[`${C}-${b}`]:b!=="middle"},a==null?void 0:a.className,l,s,I,M),F=Object.assign(Object.assign({},(0,Gt.Z)(x)),{motionAppear:!1,leavedClassName:`${C}-content-hidden`}),j=o.useMemo(()=>g?(0,Ho.Z)(g).map((V,z)=>{var D,ne;if(!((D=V.props)===null||D===void 0)&&D.disabled){const Q=(ne=V.key)!==null&&ne!==void 0?ne:String(z),{disabled:se,collapsible:ce}=V.props,q=Object.assign(Object.assign({},(0,Dt.Z)(V.props,["disabled"])),{key:Q,collapsible:ce!=null?ce:se?"disabled":void 0});return(0,Vi.Tm)(V,q)}return V}):null,[g]);return y(o.createElement(Bi,Object.assign({ref:e,openMotion:F},(0,Dt.Z)(t,["rootClassName"]),{expandIcon:$,prefixCls:C,className:A,style:Object.assign(Object.assign({},a==null?void 0:a.style),u)}),j))}),{Panel:pu}),Ou=Zu,Eu=c(91886);const Vo=t=>t.map(e=>(e.colors=e.colors.map(er),e)),Ru=(t,e)=>{const{r:n,g:r,b:a,a:i}=t.toRgb(),l=new Ur(t.toRgbString()).onBackground(e).toHsv();return i<=.5?l.v>.5:n*.299+r*.587+a*.114>192},Wi=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,Kr.ZP)(),[s]=(0,rt.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(Wi(g)),h},[]),[s]),v=h=>{a==null||a(h)},m=s.map(h=>{var g;return{key:Wi(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,b)=>o.createElement(S,{key:`preset-${b}-${p.toHexString()}`,color:er(p).toRgbString(),prefixCls:e,className:k()(`${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}))},zi=()=>{const{prefixCls:t,value:e,presets:n,onChange:r}=(0,o.useContext)(Pi);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(Ti,null),Array.isArray(n)&&o.createElement(Ia.Z,{className:`${u}-divider`}),o.createElement(zi,null));return o.createElement(xs,{value:f},o.createElement(Ss,{value:v},o.createElement("div",{className:u},typeof r=="function"?r(m,{components:{Picker:Ti,Presets:zi}}):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(Zi,{prefixCls:r}):o.createElement(S,{prefixCls:r,color:n.toRgbString()}),[n,i,r]),g=()=>{const b=n.toHexString().toUpperCase(),C=to(n);switch(s){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();case"hex":default:return C<100?`${b.slice(0,7)},${C}%`:b}},p=()=>{if(typeof f=="function")return f(n);if(f)return g()};return o.createElement("div",Object.assign({ref:e,className:k()(m,u,{[`${m}-active`]:a,[`${m}-disabled`]:l})},v),h,f&&o.createElement("div",{className:`${m}-text`},p()))});function ki(t){return t!==void 0}var ju=(t,e)=>{const{defaultValue:n,value:r}=e,[a,i]=(0,o.useState)(()=>{let l;return ki(r)?l=r:ki(n)?l=n:l=t,er(l||"")});return(0,o.useEffect)(()=>{r&&i(er(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 Ui=(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,_e.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,_e.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,_e.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,_e.bf)(m)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:(0,_e.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,_e.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,_e.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:b}=t;return{[`${e}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:b,color:r,paddingInlineEnd:a}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:g},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${(0,_e.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,_e.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,_e.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,_e.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"}}}}},Yi=(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,_e.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:b,colorPickerPreviewSize:C,lineWidth:x,colorBorder:y,paddingXXS:I,fontSize:M,colorPrimaryHover:P,controlOutline:$}=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,_e.bf)(m)} 0 ${(0,_e.bf)(v)}`},[`${e}-panel`]:Object.assign({},Tu(t))},Ui(t,C)),Du(t)),Au(t)),Yi(t,b,{marginInlineStart:"auto",marginBottom:v})),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:h,height:h,borderRadius:f,border:`${(0,_e.bf)(x)} solid ${y}`,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:M,color:s},"&:hover":{borderColor:P},[`&${e}-trigger-active`]:Object.assign({},Wo(t,r,$)),"&-disabled":{color:l,background:u,cursor:"not-allowed","&:hover":{borderColor:p},[`${e}-trigger-text`]:{color:l}}},Yi(t,g)),Ui(t,g)),Hu(t)),Bu(t))},Lu(t))}]};var Wu=(0,wn.I$)("ColorPicker",t=>{const{colorTextQuaternary:e,marginSM:n}=t,r=8,a=(0,Pr.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:b,className:C,size:x,rootClassName:y,prefixCls:I,styles:M,disabledAlpha:P=!1,onFormatChange:$,onChange:A,onClear:F,onOpenChange:j,onChangeComplete:V,getPopupContainer:z,autoAdjustOverflow:D=!0,destroyTooltipOnHide:ne}=t,Q=zu(t,["value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide"]),{getPrefixCls:se,direction:ce,colorPicker:q}=(0,o.useContext)(Xt.E_),ee=(0,o.useContext)(pn.Z),de=v!=null?v:ee,[,ye]=(0,Kr.ZP)(),[Fe,De]=ju(ye.colorPrimary,{value:e,defaultValue:n}),[Le,St]=(0,rt.Z)(!1,{value:f,postState:jt=>!de&&jt,onChange:j}),[Ne,ht]=(0,rt.Z)(r,{value:r,defaultValue:a,onChange:$}),[it,we]=(0,o.useState)(!1),He=se("color-picker",I),Mt=(0,o.useMemo)(()=>to(Fe)<100,[Fe]),{status:Tt}=o.useContext(rn.aM),lt=(0,Rt.Z)(x),Be=(0,bn.Z)(He),[gt,ke,dt]=Wu(He,Be),ut={[`${He}-rtl`]:ce},Vt=k()(y,dt,Be,ut),qt=k()((0,gn.Z)(He,Tt),{[`${He}-sm`]:lt==="small",[`${He}-lg`]:lt==="large"},q==null?void 0:q.className,Vt,C,ke),Ft=k()(He,Vt),sn=(0,o.useRef)(!0),mn=(jt,Jt,zt)=>{let fn=er(jt);(it||(e===null||!e&&n===null))&&(we(!1),to(Fe)===0&&Jt!=="alpha"&&(fn=Do(fn))),P&&Mt&&(fn=Do(fn)),zt?sn.current=!1:V==null||V(fn),De(fn),A==null||A(fn,fn.toHexString())},Zn=()=>{we(!0),F==null||F()},Pn=jt=>{sn.current=!0;let Jt=er(jt);P&&Mt&&(Jt=Do(jt)),V==null||V(Jt)},un={open:Le,trigger:u,placement:m,arrow:h,rootClassName:y,getPopupContainer:z,autoAdjustOverflow:D,destroyTooltipOnHide:ne},Ot={prefixCls:He,color:Fe,allowClear:i,colorCleared:it,disabled:de,disabledAlpha:P,presets:l,panelRender:g,format:Ne,onFormatChange:ht,onChangeComplete:Pn},xt=Object.assign(Object.assign({},q==null?void 0:q.style),b);return gt(o.createElement(Ra.Z,Object.assign({style:M==null?void 0:M.popup,overlayInnerStyle:M==null?void 0:M.popupOverlayInner,onOpenChange:jt=>{sn.current&&!de&&St(jt)},content:o.createElement(rn.Ux,{override:!0,status:!0},o.createElement($u,Object.assign({},Ot,{onChange:mn,onChangeComplete:Pn,onClear:Zn}))),overlayClassName:Ft},un),s||o.createElement(Fu,Object.assign({open:Le,className:qt,style:xt,color:e?er(e):Fe,prefixCls:He,disabled:de,colorCleared:it,showText:p,format:Ne},Q))))},ku=(0,Sn.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(80014),Yu=c(67929),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 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 Xi(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 ao(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 ca(t){"@babel/helpers - typeof";return ca=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},ca(t)}function mc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qi(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 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 Rc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function el(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(ol,[3])},tetrad:function(){return this._applyCombination(ol,[4])}},It.fromRatio=function(t,e){if(so(t)=="object"){var n={};for(var r in t)t.hasOwnProperty(r)&&(r==="a"?n[r]=t[r]:n[r]=Ta(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)),so(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=Ta(t.s),a=Ta(t.v),e=Xc(t.h,r,a),l=!0,s="hsv"):$r(t.h)&&$r(t.s)&&$r(t.l)&&(r=Ta(t.s),i=Ta(t.l),e=Yc(t.h,r,i),l=!0,s="hsl"),t.hasOwnProperty("a")&&(n=t.a)),n=il(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 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+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 nl(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 il(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 uo(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 Ta(t){return t<=1&&(t=t*100+"%"),t}function ll(t){return Math.round(parseFloat(t)*255).toString(16)}function sl(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:sl(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:sl(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 ul=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},Aa=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=Aa(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 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 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===hl?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),Ha=Bd;function ma(t){"@babel/helpers - typeof";return ma=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},ma(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(Ha,{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(Ha,{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(Ha,{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(Ha,{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(Ha,{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 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 yl(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 Cl(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)&&Pl()?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?"":k()((0,Z.Z)({},h,Pl()))},[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 b=(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:b,className:g}));return l?l(r,(0,d.Z)((0,d.Z)({mode:a},s),{},{style:b}),C):C}return null},Sf=o.forwardRef(xf),Pf=c(5726),Ln=c.n(Pf),wf=c(25010),Zf=c.n(wf),ni=c(81954);Ln().extend(Zf());var wl=function(e){return!!(e!=null&&e._isAMomentObject)},za=function t(e,n){return(0,ni.k)(e)||Ln().isDayjs(e)||wl(e)?wl(e)?Ln()(e):e:Array.isArray(e)?e.map(function(r){return t(r,n)}):typeof e=="number"?Ln()(e):Ln()(e,n)},qr=c(52978),Of=c(83867),Zl=c.n(Of);Ln().extend(Zl());var Ef=function(e,n){return e?typeof n=="function"?n(Ln()(e)):Ln()(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,b=e.lightLabel,C=(0,W.YB)(),x=(0,o.useState)(!1),y=(0,O.Z)(x,2),I=y[0],M=y[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 $,A=h.disabled,F=h.value,j=h.placeholder,V=j===void 0?C.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"):j,z=za(F);return s?$=(0,N.jsx)(U.Q,{label:l,onClick:function(){var ne;h==null||(ne=h.onOpenChange)===null||ne===void 0||ne.call(h,!0),M(!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(ne){var Q;M(ne),h==null||(Q=h.onOpenChange)===null||Q===void 0||Q.call(h,ne)},bordered:!1,open:I})):void 0,allowClear:!1,downIcon:z||I?!1:void 0,bordered:p,ref:b}):$=(0,N.jsx)(qr.default,(0,d.Z)((0,d.Z)({picker:g,showTime:m,format:i,placeholder:V,bordered:v===void 0?!0:!v,ref:n},h),{},{value:z})),f?f(r,(0,d.Z)({mode:a},h),$):$}return null},ha=o.forwardRef(Rf),mo=c(71770),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,W.YB)(),v=l||f.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),m=(0,o.useCallback)(function(x){var y=x!=null?x:void 0;return!u.stringMode&&typeof y=="string"&&(y=Number(y)),typeof y=="number"&&!(0,ni.k)(y)&&!(0,ni.k)(u.precision)&&(y=Number(y.toFixed(u.precision))),y},[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)),b=(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),b):b}if(a==="edit"||a==="update"){var C=(0,N.jsx)(Tr,(0,d.Z)((0,d.Z)({ref:n,min:0,placeholder:v},(0,mo.Z)(u,["onChange","onBlur"])),{},{onChange:function(y){var I;return u==null||(I=u.onChange)===null||I===void 0?void 0:I.call(u,m(y))},onBlur:function(y){var I;return u==null||(I=u.onBlur)===null||I===void 0?void 0:I.call(u,m(y.target.value))}}));return s?s(r,(0,d.Z)({mode:a},u),C):C}return null},Mf=o.forwardRef(If),ri=c(10994),$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,b=u.onChange,C=u.id,x=(0,W.YB)(),y=Nn.Ow.useToken(),I=y.token,M=(0,rt.Z)(function(){return p},{value:g,onChange:b}),P=(0,O.Z)(M,2),$=P[0],A=P[1];if(a==="read"){var F=function(ee){var de,ye=new Intl.NumberFormat(void 0,(0,d.Z)({minimumSignificantDigits:2},(u==null?void 0:u.intlProps)||{})).format(Number(ee));return(u==null||(de=u.formatter)===null||de===void 0?void 0:de.call(u,ye))||ye},j=(0,N.jsxs)("span",{ref:n,children:[F(r[0])," ",v," ",F(r[1])]});return i?i(r,(0,d.Z)({mode:a},u),j):j}if(a==="edit"||a==="update"){var V=function(){if(Array.isArray($)){var ee=(0,O.Z)($,2),de=ee[0],ye=ee[1];typeof de=="number"&&typeof ye=="number"&&de>ye?A([ye,de]):de===void 0&&ye===void 0&&A(void 0)}},z=function(ee,de){var ye=(0,ue.Z)($||[]);ye[ee]=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")],ne=function(ee){return Array.isArray(D)?D[ee]:D},Q=ri.Z.Compact||mr.Z.Group,se=ri.Z.Compact?{}:{compact:!0},ce=(0,N.jsxs)(Q,(0,d.Z)((0,d.Z)({},se),{},{onBlur:V,children:[(0,N.jsx)(Tr,(0,d.Z)((0,d.Z)({},u),{},{placeholder:ne(0),id:C!=null?C:"".concat(C,"-0"),style:{width:"calc((100% - ".concat(h,"px) / 2)")},value:$==null?void 0:$[0],defaultValue:p==null?void 0:p[0],onChange:function(ee){return z(0,ee)}})),(0,N.jsx)(mr.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:ne(1),id:C!=null?C:"".concat(C,"-1"),style:{width:"calc((100% - ".concat(h,"px) / 2)"),borderInlineStart:0},value:$==null?void 0:$[1],defaultValue:p==null?void 0:p[1],onChange:function(ee){return z(1,ee)}}))]}));return s?s(r,(0,d.Z)({mode:a},u),ce):ce}return null},Nf=o.forwardRef($f),ai=c(27850),Ff=c(92117),jf=c.n(Ff);Ln().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,W.YB)();if(a==="read"){var v=(0,N.jsx)(ai.Z,{title:Ln()(r).format((u==null?void 0:u.format)||s||"YYYY-MM-DD HH:mm:ss"),children:Ln()(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=za(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),Ol=c(96527),oi=c(74253),ii=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],ka=o.createContext(null),El=0;function Af(t,e){var n=o.useState(function(){return El+=1,String(El)}),r=(0,O.Z)(n,1),a=r[0],i=o.useContext(ka),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 Rl(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(43377),ga=c(52802),Il=c(18342),ho={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)(ho),s=(0,O.Z)(l,2),u=s[0],f=s[1],v=function(p){f(ho),r&&!(0,Il.Z)(ho,u)&&r({transform:ho,action:p})},m=function(p,b){a.current===null&&(i.current=[],a.current=(0,Qr.Z)(function(){f(function(C){var x=C;return i.current.forEach(function(y){x=(0,d.Z)((0,d.Z)({},x),y)}),a.current=null,r==null||r({transform:x,action:b}),x})})),i.current.push((0,d.Z)((0,d.Z)({},u),p))},h=function(p,b,C,x,y){var I=t.current,M=I.width,P=I.height,$=I.offsetWidth,A=I.offsetHeight,F=I.offsetLeft,j=I.offsetTop,V=p,z=u.scale*p;z>n?(z=n,V=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 $l(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)({},Ml("x",n,t,i)),Ml("y",r,e,l))),s}var pa=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],b=(0,o.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),C=function(P){!e||P.button!==0||(P.preventDefault(),P.stopPropagation(),b.current={diffX:P.pageX-f,diffY:P.pageY-v,transformX:f,transformY:v},p(!0))},x=function(P){n&&g&&i({x:P.pageX-b.current.diffX,y:P.pageY-b.current.diffY},"move")},y=function(){if(n&&g){p(!1);var P=b.current,$=P.transformX,A=P.transformY,F=f!==$&&v!==A;if(!F)return;var j=t.current.offsetWidth*u,V=t.current.offsetHeight*u,z=t.current.getBoundingClientRect(),D=z.left,ne=z.top,Q=s%180!==0,se=$l(Q?V:j,Q?j:V,D,ne);se&&i((0,d.Z)({},se),"dragRebound")}},I=function(P){if(!(!n||P.deltaY==0)){var $=Math.abs(P.deltaY/100),A=Math.min($,Vf),F=pa+A*r;P.deltaY>0&&(F=pa/F),l(F,"wheel",P.clientX,P.clientY)}};return(0,o.useEffect)(function(){var M,P,$,A;if(e){$=(0,ga.Z)(window,"mouseup",y,!1),A=(0,ga.Z)(window,"mousemove",x,!1);try{window.top!==window.self&&(M=(0,ga.Z)(window.top,"mouseup",y,!1),P=(0,ga.Z)(window.top,"mousemove",x,!1))}catch(F){(0,Ye.Kp)(!1,"[rc-image] ".concat(F))}}return function(){var F,j,V,z;(F=$)===null||F===void 0||F.remove(),(j=A)===null||j===void 0||j.remove(),(V=M)===null||V===void 0||V.remove(),(z=P)===null||z===void 0||z.remove()}},[n,g,f,v,s,e]),{isMoving:g,onMouseDown:C,onMouseMove:x,onMouseUp:y,onWheel:I}}function go(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=go(t,n),i=go(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],b=(0,o.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),C=function(P){b.current=(0,d.Z)((0,d.Z)({},b.current),P)},x=function(P){if(e){P.stopPropagation(),p(!0);var $=P.touches,A=$===void 0?[]:$;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"})}},y=function(P){var $=P.touches,A=$===void 0?[]:$,F=b.current,j=F.point1,V=F.point2,z=F.eventType;if(A.length>1&&z==="touchZoom"){var D={x:A[0].clientX,y:A[0].clientY},ne={x:A[1].clientX,y:A[1].clientY},Q=zf(j,V,D,ne),se=(0,O.Z)(Q,2),ce=se[0],q=se[1],ee=go(D,ne)/go(j,V);l(ee,"touchZoom",ce,q,!0),C({point1:D,point2:ne,eventType:"touchZoom"})}else z==="move"&&(i({x:A[0].clientX-j.x,y:A[0].clientY-j.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,$=t.current.offsetHeight*u,A=t.current.getBoundingClientRect(),F=A.left,j=A.top,V=s%180!==0,z=$l(V?$:P,V?P:$,F,j);z&&i((0,d.Z)({},z),"dragRebound")}};return(0,o.useEffect)(function(){var M;return n&&e&&(M=(0,ga.Z)(window,"touchmove",function(P){return P.preventDefault()},{passive:!1})),function(){var P;(P=M)===null||P===void 0||P.remove()}},[n,e]),{isTouching:g,onTouchStart:x,onTouchMove:y,onTouchEnd:I}}var Kf=c(89337),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,b=e.minScale,C=e.maxScale,x=e.closeIcon,y=e.onSwitchLeft,I=e.onSwitchRight,M=e.onClose,P=e.onZoomIn,$=e.onZoomOut,A=e.onRotateRight,F=e.onRotateLeft,j=e.onFlipX,V=e.onFlipY,z=e.toolbarRender,D=e.zIndex,ne=(0,o.useContext)(ka),Q=s.rotateLeft,se=s.rotateRight,ce=s.zoomIn,q=s.zoomOut,ee=s.close,de=s.left,ye=s.right,Fe=s.flipX,De=s.flipY,Le="".concat(i,"-operations-operation");o.useEffect(function(){var it=function(He){He.keyCode===xe.Z.ESC&&M()};return n&&window.addEventListener("keydown",it),function(){window.removeEventListener("keydown",it)}},[n]);var St=[{icon:De,onClick:V,type:"flipY"},{icon:Fe,onClick:j,type:"flipX"},{icon:Q,onClick:F,type:"rotateLeft"},{icon:se,onClick:A,type:"rotateRight"},{icon:q,onClick:$,type:"zoomOut",disabled:p<=b},{icon:ce,onClick:P,type:"zoomIn",disabled:p===C}],Ne=St.map(function(it){var we,He=it.icon,Mt=it.onClick,Tt=it.type,lt=it.disabled;return o.createElement("div",{className:k()(Le,(we={},(0,Z.Z)(we,"".concat(i,"-operations-operation-").concat(Tt),!0),(0,Z.Z)(we,"".concat(i,"-operations-operation-disabled"),!!lt),we)),onClick:Mt,key:Tt},He)}),ht=o.createElement("div",{className:"".concat(i,"-operations")},Ne);return o.createElement(Bo.ZP,{visible:n,motionName:r},function(it){var we=it.className,He=it.style;return o.createElement(Kf.Z,{open:!0,getContainer:a!=null?a:document.body},o.createElement("div",{className:k()("".concat(i,"-operations-wrapper"),we,l),style:(0,d.Z)((0,d.Z)({},He),{},{zIndex:D})},x===null?null:o.createElement("button",{className:"".concat(i,"-close"),onClick:M},x||ee),f&&o.createElement(o.Fragment,null,o.createElement("div",{className:k()("".concat(i,"-switch-left"),(0,Z.Z)({},"".concat(i,"-switch-left-disabled"),m===0)),onClick:y},de),o.createElement("div",{className:k()("".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(ht,(0,d.Z)({icons:{flipYIcon:Ne[0],flipXIcon:Ne[1],rotateLeftIcon:Ne[2],rotateRightIcon:Ne[3],zoomOutIcon:Ne[4],zoomInIcon:Ne[5]},actions:{onFlipY:V,onFlipX:j,onRotateLeft:F,onRotateRight:A,onZoomOut:$,onZoomIn:P},transform:h},ne?{current:m,total:g}:{})):ht)))})},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=Rl({src:r,fallback:n}),s=(0,O.Z)(l,2),u=s[0],f=s[1];return o.createElement("img",(0,ie.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,b=e.current,C=b===void 0?0:b,x=e.count,y=x===void 0?1:x,I=e.countRender,M=e.scaleStep,P=M===void 0?.5:M,$=e.minScale,A=$===void 0?1:$,F=e.maxScale,j=F===void 0?50:F,V=e.transitionName,z=V===void 0?"zoom":V,D=e.maskTransitionName,ne=D===void 0?"fade":D,Q=e.imageRender,se=e.imgCommonProps,ce=e.toolbarRender,q=e.onTransform,ee=e.onChange,de=(0,E.Z)(e,Gf),ye=(0,o.useRef)(),Fe=(0,o.useContext)(ka),De=Fe&&y>1,Le=Fe&&y>=1,St=(0,o.useState)(!0),Ne=(0,O.Z)(St,2),ht=Ne[0],it=Ne[1],we=Bf(ye,A,j,q),He=we.transform,Mt=we.resetTransform,Tt=we.updateTransform,lt=we.dispatchZoomChange,Be=Wf(ye,s,f,P,He,Tt,lt),gt=Be.isMoving,ke=Be.onMouseDown,dt=Be.onWheel,ut=kf(ye,s,f,A,He,Tt,lt),Vt=ut.isTouching,qt=ut.onTouchStart,Ft=ut.onTouchMove,sn=ut.onTouchEnd,mn=He.rotate,Zn=He.scale,Pn=k()((0,Z.Z)({},"".concat(n,"-moving"),gt));(0,o.useEffect)(function(){ht||it(!0)},[ht]);var un=function(){Mt("close")},Ot=function(){lt(pa+P,"zoomIn")},xt=function(){lt(pa/(pa+P),"zoomOut")},jt=function(){Tt({rotate:mn+90},"rotateRight")},Jt=function(){Tt({rotate:mn-90},"rotateLeft")},zt=function(){Tt({flipX:!He.flipX},"flipX")},fn=function(){Tt({flipY:!He.flipY},"flipY")},Fn=function(On){On==null||On.preventDefault(),On==null||On.stopPropagation(),C>0&&(it(!1),Mt("prev"),ee==null||ee(C-1,C))},Hn=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 ur.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},Rn.vS),{padding:`0 ${(0,_e.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 ur.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,_e.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 ur.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 ur.C(t.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new ur.C(t.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new ur.C(t.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:t.fontSizeIcon*1.5});var Tl=(0,wn.I$)("Image",t=>{const e=`${t.componentCls}-preview`,n=(0,Pr.TS)(t,{previewCls:e,modalMaskBg:new ur.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:t.controlHeightLG});return[Fv(n),Nv(n),(0,Ov.QA)((0,Pr.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,bn.Z)(i),[f,v,m]=Tl(i,u),[h]=(0,Nt.Cn)("ImagePreview",typeof n=="object"?n.zIndex:void 0),g=o.useMemo(()=>{var p;if(n===!1)return n;const b=typeof n=="object"?n:{},C=k()(v,m,u,(p=b.rootClassName)!==null&&p!==void 0?p:"");return Object.assign(Object.assign({},b),{transitionName:(0,Gt.m)(s,"zoom",b.transitionName),maskTransitionName:(0,Gt.m)(s,"fade",b.maskTransitionName),rootClassName:C,zIndex:h})},[n]);return f(o.createElement(Fl.PreviewGroup,Object.assign({preview:g,previewPrefixCls:l,icons:Al},r)))},Ll=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=Ll(t,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:s,locale:u=jl.Z,getPopupContainer:f,image:v}=o.useContext(Xt.E_),m=s("image",e),h=s(),g=u.Image||jl.Z.Image,p=(0,bn.Z)(m),[b,C,x]=Tl(m,p),y=k()(a,C,x,p),I=k()(r,C,v==null?void 0:v.className),[M]=(0,Nt.Cn)("ImagePreview",typeof n=="object"?n.zIndex:void 0),P=o.useMemo(()=>{if(n===!1)return n;const A=typeof n=="object"?n:{},{getContainer:F}=A,j=Ll(A,["getContainer"]);return Object.assign(Object.assign({mask:o.createElement("div",{className:`${m}-mask-info`},o.createElement(Ol.Z,null),g==null?void 0:g.preview),icons:Al},j),{getContainer:F||f,transitionName:(0,Gt.m)(h,"zoom",A.transitionName),maskTransitionName:(0,Gt.m)(h,"fade",A.maskTransitionName),zIndex:M})},[n,g]),$=Object.assign(Object.assign({},v==null?void 0:v.style),i);return b(o.createElement(Fl,Object.assign({prefixCls:m,preview:P,rootClassName:y,className:I,style:$},l)))};Hl.PreviewGroup=Av;var Lv=Hl,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,W.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)(mr.Z,(0,d.Z)({ref:e,placeholder:v},l));return i?i(n,(0,d.Z)({mode:r},l),h):h}return null}),Bl=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,Nn.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:k()(f,h,(r={},(0,Z.Z)(r,"".concat(f,"-border"),i),(0,Z.Z)(r,"top-three",l>3),r)),children:l}))},Vl=o.forwardRef(Bv),Wl=c(42911),Vv=c(11130),Wv=["contentRender","numberFormatOptions","numberPopoverRender","open"],zv=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],zl=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:zl,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":kv,"ru-RU":Kv,"ms-MY":Yv,"sr-RS":Uv,"pt-BR":Xv},kl=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"]||zl),{},{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,rt.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,b=p===void 0?u.customSymbol:p,C=e.numberFormatOptions,x=C===void 0?u==null?void 0:u.numberFormatOptions:C,y=e.numberPopoverRender,I=y===void 0?(u==null?void 0:u.numberPopoverRender)||!1:y,M=(0,E.Z)(e,zv),P=(r=u==null?void 0:u.precision)!==null&&r!==void 0?r:ui,$=(0,W.YB)();g&&Wl.Go[g]&&($=Wl.Go[g]);var A=h||$.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),F=(0,o.useMemo)(function(){if(b)return b;if(!(M.moneySymbol===!1||u.moneySymbol===!1))return $.getMessage("moneySymbol","\xA5")},[b,u.moneySymbol,$,M.moneySymbol]),j=(0,o.useCallback)(function(D){var ne=new RegExp("\\B(?=(\\d{".concat(3+Math.max(P-ui,0),"})+(?!\\d))"),"g"),Q=String(D).split("."),se=(0,O.Z)(Q,2),ce=se[0],q=se[1],ee=ce.replace(ne,","),de="";return q&&P>0&&(de=".".concat(q.slice(0,P===void 0?ui:P))),"".concat(ee).concat(de)},[P]);if(i==="read"){var V=(0,N.jsx)("span",{ref:n,children:kl(g||!1,a,P,x!=null?x:u.numberFormatOptions,F)});return l?l(a,(0,d.Z)({mode:i},u),V):V}if(i==="edit"||i==="update"){var z=(0,N.jsx)(Jv,(0,d.Z)((0,d.Z)({contentRender:function(ne){if(I===!1||!ne.value)return null;var Q=kl(F||g||!1,"".concat(j(ne.value)),P,(0,d.Z)((0,d.Z)({},x),{},{notation:"compact"}),F);return typeof I=="function"?I==null?void 0:I(ne,Q):Q},ref:n,precision:P,formatter:function(ne){return ne&&F?"".concat(F," ").concat(j(ne)):ne==null?void 0:ne.toString()},parser:function(ne){return F&&ne?ne.replace(new RegExp("\\".concat(F,"\\s?|(,*)"),"g"),""):ne},placeholder:A},(0,mo.Z)(u,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:u.onBlur?function(D){var ne,Q=D.target.value;F&&Q&&(Q=Q.replace(new RegExp("\\".concat(F,"\\s?|(,*)"),"g"),"")),(ne=u.onBlur)===null||ne===void 0||ne.call(u,Q)}:void 0}));return s?s(a,(0,d.Z)({mode:i},u),z):z}return null},Kl=o.forwardRef(Qv),Ul=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=Nn.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:Ul(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:Ul(r)})},qv=o.forwardRef(_v),e0=c(57249),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,W.YB)(),m=(0,rt.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 b=(0,N.jsx)(N.Fragment,{children:"-"});return r&&(b=(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)(Ol.Z,{}):(0,N.jsx)(e0.Z,{})})]})),i?i(r,(0,d.Z)({mode:a},s),b):b}if(a==="edit"||a==="update"){var C=(0,N.jsx)(mr.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(65490),po=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,b=e.showSymbol,C=(0,W.YB)(),x=p||C.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),y=(0,o.useMemo)(function(){return typeof r=="string"&&r.includes("%")?po()(r.replace("%","")):po()(r)},[r]),I=(0,o.useMemo)(function(){return typeof b=="function"?b==null?void 0:b(r):b},[b,r]);if(u==="read"){var M=v?{color:i0(y)}:{},P=(0,N.jsxs)("span",{style:M,ref:n,children:[a&&(0,N.jsx)("span",{children:a}),I&&(0,N.jsxs)(o.Fragment,{children:[o0(y)," "]}),l0(Math.abs(y),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 $=(0,N.jsx)(Tr,(0,d.Z)({ref:n,formatter:function(F){return F&&a?"".concat(a," ").concat(F).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):F},parser:function(F){return F?F.replace(/.*\s|,/g,""):""},placeholder:x},g));return h?h(r,(0,d.Z)({mode:u},g),$):$}return null},Yl=o.forwardRef(s0),u0=c(24156);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,W.YB)(),m=f||v.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),h=(0,o.useMemo)(function(){return typeof r=="string"&&r.includes("%")?po()(r.replace("%","")):po()(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},Xl=o.forwardRef(d0),f0=c(3590),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,Qn.aK)(f),p=(0,O.Z)(g,3),b=p[0],C=p[1],x=p[2],y=(0,o.useRef)(),I=(r=vr.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)({},y.current||{}),{},{fetchData:function(se){return x(se)}})},[x]);var M=(0,Nn.Xj)("FieldRadioRadio",function(Q){var se;return se={},(0,Z.Z)(se,".".concat(h,"-error"),{span:{color:Q.colorError}}),(0,Z.Z)(se,".".concat(h,"-warning"),{span:{color:Q.colorWarning}}),(0,Z.Z)(se,".".concat(h,"-vertical"),(0,Z.Z)({},"".concat(Q.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0})),se}),P=M.wrapSSR,$=M.hashId;if(b)return(0,N.jsx)(xr.Z,{size:"small"});if(s==="read"){var A=C!=null&&C.length?C==null?void 0:C.reduce(function(Q,se){var ce;return(0,d.Z)((0,d.Z)({},Q),{},(0,Z.Z)({},(ce=se.value)!==null&&ce!==void 0?ce:"",se.label))},{}):void 0,F=(0,N.jsx)(N.Fragment,{children:(0,w.MP)(f.text,(0,w.R6)(f.valueEnum||A))});if(u){var j;return(j=u(f.text,(0,d.Z)({mode:s},f.fieldProps),F))!==null&&j!==void 0?j:null}return F}if(s==="edit"){var V,z,D=P((0,N.jsx)(f0.ZP.Group,(0,d.Z)((0,d.Z)({ref:y,optionType:i},f.fieldProps),{},{className:k()((V=f.fieldProps)===null||V===void 0?void 0:V.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),$,"".concat(h,"-").concat(f.fieldProps.layout||"horizontal")),options:C})));if(l){var ne;return(ne=l(f.text,(0,d.Z)((0,d.Z)({mode:s},f.fieldProps),{},{options:C,loading:b}),D))!==null&&ne!==void 0?ne:null}return D}return null},Gl=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,b=e.fieldProps,C=(0,W.YB)(),x=Array.isArray(r)?r:[],y=(0,O.Z)(x,2),I=y[0],M=y[1],P=o.useState(!1),$=(0,O.Z)(P,2),A=$[0],F=$[1],j=(0,o.useCallback)(function(ce){if(typeof(b==null?void 0:b.format)=="function"){var q;return b==null||(q=b.format)===null||q===void 0?void 0:q.call(b,ce)}return(b==null?void 0:b.format)||s||"YYYY-MM-DD"},[b,s]),V=I?Ln()(I).format(j(Ln()(I))):"",z=M?Ln()(M).format(j(Ln()(M))):"";if(a==="read"){var D=(0,N.jsxs)("div",{ref:n,children:[(0,N.jsx)("div",{children:V||"-"}),(0,N.jsx)("div",{children:z||"-"})]});return u?u(r,(0,d.Z)({mode:a},b),(0,N.jsx)("span",{children:D})):D}if(a==="edit"||a==="update"){var ne=za(b.value),Q;if(i){var se;Q=(0,N.jsx)(U.Q,{label:l,onClick:function(){var q;b==null||(q=b.onOpenChange)===null||q===void 0||q.call(b,!0),F(!0)},style:ne?{paddingInlineEnd:0}:void 0,disabled:b.disabled,value:ne||A?(0,N.jsx)(qr.default.RangePicker,(0,d.Z)((0,d.Z)({picker:f,showTime:h,format:s,bordered:!1},b),{},{placeholder:(se=b.placeholder)!==null&&se!==void 0?se:[C.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),C.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9")],onClear:function(){var q;F(!1),b==null||(q=b.onClear)===null||q===void 0||q.call(b)},value:ne,onOpenChange:function(q){var ee;ne&&F(q),b==null||(ee=b.onOpenChange)===null||ee===void 0||ee.call(b,q)}})):null,allowClear:!1,bordered:p,ref:g,downIcon:ne||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},b),{},{value:ne}));return v?v(r,(0,d.Z)({mode:a},b),Q):Q}return null},ba=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,ie.Z)({},e,{ref:n,icon:p0}))},y0=o.forwardRef(b0),C0=c(68924);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)},b=function(P){P.keyCode===xe.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")},y),o.createElement("div",{className:"".concat(r,"-second")},y)));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,b=p===void 0?"\u2605":p,C=t.characterRender,x=t.disabled,y=t.direction,I=y===void 0?"ltr":y,M=t.tabIndex,P=M===void 0?0:M,$=t.autoFocus,A=t.onHoverChange,F=t.onChange,j=t.onFocus,V=t.onBlur,z=t.onKeyDown,D=t.onMouseLeave,ne=(0,E.Z)(t,E0),Q=P0(),se=(0,O.Z)(Q,2),ce=se[0],q=se[1],ee=o.useRef(null),de=function(){if(!x){var xt;(xt=ee.current)===null||xt===void 0||xt.focus()}};o.useImperativeHandle(e,function(){return{focus:de,blur:function(){if(!x){var xt;(xt=ee.current)===null||xt===void 0||xt.blur()}}}});var ye=(0,rt.Z)(l||0,{value:s}),Fe=(0,O.Z)(ye,2),De=Fe[0],Le=Fe[1],St=(0,rt.Z)(null),Ne=(0,O.Z)(St,2),ht=Ne[0],it=Ne[1],we=function(xt,jt){var Jt=I==="rtl",zt=xt+1;if(m){var fn=ce(xt),Fn=O0(fn),Hn=fn.clientWidth;(Jt&&jt-Fn>Hn/2||!Jt&&jt-Fn0&&!Jt||jt===xe.Z.RIGHT&&zt>0&&Jt?(m?zt-=.5:zt-=1,He(zt),xt.preventDefault()):jt===xe.Z.LEFT&&zt{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,_e.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,wn.I$)("Rate",t=>{const e=(0,Pr.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=(y,I)=>{let{index:M}=I;return l?o.createElement(ai.Z,{title:l[M]},y):y},{getPrefixCls:v,direction:m,rate:h}=o.useContext(Xt.E_),g=v("rate",n),[p,b,C]=D0(g),x=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:k()(r,a,b,C,h==null?void 0:h.className),style:x,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)(Jl,(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)(Jl,(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,W.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),Ql=function(e){return e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null},ya=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(ne){var Q,se=a(ne),ce=(Q=n.current)===null||Q===void 0?void 0:Q.querySelectorAll(".".concat(e,"-item"))[se];return(ce==null?void 0:ce.offsetParent)&&ce},b=o.useState(null),C=(0,O.Z)(b,2),x=C[0],y=C[1],I=o.useState(null),M=(0,O.Z)(I,2),P=M[0],$=M[1];(0,Fa.Z)(function(){if(h!==r){var D=p(h),ne=p(r),Q=Ql(D),se=Ql(ne);g(r),y(Q),$(se),D&&ne?l():s()}},[r]);var A=o.useMemo(function(){return ya(u==="rtl"?-(x==null?void 0:x.right):x==null?void 0:x.left)},[u,x]),F=o.useMemo(function(){return ya(u==="rtl"?-(P==null?void 0:P.right):P==null?void 0:P.left)},[u,P]),j=function(){return{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},V=function(){return{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},z=function(){y(null),$(null),s()};return!x||!P?null:o.createElement(Bo.ZP,{visible:!0,motionName:i,motionAppear:!0,onAppearStart:j,onAppearActive:V,onVisibleChanged:z},function(D,ne){var Q=D.className,se=D.style,ce=(0,d.Z)((0,d.Z)({},se),{},{"--thumb-start-left":A,"--thumb-start-width":ya(x==null?void 0:x.width),"--thumb-active-left":F,"--thumb-active-width":ya(P==null?void 0:P.width)}),q={ref:(0,ja.sQ)(f,ne),style:ce,className:k()("".concat(e,"-thumb"),Q)};return o.createElement("div",q)})}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:k()(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,b=p===void 0?"thumb-motion":p,C=(0,E.Z)(t,z0),x=o.useRef(null),y=o.useMemo(function(){return(0,ja.sQ)(x,e)},[x,e]),I=o.useMemo(function(){return K0(s)},[s]),M=(0,rt.Z)((n=I[0])===null||n===void 0?void 0:n.value,{value:v,defaultValue:f}),P=(0,O.Z)(M,2),$=P[0],A=P[1],F=o.useState(!1),j=(0,O.Z)(F,2),V=j[0],z=j[1],D=function(se,ce){u||(A(ce),m==null||m(ce))},ne=(0,Dt.Z)(C,["children"]);return o.createElement("div",(0,ie.Z)({},ne,{className:k()(i,(r={},(0,Z.Z)(r,"".concat(i,"-rtl"),l==="rtl"),(0,Z.Z)(r,"".concat(i,"-disabled"),u),r),g),ref:y}),o.createElement("div",{className:"".concat(i,"-group")},o.createElement(W0,{prefixCls:i,value:$,containerRef:x,motionName:"".concat(i,"-").concat(b),direction:l,getValueIndex:function(se){return I.findIndex(function(ce){return ce.value===se})},onMotionStart:function(){z(!0)},onMotionEnd:function(){z(!1)}}),I.map(function(Q){return o.createElement(U0,(0,ie.Z)({},Q,{key:Q.value,prefixCls:i,className:k()(Q.className,"".concat(i,"-item"),(0,Z.Z)({},"".concat(i,"-item-selected"),Q.value===$&&!V)),checked:Q.value===$,onChange:D,disabled:!!u||!!Q.disabled}))})))});ci.displayName="Segmented",ci.defaultProps={options:[]};var Y0=ci;function _l(t,e){return{[`${t}, ${t}:hover, ${t}:focus`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}}function ql(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({},ql(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,_e.bf)(n),padding:`0 ${(0,_e.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({},ql(t)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${(0,_e.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,_e.bf)(r),padding:`0 ${(0,_e.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,_e.bf)(a),padding:`0 ${(0,_e.bf)(t.segmentedPaddingHorizontalSM)}`},[`${e}-item, ${e}-thumb`]:{borderRadius:t.borderRadiusXS}}}),_l(`&-disabled ${e}-item`,t)),_l(`${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,wn.I$)("Segmented",t=>{const{lineWidth:e,lineWidthBold:n,colorBgLayout:r,calc:a}=t,i=(0,Pr.TS)(t,{segmentedPadding:n,segmentedBgColor:r,segmentedPaddingHorizontal:a(t.controlPaddingHorizontal).sub(e).equal(),segmentedPaddingHorizontalSM:a(t.controlPaddingHorizontalSM).sub(e).equal()});return[G0(i)]},J0),es=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=es(t,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:v,direction:m,segmented:h}=o.useContext(Xt.E_),g=v("segmented",n),[p,b,C]=Q0(g),x=(0,Rt.Z)(s),y=o.useMemo(()=>l.map(P=>{if(_0(P)){const{icon:$,label:A}=P,F=es(P,["icon","label"]);return Object.assign(Object.assign({},F),{label:o.createElement(o.Fragment,null,o.createElement("span",{className:`${g}-item-icon`},$),A&&o.createElement("span",null,A))})}return P}),[l,g]),I=k()(r,a,h==null?void 0:h.className,{[`${g}-block`]:i,[`${g}-sm`]:x==="small",[`${g}-lg`]:x==="large"},b,C),M=Object.assign(Object.assign({},h==null?void 0:h.style),u);return p(o.createElement(Y0,Object.assign({},f,{className:I,style:M,options:y,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,Qn.aK)(f),h=(0,O.Z)(m,3),g=h[0],p=h[1],b=h[2];if((0,o.useImperativeHandle)(n,function(){return(0,d.Z)((0,d.Z)({},v.current||{}),{},{fetchData:function(P){return b(P)}})},[b]),g)return(0,N.jsx)(xr.Z,{size:"small"});if(r==="read"){var C=p!=null&&p.length?p==null?void 0:p.reduce(function(M,P){var $;return(0,d.Z)((0,d.Z)({},M),{},(0,Z.Z)({},($=P.value)!==null&&$!==void 0?$:"",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 y;return(y=a(f.text,(0,d.Z)({mode:r},l),(0,N.jsx)(N.Fragment,{children:x})))!==null&&y!==void 0?y:u}return x}if(r==="edit"||r==="update"){var I=(0,N.jsx)(q0,(0,d.Z)((0,d.Z)({ref:v},(0,mo.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 Ca(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),b=p.min,C=p.max,x=p.direction,y=p.disabled,I=p.keyboard,M=p.range,P=p.tabIndex,$=p.ariaLabelForHandle,A=p.ariaLabelledByForHandle,F=p.ariaValueTextFormatterForHandle,j=p.styles,V=p.classNames,z="".concat(a,"-handle"),D=function(ee){y||s(ee,l)},ne=function(ee){if(!y&&I){var de=null;switch(ee.which||ee.keyCode){case xe.Z.LEFT:de=x==="ltr"||x==="btt"?-1:1;break;case xe.Z.RIGHT:de=x==="ltr"||x==="btt"?1:-1;break;case xe.Z.UP:de=x!=="ttb"?1:-1;break;case xe.Z.DOWN:de=x!=="ttb"?-1:1;break;case xe.Z.HOME:de="min";break;case xe.Z.END:de="max";break;case xe.Z.PAGE_UP:de=2;break;case xe.Z.PAGE_DOWN:de=-2;break}de!==null&&(ee.preventDefault(),m(de,l))}},Q=function(ee){switch(ee.which||ee.keyCode){case xe.Z.LEFT:case xe.Z.RIGHT:case xe.Z.UP:case xe.Z.DOWN:case xe.Z.HOME:case xe.Z.END:case xe.Z.PAGE_UP:case xe.Z.PAGE_DOWN:h==null||h();break}},se=fi(x,i,b,C),ce=o.createElement("div",(0,ie.Z)({ref:e,className:k()(z,(n={},(0,Z.Z)(n,"".concat(z,"-").concat(l+1),M),(0,Z.Z)(n,"".concat(z,"-dragging"),v),n),V.handle),style:(0,d.Z)((0,d.Z)((0,d.Z)({},se),u),j.handle),onMouseDown:D,onTouchStart:D,onKeyDown:ne,onKeyUp:Q,tabIndex:y?null:Ca(P,l),role:"slider","aria-valuemin":b,"aria-valuemax":C,"aria-valuenow":i,"aria-disabled":y,"aria-label":Ca($,l),"aria-labelledby":Ca(A,l),"aria-valuetext":(r=Ca(F,l))===null||r===void 0?void 0:r(i),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical"},g));return f&&(ce=f(ce,{index:l,prefixCls:a,value:i,dragging:v})),ce}),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,ie.Z)({ref:function(p){p?v.current[h]=p:delete v.current[h]},dragging:u===h,prefixCls:n,style:Ca(r,h),key:h,value:m,valueIndex:h,onStartMove:a,onOffsetChange:i,render:s},f))}))}),um=sm;function ts(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),b=p[0],C=p[1],x=o.useState(n),y=(0,O.Z)(x,2),I=y[0],M=y[1],P=o.useState(n),$=(0,O.Z)(P,2),A=$[0],F=$[1],j=o.useRef(null),V=o.useRef(null);o.useEffect(function(){b===-1&&M(n)},[n,b]),o.useEffect(function(){return function(){document.removeEventListener("mousemove",j.current),document.removeEventListener("mouseup",V.current),document.removeEventListener("touchmove",j.current),document.removeEventListener("touchend",V.current)}},[]);var z=function(q,ee){I.some(function(de,ye){return de!==q[ye]})&&(ee!==void 0&&h(ee),M(q),l(q))},D=function(q,ee){if(q===-1){var de=A[0],ye=A[A.length-1],Fe=r-de,De=a-ye,Le=ee*(a-r);Le=Math.max(Le,Fe),Le=Math.min(Le,De);var St=i(de+Le);Le=St-de;var Ne=A.map(function(He){return He+Le});z(Ne)}else{var ht=(a-r)*ee,it=(0,ue.Z)(I);it[q]=A[q];var we=u(it,ht,q,"dist");z(we.values,we.value)}},ne=o.useRef(D);ne.current=D;var Q=function(q,ee,de){q.stopPropagation();var ye=de||n,Fe=ye[ee];C(ee),h(Fe),F(ye);var De=ts(q),Le=De.pageX,St=De.pageY,Ne=function(we){we.preventDefault();var He=ts(we),Mt=He.pageX,Tt=He.pageY,lt=Mt-Le,Be=Tt-St,gt=t.current.getBoundingClientRect(),ke=gt.width,dt=gt.height,ut;switch(e){case"btt":ut=-Be/dt;break;case"ttb":ut=Be/dt;break;case"rtl":ut=-lt/ke;break;default:ut=lt/ke}ne.current(ee,ut)},ht=function it(we){we.preventDefault(),document.removeEventListener("mouseup",it),document.removeEventListener("mousemove",Ne),document.removeEventListener("touchend",it),document.removeEventListener("touchmove",Ne),j.current=null,V.current=null,C(-1),s()};document.addEventListener("mouseup",ht),document.addEventListener("mousemove",Ne),document.addEventListener("touchend",ht),document.addEventListener("touchmove",Ne),j.current=Ne,V.current=ht},se=o.useMemo(function(){var ce=(0,ue.Z)(n).sort(function(ee,de){return ee-de}),q=(0,ue.Z)(I).sort(function(ee,de){return ee-de});return ce.every(function(ee,de){return ee===q[de]})?I:n},[n,I]);return[b,m,se,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,b=function(I){return(String(I).split(".")[1]||"").length},C=Math.max(b(n),b(e),b(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),b=r.map(function(y){return y.value});n!==null&&b.push(s(g)),b.push(t,e);var C=b[0],x=e-t;return b.forEach(function(y){var I=Math.abs(p-y);I<=x&&(C=y,x=I)}),C},[t,e,r,n,l,s]),f=function g(p,b,C){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof b=="number"){var y,I=p[C],M=I+b,P=[];r.forEach(function(V){P.push(V.value)}),P.push(t,e),P.push(s(I));var $=b>0?1:-1;x==="unit"?P.push(s(I+$*n)):P.push(s(M)),P=P.filter(function(V){return V!==null}).filter(function(V){return b<0?V<=I:V>=I}),x==="unit"&&(P=P.filter(function(V){return V!==I}));var A=x==="unit"?I:M;y=P[0];var F=Math.abs(y-A);if(P.forEach(function(V){var z=Math.abs(V-A);z1){var j=(0,ue.Z)(p);return j[C]=y,g(j,b-$,C,x)}return y}else{if(b==="min")return t;if(b==="max")return e}},v=function(p,b,C){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=p[C],I=f(p,b,C,x);return{value:I,changed:I!==y}},m=function(p){return i===null&&p===0||typeof i=="number"&&p3&&arguments[3]!==void 0?arguments[3]:"unit",y=p.map(u),I=y[C],M=f(y,b,C,x);if(y[C]=M,a===!1){var P=i||0;C>0&&y[C-1]!==I&&(y[C]=Math.max(y[C],y[C-1]+P)),C0;j-=1)for(var V=!0;m(y[j]-y[j-1])&&V;){var z=v(y,-1,j-1);y[j-1]=z.value,V=z.changed}for(var D=y.length-1;D>0;D-=1)for(var ne=!0;m(y[D]-y[D-1])&≠){var Q=v(y,-1,D-1);y[D-1]=Q.value,ne=Q.changed}for(var se=0;se=0?q:!1},[q,mn]),Pn=o.useMemo(function(){var Kn=Object.keys(He||{});return Kn.map(function(Pt){var nt=He[Pt],en={value:Number(Pt)};return nt&&(0,R.Z)(nt)==="object"&&!o.isValidElement(nt)&&("label"in nt||"style"in nt)?(en.style=nt.style,en.label=nt.label):en.label=nt,en}).filter(function(Pt){var nt=Pt.label;return nt||typeof nt=="number"}).sort(function(Pt,nt){return Pt.value-nt.value})},[He]),un=dm(Ft,sn,mn,Pn,se,Zn),Ot=(0,O.Z)(un,2),xt=Ot[0],jt=Ot[1],Jt=(0,rt.Z)(A,{value:$}),zt=(0,O.Z)(Jt,2),fn=zt[0],Fn=zt[1],Hn=o.useMemo(function(){var Kn=fn==null?[]:Array.isArray(fn)?fn:[fn],Pt=(0,O.Z)(Kn,1),nt=Pt[0],en=nt===void 0?Ft:nt,cn=fn===null?[]:[en];if(F){if(cn=(0,ue.Z)(Kn),j||fn===void 0){var zn=j>=0?j+1:2;for(cn=cn.slice(0,zn);cn.length=0&&ut.current.focus(Kn)}dr(null)},[lr]);var Ya=o.useMemo(function(){return ee&&mn===null?!1:ee},[ee,mn]),yo=function(Pt,nt){Yt(Pt,nt),z==null||z(kn(jn.current))},Co=br!==-1;o.useEffect(function(){if(!Co){var Kn=Hn.lastIndexOf(Lr);ut.current.focus(Kn)}},[Co]);var Br=o.useMemo(function(){return(0,ue.Z)(ln).sort(function(Kn,Pt){return Kn-Pt})},[ln]),xa=o.useMemo(function(){return F?[Br[0],Br[Br.length-1]]:[Ft,Br[0]]},[Br,F,Ft]),Sa=(0,O.Z)(xa,2),xo=Sa[0],So=Sa[1];o.useImperativeHandle(e,function(){return{focus:function(){ut.current.focus(0)},blur:function(){var Pt=document,nt=Pt.activeElement;Vt.current.contains(nt)&&(nt==null||nt.blur())}}}),o.useEffect(function(){g&&ut.current.focus(0)},[]);var yi=o.useMemo(function(){return{min:Ft,max:sn,direction:qt,disabled:v,keyboard:h,step:mn,included:De,includedStart:xo,includedEnd:So,range:F,tabIndex:Be,ariaLabelForHandle:gt,ariaLabelledByForHandle:ke,ariaValueTextFormatterForHandle:dt,styles:u||{},classNames:s||{}}},[Ft,sn,qt,v,h,mn,De,xo,So,F,Be,gt,ke,dt,u,s]);return o.createElement(ea.Provider,{value:yi},o.createElement("div",{ref:Vt,className:k()(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"),Pn.length),n)),style:l,onMouseDown:Qt},o.createElement("div",{className:k()("".concat(a,"-rail"),s==null?void 0:s.rail),style:(0,d.Z)((0,d.Z)({},ht),u==null?void 0:u.rail)}),o.createElement(gm,{prefixCls:a,style:St,values:Br,startPoint:Le,onStartMove:Ya?yo:null}),o.createElement(hm,{prefixCls:a,marks:Pn,dots:Mt,style:it,activeStyle:we}),o.createElement(um,{ref:ut,prefixCls:a,style:Ne,values:ln,draggingIndex:br,onStartMove:yo,onOffsetChange:Hr,onFocus:p,onBlur:b,handleRender:Tt,onChangeComplete:Dn}),o.createElement(vm,{prefixCls:a,marks:Pn,onClick:hn})))}),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,ja.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,_e.bf)(l)} ${(0,_e.bf)(i)}`,padding:0,cursor:"pointer",touchAction:"none",["&-vertical"]:{margin:`${(0,_e.bf)(i)} ${(0,_e.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,_e.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,_e.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,_e.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,_e.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,_e.bf)(t.handleLineWidth)} ${u}`,insetInlineStart:0,insetBlockStart:0},[` + ${e}-mark-text, + ${e}-dot + `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},rs=(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(),b=e?{borderWidth:`${(0,_e.bf)(p)} 0`,transform:`translateY(${(0,_e.bf)(s(p).mul(-1).equal())})`}:{borderWidth:`0 ${(0,_e.bf)(p)}`,transform:`translateX(${(0,_e.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({},b),[`${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({},rs(t,!0)),{[`&${e}-with-marks`]:{marginBottom:n}})}},Pm=t=>{const{componentCls:e}=t;return{[`${e}-vertical`]:Object.assign(Object.assign({},rs(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 ur.C(t.colorTextDisabled).onBackground(t.colorBgContainer).toHexShortString(),dotBorderColor:t.colorBorderSecondary,dotActiveBorderColor:t.colorPrimaryBorder,trackBgDisabled:t.colorBgContainerDisabled}};var Zm=(0,wn.I$)("Slider",t=>{const e=(0,Pr.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:b,getPrefixCls:C,getPopupContainer:x}=o.useContext(Xt.E_),y=o.useContext(pn.Z),I=s!=null?s:y,[M,P]=o.useState({}),$=(q,ee)=>{P(de=>Object.assign(Object.assign({},de),{[q]:ee}))},A=(q,ee)=>q||(ee?p==="rtl"?"left":"right":"top"),F=C("slider",n),[j,V,z]=Zm(F),D=k()(a,b==null?void 0:b.className,i,{[`${F}-rtl`]:p==="rtl"},V,z);p==="rtl"&&!g.vertical&&(g.reverse=!g.reverse);const[ne,Q]=o.useMemo(()=>r?typeof r=="object"?[!0,r.draggableTrack]:[!0,!1]:[!1],[r]),se=(q,ee)=>{var de;const{index:ye,dragging:Fe}=ee,{tooltip:De={},vertical:Le}=t,St=Object.assign({},De),{open:Ne,placement:ht,getPopupContainer:it,prefixCls:we,formatter:He}=St,Mt=Em(He,f),Tt=Mt?M[ye]||Fe:!1,lt=(de=Ne!=null?Ne:v)!==null&&de!==void 0?de:Ne===void 0&&Tt,Be=Object.assign(Object.assign({},q.props),{onMouseEnter:()=>$(ye,!0),onMouseLeave:()=>$(ye,!1),onFocus:gt=>{var ke;$(ye,!0),(ke=g.onFocus)===null||ke===void 0||ke.call(g,gt)},onBlur:gt=>{var ke;$(ye,!1),(ke=g.onBlur)===null||ke===void 0||ke.call(g,gt)}});return o.createElement(Cm,Object.assign({},St,{prefixCls:C("tooltip",we!=null?we:u),title:Mt?Mt(ee.value):"",open:lt,placement:A(ht!=null?ht:h,Le),key:ye,overlayClassName:`${F}-tooltip`,getPopupContainer:it||m||x}),o.cloneElement(q,Be))},ce=Object.assign(Object.assign({},b==null?void 0:b.style),l);return j(o.createElement(ym,Object.assign({},g,{step:g.step,range:ne,draggableTrack:Q,className:D,style:ce,disabled:I,ref:e,prefixCls:F,handleRender:se})))}),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(66371),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,W.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,mo.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,b=f.bordered;return(0,N.jsx)(U.Q,{label:s,disabled:p,bordered:b,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,b=p===void 0?"":p,C=(0,W.YB)(),x=(0,o.useRef)();if((0,o.useImperativeHandle)(n,function(){return x.current},[]),(0,o.useEffect)(function(){if(m){var $;($=x.current)===null||$===void 0||$.focus()}},[m]),a==="read"){var y=(0,N.jsxs)(N.Fragment,{children:[g,r!=null?r:f,b]});if(i){var I;return(I=i(r,(0,d.Z)({mode:a},s),y))!==null&&I!==void 0?I:f}return y}if(a==="edit"||a==="update"){var M=C.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),P=(0,N.jsx)(mr.Z,(0,d.Z)({ref:x,placeholder:M,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,Nn.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:k()(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,W.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)(mr.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}))),Ka=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}))}),as=(0,Sn.Z)(Ka,"picker");Ka._InternalPanelDoNotUseOrYouWillBeFired=as,Ka.RangePicker=zm,Ka._InternalPanelDoNotUseOrYouWillBeFired=as;var vi=Ka,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),b=p[0],C=p[1],x=(0,W.YB)(),y=(m==null?void 0:m.format)||s||"HH:mm:ss",I=Ln().isDayjs(r)||typeof r=="number";if(a==="read"){var M=(0,N.jsx)("span",{ref:n,children:r?Ln()(r,I?void 0:y).format(y):"-"});return u?u(r,(0,d.Z)({mode:a},m),(0,N.jsx)("span",{children:M})):M}if(a==="edit"||a==="update"){var P,$=m.disabled,A=m.value,F=za(A,y);if(i){var j;P=(0,N.jsx)(U.Q,{onClick:function(){var z;m==null||(z=m.onOpenChange)===null||z===void 0||z.call(m,!0),C(!0)},style:F?{paddingInlineEnd:0}:void 0,label:l,disabled:$,value:F||b?(0,N.jsx)(vi,(0,d.Z)((0,d.Z)({bordered:!1,format:s,ref:n},m),{},{placeholder:(j=m.placeholder)!==null&&j!==void 0?j:x.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),value:F,onOpenChange:function(z){var D;C(z),m==null||(D=m.onOpenChange)===null||D===void 0||D.call(m,z)},open:b})):null,downIcon:F||b?!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:F}));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,W.YB)(),p=(0,o.useState)(!1),b=(0,O.Z)(p,2),C=b[0],x=b[1],y=(h==null?void 0:h.format)||u||"HH:mm:ss",I=Array.isArray(r)?r:[],M=(0,O.Z)(I,2),P=M[0],$=M[1],A=Ln().isDayjs(P)||typeof P=="number",F=Ln().isDayjs($)||typeof $=="number",j=P?Ln()(P,A?void 0:y).format(y):"",V=$?Ln()($,F?void 0:y).format(y):"";if(l==="read"){var z=(0,N.jsxs)("div",{ref:n,children:[(0,N.jsx)("div",{children:j||"-"}),(0,N.jsx)("div",{children:V||"-"})]});return f?f(r,(0,d.Z)({mode:l},h),(0,N.jsx)("span",{children:z})):z}if(l==="edit"||l==="update"){var D=za(h.value,y),ne;if(a){var Q=h.disabled,se=h.placeholder,ce=se===void 0?[g.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9"),g.getMessage("tableForm.selectPlaceholder","\u8BF7\u9009\u62E9")]:se;ne=(0,N.jsx)(U.Q,{onClick:function(){var ee;h==null||(ee=h.onOpenChange)===null||ee===void 0||ee.call(h,!0),x(!0)},style:D?{paddingInlineEnd:0}:void 0,label:i,disabled:Q,placeholder:ce,value:D||C?(0,N.jsx)(vi.RangePicker,(0,d.Z)((0,d.Z)({bordered:!1,format:u,ref:n},h),{},{placeholder:ce,value:D,onOpenChange:function(ee){var de;x(ee),h==null||(de=h.onOpenChange)===null||de===void 0||de.call(h,ee)},open:C})):null,downIcon:D||C?!1:void 0,allowClear:!1,ref:s})}else ne=(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),ne):ne}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,re.S)(a,!0,r);a=s.checkedKeys,i=s.halfCheckedKeys}return[Array.from(new Set([].concat((0,ue.Z)(l),(0,ue.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 os(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=os(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,Ye.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 b="".concat(m,"-").concat(p),C=g[i.value],x=n.includes(C),y=f(g[i.children]||[],b,x),I=o.createElement(mi,g,y.map(function(P){return P.node}));if(e===C&&(l=I),x){var M={pos:b,node:I,children:y};return h||s.push(M),M}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),b=n.indexOf(g);return p-b}))}Object.defineProperty(t,"triggerNode",{get:function(){return(0,Ye.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),u(),l}}),Object.defineProperty(t,"allCheckedNodes",{get:function(){return(0,Ye.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],b=m||s(e,hi(g)),C=f(p||[],b);return(b||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 is(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:os(e)},[e,n,t])}var rh=o.createContext(null),ls=rh,ah=c(12554),oh=c(99035),ih=o.createContext(null),ss=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 us(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,wt.lk)(),a=r.prefixCls,i=r.multiple,l=r.searchValue,s=r.toggleOpen,u=r.open,f=r.notFoundContent,v=o.useContext(ss),m=v.virtual,h=v.listHeight,g=v.listItemHeight,p=v.listItemScrollOffset,b=v.treeData,C=v.fieldNames,x=v.onSelect,y=v.dropdownMatchSelectWidth,I=v.treeExpandAction,M=o.useContext(ls),P=M.checkable,$=M.checkedKeys,A=M.halfCheckedKeys,F=M.treeExpandedKeys,j=M.treeDefaultExpandAll,V=M.treeDefaultExpandedKeys,z=M.onTreeExpand,D=M.treeIcon,ne=M.showTreeIcon,Q=M.switcherIcon,se=M.treeLine,ce=M.treeNodeFilterProp,q=M.loadData,ee=M.treeLoadedKeys,de=M.treeMotion,ye=M.onTreeLoad,Fe=M.keyEntities,De=o.useRef(),Le=(0,ah.Z)(function(){return b},[u,b],function(un,Ot){return Ot[0]&&un[1]!==Ot[1]}),St=o.useState(null),Ne=(0,O.Z)(St,2),ht=Ne[0],it=Ne[1],we=Fe[ht],He=o.useMemo(function(){return P?{checked:$,halfChecked:A}:null},[P,$,A]);o.useEffect(function(){if(u&&!i&&$.length){var un;(un=De.current)===null||un===void 0||un.scrollTo({key:$[0]}),it($[0])}},[u]);var Mt=String(l).toLowerCase(),Tt=function(Ot){return Mt?String(Ot[ce]).toLowerCase().includes(Mt):!1},lt=o.useState(V),Be=(0,O.Z)(lt,2),gt=Be[0],ke=Be[1],dt=o.useState(null),ut=(0,O.Z)(dt,2),Vt=ut[0],qt=ut[1],Ft=o.useMemo(function(){return F?(0,ue.Z)(F):l?Vt:gt},[gt,Vt,F,l]);o.useEffect(function(){l&&qt(uh(b,C))},[l]);var sn=function(Ot){ke(Ot),qt(Ot),z&&z(Ot)},mn=function(Ot){Ot.preventDefault()},Zn=function(Ot,xt){var jt=xt.node;P&&gi(jt)||(x(jt.key,{selected:!$.includes(jt.key)}),i||s(!1))};if(o.useImperativeHandle(n,function(){var un;return{scrollTo:(un=De.current)===null||un===void 0?void 0:un.scrollTo,onKeyDown:function(xt){var jt,Jt=xt.which;switch(Jt){case xe.Z.UP:case xe.Z.DOWN:case xe.Z.LEFT:case xe.Z.RIGHT:(jt=De.current)===null||jt===void 0||jt.onKeyDown(xt);break;case xe.Z.ENTER:{if(we){var zt=(we==null?void 0:we.node)||{},fn=zt.selectable,Fn=zt.value;fn!==!1&&Zn(null,{node:{key:ht},selected:!$.includes(Fn)})}break}case xe.Z.ESC:s(!1)}},onKeyUp:function(){}}}),Le.length===0)return o.createElement("div",{role:"listbox",className:"".concat(a,"-empty"),onMouseDown:mn},f);var Pn={fieldNames:C};return ee&&(Pn.loadedKeys=ee),Ft&&(Pn.expandedKeys=Ft),o.createElement("div",{onMouseDown:mn},we&&u&&o.createElement("span",{style:ch,"aria-live":"assertive"},we.node.value),o.createElement(oh.Z,(0,ie.Z)({ref:De,focusable:!1,prefixCls:"".concat(a,"-tree"),treeData:Le,height:h,itemHeight:g,itemScrollOffset:p,virtual:m!==!1&&y!==!1,multiple:i,icon:D,showIcon:ne,switcherIcon:Q,showLine:se,loadData:l?null:q,motion:de,activeKey:ht,checkable:P,checkStrictly:!0,checkedKeys:He,selectedKeys:P?[]:$,defaultExpandAll:j},Pn,{onActiveChange:it,onSelect:Zn,onCheck:Zn,onExpand:sn,onLoad:ye,filterTreeNode:Tt,expandAction:I})))},cs=o.forwardRef(dh);cs.displayName="OptionList";var fh=cs,pi="SHOW_ALL",bi="SHOW_PARENT",bo="SHOW_CHILD";function ds(t,e,n,r){var a=new Set(t);return e===bo?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,b=t.filterTreeNode,C=t.treeNodeFilterProp,x=C===void 0?"value":C,y=t.showCheckedStrategy,I=t.treeNodeLabelProp,M=t.multiple,P=t.treeCheckable,$=t.treeCheckStrictly,A=t.labelInValue,F=t.fieldNames,j=t.treeDataSimpleMode,V=t.treeData,z=t.children,D=t.loadData,ne=t.treeLoadedKeys,Q=t.onTreeLoad,se=t.treeDefaultExpandAll,ce=t.treeExpandedKeys,q=t.treeDefaultExpandedKeys,ee=t.onTreeExpand,de=t.treeExpandAction,ye=t.virtual,Fe=t.listHeight,De=Fe===void 0?200:Fe,Le=t.listItemHeight,St=Le===void 0?20:Le,Ne=t.listItemScrollOffset,ht=Ne===void 0?0:Ne,it=t.onDropdownVisibleChange,we=t.dropdownMatchSelectWidth,He=we===void 0?!0:we,Mt=t.treeLine,Tt=t.treeIcon,lt=t.showTreeIcon,Be=t.switcherIcon,gt=t.treeMotion,ke=(0,E.Z)(t,vh),dt=(0,vn.ZP)(n),ut=P&&!$,Vt=P||$,qt=$||A,Ft=Vt||M,sn=(0,rt.Z)(l,{value:i}),mn=(0,O.Z)(sn,2),Zn=mn[0],Pn=mn[1],un=o.useMemo(function(){return P?y||bo:pi},[y,P]),Ot=o.useMemo(function(){return sh(F)},[JSON.stringify(F)]),xt=(0,rt.Z)("",{value:v!==void 0?v:m,postState:function(nt){return nt||""}}),jt=(0,O.Z)(xt,2),Jt=jt[0],zt=jt[1],fn=function(nt){zt(nt),h==null||h(nt)},Fn=nh(V,z,j),Hn=Jm(Fn,Ot),jn=Hn.keyEntities,kn=Hn.valueEntities,_n=o.useCallback(function(Pt){var nt=[],en=[];return Pt.forEach(function(cn){kn.has(cn)?en.push(cn):nt.push(cn)}),{missingRawValues:nt,existRawValues:en}},[kn]),Dn=eh(Fn,Jt,{fieldNames:Ot,treeNodeFilterProp:x,filterTreeNode:b}),On=o.useCallback(function(Pt){if(Pt){if(I)return Pt[I];for(var nt=Ot._title,en=0;en{const{componentCls:e,treePrefixCls:n,colorBgElevated:r}=t,a=`.${n}`;return[{[`${e}-dropdown`]:[{padding:`${(0,_e.bf)(t.paddingXS)} ${(0,_e.bf)(t.calc(t.paddingXS).div(2).equal())}`},(0,fs.Yk)(n,(0,Pr.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,wn.I$)("TreeSelect",r=>{const a=(0,Pr.TS)(r,{treePrefixCls:e});return[yh(a)]},fs.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:b,switcherIcon:C,treeLine:x,getPopupContainer:y,popupClassName:I,dropdownClassName:M,treeIcon:P=!1,transitionName:$,choiceTransitionName:A="",status:F,treeExpandAction:j,builtinPlacements:V,dropdownMatchSelectWidth:z,popupMatchSelectWidth:D,allowClear:ne}=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:se,getPrefixCls:ce,renderEmpty:q,direction:ee,virtual:de,popupMatchSelectWidth:ye,popupOverflow:Fe}=o.useContext(Xt.E_),De=ce(),Le=ce("select",a),St=ce("select-tree",a),Ne=ce("tree-select",a),{compactSize:ht,compactItemClassnames:it}=(0,Bt.ri)(Le,ee),we=(0,bn.Z)(Le),He=(0,bn.Z)(Ne),[Mt,Tt,lt]=(0,Ht.Z)(Le,we),[Be]=Ch(Ne,St,He),gt=k()(I||M,`${Ne}-dropdown`,{[`${Ne}-dropdown-rtl`]:ee==="rtl"},f,lt,we,He,Tt),ke=!!(v||m),dt=(0,Yn.Z)(Q.suffixIcon,Q.showArrow),ut=(n=D!=null?D:z)!==null&&n!==void 0?n:ye,{status:Vt,hasFeedback:qt,isFormItemInput:Ft,feedbackIcon:sn}=o.useContext(rn.aM),mn=(0,gn.F)(Vt,F),{suffixIcon:Zn,removeIcon:Pn,clearIcon:un}=(0,Vn.Z)(Object.assign(Object.assign({},Q),{multiple:ke,showSuffixIcon:dt,hasFeedback:qt,feedbackIcon:sn,prefixCls:Le,componentName:"TreeSelect"})),Ot=ne===!0?{clearIcon:un}:ne;let xt;b!==void 0?xt=b:xt=(q==null?void 0:q("Select"))||o.createElement(on.Z,{componentName:"Select"});const jt=(0,Dt.Z)(Q,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),Jt=o.useMemo(()=>p!==void 0?p:ee==="rtl"?"bottomRight":"bottomLeft",[p,ee]),zt=(0,Rt.Z)(Dn=>{var On;return(On=i!=null?i:ht)!==null&&On!==void 0?On:Dn}),fn=o.useContext(pn.Z),Fn=l!=null?l:fn,Hn=k()(!a&&Ne,{[`${Le}-lg`]:zt==="large",[`${Le}-sm`]:zt==="small",[`${Le}-rtl`]:ee==="rtl",[`${Le}-borderless`]:!s,[`${Le}-in-form-item`]:Ft},(0,gn.Z)(Le,mn,qt),it,u,f,lt,we,He,Tt),jn=Dn=>o.createElement(bh.Z,{prefixCls:St,switcherIcon:C,treeNodeProps:Dn,showLine:x}),[kn]=(0,Nt.Cn)("SelectLike",(r=Q.dropdownStyle)===null||r===void 0?void 0:r.zIndex),_n=o.createElement(ph,Object.assign({virtual:de,disabled:Fn},jt,{dropdownMatchSelectWidth:ut,builtinPlacements:(0,dn.Z)(V,Fe),ref:e,prefixCls:Le,className:Hn,listHeight:h,listItemHeight:g,treeCheckable:v&&o.createElement("span",{className:`${Le}-tree-checkbox-inner`}),treeLine:!!x,suffixIcon:Zn,multiple:ke,placement:Jt,removeIcon:Pn,allowClear:Ot,switcherIcon:jn,showTreeIcon:P,notFoundContent:xt,getPopupContainer:y||se,treeMotion:null,dropdownClassName:gt,dropdownStyle:Object.assign(Object.assign({},Q.dropdownStyle),{zIndex:kn}),choiceTransitionName:(0,Gt.m)(De,"",A),transitionName:(0,Gt.m)(De,"slide-up",$),treeExpandAction:j}));return Mt(Be(_n))},ta=o.forwardRef(Sh),Ph=(0,Sn.Z)(ta);ta.TreeNode=mi,ta.SHOW_ALL=pi,ta.SHOW_PARENT=bi,ta.SHOW_CHILD=bo,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),b=(0,O.Z)(p,2),C=b[0],x=b[1],y=f.fieldProps,I=y.onSearch,M=y.onClear,P=y.onChange,$=y.onBlur,A=y.showSearch,F=y.autoClearSearchValue,j=y.treeData,V=y.fetchDataOnSearch,z=y.searchValue,D=(0,E.Z)(y,Oh),ne=(0,W.YB)(),Q=(0,Qn.aK)((0,d.Z)((0,d.Z)({},f),{},{defaultKeyWords:z})),se=(0,O.Z)(Q,3),ce=se[0],q=se[1],ee=se[2],de=(0,rt.Z)(void 0,{onChange:I,value:z}),ye=(0,O.Z)(de,2),Fe=ye[0],De=ye[1];(0,o.useImperativeHandle)(n,function(){return(0,d.Z)((0,d.Z)({},g.current||{}),{},{fetchData:function(dt){return ee(dt)}})});var Le=(0,o.useMemo)(function(){if(i==="read"){var ke=(D==null?void 0:D.fieldNames)||{},dt=ke.value,ut=dt===void 0?"value":dt,Vt=ke.label,qt=Vt===void 0?"label":Vt,Ft=ke.children,sn=Ft===void 0?"children":Ft,mn=new Map,Zn=function Pn(un){if(!(un!=null&&un.length))return mn;for(var Ot=un.length,xt=0;xt0&&Me!=="read"?(0,Z.jsx)("div",{className:"".concat($e,"-action ").concat(Ut).trim(),children:bn}):null,rn={name:Wt.name,field:Re,index:Oe,record:Se==null||(Ae=Se.getFieldValue)===null||Ae===void 0?void 0:Ae.call(Se,[_t.listName,Ce,Re.name].filter(function(Bt){return Bt!==void 0}).flat(1)),fields:me,operation:qe,meta:be},dn=(0,ve.zx)(),Ht=dn.grid,Vn=(Y==null?void 0:Y(gn,rn))||gn,Yn=(Ve==null?void 0:Ve({listDom:(0,Z.jsx)("div",{className:"".concat($e,"-container ").concat(et||""," ").concat(Ut||"").trim(),style:(0,E.Z)({width:Ht?"100%":void 0},Te),children:Vn}),action:Rt},rn))||(0,Z.jsxs)("div",{className:"".concat($e,"-item ").concat(Ut,` + `).concat($t===void 0&&"".concat($e,"-item-default"),` + `).concat($t?"".concat($e,"-item-show-label"):""),style:{display:"flex",alignItems:"flex-end"},children:[(0,Z.jsx)("div",{className:"".concat($e,"-container ").concat(et||""," ").concat(Ut).trim(),style:(0,E.Z)({width:Ht?"100%":void 0},Te),children:Vn}),Rt]});return(0,Z.jsx)(le.Provider,{value:(0,E.Z)((0,E.Z)({},Re),{},{listName:[_t.listName,Ce,Re.name].filter(function(Bt){return Bt!==void 0}).flat(1)}),children:Yn})},Ge=function(G){var Ae=(0,K.YB)(),mt=G.creatorButtonProps,bt=G.prefixCls,at=G.children,Y=G.creatorRecord,Ve=G.action,$t=G.fields,$e=G.actionGuard,We=G.max,qe=G.fieldExtraRender,Ye=G.meta,tn=G.containerClassName,re=G.containerStyle,me=G.onAfterAdd,be=G.onAfterRemove,Re=(0,O.useContext)(K.L_),Oe=Re.hashId,Se=(0,O.useRef)(new Map),Ce=(0,O.useState)(!1),et=(0,X.Z)(Ce,2),Te=et[0],xe=et[1],Kt=(0,O.useMemo)(function(){return $t.map(function(ot){var ze,Me;if(!((ze=Se.current)!==null&&ze!==void 0&&ze.has(ot.key.toString()))){var Ze;(Ze=Se.current)===null||Ze===void 0||Ze.set(ot.key.toString(),(0,Ue.x)())}var fe=(Me=Se.current)===null||Me===void 0?void 0:Me.get(ot.key.toString());return(0,E.Z)((0,E.Z)({},ot),{},{uuid:fe})})},[$t]),Et=(0,O.useMemo)(function(){var ot=(0,E.Z)({},Ve),ze=Kt.length;return $e!=null&&$e.beforeAddRow?ot.add=(0,U.Z)((0,w.Z)().mark(function Me(){var Ze,fe,he,Pe,Ke,Zt=arguments;return(0,w.Z)().wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:for(Ze=Zt.length,fe=new Array(Ze),he=0;he0&&arguments[0]!==void 0?arguments[0]:{},k=Ue.children,ie=Ue.Wrapper,wt=(0,R.Z)(Ue,T);return w?(0,J.jsx)(W.Z,(0,E.Z)((0,E.Z)((0,E.Z)({gutter:8},U),wt),{},{children:k})):ie?(0,J.jsx)(ie,{children:k}):k},ColWrapper:function(){var Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},k=Ue.children,ie=Ue.Wrapper,wt=(0,R.Z)(Ue,B),vn=(0,K.useMemo)(function(){var yt=(0,E.Z)((0,E.Z)({},X),wt);return typeof yt.span=="undefined"&&typeof yt.xs=="undefined"&&(yt.xs=24),yt},[wt]);return w?(0,J.jsx)(H.Z,(0,E.Z)((0,E.Z)({},vn),{},{children:k})):ie?(0,J.jsx)(ie,{children:k}):k}}},o=function(ve){var w=(0,K.useMemo)(function(){return(0,d.Z)(ve)==="object"?ve:{grid:ve}},[ve]),U=(0,K.useContext)(te),X=U.grid,ue=U.colProps;return(0,K.useMemo)(function(){return oe({grid:!!(X||w.grid),rowProps:w==null?void 0:w.rowProps,colProps:(w==null?void 0:w.colProps)||ue,Wrapper:w==null?void 0:w.Wrapper})},[w==null?void 0:w.Wrapper,w.grid,X,JSON.stringify([ue,w==null?void 0:w.colProps,w==null?void 0:w.rowProps])])}},79189:function(ge,_,c){"use strict";c.d(_,{Q:function(){return w}});var d=c(88357),E=c(67536),R=c(85824),W=c(99192),H=c(38751),K=c(82187),J=c.n(K),T=c(50959),B=c(35361),te=c(34829),oe=function(X){var ue,Ue,k,ie;return(0,d.Z)({},X.componentCls,(ie={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)"),(ue={},(0,d.Z)(ue,"".concat(X.componentCls,"-arrow"),{display:"none"}),(0,d.Z)(ue,"".concat(X.componentCls,"-close"),{display:"inline-flex"}),ue))},(0,d.Z)(ie,"".concat(X.antCls,"-select"),(0,d.Z)({},"".concat(X.antCls,"-select-clear"),{borderRadius:"50%"})),(0,d.Z)(ie,"".concat(X.antCls,"-picker"),(0,d.Z)({},"".concat(X.antCls,"-picker-clear"),{borderRadius:"50%"})),(0,d.Z)(ie,"&-icon",(Ue={color:X.colorIcon,transition:"color 0.3s",fontSize:12,verticalAlign:"middle"},(0,d.Z)(Ue,"&".concat(X.componentCls,"-close"),{display:"none",fontSize:12,alignItems:"center",justifyContent:"center",color:X.colorTextPlaceholder,borderRadius:"50%"}),(0,d.Z)(Ue,"&:hover",{color:X.colorIconHover}),Ue)),(0,d.Z)(ie,"&-disabled",(0,d.Z)({color:X.colorTextPlaceholder,cursor:"not-allowed"},"".concat(X.componentCls,"-icon"),{color:X.colorTextPlaceholder})),(0,d.Z)(ie,"&-small",(k={height:"24px",paddingBlock:0,paddingInline:4,fontSize:X.fontSizeSM,lineHeight:"24px"},(0,d.Z)(k,"&".concat(X.componentCls,"-active"),{paddingBlock:0,paddingInline:8}),(0,d.Z)(k,"".concat(X.componentCls,"-icon"),{paddingBlock:0,paddingInline:0}),(0,d.Z)(k,"".concat(X.componentCls,"-close"),{marginBlockStart:"-2px",paddingBlock:4,paddingInline:4,fontSize:"6px"}),k)),(0,d.Z)(ie,"&-bordered",{height:"32px",paddingBlock:0,paddingInline:8,border:"".concat(X.lineWidth,"px solid ").concat(X.colorBorder),borderRadius:"@border-radius-base"}),(0,d.Z)(ie,"&-bordered&-small",{height:"24px",paddingBlock:0,paddingInline:8}),(0,d.Z)(ie,"&-bordered&-active",{backgroundColor:X.colorBgContainer}),ie))};function o(U){return(0,te.Xj)("FieldLabel",function(X){var ue=(0,B.Z)((0,B.Z)({},X),{},{componentCls:".".concat(U)});return[oe(ue)]})}var O=c(11527),ve=function(X,ue){var Ue,k,ie,wt,vn=X.label,yt=X.onClear,rt=X.value,an=X.disabled,ft=X.onLabelClick,Z=X.ellipsis,Ee=X.placeholder,Ct=X.className,pt=X.formatter,Ge=X.bordered,pe=X.style,vt=X.downIcon,Lt=X.allowClear,kt=Lt===void 0?!0:Lt,At=X.valueMaxLength,le=At===void 0?41:At,Je=(H.ZP===null||H.ZP===void 0||(Ue=H.ZP.useConfig)===null||Ue===void 0?void 0:Ue.call(H.ZP))||{componentSize:"middle"},Ie=Je.componentSize,G=Ie,Ae=(0,T.useContext)(H.ZP.ConfigContext),mt=Ae.getPrefixCls,bt=mt("pro-core-field-label"),at=o(bt),Y=at.wrapSSR,Ve=at.hashId,$t=(0,W.YB)(),$e=(0,T.useRef)(null),We=(0,T.useRef)(null);(0,T.useImperativeHandle)(ue,function(){return{labelRef:We,clearRef:$e}});var qe=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)})},Ye=function(me){return pt?pt(me):Array.isArray(me)?qe(me):me},tn=function(me,be){if(be!=null&&be!==""&&(!Array.isArray(be)||be.length)){var Re,Oe,Se=me?(0,O.jsxs)("span",{onClick:function(){ft==null||ft()},className:"".concat(bt,"-text"),children:[me,": "]}):"",Ce=Ye(be);if(!Z)return(0,O.jsxs)("span",{style:{display:"inline-flex",alignItems:"center"},children:[Se,Ye(be)]});var et=function(){var Kt=Array.isArray(be)&&be.length>1,Et=$t.getMessage("form.lightFilter.itemUnit","\u9879");return typeof Ce=="string"&&Ce.length>le&&Kt?"...".concat(be.length).concat(Et):""},Te=et();return(0,O.jsxs)("span",{title:typeof Ce=="string"?Ce:void 0,style:{display:"inline-flex",alignItems:"center"},children:[Se,(0,O.jsx)("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof Ce=="string"?Ce==null||(Re=Ce.toString())===null||Re===void 0||(Oe=Re.substr)===null||Oe===void 0?void 0:Oe.call(Re,0,le):Ce}),Te]})}return me||Ee};return Y((0,O.jsxs)("span",{className:J()(bt,Ve,"".concat(bt,"-").concat((k=(ie=X.size)!==null&&ie!==void 0?ie:G)!==null&&k!==void 0?k:"middle"),(wt={},(0,d.Z)(wt,"".concat(bt,"-active"),!!rt||rt===0),(0,d.Z)(wt,"".concat(bt,"-disabled"),an),(0,d.Z)(wt,"".concat(bt,"-bordered"),Ge),(0,d.Z)(wt,"".concat(bt,"-allow-clear"),kt),wt),Ct),style:pe,ref:We,onClick:function(){var me;X==null||(me=X.onClick)===null||me===void 0||me.call(X)},children:[tn(vn,rt),(rt||rt===0)&&kt&&(0,O.jsx)(E.Z,{role:"button",title:$t.getMessage("form.lightFilter.clear","\u6E05\u9664"),className:J()("".concat(bt,"-icon"),Ve,"".concat(bt,"-close")),onClick:function(me){an||yt==null||yt(),me.stopPropagation()},ref:$e}),vt!==!1?vt!=null?vt:(0,O.jsx)(R.Z,{className:J()("".concat(bt,"-icon"),Ve,"".concat(bt,"-arrow"))}):null]}))},w=T.forwardRef(ve)},69050:function(ge,_,c){"use strict";c.d(_,{M:function(){return ue}});var d=c(35361),E=c(88357),R=c(38751),W=c(23835),H=c(50959),K=c(99192),J=c(86865),T=c(82187),B=c.n(T),te=c(34829),oe=function(k){return(0,E.Z)({},k.componentCls,{display:"flex",justifyContent:"space-between",paddingBlock:8,paddingInlineStart:8,paddingInlineEnd:8,borderBlockStart:"1px solid ".concat(k.colorSplit)})};function o(Ue){return(0,te.Xj)("DropdownFooter",function(k){var ie=(0,d.Z)((0,d.Z)({},k),{},{componentCls:".".concat(Ue)});return[oe(ie)]})}var O=c(11527),ve=function(k){var ie=(0,K.YB)(),wt=k.onClear,vn=k.onConfirm,yt=k.disabled,rt=k.footerRender,an=(0,H.useContext)(R.ZP.ConfigContext),ft=an.getPrefixCls,Z=ft("pro-core-dropdown-footer"),Ee=o(Z),Ct=Ee.wrapSSR,pt=Ee.hashId,Ge=[(0,O.jsx)(J.ZP,{style:{visibility:wt?"visible":"hidden"},type:"link",size:"small",disabled:yt,onClick:function(Lt){wt&&wt(Lt),Lt.stopPropagation()},children:ie.getMessage("form.lightFilter.clear","\u6E05\u9664")},"clear"),(0,O.jsx)(J.ZP,{"data-type":"confirm",type:"primary",size:"small",onClick:vn,disabled:yt,children:ie.getMessage("form.lightFilter.confirm","\u786E\u8BA4")},"confirm")];if(rt===!1||(rt==null?void 0:rt(vn,wt))===!1)return null;var pe=(rt==null?void 0:rt(vn,wt))||Ge;return Ct((0,O.jsx)("div",{className:B()(Z,pt),onClick:function(Lt){return Lt.target.getAttribute("data-type")!=="confirm"&&Lt.stopPropagation()},children:pe}))},w=c(11130),U=function(k){var ie;return ie={},(0,E.Z)(ie,"".concat(k.componentCls,"-label"),{cursor:"pointer"}),(0,E.Z)(ie,"".concat(k.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),(0,E.Z)(ie,"".concat(k.componentCls,"-content"),{paddingBlock:16,paddingInline:16}),ie};function X(Ue){return(0,te.Xj)("FilterDropdown",function(k){var ie=(0,d.Z)((0,d.Z)({},k),{},{componentCls:".".concat(Ue)});return[U(ie)]})}var ue=function(k){var ie,wt=k.children,vn=k.label,yt=k.footer,rt=k.open,an=k.onOpenChange,ft=k.disabled,Z=k.onVisibleChange,Ee=k.visible,Ct=k.footerRender,pt=k.placement,Ge=(0,H.useContext)(R.ZP.ConfigContext),pe=Ge.getPrefixCls,vt=pe("pro-core-field-dropdown"),Lt=X(vt),kt=Lt.wrapSSR,At=Lt.hashId,le=(0,w.X)(rt||Ee||!1,an||Z),Je=(0,H.useRef)(null);return kt((0,O.jsx)(W.Z,(0,d.Z)((0,d.Z)({placement:pt,trigger:["click"]},le),{},{overlayInnerStyle:{padding:0},content:(0,O.jsxs)("div",{ref:Je,className:B()("".concat(vt,"-overlay"),(ie={},(0,E.Z)(ie,"".concat(vt,"-overlay-").concat(pt),pt),(0,E.Z)(ie,"hashId",At),ie)),children:[(0,O.jsx)(R.ZP,{getPopupContainer:function(){return Je.current||document.body},children:(0,O.jsx)("div",{className:"".concat(vt,"-content ").concat(At).trim(),children:wt})}),yt&&(0,O.jsx)(ve,(0,d.Z)({disabled:ft,footerRender:Ct},yt))]}),children:(0,O.jsx)("span",{className:"".concat(vt,"-label ").concat(At).trim(),children:vn})})))}},42213:function(ge,_,c){"use strict";c.d(_,{J:function(){return E}});var d=c(50959),E=d.createContext({})},68922:function(ge,_,c){"use strict";c.d(_,{Cl:function(){return T},lp:function(){return O}});var d=c(97382),E=c(5726),R=c.n(E),W=c(56591),H=c.n(W),K=c(85108),J=c(81954);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 te(ve){if(B(ve)===!1)return!1;var w=ve.constructor;if(w===void 0)return!0;var U=w.prototype;return!(B(U)===!1||U.hasOwnProperty("isPrototypeOf")===!1)}var oe=function(w){return!!(w!=null&&w._isAMomentObject)},o=function(w,U,X){if(!U)return w;if(R().isDayjs(w)||oe(w)){if(U==="number")return w.valueOf();if(U==="string")return w.format(T[X]||"YYYY-MM-DD HH:mm:ss");if(typeof U=="string"&&U!=="string")return w.format(U);if(typeof U=="function")return U(w,X)}return w},O=function ve(w,U,X,ue,Ue){var k={};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(ie){var wt=Ue?[Ue,ie].flat(1):[ie],vn=(0,K.Z)(X,wt)||"text",yt="text",rt;typeof vn=="string"?yt=vn:vn&&(yt=vn.valueType,rt=vn.dateFormat);var an=w[ie];if(!((0,J.k)(an)&&ue)){if(te(an)&&!Array.isArray(an)&&!R().isDayjs(an)&&!oe(an)){k[ie]=ve(an,U,X,ue,[ie]);return}if(Array.isArray(an)){k[ie]=an.map(function(ft,Z){return R().isDayjs(ft)||oe(ft)?o(ft,rt||U,yt):ve(ft,U,X,ue,[ie,"".concat(Z)].flat(1))});return}k[ie]=o(an,rt||U,yt)}}),k)}},13717:function(ge,_,c){"use strict";c.d(_,{c:function(){return H}});var d=c(959),E=c(5726),R=c.n(E),W=function(J,T){return typeof T=="function"?T(R()(J)):R()(J).format(T)},H=function(J,T){var B=Array.isArray(J)?J:[],te=(0,d.Z)(B,2),oe=te[0],o=te[1],O,ve;Array.isArray(T)?(O=T[0],ve=T[1]):(O=T,ve=T);var w=oe?W(oe,O):"",U=o?W(o,ve):"",X=w&&U?"".concat(w," ~ ").concat(U):"";return X}},90190:function(ge,_,c){"use strict";c.d(_,{D:function(){return H}});var d=c(11642),E=c(73356),R=c(50959),W=c(81447);function H(K,J){var T=(0,W.J)(K),B=(0,R.useRef)(),te=(0,R.useCallback)(function(){B.current&&(clearTimeout(B.current),B.current=null)},[]),oe=(0,R.useCallback)((0,E.Z)((0,d.Z)().mark(function o(){var O,ve,w,U=arguments;return(0,d.Z)().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:for(O=U.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()}},14463:function(ge,_,c){"use strict";c.d(_,{MP:function(){return te},R6:function(){return T}});var d=c(97382),E=c(96375),R=c(10994),W=c(50959),H=c(11527);function K(oe){var o=Object.prototype.toString.call(oe).match(/^\[object (.*)\]$/)[1].toLowerCase();return o==="string"&&(0,d.Z)(oe)==="object"?"object":oe===null?"null":oe===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})}},te=function oe(o,O,ve){if(Array.isArray(o))return(0,H.jsx)(R.Z,{split:",",size:2,wrap:!0,children:o.map(function(k,ie){return oe(k,O,ie)})},ve);var w=T(O);if(!w.has(o)&&!w.has("".concat(o)))return(o==null?void 0:o.label)||o;var U=w.get(o)||w.get("".concat(o));if(!U)return(0,H.jsx)(W.Fragment,{children:(o==null?void 0:o.label)||o},ve);var X=U.status,ue=U.color,Ue=B[X||"Init"];return Ue?(0,H.jsx)(Ue,{children:U.text},ve):ue?(0,H.jsx)(J,{color:ue,children:U.text},ve):(0,H.jsx)(W.Fragment,{children:U.text||U},ve)}},75442:function(ge,_,c){"use strict";c.d(_,{h:function(){return d}});function d(E){if(typeof E=="function"){for(var R=arguments.length,W=new Array(R>1?R-1:0),H=1;H4&&(te+=7),B.add(te,_));return oe.diff(o,"week")+1},W.isoWeekday=function(K){return this.$utils().u(K)?this.day()||7:this.day(this.day()%7?K:K-7)};var H=W.startOf;W.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)}}})},56591:function(ge){(function(_,c){ge.exports=c()})(this,function(){"use strict";var _="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 W=R.add;R.add=function(K,J){return K=Number(K),this.$utils().p(J)===c?this.add(3*K,_):W.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 te=this.quarter()-1;return B?this.month(3*te).startOf(_).startOf("day"):this.month(3*te+2).endOf(_).endOf("day")}return H.bind(this)(K,J)}}})},92117:function(ge){(function(_,c){ge.exports=c()})(this,function(){"use strict";return function(_,c,d){_=_||{};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 W(K,J,T,B){return E.fromToBase(K,J,T,B)}d.en.relativeTime=R,E.fromToBase=function(K,J,T,B,te){for(var oe,o,O,ve=T.$locale().relativeTime||R,w=_.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"}],U=w.length,X=0;X0,Ue<=ue.r||!ue.r){Ue<=1&&X>0&&(ue=w[X-1]);var k=ve[ue.l];te&&(Ue=te(""+Ue)),o=typeof k=="string"?k.replace("%d",Ue):k(Ue,J,ue.l,O);break}}if(J)return o;var ie=O?ve.future:ve.past;return typeof ie=="function"?ie(o):ie.replace("%s",o)},E.to=function(K,J){return W(K,J,this,!0)},E.from=function(K,J){return W(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)}}})},72266:function(ge,_,c){ge=c.nmd(ge);var d=200,E="__lodash_hash_undefined__",R=800,W=16,H=9007199254740991,K="[object Arguments]",J="[object Array]",T="[object AsyncFunction]",B="[object Boolean]",te="[object Date]",oe="[object Error]",o="[object Function]",O="[object GeneratorFunction]",ve="[object Map]",w="[object Number]",U="[object Null]",X="[object Object]",ue="[object Proxy]",Ue="[object RegExp]",k="[object Set]",ie="[object String]",wt="[object Undefined]",vn="[object WeakMap]",yt="[object ArrayBuffer]",rt="[object DataView]",an="[object Float32Array]",ft="[object Float64Array]",Z="[object Int8Array]",Ee="[object Int16Array]",Ct="[object Int32Array]",pt="[object Uint8Array]",Ge="[object Uint8ClampedArray]",pe="[object Uint16Array]",vt="[object Uint32Array]",Lt=/[\\^$.*+?()[\]{}|]/g,kt=/^\[object .+?Constructor\]$/,At=/^(?:0|[1-9]\d*)$/,le={};le[an]=le[ft]=le[Z]=le[Ee]=le[Ct]=le[pt]=le[Ge]=le[pe]=le[vt]=!0,le[K]=le[J]=le[yt]=le[B]=le[rt]=le[te]=le[oe]=le[o]=le[ve]=le[w]=le[X]=le[Ue]=le[k]=le[ie]=le[vn]=!1;var Je=typeof c.g=="object"&&c.g&&c.g.Object===Object&&c.g,Ie=typeof self=="object"&&self&&self.Object===Object&&self,G=Je||Ie||Function("return this")(),Ae=_&&!_.nodeType&&_,mt=Ae&&!0&&ge&&!ge.nodeType&&ge,bt=mt&&mt.exports===Ae,at=bt&&Je.process,Y=function(){try{var S=mt&&mt.require&&mt.require("util").types;return S||at&&at.binding&&at.binding("util")}catch(L){}}(),Ve=Y&&Y.isTypedArray;function $t(S,L,ae){switch(ae.length){case 0:return S.call(L);case 1:return S.call(L,ae[0]);case 2:return S.call(L,ae[0],ae[1]);case 3:return S.call(L,ae[0],ae[1],ae[2])}return S.apply(L,ae)}function $e(S,L){for(var ae=-1,st=Array(S);++ae-1}function dn(S,L){var ae=this.__data__,st=fr(ae,S);return st<0?(++this.size,ae.push([S,L])):ae[st][1]=L,this}on.prototype.clear=pn,on.prototype.delete=bn,on.prototype.get=Rt,on.prototype.has=rn,on.prototype.set=dn;function Ht(S){var L=-1,ae=S==null?0:S.length;for(this.clear();++L1?ae[xn-1]:void 0,Tn=xn>2?ae[2]:void 0;for(Mn=S.length>3&&typeof Mn=="function"?(xn--,Mn):void 0,Tn&&kr(ae[0],ae[1],Tn)&&(Mn=xn<3?void 0:Mn,xn=1),L=Object(L);++st-1&&S%1==0&&S0){if(++L>=R)return arguments[0]}else L=0;return S.apply(void 0,arguments)}}function Ra(S){if(S!=null){try{return Re.call(S)}catch(L){}try{return S+""}catch(L){}}return""}function Kr(S,L){return S===L||S!==S&&L!==L}var Ia=oa(function(){return arguments}())?oa:function(S){return Rr(S)&&Oe.call(S,"callee")&&!_t.call(S,"callee")},jr=Array.isArray;function Dr(S){return S!=null&&Ja(S.length)&&!ur(S)}function Mo(S){return Rr(S)&&Dr(S)}var Ga=Ze||jo;function ur(S){if(!Er(S))return!1;var L=Zr(S);return L==o||L==O||L==T||L==ue}function Ja(S){return typeof S=="number"&&S>-1&&S%1==0&&S<=H}function Er(S){var L=typeof S;return S!=null&&(L=="object"||L=="function")}function Rr(S){return S!=null&&typeof S=="object"}function $o(S){if(!Rr(S)||Zr(S)!=X)return!1;var L=Cn(S);if(L===null)return!0;var ae=Oe.call(L,"constructor")&&L.constructor;return typeof ae=="function"&&ae instanceof ae&&Re.call(ae)==et}var Ur=Ve?We(Ve):wa;function No(S){return Qn(S,hr(S))}function hr(S){return Dr(S)?Un(S,!0):Za(S)}var Fo=N(function(S,L,ae){Fr(S,L,ae)});function Qa(S){return function(){return S}}function Ma(S){return S}function jo(){return!1}ge.exports=Fo},65490:function(ge){var _=NaN,c="[object Symbol]",d=/^\s+|\s+$/g,E=/^[-+]0x[0-9a-f]+$/i,R=/^0b[01]+$/i,W=/^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 te(o){return typeof o=="symbol"||B(o)&&J.call(o)==c}function oe(o){if(typeof o=="number")return o;if(te(o))return _;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||W.test(o)?H(o.slice(2),ve?2:8):E.test(o)?_:+o}ge.exports=oe},30438:function(ge,_,c){var d=c(61343),E=c(4118),R=E(d);ge.exports=R},61343:function(ge,_,c){var d=c(91030),E=c(50579);function R(W,H){return W&&d(W,H,E)}ge.exports=R},71664:function(ge){function _(c,d){return c!=null&&d in Object(c)}ge.exports=_},27122:function(ge,_,c){var d=c(5929),E=c(6620),R=1,W=2;function H(K,J,T,B){var te=T.length,oe=te,o=!B;if(K==null)return!oe;for(K=Object(K);te--;){var O=T[te];if(o&&O[2]?O[1]!==K[O[0]]:!(O[0]in K))return!1}for(;++te1&&arguments[1]!==void 0?arguments[1]:"span";return function(o){J(O,o);function O(){var ve,w,U,X;H(this,O);for(var ue=arguments.length,Ue=Array(ue),k=0;k1&&arguments[1]!==void 0?arguments[1]:"span";return function(o){J(O,o);function O(){var ve,w,U,X;H(this,O);for(var ue=arguments.length,Ue=Array(ue),k=0;k0&&arguments[0]!==void 0?arguments[0]:[],O=[];return(0,T.default)(o,function(ve){Array.isArray(ve)?oe(ve).map(function(w){return O.push(w)}):(0,K.default)(ve)?(0,W.default)(ve,function(w,U){w===!0&&O.push(U),O.push(U+"-"+w)}):(0,E.default)(ve)&&O.push(ve)}),O};_.default=te},80014:function(ge,_,c){"use strict";var d;d={value:!0},d=d=d=d=d=void 0;var E=c(47642),R=ve(E),W=c(71339),H=ve(W),K=c(58706),J=ve(K),T=c(66626),B=ve(T),te=c(8615),oe=ve(te),o=c(45742),O=ve(o);function ve(U){return U&&U.__esModule?U:{default:U}}d=B.default,d=B.default,d=oe.default,d=O.default;var w=d=function(X){for(var ue=arguments.length,Ue=Array(ue>1?ue-1:0),k=1;k1&&arguments[1]!==void 0?arguments[1]:!0;W[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),W};_.default=c},71339:function(ge,_,c){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.mergeClasses=void 0;var d=c(14287),E=K(d),R=c(32222),W=K(R),H=Object.assign||function(T){for(var B=1;B1&&arguments[1]!==void 0?arguments[1]:[],oe=B.default&&(0,W.default)(B.default)||{};return te.map(function(o){var O=B[o];return O&&(0,E.default)(O,function(ve,w){oe[w]||(oe[w]={}),oe[w]=H({},oe[w],O[w])}),o}),oe};_.default=J},50440:function(ge,_){"use strict";const{hasOwnProperty:c}=Object.prototype,d=ve();d.configure=ve,d.stringify=d,d.default=d,_.stringify=d,_.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 W(w){if(w.length>200)return w.sort();for(let U=1;UX;)w[ue]=w[ue-1],ue--;w[ue]=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,U,X){w.length= 1`)}return X===void 0?1/0:X}function oe(w){return w===1?"1 item":`${w} items`}function o(w){const U=new Set;for(const X of w)(typeof X=="string"||typeof X=="number")&&U.add(String(X));return U}function O(w){if(c.call(w,"strict")){const U=w.strict;if(typeof U!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(U)return X=>{let ue=`Object can not safely be stringified. Received type ${typeof X}`;throw typeof X!="function"&&(ue+=` (${X.toString()})`),new Error(ue)}}}function ve(w){w=hs({},w);const U=O(w);U&&(w.bigint===void 0&&(w.bigint=!1),"circularValue"in w||(w.circularValue=Error));const X=T(w),ue=B(w,"bigint"),Ue=B(w,"deterministic"),k=te(w,"maximumDepth"),ie=te(w,"maximumBreadth");function wt(ft,Z,Ee,Ct,pt,Ge){let pe=Z[ft];switch(typeof pe=="object"&&pe!==null&&typeof pe.toJSON=="function"&&(pe=pe.toJSON(ft)),pe=Ct.call(Z,ft,pe),typeof pe){case"string":return R(pe);case"object":{if(pe===null)return"null";if(Ee.indexOf(pe)!==-1)return X;let vt="",Lt=",";const kt=Ge;if(Array.isArray(pe)){if(pe.length===0)return"[]";if(kie){const at=pe.length-ie-1;vt+=`${Lt}"... ${oe(at)} not stringified"`}return pt!==""&&(vt+=` +${kt}`),Ee.pop(),`[${vt}]`}let At=Object.keys(pe);const le=At.length;if(le===0)return"{}";if(kie){const Ae=le-ie;vt+=`${Ie}"...":${Je}"${oe(Ae)} not stringified"`,Ie=Lt}return pt!==""&&Ie.length>1&&(vt=` +${Ge}${vt} +${kt}`),Ee.pop(),`{${vt}}`}case"number":return isFinite(pe)?String(pe):U?U(pe):"null";case"boolean":return pe===!0?"true":"false";case"undefined":return;case"bigint":if(ue)return String(pe);default:return U?U(pe):void 0}}function vn(ft,Z,Ee,Ct,pt,Ge){switch(typeof Z=="object"&&Z!==null&&typeof Z.toJSON=="function"&&(Z=Z.toJSON(ft)),typeof Z){case"string":return R(Z);case"object":{if(Z===null)return"null";if(Ee.indexOf(Z)!==-1)return X;const pe=Ge;let vt="",Lt=",";if(Array.isArray(Z)){if(Z.length===0)return"[]";if(kie){const G=Z.length-ie-1;vt+=`${Lt}"... ${oe(G)} not stringified"`}return pt!==""&&(vt+=` +${pe}`),Ee.pop(),`[${vt}]`}Ee.push(Z);let kt="";pt!==""&&(Ge+=pt,Lt=`, +${Ge}`,kt=" ");let At="";for(const le of Ct){const Je=vn(le,Z[le],Ee,Ct,pt,Ge);Je!==void 0&&(vt+=`${At}${R(le)}:${kt}${Je}`,At=Lt)}return pt!==""&&At.length>1&&(vt=` +${Ge}${vt} +${pe}`),Ee.pop(),`{${vt}}`}case"number":return isFinite(Z)?String(Z):U?U(Z):"null";case"boolean":return Z===!0?"true":"false";case"undefined":return;case"bigint":if(ue)return String(Z);default:return U?U(Z):void 0}}function yt(ft,Z,Ee,Ct,pt){switch(typeof Z){case"string":return R(Z);case"object":{if(Z===null)return"null";if(typeof Z.toJSON=="function"){if(Z=Z.toJSON(ft),typeof Z!="object")return yt(ft,Z,Ee,Ct,pt);if(Z===null)return"null"}if(Ee.indexOf(Z)!==-1)return X;const Ge=pt;if(Array.isArray(Z)){if(Z.length===0)return"[]";if(kie){const bt=Z.length-ie-1;Je+=`${Ie}"... ${oe(bt)} not stringified"`}return Je+=` +${Ge}`,Ee.pop(),`[${Je}]`}let pe=Object.keys(Z);const vt=pe.length;if(vt===0)return"{}";if(kie){const Je=vt-ie;kt+=`${At}"...": "${oe(Je)} not stringified"`,At=Lt}return At!==""&&(kt=` +${pt}${kt} +${Ge}`),Ee.pop(),`{${kt}}`}case"number":return isFinite(Z)?String(Z):U?U(Z):"null";case"boolean":return Z===!0?"true":"false";case"undefined":return;case"bigint":if(ue)return String(Z);default:return U?U(Z):void 0}}function rt(ft,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(ft),typeof Z!="object")return rt(ft,Z,Ee);if(Z===null)return"null"}if(Ee.indexOf(Z)!==-1)return X;let Ct="";if(Array.isArray(Z)){if(Z.length===0)return"[]";if(kie){const le=Z.length-ie-1;Ct+=`,"... ${oe(le)} not stringified"`}return Ee.pop(),`[${Ct}]`}let pt=Object.keys(Z);const Ge=pt.length;if(Ge===0)return"{}";if(kie){const Lt=Ge-ie;Ct+=`${pe}"...":"${oe(Lt)} not stringified"`}return Ee.pop(),`{${Ct}}`}case"number":return isFinite(Z)?String(Z):U?U(Z):"null";case"boolean":return Z===!0?"true":"false";case"undefined":return;case"bigint":if(ue)return String(Z);default:return U?U(Z):void 0}}function an(ft,Z,Ee){if(arguments.length>1){let Ct="";if(typeof Ee=="number"?Ct=" ".repeat(Math.min(Ee,10)):typeof Ee=="string"&&(Ct=Ee.slice(0,10)),Z!=null){if(typeof Z=="function")return wt("",{"":ft},[],Z,Ct,"");if(Array.isArray(Z))return vn("",ft,[],o(Z),Ct,"")}if(Ct.length!==0)return yt("",ft,[],Ct,"")}return rt("",ft,[])}return an}}}]); diff --git a/4154.d5769604.async.js b/4154.d5769604.async.js deleted file mode 100644 index 28cd3cfc64..0000000000 --- a/4154.d5769604.async.js +++ /dev/null @@ -1 +0,0 @@ -"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/4156.0679a40a.async.js b/4156.0679a40a.async.js new file mode 100644 index 0000000000..e0492366a2 --- /dev/null +++ b/4156.0679a40a.async.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4156],{24156:function(at,pe,v){v.d(pe,{Z:function(){return ot}});var s=v(50959),me=v(71349),ve=v(87132),he=v(67536),Ce=v(22410),ye=v(82187),T=v.n(ye),Se=v(87017),be=v(92576),te=v(27263),X=v(35361),re=v(56929),oe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=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(l){if(l){n=!0;var i=l.style;i.transitionDuration=".3s, .3s, .3s, .06s",r.current&&o-r.current<100&&(i.transitionDuration="0s, 0s")}}),n&&(r.current=Date.now())}),t.current},ke=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],$e=function(t){var r=(0,X.Z)((0,X.Z)({},oe),t),o=r.className,n=r.percent,l=r.prefixCls,i=r.strokeColor,a=r.strokeLinecap,c=r.strokeWidth,u=r.style,d=r.trailColor,g=r.trailWidth,h=r.transition,y=(0,re.Z)(r,ke);delete y.gapPosition;var C=Array.isArray(n)?n:[n],p=Array.isArray(i)?i:[i],f=ne(),k=c/2,S=100-c/2,b="M ".concat(a==="round"?k:0,",").concat(k,` + L `).concat(a==="round"?S:100,",").concat(k),m="0 0 100 ".concat(c),P=0;return s.createElement("svg",(0,te.Z)({className:T()("".concat(l,"-line"),o),viewBox:m,preserveAspectRatio:"none",style:u},y),s.createElement("path",{className:"".concat(l,"-line-trail"),d:b,strokeLinecap:a,stroke:d,strokeWidth:g||c,fillOpacity:"0"}),C.map(function(O,L){var $=1;switch(a){case"round":$=1-c/100;break;case"square":$=1-c/2/100;break;default:$=1;break}var N={strokeDasharray:"".concat(O*$,"px, 100px"),strokeDashoffset:"-".concat(P,"px"),transition:h||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},I=p[L]||p[p.length-1];return P+=O,s.createElement("path",{key:L,className:"".concat(l,"-line-path"),d:b,strokeLinecap:a,stroke:I,strokeWidth:c,fillOpacity:"0",ref:function(A){f[L]=A},style:N})}))},xe=$e,R=v(97382),Pe=v(959),Ee=v(63490),se=0,Oe=(0,Ee.Z)();function Le(){var e;return Oe?(e=se,se+=1):e="TEST_OR_SSR",e}var Ie=function(e){var t=s.useState(),r=(0,Pe.Z)(t,2),o=r[0],n=r[1];return s.useEffect(function(){n("rc_progress_".concat(Le()))},[]),e||o},ie=function(t){var r=t.bg,o=t.children;return s.createElement("div",{style:{width:"100%",height:"100%",background:r}},o)};function ae(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 We=s.forwardRef(function(e,t){var r=e.prefixCls,o=e.color,n=e.gradientId,l=e.radius,i=e.style,a=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,d=e.size,g=e.gapDegree,h=o&&(0,R.Z)(o)==="object",y=h?"#FFF":void 0,C=d/2,p=s.createElement("circle",{className:"".concat(r,"-circle-path"),r:l,cx:C,cy:C,stroke:y,strokeLinecap:c,strokeWidth:u,opacity:a===0?0:1,style:i,ref:t});if(!h)return p;var f="".concat(n,"-conic"),k=g?"".concat(180+g/2,"deg"):"0deg",S=ae(o,(360-g)/360),b=ae(o,1),m="conic-gradient(from ".concat(k,", ").concat(S.join(", "),")"),P="linear-gradient(to ".concat(g?"bottom":"top",", ").concat(b.join(", "),")");return s.createElement(s.Fragment,null,s.createElement("mask",{id:f},p),s.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(f,")")},s.createElement(ie,{bg:P},s.createElement(ie,{bg:m}))))}),De=We,F=100,Q=function(t,r,o,n,l,i,a,c,u,d){var g=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,h=o/100*360*((360-i)/360),y=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 p=F/2;return{stroke:typeof c=="string"?c:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:C+g,transform:"rotate(".concat(l+h+y,"deg)"),transformOrigin:"".concat(p,"px ").concat(p,"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}},Ne=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ce(e){var t=e!=null?e:[];return Array.isArray(t)?t:[t]}var je=function(t){var r=(0,X.Z)((0,X.Z)({},oe),t),o=r.id,n=r.prefixCls,l=r.steps,i=r.strokeWidth,a=r.trailWidth,c=r.gapDegree,u=c===void 0?0:c,d=r.gapPosition,g=r.trailColor,h=r.strokeLinecap,y=r.style,C=r.className,p=r.strokeColor,f=r.percent,k=(0,re.Z)(r,Ne),S=F/2,b=Ie(o),m="".concat(b,"-gradient"),P=S-i/2,O=Math.PI*2*P,L=u>0?90+u/2:-90,$=O*((360-u)/360),N=(0,R.Z)(l)==="object"?l:{count:l,space:2},I=N.count,j=N.space,A=ce(f),E=ce(p),x=E.find(function(V){return V&&(0,R.Z)(V)==="object"}),D=x&&(0,R.Z)(x)==="object",w=D?"butt":h,q=Q(O,$,0,100,L,u,d,g,w,i),fe=ne(),nt=function(){var K=0;return A.map(function(M,Z){var _=E[Z]||E[E.length-1],B=Q(O,$,K,M,L,u,d,_,w,i);return K+=M,s.createElement(De,{key:Z,color:_,ptg:M,radius:P,prefixCls:n,gradientId:m,style:B,strokeLinecap:w,strokeWidth:i,gapDegree:u,ref:function(ee){fe[Z]=ee},size:F})}).reverse()},st=function(){var K=Math.round(I*(A[0]/100)),M=100/I,Z=0;return new Array(I).fill(null).map(function(_,B){var U=B<=K-1?E[0]:g,ee=U&&(0,R.Z)(U)==="object"?"url(#".concat(m,")"):void 0,ge=Q(O,$,Z,M,L,u,d,U,"butt",i,j);return Z+=($-ge.strokeDashoffset+j)*100/$,s.createElement("circle",{key:B,className:"".concat(n,"-circle-path"),r:P,cx:S,cy:S,stroke:ee,strokeWidth:i,opacity:1,style:ge,ref:function(it){fe[B]=it}})})};return s.createElement("svg",(0,te.Z)({className:T()("".concat(n,"-circle"),C),viewBox:"0 0 ".concat(F," ").concat(F),style:y,id:o,role:"presentation"},k),!I&&s.createElement("circle",{className:"".concat(n,"-circle-trail"),r:P,cx:S,cy:S,stroke:g,strokeLinecap:w,strokeWidth:a||i,style:q}),I?st():nt())},le=je,ct={Line:xe,Circle:le},we=v(27850),Y=v(22601);function W(e){return!e||e<0?0:e>100?100:e}function z(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 Ae=e=>{let{percent:t,success:r,successPercent:o}=e;const n=W(z({success:r,successPercent:o}));return[n,W(W(t)-n)]},Ze=e=>{let{success:t={},strokeColor:r}=e;const{strokeColor:o}=t;return[o||Y.presetPrimaryColors.green,r||null]},G=(e,t,r)=>{var o,n,l,i;let a=-1,c=-1;if(t==="step"){const u=r.steps,d=r.strokeWidth;typeof e=="string"||typeof e=="undefined"?(a=e==="small"?2:14,c=d!=null?d:8):typeof e=="number"?[a,c]=[e,e]:[a=14,c=8]=e,a*=u}else if(t==="line"){const u=r==null?void 0:r.strokeWidth;typeof e=="string"||typeof e=="undefined"?c=u||(e==="small"?6:8):typeof e=="number"?[a,c]=[e,e]:[a=-1,c=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e=="undefined"?[a,c]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[a,c]=[e,e]:(a=(n=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&n!==void 0?n:120,c=(i=(l=e[0])!==null&&l!==void 0?l:e[1])!==null&&i!==void 0?i:120));return[a,c]},Te=3,Re=e=>Te/e*100;var Fe=e=>{const{prefixCls:t,trailColor:r=null,strokeLinecap:o="round",gapPosition:n,gapDegree:l,width:i=120,type:a,children:c,success:u,size:d=i}=e,[g,h]=G(d,"circle");let{strokeWidth:y}=e;y===void 0&&(y=Math.max(Re(g),6));const C={width:g,height:h,fontSize:g*.15+6},p=s.useMemo(()=>{if(l||l===0)return l;if(a==="dashboard")return 75},[l,a]),f=n||a==="dashboard"&&"bottom"||void 0,k=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=Ze({success:u,strokeColor:e.strokeColor}),b=T()(`${t}-inner`,{[`${t}-circle-gradient`]:k}),m=s.createElement(le,{percent:Ae(e),strokeWidth:y,trailWidth:y,strokeColor:S,strokeLinecap:o,trailColor:r,prefixCls:t,gapDegree:p,gapPosition:f});return s.createElement("div",{className:b,style:C},g<=20?s.createElement(we.Z,{title:c},s.createElement("span",null,m)):s.createElement(s.Fragment,null,m,c))},J=v(25446),Me=v(55985),Be=v(87077),Xe=v(37324);const H="--progress-line-stroke-color",de="--progress-percent",ue=e=>{const t=e?"100%":"-100%";return new J.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}})},ze=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},(0,Me.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,J.bf)(e.marginXS)})`,paddingInlineEnd:`calc(2em + ${(0,J.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",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${H})`]},height:"100%",width:`calc(1 / var(${de}) * 100%)`,display:"block"}},[`${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:ue(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:ue(!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}}})}},Ge=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"}}}},He=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}}}},Ke=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`});var Ue=(0,Be.I$)("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),r=(0,Xe.TS)(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[ze(r),Ge(r),He(r),Ve(r)]},Ke),Qe=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(", ")},Je=(e,t)=>{const{from:r=Y.presetPrimaryColors.blue,to:o=Y.presetPrimaryColors.blue,direction:n=t==="rtl"?"to left":"to right"}=e,l=Qe(e,["from","to","direction"]);if(Object.keys(l).length!==0){const a=Ye(l),c=`linear-gradient(${n}, ${a})`;return{background:c,[H]:c}}const i=`linear-gradient(${n}, ${r}, ${o})`;return{background:i,[H]:i}};var qe=e=>{const{prefixCls:t,direction:r,percent:o,size:n,strokeWidth:l,strokeColor:i,strokeLinecap:a="round",children:c,trailColor:u=null,success:d}=e,g=i&&typeof i!="string"?Je(i,r):{[H]:i,background:i},h=a==="square"||a==="butt"?0:void 0,y=n!=null?n:[-1,l||(n==="small"?6:8)],[C,p]=G(y,"line",{strokeWidth:l}),f={backgroundColor:u||void 0,borderRadius:h},k=Object.assign(Object.assign({width:`${W(o)}%`,height:p,borderRadius:h},g),{[de]:W(o)/100}),S=z(e),b={width:`${W(S)}%`,height:p,borderRadius:h,backgroundColor:d==null?void 0:d.strokeColor},m={width:C<0?"100%":C,height:p};return s.createElement(s.Fragment,null,s.createElement("div",{className:`${t}-outer`,style:m},s.createElement("div",{className:`${t}-inner`,style:f},s.createElement("div",{className:`${t}-bg`,style:k}),S!==void 0?s.createElement("div",{className:`${t}-success-bg`,style:b}):null)),c)},_e=e=>{const{size:t,steps:r,percent:o=0,strokeWidth:n=8,strokeColor:l,trailColor:i=null,prefixCls:a,children:c}=e,u=Math.round(r*(o/100)),d=t==="small"?2:14,g=t!=null?t:[d,n],[h,y]=G(g,"step",{steps:r,strokeWidth:n}),C=h/r,p=new Array(r);for(let f=0;f{const{prefixCls:r,className:o,rootClassName:n,steps:l,strokeColor:i,percent:a=0,size:c="default",showInfo:u=!0,type:d="line",status:g,format:h,style:y}=e,C=et(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),p=s.useMemo(()=>{var E,x;const D=z(e);return parseInt(D!==void 0?(E=D!=null?D:0)===null||E===void 0?void 0:E.toString():(x=a!=null?a:0)===null||x===void 0?void 0:x.toString(),10)},[a,e.success,e.successPercent]),f=s.useMemo(()=>!tt.includes(g)&&p>=100?"success":g||"normal",[g,p]),{getPrefixCls:k,direction:S,progress:b}=s.useContext(be.E_),m=k("progress",r),[P,O,L]=Ue(m),$=s.useMemo(()=>{if(!u)return null;const E=z(e);let x;const D=h||(q=>`${q}%`),w=d==="line";return h||f!=="exception"&&f!=="success"?x=D(W(a),W(E)):f==="exception"?x=w?s.createElement(he.Z,null):s.createElement(Ce.Z,null):f==="success"&&(x=w?s.createElement(me.Z,null):s.createElement(ve.Z,null)),s.createElement("span",{className:`${m}-text`,title:typeof x=="string"?x:void 0},x)},[u,a,p,f,d,m,h]),N=Array.isArray(i)?i[0]:i,I=typeof i=="string"||Array.isArray(i)?i:void 0;let j;d==="line"?j=l?s.createElement(_e,Object.assign({},e,{strokeColor:I,prefixCls:m,steps:l}),$):s.createElement(qe,Object.assign({},e,{strokeColor:N,prefixCls:m,direction:S}),$):(d==="circle"||d==="dashboard")&&(j=s.createElement(Fe,Object.assign({},e,{strokeColor:N,prefixCls:m,progressStatus:f}),$));const A=T()(m,`${m}-status-${f}`,`${m}-${d==="dashboard"&&"circle"||l&&"steps"||d}`,{[`${m}-inline-circle`]:d==="circle"&&G(c,"circle")[0]<=20,[`${m}-show-info`]:u,[`${m}-${c}`]:typeof c=="string",[`${m}-rtl`]:S==="rtl"},b==null?void 0:b.className,o,n,O,L);return P(s.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},b==null?void 0:b.style),y),className:A,role:"progressbar","aria-valuenow":p},(0,Se.Z)(C,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),j))}),ot=rt}}]); diff --git a/4462.314aca21.async.js b/4462.314aca21.async.js deleted file mode 100644 index e8b80c533d..0000000000 --- a/4462.314aca21.async.js +++ /dev/null @@ -1,10 +0,0 @@ -(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 new file mode 100644 index 0000000000..2a931ba536 --- /dev/null +++ b/4587.d08ff5a6.async.js @@ -0,0 +1 @@ +(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/4629.172abe56.async.js b/4629.172abe56.async.js new file mode 100644 index 0000000000..9fafb41395 --- /dev/null +++ b/4629.172abe56.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4629],{20873:function(ae,z,t){t.d(z,{Z:function(){return e}});const e=E=>E?typeof E=="function"?E():E:null},74629:function(ae,z,t){t.d(z,{C:function(){return pe}});var e=t(50959),E=t(82187),y=t.n(E),j=t(34682),A=t(12602),G=t(27189),L=t(92576),H=t(50483),F=t(63671),d=e.createContext({}),n=t(25446),a=t(55985),o=t(87077),l=t(37324);const r=s=>{const{antCls:g,componentCls:c,iconCls:i,avatarBg:f,avatarColor:Q,containerSize:R,containerSizeLG:O,containerSizeSM:T,textFontSize:x,textFontSizeLG:U,textFontSizeSM:ne,borderRadius:$,borderRadiusLG:D,borderRadiusSM:K,lineWidth:Z,lineType:k,calc:Y}=s,W=(M,q,P)=>({width:M,height:M,lineHeight:(0,n.bf)(Y(M).sub(Y(Z).mul(2)).equal()),borderRadius:"50%",[`&${c}-square`]:{borderRadius:P},[`${c}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${c}-icon`]:{fontSize:q,[`> ${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:Q,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:f,border:`${(0,n.bf)(Z)} ${k} transparent`,["&-image"]:{background:"transparent"},[`${g}-image-img`]:{display:"block"}}),W(R,x,$)),{["&-lg"]:Object.assign({},W(O,U,D)),["&-sm"]:Object.assign({},W(T,ne,K)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},u=s=>{const{componentCls:g,groupBorderColor:c,groupOverlapping:i,groupSpace:f}=s;return{[`${g}-group`]:{display:"inline-flex",[`${g}`]:{borderColor:c},["> *:not(:first-child)"]:{marginInlineStart:i}},[`${g}-group-popover`]:{[`${g} + ${g}`]:{marginInlineStart:f}}}},S=s=>{const{controlHeight:g,controlHeightLG:c,controlHeightSM:i,fontSize:f,fontSizeLG:Q,fontSizeXL:R,fontSizeHeading3:O,marginXS:T,marginXXS:x,colorBorderBg:U}=s;return{containerSize:g,containerSizeLG:c,containerSizeSM:i,textFontSize:Math.round((Q+R)/2),textFontSizeLG:O,textFontSizeSM:f,groupSpace:x,groupOverlapping:-T,groupBorderColor:U}};var C=(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)]},S),h=t(12158),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 f=0,i=Object.getOwnPropertySymbols(s);f{const[c,i]=e.useState(1),[f,Q]=e.useState(!1),[R,O]=e.useState(!0),T=e.useRef(null),x=e.useRef(null),U=(0,A.sQ)(g,T),{getPrefixCls:ne,avatar:$}=e.useContext(L.E_),D=e.useContext(d),K=()=>{if(!x.current||!T.current)return;const v=x.current.offsetWidth,m=T.current.offsetWidth;if(v!==0&&m!==0){const{gap:_=4}=s;_*2{Q(!0)},[]),e.useEffect(()=>{O(!0),i(1)},[s.src]),e.useEffect(K,[s.gap]);const Z=()=>{const{onError:v}=s;(v==null?void 0:v())!==!1&&O(!1)},{prefixCls:k,shape:Y,size:W,src:M,srcSet:q,icon:P,className:re,rootClassName:ee,alt:oe,draggable:Ee,children:ge,crossOrigin:Ce}=s,ie=V(s,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),p=(0,H.Z)(v=>{var m,_;return(_=(m=W!=null?W:D==null?void 0:D.size)!==null&&m!==void 0?m:v)!==null&&_!==void 0?_:"default"}),he=Object.keys(typeof p=="object"?p||{}:{}).some(v=>["xs","sm","md","lg","xl","xxl"].includes(v)),me=(0,F.Z)(he),Oe=e.useMemo(()=>{if(typeof p!="object")return{};const v=G.c4.find(_=>me[_]),m=p[v];return m?{width:m,height:m,lineHeight:`${m}px`,fontSize:m&&(P||ge)?m/2:18}:{}},[me,p]),B=ne("avatar",k),ve=(0,h.Z)(B),[Pe,ye,Se]=C(B,ve),xe=y()({[`${B}-lg`]:p==="large",[`${B}-sm`]:p==="small"}),fe=e.isValidElement(M),Me=Y||(D==null?void 0:D.shape)||"circle",_e=y()(B,xe,$==null?void 0:$.className,`${B}-${Me}`,{[`${B}-image`]:fe||M&&R,[`${B}-icon`]:!!P},Se,ve,re,ee,ye),be=typeof p=="number"?{width:p,height:p,lineHeight:`${p}px`,fontSize:P?p/2:18}:{};let te;if(typeof M=="string"&&R)te=e.createElement("img",{src:M,draggable:Ee,srcSet:q,onError:Z,alt:oe,crossOrigin:Ce});else if(fe)te=M;else if(P)te=P;else if(f||c!==1){const v=`scale(${c}) translateX(-50%)`,m={msTransform:v,WebkitTransform:v,transform:v},_=typeof p=="number"?{lineHeight:`${p}px`}:{};te=e.createElement(j.Z,{onResize:K},e.createElement("span",{className:`${B}-string`,ref:x,style:Object.assign(Object.assign({},_),m)},ge))}else te=e.createElement("span",{className:`${B}-string`,style:{opacity:0},ref:x},ge);return delete ie.onError,delete ie.gap,Pe(e.createElement("span",Object.assign({},ie,{style:Object.assign(Object.assign(Object.assign(Object.assign({},be),Oe),$==null?void 0:$.style),ie.style),className:_e,ref:U}),te))};var I=e.forwardRef(w),N=t(13763),b=t(23835),ce=t(37865);const se=s=>{const{size:g,shape:c}=e.useContext(d),i=e.useMemo(()=>({size:s.size||g,shape:s.shape||c}),[s.size,s.shape,g,c]);return e.createElement(d.Provider,{value:i},s.children)};var de=s=>{const{getPrefixCls:g,direction:c}=e.useContext(L.E_),{prefixCls:i,className:f,rootClassName:Q,style:R,maxCount:O,maxStyle:T,size:x,shape:U,maxPopoverPlacement:ne="top",maxPopoverTrigger:$="hover",children:D}=s,K=g("avatar",i),Z=`${K}-group`,k=(0,h.Z)(K),[Y,W,M]=C(K,k),q=y()(Z,{[`${Z}-rtl`]:c==="rtl"},M,k,f,Q,W),P=(0,N.Z)(D).map((ee,oe)=>(0,ce.Tm)(ee,{key:`avatar-key-${oe}`})),re=P.length;if(O&&O!a&&!o?null:e.createElement(e.Fragment,null,a&&e.createElement("div",{className:`${n}-title`},(0,A.Z)(a)),e.createElement("div",{className:`${n}-inner-content`},(0,A.Z)(o))),J=n=>{const{hashId:a,prefixCls:o,className:l,style:r,placement:u="top",title:S,content:C,children:h}=n;return e.createElement("div",{className:y()(a,o,`${o}-pure`,`${o}-placement-${u}`,l),style:r},e.createElement("div",{className:`${o}-arrow`}),e.createElement(j.G,Object.assign({},n,{className:a,prefixCls:o}),h||F(o,S,C)))},d=n=>{const{prefixCls:a,className:o}=n,l=H(n,["prefixCls","className"]),{getPrefixCls:r}=e.useContext(G.E_),u=r("popover",a),[S,C,h]=(0,L.Z)(u);return S(e.createElement(J,Object.assign({},l,{prefixCls:u,hashId:C,className:y()(o,h)})))};z.ZP=d},23835:function(ae,z,t){var e=t(50959),E=t(82187),y=t.n(E),j=t(20873),A=t(48141),G=t(92576),L=t(27850),H=t(6835),F=t(45369),J=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 e.createElement(e.Fragment,null,o&&e.createElement("div",{className:`${r}-title`},(0,j.Z)(o)),e.createElement("div",{className:`${r}-inner-content`},(0,j.Z)(l)))},n=e.forwardRef((a,o)=>{const{prefixCls:l,title:r,content:u,overlayClassName:S,placement:C="top",trigger:h="hover",mouseEnterDelay:V=.1,mouseLeaveDelay:w=.1,overlayStyle:X={}}=a,I=J(a,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:N}=e.useContext(G.E_),b=N("popover",l),[ce,se,ue]=(0,F.Z)(b),de=N(),le=y()(S,se,ue);return ce(e.createElement(L.Z,Object.assign({placement:C,trigger:h,mouseEnterDelay:V,mouseLeaveDelay:w,overlayStyle:X},I,{prefixCls:b,overlayClassName:le,ref:o,overlay:r||u?e.createElement(d,{prefixCls:b,title:r,content:u}):null,transitionName:(0,A.m)(de,"zoom-big",I.transitionName),"data-popover-inject":!0})))});n._InternalPanelDoNotUseOrYouWillBeFired=H.ZP,z.Z=n},45369:function(ae,z,t){var e=t(55985),E=t(74185),y=t(80197),j=t(73316),A=t(87077),G=t(37324),L=t(83467);const H=d=>{const{componentCls:n,popoverColor:a,titleMinWidth:o,fontWeightStrong:l,innerPadding:r,boxShadowSecondary:u,colorTextHeading:S,borderRadiusLG:C,zIndexPopup:h,titleMarginBottom:V,colorBgElevated:w,popoverBg:X,titleBorderBottom:I,innerContentPadding:N,titlePadding:b}=d;return[{[n]:Object.assign(Object.assign({},(0,e.Wf)(d)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:h,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":w,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${n}-content`]:{position:"relative"},[`${n}-inner`]:{backgroundColor:X,backgroundClip:"padding-box",borderRadius:C,boxShadow:u,padding:r},[`${n}-title`]:{minWidth:o,marginBottom:V,color:S,fontWeight:l,borderBottom:I,padding:b},[`${n}-inner-content`]:{color:a,padding:N}})},(0,y.ZP)(d,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:d.sizePopupArrow,display:"inline-block",[`${n}-content`]:{display:"inline-block"}}}]},F=d=>{const{componentCls:n}=d;return{[n]:j.i.map(a=>{const o=d[`${a}6`];return{[`&${n}-${a}`]:{"--antd-arrow-background-color":o,[`${n}-inner`]:{backgroundColor:o},[`${n}-arrow`]:{background:"transparent"}}}})}},J=d=>{const{lineWidth:n,controlHeight:a,fontHeight:o,padding:l,wireframe:r,zIndexPopupBase:u,borderRadiusLG:S,marginXS:C,lineType:h,colorSplit:V,paddingSM:w}=d,X=a-o,I=X/2,N=X/2-n,b=l;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:u+30},(0,L.w)(d)),(0,y.wZ)({contentRadius:S,limitVerticalRadius:!0})),{innerPadding:r?0:12,titleMarginBottom:r?0:C,titlePadding:r?`${I}px ${b}px ${N}px`:0,titleBorderBottom:r?`${n}px ${h} ${V}`:"none",innerContentPadding:r?`${w}px ${b}px`:0})};z.Z=(0,A.I$)("Popover",d=>{const{colorBgElevated:n,colorText:a}=d,o=(0,G.TS)(d,{popoverBg:n,popoverColor:a});return[H(o),F(o),(0,E._y)(o,"zoom-big")]},J,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})}}]); diff --git a/4767.6e1e2f14.async.js b/4767.6e1e2f14.async.js deleted file mode 100644 index b432832db8..0000000000 --- a/4767.6e1e2f14.async.js +++ /dev/null @@ -1 +0,0 @@ -"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 deleted file mode 100644 index 3184717c3d..0000000000 --- a/5095.67961338.async.js +++ /dev/null @@ -1,3 +0,0 @@ -"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/5130.1b4858db.async.js b/5130.1b4858db.async.js new file mode 100644 index 0000000000..d11f5b41cc --- /dev/null +++ b/5130.1b4858db.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5130],{75130:function(e1,u,r){r.d(u,{ZP:function(){return X}});var e=r(50959),f=r(71349),L=r(67536),v=r(39388),B=r(27263),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(82187),F=r.n(j),z=r(92576),$=()=>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(25446),x=r(87077),H=r(37324);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,Y]=T(c),q=F()(c,`${c}-${p}`,a,d==null?void 0:d.className,n,{[`${c}-rtl`]:J==="rtl"},Q,Y),_=Object.assign(Object.assign({},d==null?void 0:d.style),M);return K(e.createElement("div",{className:q,style:_},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/546.790bf438.async.js b/546.790bf438.async.js deleted file mode 100644 index 15abda0e7f..0000000000 --- a/546.790bf438.async.js +++ /dev/null @@ -1,78 +0,0 @@ -"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 deleted file mode 100644 index dda27c9f4b..0000000000 --- a/5480.87196696.async.js +++ /dev/null @@ -1,40 +0,0 @@ -(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/5743.6c627531.async.js b/5743.6c627531.async.js new file mode 100644 index 0000000000..9f32440552 --- /dev/null +++ b/5743.6c627531.async.js @@ -0,0 +1,10 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5743],{9455: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},5366:function(H,E,n){var i=n(35361),v=n(56929),$=n(50959),C=n(8376),x=n(11527),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},34635:function(H,E,n){var i=n(35361),v=n(56929),$=n(75442),C=n(50959),x=n(86047),F=n(8376),W=n(11527),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},44896:function(H,E,n){var i=n(959),v=n(35361),$=n(56929),C=n(65589),x=n(26935),F=n(23835),W=n(71770),z=n(50959),L=n(8376),c=n(11527),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=_},16965:function(H,E,n){n.d(E,{Z:function(){return se}});var i=n(50959),v=n(82187),$=n.n(v),C=n(87017),x=n(92576),F=n(50483),W=n(9146),z=n(40622),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(25446),m=n(55985),O=n(87077),g=n(37324);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,ye]=D(u),Se=i.createElement(W.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},q),ae=te!==void 0,$e=Object.assign(Object.assign({},ue),{[ae?"activeKey":"defaultActiveKey"]:ae?te:de,tabBarExtraContent:ce});let oe;const U=(0,F.Z)(J),Ce=!U||U==="default"?"large":U,ne=Y?i.createElement(z.Z,Object.assign({size:Ce},$e,{className:`${u}-head-tabs`,onChange:ve,items:Y.map(N=>{var{tab:R}=N,De=b(N,["tab"]);return Object.assign({label:R},De)})})):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 xe=re?i.createElement("div",{className:`${u}-cover`},re):null,Ee=i.createElement("div",{className:`${u}-body`,style:B},V?Se:q),Oe=ee&&ee.length?i.createElement(j,{prefixCls:u,actions:ee}):null,_e=(0,C.Z)(me,["onTabChange"]),Me=$()(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,ye),Te=Object.assign(Object.assign({},w==null?void 0:w.style),f);return be(i.createElement("div",Object.assign({ref:o},_e,{className:Me,style:Te}),oe,xe,Ee,Oe))}),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/5894.7e03ab68.async.js b/5894.7e03ab68.async.js new file mode 100644 index 0000000000..0d0cbe95cf --- /dev/null +++ b/5894.7e03ab68.async.js @@ -0,0 +1,58 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5894],{71041: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},28842: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},83964:function(te,b,a){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;const u=Z(a(81780));function Z(N){return N&&N.__esModule?N:{default:N}}const s=u;b.default=s,te.exports=s},38532:function(te,b,a){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;const u=Z(a(74769));function Z(N){return N&&N.__esModule?N:{default:N}}const s=u;b.default=s,te.exports=s},60300: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(50959)),Z=j(a(82187)),s=a(22601),N=j(a(85196)),K=j(a(73623)),L=a(11488),G=a(96728);function J(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,Y;for(Y=0;Y=0)&&(y[D]=i[D]);return y}function O(i,f){return p(i)||d(i,f)||W(i,f)||v()}function W(i,f){if(i){if(typeof i=="string")return J(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 J(i,f)}}(0,L.setTwoToneColor)(s.blue.primary);var m=u.forwardRef(function(i,f){var y=i.className,x=i.icon,D=i.spin,Y=i.rotate,me=i.tabIndex,Pe=i.onClick,Ee=i.twoToneColor,ge=C(i,["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"]),Be=u.useContext(N.default),_e=Be.prefixCls,Re=_e===void 0?"anticon":_e,ie=Be.rootClassName,je,Me=(0,Z.default)(ie,Re,(je={},A(je,"".concat(Re,"-").concat(x.name),!!x.name),A(je,"".concat(Re,"-spin"),!!D||x.name==="loading"),je),y),De=me;De===void 0&&Pe&&(De=-1);var $e=Y?{msTransform:"rotate(".concat(Y,"deg)"),transform:"rotate(".concat(Y,"deg)")}:void 0,He=O((0,G.normalizeTwoToneColors)(Ee),2),We=He[0],xe=He[1];return u.createElement("span",g(c({role:"img","aria-label":x.name},ge),{ref:f,tabIndex:De,onClick:Pe,className:Me}),u.createElement(K.default,{icon:x,primaryColor:We,secondaryColor:xe,style:$e}))});m.displayName="AntdIcon",m.getTwoToneColor=L.getTwoToneColor,m.setTwoToneColor=L.setTwoToneColor;var S=m},85196:function(te,b,a){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"default",{enumerable:!0,get:function(){return s}});var u=a(50959),Z=(0,u.createContext)({}),s=Z},73623: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(50959)),Z=a(96728);function s(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 d=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=J(L({},f),{icon:f.icon(i.primaryColor,i.secondaryColor)})),(0,Z.generate)(f.icon,"svg-".concat(f.name),J(L({className:g,onClick:C,style:P,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},m),{ref:S}))};d.displayName="IconReact",d.getTwoToneColors=r,d.setTwoToneColors=U;var v=d},11488:function(te,b,a){"use strict";Object.defineProperty(b,"__esModule",{value:!0});function u(r,d){for(var v in d)Object.defineProperty(r,v,{enumerable:!0,get:d[v]})}u(b,{setTwoToneColor:function(){return j},getTwoToneColor:function(){return U}});var Z=L(a(73623)),s=a(96728);function N(r,d){(d==null||d>r.length)&&(d=r.length);for(var v=0,c=new Array(d);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,s.updateCSS)(y,"@ant-design-icons",{prepend:!0,csp:i,attachTo:D})},[])}},35623:function(te,b,a){"use strict";a.d(b,{S:function(){return C}});var u=a(35361),Z=a(88357),s=a(97382),N=a(56929),K=a(96034),L=a(38751),G=a(82187),J=a.n(G),p=a(71770),A=a(50959),j=a(10422),U=a(84341),r=a(34829),d=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[d(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(11527),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),Y=(0,A.useContext)(L.ZP.ConfigContext),me=Y.getPrefixCls,Pe=Y.getTargetContainer,Ee=O.prefixCls||me("pro"),ge="".concat(Ee,"-footer-bar"),Be=v(ge),_e=Be.wrapSSR,Re=Be.hashId,ie=(0,A.useContext)(U.X),je=(0,A.useMemo)(function(){var xe=ie.hasSiderMenu,Ve=ie.isMobile,Ue=ie.siderWidth;if(xe)return Ue?Ve?"100%":"calc(100% - ".concat(Ue,"px)"):"100%"},[ie.collapsed,ie.hasSiderMenu,ie.isMobile,ie.siderWidth]),Me=(0,A.useMemo)(function(){return(typeof window=="undefined"?"undefined":(0,s.Z)(window))===void 0||(typeof document=="undefined"?"undefined":(0,s.Z)(document))===void 0?null:(Pe==null?void 0:Pe())||document.body},[]),De=c("".concat(ge,".").concat(ge,"-stylish"),{stylish:O.stylish}),$e=(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{className:"".concat(ge,"-left ").concat(Re).trim(),children:S}),(0,h.jsx)("div",{className:"".concat(ge,"-right ").concat(Re).trim(),children:W})]});(0,A.useEffect)(function(){return!ie||!(ie!=null&&ie.setHasFooterToolbar)?function(){}:(ie==null||ie.setHasFooterToolbar(!0),function(){var xe;ie==null||(xe=ie.setHasFooterToolbar)===null||xe===void 0||xe.call(ie,!1)})},[]);var He=(0,h.jsx)("div",(0,u.Z)((0,u.Z)({className:J()(m,Re,ge,(0,Z.Z)({},"".concat(ge,"-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),ie),{},{leftWidth:je}),$e):$e})),We=!(0,K.j)()||!f||!Me?He:(0,j.createPortal)(He,Me,ge);return De.wrapSSR(_e((0,h.jsx)(A.Fragment,{children:We},ge)))}},46268:function(te,b,a){"use strict";a.d(b,{f:function(){return U}});var u=a(88357),Z=a(38751),s=a(82187),N=a.n(s),K=a(50959),L=a(84341),G=a(35361),J=a(34829),p=function(d){return(0,u.Z)({},d.componentCls,{width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}})};function A(r){return(0,J.Xj)("ProLayoutGridContent",function(d){var v=(0,G.Z)((0,G.Z)({},d),{},{componentCls:".".concat(r)});return[p(v)]})}var j=a(11527),U=function(d){var v=(0,K.useContext)(L.X),c=d.children,h=d.contentWidth,g=d.className,C=d.style,P=(0,K.useContext)(Z.ZP.ConfigContext),O=P.getPrefixCls,W=d.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})}))}},35894:function(te,b,a){"use strict";a.d(b,{_z:function(){return Yt}});var u=a(88357),Z=a(56929),s=a(35361),N=a(97382),K=a(99192),L=a(40622),G=a(71503),J=a(38751),p=a(50959),A=a(82187),j=a.n(A),U=a(34682),r=a(87017),d=a(30360),v=a(28449);function c(t){let e;const n=l=>()=>{e=null,t.apply(void 0,(0,d.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(92576),C=a(87077);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:ae,getTargetContainer:Q}=p.useContext(g.E_),F=ae("affix",I),[q,E]=p.useState(!1),[B,M]=p.useState(),[le,V]=p.useState(),$=p.useRef(x.None),k=p.useRef(null),pe=p.useRef(),X=p.useRef(null),fe=p.useRef(null),se=p.useRef(null),re=(n=_!=null?_:Q)!==null&&n!==void 0?n:y,Se=w===void 0&&l===void 0?0:l,be=()=>{if($.current!==x.Prepare||!fe.current||!X.current||!re)return;const ce=re();if(ce){const oe={status:x.None},ee=m(X.current);if(ee.top===0&&ee.left===0&&ee.width===0&&ee.height===0)return;const we=m(ce),Ce=S(ee,we,Se),Te=i(ee,we,w);Ce!==void 0?(oe.affixStyle={position:"fixed",top:Ce,width:ee.width,height:ee.height},oe.placeholderStyle={width:ee.width,height:ee.height}):Te!==void 0&&(oe.affixStyle={position:"fixed",bottom:Te,width:ee.width,height:ee.height},oe.placeholderStyle={width:ee.width,height:ee.height}),oe.lastAffix=!!oe.affixStyle,q!==oe.lastAffix&&(H==null||H(oe.lastAffix)),$.current=oe.status,M(oe.affixStyle),V(oe.placeholderStyle),E(oe.lastAffix)}},ye=()=>{var ce;$.current=x.Prepare,be()},de=h(()=>{ye()}),ve=h(()=>{if(re&&B){const ce=re();if(ce&&X.current){const oe=m(ce),ee=m(X.current),we=S(ee,oe,Se),Ce=i(ee,oe,w);if(we!==void 0&&B.top===we||Ce!==void 0&&B.bottom===Ce)return}}ye()}),Oe=()=>{const ce=re==null?void 0:re();ce&&(f.forEach(oe=>{var ee;pe.current&&((ee=k.current)===null||ee===void 0||ee.removeEventListener(oe,pe.current)),ce==null||ce.addEventListener(oe,ve)}),k.current=ce,pe.current=ve)},Ne=()=>{se.current&&(clearTimeout(se.current),se.current=null);const ce=re==null?void 0:re();f.forEach(oe=>{var ee;ce==null||ce.removeEventListener(oe,ve),pe.current&&((ee=k.current)===null||ee===void 0||ee.removeEventListener(oe,pe.current))}),de.cancel(),ve.cancel()};p.useImperativeHandle(e,()=>({updatePosition:de})),p.useEffect(()=>(se.current=setTimeout(Oe),()=>Ne()),[]),p.useEffect(()=>{Oe()},[_,B]),p.useEffect(()=>{de()},[_,l,w]);const[ue,he,Ie]=W(F),ze=j()(ne,he,F,Ie),Ae=j()({[ze]:B});let Fe=(0,r.Z)(t,["prefixCls","offsetTop","offsetBottom","target","onChange","rootClassName"]);return ue(p.createElement(U.Z,{onResize:de},p.createElement("div",Object.assign({style:o,className:R,ref:X},Fe),B&&p.createElement("div",{style:le,"aria-hidden":"true"}),p.createElement("div",{className:Ae,ref:fe,style:B},p.createElement(U.Z,{onResize:de},z)))))}),me=a(84341),Pe=a(35623),Ee=a(46268),ge=a(959),Be=a(83964),_e=a.n(Be),Re=a(38532),ie=a.n(Re),je=a(13763),Me=a(68924),De=a(37865),$e=a(85824),He=a(3179);const We=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||"/")};We.__ANT_BREADCRUMB_SEPARATOR=!0;var xe=We,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);le[l]||o)}function Je(t,e,n,o){if(n==null)return null;const{className:l,onClick:w}=e,I=Ve(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 st(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 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);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 ae=l||{},{items:Q}=ae,F=Ke(ae,["items"]);H.menu=Object.assign(Object.assign({},F),{items:Q==null?void 0:Q.map((q,E)=>{var{key:B,title:M,label:le,path:V}=q,$=Ke(q,["key","title","label","path"]);let k=le!=null?le:M;return V&&(k=p.createElement("a",{href:`${R}${V}`},k)),Object.assign(Object.assign({},$),{key:B!=null?B:E,label:k})})})}else w&&(H.overlay=w);return p.createElement(He.Z,Object.assign({placement:"bottom"},H),p.createElement("span",{className:`${e}-overlay-link`},_,p.createElement($e.Z,null)))}return _})(o);return z!=null?p.createElement(p.Fragment,null,p.createElement("li",null,z),n&&p.createElement(xe,null,n)):null},et=t=>{const{prefixCls:e,children:n,href:o}=t,l=Ke(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 dt=et,tt=a(25446),nt=a(55985),ft=a(37324);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:ae,direction:Q,breadcrumb:F}=p.useContext(g.E_);let q;const E=ae("breadcrumb",e),[B,M,le]=gt(E),V=yt(R,I),$=st(E,z);if(V&&V.length>0){const X=[],fe=R||I;q=V.map((se,re)=>{const{path:Se,key:be,type:ye,menu:de,overlay:ve,onClick:Oe,className:Ne,separator:ue,dropdownProps:he}=se,Ie=Ct(_,Se);Ie!==void 0&&X.push(Ie);const ze=be!=null?be:re;if(ye==="separator")return p.createElement(xe,{key:ze},ue);const Ae={},Fe=re===V.length-1;de?Ae.menu=de:ve&&(Ae.overlay=ve);let{href:ce}=se;return X.length&&Ie!==void 0&&(ce=`#/${X.join("/")}`),p.createElement(qe,Object.assign({key:ze},Ae,(0,Me.Z)(se,{data:!0,aria:!0}),{className:Ne,dropdownProps:he,href:ce,separator:Fe?"":n,onClick:Oe,prefixCls:E}),$(se,_,fe,X,ce))})}else if(ne){const X=(0,je.Z)(ne).length;q=(0,je.Z)(ne).map((fe,se)=>{if(!fe)return fe;const re=se===X-1;return(0,De.Tm)(fe,{separator:re?"":n,key:se})})}const k=j()(E,F==null?void 0:F.className,{[`${E}-rtl`]:Q==="rtl"},l,w,M,le),pe=Object.assign(Object.assign({},F==null?void 0:F.style),o);return B(p.createElement("nav",Object.assign({className:k,style:pe},H),p.createElement("ol",null,q)))};Ye.Item=dt,Ye.Separator=xe;var bt=Ye,Ot=bt,Pt=a(74629),xt=a(10994),Ze=a(34829),at=function(){return{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},St=function(e){var n,o,l;return(0,u.Z)({},e.componentCls,(0,s.Z)((0,s.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,s.Z)((0,s.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,s.Z)((0,s.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,s.Z)((0,s.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,s.Z)((0,s.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(11527),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,s.Z)((0,s.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)(ie(),{}):(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"),ae=w||R||ne||z;if(!ae)return null;var Q=It(n,o),F=jt(e,l,Q,_),q=F||I||ae;return(0,T.jsxs)("div",{className:H+" "+l,children:[q&&(0,T.jsxs)("div",{className:"".concat(H,"-left ").concat(l).trim(),children:[F,I&&(0,T.jsx)(Pt.C,(0,s.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,ge.Z)(l,2),I=w[0],R=w[1],ne=function(ue){var he=ue.width;return R(he<768)},z=p.useContext(J.ZP.ConfigContext),_=z.getPrefixCls,H=z.direction,ae=e.prefixCls,Q=e.style,F=e.footer,q=e.children,E=e.breadcrumb,B=e.breadcrumbRender,M=e.className,le=e.contentWidth,V=e.layout,$=_("page-header",ae),k=wt($),pe=k.wrapSSR,X=k.hashId,fe=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},se=fe(),re=E&&"props"in E,Se=(n=B==null?void 0:B((0,s.Z)((0,s.Z)({},e),{},{prefixCls:$}),se))!==null&&n!==void 0?n:se,be=re?E:Se,ye=j()($,X,M,(o={},(0,u.Z)(o,"".concat($,"-has-breadcrumb"),!!be),(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"),le==="Fixed"&&V=="top"),(0,u.Z)(o,"".concat($,"-ghost"),!0),o)),de=Tt($,e,H,X),ve=q&&Nt($,q,X),Oe=Rt($,F,X);return!be&&!de&&!Oe&&!ve?(0,T.jsx)("div",{className:j()(X,["".concat($,"-no-children")])}):pe((0,T.jsx)(U.Z,{onResize:ne,children:(0,T.jsxs)("div",{className:ye,style:Q,children:[be,de,ve,Oe]})}))},Bt=a(35375),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,ae=H===void 0?212:H,Q=e.gapY,F=Q===void 0?222:Q,q=e.width,E=q===void 0?120:q,B=e.height,M=B===void 0?64:B,le=e.rotate,V=le===void 0?-22:le,$=e.image,k=e.offsetLeft,pe=e.offsetTop,X=e.fontStyle,fe=X===void 0?"normal":X,se=e.fontWeight,re=se===void 0?"normal":se,Se=e.fontColor,be=Se===void 0?o.colorFill:Se,ye=e.fontSize,de=ye===void 0?16:ye,ve=e.fontFamily,Oe=ve===void 0?"sans-serif":ve,Ne=e.prefixCls,ue=(0,p.useContext)(J.ZP.ConfigContext),he=ue.getPrefixCls,Ie=he("pro-layout-watermark",Ne),ze=j()("".concat(Ie,"-wrapper"),I),Ae=j()(Ie,ne),Fe=(0,p.useState)(""),ce=(0,ge.Z)(Fe,2),oe=ce[0],ee=ce[1];return(0,p.useEffect)(function(){var we=document.createElement("canvas"),Ce=we.getContext("2d"),Te=Mt(Ce),Qt="".concat((ae+E)*Te,"px"),kt="".concat((F+M)*Te,"px"),Jt=k||ae/2,qt=pe||F/2;if(we.setAttribute("width",Qt),we.setAttribute("height",kt),!Ce){console.error("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas");return}Ce.translate(Jt*Te,qt*Te),Ce.rotate(Math.PI/180*Number(V));var en=E*Te,ct=M*Te,ut=function(Xe){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ke=Number(de)*Te;Ce.font="".concat(fe," normal ").concat(re," ").concat(ke,"px/").concat(ct,"px ").concat(Oe),Ce.fillStyle=be,Array.isArray(Xe)?Xe==null||Xe.forEach(function(tn,nn){return Ce.fillText(tn,0,nn*ke+Qe)}):Ce.fillText(Xe,0,Qe?Qe+ke:0),ee(we.toDataURL())};if($){var Le=new Image;Le.crossOrigin="anonymous",Le.referrerPolicy="no-referrer",Le.src=$,Le.onload=function(){if(Ce.drawImage(Le,0,0,en,ct),ee(we.toDataURL()),e.content){ut(e.content,Le.height+8);return}};return}if(e.content){ut(e.content);return}},[ae,F,k,pe,V,fe,re,E,M,Oe,be,$,e.content,de]),(0,T.jsxs)("div",{style:(0,s.Z)({position:"relative"},w),className:ze,children:[l,(0,T.jsx)("div",{className:Ae,style:(0,s.Z)((0,s.Z)({zIndex:_,position:"absolute",left:0,top:0,width:"100%",height:"100%",backgroundSize:"".concat(ae+E,"px"),pointerEvents:"none",backgroundRepeat:"repeat"},oe?{backgroundImage:"url('".concat(oe,"')")}:{}),R)})]})},Ht=[576,768,992,1200].map(function(t){return"@media (max-width: ".concat(t,"px)")}),Ge=(0,ge.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,ae,Q,F,q,E,B,M,le,V,$,k;return(0,u.Z)({},e.componentCls,(k={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)(k,"& &-warp-page-header",(V={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)(V,"& ~ ".concat(e.proComponentsCls,"-grid-content"),(0,u.Z)({},"".concat(e.proComponentsCls,"-page-container-children-content"),{paddingBlock:((ae=(Q=e.layout)===null||Q===void 0||(Q=Q.pageContainer)===null||Q===void 0?void 0:Q.paddingBlockPageContainerContent)!==null&&ae!==void 0?ae:24)/3})),(0,u.Z)(V,"".concat(e.antCls,"-page-header-breadcrumb"),{paddingBlockStart:((F=(q=e.layout)===null||q===void 0||(q=q.pageContainer)===null||q===void 0?void 0:q.paddingBlockPageContainerContent)!==null&&F!==void 0?F:40)/4+10}),(0,u.Z)(V,"".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)(V,"".concat(e.antCls,"-page-header-footer"),{marginBlockStart:((M=(le=e.layout)===null||le===void 0||(le=le.pageContainer)===null||le===void 0?void 0:le.paddingBlockPageContainerContent)!==null&&M!==void 0?M:40)/4}),V)),(0,u.Z)(k,"&-detail",(0,u.Z)({display:"flex"},ot,{display:"block"})),(0,u.Z)(k,"&-main",{width:"100%"}),(0,u.Z)(k,"&-row",(0,u.Z)({display:"flex",width:"100%"},it,{display:"block"})),(0,u.Z)(k,"&-content",{flex:"auto",width:"100%"}),(0,u.Z)(k,"&-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}),$)),k))};function Wt(t,e){return(0,Ze.Xj)("ProLayoutPageContainer",function(n){var o,l=(0,s.Z)((0,s.Z)({},n),{},{componentCls:".".concat(t),layout:(0,s.Z)((0,s.Z)({},n==null?void 0:n.layout),{},{pageContainer:(0,s.Z)((0,s.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,s.Z)((0,s.Z)({},o),{},{componentCls:".".concat(t)});return n?[(0,u.Z)({},"div".concat(l.componentCls),n==null?void 0:n(l))]:[]})}var Lt=a(45057),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,s.Z)((0,s.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,s.Z)((0,s.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,s.Z)({tab:z.tab},z),z.key||_)}):null})):null},Vt=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,ae=e.hashId,Q=e.value,F=e.breadcrumbRender,q=(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,s.Z)((0,s.Z)({},e),Q))]});var B=o;!o&&o!==!1&&(B=Q.title);var M=(0,s.Z)((0,s.Z)((0,s.Z)({},Q),{},{title:B},q),{},{footer:Gt((0,s.Z)((0,s.Z)({},q),{},{hashId:ae,breadcrumbRender:F,prefixedClassName:R}))},I),le=M,V=le.breadcrumb,$=(!V||!(V!=null&&V.itemRender)&&!(V!=null&&(n=V.items)!==null&&n!==void 0&&n.length))&&!F;return["title","subTitle","extra","tags","footer","avatar","backIcon"].every(function(k){return!M[k]})&&$&&!l&&!ne?null:(0,T.jsx)(Et,(0,s.Z)((0,s.Z)({},M),{},{className:"".concat(R,"-warp-page-header ").concat(ae).trim(),breadcrumb:F===!1?void 0:(0,s.Z)((0,s.Z)({},M.breadcrumb),Q.breadcrumbProps),breadcrumbRender:E(),prefixCls:H,children:(I==null?void 0:I.children)||Vt(l,ne,R,ae)}))},Kt=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,ae=e.token,Q=e.fixedHeader,F=e.breadcrumbRender,q=e.footerToolBarProps,E=e.childrenContentStyle,B=(0,Z.Z)(e,Xt),M=(0,p.useContext)(me.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(he){return he+1}),function(){var he;M==null||(he=M.setHasPageContainer)===null||he===void 0||he.call(M,function(Ie){return Ie-1})})},[]);var le=(0,p.useContext)(K.L_),V=le.token,$=(0,p.useContext)(J.ZP.ConfigContext),k=$.getPrefixCls,pe=e.prefixCls||k("pro"),X="".concat(pe,"-page-container"),fe=Wt(X,ae),se=fe.wrapSSR,re=fe.hashId,Se=zt("".concat(X,".").concat(X,"-stylish"),{stylish:e.stylish}),be=(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]),ye=lt((0,s.Z)((0,s.Z)({},B),{},{breadcrumbRender:be,ghost:!0,hashId:re,prefixCls:void 0,prefixedClassName:X,value:M})),de=(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,s.Z)({},ue)):null},[R]),ve=(0,p.useMemo)(function(){return w?(0,T.jsx)(T.Fragment,{children:(0,T.jsx)("div",{className:j()(re,"".concat(X,"-children-container"),(0,u.Z)({},"".concat(X,"-children-container-no-header"),!ye)),style:E,children:w})}):null},[w,X,E,re]),Oe=(0,p.useMemo)(function(){var ue=de||ve;if(e.waterMarkProps||M.waterMarkProps){var he=(0,s.Z)((0,s.Z)({},M.waterMarkProps),e.waterMarkProps);return(0,T.jsx)(Dt,(0,s.Z)((0,s.Z)({},he),{},{children:ue}))}return ue},[e.waterMarkProps,M.waterMarkProps,de,ve]),Ne=j()(X,re,ne,(o={},(0,u.Z)(o,"".concat(X,"-with-footer"),_),(0,u.Z)(o,"".concat(X,"-with-affix"),Q&&ye),(0,u.Z)(o,"".concat(X,"-stylish"),!!B.stylish),o));return se(Se.wrapSSR((0,T.jsxs)(T.Fragment,{children:[(0,T.jsxs)("div",{style:z,className:Ne,children:[Q&&ye?(0,T.jsx)(Y,(0,s.Z)((0,s.Z)({offsetTop:M.hasHeader&&M.fixedHeader?(l=V.layout)===null||l===void 0||(l=l.header)===null||l===void 0?void 0:l.heightLayoutHeader:1},H),{},{className:"".concat(X,"-affix ").concat(re).trim(),children:(0,T.jsx)("div",{className:"".concat(X,"-warp ").concat(re).trim(),children:ye})})):ye,Oe&&(0,T.jsx)(Ee.f,{children:Oe})]}),_&&(0,T.jsx)(Pe.S,(0,s.Z)((0,s.Z)({stylish:B.footerStylish,prefixCls:pe},q),{},{children:_}))]})))},Yt=function(e){return(0,T.jsx)(K._Y,{needDeps:!0,children:(0,T.jsx)(Kt,(0,s.Z)({},e))})},an=function(e){var n=useContext(RouteContext);return lt(_objectSpread(_objectSpread({},e),{},{hashId:"",value:n}))}},35375:function(te,b,a){"use strict";a.d(b,{S:function(){return G}});var u=a(35361),Z=a(56929),s=a(13089),N=a(50959),K=a(11527),L=["isLoading","pastDelay","timedOut","error","retry"],G=function(p){var A=p.isLoading,j=p.pastDelay,U=p.timedOut,r=p.error,d=p.retry,v=(0,Z.Z)(p,L);return(0,K.jsx)("div",{style:{paddingBlockStart:100,textAlign:"center"},children:(0,K.jsx)(s.Z,(0,u.Z)({size:"large"},v))})}},84341:function(te,b,a){"use strict";a.d(b,{X:function(){return Z}});var u=a(50959),Z=(0,u.createContext)({})},19111: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)}},89877: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 s=Z;s;){if(s===u)return!0;s=s.parentNode}return!1}},4128:function(te,b,a){"use strict";var u=a(7613).default;Object.defineProperty(b,"__esModule",{value:!0}),b.clearContainerCache=c,b.injectCSS=U,b.removeCSS=d,b.updateCSS=h;var Z=u(a(19111)),s=u(a(89877)),N="data-rc-order",K="data-rc-priority",L="rc-util-key",G=new Map;function J(){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(Y){if(!["prepend","prependQueue"].includes(Y.getAttribute(N)))return!1;var me=Number(Y.getAttribute(K)||0);return m>=me});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(J(C))===g})}function d(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,s.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(J(P),C),f}},75958:function(te,b){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.getShadowRoot=Z,b.inShadow=u;function a(s){var N;return s==null||(N=s.getRootNode)===null||N===void 0?void 0:N.call(s)}function u(s){return a(s)instanceof ShadowRoot}function Z(s){return u(s)?a(s):null}},67856:function(te,b){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.call=L,b.default=void 0,b.note=N,b.noteOnce=J,b.preMessage=void 0,b.resetWarned=K,b.warning=s,b.warningOnce=G;var a={},u=[],Z=b.preMessage=function(j){u.push(j)};function s(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(s,A,j)}function J(A,j){L(N,A,j)}G.preMessage=Z,G.resetWarned=K,G.noteOnce=J;var p=b.default=G},7613: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/5911.ef2ef75b.async.js b/5911.ef2ef75b.async.js new file mode 100644 index 0000000000..87105f3b2a --- /dev/null +++ b/5911.ef2ef75b.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5911],{64935:function(O,a,t){"use strict";t.d(a,{Z:function(){return r}});var e=t(35361),o=t(50959),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(69164),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)},93590:function(O,a,t){"use strict";t.d(a,{Z:function(){return r}});var e=t(35361),o=t(50959),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(69164),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)},26252:function(O,a,t){"use strict";t.d(a,{Z:function(){return r}});var e=t(35361),o=t(50959),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(69164),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)},19791:function(O,a,t){"use strict";t.d(a,{Z:function(){return r}});var e=t(35361),o=t(50959),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(69164),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)},55842:function(O,a,t){"use strict";t.d(a,{Z:function(){return r}});var e=t(35361),o=t(50959),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(69164),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)},1442:function(O,a,t){"use strict";var e=t(35361),o=t(50959),u=t(63374),d=t(69164),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)},50615:function(O,a,t){"use strict";t.d(a,{Z:function(){return r}});var e=t(35361),o=t(50959),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(69164),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)},57249:function(O,a,t){"use strict";t.d(a,{Z:function(){return r}});var e=t(27263),o=t(50959),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(38782),n=function(l,f){return o.createElement(c.Z,(0,e.Z)({},l,{ref:f,icon:d}))},r=o.forwardRef(n)},96527:function(O,a,t){"use strict";t.d(a,{Z:function(){return r}});var e=t(27263),o=t(50959),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(38782),n=function(l,f){return o.createElement(c.Z,(0,e.Z)({},l,{ref:f,icon:d}))},r=o.forwardRef(n)},46268:function(O,a,t){"use strict";t.d(a,{f:function(){return R}});var e=t(88357),o=t(38751),u=t(82187),d=t.n(u),c=t(50959),n=t(84341),r=t(35361),C=t(34829),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(11527),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})}))}},84341:function(O,a,t){"use strict";t.d(a,{X:function(){return o}});var e=t(50959),o=(0,e.createContext)({})},61323:function(O,a,t){"use strict";var e=t(53263);a.Z=e.Z},21713:function(O,a,t){"use strict";t.d(a,{Z:function(){return vt}});var e=t(50959),o=t(82187),u=t.n(o),d=t(92576),c=t(59263),n=t(85580),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(99053),f=t(57249),b=t(96527),R=t(87017),M=t(12602),y=t(25341),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(61020),A=t(37865),et=t(86865),ct=t(50483),Q=t(58163),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(41787);const X=l.Z;X.Group=C,X.Search=ot,X.TextArea=lt.Z,X.Password=Z;var vt=X},48966:function(O,a,t){"use strict";var e=t(92002);a.Z=e.Z},92117: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/5922.af6d4b93.async.js b/5922.af6d4b93.async.js new file mode 100644 index 0000000000..20341b8cd2 --- /dev/null +++ b/5922.af6d4b93.async.js @@ -0,0 +1,40 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5922],{8941:function(ie,L){"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"};L.Z=a},15922:function(ie,L,a){"use strict";a.d(L,{Z:function(){return Nt}});var o=a(50959),F=a(87132),se=a(8221),de=a(27263),xe=a(8941),H=a(38782),v=function(n,r){return o.createElement(H.Z,(0,de.Z)({},n,{ref:r,icon:xe.Z}))},W=o.forwardRef(v),ue=a(82187),q=a.n(ue),ee=a(874),V=a.n(ee),y=a(34682),te=a(13763),ne=a(77189),z=a(65589),oe=a(87017),Re=a(12602),Ie=a(5449),fe=a(57),Ve=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=Ve(e,["style","noStyle","disabled"]);let u={};return f||(u=Object.assign({},Xe)),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}))}),Pe=a(92576),Ge=a(91886),Se=a(27850),Je={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"},Qe=Je,Ye=function(n,r){return o.createElement(H.Z,(0,de.Z)({},n,{ref:r,icon:Qe}))},qe=o.forwardRef(Ye),_e=a(37865),et=a(41787),Ne=a(8663),tt=a(87077),nt=a(22601),ot=a(25446);const rt=(e,n,r,t)=>{const{titleMarginBottom:l,fontWeightStrong:f}=t;return{marginBottom:l,color:r,fontWeight:f,fontSize:e,lineHeight:n}},lt=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} + `]=rt(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),r},it=e=>{const{componentCls:n}=e;return{"a&, a":Object.assign(Object.assign({},(0,Ne.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"}}})}},st=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:nt.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}}),at=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,ot.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"}}}},ct=e=>({[`${e.componentCls}-copy-success`]:{[` + &, + &:hover, + &:focus`]:{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),dt=()=>({[` + 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"}}),ut=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"}},lt(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}}}),st(e)),it(e)),{[` + ${n}-expand, + ${n}-edit, + ${n}-copy + `]:Object.assign(Object.assign({},(0,Ne.N)(e)),{marginInlineStart:e.marginXXS})}),at(e)),ct(e)),dt()),{"&-rtl":{direction:"rtl"}})}},ft=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"});var $e=(0,tt.I$)("Typography",e=>[ut(e)],ft),pt=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:$,enterIcon:P=o.createElement(qe,null)}=e,m=o.useRef(null),h=o.useRef(!1),N=o.useRef(),[X,k]=o.useState(u);o.useEffect(()=>{k(u)},[u]),o.useEffect(()=>{if(m.current&&m.current.resizableTextArea){const{textArea:C}=m.current.resizableTextArea;C.focus();const{length:I}=C.value;C.setSelectionRange(I,I)}},[]);const d=C=>{let{target:I}=C;k(I.value.replace(/[\n\r]/g,""))},S=()=>{h.current=!0},R=()=>{h.current=!1},O=C=>{let{keyCode:I}=C;h.current||(N.current=I)},_=()=>{p(X.trim())},K=C=>{let{keyCode:I,ctrlKey:ce,altKey:J,metaKey:re,shiftKey:ye}=C;N.current===I&&!h.current&&!ce&&!J&&!re&&!ye&&(I===fe.Z.ENTER?(_(),T==null||T()):I===fe.Z.ESC&&c())},g=()=>{_()},E=$?`${n}-${$}`:"",[B,D,U]=$e(n),G=q()(n,`${n}-edit-content`,{[`${n}-rtl`]:f==="rtl"},t,E,D,U);return B(o.createElement("div",{className:G,style:l},o.createElement(et.Z,{ref:m,maxLength:b,value:X,onChange:d,onKeyDown:O,onKeyUp:K,onCompositionStart:S,onCompositionEnd:R,onBlur:g,"aria-label":r,rows:1,autoSize:w}),P!==null?(0,_e.Tm)(P,{className:`${n}-edit-content-confirm`}):null))};function Oe(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)},mt=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=mt(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:T,direction:$,typography:P}=o.useContext(Pe.E_),m=u!=null?u:$;let h=n;b&&(h=(0,Re.sQ)(n,b));const N=T("typography",r),[X,k,d]=$e(N),S=q()(N,P==null?void 0:P.className,{[`${N}-rtl`]:m==="rtl"},l,f,k,d),R=Object.assign(Object.assign({},P==null?void 0:P.style),p);return X(o.createElement(t,Object.assign({className:S,style:R,ref:h},c),w))});function Me(e){const n=typeof e;return n==="string"||n==="number"}function yt(e){let n=0;return e.forEach(r=>{Me(r)?n+=String(r).length:n+=1}),n}function Ce(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 vt=0,pe=1,ze=2,we=3,Te=4;var bt=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]),[$,P]=o.useState(0),[m,h]=o.useState(vt),[N,X]=o.useState(0),k=o.useRef(null),d=o.useRef(null),S=o.useMemo(()=>(0,te.Z)(t),[t]),R=o.useMemo(()=>yt(S),[S]),O=o.useMemo(()=>!n||m!==we?$&&m!==Te&&n?r(Ce(S,$),${n&&l&&f&&R&&(h(pe),T([0,Math.ceil(R/2),R]))},[n,l,f,t,R,b]),(0,ne.Z)(()=>{var E;m===pe&&X(((E=k.current)===null||E===void 0?void 0:E.offsetHeight)||0)},[m]),(0,ne.Z)(()=>{var E,B;if(N){if(m===pe){const D=((E=d.current)===null||E===void 0?void 0:E.offsetHeight)||0,U=b*N;D<=U?(h(Te),w(!1)):h(ze)}else if(m===ze)if(u!==c){const D=((B=d.current)===null||B===void 0?void 0:B.offsetHeight)||0,U=b*N;let G=u,C=c;u===c-1?C=u:D<=U?G=p:C=p;const I=Math.ceil((G+C)/2);T([G,I,C])}else h(we),P(p),w(!0)}},[m,u,c,b,N]);const _={width:l,whiteSpace:"normal",margin:0,padding:0},K=(E,B,D)=>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},D)},E),g=(E,B)=>{const D=Ce(S,E);return K(r(D,!0),B,_)};return o.createElement(o.Fragment,null,O,n&&m!==we&&m!==Te&&o.createElement(o.Fragment,null,K("lg",k,{wordBreak:"keep-all",whiteSpace:"nowrap"}),m===pe?K(r(S,!1),d,_):g(p,d)))},ht=e=>{let{enabledEllipsis:n,isEllipsis:r,children:t,tooltipProps:l}=e;return!(l!=null&&l.title)||!n?t:o.createElement(Se.Z,Object.assign({open:r?void 0:!1},l),t)},Et=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:$,copyable:P,component:m,title:h}=e,N=Et(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:X,direction:k}=o.useContext(Pe.E_),[d]=(0,Ge.Z)("Text"),S=o.useRef(null),R=o.useRef(null),O=X("typography",f),_=(0,oe.Z)(N,["mark","code","delete","underline","strong","keyboard","italic"]),[K,g]=Oe($),[E,B]=(0,z.Z)(!1,{value:g.editing}),{triggerType:D=["icon"]}=g,U=i=>{var s;i&&((s=g.onStart)===null||s===void 0||s.call(g)),B(i)};gt(()=>{var i;E||(i=R.current)===null||i===void 0||i.focus()},[E]);const G=i=>{i==null||i.preventDefault(),U(!0)},C=i=>{var s;(s=g.onChange)===null||s===void 0||s.call(g,i),U(!1)},I=()=>{var i;(i=g.onCancel)===null||i===void 0||i.call(g),U(!1)},[ce,J]=Oe(P),[re,ye]=o.useState(!1),je=o.useRef(null),Ze={};J.format&&(Ze.format=J.format);const He=()=>{je.current&&clearTimeout(je.current)},$t=i=>{var s;i==null||i.preventDefault(),i==null||i.stopPropagation(),V()(J.text||String(c)||"",Ze),ye(!0),He(),je.current=setTimeout(()=>{ye(!1)},3e3),(s=J.onCopy)===null||s===void 0||s.call(J,i)};o.useEffect(()=>He,[]);const[ke,Dt]=o.useState(!1),[Ae,Mt]=o.useState(!1),[zt,Bt]=o.useState(!1),[We,Zt]=o.useState(!1),[Ke,Ht]=o.useState(!1),[kt,At]=o.useState(!0),[Q,x]=Oe(T,{expandable:!1}),Z=Q&&!zt,{rows:le=1}=x,ve=o.useMemo(()=>!Z||x.suffix!==void 0||x.onEllipsis||x.expandable||K||ce,[Z,x,K,ce]);(0,ne.Z)(()=>{Q&&!ve&&(Dt((0,Ie.G)("webkitLineClamp")),Mt((0,Ie.G)("textOverflow")))},[ve,Q]);const A=o.useMemo(()=>ve?!1:le===1?Ae:ke,[ve,Ae,ke]),Ue=Z&&(A?Ke:We),Wt=Z&&le===1&&A,be=Z&&le>1&&A,Kt=i=>{var s;Bt(!0),(s=x.onExpand)===null||s===void 0||s.call(x,i)},[Fe,Ut]=o.useState(0),[Ft,Vt]=o.useState(0),Xt=(i,s)=>{let{offsetWidth:j}=i;var M;Ut(j),Vt(parseInt((M=window.getComputedStyle)===null||M===void 0?void 0:M.call(window,s).fontSize,10)||0)},Gt=i=>{var s;Zt(i),We!==i&&((s=x.onEllipsis)===null||s===void 0||s.call(x,i))};o.useEffect(()=>{const i=S.current;if(Q&&A&&i){const s=be?i.offsetHeight{const i=S.current;if(typeof IntersectionObserver=="undefined"||!i||!A||!Z)return;const s=new IntersectionObserver(()=>{At(!!i.offsetParent)});return s.observe(i),()=>{s.disconnect()}},[A,Z]);let Y={};x.tooltip===!0?Y={title:(r=g.text)!==null&&r!==void 0?r:c}:o.isValidElement(x.tooltip)?Y={title:x.tooltip}:typeof x.tooltip=="object"?Y=Object.assign({title:(t=g.text)!==null&&t!==void 0?t:c},x.tooltip):Y={title:x.tooltip};const he=o.useMemo(()=>{const i=s=>["string","number"].includes(typeof s);if(!(!Q||A)){if(i(g.text))return g.text;if(i(c))return c;if(i(h))return h;if(i(Y.title))return Y.title}},[Q,A,h,Y.title,Ue]);if(E)return o.createElement(pt,{value:(l=g.text)!==null&&l!==void 0?l:typeof c=="string"?c:"",onSave:C,onCancel:I,onEnd:g.onEnd,prefixCls:O,className:b,style:w,direction:k,component:m,maxLength:g.maxLength,autoSize:g.autoSize,enterIcon:g.enterIcon});const Jt=()=>{const{expandable:i,symbol:s}=x;if(!i)return null;let j;return s?j=s:j=d==null?void 0:d.expand,o.createElement("a",{key:"expand",className:`${O}-expand`,onClick:Kt,"aria-label":d==null?void 0:d.expand},j)},Qt=()=>{if(!K)return;const{icon:i,tooltip:s}=g,j=(0,te.Z)(s)[0]||(d==null?void 0:d.edit),M=typeof j=="string"?j:"";return D.includes("icon")?o.createElement(Se.Z,{key:"edit",title:s===!1?"":j},o.createElement(Le,{ref:R,className:`${O}-edit`,onClick:G,"aria-label":M},i||o.createElement(W,{role:"button"}))):null},Yt=()=>{if(!ce)return null;const{tooltips:i,icon:s}=J,j=Be(i),M=Be(s),Ee=re?ge(j[1],d==null?void 0:d.copied):ge(j[0],d==null?void 0:d.copy),en=re?d==null?void 0:d.copied:d==null?void 0:d.copy,tn=typeof Ee=="string"?Ee:en;return o.createElement(Se.Z,{key:"copy",title:Ee},o.createElement(Le,{className:q()(`${O}-copy`,{[`${O}-copy-success`]:re,[`${O}-copy-icon-only`]:c==null}),onClick:$t,"aria-label":tn},re?ge(M[1],o.createElement(F.Z,null),!0):ge(M[0],o.createElement(se.Z,null),!0)))},qt=i=>[i&&Jt(),Qt(),Yt()],_t=i=>[i&&o.createElement("span",{"aria-hidden":!0,key:"ellipsis"},St),x.suffix,qt(i)];return o.createElement(y.Z,{onResize:Xt,disabled:!Z},i=>o.createElement(ht,{tooltipProps:Y,enabledEllipsis:Z,isEllipsis:Ue},o.createElement(De,Object.assign({className:q()({[`${O}-${u}`]:u,[`${O}-disabled`]:p,[`${O}-ellipsis`]:Q,[`${O}-single-line`]:Z&&le===1,[`${O}-ellipsis-single-line`]:Wt,[`${O}-ellipsis-multiple-line`]:be},b),prefixCls:f,style:Object.assign(Object.assign({},w),{WebkitLineClamp:be?le:void 0}),component:m,ref:(0,Re.sQ)(i,S,n),direction:k,onClick:D.includes("text")?G:void 0,"aria-label":he==null?void 0:he.toString(),title:h},_),o.createElement(bt,{enabledMeasure:Z&&!A,text:c,rows:le,width:Fe,fontSize:Ft,onEllipsis:Gt},(s,j)=>{let M=s;return s.length&&j&&he&&(M=o.createElement("span",{key:"show-content","aria-hidden":!0},M)),xt(e,o.createElement(o.Fragment,null,M,_t(j)))}))))}),Ot=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=Ot(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"}))}),wt=o.forwardRef((e,n)=>o.createElement(me,Object.assign({ref:n},e,{component:"div"}))),Tt=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=Tt(e,["ellipsis"]);const l=o.useMemo(()=>r&&typeof r=="object"?(0,oe.Z)(r,["expandable","rows"]):r,[r]);return o.createElement(me,Object.assign({ref:n},t,{ellipsis:l,component:"span"}))};var Rt=o.forwardRef(jt),It=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=It(e,["level"]);let l;return Lt.includes(r)?l=`h${r}`:l="h1",o.createElement(me,Object.assign({ref:n},t,{component:l}))});const ae=De;ae.Text=Rt,ae.Link=Ct,ae.Title=Pt,ae.Paragraph=wt;var Nt=ae},874:function(ie,L,a){"use strict";var o=a(16935),F={"text/plain":"Text","text/html":"Url",default:"Text"},se="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 xe(H,v){var W,ue,q,ee,V,y,te=!1;v||(v={}),W=v.debug||!1;try{q=o(),ee=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 oe=F[v.format]||F.default;window.clipboardData.setData(oe,H)}else z.clipboardData.clearData(),z.clipboardData.setData(v.format,H);v.onCopy&&(z.preventDefault(),v.onCopy(z.clipboardData))}),document.body.appendChild(y),ee.selectNodeContents(y),V.addRange(ee);var ne=document.execCommand("copy");if(!ne)throw new Error("copy command was unsuccessful");te=!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),te=!0}catch(oe){W&&console.error("unable to copy using clipboardData: ",oe),W&&console.error("falling back to prompt"),ue=de("message"in v?v.message:se),window.prompt(ue,H)}}finally{V&&(typeof V.removeRange=="function"?V.removeRange(ee):V.removeAllRanges()),y&&document.body.removeChild(y),q()}return te}ie.exports=xe},16935:function(ie){ie.exports=function(){var L=document.getSelection();if(!L.rangeCount)return function(){};for(var a=document.activeElement,o=[],F=0;F0&&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(30360),Me=u(34682),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;lE?(m=g,C.current="x"):(m=T,C.current="y"),t(-m,-m)&&b.preventDefault()}var w=(0,n.useRef)(null);w.current={onTouchStart:v,onTouchMove:L,onTouchEnd:A,onWheel:H},n.useEffect(function(){function b(P){w.current.onTouchStart(P)}function g(P){w.current.onTouchMove(P)}function T(P){w.current.onTouchEnd(P)}function m(P){w.current.onWheel(P)}return document.addEventListener("touchmove",g,{passive:!1}),document.addEventListener("touchend",T,{passive:!1}),e.current.addEventListener("touchstart",b,{passive:!1}),e.current.addEventListener("wheel",m),function(){document.removeEventListener("touchmove",g),document.removeEventListener("touchend",T)}},[])}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,O=p-1;O>=0;O-=1){var v=e.get(l[O].key)||nt;if(v[f]<$){W=O+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 Ht="TABS_DQ";function it(e){return String(e).replace(/"/g,Ht)}function ot(e,t,a,r){return!(!a||r||e===!1||e===void 0&&(t===!1||t===null))}var Gt=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=Gt,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),Y=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,O=e.popupClassName,v=(0,n.useState)(!1),L=(0,R.Z)(v,2),A=L[0],C=L[1],H=(0,n.useState)(null),w=(0,R.Z)(H,2),b=w[0],g=w[1],T="".concat(r,"-more-popup"),m="".concat(a,"-dropdown"),P=b!==null?"".concat(T,"-").concat(b):null,E=o==null?void 0:o.dropdownAriaLabel;function z(x,B){x.preventDefault(),x.stopPropagation(),$.onEdit("remove",{key:B,event:x})}var Q=n.createElement(st.ZP,{onClick:function(B){var K=B.key,F=B.domEvent;_(K,F),C(!1)},prefixCls:"".concat(m,"-menu"),id:T,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[b],"aria-label":E!==void 0?E:"expanded dropdown"},i.map(function(x){var B=x.closable,K=x.disabled,F=x.closeIcon,X=x.key,J=x.label,re=ot(B,F,$,K);return n.createElement(st.sN,{key:X,id:"".concat(T,"-").concat(X),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(X),disabled:K},n.createElement("span",null,J),re&&n.createElement("button",{type:"button","aria-label":N||"remove",tabIndex:0,className:"".concat(m,"-menu-item-remove"),onClick:function(ie){ie.stopPropagation(),z(ie,X)}},F||$.removeIcon||"\xD7"))}));function te(x){for(var B=i.filter(function(re){return!re.disabled}),K=B.findIndex(function(re){return re.key===b})||0,F=B.length,X=0;XS?"left":"right"})}),E=(0,R.Z)(P,2),z=E[0],Q=E[1],te=qe(0,function(M,S){!m&&_&&_({direction:M>S?"top":"bottom"})}),ae=(0,R.Z)(te,2),j=ae[0],ne=ae[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],re=X[1],Te=(0,n.useState)([0,0]),ie=(0,R.Z)(Te,2),Oe=ie[0],Be=ie[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),He=Ce(Oe,m),mt=Ce(De,m),gt=Wese?se:M}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(M,S){function D(V,de){V(function(le){var Le=Ge(le+de);return Le})}return gt?(m?D(Q,M):D(ne,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?z:j,he,He,mt,(0,U.Z)((0,U.Z)({},e),{},{tabs:L})),$t=(0,R.Z)(Da,2),Wa=$t[0],Ha=$t[1],St=(0,Zt.Z)(function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l,S=Pe.get(M)||{width:0,height:0,left:0,right:0,top:0};if(m){var D=z;s?S.rightz+q&&(D=S.right+S.width-q):S.left<-z?D=-S.left:S.left+S.width>-z+q&&(D=-(S.left+S.width-q)),ne(0),Q(Ge(D))}else{var V=j;S.top<-j?V=-S.top:S.top+S.height>-j+q&&(V=-(S.top+S.height-q)),Q(0),ne(Ge(V))}}),Re={};$==="top"||$==="bottom"?Re[s?"marginRight":"marginLeft"]=p:Re.marginTop=p;var yt=L.map(function(M,S){var D=M.key;return n.createElement(Ut,{id:o,prefixCls:v,key:D,tab:M,style:S===0?void 0:Re,closable:M.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 le,Le=de.key,It=(le=b.current)===null||le===void 0?void 0:le.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(M){return M.key}).join("_")]);var Ie=at(function(){var M=ue(A),S=ue(C),D=ue(H);K([M[0]-S[0]-D[0],M[1]-S[1]-D[1]]);var V=ue(T);Be(V);var de=ue(g);Z(de);var le=ue(b);re([le[0]-V[0],le[1]-V[1]]),xt()}),Ga=L.slice(0,Wa),ja=L.slice(Ha+1),Ct=[].concat((0,Ye.Z)(Ga),(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,oe,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=z>0,Xe=z!==se):(Xe=z<0,Ve=z!==oe):(Et=j<0,Rt=j!==oe),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,G.Z)(a,"".concat(pe,"-ping-left"),Xe),(0,G.Z)(a,"".concat(pe,"-ping-right"),Ve),(0,G.Z)(a,"".concat(pe,"-ping-top"),Et),(0,G.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(z,"px, ").concat(j,"px)"),transition:Ee?"none":void 0}},yt,n.createElement(lt,{ref:T,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,G.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:H,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,G.Z)({},"".concat(s,"-content-animated"),y))},d.map(function($){var p=$.key,I=$.forceRender,N=$.style,_=$.className,W=$.destroyInactiveTabPane,O=(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,H=L.className;return n.createElement(ut,(0,ee.Z)({},O,{prefixCls:f,id:a,tabKey:p,animated:y,active:v,style:(0,U.Z)((0,U.Z)({},N),C),className:k()(_,H),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,O=e.locale,v=e.moreIcon,L=e.moreTransitionName,A=e.destroyInactiveTabPane,C=e.renderTabBar,H=e.onChange,w=e.onTabClick,b=e.onTabScroll,g=e.getPopupContainer,T=e.popupClassName,m=e.indicatorSize,P=(0,Se.Z)(e,oa),E=n.useMemo(function(){return(l||[]).filter(function(Z){return Z&&(0,ze.Z)(Z)==="object"&&"key"in Z})},[l]),z=s==="rtl",Q=wt($),te=(0,n.useState)(!1),ae=(0,R.Z)(te,2),j=ae[0],ne=ae[1];(0,n.useEffect)(function(){ne((0,Lt.Z)())},[]);var me=(0,Fe.Z)(function(){var Z;return(Z=E[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 E.findIndex(function(Z){return Z.key===B})}),X=(0,R.Z)(F,2),J=X[0],re=X[1];(0,n.useEffect)(function(){var Z=E.findIndex(function(fe){return fe.key===B});if(Z===-1){var ce;Z=Math.max(0,Math.min(J,E.length-1)),K((ce=E[Z])===null||ce===void 0?void 0:ce.key)}re(Z)},[E.map(function(Z){return Z.key}).join("_"),B,J]);var Te=(0,Fe.Z)(null,{value:r}),ie=(0,R.Z)(Te,2),Oe=ie[0],Be=ie[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&&(H==null||H(Z))}var ge={id:Oe,activeKey:B,animated:Q,tabPosition:I,rtl:z,mobile:j},De=(0,U.Z)((0,U.Z)({},ge),{},{editable:f,locale:O,moreIcon:v,moreTransitionName:L,tabBarGutter:N,onTabClick:Ae,onTabScroll:b,extra:W,style:_,panes:null,getPopupContainer:g,popupClassName:T,indicatorSize:m});return n.createElement(ye.Provider,{value:{tabs:E,prefixCls:o}},n.createElement("div",(0,ee.Z)({ref:t,id:r,className:k()(o,"".concat(o,"-").concat(I),(a={},(0,G.Z)(a,"".concat(o,"-mobile"),j),(0,G.Z)(a,"".concat(o,"-editable"),f),(0,G.Z)(a,"".concat(o,"-rtl"),z),a),c)},P),n.createElement(ta,(0,ee.Z)({},De,{renderTabBar:C})),n.createElement(ia,(0,ee.Z)({destroyInactiveTabPane:A},ge,{animated:Q}))))}),ca=la,sa=ca,da=u(92576),ua=u(50483),fa=u(48141);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(25446),be=u(55985),$a=u(87077),Sa=u(37324),vt=u(17747),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,minHeight: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(12158),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:O,tabs:v,getPrefixCls:L,getPopupContainer:A}=n.useContext(da.E_),C=L("tabs",_),H=(0,Za.Z)(C),[w,b,g]=wa(C,H);let T;t==="editable-card"&&(T={onEdit:(te,ae)=>{let{key:j,event:ne}=ae;o==null||o(te==="add"?ne:j,te)},removeIcon:n.createElement($e.Z,null),addIcon:s||n.createElement(Ne.Z,null),showAdd:c!==!0});const m=L(),P=pa(f,y),E=ba(C,$),z=(0,ua.Z)(i),Q=Object.assign(Object.assign({},v==null?void 0:v.style),p);return w(n.createElement(sa,Object.assign({direction:O,getPopupContainer:A,moreTransitionName:`${m}-slide-up`},N,{items:P,className:k()({[`${C}-${z}`]:z,[`${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,H),popupClassName:k()(d,b,g,H),style:Q,editable:T,moreIcon:W,prefixCls:C,animated:E,indicatorSize:I!=null?I:v==null?void 0:v.indicatorSize})))};bt.TabPane=Na;var za=bt}}]); diff --git a/6375.0741f419.async.js b/6375.0741f419.async.js new file mode 100644 index 0000000000..2a3d750d98 --- /dev/null +++ b/6375.0741f419.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6375],{96375:function(Xt,ct,S){S.d(ct,{Z:function(){return It}});var s=S(50959),dt=S(82187),E=S.n(dt),ut=S(10091),G=S(60811),J=S(37865),F=S(92576),h=S(25446),K=S(55985),Q=S(61281),mt=S(37324),k=S(87077);const bt=new h.E4("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),gt=new h.E4("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),ft=new h.E4("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),pt=new h.E4("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),vt=new h.E4("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),Ct=new h.E4("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),$t=t=>{const{componentCls:e,iconCls:i,antCls:n,badgeShadowSize:o,motionDurationSlow:d,textFontSize:l,textFontSizeSM:N,statusSize:y,dotSize:g,textFontWeight:m,indicatorHeight:a,indicatorHeightSM:c,marginXS:f,calc:v}=t,u=`${n}-scroll-number`,C=(0,Q.Z)(t,(b,$)=>{let{darkColor:x}=$;return{[`&${e} ${e}-color-${b}`]:{background:x,[`&:not(${e}-count)`]:{color:x}}}});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,h.bf)(a),whiteSpace:"nowrap",textAlign:"center",background:t.badgeColor,borderRadius:v(a).div(2).equal(),boxShadow:`0 0 0 ${(0,h.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:c,height:c,fontSize:N,lineHeight:(0,h.bf)(c),borderRadius:v(c).div(2).equal()},[`${e}-multiple-words`]:{padding:`0 ${(0,h.bf)(t.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${e}-dot`]:{zIndex:t.indicatorZIndex,width:g,minWidth:g,height:g,background:t.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${(0,h.bf)(o)} ${t.badgeShadowColor}`},[`${e}-dot${u}`]:{transition:`background ${d}`},[`${e}-count, ${e}-dot, ${u}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${i}-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:y,height:y,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:f,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:i,marginXS:n,colorBorderBg:o}=t,d=e,l=i,N=t.colorBgContainer,y=t.colorError,g=t.colorErrorHover;return(0,mt.TS)(t,{badgeFontHeight:d,badgeShadowSize:l,badgeTextColor:N,badgeColor:y,badgeColorHover:g,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:n,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},_=t=>{const{fontSize:e,lineHeight:i,fontSizeSM:n,lineWidth:o}=t;return{indicatorZIndex:"auto",indicatorHeight:Math.round(e*i)-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:i,marginXS:n,badgeRibbonOffset:o,calc:d}=t,l=`${e}-ribbon`,N=`${e}-ribbon-wrapper`,y=(0,Q.Z)(t,(g,m)=>{let{darkColor:a}=m;return{[`&${l}-color-${g}`]:{background:a,color:a}}});return{[`${N}`]:{position:"relative"},[`${l}`]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,K.Wf)(t)),{position:"absolute",top:n,padding:`0 ${(0,h.bf)(t.paddingXS)}`,color:t.colorPrimary,lineHeight:(0,h.bf)(i),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,h.bf)(d(o).div(2).equal())} solid`,transform:t.badgeRibbonCornerTransform,transformOrigin:"top",filter:t.badgeRibbonCornerFilter}}),y),{[`&${l}-placement-end`]:{insetInlineEnd:d(o).mul(-1).equal(),borderEndEndRadius:0,[`${l}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${l}-placement-start`]:{insetInlineStart:d(o).mul(-1).equal(),borderEndStartRadius:0,[`${l}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}};var St=(0,k.I$)(["Badge","Ribbon"],t=>{const e=q(t);return yt(e)},_),Nt=t=>{const{className:e,prefixCls:i,style:n,color:o,children:d,text:l,placement:N="end",rootClassName:y}=t,{getPrefixCls:g,direction:m}=s.useContext(F.E_),a=g("ribbon",i),c=`${a}-wrapper`,[f,v,u]=St(a,c),C=(0,G.o2)(o,!1),b=E()(a,`${a}-placement-${N}`,{[`${a}-rtl`]:m==="rtl",[`${a}-color-${o}`]:C},e),$={},x={};return o&&!C&&($.background=o,x.color=o),f(s.createElement("div",{className:E()(c,y,v,u)},d,s.createElement("div",{className:E()(b,v),style:Object.assign(Object.assign({},$),n)},s.createElement("span",{className:`${a}-text`},l),s.createElement("div",{className:`${a}-corner`,style:x}))))};function tt(t){let{prefixCls:e,value:i,current:n,offset:o=0}=t,d;return o&&(d={position:"absolute",top:`${o}00%`,left:0}),s.createElement("span",{style:d,className:E()(`${e}-only-unit`,{current:n})},i)}function Ot(t,e,i){let n=t,o=0;for(;(n+10)%10!==e;)n+=i,o+=i;return o}function xt(t){const{prefixCls:e,count:i,value:n}=t,o=Number(n),d=Math.abs(i),[l,N]=s.useState(o),[y,g]=s.useState(d),m=()=>{N(o),g(d)};s.useEffect(()=>{const f=setTimeout(()=>{m()},1e3);return()=>{clearTimeout(f)}},[o]);let a,c;if(l===o||Number.isNaN(o)||Number.isNaN(l))a=[s.createElement(tt,Object.assign({},t,{key:o,current:!0}))],c={transition:"none"};else{a=[];const f=o+10,v=[];for(let b=o;b<=f;b+=1)v.push(b);const u=v.findIndex(b=>b%10===l);a=v.map((b,$)=>{const x=b%10;return s.createElement(tt,Object.assign({},t,{key:b,value:x,offset:$-u,current:$===u}))});const C=y{const{prefixCls:i,count:n,className:o,motionClassName:d,style:l,title:N,show:y,component:g="sup",children:m}=t,a=wt(t,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:c}=s.useContext(F.E_),f=c("scroll-number",i),v=Object.assign(Object.assign({},a),{"data-show":y,style:l,className:E()(f,o,d),title:N});let u=n;if(n&&Number(n)%1===0){const C=String(n).split("");u=s.createElement("bdi",null,C.map((b,$)=>s.createElement(xt,{prefixCls:f,count:Number(n),value:b,key:C.length-$})))}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()(`${f}-custom-component`,C==null?void 0:C.className,d)})):s.createElement(g,Object.assign({},v,{ref:e}),u)}),jt=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o{var i,n,o,d,l;const{prefixCls:N,scrollNumberPrefixCls:y,children:g,status:m,text:a,color:c,count:f=null,overflowCount:v=99,dot:u=!1,size:C="default",title:b,offset:$,style:x,className:Tt,rootClassName:zt,classNames:j,styles:O,showZero:H=!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:Z,badge:r}=s.useContext(F.E_),p=nt("badge",N),[rt,Rt,Bt]=ht(p),M=f>v?`${v}+`:f,R=M==="0"||M===0,Wt=f===null||R&&!H,V=(m!=null||c!=null)&&Wt,z=u&&!R,P=z?"":M,I=(0,s.useMemo)(()=>(P==null||P===""||R&&!H)&&!z,[P,R,H,z]),st=(0,s.useRef)(f);I||(st.current=f);const T=st.current,it=(0,s.useRef)(P);I||(it.current=P);const A=it.current,at=(0,s.useRef)(z);I||(at.current=z);const B=(0,s.useMemo)(()=>{if(!$)return Object.assign(Object.assign({},r==null?void 0:r.style),x);const w={marginTop:$[1]};return Z==="rtl"?w.left=parseInt($[0],10):w.right=-parseInt($[0],10),Object.assign(Object.assign(Object.assign({},w),r==null?void 0:r.style),x)},[Z,$,x,r==null?void 0:r.style]),Dt=b!=null?b:typeof T=="string"||typeof T=="number"?T:void 0,Ft=I||!a?null:s.createElement("span",{className:`${p}-status-text`},a),Ht=!T||typeof T!="object"?void 0:(0,J.Tm)(T,w=>({style:Object.assign(Object.assign({},B),w.style)})),W=(0,G.o2)(c,!1),Zt=E()(j==null?void 0:j.indicator,(i=r==null?void 0:r.classNames)===null||i===void 0?void 0:i.indicator,{[`${p}-status-dot`]:V,[`${p}-status-${m}`]:!!m,[`${p}-color-${c}`]:W}),L={};c&&!W&&(L.color=c,L.background=c);const lt=E()(p,{[`${p}-status`]:V,[`${p}-not-a-wrapper`]:!g,[`${p}-rtl`]:Z==="rtl"},Tt,zt,r==null?void 0:r.className,(n=r==null?void 0:r.classNames)===null||n===void 0?void 0:n.root,j==null?void 0:j.root,Rt,Bt);if(!g&&V){const w=B.color;return rt(s.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)}),s.createElement("span",{className:Zt,style:Object.assign(Object.assign(Object.assign({},O==null?void 0:O.indicator),(d=r==null?void 0:r.styles)===null||d===void 0?void 0:d.indicator),L)}),a&&s.createElement("span",{style:{color:w},className:`${p}-status-text`},a)))}return rt(s.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)}),g,s.createElement(ut.ZP,{visible:!I,motionName:`${p}-zoom`,motionAppear:!1,motionDeadline:1e3},w=>{let{className:Mt,ref:Vt}=w;var X,U;const At=nt("scroll-number",y),Y=at.current,Lt=E()(j==null?void 0:j.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&&A&&A.toString().length>1,[`${p}-status-${m}`]:!!m,[`${p}-color-${c}`]: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 c&&!W&&(D=D||{},D.background=c),s.createElement(Et,{prefixCls:At,show:!I,motionClassName:Mt,className:Lt,count:A,title:Dt,style:D,key:"scrollNumber",ref:Vt},Ht)}),Ft))},et=s.forwardRef(Pt);et.Ribbon=Nt;var It=et}}]); diff --git a/6642.b17e39c1.async.js b/6642.b17e39c1.async.js deleted file mode 100644 index d1215c2101..0000000000 --- a/6642.b17e39c1.async.js +++ /dev/null @@ -1 +0,0 @@ -"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 deleted file mode 100644 index 1c0632cd9c..0000000000 --- a/6774.00363424.async.js +++ /dev/null @@ -1 +0,0 @@ -"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/9809.6053660b.async.js b/692.447572cf.async.js similarity index 66% rename from 9809.6053660b.async.js rename to 692.447572cf.async.js index ca9b85b341..2d90333c2d 100644 --- a/9809.6053660b.async.js +++ b/692.447572cf.async.js @@ -1,11 +1,11 @@ -(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. +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[692],{90102:function(Re,Ie,g){"use strict";g.d(Ie,{f:function(){return to}});var l=g(88357),he=g(11642),ie=g(73356),ye=g(56929),F=g(959),v=g(35361),k=g(99192),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(96034);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(45057),b=g(11130);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(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 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, +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function En(r,e){if(r){if(typeof r=="string")return jn(r,e);var n=Object.prototype.toString.call(r).slice(8,-1);if(n==="Object"&&r.constructor&&(n=r.constructor.name),n==="Map"||n==="Set")return Array.from(r);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jn(r,e)}}function Vt(r){if(typeof Symbol!="undefined"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function Qt(r){if(Array.isArray(r))return jn(r)}function jn(r,e){(e==null||e>r.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(38751),Ve=g(75251),mr=g(82187),te=g.n(mr),Jn=g(71770),hr=g(12868),kn=g(84707),gr=g(16458),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(18145),un=g(93049),xn=g(27263),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(23835),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(34829),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(74629),Lr=g(10994),et=g(68865);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(30360),$r=g(97086),Wr=g(5952),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),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(27850),Yr=g(9146),at=g(13678),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-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(90190),la=g(34682),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(35375),Za=g(81283),Ma=g(25446),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(84341),Ta=g(58809),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(56982),Zn=g(71503),Qe=g(14224),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, @@ -23,5 +23,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `).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. + `).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(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,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(97382),Ga=g(65199),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))}))})}},35375:function(Re,Ie,g){"use strict";g.d(Ie,{S:function(){return k}});var l=g(35361),he=g(56929),ie=g(13089),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))})}},84341:function(Re,Ie,g){"use strict";g.d(Ie,{X:function(){return he}});var l=g(50959),he=(0,l.createContext)({})},16458:function(Re,Ie,g){"use strict";g.d(Ie,{S:function(){return de}});var l=g(5952),he=g(97086),ie=g(1378),ye=g(90242),F=g(14553),v=g(88357),k=g(75130),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),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},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,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)}},335:function(Re,Ie,g){var l=g(31479);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/6928.8ffafeda.async.js b/6928.8ffafeda.async.js deleted file mode 100644 index 0302112a8c..0000000000 --- a/6928.8ffafeda.async.js +++ /dev/null @@ -1 +0,0 @@ -"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/701.15814a81.async.js b/701.15814a81.async.js deleted file mode 100644 index 5bf04f95ca..0000000000 --- a/701.15814a81.async.js +++ /dev/null @@ -1,2 +0,0 @@ -"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 deleted file mode 100644 index cb86019e31..0000000000 --- a/7196.5d32e773.async.js +++ /dev/null @@ -1,8 +0,0 @@ -"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/7381.3bbb23bc.async.js b/7381.3bbb23bc.async.js deleted file mode 100644 index 864c50b8d7..0000000000 --- a/7381.3bbb23bc.async.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7381],{29514:function(re,B,r){var o=r(93264),m=r(79685),f=r(90462),b=r(64507),C=function(x,I){return m.createElement(b.Z,(0,o.Z)((0,o.Z)({},x),{},{ref:I,icon:f.Z}))};C.displayName="DownOutlined",B.Z=m.forwardRef(C)},19346:function(re,B,r){var o=r(93264),m=r(79685),f=r(96818),b=r(64507),C=function(x,I){return m.createElement(b.Z,(0,o.Z)((0,o.Z)({},x),{},{ref:I,icon:f.Z}))};C.displayName="PlusOutlined",B.Z=m.forwardRef(C)},98347:function(re,B,r){var o=r(93264),m=r(98787),f=r(79685),b=r(77204),C=r(81468),L=r(63342),x=["fieldProps","proFieldProps"],I="dateTime",Z=f.forwardRef(function(O,G){var s=O.fieldProps,u=O.proFieldProps,w=(0,m.Z)(O,x),$=(0,f.useContext)(b.Z);return(0,L.jsx)(C.Z,(0,o.Z)({ref:G,fieldProps:(0,o.Z)({getPopupContainer:$.getPopupContainer},s),valueType:I,proFieldProps:u,filedConfig:{valueType:I,customLightMode:!0}},w))});B.Z=Z},5754:function(re,B,r){var o=r(93264),m=r(98787),f=r(92879),b=r(79685),C=r(77204),L=r(81468),x=r(63342),I=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],Z=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],O=function(_,V){var Y=_.fieldProps,c=_.children,d=_.params,M=_.proFieldProps,T=_.mode,W=_.valueEnum,j=_.request,A=_.showSearch,i=_.options,F=(0,m.Z)(_,I),K=(0,b.useContext)(C.Z);return(0,x.jsx)(L.Z,(0,o.Z)((0,o.Z)({valueEnum:(0,f.h)(W),request:j,params:d,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,o.Z)({options:i,mode:T,showSearch:A,getPopupContainer:K.getPopupContainer},Y),ref:V,proFieldProps:M},F),{},{children:c}))},G=b.forwardRef(function($,_){var V=$.fieldProps,Y=$.children,c=$.params,d=$.proFieldProps,M=$.mode,T=$.valueEnum,W=$.request,j=$.options,A=(0,m.Z)($,Z),i=(0,o.Z)({options:j,mode:M||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},V),F=(0,b.useContext)(C.Z);return(0,x.jsx)(L.Z,(0,o.Z)((0,o.Z)({valueEnum:(0,f.h)(T),request:W,params:c,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,o.Z)({getPopupContainer:F.getPopupContainer},i),ref:_,proFieldProps:d},A),{},{children:Y}))}),s=b.forwardRef(O),u=G,w=s;w.SearchSelect=u,w.displayName="ProFormComponent",B.Z=w},30869:function(re,B,r){var o=r(89342),m=r(93264),f=r(98787),b=r(46501),C=r(73952),L=r(8262),x=r(12869),I=r(79685),Z=r(81468),O=r(63342),G=["fieldProps","proFieldProps"],s=["fieldProps","proFieldProps"],u="text",w=function(c){var d=c.fieldProps,M=c.proFieldProps,T=(0,f.Z)(c,G);return(0,O.jsx)(Z.Z,(0,m.Z)({valueType:u,fieldProps:d,filedConfig:{valueType:u},proFieldProps:M},T))},$=function(c){var d=(0,b.Z)(c.open||!1,{value:c.open,onChange:c.onOpenChange}),M=(0,o.Z)(d,2),T=M[0],W=M[1];return(0,O.jsx)(C.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(A){var i,F=A.getFieldValue(c.name||[]);return(0,O.jsx)(L.Z,(0,m.Z)((0,m.Z)({getPopupContainer:function(D){return D&&D.parentNode?D.parentNode:D},onOpenChange:W,content:(0,O.jsxs)("div",{style:{padding:"4px 0"},children:[(i=c.statusRender)===null||i===void 0?void 0:i.call(c,F),c.strengthText?(0,O.jsx)("div",{style:{marginTop:10},children:(0,O.jsx)("span",{children:c.strengthText})}):null]}),overlayStyle:{width:240},placement:"right"},c.popoverProps),{},{open:T,children:c.children}))}})},_=function(c){var d=c.fieldProps,M=c.proFieldProps,T=(0,f.Z)(c,s),W=(0,I.useState)(!1),j=(0,o.Z)(W,2),A=j[0],i=j[1];return d!=null&&d.statusRender&&T.name?(0,O.jsx)($,{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:A,onOpenChange:i,children:(0,O.jsx)(Z.Z,(0,m.Z)({valueType:"password",fieldProps:(0,m.Z)((0,m.Z)({},(0,x.Z)(d,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(K){var D;d==null||(D=d.onBlur)===null||D===void 0||D.call(d,K),i(!1)},onClick:function(K){var D;d==null||(D=d.onClick)===null||D===void 0||D.call(d,K),i(!0)}}),proFieldProps:M,filedConfig:{valueType:u}},T))}):(0,O.jsx)(Z.Z,(0,m.Z)({valueType:"password",fieldProps:d,proFieldProps:M,filedConfig:{valueType:u}},T))},V=w;V.Password=_,V.displayName="ProFormComponent",B.Z=V},43602:function(re,B,r){var o=r(93264),m=r(98787),f=r(79685),b=r(81468),C=r(63342),L=["fieldProps","proFieldProps"],x=function(Z,O){var G=Z.fieldProps,s=Z.proFieldProps,u=(0,m.Z)(Z,L);return(0,C.jsx)(b.Z,(0,o.Z)({ref:O,valueType:"textarea",fieldProps:G,proFieldProps:s},u))};B.Z=f.forwardRef(x)},47481:function(re,B,r){r.d(B,{Y:function(){return Y}});var o=r(7623),m=r(64632),f=r(93264),b=r(89342),C=r(98787),L=r(74454),x=r(89543),I=r(8910),Z=r(25239),O=r.n(Z),G=r(46501),s=r(30765),u=r(79685),w=r(50374),$=r(29927),_=r(63342),V=["children","trigger","onVisibleChange","onOpenChange","modalProps","onFinish","submitTimeout","title","width","visible","open"];function Y(c){var d,M,T=c.children,W=c.trigger,j=c.onVisibleChange,A=c.onOpenChange,i=c.modalProps,F=c.onFinish,K=c.submitTimeout,D=c.title,me=c.width,ie=c.visible,se=c.open,E=(0,C.Z)(c,V);(0,s.ET)(!E.footer||!(i!=null&&i.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 ne=(0,u.useContext)(x.ZP.ConfigContext),e=(0,u.useState)([]),l=(0,b.Z)(e,2),t=l[1],n=(0,u.useState)(!1),a=(0,b.Z)(n,2),y=a[0],R=a[1],Q=(0,G.Z)(!!ie,{value:se||ie,onChange:A||j}),H=(0,b.Z)(Q,2),X=H[0],N=H[1],q=(0,u.useRef)(null),oe=(0,u.useCallback)(function(g){q.current===null&&g&&t([]),q.current=g},[]),J=(0,u.useRef)(),pe=(0,u.useCallback)(function(){var g,p,v,h=(g=(p=E.form)!==null&&p!==void 0?p:(v=E.formRef)===null||v===void 0?void 0:v.current)!==null&&g!==void 0?g:J.current;h&&i!==null&&i!==void 0&&i.destroyOnClose&&h.resetFields()},[i==null?void 0:i.destroyOnClose,E.form,E.formRef]);(0,u.useImperativeHandle)(E.formRef,function(){return J.current},[J.current]),(0,u.useEffect)(function(){X&&(se||ie)&&(A==null||A(!0),j==null||j(!0))},[ie,se,X]);var de=(0,u.useMemo)(function(){return W?u.cloneElement(W,(0,f.Z)((0,f.Z)({key:"trigger"},W.props),{},{onClick:function(){var g=(0,m.Z)((0,o.Z)().mark(function v(h){var U,P;return(0,o.Z)().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:N(!X),(U=W.props)===null||U===void 0||(P=U.onClick)===null||P===void 0||P.call(U,h);case 2:case"end":return z.stop()}},v)}));function p(v){return g.apply(this,arguments)}return p}()})):null},[N,W,X]),ae=(0,u.useMemo)(function(){var g,p,v,h,U,P;return E.submitter===!1?!1:O()({searchConfig:{submitText:(g=(p=i==null?void 0:i.okText)!==null&&p!==void 0?p:(v=ne.locale)===null||v===void 0||(v=v.Modal)===null||v===void 0?void 0:v.okText)!==null&&g!==void 0?g:"\u786E\u8BA4",resetText:(h=(U=i==null?void 0:i.cancelText)!==null&&U!==void 0?U:(P=ne.locale)===null||P===void 0||(P=P.Modal)===null||P===void 0?void 0:P.cancelText)!==null&&h!==void 0?h:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:K?y:void 0,onClick:function(z){var ce;N(!1),i==null||(ce=i.onCancel)===null||ce===void 0||ce.call(i,z)}}},E.submitter)},[(d=ne.locale)===null||d===void 0||(d=d.Modal)===null||d===void 0?void 0:d.cancelText,(M=ne.locale)===null||M===void 0||(M=M.Modal)===null||M===void 0?void 0:M.okText,i,E.submitter,N,y,K]),le=(0,u.useCallback)(function(g,p){return(0,_.jsxs)(_.Fragment,{children:[g,q.current&&p?(0,_.jsx)(u.Fragment,{children:(0,w.createPortal)(p,q.current)},"submitter"):p]})},[]),ve=(0,u.useCallback)(function(){var g=(0,m.Z)((0,o.Z)().mark(function p(v){var h,U,P;return(0,o.Z)().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return h=F==null?void 0:F(v),K&&h instanceof Promise&&(R(!0),U=setTimeout(function(){return R(!1)},K),h.finally(function(){clearTimeout(U),R(!1)})),z.next=4,h;case 4:return P=z.sent,P&&N(!1),z.abrupt("return",P);case 7:case"end":return z.stop()}},p)}));return function(p){return g.apply(this,arguments)}}(),[F,N,K]),fe=(0,L.X)(X);return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(I.Z,(0,f.Z)((0,f.Z)((0,f.Z)({title:D,width:me||800},i),fe),{},{onCancel:function(p){var v;K&&y||(N(!1),i==null||(v=i.onCancel)===null||v===void 0||v.call(i,p))},afterClose:function(){var p;pe(),N(!1),i==null||(p=i.afterClose)===null||p===void 0||p.call(i)},footer:E.submitter!==!1?(0,_.jsx)("div",{ref:oe,style:{display:"flex",justifyContent:"flex-end"}}):null,children:(0,_.jsx)($.I,(0,f.Z)((0,f.Z)({formComponentType:"ModalForm",layout:"vertical"},E),{},{onInit:function(p,v){var h;E.formRef&&(E.formRef.current=v),E==null||(h=E.onInit)===null||h===void 0||h.call(E,p,v),J.current=v},formRef:J,submitter:ae,onFinish:function(){var g=(0,m.Z)((0,o.Z)().mark(function p(v){var h;return(0,o.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,ve(v);case 2:return h=P.sent,P.abrupt("return",h);case 4:case"end":return P.stop()}},p)}));return function(p){return g.apply(this,arguments)}}(),contentRender:le,children:T}))})),de]})}},18283:function(re,B,r){r.d(B,{Z:function(){return ne}});var o=r(79685),m=r(68591),f=r.n(m),b=r(3139),C=r(99248),L=r(73064),x=r(57196),I=r(55095),Z=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{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 deleted file mode 100644 index 021cd7b876..0000000000 --- a/7564.fb7c4ef7.async.js +++ /dev/null @@ -1,71 +0,0 @@ -"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 deleted file mode 100644 index 9f0a499909..0000000000 --- a/7609.d9008f64.async.js +++ /dev/null @@ -1,10 +0,0 @@ -"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 deleted file mode 100644 index cd1e61c08c..0000000000 --- a/7688.b8bdde0d.async.js +++ /dev/null @@ -1,9 +0,0 @@ -"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/7919.5efdbd9a.async.js b/7919.5efdbd9a.async.js new file mode 100644 index 0000000000..ade1d1ea38 --- /dev/null +++ b/7919.5efdbd9a.async.js @@ -0,0 +1,10 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7919],{1442:function(Y,E,o){"use strict";var r=o(35361),y=o(50959),x=o(63374),D=o(69164),$=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($)},58338:function(Y,E,o){"use strict";var r=o(50959),y=o(75788),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(25446),T=o(55985),W=o(87077),G=o(37324);const k=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"}}},ne=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`]:k(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"}}},ae=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"}}}}},re=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 ie=(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[ne(a),ae(a)]},re),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:K=!0,size:U,type:X,cover:Q,actions:q,tabList:ee,children:te,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=Z=>{var L;(L=e.onTabChange)===null||L===void 0||L.call(e,Z)},he=r.useMemo(()=>{let Z=!1;return r.Children.forEach(te,L=>{L&&L.type&&L.type===H&&(Z=!0)}),Z},[te]),h=pe("card",t),[$e,ye,Se]=ie(h),xe=r.createElement(p.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},te),se=oe!==void 0,Ce=Object.assign(Object.assign({},me),{[se?"activeKey":"defaultActiveKey"]:se?oe:de,tabBarExtraContent:ue});let le;const _=(0,c.Z)(U),Oe=!_||_==="default"?"large":_,ce=ee?r.createElement(M.Z,Object.assign({size:Oe},Ce,{className:`${h}-head-tabs`,onChange:ve,items:ee.map(Z=>{var{tab:L}=Z,je=d(Z,["tab"]);return Object.assign({label:L},je)})})):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 Ee=Q?r.createElement("div",{className:`${h}-cover`},Q):null,Te=r.createElement("div",{className:`${h}-body`,style:R},O?xe:te),Me=q&&q.length?r.createElement(l,{prefixCls:h,actions:q}):null,Pe=(0,D.Z)(ge,["onTabChange"]),ze=x()(h,V==null?void 0:V.className,{[`${h}-loading`]:O,[`${h}-bordered`]:K,[`${h}-hoverable`]:fe,[`${h}-contain-grid`]:he,[`${h}-contain-tabs`]:ee&&ee.length,[`${h}-${_}`]:_,[`${h}-type-${X}`]:!!X,[`${h}-rtl`]:be==="rtl"},n,i,ye,Se),Ne=Object.assign(Object.assign({},V==null?void 0:V.style),g);return $e(r.createElement("div",Object.assign({ref:a},Pe,{className:ze,style:Ne}),le,Ee,Te,Me))}),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,K=i?r.createElement("div",{className:`${R}-meta-title`},i):null,U=g?r.createElement("div",{className:`${R}-meta-description`},g):null,X=K||U?r.createElement("div",{className:`${R}-meta-detail`},K,U):null;return r.createElement("div",Object.assign({},C,{className:N}),O,X)};const v=u;v.Grid=H,v.Meta=m;var f=v},24223:function(Y,E,o){"use strict";o.d(E,{Z:function(){return ie}});var r=o(50959),y=o(97950),x=o(37865),D=o(82187),$=o.n(D),c=o(92576),p=o(9146),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(55985),H=o(87077),s=o(37324);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),[K,U,X]=G(O),Q=r.createElement(j,Object.assign({decimalSeparator:g,groupSeparator:C,prefixCls:O},d,{value:m})),q=$()(O,{[`${O}-rtl`]:R==="rtl"},N==null?void 0:N.className,b,u,U,X);return K(r.createElement("div",{className:q,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(Q):Q,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 ne(d){return new Date(d).getTime()}const ae=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=ne(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 re=r.memo(ae);B.Countdown=re;var ie=B},92117: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"}],k=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/8178.f567e559.async.js b/8178.f567e559.async.js deleted file mode 100644 index 4116fbdd80..0000000000 --- a/8178.f567e559.async.js +++ /dev/null @@ -1 +0,0 @@ -(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/8588.f81935fb.async.js b/8283.8dbb8a4d.async.js similarity index 64% rename from 8588.f81935fb.async.js rename to 8283.8dbb8a4d.async.js index 009e3727fb..d8d120db7b 100644 --- a/8588.f81935fb.async.js +++ b/8283.8dbb8a4d.async.js @@ -1,4 +1,4 @@ -"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),{[` +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8283],{16965:function(N,v,d){d.d(v,{Z:function(){return oe}});var i=d(50959),b=d(82187),x=d.n(b),L=d(87017),f=d(92576),c=d(50483),C=d(9146),p=d(40622),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(25446),$=d(55985),Z=d(87077),X=d(37324);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:` @@ -7,4 +7,4 @@ ${(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)}}}]); + `,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,he]=te(l),ye=i.createElement(C.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},M),A=W!==void 0,Se=Object.assign(Object.assign({},ce),{[A?"activeKey":"defaultActiveKey"]:A?W:de,tabBarExtraContent:le});let F;const E=(0,c.Z)(T),ve=!E||E==="default"?"large":E,K=B?i.createElement(p.Z,Object.assign({size:ve},Se,{className:`${l}-head-tabs`,onChange:ue,items:B.map(y=>{var{tab:m}=y,Pe=I(y,["tab"]);return Object.assign({label:m},Pe)})})):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 xe=R?i.createElement("div",{className:`${l}-cover`},R):null,Ce=i.createElement("div",{className:`${l}-body`,style:u},j?ye:M),Oe=H&&H.length?i.createElement(re,{prefixCls:l,actions:H}):null,ze=(0,L.Z)(ge,["onTabChange"]),Ee=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,he),je=Object.assign(Object.assign({},S==null?void 0:S.style),s);return pe(i.createElement("div",Object.assign({ref:n},ze,{className:Ee,style:je}),F,xe,Ce,Oe))}),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},8663: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}})},5449:function(N,v,d){d.d(v,{G:function(){return L}});var i=d(63490),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/8307.686f4719.async.js b/8307.686f4719.async.js new file mode 100644 index 0000000000..d14997a90e --- /dev/null +++ b/8307.686f4719.async.js @@ -0,0 +1,6646 @@ +var Zy=(sr,ne,U)=>new Promise((te,ye)=>{var y=pe=>{try{Z(U.next(pe))}catch(fe){ye(fe)}},he=pe=>{try{Z(U.throw(pe))}catch(fe){ye(fe)}},Z=pe=>pe.done?te(pe.value):Promise.resolve(pe.value).then(y,he);Z((U=U.apply(sr,ne)).next())});(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8307],{52698:function(sr,ne,U){"use strict";var te=U(50959),ye=U(75788),y=function(){return y=Object.assign||function(Z){for(var pe,fe=1,it=arguments.length;fe',function(sr){try{let ce=function(){Z||(Z=!0,y())},rt=function(){try{he.documentElement.doScroll("left")}catch(vt){return void setTimeout(rt,50)}ce()};var fe=ce,it=rt,U=(U=document.getElementsByTagName("script"))[U.length-1],ne=U.getAttribute("data-injectcss"),U=U.getAttribute("data-disable-injectsvg");if(!U){var te,ye,y,he,Z,pe=function(tt,Ot){Ot.parentNode.insertBefore(tt,Ot)};if(ne&&!sr.__iconfont__svg__cssinject__){sr.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(vt){console&&console.log(vt)}}te=function(){var tt,Ot=document.createElement("div");Ot.innerHTML=sr._iconfont_svg_string_3580659,(Ot=Ot.getElementsByTagName("svg")[0])&&(Ot.setAttribute("aria-hidden","true"),Ot.style.position="absolute",Ot.style.width=0,Ot.style.height=0,Ot.style.overflow="hidden",Ot=Ot,(tt=document.body).firstChild?pe(Ot,tt.firstChild):tt.appendChild(Ot))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(te,0):(ye=function(){document.removeEventListener("DOMContentLoaded",ye,!1),te()},document.addEventListener("DOMContentLoaded",ye,!1)):document.attachEvent&&(y=te,he=sr.document,Z=!1,rt(),he.onreadystatechange=function(){he.readyState=="complete"&&(he.onreadystatechange=null,ce())})}}catch(ce){}}(window)},72493:function(sr,ne,U){"use strict";U.d(ne,{zP:function(){return aB},JE:function(){return nL},ns:function(){return iB}});var te=U(50959),ye=(0,te.createContext)({});function y(){return(0,te.useContext)(ye)}var he={},Z={},pe=function(r){return Z[r]},fe=function(r,t){Z[r]=t},it=function(r){return he[r]},ce=function(r,t){he[r]=t},rt={},vt={},tt=34,Ot=10,Xt=13;function Yt(e){return new Function("d","return {"+e.map(function(r,t){return JSON.stringify(r)+": d["+t+'] || ""'}).join(",")+"}")}function ar(e,r){var t=Yt(e);return function(n,i){return r(t(n),i,e)}}function Zt(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 bt(e,r){var t=e+"",n=t.length;return n9999?"+"+bt(e,6):bt(e,4)}function Rr(e){var r=e.getUTCHours(),t=e.getUTCMinutes(),n=e.getUTCSeconds(),i=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":St(e.getUTCFullYear(),4)+"-"+bt(e.getUTCMonth()+1,2)+"-"+bt(e.getUTCDate(),2)+(i?"T"+bt(r,2)+":"+bt(t,2)+":"+bt(n,2)+"."+bt(i,3)+"Z":n?"T"+bt(r,2)+":"+bt(t,2)+":"+bt(n,2)+"Z":t||r?"T"+bt(r,2)+":"+bt(t,2)+"Z":"")}function gr(e){var r=new RegExp('["'+e+` +\r]`),t=e.charCodeAt(0);function n(b,T){var M,P,D=i(b,function(G,q){if(M)return M(G,q-1);P=G,M=T?ar(G,T):Yt(G)});return D.columns=P||[],D}function i(b,T){var M=[],P=b.length,D=0,G=0,q,se=P<=0,Se=!1;b.charCodeAt(P-1)===Ot&&--P,b.charCodeAt(P-1)===Xt&&--P;function Ve(){if(se)return vt;if(Se)return Se=!1,rt;var st,at=D,At;if(b.charCodeAt(at)===tt){for(;D++=P?se=!0:(At=b.charCodeAt(D++))===Ot?Se=!0:At===Xt&&(Se=!0,b.charCodeAt(D)===Ot&&++D),b.slice(at+1,st-1).replace(/""/g,'"')}for(;D=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 En(e,r){r===void 0&&(r="kilometers");var t=Be[r];if(!t)throw new Error(r+" units is invalid");return e/t}function Rn(e,r){return ki(En(e,r))}function sa(e){var r=e%360;return r<0&&(r+=360),r}function ki(e){var r=e%(2*Math.PI);return r*180/Math.PI}function ba(e){var r=e%360;return r*Math.PI/180}function fo(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(En(e,r),t)}function Re(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=ut[r];if(!n)throw new Error("invalid original units");var i=ut[t];if(!i)throw new Error("invalid final units");return e/n*i}function Ea(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function va(e){return!!e&&e.constructor===Object}function Za(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(!Ea(r))throw new Error("bbox must only contain numbers")})}function Ms(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 ho(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 Zo(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 jt(e){if(e.length>1&&isNumber(e[0])&&isNumber(e[1]))return!0;if(Array.isArray(e[0])&&e[0].length)return jt(e[0]);throw new Error("coordinates must only contain numbers")}function pr(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 Vr(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 en(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||P>d||D>_){l=b,f=n,d=P,_=D,a=0;return}var G=lineString([l,b],t.properties);if(r(G,n,i,D,a)===!1)return!1;a++,l=b})===!1)return!1}}})}function $(e,r,t){var n=t,i=!1;return B(e,function(a,s,l,f,d){i===!1&&t===void 0?n=a:n=r(n,a,s,l,f,d),i=!0}),n}function ee(e,r){if(!e)throw new Error("geojson is required");dt(e,function(t,n,i){if(t.geometry!==null){var a=t.geometry.type,s=t.geometry.coordinates;switch(a){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 a=t.response;if(e.type==="json")try{a=JSON.parse(t.response)}catch(l){return r(l)}r(null,a,t.getResponseHeader("Cache-Control"),t.getResponseHeader("Expires"),t)}else{var s=new Blob([t.response],{type:t.getResponseHeader("Content-Type")});r(new ln(t.status,t.statusText,n.toString(),s))}},t.cancel=t.abort,t.send(e.body),t}function Vi(e){return new Promise(function(r,t){hi(e,function(n,i,a,s,l){n?t({err:n,data:null,xhr:l}):r({err:null,data:i,cacheControl:a,expires:s,xhr:l})})})}function ci(e,r){return hi(e,r)}var Li=function(r,t){var n=Jn(r.url)||ci;return n((0,H.Z)((0,H.Z)({},r),{},{type:"json"}),t)},Ei=function(r,t){var n=Jn(r.url)||ci;return n((0,H.Z)((0,H.Z)({},r),{},{type:"arrayBuffer"}),t)},ns=function(r,t){return ci(_objectSpread(_objectSpread({},r),{},{method:"POST"}),t)},Qi=function(r,t){return ci((0,H.Z)((0,H.Z)({},r),{},{method:"GET"}),t)};function Pa(e){var r=window.document.createElement("a");return r.href=e,r.protocol===window.document.location.protocol&&r.host===window.document.location.host}var Si="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function di(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=Si})},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):Si}function Ai(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 Oa=function(r,t,n){var i=function(s,l){if(s)t(s);else if(l){var f=typeof createImageBitmap=="function",d=n?n(l):l;f?Ai(d,t):di(d,t)}};return r.type==="json"?Li(r,i):Ei(r,i)},vu=function(r,t){var n=typeof createImageBitmap=="function";n?Ai(r,t):di(r,t)},fa=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}({}),Ra={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 Gl(e,r,t){var n=e.classList;for(var i in Ra)Ra.hasOwnProperty(i)&&n.remove("l7-".concat(t,"-anchor-").concat(i));n.add("l7-".concat(t,"-anchor-").concat(r))}var vs=U(52617);function Ma(e){return typeof e=="string"?!!d3.color(e):!1}function vi(e){var r=vs.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 ka(e){var r=e&&e[0],t=e&&e[1],n=e&&e[2],i=r+t*256+n*65536-1;return i}function na(e){return[e+1&255,e+1>>8&255,e+1>>8>>8&255]}function Vo(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),a=e.positions[0],s=e.positions[e.positions.length-1],l=0;l0&&new RegExp("(^|\\s)"+r+"(\\s|$)").test(t)}function Va(e,r){e instanceof HTMLElement?e.className=r:e.className.baseVal=r}function vh(e,r,t){t===void 0?Cf(e,r)?mu(e,r):ou(e,r):t?ou(e,r):mu(e,r)}function Rf(e){return e instanceof SVGElement&&(e=e.correspondingElement),e.className.baseVal===void 0?e.className:e.className.baseVal}function Ns(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}var nl=ap(["transform","WebkitTransform"]);function gu(e,r){e.style[nl]=r}function Cl(){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 mh(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 _c(){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 a=i.split("="),s=(0,_n.Z)(a,1),l=s[0];return l==="initial-scale"});return n?n.split("=")[1]*1:1}var ua=_c()<1?1:window.devicePixelRatio;function xc(e,r){e.setAttribute("style","".concat(e.style.cssText).concat(r))}function il(e){return e.split(";").map(function(r){return r.trim()}).filter(function(r){return r})}function Rl(e,r){var t,n=il((t=e.getAttribute("style"))!==null&&t!==void 0?t:""),i=il(r),a=tl.apply(void 0,[n].concat((0,Qt.Z)(i)));e.setAttribute("style",a.join(";"))}function gh(e){return Object.entries(e).map(function(r){var t=(0,_n.Z)(r,2),n=t[0],i=t[1];return"".concat(n,": ").concat(i)}).join(";")}function qc(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 ha(e,r){e.checked=r,r?e.setAttribute("checked","true"):e.removeAttribute("checked")}function Ml(e){e.innerHTML=""}function op(e){e.setAttribute("draggable","false")}function al(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,Qt.Z)(r)):e.append(r)}function Kc(e,r){for(var t=Array.isArray(r)?r:[r],n=e;n instanceof Element&&n!==window.document.body;){var i,a;if(t.find(function(s){var l;return(l=n)===null||l===void 0?void 0:l.matches(s)}))return n;n=(i=(a=n)===null||a===void 0?void 0:a.parentElement)!==null&&i!==void 0?i:null}}var Qc;function Mf(e){return typeof ImageBitmap!="undefined"&&e instanceof ImageBitmap}function ol(){return typeof importScripts=="function"}var $l=ol()?function(){return self.worker&&self.worker.referrer}:function(){return(window.location.protocol==="blob:"?window.parent:window).location.href},Uu=(Qc=navigator)===null||Qc===void 0?void 0:Qc.userAgent,Jc=!!Uu.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),bc=Uu.indexOf("Android")>-1||Uu.indexOf("Adr")>-1;function Yl(){for(var e=Uu,r=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],t=!0,n=0,i=r;n0){t=!1;break}}return t}function yh(e,r){e.forEach(function(t){r[t]&&(r[t]=r[t].bind(r))})}var Ec=null;function Us(e){var r=[1/0,1/0,-1/0,-1/0];return ue(e,function(t){r[0]>t[0]&&(r[0]=t[0]),r[1]>t[1]&&(r[1]=t[1]),r[2]n&&e.lng<=a&&e.lat>i&&e.lat<=s}function zu(e){var r=[1/0,1/0,-1/0,-1/0];return e.forEach(function(t){var n=t.coordinates;ql(r,n)}),r}function ql(e,r){return Array.isArray(r[0])?r.forEach(function(t){ql(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=sp(e,r);var n=e[0],i=e[1],a=n*Sc/180,s=Math.log(Math.tan((90+i)*Math.PI/360))/(Math.PI/180);return s=s*Sc/180,t.enable&&(a=Number(a.toFixed(t.decimal)),s=Number(s.toFixed(t.decimal))),e.length===3?[a,s,e[2]]:[a,s]}function bh(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,t=e[0],n=e[1],i=t/Sc*180,a=n/Sc*180;return a=180/Math.PI*(2*Math.atan(Math.exp(a*Math.PI/180))-Math.PI/2),r!=null&&(i=Number(i.toFixed(r)),a=Number(a.toFixed(r))),e.length===3?[i,a,e[2]]:[i,a]}function Eh(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 Pf(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 sp(e,r){if(r===!1)return e;var t=Eh(e[0]),n=Pf(e[1]);return n>85&&(n=85),n<-85&&(n=-85),e.length===3?[t,n,e[2]]:[t,n]}function ja(e){var r=85.0511287798,t=Math.max(Math.min(r,e[1]),-r),n=256<<20,i=Math.PI/180,a=e[0]*i,s=t*i;s=Math.log(Math.tan(Math.PI/4+s/2));var l=.5/Math.PI,f=.5,d=-.5/Math.PI;return i=.5,a=n*(l*a+f),s=n*(d*s+i),[Math.floor(a),Math.floor(s)]}function up(e){var r=.5/Math.PI,t=.5,n=-.5/Math.PI,i=.5,a=256<<20,s=_slicedToArray(e,2),l=s[0],f=s[1];l=(l/a-t)/r,f=(f/a-i)/n,f=(Math.atan(Math.pow(Math.E,f))-Math.PI/4)*2,i=Math.PI/180;var d=f/i,_=l/i;return[_,d]}function Of(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 lp(e,r){var t=Math.PI/180,n=6378137,i=e/n/t,a=2*(Math.atan(Math.exp(r/n))-Math.PI/4)/t;return[i,a]}function Kl(e,r,t){var n=ba(r[1]-e[1]),i=ba(r[0]-e[0]),a=ba(e[1]),s=ba(r[1]),l=Math.pow(Math.sin(n/2),2)+Math.pow(Math.sin(i/2),2)*Math.cos(a)*Math.cos(s);return Zi(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)),t="meters")}function cp(e){var r=Math.PI/180,t=85.0511287798,n=6378137,i=Math.max(Math.min(t,e[1]),-t),a=Math.sin(i*r),s=n*e[0]*r,l=n*Math.log((1+a)/(1-a))/2;return[s,l]}function Zu(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 ma(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 Ql(e){return[[e[0],e[1]],[e[2],e[3]]]}function Vu(e){var r=ul(e,[0,0]);return[e[0]/r,e[1]/r]}function ul(e,r){return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}function Bi(e,r){return e[0]*r[0]+e[1]*r[1]}function ga(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function su(e,r){return Math.acos(Bi(e,r)/(ga(e)*ga(r)))*180/Math.PI}function tf(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 rf(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=[],a=0;a0){var b=i[a-1].rotation;b-_>360-b+_&&(_=_+360)}i.push({start:s,end:l,dis:f,rotation:_,duration:0})}return i.map(function(T){T.duration=r*(T.dis/n)}),i}}function Qs(e){if(ef(e[0]))return e;if(ef(e[0][0]))throw new Error("\u5F53\u524D\u6570\u636E\u4E0D\u652F\u6301\u6807\u6CE8");if(ef(e[0][0][0])){var r=e,t=0,n=0,i=0;return r.forEach(function(a){a.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 fp(e){for(var r=e[0],t=e[1],n=e[0],i=e[1],a=0,s=0,l=0,f=0;fi&&(n=Math.floor(n/t)),n=n*r+e.charCodeAt(a);return n}function Jl(e){e=e.toString();for(var r=5381,t=e.length;t;)r=r*33^e.charCodeAt(--t);return r>>>0}function Ro(){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 Ha=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 nf(e,r,t,n,i){var a=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*(a-1))/(a-1)),n?gs(e,r,l,n,i):gs(e,r,l,.314,i)}function Ac(e,r){var t=1-r;return(e[0]*t+e[1]*r)*t+(e[1]*t+e[2]*r)*r}function io(e,r){return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}function xn(e,r,t){var n=[r[0]-e[0],r[1]-e[1]],i=io(n,[0,0]),a=Math.atan2(n[1],n[0]),s=i/2/Math.cos(t),l=a+t,f=[s*Math.cos(l)+e[0],s*Math.sin(l)+e[1]];return f}function gs(e,r,t,n,i){if(i===MapType["GAODE2.x"]){var a=amap2Project(e[0],e[1]),s=amap2Project(r[0],r[1]),l=xn(a,s,n),f=[a[0],l[0],s[0]],d=[a[1],l[1],s[1]];return[].concat(_toConsumableArray(amap2UnProject(Ac(f,t),Ac(d,t))),[0])}else{var _=xn(e,r,n),b=[e[0],_[0],r[0]],T=[e[1],_[1],r[1]];return[Ac(b,t),Ac(T,t),0]}}function Lf(e,r,t,n,i){var a=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),Bf(e,r,l,i)}function Tc(e,r){var t=[r[0]-e[0],r[1]-e[1]],n=calDistance(t,[0,0]),i=Math.atan2(t[1],t[0]),a=.314,s=n/2/Math.cos(a),l=i+a,f=[s*Math.cos(l)+e[0],s*Math.sin(l)+e[1]];return f}function as(e,r){var t=1-r;return(e[0]*t+e[1]*r)*t+(e[1]*t+e[2]*r)*r}function pa(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 Bf(e,r,t,n){var i=[degreesToRadians(e[0]),degreesToRadians(e[1])],a=[degreesToRadians(r[0]),degreesToRadians(r[1])];if(n==="GAODE2.x"){var s=Tc(i,a),l=[i[0],s[0],a[0]],f=[i[1],s[1],a[1]];return[as(l,t),as(f,t),0]}else{var d=pa(i,a);if(Math.abs(d-Math.PI)<.001)return[(1-t)*i[0]+t*a[0],(1-t)*i[1]+t*a[1]];var _=Math.sin((1-t)*d)/Math.sin(d),b=Math.sin(t*d)/Math.sin(d),T=[Math.sin(i[0]),Math.sin(i[1])],M=[Math.cos(i[0]),Math.cos(i[1])],P=[Math.sin(a[0]),Math.sin(a[1])],D=[Math.cos(a[0]),Math.cos(a[1])],G=_*M[1]*M[0]+b*D[1]*D[0],q=_*M[1]*T[0]+b*D[1]*P[0],se=_*T[1]+b*P[1];return[radiansToDegrees(Math.atan2(q,G)),radiansToDegrees(Math.atan2(se,Math.sqrt(G*G+q*q)))]}}function sn(e,r){for(var t=0,n=[],i=0;id){var G=P.p1,q=P.p2,se=(d-P.lastTotalDistance)/P.distance,Se=ll(q,G,se);_=Se[0],b=Se[1];break}}return{lng:_,lat:b,height:0}}function ll(e,r,t){return[e[0]*t+r[0]*(1-t),e[1]*t+r[1]*(1-t)]}function af(e,r){return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}function of(e,r){var t=r.featureId,n=e.data.dataArray;return typeof t=="number"&&(n=n.filter(function(i){var a=i.id;return a===t})),n.map(function(i){var a=zs(i,r);return _objectSpread(_objectSpread({},i),a)})}function yu(e,r){return new Promise(function(t){e.inited?t(of(e,r)):e.once("update",function(){t(of(e,r))})})}function zs(e,r){var t=r.offset,n=r.shape,i=r.thetaOffset,a=r.mapVersion,s=r.segmentNumber,l=s===void 0?30:s,f=r.autoFit,d=f===void 0?!0:f,_=e.coordinates;if(n==="line")return pathLineAtOffset(_,t);var b=_[0],T=_[1],M=typeof i=="string"?e[i]||0:i,P;switch(n){case"arc":P=arcLineAtOffset;break;case"greatcircle":P=greatCircleLineAtOffset;break;default:P=arcLineAtOffset}var D=P(b,T,t,M,a,l,d),G=_slicedToArray(D,3),q=G[0],se=G[1],Se=G[2];return{lng:q,lat:se,height:Se}}var Ff=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 ys(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[a]):i++;return t*1}var Cc={min:ys,max:Nf,mean:hp,sum:_u,mode:wc};function Uf(e,r){return e.map(function(t){return t[r]})}function Js(e,r){return Cc[e](r)}var Ft=U(73356),Me=U(1378),F=U(88357),eu=U(22887),_e=U.n(eu);function Pl(e,r){r===void 0&&(r={});var t=Number(e[0]),n=Number(e[1]),i=Number(e[2]),a=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,a],f=[i,a],d=[i,n];return Vt([[s,d,f,l,s]],r.properties,{bbox:e,id:r.id})}var Ka=U(11312),Zs=U.n(Ka),Mo=function(e){return e.Realtime="realtime",e.Overlap="overlap",e.Replace="replace",e}({}),_s=function(e){return e.Loading="Loading",e.Loaded="Loaded",e.Failure="Failure",e.Cancelled="Cancelled",e}({}),Bn=0,An=1,os=2;function ss(e){e.forEach(function(r){r.isCurrent&&(r.isVisible=r.isLoaded)})}function xu(e){e.forEach(function(r){r.properties.state=Bn}),e.forEach(function(r){r.isCurrent&&!tu(r)&&bu(r)}),e.forEach(function(r){r.isVisible=!!(r.properties.state&os)})}function Ba(e){e.forEach(function(t){t.properties.state=Bn}),e.forEach(function(t){t.isCurrent&&tu(t)});var r=e.slice().sort(function(t,n){return t.z-n.z});r.forEach(function(t){t.isVisible=!!(t.properties.state&os),t.children.length&&(t.isVisible||t.properties.state&An)?t.children.forEach(function(n){n.properties.state=An}):t.isCurrent&&bu(t)})}function tu(e){for(;e;){if(e.isLoaded)return e.properties.state|=os,!0;e=e.parent}return!1}function bu(e){e.children.forEach(function(r){r.isLoaded?r.properties.state|=os:bu(r)})}var Eu,oa=256,yo=[-1/0,-1/0,1/0,1/0],Sh=.2,Ol=5,zf=(Eu={},(0,F.Z)(Eu,Mo.Realtime,ss),(0,F.Z)(Eu,Mo.Overlap,xu),(0,F.Z)(Eu,Mo.Replace,Ba),Eu),cl=function(){};function xs(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 ec(e,r,t){var n=e/Math.pow(2,t)*360-180,i=Math.PI-2*Math.PI*r/Math.pow(2,t),a=180/Math.PI*Math.atan(.5*(Math.exp(i)-Math.exp(-i)));return[n,a]}var Su=function(r,t,n){var i=ec(r,t,n),a=(0,_n.Z)(i,2),s=a[0],l=a[1],f=ec(r+1,t+1,n),d=(0,_n.Z)(f,2),_=d[0],b=d[1];return[s,b,_,l]};function Zf(e){var r=e.zoom,t=e.latLonBounds,n=e.maxZoom,i=n===void 0?1/0:n,a=e.minZoom,s=a===void 0?0:a,l=e.zoomOffset,f=l===void 0?0:l,d=e.extent,_=d===void 0?yo:d,b=Math.ceil(r)+f;if(Number.isFinite(s)&&bi&&(b=i);for(var T=(0,_n.Z)(t,4),M=T[0],P=T[1],D=T[2],G=T[3],q=[Math.max(M,_[0]),Math.max(P,_[1]),Math.min(D,_[2]),Math.min(G,_[3])],se=[],Se=xs(q[0],q[1],b),Ve=(0,_n.Z)(Se,2),nt=Ve[0],st=Ve[1],at=xs(q[2],q[3],b),At=(0,_n.Z)(at,2),Wt=At[0],Sr=At[1],_r=nt;_r<=Wt;_r++)for(var Gr=Sr;Gr<=st;Gr++)se.push({x:_r,y:Gr,z:b});var Cn=(Wt+nt)/2,wi=(st+Sr)/2,la=function(Yo,Uo){return Math.abs(Yo-Cn)+Math.abs(Uo-wi)};return se.sort(function(co,Yo){return la(co.x,co.y)-la(Yo.x,Yo.y)}),se}var Rc=function(r,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,a=Math.pow(2,n),s=a-1,l=a,f=r,d=t;return i&&(f<0?f=f+l:f>s&&(f=f%l)),{warpX:f,warpY:d}};function sf(e){var r=Vf();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function Vf(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var tc=function(e){(0,Fe.Z)(t,e);var r=sf(t);function t(n){var i;(0,Q.Z)(this,t),i=r.call(this),(0,F.Z)((0,Me.Z)(i),"tileSize",256),(0,F.Z)((0,Me.Z)(i),"isVisible",!1),(0,F.Z)((0,Me.Z)(i),"isCurrent",!1),(0,F.Z)((0,Me.Z)(i),"isVisibleChange",!1),(0,F.Z)((0,Me.Z)(i),"loadedLayers",0),(0,F.Z)((0,Me.Z)(i),"isLayerLoaded",!1),(0,F.Z)((0,Me.Z)(i),"isLoad",!1),(0,F.Z)((0,Me.Z)(i),"isChildLoad",!1),(0,F.Z)((0,Me.Z)(i),"parent",null),(0,F.Z)((0,Me.Z)(i),"children",[]),(0,F.Z)((0,Me.Z)(i),"data",null),(0,F.Z)((0,Me.Z)(i),"properties",{}),(0,F.Z)((0,Me.Z)(i),"loadDataId",0);var a=n.x,s=n.y,l=n.z,f=n.tileSize,d=n.warp,_=d===void 0?!0:d;return i.x=a,i.y=s,i.z=l,i.warp=_||!0,i.tileSize=f,i}return(0,j.Z)(t,[{key:"isLoading",get:function(){return this.loadStatus===_s.Loading}},{key:"isLoaded",get:function(){return this.loadStatus===_s.Loaded}},{key:"isFailure",get:function(){return this.loadStatus===_s.Failure}},{key:"setTileLayerLoaded",value:function(){this.isLayerLoaded=!0}},{key:"isCancelled",get:function(){return this.loadStatus===_s.Cancelled}},{key:"isDone",get:function(){return[_s.Loaded,_s.Cancelled,_s.Failure].includes(this.loadStatus)}},{key:"bounds",get:function(){return Su(this.x,this.y,this.z)}},{key:"bboxPolygon",get:function(){var i=(0,_n.Z)(this.bounds,4),a=i[0],s=i[1],l=i[2],f=i[3],d=[(l-a)/2,(f-s)/2],_=Pl(this.bounds,{properties:{key:this.key,id:this.key,bbox:this.bounds,center:d,meta:` + `.concat(this.key,` + `)}});return _}},{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,Ft.Z)(_e().mark(function a(s){var l,f,d,_,b,T,M,P,D,G,q,se,Se,Ve,nt,st,at;return _e().wrap(function(Wt){for(;;)switch(Wt.prev=Wt.next){case 0:return l=s.getData,f=s.onLoad,d=s.onError,this.loadDataId++,_=this.loadDataId,this.isLoading&&this.abortLoad(),this.abortController=new AbortController,this.loadStatus=_s.Loading,b=null,Wt.prev=7,M=this.x,P=this.y,D=this.z,G=this.bounds,q=this.tileSize,se=this.warp,Se=Rc(M,P,D,se),Ve=Se.warpX,nt=Se.warpY,st=this.abortController.signal,at={x:Ve,y:nt,z:D,bounds:G,tileSize:q,signal:st,warp:se},Wt.next=14,l(at,this);case 14:b=Wt.sent,Wt.next=20;break;case 17:Wt.prev=17,Wt.t0=Wt.catch(7),T=Wt.t0;case 20:if(_===this.loadDataId){Wt.next=22;break}return Wt.abrupt("return");case 22:if(!(this.isCancelled&&!b)){Wt.next=24;break}return Wt.abrupt("return");case 24:if(!(T||!b)){Wt.next=28;break}return this.loadStatus=_s.Failure,d(T,this),Wt.abrupt("return");case 28:this.loadStatus=_s.Loaded,this.data=b,f(this);case 31:case"end":return Wt.stop()}},a,this,[[7,17]])}));function i(a){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=_s.Cancelled,this.abortController.abort(),this.xhrCancel&&this.xhrCancel())}}]),t}(Ka.EventEmitter),rc=function(r,t){var n=Ql(r),i=Zu(n,t),a=360*3-180,s=85.0511287798065,l=[Math.max(i[0][0],-a),Math.max(i[0][1],-s),Math.min(i[1][0],a),Math.min(i[1][1],s)];return l},Ah=function(r,t){var n=Ql(r),i=Ql(t),a=ma(n,i);return a};function us(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Au(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(d){throw d},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 a=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var d=t.next();return a=d.done,d},e:function(d){s=!0,l=d},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function Au(e,r){if(e){if(typeof e=="string")return uf(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 uf(e,r)}}function uf(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,a,s){var l=this.options.zoomOffset,f=Math.ceil(s)+l,d=xs(i,a,f),_=this.tiles.filter(function(b){return b.key==="".concat(d[0],"_").concat(d[1],"_").concat(f)});return _[0]}},{key:"getTileExtent",value:function(i,a){return this.getTileIndices(a,i)}},{key:"getTileByZXY",value:function(i,a,s){var l=this.tiles.filter(function(f){return f.key==="".concat(a,"_").concat(s,"_").concat(i)});return l[0]}},{key:"clear",value:function(){var i=us(this.cacheTiles.values()),a;try{for(i.s();!(a=i.n()).done;){var s=a.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,a=new Map,s=us(this.cacheTiles.values()),l;try{for(s.s();!(l=s.n()).done;){var f=l.value;a.set(f.key,f.isVisible),f.isCurrent=!1,f.isVisible=!1}}catch(P){s.e(P)}finally{s.f()}var d=us(this.currentTiles),_;try{for(d.s();!(_=d.n()).done;){var b=_.value;b.isCurrent=!0,b.isVisible=!0}}catch(P){d.e(P)}finally{d.f()}var T=Array.from(this.cacheTiles.values());typeof i=="function"?i(T):zf[i](T);var M=!1;Array.from(this.cacheTiles.values()).forEach(function(P){P.isVisible!==a.get(P.key)?(P.isVisibleChange=!0,M=!0):P.isVisibleChange=!1}),M&&this.emit(ju.TileUpdate)}},{key:"getTileIndices",value:function(i,a){var s=this.options,l=s.tileSize,f=s.extent,d=s.zoomOffset,_=Math.floor(this.options.maxZoom),b=Math.ceil(this.options.minZoom),T=Zf({maxZoom:_,minZoom:b,zoomOffset:d,tileSize:l,zoom:i,latLonBounds:a,extent:f});return T}},{key:"getTileId",value:function(i,a,s){var l="".concat(i,",").concat(a,",").concat(s);return l}},{key:"loadFinished",value:function(){var i=!this.currentTiles.some(function(a){return!a.isDone});return i&&this.emit(ju.TilesLoadFinished),i}},{key:"getTile",value:function(i,a,s){var l=this.getTileId(i,a,s),f=this.cacheTiles.get(l);return f}},{key:"createTile",value:function(i,a,s){var l=this.getTileId(i,a,s),f=new tc({x:i,y:a,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=Ol*this.currentTiles.length,a=this.cacheTiles.size>i;if(a){var s=us(this.cacheTiles),l;try{for(s.s();!(l=s.n()).done;){var f=(0,_n.Z)(l.value,2),d=f[0],_=f[1];if(!_.isVisible&&!this.currentTiles.includes(_)&&(this.cacheTiles.delete(d),this.onTileUnload(_)),this.cacheTiles.size<=i)break}}catch(b){s.e(b)}finally{s.f()}}this.rebuildTileTree()}},{key:"rebuildTileTree",value:function(){var i=us(this.cacheTiles.values()),a;try{for(i.s();!(a=i.n()).done;){var s=a.value;s.parent=null,s.children.length=0}}catch(b){i.e(b)}finally{i.f()}var l=us(this.cacheTiles.values()),f;try{for(l.s();!(f=l.n()).done;){var d=f.value,_=this.getNearestAncestor(d.x,d.y,d.z);d.parent=_,_!=null&&_.children&&_.children.push(d)}}catch(b){l.e(b)}finally{l.f()}}},{key:"getNearestAncestor",value:function(i,a,s){for(;s>this.options.minZoom;){i=Math.floor(i/2),a=Math.floor(a/2),s=s-1;var l=this.getTile(i,a,s);if(l)return l}return null}}]),t}(Zs());function wh(e){return/(?=.*{box})(?=.*{z})(?=.*{x})(?=.*({y}|{-y}))/.test(e)}function h(e){var r=[],t=/\{([a-z])-([a-z])\}/.exec(e);if(t){var n=t[1].charCodeAt(0),i=t[2].charCodeAt(0),a;for(a=n;a<=i;++a)r.push(e.replace(t[0],String.fromCharCode(a)));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 v(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,a=h(e),s=Math.abs(t+n)%a.length,l=Jn(a[s])?"".concat(a[s],"/{z}/{x}/{y}"):a[s];return l.replace(/\{x\}/g,t.toString()).replace(/\{y\}/g,n.toString()).replace(/\{z\}/g,i.toString()).replace(/\{bbox\}/g,Su(t,n,i).join(",")).replace(/\{-y\}/g,(Math.pow(2,i)-n-1).toString())}function p(e,r){var t=r.x,n=r.y,i=r.z,a=r.layer,s=r.version,l=s===void 0?"1.0.0":s,f=r.style,d=f===void 0?"default":f,_=r.format,b=r.service,T=b===void 0?"WMTS":b,M=r.tileMatrixset,P="".concat(e,"&SERVICE=").concat(T,"&REQUEST=GetTile&VERSION=").concat(l,"&LAYER=").concat(a,"&STYLE=").concat(d,"&TILEMATRIXSET=").concat(M,"&FORMAT=").concat(_,"&TILECOL=").concat(t,"&TILEROW=").concat(n,"&TILEMATRIX=").concat(i);return P}function g(e,r){if(!e)throw new Error(r||"web worker helper assertion failed.")}var S={self:typeof self!="undefined"&&self,window:typeof window!="undefined"&&window,document:typeof document!="undefined"&&document},w=S.self||S.window||{},C=S.window||S.self||{},O=S.self||S.window||{},X=S.document||{},J=typeof importScripts=="function",me=typeof window!="undefined"&&typeof window.orientation!="undefined",be=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,a){n.resolve=i,n.reject=a})}return e.prototype.postMessage=function(r,t){this.workerThread.postMessage({source:"Main thread",type:r,payload:t})},e.prototype.done=function(r){g(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.resolve(r)},e.prototype.error=function(r){g(this.isRunning,"WorkerJob isRunning false."),this.isRunning=!1,this.reject(r)},e}(),Te=be,je=new Map;function Ze(e){g(e.source&&!e.url||!e.source&&e.url);var r=je.get(e.source||e.url);return r||(e.url&&(r=lt(e.url),je.set(e.url,r)),e.source&&(r=Ne(e.source),je.set(e.source,r))),g(r),r}function lt(e){if(!e.startsWith("http"))return e;var r=ot(e);return Ne(r)}function Ne(e){var r=new Blob([e],{type:"application/javascript"});return URL.createObjectURL(r)}function ot(e){return`try { + importScripts('`+e+`'); +} catch (error) { + console.error(error); + throw error; +}`}function _t(e,r,t){r===void 0&&(r=!0);var n=t||new Set;if(e){if(Lt(e))n.add(e);else if(Lt(e.buffer))n.add(e.buffer);else if(!ArrayBuffer.isView(e)){if(r&&typeof e=="object")for(var i in e)_t(e[i],r,n)}}return t===void 0?Array.from(n):[]}function Lt(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 ir=function(){},qt=function(){function e(r){this.terminated=!1,this.loadableURL="";var t=r.name,n=r.source,i=r.url;g(n||i),this.name=t,this.source=n,this.url=i,this.onMessage=ir,this.onError=function(a){return console.log(a)},this.worker=this.createBrowserWorker()}return e.isSupported=function(){return typeof Worker!="undefined"},e.prototype.destroy=function(){this.onMessage=ir,this.onError=ir,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||_t(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=Ze({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}(),cr=qt,br=function(){return br=Object.assign||function(e){for(var r,t=1,n=arguments.length;t0&&a[a.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[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.")},zi={maxConcurrency:3,maxMobileConcurrency:1,onDebug:function(){},reuseWorkers:!0},gn=function(){function e(r){this.workerPools=new Map,this.props=Fn({},zi),this.setProps(r),this.workerPools=new Map}return e.isSupported=function(){return cr.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 a=i.value;a.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=Fn(Fn({},this.props),r);try{for(var i=zn(this.workerPools.values()),a=i.next();!a.done;a=i.next()){var s=a.value;s.setProps(this.getWorkerPoolProps())}}catch(l){t={error:l}}finally{try{a&&!a.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,a=this.workerPools.get(t);return a||(a=new Un({name:t,source:n,url:i}),a.setProps(this.getWorkerPoolProps()),this.workerPools.set(t,a)),a},e.prototype.getWorkerPoolProps=function(){return{maxConcurrency:this.props.maxConcurrency,maxMobileConcurrency:this.props.maxMobileConcurrency,reuseWorkers:this.props.reuseWorkers,onDebug:this.props.onDebug}},e}(),ii=null,pi=new Map,ri=function(){function e(){}return Object.defineProperty(e,"onmessage",{set:function(r){self.onmessage=function(t){if(fi(t)){var n=t.data,i=n.type,a=n.payload;r(i,a)}}},enumerable:!1,configurable:!0}),e.addEventListener=function(r){var t=pi.get(r);t||(t=function(n){if(fi(n)){var i=n.data,a=i.type,s=i.payload;r(a,s)}}),self.addEventListener("message",t)},e.removeEventListener=function(r){var t=pi.get(r);pi.delete(r),self.removeEventListener("message",t)},e.postMessage=function(r,t){if(self){var n={source:"Worker thread",type:r,payload:t},i=_t(t);self.postMessage(n,i)}},e}(),Kn=null;function fi(e){var r=e.type,t=e.data;return r==="message"&&t&&typeof t.source=="string"&&t.source==="Main thread"}function Qn(e){return JSON.parse(Gn(e))}function Gn(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 Io(e){return""+e.name}function Qa(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 Po=function(e,r,t,n){function i(a){return a instanceof t?a:new t(function(s){s(a)})}return new(t||(t=Promise))(function(a,s){function l(_){try{d(n.next(_))}catch(b){s(b)}}function f(_){try{d(n.throw(_))}catch(b){s(b)}}function d(_){_.done?a(_.value):i(_.value).then(l,f)}d((n=n.apply(e,r||[])).next())})},_o=function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(d){return function(_){return f([d,_])}}function f(d){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(a=d[0]&2?i.return:d[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,d[1])).done)return a;switch(i=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,i=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[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}(),fl=null,Ss=function(e,r,t,n){function i(a){return a instanceof t?a:new t(function(s){s(a)})}return new(t||(t=Promise))(function(a,s){function l(_){try{d(n.next(_))}catch(b){s(b)}}function f(_){try{d(n.throw(_))}catch(b){s(b)}}function d(_){_.done?a(_.value):i(_.value).then(l,f)}d((n=n.apply(e,r||[])).next())})},lu=function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(d){return function(_){return f([d,_])}}function f(d){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(a=d[0]&2?i.return:d[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,d[1])).done)return a;switch(i=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,i=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]0&&a[a.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]0&&arguments[0]!==void 0?arguments[0]:{};(0,Q.Z)(this,e),(0,F.Z)(this,"lastFlip",-1),(0,F.Z)(this,"miter",Dr.al(0,0)),(0,F.Z)(this,"started",!1),(0,F.Z)(this,"dash",!1),(0,F.Z)(this,"totalDistance",0),(0,F.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 a=t.length,s=i.startIndex,l=1;lthis.miterLimit&&(Gr=!0)}Gr?(M.push(this.normal[0],this.normal[1],0),M.push(Sr[0],Sr[1],0),T.push(a[0],a[1],a[2]|0,this.totalDistance,-this.thickness*_r,a[2]|0),this.complex.indexes.push(this.currentIndex),T.push(a[0],a[1],a[2]|0,this.totalDistance,this.thickness*_r,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,b.push.apply(b,(0,Qt.Z)(this.lastFlip!==-_r?[n,n+2,n+3]:[n+2,n+1,n+3])),b.push(n+2,n+3,n+4),ic(js,ru),Dr.JG(this.normal,js),M.push(this.normal[0],this.normal[1],0),T.push(a[0],a[1],a[2]|0,this.totalDistance,-this.thickness*_r,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,_+=3):(this.extrusions(T,M,a,Sr,Wt,this.totalDistance),b.push.apply(b,(0,Qt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),_r=-1,Dr.JG(this.normal,Sr),_+=2),this.lastFlip=_r}else{if(ic(this.normal,Do),P){var nt=Dr.Ue(),st=Dr.Ue();Dr.lu(st,Do,this.normal),Dr.IH(nt,Do,this.normal),M.push(st[0],st[1],0),M.push(nt[0],nt[1],0),T.push(a[0],a[1],a[2]|0,this.totalDistance,this.thickness,a[2]|0),this.complex.indexes.push(this.currentIndex),T.push(a[0],a[1],a[2]|0,this.totalDistance,this.thickness,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(T,M,a,this.normal,this.thickness,this.totalDistance);b.push.apply(b,(0,Qt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),_+=2}return _}},{key:"simpleSegment",value:function(t,n,i,a,s){var l=0,f=t.indices,d=t.positions,_=t.normals,b=ja([a[0],a[1]]),T=ja([i[0],i[1]]);dl(Do,b,T);var M=0;if(this.dash&&(M=this.lineSegmentDistance(b,T),this.totalDistance+=M),this.normal||(this.normal=Dr.Ue(),ic(this.normal,Do)),this.started||(this.started=!0,this.extrusions(d,_,i,this.normal,this.thickness,this.totalDistance-M)),f.push(n+0,n+1,n+2),!s)ic(this.normal,Do),this.extrusions(d,_,a,this.normal,this.thickness,this.totalDistance),f.push.apply(f,(0,Qt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),l+=2;else{var P=ja([s[0],s[1]]);Zp(b,P)&&Dr.IH(P,b,Dr.Fv(P,Dr.$X(P,b,T))),dl(ru,P,b);var D=pp(Lo,Dr.Ue(),Do,ru,this.thickness),G=(0,_n.Z)(D,2),q=G[0],se=G[1],Se=Dr.AK(Lo,this.normal)<0?-1:1;this.extrusions(d,_,a,se,q,this.totalDistance),f.push.apply(f,(0,Qt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),Se=-1,Dr.JG(this.normal,se),l+=2,this.lastFlip=Se}return l}},{key:"segment",value:function(t,n,i,a,s){var l=0,f=t.indices,d=t.positions,_=t.normals,b=this.cap==="square",T=this.join==="bevel",M=ja([a[0],a[1]]),P=ja([i[0],i[1]]);dl(Do,M,P);var D=0;if(this.dash&&(D=this.lineSegmentDistance(M,P),this.totalDistance+=D),this.normal||(this.normal=Dr.Ue(),ic(this.normal,Do)),!this.started)if(this.started=!0,b){var G=Dr.Ue(),q=Dr.Ue();Dr.IH(G,this.normal,Do),Dr.IH(q,this.normal,Do),_.push(q[0],q[1],0),_.push(G[0],G[1],0),d.push(i[0],i[1],i[2]|0,this.totalDistance-D,-this.thickness,i[2]|0),this.complex.indexes.push(this.currentIndex),d.push(i[0],i[1],i[2]|0,this.totalDistance-D,this.thickness,i[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(d,_,i,this.normal,this.thickness,this.totalDistance-D);if(f.push(n+0,n+1,n+2),s){var Ve=ja([s[0],s[1]]);Zp(M,Ve)&&Dr.IH(Ve,M,Dr.Fv(Ve,Dr.$X(Ve,M,P))),dl(ru,Ve,M);var nt=pp(Lo,Dr.Ue(),Do,ru,this.thickness),st=(0,_n.Z)(nt,2),at=st[0],At=st[1],Wt=Dr.AK(Lo,this.normal)<0?-1:1,Sr=T;if(!Sr&&this.join==="miter"){var _r=at;_r>this.miterLimit&&(Sr=!0)}Sr?(_.push(this.normal[0],this.normal[1],0),_.push(At[0],At[1],0),d.push(a[0],a[1],a[2]|0,this.totalDistance,-this.thickness*Wt,a[2]|0),this.complex.indexes.push(this.currentIndex),d.push(a[0],a[1],a[2]|0,this.totalDistance,this.thickness*Wt,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,f.push.apply(f,(0,Qt.Z)(this.lastFlip!==-Wt?[n,n+2,n+3]:[n+2,n+1,n+3])),f.push(n+2,n+3,n+4),ic(js,ru),Dr.JG(this.normal,js),_.push(this.normal[0],this.normal[1],0),d.push(a[0],a[1],a[2]|0,this.totalDistance,-this.thickness*Wt,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,l+=3):(this.extrusions(d,_,a,At,at,this.totalDistance),f.push.apply(f,(0,Qt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),Wt=-1,Dr.JG(this.normal,At),l+=2),this.lastFlip=Wt}else{if(ic(this.normal,Do),b){var se=Dr.Ue(),Se=Dr.Ue();Dr.lu(Se,Do,this.normal),Dr.IH(se,Do,this.normal),_.push(Se[0],Se[1],0),_.push(se[0],se[1],0),d.push(a[0],a[1],a[2]|0,this.totalDistance,this.thickness,a[2]|0),this.complex.indexes.push(this.currentIndex),d.push(a[0],a[1],a[2]|0,this.totalDistance,this.thickness,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(d,_,a,this.normal,this.thickness,this.totalDistance);f.push.apply(f,(0,Qt.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,a,s,l){n.push(a[0],a[1],0),n.push(a[0],a[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],a=n[1]-t[1];return Math.sqrt(i*i+a*a)}}]),e}();function Hf(e){var r=e.coordinates,t=e.originCoordinates,n=e.version,i=new zv({dash:!0,join:"bevel"});if(n==="GAODE2.x"){var a=r;Array.isArray(a[0][0])||(a=[r]);var s=t;Array.isArray(s[0][0])||(s=[t]);for(var l=0;l0}).forEach(function(q,se){var Se=ac(q[l]);dt(Se,function(Ve){var nt=Zo(Ve),st=(0,H.Z)((0,H.Z)({},q),{},{_id:se,coordinates:nt});f.push(st)})}),{dataArray:f};for(var d=0;d>>0}function Gp(e,r){return r===void 0?null:(0,Hs.Z)(e.properties[r])*1==="number"?e.properties[r]*1:e.properties&&e.properties[r]?mp(e.properties[r]+"")%1000019:null}function Xp(e,r){var t=[],n={};return e.features?(e.features=e.features.filter(function(i){var a=i.geometry;return i!=null&&a&&a.type&&a.coordinates&&a.coordinates.length>0}),e=ac(e),e.features.length===0?{dataArray:[],featureKeys:n}:(dt(e,function(i,a){var s=Gp(i,r==null?void 0:r.featureId);s===null&&(s=a);var l=s,f=Zo(i),d=(0,H.Z)((0,H.Z)({},i.properties),{},{coordinates:f,_id:l});t.push(d)}),{dataArray:t,featureKeys:n})):(e.features=[],{dataArray:[]})}function Ph(e,r,t,n){for(var i=n,a=t-r>>1,s=t-r,l,f=e[r],d=e[r+1],_=e[t],b=e[t+1],T=r+3;Ti)l=T,i=M;else if(M===i){var P=Math.abs(T-a);Pn&&(l-r>3&&Ph(e,r,l,n),e[l+2]=i,t-l>3&&Ph(e,l,t,n))}function ml(e,r,t,n,i,a){var s=i-t,l=a-n;if(s!==0||l!==0){var f=((e-t)*s+(r-n)*l)/(s*s+l*l);f>1?(t=i,n=a):f>0&&(t+=s*f,n+=l*f)}return s=e-t,l=r-n,s*s+l*l}function Gu(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 Nd(i),i}function Nd(e){var r=e.geometry,t=e.type;if(t==="Point"||t==="MultiPoint"||t==="LineString")gp(e,r);else if(t==="Polygon"||t==="MultiLineString")for(var n=0;n0&&(n?s+=(i*d-f*a)/2:s+=Math.sqrt(Math.pow(f-i,2)+Math.pow(d-a,2))),i=f,a=d}var _=r.length-3;r[2]=1,Ph(r,0,_,t),r[_+2]=1,r.size=Math.abs(s),r.start=0,r.end=r.size}function Xu(e,r,t,n){for(var i=0;i1?1:t}function Ws(e,r,t,n,i,a,s,l){if(t/=r,n/=r,a>=t&&s=n)return null;for(var f=[],d=0;d=t&&P=n)continue;var D=[];if(T==="Point"||T==="MultiPoint")zd(b,D,t,n,i);else if(T==="LineString")sc(b,D,t,n,i,!1,l.lineMetrics);else if(T==="MultiLineString")Yf(b,D,t,n,i,!1);else if(T==="Polygon")Yf(b,D,t,n,i,!0);else if(T==="MultiPolygon")for(var G=0;G=t&&s<=n&&(r.push(e[a]),r.push(e[a+1]),r.push(e[a+2]))}}function sc(e,r,t,n,i,a,s){for(var l=kh(e),f=i===0?As:Bo,d=e.start,_,b,T=0;Tt&&(b=f(l,M,P,G,q,t),s&&(l.start=d+_*b)):se>n?Se=t&&(b=f(l,M,P,G,q,t),Ve=!0),Se>n&&se<=n&&(b=f(l,M,P,G,q,n),Ve=!0),!a&&Ve&&(s&&(l.end=d+_*b),r.push(l),l=kh(e)),s&&(d+=_)}var nt=e.length-3;M=e[nt],P=e[nt+1],D=e[nt+2],se=i===0?M:P,se>=t&&se<=n&&ls(l,M,P,D),nt=l.length-3,a&&nt>=3&&(l[nt]!==l[0]||l[nt+1]!==l[1])&&ls(l,l[0],l[1],l[2]),l.length&&r.push(l)}function kh(e){var r=[];return r.size=e.size,r.start=e.start,r.end=e.end,r}function Yf(e,r,t,n,i,a){for(var s=0;ss.maxX&&(s.maxX=_),b>s.maxY&&(s.maxY=b)}return s}function Vd(e,r,t,n){var i=r.geometry,a=r.type,s=[];if(a==="Point"||a==="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&&jd(l,a),e.push(l)}function jd(e,r){for(var t=0,n=0,i=e.length,a=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=Ud(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=pu(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)))}_p.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},_p.prototype.splitTile=function(e,r,t,n,i,a,s){for(var l=[e,r,t,n],f=this.options,d=f.debug;l.length;){n=l.pop(),t=l.pop(),r=l.pop(),e=l.pop();var _=1<1&&console.time("creation"),T=this.tiles[b]=Vv(e,r,t,n,f),this.tileCoords.push({z:r,x:t,y:n}),d)){d>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 P=1<1&&console.time("clipping");var D=.5*f.buffer/f.extent,G=.5-D,q=.5+D,se=1+D,Se,Ve,nt,st,at,At;Se=Ve=nt=st=null,at=Ws(e,_,t-D,t+q,0,T.minX,T.maxX,f),At=Ws(e,_,t+G,t+se,0,T.minX,T.maxX,f),e=null,at&&(Se=Ws(at,_,n-D,n+q,1,T.minY,T.maxY,f),Ve=Ws(at,_,n+G,n+se,1,T.minY,T.maxY,f),at=null),At&&(nt=Ws(At,_,n-D,n+q,1,T.minY,T.maxY,f),st=Ws(At,_,n+G,n+se,1,T.minY,T.maxY,f),At=null),d>1&&console.timeEnd("clipping"),l.push(Se||[],r+1,t*2,n*2),l.push(Ve||[],r+1,t*2,n*2+1),l.push(nt||[],r+1,t*2+1,n*2),l.push(st||[],r+1,t*2+1,n*2+1)}}},_p.prototype.getTile=function(e,r,t){var n=this.options,i=n.extent,a=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,d=r,_=t,b;!b&&f>0;)f--,d=Math.floor(d/2),_=Math.floor(_/2),b=this.tiles[xp(f,d,_)];return!b||!b.source?null:(a>1&&console.log("found parent tile z%d-%d-%d",f,d,_),a>1&&console.time("drilling down"),this.splitTile(b.source,f,d,_,e,r,t),a>1&&console.timeEnd("drilling down"),this.tiles[l]?qp(this.tiles[l],i):null)};function xp(e,r,t){return((1<0)switch(n[0]){case"band":try{e[i]=r[n[1]][t]}catch(a){console.warn("Raster Data err!"),e[i]=0}break;default:ur(n,r,t)}})}function Ur(e){var r=(0,_n.Z)(e,3),t=r[0],n=r[1],i=n===void 0?-1:n,a=r[2],s=a===void 0?-1:a;if(t===void 0)return console.warn("Express err!"),["+",0,0];var l=t.replace(/\s+/g,"");return[l,i,s]}function cn(e){var r=Ur(e),t=r[0],n=r[1],i=r[2];return Array.isArray(n)&&(n=cn(e[1])),Array.isArray(i)&&(i=cn(e[2])),$r(t,n,i)}var Tr={nd:{type:"operation",expression:["/",["-",["band",1],["band",0]],["+",["band",1],["band",0]]]},rgb:{type:"function",method:pn}};function pn(e,r){for(var t=e[0].rasterData,n=e[1].rasterData,i=e[2].rasterData,a=[],s=(r==null?void 0:r.countCut)||[2,98],l=(0,_n.Z)(s,2),f=l[0],d=l[1],_=(r==null?void 0:r.RMinMax)||Ir(t,f,d),b=(r==null?void 0:r.GMinMax)||Ir(n,f,d),T=(r==null?void 0:r.BMinMax)||Ir(i,f,d),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")},_i=U(25865),si=U.n(_i);function qn(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=qi(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(d){throw d},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 a=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var d=t.next();return a=d.done,d},e:function(d){s=!0,l=d},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function qi(e,r){if(e){if(typeof e=="string")return vo(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 vo(e,r)}}function vo(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);ta&&(M=0,T++),l[D]={x:M,y:b+T*mo,width:mo,height:mo,advance:q},M+=mo}});var P=n+i*2;return{mapping:l,xOffset:M,yOffset:b+T*P,canvasHeight:bo(b+(T+1)*P)}}function xo(e,r,t){var n=0,i=0,a=0,s=[],l={},f=qn(e),d;try{for(f.s();!(d=f.n()).done;){var _=d.value;if(!l[_.id]){var b=_.size;n+b+r>t&&(Aa(l,s,i),n=0,i=a+i+r,a=0,s=[]),s.push({icon:_,xOffset:n}),n=n+b+r,a=Math.max(a,b)}}}catch(M){f.e(M)}finally{f.f()}s.length>0&&Aa(l,s,i);var T=bo(a+i+r);return{mapping:l,canvasHeight:T}}function Aa(e,r,t){var n=qn(r),i;try{for(n.s();!(i=n.n()).done;){var a=i.value,s=a.icon,l=a.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 bo(e){return Math.pow(2,Math.ceil(Math.log2(e)))}var Eo,Ga;function Fo(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Ts(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(d){throw d},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 a=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var d=t.next();return a=d.done,d},e:function(d){s=!0,l=d},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function Ts(e,r){if(e){if(typeof e=="string")return So(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 So(e,r)}}function So(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(d){throw d},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 a=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var d=t.next();return a=d.done,d},e:function(d){s=!0,l=d},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function $n(e,r){if(e){if(typeof e=="string")return ni(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 ni(e,r)}}function ni(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=Tn(this.controls),n;try{for(t.s();!(n=t.n()).done;){var i=n.value;i.remove()}}catch(a){t.e(a)}finally{t.f()}this.controls=[],this.clearControlPos()}},{key:"initControlPos",value:function(){var t=this.controlCorners={},n="l7-",i=this.controlContainer=Yi("div",n+"control-container",this.container);function a(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],f=l.map(function(d){return n+d}).join(" ");t[l.filter(function(d){return!["row","column"].includes(d)}).join("")]=Yi("div",f,i)}function s(l){var f=l.replace(/^(top|bottom|left|right|center)/,"$1-").split("-");return[].concat((0,Qt.Z)(f),[aa[l]])}Object.values(wr).forEach(function(l){a(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[a],d=f.match(/^(top|bottom)(left|right)$/);if(d){var _=(0,_n.Z)(d,3),b=_[1],T=_[2],M=t.controlCorners["".concat(b).concat(T)],P=new n(function(D){var G=(0,_n.Z)(D,1),q=G[0].target;M&&(M.style[b]=q.clientHeight+"px")});P.observe(t.controlCorners["".concat(T).concat(b)],{childList:!0,attributes:!0})}},a=0,s=Object.keys(this.controlCorners);a-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(Ke.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}())||bp),ed,Ll,td=(ed=(0,er.b2)(),ed(Ll=function(){function e(){(0,Q.Z)(this,e),(0,F.Z)(this,"scene",void 0),(0,F.Z)(this,"mapsService",void 0),(0,F.Z)(this,"popups",[]),(0,F.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,Qt.Z)(this.popups),(0,Qt.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(Ke.IMapService)}}]),e}())||Ll),ff=function(e){return e.normal="normal",e.additive="additive",e.subtractive="subtractive",e.min="min",e.max="max",e.none="none",e}({}),Kf=function(e){return e.MULTIPLE="MULTIPLE",e.SINGLE="SINGLE",e}({}),rd=function(e){return e.AND="and",e.OR="or",e}({}),es=function(e){return e.INIT="init",e.UPDATE="update",e}({}),Dh={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"},Wv=Dh,Lh,Gv,jo=ui.merge,Xa={id:"map",logoPosition:"bottomleft",logoVisible:!0,antialias:!0,stencil:!0,preserveDrawingBuffer:!1,pickBufferScale:1,fitBoundsOptions:{animate:!1}},sg={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:rd.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},ug=(Lh=(0,er.b2)(),Lh(Gv=function(){function e(){(0,Q.Z)(this,e),(0,F.Z)(this,"sceneConfigCache",{}),(0,F.Z)(this,"layerConfigCache",{}),(0,F.Z)(this,"layerAttributeConfigCache",{})}return(0,j.Z)(e,[{key:"getSceneConfig",value:function(t){return this.sceneConfigCache[t]}},{key:"getSceneWarninfo",value:function(t){return Wv[t]}},{key:"setSceneConfig",value:function(t,n){this.sceneConfigCache[t]=(0,H.Z)((0,H.Z)({},Xa),n)}},{key:"getLayerConfig",value:function(t){return this.layerConfigCache[t]}},{key:"setLayerConfig",value:function(t,n,i){this.layerConfigCache[n]=(0,H.Z)({},jo({},this.sceneConfigCache[t],sg,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}())||Gv);function Di(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 Pi(e,r,t,n,i){var a={};return Object.keys(n).forEach(function(s){a[s]=n[s]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=t.slice().reverse().reduce(function(s,l){return l(e,r,s)||s},a),i&&a.initializer!==void 0&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),a.initializer===void 0&&(Object.defineProperty(e,r,a),a=null),a}var Bh=U(49953),nd=Math.PI/180,Fh=512,Qf=4003e4;function Xv(e){var r=e.latitude,t=r===void 0?0:r,n=e.zoom,i=n===void 0?0:n,a=e.scale,s=e.highPrecision,l=s===void 0?!1:s,f=e.flipY,d=f===void 0?!1:f;a=a!==void 0?a:Math.pow(2,i);var _={},b=Fh*a,T=Math.cos(t*nd),M=b/360,P=M/T,D=b/Qf/T;if(_.pixelsPerMeter=[D,-D,D],_.metersPerPixel=[1/D,-1/D,1/D],_.pixelsPerDegree=[M,-P,D],_.degreesPerPixel=[1/M,-1/P,1/D],l){var G=nd*Math.tan(t*nd)/T,q=M*G/2,se=b/Qf*G,Se=se/P*D;_.pixelsPerDegree2=[0,-q,se],_.pixelsPerMeter2=[Se,0,Se],d&&(_.pixelsPerDegree2[1]=-_.pixelsPerDegree2[1],_.pixelsPerMeter2[1]=-_.pixelsPerMeter2[1])}return d&&(_.pixelsPerMeter[1]=-_.pixelsPerMeter[1],_.metersPerPixel[1]=-_.metersPerPixel[1],_.pixelsPerDegree[1]=-_.pixelsPerDegree[1],_.degreesPerPixel[1]=-_.degreesPerPixel[1]),_}var to=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}({}),uc={CoordinateSystem:"u_CoordinateSystem",ViewportCenter:"u_ViewportCenter",ViewportCenterProjection:"u_ViewportCenterProjection",PixelsPerDegree:"u_PixelsPerDegree",PixelsPerDegree2:"u_PixelsPerDegree2",PixelsPerMeter:"u_PixelsPerMeter",Mvp:"u_Mvp"},Nc,id,ad,od,Nh,hf=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0],lg=(Nc=(0,er.b2)(),id=(0,er.f3)(Ke.ICameraService),Nc(ad=(od=function(){function e(){(0,Q.Z)(this,e),(0,F.Z)(this,"needRefresh",!0),Di(this,"cameraService",Nh,this),(0,F.Z)(this,"coordinateSystem",void 0),(0,F.Z)(this,"viewportCenter",void 0),(0,F.Z)(this,"viewportCenterProjection",void 0),(0,F.Z)(this,"pixelsPerDegree",void 0),(0,F.Z)(this,"pixelsPerDegree2",void 0),(0,F.Z)(this,"pixelsPerMeter",void 0)}return(0,j.Z)(e,[{key:"refresh",value:function(t){var n=this.cameraService.getZoom(),i=this.cameraService.getZoomScale(),a=t||this.cameraService.getCenter(),s=Xv({latitude:a[1],zoom:n}),l=s.pixelsPerMeter,f=s.pixelsPerDegree;this.viewportCenter=a,this.viewportCenterProjection=[0,0,0,0],this.pixelsPerMeter=l,this.pixelsPerDegree=f,this.pixelsPerDegree2=[0,0,0],this.coordinateSystem===to.LNGLAT||this.coordinateSystem===to.P20?this.cameraService.setViewProjectionMatrix(void 0):this.coordinateSystem===to.LNGLAT_OFFSET?this.calculateLnglatOffset(a,n):this.coordinateSystem===to.P20_OFFSET&&this.calculateLnglatOffset(a,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,a){var s=Xv({latitude:t[1],zoom:n,scale:i,flipY:a,highPrecision:!0}),l=s.pixelsPerMeter,f=s.pixelsPerDegree,d=s.pixelsPerDegree2,_=this.cameraService.getViewMatrix(),b=this.cameraService.getProjectionMatrix(),T=Ct.multiply([],b,_),M=this.cameraService.projectFlat([Math.fround(t[0]),Math.fround(t[1])],Math.pow(2,n));this.viewportCenterProjection=Bh.fF([],[M[0],M[1],0,1],T),_=this.cameraService.getViewMatrixUncentered()||_,T=Ct.multiply([],b,_),T=Ct.multiply([],T,hf),this.cameraService.setViewProjectionMatrix(T),this.pixelsPerMeter=l,this.pixelsPerDegree=f,this.pixelsPerDegree2=d}}]),e}(),Nh=Pi(od.prototype,"cameraService",[id],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),od))||ad),$v,cg;function fs(e){var r=Jf();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.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}}var fg=($v=(0,er.b2)(),$v(cg=function(e){(0,Fe.Z)(t,e);var r=fs(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,a=new Array(i),s=0;sP-1*ua||Se<0||Ve>D-1*ua||Ve<0)return!1;var nt=b({x:Math.floor(Se/r.pickBufferScale),y:Math.floor((D-(a+1)*ua)/r.pickBufferScale),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:r.pickingFBO});if(r.pickedColors=nt,nt[0]!==0||nt[1]!==0||nt[2]!==0){var st=ka(nt),at=t.layerPickService.getFeatureById(st);st!==t.getCurrentPickId()&&l==="mousemove"&&(l="mouseenter");var At={x:i,y:a,type:l,lngLat:s,featureId:st,feature:at,target:f};at&&(d=!0,t.setCurrentPickId(st),r.triggerHoverOnLayer(t,At))}else{var Wt={x:i,y:a,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)({},Wt),{},{type:"unpick"})),r.triggerHoverOnLayer(t,Wt),t.setCurrentPickId(null)}if(q&&t.layerPickService.highlightPickedFeature(nt),se&&l==="click"&&(nt==null?void 0:nt.toString())!==[0,0,0,0].toString()){var Sr=ka(nt);t.getCurrentSelectedId()===null||Sr!==t.getCurrentSelectedId()?(t.layerPickService.selectFeature(nt),t.setCurrentSelectedId(Sr)):(t.layerPickService.selectFeature(new Uint8Array([0,0,0,0])),t.setCurrentSelectedId(null))}return d})}return(0,j.Z)(e,[{key:"init",value:function(t){var n=this.rendererService,i=n.createTexture2D,a=n.createFramebuffer,s=n.getContainer,l=this.getContainerSize(s()),f=l.width,d=l.height;f*=ua,d*=ua,this.pickBufferScale=this.configService.getSceneConfig(t).pickBufferScale||1,f=Math.round(f/this.pickBufferScale),d=Math.round(d/this.pickBufferScale),this.pickingFBO=a({color:i({width:f,height:d,wrapS:I.CLAMP_TO_EDGE,wrapT:I.CLAMP_TO_EDGE,usage:ht.RENDER_TARGET}),depth:!0,width:f,height:d}),this.interactionService.on(c.Hover,this.pickingAllLayer.bind(this))}},{key:"boxPickLayer",value:function(){var r=(0,Ft.Z)(_e().mark(function n(i,a,s){var l=this,f,d,_;return _e().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:f=this.rendererService,d=f.useFramebuffer,_=f.clear,this.resizePickingFBO(),d(this.pickingFBO,function(){_({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,a);s(M)});case 3:case"end":return T.stop()}},n,this)}));function t(n,i,a){return r.apply(this,arguments)}return t}()},{key:"pickBox",value:function(t,n){var i=this,a=n.map(function(Sr){var _r=Sr<0?0:Sr;return Math.floor(_r*ua/i.pickBufferScale)}),s=(0,_n.Z)(a,4),l=s[0],f=s[1],d=s[2],_=s[3],b=this.rendererService,T=b.readPixels,M=b.getContainer,P=this.getContainerSize(M()),D=P.width,G=P.height;if(D*=ua,G*=ua,l>(D-1)*ua/this.pickBufferScale||d<0||f>(G-1)*ua/this.pickBufferScale||_<0)return[];for(var q=Math.min(D/this.pickBufferScale,d)-l,se=Math.min(G/this.pickBufferScale,_)-f,Se=T({x:l,y:Math.floor(G/this.pickBufferScale-(_+1)),width:q,height:se,data:new Uint8Array(q*se*4),framebuffer:this.pickingFBO}),Ve=[],nt={},st=0;st0&&arguments[0]!==void 0?arguments[0]:!0;(0,Q.Z)(this,e),(0,F.Z)(this,"autoStart",void 0),(0,F.Z)(this,"startTime",0),(0,F.Z)(this,"oldTime",0),(0,F.Z)(this,"running",!1),(0,F.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}(),Mi,mi,Hi,Hn,ea,Ta,so,ro,Fa;function $a(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=ts(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(d){throw d},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 a=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var d=t.next();return a=d.done,d},e:function(d){s=!0,l=d},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function ts(e,r){if(e){if(typeof e=="string")return Ho(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 Ho(e,r)}}function Ho(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)):(d=this.layers.indexOf(s),d>-1&&this.layers.splice(d,1)),s.destroy(),this.reRender(),this.emit("layerChange",this.layers);case 4:case"end":return b.stop()}},a,this)}));function i(a,s){return n.apply(this,arguments)}return i}()},{key:"removeAllLayers",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){return _e().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:this.destroy(),this.reRender();case 2:case"end":return l.stop()}},a,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,Ft.Z)(_e().mark(function a(){var s,l,f,d,_,b,T,M,P;return _e().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(!(this.alreadyInRendering||!this.enableRender)){G.next=2;break}return G.abrupt("return");case 2:this.updateLayerRenderList(),s=this.debugService.generateRenderUid(),this.debugService.renderStart(s),this.alreadyInRendering=!0,this.clear(),l=$a(this.layerList);try{for(l.s();!(f=l.n()).done;)d=f.value,d.prerender()}catch(q){l.e(q)}finally{l.f()}this.renderService.beginFrame(),_=$a(this.layerList),G.prev=11,_.s();case 13:if((b=_.n()).done){G.next=25;break}if(T=b.value,M=T.getLayerConfig(),P=M.enableMask,T.masks.filter(function(q){return q.inited}).length>0&&P&&this.renderMask(T.masks),!T.getLayerConfig().enableMultiPassRenderer){G.next=22;break}return G.next=20,T.renderMultiPass();case 20:G.next=23;break;case 22:T.render();case 23:G.next=13;break;case 25:G.next=30;break;case 27:G.prev=27,G.t0=G.catch(11),_.e(G.t0);case 30:return G.prev=30,_.f(),G.finish(30);case 33:this.renderService.endFrame(),this.debugService.renderEnd(s),this.alreadyInRendering=!1;case 36:case"end":return G.stop()}},a,this,[[11,27,30,33]])}));function i(){return n.apply(this,arguments)}return i}()},{key:"renderMask",value:function(i){var a=0;this.renderService.clear({stencil:0,depth:1,framebuffer:null});var s=i.length>1?Kf.MULTIPLE:Kf.SINGLE,l=$a(i),f;try{for(l.s();!(f=l.n()).done;){var d=f.value;d.render({isStencil:!0,stencilType:s,stencilIndex:a++})}}catch(_){l.e(_)}finally{l.f()}}},{key:"beforeRenderData",value:function(){var n=(0,Ft.Z)(_e().mark(function a(s){var l;return _e().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,s.hooks.beforeRenderData.promise();case 2:l=d.sent,l&&this.renderLayers();case 4:case"end":return d.stop()}},a,this)}));function i(a){return n.apply(this,arguments)}return i}()},{key:"renderTileLayerMask",value:function(i){var a=0,s=i.getLayerConfig(),l=s.enableMask,f=l===void 0?!0:l,d=i.tileMask?1:0,_=i.masks.filter(function(D){return D.inited});d=d+(f?_.length:1);var b=d>1?Kf.MULTIPLE:Kf.SINGLE;if((i.tileMask||_.length&&f)&&this.renderService.clear({stencil:0,depth:1,framebuffer:null}),_.length&&f){var T=$a(_),M;try{for(T.s();!(M=T.n()).done;){var P=M.value;P.render({isStencil:!0,stencilType:b,stencilIndex:a++})}}catch(D){T.e(D)}finally{T.f()}}i.tileMask&&i.tileMask.render({isStencil:!0,stencilType:b,stencilIndex:a++,stencilOperation:rd.OR})}},{key:"renderTileLayer",value:function(){var n=(0,Ft.Z)(_e().mark(function a(s){return _e().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()}},a,this)}));function i(a){return n.apply(this,arguments)}return i}()},{key:"updateLayerRenderList",value:function(){var i=this;this.layerList=[],this.layers.filter(function(a){return a.inited}).filter(function(a){return a.isVisible()}).sort(function(a,s){return a.zIndex-s.zIndex}).forEach(function(a){i.layerList.push(a)})}},{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=vi(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}(Ka.EventEmitter),so=Pi(Ta.prototype,"renderService",[mi],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ro=Pi(Ta.prototype,"mapService",[Hi],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fa=Pi(Ta.prototype,"debugService",[Hn],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ta))||ea),wa=U(56929),Ni=ui.isNil,Ca=function(){function e(r){var t=this;(0,Q.Z)(this,e),(0,F.Z)(this,"name",void 0),(0,F.Z)(this,"type",void 0),(0,F.Z)(this,"scale",void 0),(0,F.Z)(this,"descriptor",void 0),(0,F.Z)(this,"featureBufferLayout",[]),(0,F.Z)(this,"needRescale",!1),(0,F.Z)(this,"needRemapping",!1),(0,F.Z)(this,"needRegenerateVertices",!1),(0,F.Z)(this,"featureRange",{startIndex:0,endIndex:1/0}),(0,F.Z)(this,"vertexAttribute",void 0),(0,F.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(a,s){var l,f=(l=t.scale)===null||l===void 0?void 0:l.scalers[s].func,d=f(a);return d})}),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,a=(i=this.scale)===null||i===void 0?void 0:i.callback.apply(i,(0,Qt.Z)(t));if(!Ni(a))return[a]}return this.defaultCallback(t)}},{key:"resetDescriptor",value:function(){this.descriptor&&(this.descriptor.buffer.data=[])}}]),e}(),da=["buffer","update","name"],Ki=["buffer","update","name"],ps,ws,Da,wo,ds,ta,Uc=(ps={},(0,F.Z)(ps,I.FLOAT,4),(0,F.Z)(ps,I.UNSIGNED_BYTE,1),(0,F.Z)(ps,I.UNSIGNED_SHORT,2),ps),qu=(ws=(0,er.b2)(),Da=(0,er.f3)(Ke.IRendererService),ws(wo=(ds=function(){function e(){(0,Q.Z)(this,e),(0,F.Z)(this,"attributesAndIndices",void 0),Di(this,"rendererService",ta,this),(0,F.Z)(this,"attributes",[]),(0,F.Z)(this,"triangulation",void 0),(0,F.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 Ca(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,a=n.name,s=(i=n.scale)===null||i===void 0?void 0:i.field;(t[a]||s&&t[s])&&(n.needRescale=!0,n.needRemapping=!0,n.needRegenerateVertices=!0)})}},{key:"updateStyleAttribute",value:function(t,n,i){var a=this.getLayerStyleAttribute(t);a||(a=this.registerStyleAttribute((0,H.Z)((0,H.Z)({},n),{},{name:t})));var s=n.scale;s&&a&&(a.scale=s,a.needRescale=!0,a.needRemapping=!0,a.needRegenerateVertices=!0,i&&i.featureRange&&(a.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),a=i==null||(n=i.scale)===null||n===void 0?void 0:n.scalers;return a&&a[0]?a[0].func:null}},{key:"updateAttributeByFeatureRange",value:function(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,l=this.attributes.find(function(nt){return nt.name===t});if(l&&l.descriptor){var f=l.descriptor,d=f.update,_=f.buffer,b=f.size,T=b===void 0?0:b,M=Uc[_.type||I.FLOAT];if(d){var P=this.featureLayout,D=P.elements,G=P.sizePerElement,q=D.slice(i,a);if(!q.length)return;var se=q[0].offset,Se=se*T*M,Ve=q.map(function(nt,st){for(var at=nt.featureIdx,At=nt.vertices,Wt=nt.normals,Sr=At.length/G,_r=[],Gr=0;Gr0&&a[a.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]0)&&!(i=n.next()).done;)a.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 a}function pf(e,r,t){if(t||arguments.length===2)for(var n=0,i=r.length,a;n=0&&n.length%1===0}e.exports=r.default})(zc,zc.exports);var nu={},th={exports:{}},Uh={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 a=n.pop();return t.call(this,n,a)}},e.exports=r.default})(Uh,Uh.exports);var lc={};Object.defineProperty(lc,"__esModule",{value:!0}),lc.fallback=zh,lc.wrap=mf;var Gd=lc.hasQueueMicrotask=typeof queueMicrotask=="function"&&queueMicrotask,vf=lc.hasSetImmediate=typeof setImmediate=="function"&&setImmediate,sd=lc.hasNextTick=typeof Bl=="object"&&typeof Bl.nextTick=="function";function zh(e){setTimeout(e,0)}function mf(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 Zc;Gd?Zc=queueMicrotask:vf?Zc=setImmediate:sd?Zc=Bl.nextTick:Zc=zh,lc.default=mf(Zc),function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=f;var t=Uh.exports,n=l(t),i=lc,a=l(i),s=nu;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 P=T.pop(),D=b.apply(this,T);return d(D,P)}:(0,n.default)(function(T,M){var P;try{P=b.apply(this,T)}catch(D){return M(D)}if(P&&typeof P.then=="function")return d(P,M);M(null,P)})}function d(b,T){return b.then(function(M){_(T,null,M)},function(M){_(T,M&&M.message?M:new Error(M))})}function _(b,T,M){try{b(T,M)}catch(P){(0,a.default)(function(D){throw D},P)}}e.exports=r.default}(th,th.exports),Object.defineProperty(nu,"__esModule",{value:!0}),nu.isAsyncIterable=nu.isAsyncGenerator=nu.isAsync=void 0;var Xd=th.exports,$d=ud(Xd);function ud(e){return e&&e.__esModule?e:{default:e}}function Ep(e){return e[Symbol.toStringTag]==="AsyncFunction"}function Yd(e){return e[Symbol.toStringTag]==="AsyncGenerator"}function ld(e){return typeof e[Symbol.asyncIterator]=="function"}function cd(e){if(typeof e!="function")throw new Error("expected a function");return Ep(e)?(0,$d.default)(e):e}nu.default=cd,nu.isAsync=Ep,nu.isAsyncGenerator=Yd,nu.isAsyncIterable=ld;var cc={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 a(){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(d,_){l[i-1]=function(b){for(var T=[],M=arguments.length-1;M-- >0;)T[M]=arguments[M+1];if(b)return _(b);d(T.length>1?T:T[0])},n.apply(s,l)})}return a}e.exports=r.default})(cc,cc.exports),function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t=zc.exports,n=f(t),i=nu,a=f(i),s=cc.exports,l=f(s);function f(d){return d&&d.__esModule?d:{default:d}}r.default=(0,l.default)(function(d,_,b){var T=(0,n.default)(_)?[]:{};d(_,function(M,P,D){(0,a.default)(M)(function(G){for(var q,se=[],Se=arguments.length-1;Se-- >0;)se[Se]=arguments[Se+1];se.length<2&&(q=se,se=q[0]),T[P]=se,D(G)})},function(M){return b(M,T)})},3),e.exports=r.default}(Nl,Nl.exports);var Sp={exports:{}},gf={exports:{}},Ap={exports:{}},Vc={exports:{}};(function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=t;function t(n){function i(){for(var a=[],s=arguments.length;s--;)a[s]=arguments[s];if(n!==null){var l=n;n=null,l.apply(this,a)}}return Object.assign(i,n),i}e.exports=r.default})(Vc,Vc.exports);var Zh={exports:{}},yf={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})(yf,yf.exports),function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=_;var t=zc.exports,n=s(t),i=yf.exports,a=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||_||(T=!0,s.next().then(function(se){var Se=se.value,Ve=se.done;if(!(b||_)){if(T=!1,Ve){_=!0,M<=0&&d(null);return}M++,f(Se,P,G),P++,D()}}).catch(q))}function G(se,Se){if(M-=1,!b){if(se)return q(se);if(se===!1){_=!0,b=!0;return}if(Se===n.default||_&&M<=0)return _=!0,d(null);D()}}function q(se){b||(T=!1,_=!0,d(se))}D()}e.exports=r.default}(rh,rh.exports),function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t=Vc.exports,n=M(t),i=Zh.exports,a=M(i),s=_f.exports,l=M(s),f=nu,d=rh.exports,_=M(d),b=Vh.exports,T=M(b);function M(P){return P&&P.__esModule?P:{default:P}}r.default=function(P){return function(D,G,q){if(q=(0,n.default)(q),P<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!D)return q(null);if((0,f.isAsyncGenerator)(D))return(0,_.default)(D,P,G,q);if((0,f.isAsyncIterable)(D))return(0,_.default)(D[Symbol.asyncIterator](),P,G,q);var se=(0,a.default)(D),Se=!1,Ve=!1,nt=0,st=!1;function at(Wt,Sr){if(!Ve)if(nt-=1,Wt)Se=!0,q(Wt);else if(Wt===!1)Se=!0,Ve=!0;else{if(Sr===T.default||Se&&nt<=0)return Se=!0,q(null);st||At()}}function At(){for(st=!0;nt0;)se[Se]=arguments[Se+1];if(q!==!1){if(q||P===T.length)return M.apply(void 0,[q].concat(se));D(se)}}D([])}r.default=(0,d.default)(b),e.exports=r.default})(lo,lo.exports);var zl=df(lo.exports),Vy=function(){function e(){this.tasks=[]}return e.prototype.call=function(){return zl(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 a=t.apply(void 0,pf([],Cu(n),!1));i(a?null:!1,r)})},e}(),xf=function(){function e(){this.tasks=[]}return e.prototype.call=function(){return fd(this.tasks)},e.prototype.tap=function(r,t){this.tasks.push(function(n){var i=t();n(i,r)})},e}(),Yv=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(hm,function(n,i,a){var s=a.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(d,_){return d.push(Number(_.trim())),d},[]):f=new Array(md(i)).fill(0);break;default:}return t[l]=f,"".concat(r?"uniform ":"").concat(i," ").concat(l,`; +`)}),{content:e,uniforms:t}}function pm(e){var r=gd(e,!0),t=r.content,n=r.uniforms;return t=t.replace(/(\s*uniform\s*.*\s*){((?:\s*.*\s*)*?)};/g,function(i,a,s){s=s.trim().replace(/^.*$/gm,function(_){return"uniform ".concat(_)});var l=gd(s),f=l.content,d=l.uniforms;return Object.assign(n,d),"".concat(a,`{ +`).concat(f,` +};`)}),{content:t,uniforms:n}}function dm(e){var r={};return e.replace(hm,function(t,n,i){var a=i.trim();return r[a]?"":(r[a]=!0,"uniform ".concat(n," ").concat(a,`; +`))})}var mg,gg,C0=ui.uniq,yg="#define PI 3.14159265359",R0=`#define SHIFT_RIGHT17 1.0 / 131072.0 +#define SHIFT_RIGHT18 1.0 / 262144.0 +#define SHIFT_RIGHT19 1.0 / 524288.0 +#define SHIFT_RIGHT20 1.0 / 1048576.0 +#define SHIFT_RIGHT21 1.0 / 2097152.0 +#define SHIFT_RIGHT22 1.0 / 4194304.0 +#define SHIFT_RIGHT23 1.0 / 8388608.0 +#define SHIFT_RIGHT24 1.0 / 16777216.0 + +#define SHIFT_LEFT17 131072.0 +#define SHIFT_LEFT18 262144.0 +#define SHIFT_LEFT19 524288.0 +#define SHIFT_LEFT20 1048576.0 +#define SHIFT_LEFT21 2097152.0 +#define SHIFT_LEFT22 4194304.0 +#define SHIFT_LEFT23 8388608.0 +#define SHIFT_LEFT24 16777216.0 + +vec2 unpack_float(float packedValue) { + int packedIntValue = int(packedValue); + int v0 = packedIntValue / 256; + return vec2(v0, packedIntValue - v0 * 256); +} + +vec4 decode_color(vec2 encodedColor) { + return vec4( + unpack_float(encodedColor[0]) / 255.0, + unpack_float(encodedColor[1]) / 255.0 + ); +} +`,_g=`layout(std140) uniform SceneUniforms { + mat4 u_ViewMatrix; + mat4 u_ProjectionMatrix; + mat4 u_ViewProjectionMatrix; + mat4 u_ModelMatrix; + vec4 u_ViewportCenterProjection; + vec3 u_PixelsPerDegree; + float u_Zoom; + vec3 u_PixelsPerDegree2; + float u_ZoomScale; + vec3 u_PixelsPerMeter; + float u_CoordinateSystem; + vec3 u_CameraPosition; + float u_DevicePixelRatio; + vec2 u_ViewportCenter; + vec2 u_ViewportSize; + float u_FocalDistance; +}; + +layout(std140) uniform LayerUniforms { + mat4 u_Mvp; + vec2 u_sceneCenterMercator; +}; +`,xg=`layout(std140) uniform PickingUniforms { + vec4 u_HighlightColor; + vec4 u_SelectColor; + vec3 u_PickingColor; + float u_PickingStage; + vec3 u_CurrentSelectedId; + float u_PickingThreshold; + float u_PickingBuffer; + float u_shaderPick; + float u_EnableSelect; + float u_activeMix; +};`,M0=`#define ambientRatio 0.5 +#define diffuseRatio 0.3 +#define specularRatio 0.2 + + +float calc_lighting(vec4 pos) { + + vec3 worldPos = vec3(pos * u_ModelMatrix); + + vec3 worldNormal = a_Normal; + // //cal light weight + vec3 viewDir = normalize(u_CameraPosition - worldPos); + + vec3 lightDir = normalize(vec3(1, -10.5, 12)); + + vec3 halfDir = normalize(viewDir+lightDir); + // //lambert + float lambert = dot(worldNormal, lightDir); + //specular + float specular = pow(max(0.0, dot(worldNormal, halfDir)), 32.0); + //sum to light weight + float lightWeight = ambientRatio + diffuseRatio * lambert + specularRatio * specular; + + return lightWeight; +} +`,Hc=`// Blinn-Phong model +// apply lighting in vertex shader instead of fragment shader +// @see https://learnopengl.com/Advanced-Lighting/Advanced-Lighting +uniform float u_Ambient : 1.0; +uniform float u_Diffuse : 1.0; +uniform float u_Specular : 1.0; +uniform int u_NumOfDirectionalLights : 1; +uniform int u_NumOfSpotLights : 0; + +#define SHININESS 32.0 +#define MAX_NUM_OF_DIRECTIONAL_LIGHTS 3 +#define MAX_NUM_OF_SPOT_LIGHTS 3 + +struct DirectionalLight { + vec3 direction; + vec3 ambient; + vec3 diffuse; + vec3 specular; +}; + +struct SpotLight { + vec3 position; + vec3 direction; + vec3 ambient; + vec3 diffuse; + vec3 specular; + float constant; + float linear; + float quadratic; + float angle; + float blur; + float exponent; +}; + +uniform DirectionalLight u_DirectionalLights[MAX_NUM_OF_DIRECTIONAL_LIGHTS]; +uniform SpotLight u_SpotLights[MAX_NUM_OF_SPOT_LIGHTS]; + +vec3 calc_directional_light(DirectionalLight light, vec3 normal, vec3 viewDir) { + vec3 lightDir = normalize(light.direction); + // diffuse shading + float diff = max(dot(normal, lightDir), 0.0); + // Blinn-Phong specular shading + vec3 halfwayDir = normalize(lightDir + viewDir); + float spec = pow(max(dot(normal, halfwayDir), 0.0), SHININESS); + + vec3 ambient = light.ambient * u_Ambient; + vec3 diffuse = light.diffuse * diff * u_Diffuse; + vec3 specular = light.specular * spec * u_Specular; + + return ambient + diffuse + specular; +} + + +vec3 calc_lighting(vec3 position, vec3 normal, vec3 viewDir) { + vec3 weight = vec3(0.0); + for (int i = 0; i < MAX_NUM_OF_DIRECTIONAL_LIGHTS; i++) { + if (i >= u_NumOfDirectionalLights) { + break; + } + weight += calc_directional_light(u_DirectionalLights[i], normal, viewDir); + } + return weight; +} +`,ov=` +in vec4 v_PickingResult; + +#pragma include "picking_uniforms" + +#define PICKING_NONE 0.0 +#define PICKING_ENCODE 1.0 +#define PICKING_HIGHLIGHT 2.0 +#define COLOR_SCALE 1. / 255. + +#define HIGHLIGHT 1.0 +#define SELECT 2.0 + +/* + * Returns highlight color if this item is selected. + */ +vec4 filterHighlightColor(vec4 color, float weight) { + // float selected = v_PickingResult.a; + bool selected = bool(v_PickingResult.a); + + // if (selected == SELECT) { + if (selected) { + // // \u70B9\u51FB\u9009\u4E2D\u72B6\u6001 + // vec4 selectColor = u_SelectColor * COLOR_SCALE; + // return selectColor; + // } else if (selected == HIGHLIGHT) { + // // hover \u9AD8\u4EAE\u72B6\u6001 + vec4 highLightColor = u_HighlightColor * COLOR_SCALE; + + float highLightAlpha = highLightColor.a; + float highLightRatio = highLightAlpha / (highLightAlpha + color.a * (1.0 - highLightAlpha)); + + vec3 resultRGB = mix(color.rgb, highLightColor.rgb, highLightRatio); + return vec4(mix(resultRGB * weight, color.rgb, u_activeMix), color.a); + } else { + return color; + } +} + +/* + * Returns picking color if picking enabled else unmodified argument. + */ +vec4 filterPickingColor(vec4 color) { + vec3 pickingColor = v_PickingResult.rgb; + if (u_PickingStage == PICKING_ENCODE && length(pickingColor) < 0.001) { + discard; + } + return u_PickingStage == PICKING_ENCODE ? vec4(pickingColor, step(0.001,color.a)): color; +} + +/* + * Returns picking color if picking is enabled if not + * highlight color if this item is selected, otherwise unmodified argument. + */ +vec4 filterColor(vec4 color) { + // \u8FC7\u6EE4\u591A\u4F59\u7684 shader \u8BA1\u7B97 + // return color; + if(u_shaderPick < 0.5) { + return color; // \u6682\u65F6\u53BB\u9664 \u76F4\u63A5\u53D6\u6D88\u8BA1\u7B97\u5728\u9009\u4E2D\u65F6\u62D6\u62FD\u5730\u56FE\u4F1A\u6709\u95EE\u9898 + } else { + return filterPickingColor(filterHighlightColor(color, 1.0)); + } + +} + +vec4 filterColorAlpha(vec4 color, float alpha) { + // \u8FC7\u6EE4\u591A\u4F59\u7684 shader \u8BA1\u7B97 + // return color; + if(u_shaderPick < 0.5) { + return color; // \u6682\u65F6\u53BB\u9664 \u76F4\u63A5\u53D6\u6D88\u8BA1\u7B97\u5728\u9009\u4E2D\u65F6\u62D6\u62FD\u5730\u56FE\u4F1A\u6709\u95EE\u9898 + } else { + return filterPickingColor(filterHighlightColor(color, alpha)); + } +} + +`,bg=`layout(location = 3) in vec3 a_PickingColor; +out vec4 v_PickingResult; + +#pragma include "picking_uniforms" + +#define PICKING_NONE 0.0 +#define PICKING_ENCODE 1.0 +#define PICKING_HIGHLIGHT 2.0 +#define COLOR_SCALE 1. / 255. + +#define NORMAL 0.0 +#define HIGHLIGHT 1.0 +#define SELECT 2.0 + +bool isVertexPicked(vec3 vertexColor) { + return distance(vertexColor,u_PickingColor.rgb) < 0.01; +} + +// \u5224\u65AD\u5F53\u524D\u70B9\u662F\u5426\u5DF2\u7ECF\u88AB select \u9009\u4E2D +bool isVertexSelected(vec3 vertexColor) { + return distance(vertexColor,u_CurrentSelectedId.rgb) < 0.01; +} + +void setPickingColor(vec3 pickingColor) { + if(u_shaderPick < 0.5) { + return; + } + // compares only in highlight stage + + v_PickingResult.a = float((u_PickingStage == PICKING_HIGHLIGHT) && isVertexPicked(pickingColor)); + + // Stores the picking color so that the fragment shader can render it during picking + v_PickingResult.rgb = pickingColor * COLOR_SCALE; +} + +float setPickingSize(float x) { + return u_PickingStage == PICKING_ENCODE ? x + u_PickingBuffer : x; +} + +float setPickingOrder(float z) { + bool selected = bool(v_PickingResult.a); + return selected ? z + 1. : 0.; +} +`,yd=` +#define E 2.718281828459045 +vec2 ProjectFlat(vec2 lnglat){ + float maxs=85.0511287798; + float lat=max(min(maxs,lnglat.y),-maxs); + float scale= 268435456.; + float d=PI/180.; + float x=lnglat.x*d; + float y=lat*d; + y=log(tan((PI/4.)+(y/2.))); + + float a=.5/PI, + b=.5, + c=-.5/PI; + d=.5; + x=scale*(a*x+b); + y=scale*(c*y+d); + return vec2(x,y); +} + +vec2 unProjectFlat(vec2 px){ + float a=.5/PI; + float b=.5; + float c=-.5/PI; + float d=.5; + float scale = 268435456.; + float x=(px.x/scale-b)/a; + float y=(px.y/scale-d)/c; + y=(atan(pow(E,y))-(PI/4.))*2.; + d=PI/180.; + float lat=y/d; + float lng=x/d; + return vec2(lng,lat); +} + +float pixelDistance(vec2 from, vec2 to) { + vec2 a1 = ProjectFlat(from); + vec2 b1 = ProjectFlat(to); + return distance(a1, b1); +} + +// gaode2.0 +vec2 customProject(vec2 lnglat) { // \u7ECF\u7EAC\u5EA6 => \u5E73\u9762\u5750\u6807 + float t = lnglat.x; + float e = lnglat.y; + float Sm = 180.0 / PI; + float Tm = 6378137.0; + float Rm = PI / 180.0; + float r = 85.0511287798; + e = max(min(r, e), -r); + t *= Rm; + e *= Rm; + e = log(tan(PI / 4.0 + e / 2.0)); + return vec2(t * Tm, e * Tm); +} + +vec2 unProjCustomCoord(vec2 point) { // \u5E73\u9762\u5750\u6807 => \u7ECF\u7EAC\u5EA6 + float Sm = 57.29577951308232; //180 / Math.PI + float Tm = 6378137.0; + float t = point.x; + float e = point.y; + return vec2(t / Tm * Sm, (2.0 * atan(exp(e / Tm)) - PI / 2.0) * Sm); +} + + +float customPixelDistance(vec2 from, vec2 to) { + vec2 a1 = ProjectFlat(from); + vec2 b1 = ProjectFlat(to); + return distance(a1, b1); +}`,vm=`#define TILE_SIZE 512.0 +#define PI 3.1415926536 +#define WORLD_SCALE TILE_SIZE / (PI * 2.0) +#define EARTH_CIRCUMFERENCE 40.03e6 + +#define COORDINATE_SYSTEM_LNGLAT 1.0 // mapbox +#define COORDINATE_SYSTEM_LNGLAT_OFFSET 2.0 // mapbox offset +#define COORDINATE_SYSTEM_VECTOR_TILE 3.0 +#define COORDINATE_SYSTEM_IDENTITY 4.0 +#define COORDINATE_SYSTEM_P20 5.0 // amap +#define COORDINATE_SYSTEM_P20_OFFSET 6.0 // amap offset +#define COORDINATE_SYSTEM_METER_OFFSET 7.0 + +#define COORDINATE_SYSTEM_P20_2 8.0 // amap2.0 +#pragma include "scene_uniforms" + + +// web mercator coords -> world coords +vec2 project_mercator(vec2 lnglat) { + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.0 + return lnglat; + } + float x = lnglat.x; + return vec2( + radians(x) + PI, + PI - log(tan(PI * 0.25 + radians(lnglat.y) * 0.5)) + ); +} + +float project_scale(float meters) { + return meters * u_PixelsPerMeter.z; +} + + +// offset coords -> world coords +vec4 project_offset(vec4 offset) { + float dy = offset.y; + dy = clamp(dy, -1., 1.); + vec3 pixels_per_unit = u_PixelsPerDegree + u_PixelsPerDegree2 * dy; + return vec4(offset.xyz * pixels_per_unit, offset.w); +} + +vec3 project_normal(vec3 normal) { + vec4 normal_modelspace = u_ModelMatrix * vec4(normal, 0.0); + return normalize(normal_modelspace.xyz * u_PixelsPerMeter); +} + +vec3 project_offset_normal(vec3 vector) { + if (u_CoordinateSystem < COORDINATE_SYSTEM_LNGLAT + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_LNGLAT - 0.01 + || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + // normals generated by the polygon tesselator are in lnglat offsets instead of meters + return normalize(vector * u_PixelsPerDegree); + } + return project_normal(vector); +} +// || u_CoordinateSystem < COORDINATE_SYSTEM_P20_OFFSET + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_P20_OFFSET - 0.01 +// reverse Y +vec3 reverse_offset_normal(vec3 vector) { + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 ||u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET ) { + return vector * vec3(1.0, -1.0, 1.0); + } + + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.0 + return vector; + } + return vector; +} + +vec4 project_mvt_offset_position(vec4 position) { + float a = COORDINATE_SYSTEM_LNGLAT_OFFSET; + float b = COORDINATE_SYSTEM_P20_OFFSET; + float c = COORDINATE_SYSTEM_LNGLAT; + if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + return project_offset(vec4(0.0, 0.0, position.z, position.w)); + } + if (u_CoordinateSystem < COORDINATE_SYSTEM_LNGLAT + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_LNGLAT - 0.01) { + return vec4( + project_mercator(position.xy) * WORLD_SCALE * u_ZoomScale, + project_scale(position.z), + position.w + ); + } + return position; +} + +vec4 project_position(vec4 position) { + float a = COORDINATE_SYSTEM_LNGLAT_OFFSET; + float b = COORDINATE_SYSTEM_P20_OFFSET; + float c = COORDINATE_SYSTEM_LNGLAT; + if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET + || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + float X = position.x - u_ViewportCenter.x; + float Y = position.y - u_ViewportCenter.y; + return project_offset(vec4(X, Y, position.z, position.w)); + } + if (u_CoordinateSystem < COORDINATE_SYSTEM_LNGLAT + 0.01 && u_CoordinateSystem >COORDINATE_SYSTEM_LNGLAT - 0.01) { + return vec4( + project_mercator(position.xy) * WORLD_SCALE * u_ZoomScale, + project_scale(position.z), + position.w + ); + } + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20) { + return vec4( + (project_mercator(position.xy) * WORLD_SCALE * u_ZoomScale - vec2(215440491., 106744817.)) * vec2(1., -1.), + project_scale(position.z), + position.w + ); + } + + // if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + + + // return vec4( + // position.xy, + // project_scale(position.z), + // position.w); + // } + return position; + + // TODO: \u74E6\u7247\u5750\u6807\u7CFB & \u5E38\u89C4\u4E16\u754C\u5750\u6807\u7CFB +} +vec2 project_pixel_size_to_clipspace(vec2 pixels) { + vec2 offset = pixels / u_ViewportSize * u_DevicePixelRatio * 2.0; + return offset * u_FocalDistance; +} + + + +float project_pixel_allmap(float pixel) { + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT) { + return pixel * pow(2.0, u_Zoom); + } + return pixel * u_FocalDistance ; +} + +// \u9002\u914D\u7EB9\u7406\u8D34\u56FE\u7684\u7B49\u50CF\u7D20\u5927\u5C0F +float project_pixel_texture(float pixel) { + // mapbox zoom > 12 + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + return pixel * pow(0.5, u_Zoom) * u_FocalDistance ; + } + + // amap2 zoom > 12 + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom))* u_FocalDistance ; + } + + // amap zoom > 12 + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + return pixel * pow(0.5, u_Zoom)* u_FocalDistance ; + } + + // amap zoom < 12 + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20) { + return pixel * pow(2.0, (20.0 - u_Zoom))* u_FocalDistance ; + } + return pixel * 2.0 * u_FocalDistance;; +} + +// \u5728\u4E0D\u8BBA\u4EC0\u4E48\u5E95\u56FE\u4E0B\u9700\u8981\u7EDF\u4E00\u5904\u7406\u7684\u65F6\u5019\u4F7F\u7528 +float project_float_pixel(float pixel) { + if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + // mapbox P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 + return pixel * pow(2.0, (19.0 - u_Zoom)) * u_FocalDistance ; + } + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + // amap P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 + return pixel * pow(2.0, (19.0 - u_Zoom)); + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + // amap2 P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 + return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom))* u_FocalDistance ; + } + return pixel * u_FocalDistance; +} + +// Project meter into the unit of pixel which used in the camera world space +float project_float_meter(float meter) { + if (u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + // Since the zoom level uniform is updated by mapservice and it's alread been subtracted by 1 + // Not sure if we are supposed to do that again + return meter; + } else { + return project_float_pixel(meter); + } + + // TODO: change the following code to make adaptations for amap + return u_FocalDistance * TILE_SIZE * pow(2.0, u_Zoom) * meter / EARTH_CIRCUMFERENCE; +} + +float project_pixel(float pixel) { + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + // amap P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 + return pixel * pow(2.0, (19.0 - u_Zoom)) * u_FocalDistance ; + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + // amap2 P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 + return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom)) * u_FocalDistance ; + } + return pixel * u_FocalDistance; +} +vec2 project_pixel(vec2 pixel) { + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + // P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 + return pixel * pow(2.0, (19.0 - u_Zoom)) * u_FocalDistance ; + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + // P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 + return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom)) * u_FocalDistance ; + } + return pixel * -1. * u_FocalDistance; +} +vec3 project_pixel(vec3 pixel) { + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + // P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 + return pixel * pow(2.0, (19.0 - u_Zoom)) * u_FocalDistance ; + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + // P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 + return pixel * pow(2.0, (19.0 - 3.0 - u_Zoom)) * u_FocalDistance ; + } + return pixel * -1. * u_FocalDistance; +} + +vec4 project_common_position_to_clipspace(vec4 position, mat4 viewProjectionMatrix, vec4 center) { + if (u_CoordinateSystem == COORDINATE_SYSTEM_METER_OFFSET || + u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + // Needs to be divided with project_uCommonUnitsPerMeter + position.w *= u_PixelsPerMeter.z; + } + + return viewProjectionMatrix * position + center; +} + +// Projects from common space coordinates to clip space +vec4 project_common_position_to_clipspace(vec4 position) { + return project_common_position_to_clipspace( + position, + u_ViewProjectionMatrix, + u_ViewportCenterProjection + ); +} + +vec4 unproject_clipspace_to_position(vec4 clipspacePos, mat4 u_InverseViewProjectionMatrix) { + vec4 pos = u_InverseViewProjectionMatrix * (clipspacePos - u_ViewportCenterProjection); + + if (u_CoordinateSystem == COORDINATE_SYSTEM_METER_OFFSET || + u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + // Needs to be divided with project_uCommonUnitsPerMeter + pos.w = pos.w / u_PixelsPerMeter.z; + } + return pos; +} + + +bool isEqual( float a, float b) { + return a< b + 0.001 && a > b - 0.001; +} + +// \u652F\u6301 GaodeV2\u3001Mapbox +vec4 project_common_position_to_clipspace_v2(vec4 position) { + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + return u_Mvp * position; + } else { + return project_common_position_to_clipspace(position); + } +} +`,n2=`vec2 rotate_matrix(vec2 v, float a) { + float b = a / 180.0 * 3.1415926535897932384626433832795; + float s = sin(b); + float c = cos(b); + mat2 m = mat2(c, s, -s, c); + return m * v; +}`,i2=`/** + * 2D signed distance field functions + * @see http://www.iquilezles.org/www/articles/distfunctions2d/distfunctions2d.htm + */ + +float ndot(vec2 a, vec2 b ) { return a.x*b.x - a.y*b.y; } + +float sdCircle(vec2 p, float r) { + return length(p) - r; +} + +float sdEquilateralTriangle(vec2 p) { + float k = sqrt(3.0); + p.x = abs(p.x) - 1.0; + p.y = p.y + 1.0/k; + if( p.x + k*p.y > 0.0 ) p = vec2(p.x-k*p.y,-k*p.x-p.y)/2.0; + p.x -= clamp( p.x, -2.0, 0.0 ); + return -length(p)*sign(p.y); +} + +float sdBox(vec2 p, vec2 b) { + vec2 d = abs(p)-b; + return length(max(d,vec2(0))) + min(max(d.x,d.y),0.0); +} + +float sdPentagon(vec2 p, float r) { + vec3 k = vec3(0.809016994,0.587785252,0.726542528); + p.x = abs(p.x); + p -= 2.0*min(dot(vec2(-k.x,k.y),p),0.0)*vec2(-k.x,k.y); + p -= 2.0*min(dot(vec2( k.x,k.y),p),0.0)*vec2( k.x,k.y); + p -= vec2(clamp(p.x,-r*k.z,r*k.z),r); + return length(p)*sign(p.y); +} + +float sdHexagon(vec2 p, float r) { + vec3 k = vec3(-0.866025404,0.5,0.577350269); + p = abs(p); + p -= 2.0*min(dot(k.xy,p),0.0)*k.xy; + p -= vec2(clamp(p.x, -k.z*r, k.z*r), r); + return length(p)*sign(p.y); +} + +float sdOctogon(vec2 p, float r) { + vec3 k = vec3(-0.9238795325, 0.3826834323, 0.4142135623 ); + p = abs(p); + p -= 2.0*min(dot(vec2( k.x,k.y),p),0.0)*vec2( k.x,k.y); + p -= 2.0*min(dot(vec2(-k.x,k.y),p),0.0)*vec2(-k.x,k.y); + p -= vec2(clamp(p.x, -k.z*r, k.z*r), r); + return length(p)*sign(p.y); +} + +float sdHexagram(vec2 p, float r) { + vec4 k=vec4(-0.5,0.8660254038,0.5773502692,1.7320508076); + p = abs(p); + p -= 2.0*min(dot(k.xy,p),0.0)*k.xy; + p -= 2.0*min(dot(k.yx,p),0.0)*k.yx; + p -= vec2(clamp(p.x,r*k.z,r*k.w),r); + return length(p)*sign(p.y); +} + +float sdRhombus(vec2 p, vec2 b) { + vec2 q = abs(p); + float h = clamp((-2.0*ndot(q,b)+ndot(b,b))/dot(b,b),-1.0,1.0); + float d = length( q - 0.5*b*vec2(1.0-h,1.0+h) ); + return d * sign( q.x*b.y + q.y*b.x - b.x*b.y ); +} + +float sdVesica(vec2 p, float r, float d) { + p = abs(p); + float b = sqrt(r*r-d*d); // can delay this sqrt + return ((p.y-b)*d>p.x*b) + ? length(p-vec2(0.0,b)) + : length(p-vec2(-d,0.0))-r; +} +`,jy=/precision\s+(high|low|medium)p\s+float/,Hy=`#ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; + #else + precision mediump float; +#endif +`,a2=/#pragma include (["^+"]?["[a-zA-Z_0-9](.*)"]*?)/g,o2=/void\s+main\s*\([^)]*\)\s*\{\n?/,OB=/}\n?[^{}]*$/,s2=(mg=(0,er.b2)(),mg(gg=function(){function e(){(0,Q.Z)(this,e),(0,F.Z)(this,"moduleCache",{}),(0,F.Z)(this,"rawContentCache",{})}return(0,j.Z)(e,[{key:"registerBuiltinModules",value:function(){this.destroy(),this.registerModule("common",{vs:yg,fs:yg}),this.registerModule("decode",{vs:R0,fs:""}),this.registerModule("scene_uniforms",{vs:_g,fs:_g}),this.registerModule("picking_uniforms",{vs:xg,fs:xg}),this.registerModule("projection",{vs:vm,fs:vm}),this.registerModule("project",{vs:yd,fs:""}),this.registerModule("sdf_2d",{vs:"",fs:i2}),this.registerModule("lighting",{vs:Hc,fs:""}),this.registerModule("light",{vs:M0,fs:""}),this.registerModule("picking",{vs:bg,fs:ov}),this.registerModule("rotation_2d",{vs:n2,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,a=n.fs,s=n.uniforms,l=n.inject,f=pm(i),d=f.content,_=f.uniforms,b=pm(a),T=b.content,M=b.uniforms;this.rawContentCache[t]={fs:T,inject:l,uniforms:(0,H.Z)((0,H.Z)((0,H.Z)({},_),M),s),vs:d}}},{key:"destroy",value:function(){this.moduleCache={},this.rawContentCache={}}},{key:"getModule",value:function(t){var n=this,i=this.rawContentCache[t].vs,a=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=pm(s==null?void 0:s["vs:#decl"]).uniforms),s!=null&&s["vs:#main-start"]&&(i=i.replace(o2,function(q){return q+(s==null?void 0:s["vs:#main-start"])})),s!=null&&s["fs:#decl"]&&(a=(s==null?void 0:s["fs:#decl"])+a);var f=this.processModule(i,[],"vs"),d=f.content,_=f.includeList,b=this.processModule(a,[],"fs"),T=b.content,M=b.includeList,P="",D=C0(_.concat(M).concat(t)).reduce(function(q,se){return(0,H.Z)((0,H.Z)({},q),n.rawContentCache[se].uniforms)},(0,H.Z)({},l));jy.test(T)||(P=P+Hy),P=P+T;var G="";return jy.test(d)||(G=G+Hy),G=G+d,this.moduleCache[t]={fs:P.trim(),uniforms:D,vs:G.trim()},this.moduleCache[t]}},{key:"processModule",value:function(t,n,i){var a=this,s=t.replace(a2,function(l,f){var d=f.split(" "),_=d[0].replace(/"/g,"");if(n.indexOf(_)>-1)return"";var b=a.rawContentCache[_][i];n.push(_);var T=a.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,a){return i+"#define ".concat(a.toUpperCase()," ").concat(t[a],`; +`)},` +`);return n}}]),e}())||gg);function u2(e,r){for(;!Object.prototype.hasOwnProperty.call(e,r)&&(e=(0,Ae.Z)(e),e!==null););return e}function Ia(){return typeof Reflect!="undefined"&&Reflect.get?Ia=Reflect.get.bind():Ia=function(r,t,n){var i=u2(r,t);if(i){var a=Object.getOwnPropertyDescriptor(i,t);return a.get?a.get.call(arguments.length<3?r:n):a.value}},Ia.apply(this,arguments)}var sv=function(e){return e.Normal="normal",e.PostProcessing="post-processing",e}({}),Wy,Gy,Eg=(Wy=(0,er.b2)(),Wy(Gy=function(){function e(){(0,Q.Z)(this,e),(0,F.Z)(this,"shaderModuleService",void 0),(0,F.Z)(this,"rendererService",void 0),(0,F.Z)(this,"cameraService",void 0),(0,F.Z)(this,"mapService",void 0),(0,F.Z)(this,"interactionService",void 0),(0,F.Z)(this,"layerService",void 0),(0,F.Z)(this,"config",void 0)}return(0,j.Z)(e,[{key:"getName",value:function(){return""}},{key:"getType",value:function(){return sv.Normal}},{key:"init",value:function(t,n){this.config=n,this.rendererService=t.getContainer().get(Ke.IRendererService),this.cameraService=t.getContainer().get(Ke.ICameraService),this.mapService=t.getContainer().get(Ke.IMapService),this.interactionService=t.getContainer().get(Ke.IInteractionService),this.layerService=t.getContainer().get(Ke.ILayerService),this.shaderModuleService=t.getContainer().get(Ke.IShaderModuleService)}},{key:"render",value:function(t){}}]),e}())||Gy),Xy,$y;function l2(e){var r=c2();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function c2(){if(typeof Reflect=="undefined"||!Reflect.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 f2=(Xy=(0,er.b2)(),Xy($y=function(e){(0,Fe.Z)(t,e);var r=l2(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,a){Ia((0,Ae.Z)(t.prototype),"init",this).call(this,i,a)}},{key:"render",value:function(){this.rendererService.clear({color:[0,0,0,0],depth:1,framebuffer:null})}}]),t}(Eg))||$y),Yy,qy,Ky,I0,Qy;function h2(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=p2(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(d){throw d},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 a=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var d=t.next();return a=d.done,d},e:function(d){s=!0,l=d},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function p2(e,r){if(e){if(typeof e=="string")return Jy(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 Jy(e,r)}}function Jy(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);tq||st<0||at>se||at<0)){var At;D(n.pickingFBO,function(){var Wt;if(At=P({x:Math.round(st),y:Math.round(se-(d+1)*ua),width:1,height:1,data:new Uint8Array(1*1*4),framebuffer:n.pickingFBO}),At[0]!==0||At[1]!==0||At[2]!==0){var Sr=ka(At),_r=n.layer.getSource().getFeatureById(Sr),Gr={x:f,y:d,type:b,lngLat:_,featureId:Sr,feature:_r};_r&&(n.layer.setCurrentPickId(Sr),n.triggerHoverOnLayer(Gr))}else{var Cn={x:f,y:d,lngLat:_,type:n.layer.getCurrentPickId()===null?"un"+b:"mouseout",featureId:null,feature:null};n.triggerHoverOnLayer((0,H.Z)((0,H.Z)({},Cn),{},{type:"unpick"})),n.triggerHoverOnLayer(Cn),n.layer.setCurrentPickId(null)}Ve&&n.highlightPickedFeature(At),nt&&b==="click"&&((Wt=At)===null||Wt===void 0?void 0:Wt.toString())!==[0,0,0,0].toString()&&n.selectFeature(At)})}}}),n}return(0,j.Z)(t,[{key:"getType",value:function(){return sv.Normal}},{key:"getName",value:function(){return"pixelPicking"}},{key:"init",value:function(i,a){Ia((0,Ae.Z)(t.prototype),"init",this).call(this,i,a),this.layer=i;var s=this.rendererService,l=s.createTexture2D,f=s.createFramebuffer,d=s.getViewportSize,_=d(),b=_.width,T=_.height;this.pickingFBO=f({color:l({width:b,height:T,wrapS:I.CLAMP_TO_EDGE,wrapT:I.CLAMP_TO_EDGE})}),this.interactionService.on(c.Hover,this.pickFromPickingFBO),this.interactionService.on(c.Select,this.selectFeatureHandle.bind(this)),this.interactionService.on(c.Active,this.highlightFeatureHandle.bind(this))}},{key:"render",value:function(i){var a=this;if(!this.alreadyInRendering){var s=this.rendererService,l=s.getViewportSize,f=s.useFramebuffer,d=s.clear,_=l(),b=_.width,T=_.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(){d({framebuffer:a.pickingFBO,color:[0,0,0,0],stencil:0,depth:1});var M=a.layer.multiPassRenderer.getRenderFlag();a.layer.multiPassRenderer.setRenderFlag(!1),i.hooks.beforePickingEncode.call(),i.render(),i.hooks.afterPickingEncode.call(),a.layer.multiPassRenderer.setRenderFlag(M),a.alreadyInRendering=!1})}}},{key:"triggerHoverOnLayer",value:function(i){this.layer.emit(i.type,i)}},{key:"highlightPickedFeature",value:function(i){var a=(0,_n.Z)(i,3),s=a[0],l=a[1],f=a[2];this.layer.hooks.beforeHighlight.call([s,l,f]),this.layerService.renderLayers()}},{key:"selectFeature",value:function(i){var a=(0,_n.Z)(i,3),s=a[0],l=a[1],f=a[2];this.layer.hooks.beforeSelect.call([s,l,f]),this.layerService.renderLayers()}},{key:"selectFeatureHandle",value:function(i){var a=i.featureId,s=na(a);this.selectFeature(new Uint8Array(s))}},{key:"highlightFeatureHandle",value:function(i){var a=i.featureId,s=na(a);this.highlightPickedFeature(new Uint8Array(s))}}]),t}(Eg))||t_),r_,n_,i_,P0,a_,y2=ui.camelCase,_2=ui.isNil,x2=ui.upperFirst,b2=`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.); +}`,Gh=(r_=(0,er.b2)(),n_=(0,er.f3)(Ke.IShaderModuleService),r_(i_=(P0=function(){function e(){(0,Q.Z)(this,e),Di(this,"shaderModuleService",a_,this),(0,F.Z)(this,"rendererService",void 0),(0,F.Z)(this,"config",void 0),(0,F.Z)(this,"quad",b2),(0,F.Z)(this,"enabled",!0),(0,F.Z)(this,"renderToScreen",!1),(0,F.Z)(this,"model",void 0),(0,F.Z)(this,"name",void 0),(0,F.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 sv.PostProcessing}},{key:"init",value:function(t,n){this.config=n,this.rendererService=t.getContainer().get(Ke.IRendererService),this.shaderModuleService=t.getContainer().get(Ke.IShaderModuleService);var i=this.rendererService,a=i.createAttribute,s=i.createBuffer,l=i.createModel,f=this.setupShaders(),d=f.vs,_=f.fs,b=f.uniforms;this.model=l({vs:d,fs:_,attributes:{a_Position:a({buffer:s({data:[-4,-4,4,-4,0,4],type:I.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,a=t.multiPassRenderer.getPostProcessor(),s=this.rendererService,l=s.useFramebuffer,f=s.getViewportSize,d=s.clear,_=f(),b=_.width,T=_.height;l(this.renderToScreen?null:a.getWriteFBO(),function(){d({framebuffer:a.getWriteFBO(),color:[0,0,0,0],depth:1,stencil:0});var M=(0,H.Z)({u_BloomFinal:0,u_Texture:a.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){_2(t[i])||(n["u_".concat(x2(y2(i)))]=t[i])}),n}}]),e}(),a_=Pi(P0.prototype,"shaderModuleService",[n_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),P0))||i_),o_,s_;function E2(e){var r=S2();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function S2(){if(typeof Reflect=="undefined"||!Reflect.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 A2=`varying vec2 v_UV; + +uniform float u_BloomFinal: 0.0; +uniform sampler2D u_Texture; +uniform sampler2D u_Texture2; + +uniform vec2 u_ViewportSize: [1.0, 1.0]; +uniform float u_radius: 5.0; +uniform float u_intensity: 0.3; +uniform float u_baseRadio: 0.5; + +// https://github.com/Jam3/glsl-fast-gaussian-blur/blob/master/9.glsl +vec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { + vec4 color = vec4(0.0); + vec2 off1 = vec2(1.3846153846) * direction; + vec2 off2 = vec2(3.2307692308) * direction; + color += texture2D(image, uv) * 0.2270270270; + color += texture2D(image, uv + (off1 / resolution)) * 0.3162162162; + color += texture2D(image, uv - (off1 / resolution)) * 0.3162162162; + color += texture2D(image, uv + (off2 / resolution)) * 0.0702702703; + color += texture2D(image, uv - (off2 / resolution)) * 0.0702702703; + return color; +} + +float luminance(vec4 color) { + return 0.2125 * color.r + 0.7154 * color.g + 0.0721 * color.b; +} + +void main() { + // vec4 baseColor = texture2D(u_Texture, v_UV); + + float r = sqrt(u_radius); + + vec4 c1 = blur9(u_Texture, v_UV, u_ViewportSize, vec2(u_radius, 0.0)); + // c1 *= luminance(c1); + vec4 c2 = blur9(u_Texture, v_UV, u_ViewportSize, vec2(0.0, u_radius)); + // c2 *= luminance(c2); + vec4 c3 = blur9(u_Texture, v_UV, u_ViewportSize, vec2(r, r)); + // c3 *= luminance(c3); + vec4 c4 = blur9(u_Texture, v_UV, u_ViewportSize, vec2(r, -r)); + // c4 *= luminance(c4); + vec4 inbloomColor = (c1 + c2 + c3 + c4) * 0.25; + + // float lum = luminance(inbloomColor); + // inbloomColor.rgb *= lum; + + if(u_BloomFinal > 0.0) { + vec4 baseColor = texture2D(u_Texture2, v_UV); + float baselum = luminance(baseColor); + gl_FragColor = mix(inbloomColor, baseColor, u_baseRadio); + if(baselum <= 0.2) { + gl_FragColor = inbloomColor * u_intensity; + } + } else { + gl_FragColor = inbloomColor; + } +}`,T2=`attribute vec2 a_Position; + +varying vec2 v_UV; + +void main() { + v_UV = 0.5 * (a_Position + 1.0); + gl_Position = vec4(a_Position, 0., 1.); +}`,O0=ui.isNil,w2=(o_=(0,er.b2)(),o_(s_=function(e){(0,Fe.Z)(t,e);var r=E2(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:T2,fs:A2});var i=this.shaderModuleService.getModule("blur-pass"),a=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService.getViewportSize(),d=f.width,_=f.height;return{vs:a,fs:s,uniforms:(0,H.Z)((0,H.Z)({},l),{},{u_ViewportSize:[d,_]})}}},{key:"convertOptionsToUniforms",value:function(i){var a={};return O0(i.bloomRadius)||(a.u_radius=i.bloomRadius),O0(i.bloomIntensity)||(a.u_intensity=i.bloomIntensity),O0(i.bloomBaseRadio)||(a.u_baseRadio=i.bloomBaseRadio),a}}]),t}(Gh))||s_),u_,l_;function C2(e){var r=R2();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function R2(){if(typeof Reflect=="undefined"||!Reflect.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 M2=`varying vec2 v_UV; + +uniform sampler2D u_Texture; + +uniform vec2 u_ViewportSize: [1.0, 1.0]; +uniform vec2 u_BlurDir: [1.0, 0.0]; + +// https://github.com/Jam3/glsl-fast-gaussian-blur/blob/master/9.glsl +vec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { + vec4 color = vec4(0.0); + vec2 off1 = vec2(1.3846153846) * direction; + vec2 off2 = vec2(3.2307692308) * direction; + color += texture2D(image, uv) * 0.2270270270; + color += texture2D(image, uv + (off1 / resolution)) * 0.3162162162; + color += texture2D(image, uv - (off1 / resolution)) * 0.3162162162; + color += texture2D(image, uv + (off2 / resolution)) * 0.0702702703; + color += texture2D(image, uv - (off2 / resolution)) * 0.0702702703; + return color; +} + +void main() { + gl_FragColor = blur9(u_Texture, v_UV, u_ViewportSize, u_BlurDir); +}`,I2=`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.); +}`,P2=ui.isNil,O2=(u_=(0,er.b2)(),u_(l_=function(e){(0,Fe.Z)(t,e);var r=C2(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:I2,fs:M2});var i=this.shaderModuleService.getModule("blur-pass"),a=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService.getViewportSize(),d=f.width,_=f.height;return{vs:a,fs:s,uniforms:(0,H.Z)((0,H.Z)({},l),{},{u_ViewportSize:[d,_]})}}},{key:"convertOptionsToUniforms",value:function(i){var a={};return P2(i.blurRadius)||(a.u_BlurDir=[i.blurRadius,0]),a}}]),t}(Gh))||l_),c_,f_;function k2(e){var r=D2();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function D2(){if(typeof Reflect=="undefined"||!Reflect.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 L2=`varying vec2 v_UV; + +uniform sampler2D u_Texture; + +uniform vec2 u_ViewportSize: [1.0, 1.0]; +uniform vec2 u_BlurDir: [1.0, 0.0]; + +// https://github.com/Jam3/glsl-fast-gaussian-blur/blob/master/9.glsl +vec4 blur9(sampler2D image, vec2 uv, vec2 resolution, vec2 direction) { + vec4 color = vec4(0.0); + vec2 off1 = vec2(1.3846153846) * direction; + vec2 off2 = vec2(3.2307692308) * direction; + color += texture2D(image, uv) * 0.2270270270; + color += texture2D(image, uv + (off1 / resolution)) * 0.3162162162; + color += texture2D(image, uv - (off1 / resolution)) * 0.3162162162; + color += texture2D(image, uv + (off2 / resolution)) * 0.0702702703; + color += texture2D(image, uv - (off2 / resolution)) * 0.0702702703; + return color; +} + +void main() { + gl_FragColor = blur9(u_Texture, v_UV, u_ViewportSize, u_BlurDir); +}`,B2=`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.); +}`,F2=ui.isNil,N2=(c_=(0,er.b2)(),c_(f_=function(e){(0,Fe.Z)(t,e);var r=k2(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:B2,fs:L2});var i=this.shaderModuleService.getModule("blur-pass"),a=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService.getViewportSize(),d=f.width,_=f.height;return{vs:a,fs:s,uniforms:(0,H.Z)((0,H.Z)({},l),{},{u_ViewportSize:[d,_]})}}},{key:"convertOptionsToUniforms",value:function(i){var a={};return F2(i.blurRadius)||(a.u_BlurDir=[0,i.blurRadius]),a}}]),t}(Gh))||f_),h_,p_;function U2(e){var r=z2();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function z2(){if(typeof Reflect=="undefined"||!Reflect.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 Z2=`varying vec2 v_UV; + +uniform sampler2D u_Texture; +uniform vec2 u_ViewportSize: [1.0, 1.0]; +uniform vec2 u_Center : [0.5, 0.5]; +uniform float u_Angle : 0; +uniform float u_Size : 8; + +#pragma include "common" + +float scale = PI / u_Size; + +float pattern(float u_Angle, vec2 texSize, vec2 texCoord) { + float s = sin(u_Angle), c = cos(u_Angle); + vec2 tex = texCoord * texSize - u_Center * texSize; + vec2 point = vec2( + c * tex.x - s * tex.y, + s * tex.x + c * tex.y + ) * scale; + return (sin(point.x) * sin(point.y)) * 4.0; +} + +// https://github.com/evanw/glfx.js/blob/master/src/filters/fun/colorhalftone.js +vec4 colorHalftone_filterColor(vec4 color, vec2 texSize, vec2 texCoord) { + vec3 cmy = 1.0 - color.rgb; + float k = min(cmy.x, min(cmy.y, cmy.z)); + cmy = (cmy - k) / (1.0 - k); + cmy = clamp( + cmy * 10.0 - 3.0 + vec3( + pattern(u_Angle + 0.26179, texSize, texCoord), + pattern(u_Angle + 1.30899, texSize, texCoord), + pattern(u_Angle, texSize, texCoord) + ), + 0.0, + 1.0 + ); + k = clamp(k * 10.0 - 5.0 + pattern(u_Angle + 0.78539, texSize, texCoord), 0.0, 1.0); + return vec4(1.0 - cmy - k, color.a); +} + +void main() { + gl_FragColor = vec4(texture2D(u_Texture, v_UV)); + gl_FragColor = colorHalftone_filterColor(gl_FragColor, u_ViewportSize, v_UV); +}`,V2=`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.); +}`,j2=(h_=(0,er.b2)(),h_(p_=function(e){(0,Fe.Z)(t,e);var r=U2(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:V2,fs:Z2});var i=this.shaderModuleService.getModule("colorhalftone-pass"),a=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService.getViewportSize(),d=f.width,_=f.height;return{vs:a,fs:s,uniforms:(0,H.Z)((0,H.Z)({},l),{},{u_ViewportSize:[d,_]})}}}]),t}(Gh))||p_),d_,v_;function H2(e){var r=W2();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function W2(){if(typeof Reflect=="undefined"||!Reflect.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 G2=`varying vec2 v_UV; + +uniform sampler2D u_Texture; + +void main() { + gl_FragColor = vec4(texture2D(u_Texture, v_UV)); +}`,X2=`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.); +}`,$2=(d_=(0,er.b2)(),d_(v_=function(e){(0,Fe.Z)(t,e);var r=H2(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:X2,fs:G2}),this.shaderModuleService.getModule("copy-pass")}}]),t}(Gh))||v_),m_,g_;function Y2(e){var r=q2();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function q2(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var K2=`varying vec2 v_UV; + +uniform sampler2D u_Texture; +uniform vec2 u_ViewportSize: [1.0, 1.0]; +uniform vec2 u_Center : [0.5, 0.5]; +uniform float u_Scale : 10; + +// https://github.com/evanw/glfx.js/blob/master/src/filters/fun/hexagonalpixelate.js +vec4 hexagonalPixelate_sampleColor(sampler2D texture, vec2 texSize, vec2 texCoord) { + vec2 tex = (texCoord * texSize - u_Center * texSize) / u_Scale; + tex.y /= 0.866025404; + tex.x -= tex.y * 0.5; + vec2 a; + if (tex.x + tex.y - floor(tex.x) - floor(tex.y) < 1.0) { + a = vec2(floor(tex.x), floor(tex.y)); + } + else a = vec2(ceil(tex.x), ceil(tex.y)); + vec2 b = vec2(ceil(tex.x), floor(tex.y)); + vec2 c = vec2(floor(tex.x), ceil(tex.y)); + vec3 TEX = vec3(tex.x, tex.y, 1.0 - tex.x - tex.y); + vec3 A = vec3(a.x, a.y, 1.0 - a.x - a.y); + vec3 B = vec3(b.x, b.y, 1.0 - b.x - b.y); + vec3 C = vec3(c.x, c.y, 1.0 - c.x - c.y); + float alen = length(TEX - A); + float blen = length(TEX - B); + float clen = length(TEX - C); + vec2 choice; + if (alen < blen) { + if (alen < clen) choice = a; + else choice = c; + } else { + if (blen < clen) choice = b; + else choice = c; + } + choice.x += choice.y * 0.5; + choice.y *= 0.866025404; + choice *= u_Scale / texSize; + return texture2D(texture, choice + u_Center); +} + +void main() { + gl_FragColor = vec4(texture2D(u_Texture, v_UV)); + gl_FragColor = hexagonalPixelate_sampleColor(u_Texture, u_ViewportSize, v_UV); +}`,Q2=`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.); +}`,J2=(m_=(0,er.b2)(),m_(g_=function(e){(0,Fe.Z)(t,e);var r=Y2(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:Q2,fs:K2});var i=this.shaderModuleService.getModule("hexagonalpixelate-pass"),a=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService.getViewportSize(),d=f.width,_=f.height;return{vs:a,fs:s,uniforms:(0,H.Z)((0,H.Z)({},l),{},{u_ViewportSize:[d,_]})}}}]),t}(Gh))||g_),y_,__;function eA(e){var r=tA();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function tA(){if(typeof Reflect=="undefined"||!Reflect.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 rA=`varying vec2 v_UV; + +uniform sampler2D u_Texture; +uniform vec2 u_ViewportSize: [1.0, 1.0]; +uniform float u_Strength : 0.6; + +vec4 ink_sampleColor(sampler2D texture, vec2 texSize, vec2 texCoord) { + vec2 dx = vec2(1.0 / texSize.x, 0.0); + vec2 dy = vec2(0.0, 1.0 / texSize.y); + vec4 color = texture2D(texture, texCoord); + float bigTotal = 0.0; + float smallTotal = 0.0; + vec3 bigAverage = vec3(0.0); + vec3 smallAverage = vec3(0.0); + for (float x = -2.0; x <= 2.0; x += 1.0) { + for (float y = -2.0; y <= 2.0; y += 1.0) { + vec3 sample = texture2D(texture, texCoord + dx * x + dy * y).rgb; + bigAverage += sample; + bigTotal += 1.0; + if (abs(x) + abs(y) < 2.0) { + smallAverage += sample; + smallTotal += 1.0; + } + } + } + vec3 edge = max(vec3(0.0), bigAverage / bigTotal - smallAverage / smallTotal); + float power = u_Strength * u_Strength * u_Strength * u_Strength * u_Strength; + return vec4(color.rgb - dot(edge, edge) * power * 100000.0, color.a); +} + +void main() { + gl_FragColor = vec4(texture2D(u_Texture, v_UV)); + gl_FragColor = ink_sampleColor(u_Texture, u_ViewportSize, v_UV); +}`,nA=`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.); +}`,iA=(y_=(0,er.b2)(),y_(__=function(e){(0,Fe.Z)(t,e);var r=eA(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:nA,fs:rA});var i=this.shaderModuleService.getModule("ink-pass"),a=i.vs,s=i.fs,l=i.uniforms,f=this.rendererService.getViewportSize(),d=f.width,_=f.height;return{vs:a,fs:s,uniforms:(0,H.Z)((0,H.Z)({},l),{},{u_ViewportSize:[d,_]})}}}]),t}(Gh))||__),x_,b_;function aA(e){var r=oA();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function oA(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var sA=`varying vec2 v_UV; + +uniform sampler2D u_Texture; +uniform float u_Amount : 0.5; + +float rand(vec2 co) { + return fract(sin(dot(co.xy ,vec2(12.9898,78.233))) * 43758.5453); +} + +// https://github.com/evanw/glfx.js/blob/master/src/filters/adjust/noise.js +vec4 noise_filterColor(vec4 color, vec2 texCoord) { + float diff = (rand(texCoord) - 0.5) * u_Amount; + color.r += diff; + color.g += diff; + color.b += diff; + return color; +} + +void main() { + gl_FragColor = vec4(texture2D(u_Texture, v_UV)); + gl_FragColor = noise_filterColor(gl_FragColor, v_UV); +}`,uA=`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.); +}`,lA=(x_=(0,er.b2)(),x_(b_=function(e){(0,Fe.Z)(t,e);var r=aA(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:uA,fs:sA}),this.shaderModuleService.getModule("noise-pass")}}]),t}(Gh))||b_),E_,S_;function cA(e){var r=fA();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function fA(){if(typeof Reflect=="undefined"||!Reflect.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 hA=`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.); +}`,pA=`varying vec2 v_UV; + +uniform sampler2D u_Texture; + +uniform float u_Amount : 0.5; + +// https://github.com/evanw/glfx.js/blob/master/src/filters/adjust/sepia.js +vec4 sepia_filterColor(vec4 color) { + float r = color.r; + float g = color.g; + float b = color.b; + color.r = + min(1.0, (r * (1.0 - (0.607 * u_Amount))) + (g * (0.769 * u_Amount)) + (b * (0.189 * u_Amount))); + color.g = min(1.0, (r * 0.349 * u_Amount) + (g * (1.0 - (0.314 * u_Amount))) + (b * 0.168 * u_Amount)); + color.b = min(1.0, (r * 0.272 * u_Amount) + (g * 0.534 * u_Amount) + (b * (1.0 - (0.869 * u_Amount)))); + return color; +} + +void main() { + gl_FragColor = vec4(texture2D(u_Texture, v_UV)); + gl_FragColor = sepia_filterColor(gl_FragColor); +}`,dA=(E_=(0,er.b2)(),E_(S_=function(e){(0,Fe.Z)(t,e);var r=cA(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("sepia-pass",{vs:hA,fs:pA}),this.shaderModuleService.getModule("sepia-pass")}}]),t}(Gh))||S_),A_,T_,w_,C_,uv,R_,vA=(A_=(0,er.b2)(),T_=(0,er.f3)(Ke.IRendererService),w_=(0,er.zY)(),A_(C_=(uv=function(){function e(){(0,Q.Z)(this,e),Di(this,"rendererService",R_,this),(0,F.Z)(this,"passes",[]),(0,F.Z)(this,"readFBO",void 0),(0,F.Z)(this,"writeFBO",void 0)}return(0,j.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,a=n(),s=a.width,l=a.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,Ft.Z)(_e().mark(function a(){return _e().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:i(t.getCurrentFBOTex());case 1:case"end":return l.stop()}},a)})))})}},{key:"renderBloomPass",value:function(){var r=(0,Ft.Z)(_e().mark(function n(i,a){var s,l;return _e().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,this.getReadFBOTex();case 2:s=d.sent,l=0;case 4:if(!(l<4)){d.next=11;break}return d.next=7,a.render(i,s);case 7:this.swap(),l++,d.next=4;break;case 11:case"end":return d.stop()}},n,this)}));function t(n,i){return r.apply(this,arguments)}return t}()},{key:"render",value:function(){var r=(0,Ft.Z)(_e().mark(function n(i){var a,s;return _e().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:a=0;case 1:if(!(a0;)t=t+n*(i%r),i=Math.floor(i/r),n=n/r;return t}var SA=1,AA=(P_=(0,er.b2)(),O_=(0,er.f3)(Ke.IShaderModuleService),P_(k_=(k0=function(e){(0,Fe.Z)(t,e);var r=_A(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,a=new Array(i),s=0;s=1&&(d(this.copyRenderTarget,function(){a.outputModel.draw({uniforms:{u_Texture:a.outputRenderTarget}})}),d(i.multiPassRenderer.getPostProcessor().getReadFBO(),function(){a.copyModel.draw({uniforms:{u_Texture:a.copyRenderTarget}})}),i.multiPassRenderer.getPostProcessor().render(i));var se=this.prevRenderTarget;this.prevRenderTarget=this.outputRenderTarget,this.outputRenderTarget=se,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,a,s){this.shaderModuleService.registerModule(i,{vs:EA,fs:a});var l=this.shaderModuleService.getModule(i),f=l.vs,d=l.fs,_=l.uniforms,b=this.rendererService,T=b.createAttribute,M=b.createBuffer,P=b.createModel;return P((0,H.Z)({vs:f,fs:d,attributes:{a_Position:T({buffer:M({data:[-4,-4,4,-4,0,4],type:I.FLOAT}),size:2})},uniforms:(0,H.Z)({},_),depth:{enable:!1},count:3},s))}}]),t}(Eg),D_=Pi(k0.prototype,"shaderModuleService",[O_],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k0))||k_),mm=new er.W2;mm.bind(Ke.IGlobalConfigService).to(ug).inSingletonScope(),(0,er.GW)((0,er.b2)(),Ka.EventEmitter),mm.bind(Ke.IEventEmitter).to(Ka.EventEmitter);var F_=(0,Ti.Z)(mm,!1),D0=function(r){var t=F_.lazyInject(r);return function(n,i,a){t.call(this,n,i),a&&(a.initializer=function(){return n[i]})}},kB=function(r){var t=F_.lazyMultiInject(r);return function(n,i,a){t.call(this,n,i),a&&(a.initializer=function(){return n[i]})}},Zl=mm,TA=0;function wA(){var e=new er.W2;return e.parent=mm,e.bind(Ke.SceneID).toConstantValue("".concat(TA++)),e.bind(Ke.IShaderModuleService).to(s2).inSingletonScope(),e.bind(Ke.ILayerService).to(To).inSingletonScope(),e.bind(Ke.IDebugService).to(fg).inSingletonScope(),e.bind(Ke.ISceneService).to(vg).inSingletonScope(),e.bind(Ke.ICameraService).to(Er).inSingletonScope(),e.bind(Ke.ICoordinateSystemService).to(lg).inSingletonScope(),e.bind(Ke.IInteractionService).to(K).inSingletonScope(),e.bind(Ke.IPickingService).to(ei).inSingletonScope(),e.bind(Ke.IControlService).to(No).inSingletonScope(),e.bind(Ke.IMarkerService).to(Yu).inSingletonScope(),e.bind(Ke.IIconService).to(mt).inSingletonScope(),e.bind(Ke.IFontService).to(Gt).inSingletonScope(),e.bind(Ke.IPopupService).to(td).inSingletonScope(),e.bind(Ke.INormalPass).to(f2).whenTargetNamed("clear"),e.bind(Ke.INormalPass).to(g2).whenTargetNamed("pixelPicking"),e.bind(Ke.INormalPass).to(yA).whenTargetNamed("render"),e.bind(Ke.INormalPass).to(AA).whenTargetNamed("taa"),e.bind(Ke.IFactoryNormalPass).toFactory(function(r){return function(t){return r.container.getNamed(Ke.INormalPass,t)}}),e.bind(Ke.IPostProcessingPass).to($2).whenTargetNamed("copy"),e.bind(Ke.IPostProcessingPass).to(w2).whenTargetNamed("bloom"),e.bind(Ke.IPostProcessingPass).to(O2).whenTargetNamed("blurH"),e.bind(Ke.IPostProcessingPass).to(N2).whenTargetNamed("blurV"),e.bind(Ke.IPostProcessingPass).to(lA).whenTargetNamed("noise"),e.bind(Ke.IPostProcessingPass).to(dA).whenTargetNamed("sepia"),e.bind(Ke.IPostProcessingPass).to(j2).whenTargetNamed("colorHalftone"),e.bind(Ke.IPostProcessingPass).to(J2).whenTargetNamed("hexagonalPixelate"),e.bind(Ke.IPostProcessingPass).to(iA).whenTargetNamed("ink"),e.bind(Ke.IFactoryPostProcessingPass).toFactory(function(r){return function(t){var n=r.container.getNamed(Ke.IPostProcessingPass,t);return n.setName(t),n}}),e}function gm(e){var r=new er.W2;return r.parent=e,r.bind(Ke.IStyleAttributeService).to(qu).inSingletonScope(),r.bind(Ke.IMultiPassRenderer).to(d2).inSingletonScope(),r.bind(Ke.IPostProcessor).to(vA).inSingletonScope(),r}var CA=null;function DB(e){return CA.indexOf(e)}var N_=ui.clamp,RA=2,LB=4,MA=64,BB=128,IA=256,PA=512,FB=8192,NB=16384,UB=32768,OA=null,U_=131072,zB=262144,kA=524288,ZB=1048576,DA=2097152,VB=4194304,LA=8388608,BA=16777216,FA=null;function Sg(e,r){return e=N_(Math.floor(e),0,255),r=N_(Math.floor(r),0,255),256*e+r}function jB(e){var r=e.color,t=e.radius,n=e.tileX,i=e.tileY,a=e.shape,s=e.opacity,l=e.stroke,f=e.strokeWidth,d=e.strokeOpacity,_=[],b=[],T=[],M=[Sg(r[0],r[1]),Sg(r[2],r[3])],P=[Sg(l[0],l[1]),Sg(l[2],l[3])];return[[-1,-1],[1,-1],[1,1],[-1,1]].forEach(function(D){var G=_slicedToArray(D,2),q=G[0],se=G[1];_.push([].concat(M,[(q+1)*LA+(se+1)*DA+getShapeIndex(a)*U_+t,(n+512)*kA+(i+512)*MA])),b.push([].concat(P,[f,d])),T.push([s,0,0,0])}),{packedBuffer:_,packedBuffer2:b,packedBuffer3:T}}function HB(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*FA+t*BA+n*U_+t*OA+n*PA+t*IA+n*RA+t}var _d={ProjectionMatrix:"u_ProjectionMatrix",ViewMatrix:"u_ViewMatrix",ViewProjectionMatrix:"u_ViewProjectionMatrix",Zoom:"u_Zoom",ZoomScale:"u_ZoomScale",FocalDistance:"u_FocalDistance",CameraPosition:"u_CameraPosition"},Ds={MapInitStart:"mapInitStart",LayerInitStart:"layerInitStart",LayerInitEnd:"layerInitEnd",SourceInitStart:"sourceInitStart",SourceInitEnd:"sourceInitEnd",ScaleInitStart:"scaleInitStart",ScaleInitEnd:"scaleInitEnd",MappingStart:"mappingStart",MappingEnd:"mappingEnd",BuildModelStart:"buildModelStart",BuildModelEnd:"buildModelEnd"},Ya=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}({}),lv=function(e){return e.CONSTANT="constant",e.VARIABLE="variable",e}({}),In=function(e){return e[e.Attribute=0]="Attribute",e[e.InstancedAttribute=1]="InstancedAttribute",e[e.Uniform=2]="Uniform",e}({}),NA=["mapload","mapchange","mapAfterFrameChange"],Ag=["loaded","fontloaded","maploaded","resize","destroy","dragstart","dragging","dragend","dragcancel"],Mu=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}({}),UA=function(){var e=(0,Ft.Z)(_e().mark(function r(t,n,i,a){return _e().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",new Promise(function(f,d){n({x:t.x,y:t.y,z:t.z},function(_,b){if(_||b.length===0){d(_);return}b&&ai([{data:b,bands:[0]}],i,a,function(T,M){T?d(T):M&&f(M)})})}));case 1:case"end":return l.stop()}},r)}));return function(t,n,i,a){return e.apply(this,arguments)}}(),zA=function(){var e=(0,Ft.Z)(_e().mark(function r(t,n){return _e().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",new Promise(function(s,l){n({x:t.x,y:t.y,z:t.z},function(f,d){if(f||!d){l(f);return}d instanceof ArrayBuffer?vu(d,function(_,b){_&&l(_),s(b)}):d instanceof HTMLImageElement?s(d):l(f)})}));case 1:case"end":return a.stop()}},r)}));return function(t,n){return e.apply(this,arguments)}}();function ZA(e,r){return Array.isArray(e)?typeof e[0]=="string"?e.map(function(t){return v(t,r)}):e.map(function(t){return{url:v(t.url,r),bands:t.bands||[0]}}):v(e,r)}function VA(e){return typeof e=="string"?[{url:e,bands:[0]}]:typeof e[0]=="string"?e.map(function(r){return{url:r,bands:[0]}}):e}function z_(e,r){e.xhrCancel=function(){r.map(function(t){t.abort()})}}var jA=function(){var e=(0,Ft.Z)(_e().mark(function r(t,n,i,a,s){var l,f,d,_,b,T;return _e().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(l=VA(n.url),!(l.length>1)){P.next=15;break}return P.next=4,HA(l,n);case 4:if(f=P.sent,d=f.rasterFiles,_=f.xhrList,b=f.errList,z_(t,_),!(b.length>0)){P.next=12;break}return i(b,null),P.abrupt("return");case 12:ai(d,a,s,i),P.next=17;break;case 15:T=Ei(n,function(D,G){if(D)i(D);else if(G){var q=[{data:G,bands:l[0].bands}];ai(q,a,s,i)}}),z_(t,[T]);case 17:case"end":return P.stop()}},r)}));return function(t,n,i,a,s){return e.apply(this,arguments)}}();function HA(e,r){return L0.apply(this,arguments)}function L0(){return L0=(0,Ft.Z)(_e().mark(function e(r,t){var n,i,a,s,l,f,d,_,b,T,M;return _e().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:n=[],i=[],a=[],s=0;case 4:if(!(s1&&arguments[1]!==void 0?arguments[1]:{};if(XA(e))throw new Error("tile server url is error");var t=(r==null?void 0:r.dataType)||Mu.IMAGE;t===Mu.RGB&&(t=Mu.ARRAYBUFFER);var n=function(s,l){switch(t){case Mu.IMAGE:return Z_(e,s,l,r);case Mu.CUSTOMIMAGE:case Mu.CUSTOMTERRAINRGB:return zA(l,r==null?void 0:r.getCustomData);case Mu.ARRAYBUFFER:return WA(e,s,l,(r==null?void 0:r.format)||V_,r==null?void 0:r.operation);case Mu.CUSTOMARRAYBUFFER:case Mu.CUSTOMRGB:return UA(l,r==null?void 0:r.getCustomData,(r==null?void 0:r.format)||V_,r==null?void 0:r.operation);default:return Z_(e,s,l,r)}},i=(0,H.Z)((0,H.Z)((0,H.Z)({},GA),r),{},{getTileData:n});return{data:e,dataArray:[],tilesetOptions:i,isTile:!0}}var YA=["extent","min","max","width","height","format","operation"];function qA(e,r){var t=r.extent,n=r.min,i=r.max,a=r.width,s=r.height,l=r.format,f=r.operation,d=(0,wa.Z)(r,YA),_;if(l===void 0||Lc(e))_=Array.from(e);else{var b=Array.isArray(e)?e:[e];_=fn(b,l,f)}var T={_id:1,dataArray:[(0,H.Z)((0,H.Z)({_id:1,data:_,width:a,height:s},d),{},{min:n,max:i,coordinates:[[t[0],t[1]],[t[2],t[3]]]})]};return T}var KA={tileSize:256,minZoom:0,maxZoom:1/0,zoomOffset:0},QA=function(){var e=(0,Ft.Z)(_e().mark(function r(t){return _e().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",new Promise(function(a){var s=(0,_n.Z)(t.bounds,4),l=s[0],f=s[1],d=s[2],_=s[3],b={layers:{testTile:{features:[{type:"Feature",properties:{key:t.x+"/"+t.y+"/"+t.z,x:(l+d)/2,y:(f+_)/2},geometry:{type:"LineString",coordinates:[[d,_],[d,f],[l,f],[l,f]]}}]}}};a(b)}));case 1:case"end":return i.stop()}},r)}));return function(t){return e.apply(this,arguments)}}();function JA(e,r){var t=function(a){return QA(a)},n=(0,H.Z)((0,H.Z)((0,H.Z)({},KA),r),{},{getTileData:t});return{data:e,dataArray:[],tilesetOptions:n,isTile:!0}}var eT=["extent","width","height"];function tT(e,r){var t=r.extent,n=r.width,i=r.height,a=(0,wa.Z)(r,eT);e.length<3&&console.warn("RGB\u89E3\u6790\u9700\u8981\u4E09\u4E2A\u6CE2\u6BB5\u7684\u6570\u636E");for(var s=a.bands||[0,1,2],l=(0,_n.Z)(s,3),f=l[0],d=l[1],_=l[2],b=[e[f],e[d],e[_]],T=[],M=(a==null?void 0:a.countCut)||[2,98],P=(0,_n.Z)(M,2),D=P[0],G=P[1],q=(a==null?void 0:a.RMinMax)||Ir(b[0],D,G),se=(a==null?void 0:a.GMinMax)||Ir(b[1],D,G),Se=(a==null?void 0:a.BMinMax)||Ir(b[2],D,G),Ve=0;Ver&&(r=e[t]);return r}function uT(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 lT(e){if(e.length===0)throw new Error("mean requires at least one data point");return H_(e)/e.length}var cT={min:uT,max:sT,mean:lT,sum:H_};function fT(e){var r=hT();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function hT(){if(typeof Reflect=="undefined"||!Reflect.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 pT=ui.cloneDeep,W_=ui.isFunction,dT=ui.isString,vT=ui.mergeWith;function mT(e,r){if(Array.isArray(r))return r}var gT=function(e){(0,Fe.Z)(t,e);var r=fT(t);function t(n,i){var a;return(0,Q.Z)(this,t),a=r.call(this),(0,F.Z)((0,Me.Z)(a),"type","source"),(0,F.Z)((0,Me.Z)(a),"isTile",!1),(0,F.Z)((0,Me.Z)(a),"inited",!1),(0,F.Z)((0,Me.Z)(a),"hooks",{init:new Ul}),(0,F.Z)((0,Me.Z)(a),"parser",{type:"geojson"}),(0,F.Z)((0,Me.Z)(a),"transforms",[]),(0,F.Z)((0,Me.Z)(a),"cluster",!1),(0,F.Z)((0,Me.Z)(a),"clusterOptions",{enable:!1,radius:40,maxZoom:20,zoom:-99,method:"count"}),(0,F.Z)((0,Me.Z)(a),"invalidExtent",!1),(0,F.Z)((0,Me.Z)(a),"dataArrayChanged",!1),(0,F.Z)((0,Me.Z)(a),"cfg",{autoRender:!0}),a.originData=n,a.initCfg(i),a.init().then(function(){a.inited=!0,a.emit("update",{type:"inited"})}),a}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 a=this,s=this.clusterOptions,l=s.method,f=l===void 0?"sum":l,d=s.field,_=this.clusterIndex.getClusters(this.caculClusterExtent(2),Math.floor(i));this.clusterOptions.zoom=i,_.forEach(function(b){b.id||(b.properties.point_count=1)}),(d||W_(f))&&(_=_.map(function(b){var T=b.id;if(T){var M=a.clusterIndex.getLeaves(T,1/0),P=M.map(function(q){return q.properties}),D;if(dT(f)&&d){var G=Xf(P,d);D=cT[f](G)}W_(f)&&(D=f(P)),b.properties.stat=D}else b.properties.point_count=1;return b})),this.data=pe("geojson")({type:"FeatureCollection",features:_}),this.executeTrans()}},{key:"getFeatureById",value:function(i){var a=this.parser,s=a.type,l=s===void 0?"geojson":s,f=a.geometry;if(l==="geojson"&&!this.cluster){var d=i=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(d){throw d},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 a=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var d=t.next();return a=d.done,d},e:function(d){s=!0,l=d},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function _T(e,r){if(e){if(typeof e=="string")return X_(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 X_(e,r)}}function X_(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);tn?i:n)}}catch(Se){a.e(Se)}finally{a.f()}var f=(t+n)/2,d=ET(r,f);if(d.xOffset<=0||d.yOffset<=0)return{gridHash:{},gridOffset:d};var _={},b=G_(e),T;try{for(b.s();!(T=b.n()).done;){var M=T.value,P=M.coordinates[1],D=M.coordinates[0];if(Number.isFinite(P)&&Number.isFinite(D)){var G=Math.floor((P+90)/d.yOffset),q=Math.floor((D+180)/d.xOffset),se="".concat(G,"-").concat(q);_[se]=_[se]||{count:0,points:[]},_[se].count+=1,_[se].points.push(M)}}}catch(Se){b.e(Se)}finally{b.f()}return{gridHash:_,gridOffset:d}}function ET(e,r){var t=ST(e),n=AT(r,e);return{yOffset:t,xOffset:n}}function ST(e){return e/B0*(180/Math.PI)}function AT(e,r){return r/B0*(180/Math.PI)/Math.cos(e*Math.PI/180)}function TT(e,r,t){return Object.keys(e).reduce(function(n,i,a){var s=i.split("-"),l=parseInt(s[0],10),f=parseInt(s[1],10),d={};if(t.field&&t.method){var _=Uf(e[i].points,t.field);d[t.method]=Cc[t.method](_)}return Object.assign(d,{_id:a,coordinates:ja([-180+r.xOffset*(f+.5),-90+r.yOffset*(l+.5)]),rawData:e[i].points,count:e[i].count}),n.push(d),n},[])}var cv=Math.PI/3,wT=[0,cv,2*cv,3*cv,4*cv,5*cv];function CT(e){return e[0]}function RT(e){return e[1]}function MT(){var e=0,r=0,t=1,n=1,i=CT,a=RT,s,l,f;function d(b){var T={},M=[],P,D=b.length;for(P=0;P1){var st=q-Ve,at=Ve+(qWt*Wt+Sr*Sr&&(Ve=at+(Se&1?1:-1)/2,Se=At)}var _r=Ve+"-"+Se,Gr=T[_r];Gr?Gr.push(G):(M.push(Gr=T[_r]=[G]),Gr.x=(Ve+(Se&1)/2)*l,Gr.y=Se*f)}return M}function _(b){var T=0,M=0;return wT.map(function(P){var D=Math.sin(P)*b,G=-Math.cos(P)*b,q=D-T,se=G-M;return T=D,M=G,[q,se]})}return d.hexagon=function(b){return"m"+_(b==null?s:+b).join("l")+"z"},d.centers=function(){for(var b=[],T=Math.round(r/f),M=Math.round(e/l),P=T*f;P180||Math.abs(P[1][0])>180){if(_.x>M){var D=this.mapsService.lngLatToContainer([f-360,d]);_.x=D.x}if(_.x<0){var G=this.mapsService.lngLatToContainer([f+360,d]);_.x=G.x}}(_.x>M||_.x<0||_.y>T||_.y<0)&&(a.style.display="none"),a.style.left=_.x+s[0]+"px",a.style.top=_.y-s[1]+"px"}}}},{key:"init",value:function(){var i=this,a=this.markerOption.element,s=this.markerOption,l=s.color,f=s.anchor;if(!a){this.defaultMarker=!0,a=Yi("div"),this.markerOption.element=a;var d=document.createElementNS("http://www.w3.org/2000/svg","svg");d.setAttributeNS(null,"display","block"),d.setAttributeNS(null,"height","48px"),d.setAttributeNS(null,"width","48px"),d.setAttributeNS(null,"viewBox","0 0 1024 1024");var _=document.createElementNS("http://www.w3.org/2000/svg","path");_.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"),_.setAttributeNS(null,"fill",l),d.appendChild(_),a.appendChild(d)}ou(a,"l7-marker"),Object.keys(this.markerOption.style||{}).forEach(function(b){var T,M,P=((T=i.markerOption)===null||T===void 0?void 0:T.style)&&((M=i.markerOption)===null||M===void 0?void 0:M.style[b]);a&&(a.style[b]=P)}),Gl(a,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"||Yl()||(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}(Ka.EventEmitter);function GB(e){var r=FT();return function(){var n=_getPrototypeOf(e),i;if(r){var a=_getPrototypeOf(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return _possibleConstructorReturn(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 XB=ui.merge,$B=null,YB=U(95460);function NT(e){var r=UT();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}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 fv=function(e){(0,Fe.Z)(t,e);var r=NT(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,j.Z)(t,[{key:"getOptions",value:function(){return this.controlOption}},{key:"setOptions",value:function(i){var a=this.getDefault(i);Object.entries(i).forEach(function(s){var l=(0,_n.Z)(s,2),f=l[0],d=l[1];d===void 0&&(i[f]=a[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(Ke.IMapService),this.renderService=i.get(Ke.IRendererService),this.layerService=i.get(Ke.ILayerService),this.controlService=i.get(Ke.IControlService),this.configService=i.get(Ke.IGlobalConfigService),this.scene=i.get(Ke.ISceneService),this.sceneContainer=i,this.isShow=!0,this.container=this.onAdd(),ou(this.container,"l7-control");var a=this.controlOption,s=a.className,l=a.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 Yi("div")}},{key:"onRemove",value:function(){}},{key:"show",value:function(){var i=this.container;mu(i,"l7-control--hide"),this.isShow=!0,this.emit("show",this)}},{key:"hide",value:function(){var i=this.container;ou(i,"l7-control--hide"),this.isShow=!1,this.emit("hide",this)}},{key:"getDefault",value:function(i){return{position:wr.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 a=this.mapsService.getContainer();a!==null&&a.focus()}}},{key:"setPosition",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:wr.TOPLEFT,a=this.controlService;return a&&a.removeControl(this),this.controlOption.position=i,a&&a.addControl(this,this.sceneContainer),this}},{key:"setClassName",value:function(i){var a=this.container,s=this.controlOption.className;s&&mu(a,s),i&&ou(a,i)}},{key:"setStyle",value:function(i){var a=this.container;i?a.setAttribute("style",i):a.removeAttribute("style")}},{key:"insertContainer",value:function(){var i=this.controlOption.position,a=this.container;if(i instanceof Element)i.appendChild(a);else{var s=this.controlService.controlCorners[i];["bottomleft","bottomright","righttop","rightbottom"].includes(i)?s.insertBefore(a,s.firstChild):s.appendChild(a)}}},{key:"checkUpdateOption",value:function(i,a){return a.some(function(s){return s in i})}}]),t}(Zs());(0,F.Z)(fv,"controlCount",0);function zT(e){var r=ZT();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}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 Tg=function(e){(0,Fe.Z)(t,e);var r=zT(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,a=new Array(i),s=0;s0&&arguments[0]!==void 0?arguments[0]:"";return Yi("button","l7-button-control ".concat(i))}},{key:"onAdd",value:function(){this.button=this.createButton(),this.isDisable=!1;var i=this.controlOption,a=i.title,s=i.btnText,l=i.btnIcon;return this.setBtnTitle(a),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 a=i.title,s=i.btnText,l=i.btnIcon;this.checkUpdateOption(i,["title"])&&this.setBtnTitle(a),this.checkUpdateOption(i,["btnIcon"])&&this.setBtnIcon(l),this.checkUpdateOption(i,["btnText"])&&this.setBtnText(s),Ia((0,Ae.Z)(t.prototype),"setOptions",this).call(this,i)}},{key:"setBtnTitle",value:function(i){var a;(a=this.button)===null||a===void 0||a.setAttribute("title",i!=null?i:"")}},{key:"setBtnIcon",value:function(i){if(this.buttonIcon&&Ci(this.buttonIcon),i){var a,s=(a=this.button)===null||a===void 0?void 0:a.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(mu(this.button,"l7-button-control--row"),mu(this.button,"l7-button-control--column"),i){var a=this.buttonText;if(!a){var s;a=Yi("div","l7-button-control__text"),(s=this.button)===null||s===void 0||s.appendChild(a),this.buttonText=a}a.innerText=i,ou(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}(fv);function VT(e){var r=jT();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function jT(){if(typeof Reflect=="undefined"||!Reflect.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,Fe.Z)(t,e);var r=VT(t);function t(n,i){var a;return(0,Q.Z)(this,t),a=r.call(this),(0,F.Z)((0,Me.Z)(a),"isShow",!1),(0,F.Z)((0,Me.Z)(a),"timeout",null),(0,F.Z)((0,Me.Z)(a),"show",function(){return a.isShow||!a.contentDOM.innerHTML||(a.resetPopperPosition(),mu(a.popperDOM,"l7-popper-hide"),a.isShow=!0,a.option.unique&&t.conflictPopperList.forEach(function(s){s!==(0,Me.Z)(a)&&s.isShow&&s.hide()}),a.emit("show"),window.addEventListener("pointerdown",a.onPopperUnClick)),(0,Me.Z)(a)}),(0,F.Z)((0,Me.Z)(a),"hide",function(){return a.isShow&&(ou(a.popperDOM,"l7-popper-hide"),a.isShow=!1,a.emit("hide"),window.removeEventListener("pointerdown",a.onPopperUnClick)),(0,Me.Z)(a)}),(0,F.Z)((0,Me.Z)(a),"setHideTimeout",function(){a.timeout||(a.timeout=window.setTimeout(function(){a.isShow&&(a.hide(),a.timeout=null)},300))}),(0,F.Z)((0,Me.Z)(a),"clearHideTimeout",function(){a.timeout&&(window.clearTimeout(a.timeout),a.timeout=null)}),(0,F.Z)((0,Me.Z)(a),"onBtnClick",function(){a.isShow?a.hide():a.show()}),(0,F.Z)((0,Me.Z)(a),"onPopperUnClick",function(s){Kc(s.target,[".l7-button-control",".l7-popper-content"])||a.hide()}),(0,F.Z)((0,Me.Z)(a),"onBtnMouseLeave",function(){a.setHideTimeout()}),(0,F.Z)((0,Me.Z)(a),"onBtnMouseMove",function(){a.clearHideTimeout(),!a.isShow&&a.show()}),a.button=n,a.option=i,a.init(),i.unique&&t.conflictPopperList.push((0,Me.Z)(a)),a}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&&(Ml(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={},a=this.option,s=a.container,l=a.offset,f=l===void 0?[0,0]:l,d=a.placement,_=(0,_n.Z)(f,2),b=_[0],T=_[1],M=this.button.getBoundingClientRect(),P=s.getBoundingClientRect(),D=qc(M,P),G=D.left,q=D.right,se=D.top,Se=D.bottom,Ve=!1,nt=!1;/^(left|right)/.test(d)?(d.includes("left")?i.right="".concat(M.width+q,"px"):d.includes("right")&&(i.left="".concat(M.width+G,"px")),d.includes("start")?i.top="".concat(se,"px"):d.includes("end")?i.bottom="".concat(Se,"px"):(i.top="".concat(se+M.height/2,"px"),nt=!0,i.transform="translate(".concat(b,"px, calc(").concat(T,"px - 50%))"))):/^(top|bottom)/.test(d)&&(d.includes("top")?i.bottom="".concat(M.height+Se,"px"):d.includes("bottom")&&(i.top="".concat(M.height+se,"px")),d.includes("start")?i.left="".concat(G,"px"):d.includes("end")?i.right="".concat(q,"px"):(i.left="".concat(G+M.width/2,"px"),Ve=!0,i.transform="translate(calc(".concat(b,"px - 50%), ").concat(T,"px)"))),i.transform="translate(calc(".concat(b,"px - ").concat(Ve?"50%":"0%","), calc(").concat(T,"px - ").concat(nt?"50%":"0%",")");var st=d.split("-");st.length&&ou(this.popperDOM,st.map(function(at){return"l7-popper-".concat(at)}).join(" ")),xc(this.popperDOM,gh(i))}},{key:"createPopper",value:function(){var i=this.option,a=i.container,s=i.className,l=s===void 0?"":s,f=i.content,d=Yi("div","l7-popper l7-popper-hide ".concat(l)),_=Yi("div","l7-popper-content"),b=Yi("div","l7-popper-arrow");return d.appendChild(_),d.appendChild(b),a.appendChild(d),this.popperDOM=d,this.contentDOM=_,f&&this.setContent(f),d}}]),t}(Ka.EventEmitter);(0,F.Z)(Y_,"conflictPopperList",[]);function HT(e){var r=WT();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function WT(){if(typeof Reflect=="undefined"||!Reflect.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 GT={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"},XT=function(e){(0,Fe.Z)(t,e);var r=HT(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(),Ia((0,Ae.Z)(t.prototype),"hide",this).call(this)}},{key:"getDefault",value:function(i){var a,s=Ia((0,Ae.Z)(t.prototype),"getDefault",this).call(this,i),l=(a=i==null?void 0:i.position)!==null&&a!==void 0?a:s.position;return(0,H.Z)((0,H.Z)({},Ia((0,Ae.Z)(t.prototype),"getDefault",this).call(this,i)),{},{popperPlacement:l instanceof Element?"bottom":GT[l],popperTrigger:"click"})}},{key:"onAdd",value:function(){var i=Ia((0,Ae.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,a=this.controlOption,s=a.popperClassName,l=a.popperPlacement,f=a.popperTrigger,d=this.mapsService.getMapContainer();return this.popper=new Y_(this.button,{className:s,placement:l,trigger:f,container:d,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(Ia((0,Ae.Z)(t.prototype),"setOptions",this).call(this,i),this.checkUpdateOption(i,["popperPlacement","popperTrigger","popperClassName"])){var a=this.popper.getContent();this.popper.destroy(),this.initPopper(),this.popper.setContent(a)}}}]),t}(Tg);function $T(e){var r=YT();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}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 xd=function(e){return e.ActiveOptionClassName="l7-select-control-item-active",e.OptionValueAttrKey="data-option-value",e.OptionIndexAttrKey="data-option-index",e}(xd||{}),q_=function(e){(0,Fe.Z)(t,e);var r=$T(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,a=new Array(i),s=0;s-1?n.selectValue.splice(f,1):n.selectValue=[].concat((0,Qt.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){Ia((0,Ae.Z)(t.prototype),"setOptions",this).call(this,i);var a=i.options;a&&this.popper.setContent(this.getPopperContent(a))}},{key:"onAdd",value:function(){var i=Ia((0,Ae.Z)(t.prototype),"onAdd",this).call(this),a=this.controlOption.defaultValue;return a&&(this.selectValue=this.transSelectValue(a)),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 a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,s=this.transSelectValue(i);this.optionDOMList.forEach(function(l){var f=l.getAttribute(xd.OptionValueAttrKey),d=l.querySelector("input[type=checkbox]"),_=l.querySelector("input[type=radio]"),b=s.includes(f),T=function(P,D){vh(l,xd.ActiveOptionClassName,D),P&&ha(P,D)};T(d,b),T(_,b)}),this.selectValue=s,a&&this.emit("selectChange",this.getIsMultiple()?s:s[0])}},{key:"getIsMultiple",value:function(){return!1}},{key:"getPopperContent",value:function(i){var a=this,s=this.isImageOptions(),l=Yi("div",s?"l7-select-control--image":"l7-select-control--normal");this.getIsMultiple()&&ou(l,"l7-select-control--multiple");var f=i.map(function(d,_){var b=s?a.createImageOption(d):a.createNormalOption(d);return b.setAttribute(xd.OptionValueAttrKey,d.value),b.setAttribute(xd.OptionIndexAttrKey,window.String(_)),b.addEventListener("click",a.onItemClick.bind(a,d)),b});return l.append.apply(l,(0,Qt.Z)(f)),this.optionDOMList=f,l}},{key:"createImageOption",value:function(i){var a=this.selectValue.includes(i.value),s=Yi("div","l7-select-control-item ".concat(a?xd.ActiveOptionClassName:"")),l=Yi("img");l.setAttribute("src",i.img),op(l),s.appendChild(l);var f=Yi("div","l7-select-control-item-row");this.getIsMultiple()&&s.appendChild(this.createCheckbox(a));var d=Yi("span");return d.innerText=i.text,f.appendChild(d),s.appendChild(f),s}},{key:"createCheckbox",value:function(i){var a=Yi("input");return a.setAttribute("type","checkbox"),i&&ha(a,!0),a}},{key:"createRadio",value:function(i){var a=Yi("input");return a.setAttribute("type","radio"),i&&ha(a,!0),a}},{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}(XT),Xh=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 qT(e){var r=KT();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.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 QT=function(e){(0,Fe.Z)(t,e);var r=qT(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,a=new Array(i),s=0;s=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(d){throw d},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 a=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var d=t.next();return a=d.done,d},e:function(d){s=!0,l=d},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function ew(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);t0&&arguments[0]!==void 0?arguments[0]:document.documentElement,t=arguments.length>1?arguments[1]:void 0;return new Promise(function(n,i){var a=function l(){pc.off("change",l),n()};pc.on("change",a);var s=r[$h.requestFullscreen](t);s instanceof Promise&&s.then(a).catch(i)})},exit:function(){return new Promise(function(r,t){if(!pc.isFullscreen){r();return}var n=function a(){pc.off("change",a),r()};pc.on("change",n);var i=document[$h.exitFullscreen]();i instanceof Promise&&i.then(n).catch(t)})},toggle:function(r,t){return pc.isFullscreen?pc.exit():pc.request(r,t)},onchange:function(r){pc.on("change",r)},onerror:function(r){pc.on("error",r)},on:function(r,t){var n=J_[r];n&&document.addEventListener(n,t,!1)},off:function(r,t){var n=J_[r];n&&document.removeEventListener(n,t,!1)},raw:$h};Object.defineProperties(pc,{isFullscreen:{get:function(){return!!document[$h.fullscreenElement]}},element:{enumerable:!0,get:function(){var r;return(r=document[$h.fullscreenElement])!==null&&r!==void 0?r:void 0}},isEnabled:{enumerable:!0,get:function(){return!!document[$h.fullscreenEnabled]}}}),$h||(pc={isEnabled:!1});var F0=pc;function tw(e){var r=rw();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function rw(){if(typeof Reflect=="undefined"||!Reflect.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 nw=function(e){(0,Fe.Z)(t,e);var r=tw(t);function t(n){var i;return(0,Q.Z)(this,t),i=r.call(this,n),(0,F.Z)((0,Me.Z)(i),"isFullscreen",!1),(0,F.Z)((0,Me.Z)(i),"toggleFullscreen",(0,Ft.Z)(_e().mark(function a(){return _e().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!F0.isEnabled){l.next=3;break}return l.next=3,F0.toggle(i.mapContainer);case 3:case"end":return l.stop()}},a)}))),(0,F.Z)((0,Me.Z)(i),"onClick",function(){i.toggleFullscreen()}),(0,F.Z)((0,Me.Z)(i),"onFullscreenChange",function(){i.isFullscreen=!!document.fullscreenElement;var a=i.controlOption,s=a.btnText,l=a.btnIcon,f=a.title,d=a.exitBtnText,_=a.exitBtnIcon,b=a.exitTitle;i.isFullscreen?(i.setBtnTitle(b),i.setBtnText(d),i.setBtnIcon(_)):(i.setBtnTitle(f),i.setBtnText(s),i.setBtnIcon(l)),i.emit("fullscreenChange",i.isFullscreen)}),F0.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 a=i.exitBtnText,s=i.exitBtnIcon,l=i.exitTitle;this.isFullscreen&&(this.checkUpdateOption(i,["exitBtnIcon"])&&this.setBtnIcon(s),this.checkUpdateOption(i,["exitBtnText"])&&this.setBtnText(a),this.checkUpdateOption(i,["exitTitle"])&&this.setBtnTitle(l)),Ia((0,Ae.Z)(t.prototype),"setOptions",this).call(this,i)}},{key:"onAdd",value:function(){var i=Ia((0,Ae.Z)(t.prototype),"onAdd",this).call(this);return i.addEventListener("click",this.onClick),this.mapContainer=Fs(this.scene.getSceneConfig().id),this.mapContainer.addEventListener("fullscreenchange",this.onFullscreenChange),i}},{key:"onRemove",value:function(){Ia((0,Ae.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)({},Ia((0,Ae.Z)(t.prototype),"getDefault",this).call(this,i)),{},{title:"\u5168\u5C4F",btnIcon:Xh("l7-icon-fullscreen"),exitTitle:"\u9000\u51FA\u5168\u5C4F",exitBtnIcon:Xh("l7-icon-exit-fullscreen")})}}]),t}(Tg);function iw(e){var r=aw();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function aw(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var ow=function(e){(0,Fe.Z)(t,e);var r=iw(t);function t(n){var i;return(0,Q.Z)(this,t),i=r.call(this,n),(0,F.Z)((0,Me.Z)(i),"getGeoLocation",function(){return new Promise(function(a,s){window.navigator.geolocation.getCurrentPosition(function(l){var f=l.coords,d=f!=null?f:{},_=d.longitude,b=d.latitude;!isNaN(_)&&!isNaN(b)?a([_,b]):s()},function(l){s(l)})})}),(0,F.Z)((0,Me.Z)(i),"onClick",(0,Ft.Z)(_e().mark(function a(){var s,l,f;return _e().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(window.navigator.geolocation){_.next=2;break}return _.abrupt("return");case 2:return s=i.controlOption.transform,_.next=5,i.getGeoLocation();case 5:if(l=_.sent,f=i.mapsService.getZoom(),_.t0=i.mapsService,_.t1=f>15?f:15,!s){_.next=15;break}return _.next=12,s(l);case 12:_.t2=_.sent,_.next=16;break;case 15:_.t2=l;case 16:_.t3=_.t2,_.t0.setZoomAndCenter.call(_.t0,_.t1,_.t3);case 18:case"end":return _.stop()}},a)}))),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,H.Z)((0,H.Z)({},Ia((0,Ae.Z)(t.prototype),"getDefault",this).call(this,i)),{},{title:"\u5B9A\u4F4D",btnIcon:Xh("l7-icon-reposition")})}},{key:"onAdd",value:function(){var i=Ia((0,Ae.Z)(t.prototype),"onAdd",this).call(this);return i.addEventListener("click",this.onClick),i}}]),t}(Tg);function sw(e){var r=uw();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function uw(){if(typeof Reflect=="undefined"||!Reflect.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 e1(e){return Object.keys(e!=null?e:{}).every(function(r){return["layer","name","img"].includes(r)})}var t1=function(e){(0,Fe.Z)(t,e);var r=sw(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,a=new Array(i),s=0;s=10?10:s>=5?5:s>=3?3:s>=2?2:1,a*s}},{key:"updateMetric",value:function(i){var a=this.getRoundNum(i),s=a<1e3?a+" m":a/1e3+" km";this.updateScale(this.mScale,s,a/i)}},{key:"updateImperial",value:function(i){var a=i*3.2808399,s,l,f;a>5280?(s=a/5280,l=this.getRoundNum(s),this.updateScale(this.iScale,l+" mi",l/s)):(f=this.getRoundNum(a),this.updateScale(this.iScale,f+" ft",f/a))}}]),t}(fv),Cp,n1=(Cp={},(0,F.Z)(Cp,ff.additive,{enable:!0,func:{srcRGB:I.ONE,dstRGB:I.ONE,srcAlpha:1,dstAlpha:1}}),(0,F.Z)(Cp,ff.none,{enable:!1}),(0,F.Z)(Cp,ff.normal,{enable:!0,func:{srcRGB:I.SRC_ALPHA,dstRGB:I.ONE_MINUS_SRC_ALPHA,srcAlpha:1,dstAlpha:1}}),(0,F.Z)(Cp,ff.subtractive,{enable:!0,func:{srcRGB:I.ONE,dstRGB:I.ONE,srcAlpha:I.ZERO,dstAlpha:I.ONE_MINUS_SRC_COLOR},equation:{rgb:I.FUNC_SUBTRACT,alpha:I.FUNC_SUBTRACT}}),(0,F.Z)(Cp,ff.max,{enable:!0,func:{srcRGB:I.ONE,dstRGB:I.ONE},equation:{rgb:I.MAX_EXT}}),(0,F.Z)(Cp,ff.min,{enable:!0,func:{srcRGB:I.ONE,dstRGB:I.ONE},equation:{rgb:I.MIN_EXT}}),Cp);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,a=e.getLayerConfig(),s=a.enableTAA;return s?i.add(n("taa")):i.add(n("render")),i1(r).forEach(function(l){var f=(0,_n.Z)(l,2),d=f[0],_=f[1];i.add(t(d),_)}),i.add(t("copy")),i}var Ew=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(Ke.ILayerService),a=this.layer;if(a.tileLayer)return a.tileLayer.pickRender(t);a.hooks.beforePickingEncode.call(),i.renderTileLayerMask(a),a.renderModels({ispick:!0}),a.hooks.afterPickingEncode.call()}},{key:"pick",value:function(t,n){var i=this.layer.getContainer(),a=i.get(Ke.IPickingService);return t.type==="RasterLayer"?this.pickRasterLayer(t,n):(this.pickRender(n),a.pickFromPickingFBO(t,n))}},{key:"pickRasterLayer",value:function(t,n,i){var a=this.layer.getContainer(),s=a.get(Ke.IPickingService),l=a.get(Ke.IMapService),f=this.layer.getSource().extent,d=Il(n.lngLat,f),_={x:n.x,y:n.y,type:n.type,lngLat:n.lngLat,target:n,rasterValue:null},b=i||t;if(d){var T=this.readRasterValue(t,f,l,n.x,n.y);return _.rasterValue=T,s.triggerHoverOnLayer(b,_),!0}else return _.type=n.type==="mousemove"?"mouseout":"un"+n.type,s.triggerHoverOnLayer(b,(0,H.Z)((0,H.Z)({},_),{},{type:"unpick"})),s.triggerHoverOnLayer(b,_),!1}},{key:"readRasterValue",value:function(t,n,i,a,s){var l=t.getSource().data.dataArray[0],f=(0,_n.Z)(n,4),d=f[0],_=d===void 0?0:d,b=f[1],T=b===void 0?0:b,M=f[2],P=M===void 0?10:M,D=f[3],G=D===void 0?-10:D,q=i.lngLatToContainer([_,T]),se=i.lngLatToContainer([P,G]),Se=se.x-q.x,Ve=q.y-se.y,nt=[(a-q.x)/Se,(s-se.y)/Ve],st=l.width||1,at=l.height||1,At=Math.floor(nt[0]*st),Wt=Math.floor(nt[1]*at),Sr=Math.max(0,Wt-1)*st+At,_r=l.data[Sr];return _r}},{key:"selectFeature",value:function(t){var n=this.layer,i=(0,_n.Z)(t,3),a=i[0],s=i[1],l=i[2];n.hooks.beforeSelect.call([a,s,l])}},{key:"highlightPickedFeature",value:function(t){var n=(0,_n.Z)(t,3),i=n[0],a=n[1],s=n[2];this.layer.hooks.beforeHighlight.call([i,a,s])}},{key:"getFeatureById",value:function(t){return this.layer.getSource().getFeatureById(t)}}]),e}(),Sw=function(){function e(r){(0,Q.Z)(this,e),this.layer=r;var t=this.layer.getContainer();this.rendererService=t.get(Ke.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,a=this.getColorRampBar(t,n),s=i({data:new Uint8Array(a.data),width:a.width,height:a.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 is(t);case"quantize":return qo(t);case"custom":return Du(t,n);case"linear":return ca(t,n);default:return Vo(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}(),Aw=["passes"],Tw=["moduleName","vertexShader","fragmentShader","inject","triangulation","styleOption"],o1,N0,s1;function ww(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Cw(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(d){throw d},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 a=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var d=t.next();return a=d.done,d},e:function(d){s=!0,l=d},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function Cw(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,F.Z)((0,Me.Z)(n),"id","".concat(f1++)),(0,F.Z)((0,Me.Z)(n),"name","".concat(f1)),(0,F.Z)((0,Me.Z)(n),"visible",!0),(0,F.Z)((0,Me.Z)(n),"zIndex",0),(0,F.Z)((0,Me.Z)(n),"inited",!1),(0,F.Z)((0,Me.Z)(n),"layerModelNeedUpdate",!1),(0,F.Z)((0,Me.Z)(n),"pickedFeatureID",null),(0,F.Z)((0,Me.Z)(n),"selectedFeatureID",null),(0,F.Z)((0,Me.Z)(n),"styleNeedUpdate",!1),(0,F.Z)((0,Me.Z)(n),"forceRender",!1),(0,F.Z)((0,Me.Z)(n),"clusterZoom",0),(0,F.Z)((0,Me.Z)(n),"defaultSourceConfig",{data:[],options:{parser:{type:"json"}}}),(0,F.Z)((0,Me.Z)(n),"dataState",{dataSourceNeedUpdate:!1,dataMappingNeedUpdate:!1,filterNeedUpdate:!1,featureScaleNeedUpdate:!1,StyleAttrNeedUpdate:!1}),(0,F.Z)((0,Me.Z)(n),"hooks",{init:new hg,afterInit:new xf,beforeRender:new xf,beforeRenderData:new Qd,afterRender:new Ul,beforePickingEncode:new Ul,afterPickingEncode:new Ul,beforeHighlight:new Ul(["pickedColor"]),afterHighlight:new Ul,beforeSelect:new Ul(["pickedColor"]),afterSelect:new Ul,beforeDestroy:new Ul,afterDestroy:new Ul}),(0,F.Z)((0,Me.Z)(n),"models",[]),(0,F.Z)((0,Me.Z)(n),"startInit",!1),(0,F.Z)((0,Me.Z)(n),"layerChildren",[]),(0,F.Z)((0,Me.Z)(n),"masks",[]),Di((0,Me.Z)(n),"configService",s1,(0,Me.Z)(n)),(0,F.Z)((0,Me.Z)(n),"animateOptions",{enable:!1}),(0,F.Z)((0,Me.Z)(n),"currentPickId",null),(0,F.Z)((0,Me.Z)(n),"encodeStyleAttribute",{}),(0,F.Z)((0,Me.Z)(n),"enableShaderEncodeStyles",[]),(0,F.Z)((0,Me.Z)(n),"enableDataEncodeStyles",[]),(0,F.Z)((0,Me.Z)(n),"enablg",[]),(0,F.Z)((0,Me.Z)(n),"pendingStyleAttributes",[]),(0,F.Z)((0,Me.Z)(n),"scaleOptions",{}),(0,F.Z)((0,Me.Z)(n),"animateStatus",!1),(0,F.Z)((0,Me.Z)(n),"isDestroyed",!1),(0,F.Z)((0,Me.Z)(n),"uniformBuffers",[]),(0,F.Z)((0,Me.Z)(n),"encodeDataLength",0),(0,F.Z)((0,Me.Z)(n),"sourceEvent",function(){n.dataState.dataSourceNeedUpdate=!0;var a=n.getLayerConfig();a&&a.autoFit&&n.fitBounds(a.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.updateLayerConfig({maskLayers:this.masks}),this.enableMask()}},{key:"removeMask",value:function(i){var a=this.masks.indexOf(i);a>-1&&this.masks.splice(a,1),this.updateLayerConfig({maskLayers:this.masks})}},{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 a=this.masks.indexOf(i);a>-1&&this.masks.splice(a,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 a=this;if(Object.keys(i).map(function(l){l in a.rawConfig&&(a.rawConfig[l]=i[l])}),!this.startInit)this.needUpdateConfig=(0,H.Z)((0,H.Z)({},this.needUpdateConfig),i);else{var s=this.container.get(Ke.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,a){this.container=i,this.sceneContainer=a}},{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,Ft.Z)(_e().mark(function a(){var s=this,l,f,d,_,b,T,M;return _e().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:l=this.container.get(Ke.SceneID),this.startInit=!0,this.configService.setLayerConfig(l,this.id,this.rawConfig),this.layerType=this.rawConfig.layerType,this.iconService=this.container.get(Ke.IIconService),this.fontService=this.container.get(Ke.IFontService),this.rendererService=this.container.get(Ke.IRendererService),this.layerService=this.container.get(Ke.ILayerService),this.debugService=this.container.get(Ke.IDebugService),this.interactionService=this.container.get(Ke.IInteractionService),this.pickingService=this.container.get(Ke.IPickingService),this.mapService=this.container.get(Ke.IMapService),f=this.getLayerConfig(),d=f.enableMultiPassRenderer,_=f.passes,d&&_!==null&&_!==void 0&&_.length&&_.length>0&&this.mapService.on("mapAfterFrameChange",function(){s.renderLayers()}),this.cameraService=this.container.get(Ke.ICameraService),this.coordinateService=this.container.get(Ke.ICoordinateSystemService),this.shaderModuleService=this.container.get(Ke.IShaderModuleService),this.postProcessingPassFactory=this.container.get(Ke.IFactoryPostProcessingPass),this.normalPassFactory=this.container.get(Ke.IFactoryNormalPass),this.styleAttributeService=this.container.get(Ke.IStyleAttributeService),d&&(this.multiPassRenderer=this.container.get(Ke.IMultiPassRenderer),this.multiPassRenderer.setLayer(this)),this.pendingStyleAttributes.forEach(function(G){var q=G.attributeName,se=G.attributeField,Se=G.attributeValues,Ve=G.updateOptions;s.styleAttributeService.updateStyleAttribute(q,{scale:(0,H.Z)({field:se},s.splitValuesAndCallbackInAttribute(Se,se?void 0:s.getLayerConfig()[q]))},Ve)}),this.pendingStyleAttributes=[],this.plugins=this.container.getAll(Ke.ILayerPlugin),b=ww(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(G){b.e(G)}finally{b.f()}return this.layerPickService=new Ew(this),this.textureService=new Sw(this),this.log(Ds.LayerInitStart),D.next=31,this.hooks.init.promise();case 31:this.log(Ds.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 D.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"log",value:function(i){var a,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};(a=this.debugService)===null||a===void 0||a.log(l,f)}}},{key:"updateModelData",value:function(i){i.attributes&&i.elements?this.models.map(function(a){a.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(),a=i.animateOption;a!=null&&a.enable&&(this.layerService.startAnimate(),this.animateStatus=!0)}},{key:"color",value:function(i,a,s){return this.updateStyleAttribute("color",i,a,s),this}},{key:"texture",value:function(i,a,s){return this.updateStyleAttribute("texture",i,a,s),this}},{key:"rotate",value:function(i,a,s){return this.updateStyleAttribute("rotate",i,a,s),this}},{key:"size",value:function(i,a,s){return this.updateStyleAttribute("size",i,a,s),this}},{key:"filter",value:function(i,a,s){var l=this.updateStyleAttribute("filter",i,a,s);return this.dataState.dataSourceNeedUpdate=l&&this.inited,this}},{key:"shape",value:function(i,a,s){this.shapeOption={field:i,values:a};var l=this.updateStyleAttribute("shape",i,a,s);return this.dataState.dataSourceNeedUpdate=l&&this.inited,this}},{key:"label",value:function(i,a,s){return this.pendingStyleAttributes.push({attributeName:"label",attributeField:i,attributeValues:a,updateOptions:s}),this}},{key:"animate",value:function(i){var a={};return Iu(i)?(a.enable=!0,a=(0,H.Z)((0,H.Z)({},a),i)):a.enable=i,this.updateLayerConfig({animateOption:a}),this}},{key:"source",value:function(i,a){return(i==null?void 0:i.type)==="source"?(this.setSource(i),this):(this.sourceOption={data:i,options:a},this.clusterZoom=0,this)}},{key:"setData",value:function(i,a){var s=this;return this.inited?(this.log(Ds.SourceInitStart,es.UPDATE),this.layerSource.setData(i,a),this.log(Ds.SourceInitEnd,es.UPDATE)):this.on("inited",function(){s.log(Ds.SourceInitStart,es.UPDATE);var l=s.getSource();l?s.layerSource.setData(i,a):s.source(new $_(i,a)),s.layerSource.once("update",function(){s.log(Ds.SourceInitEnd,es.UPDATE)})}),this}},{key:"style",value:function(i){var a=this,s=i.passes,l=(0,wa.Z)(i,Aw);s&&i1(s).forEach(function(d){var _=a.multiPassRenderer.getPostProcessor().getPostProcessingPassByName(d[0]);_&&_.updateOptions(d[1])}),l.borderColor&&(l.stroke=l.borderColor),l.borderWidth&&(l.strokeWidth=l.borderWidth);var f=l;return Object.keys(l).forEach(function(d){var _=l[d];Array.isArray(_)&&_.length===2&&!c1(_[0])&&!c1(_[1])&&(f[d]={field:_[0],value:_[1]})}),this.encodeStyle(f),this.updateLayerConfig(f),this}},{key:"encodeStyle",value:function(i){var a=this;Object.keys(i).forEach(function(s){[].concat((0,Qt.Z)(a.enableShaderEncodeStyles),(0,Qt.Z)(a.enableDataEncodeStyles)).includes(s)&&Iw(i[s])&&(i[s].field||i[s].value)&&!U0(a.encodeStyleAttribute[s],i[s])?(a.encodeStyleAttribute[s]=i[s],a.updateStyleAttribute(s,i[s].field,i[s].value),a.inited&&(a.dataState.dataMappingNeedUpdate=!0)):a.encodeStyleAttribute[s]&&(delete a.encodeStyleAttribute[s],a.dataState.dataSourceNeedUpdate=!0)})}},{key:"scale",value:function(i,a){var s=(0,H.Z)({},this.scaleOptions);if(Iu(i)?this.scaleOptions=(0,H.Z)((0,H.Z)({},this.scaleOptions),i):this.scaleOptions[i]=a,this.styleAttributeService&&!U0(s,this.scaleOptions)){var l=Iu(i)?i:(0,F.Z)({},i,a);this.styleAttributeService.updateScaleAttribute(l)}return this}},{key:"renderLayers",value:function(){this.rendering=!0,this.layerService.reRender(),this.rendering=!1}},{key:"prerender",value:function(){}},{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,Ft.Z)(_e().mark(function a(){return _e().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()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"active",value:function(i){var a={};return a.enableHighlight=Iu(i)?!0:i,Iu(i)?(a.enableHighlight=!0,i.color&&(a.highlightColor=i.color),i.mix&&(a.activeMix=i.mix)):a.enableHighlight=!!i,this.updateLayerConfig(a),this}},{key:"setActive",value:function(i,a){var s=this;if(Iu(i)){var l=i.x,f=l===void 0?0:l,d=i.y,_=d===void 0?0:d;this.updateLayerConfig({highlightColor:Iu(a)?a.color:this.getLayerConfig().highlightColor,activeMix:Iu(a)?a.mix:this.getLayerConfig().activeMix}),this.pick({x:f,y:_})}else this.updateLayerConfig({pickedFeatureID:i,highlightColor:Iu(a)?a.color:this.getLayerConfig().highlightColor,activeMix:Iu(a)?a.mix:this.getLayerConfig().activeMix}),this.hooks.beforeHighlight.call(na(i)).then(function(){setTimeout(function(){s.reRender()},1)})}},{key:"select",value:function(i){var a={};return a.enableSelect=Iu(i)?!0:i,Iu(i)?(a.enableSelect=!0,i.color&&(a.selectColor=i.color),i.mix&&(a.selectMix=i.mix)):a.enableSelect=!!i,this.updateLayerConfig(a),this}},{key:"setSelect",value:function(i,a){var s=this;if(Iu(i)){var l=i.x,f=l===void 0?0:l,d=i.y,_=d===void 0?0:d;this.updateLayerConfig({selectColor:Iu(a)?a.color:this.getLayerConfig().selectColor,selectMix:Iu(a)?a.mix:this.getLayerConfig().selectMix}),this.pick({x:f,y:_})}else this.updateLayerConfig({pickedFeatureID:i,selectColor:Iu(a)?a.color:this.getLayerConfig().selectColor,selectMix:Iu(a)?a.mix:this.getLayerConfig().selectMix}),this.hooks.beforeSelect.call(na(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(),a=this.getLayerConfig(),s=a.visible,l=a.minZoom,f=l===void 0?-1/0:l,d=a.maxZoom,_=d===void 0?1/0:d;return!!s&&i>=f&&i<_}},{key:"setMultiPass",value:function(i,a){if(this.updateLayerConfig({enableMultiPassRenderer:i}),a&&this.updateLayerConfig({passes:a}),i){var s=this.getLayerConfig(),l=s.passes,f=l===void 0?[]:l;this.multiPassRenderer=a1(this,f,this.postProcessingPassFactory,this.normalPassFactory),this.multiPassRenderer.setRenderFlag(!0);var d=this.rendererService.getViewportSize(),_=d.width,b=d.height;this.multiPassRenderer.resize(_,b)}return this}},{key:"setMinZoom",value:function(i){return this.updateLayerConfig({minZoom:i}),this}},{key:"getMinZoom",value:function(){var i=this.getLayerConfig(),a=i.minZoom;return a}},{key:"getMaxZoom",value:function(){var i=this.getLayerConfig(),a=i.maxZoom;return a}},{key:"get",value:function(i){var a=this.getLayerConfig();return a[i]}},{key:"setMaxZoom",value:function(i){return this.updateLayerConfig({maxZoom:i}),this}},{key:"setAutoFit",value:function(i){return this.updateLayerConfig({autoFit:i}),this}},{key:"fitBounds",value:function(i){if(!this.inited)return this.updateLayerConfig({autoFit:!0}),this;var a=this.getSource(),s=a.extent,l=s.some(function(f){return Math.abs(f)===1/0});return l?this:(this.mapService.fitBounds([[s[0],s[1]],[s[2],s[3]]],i),this)}},{key:"destroy",value:function(){var i,a,s,l,f,d=arguments.length>0&&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 _=this.getLayerConfig(),b=_.maskfence;b&&(this.masks.map(function(T){return T.destroy(!1)}),this.masks=[]),this.hooks.beforeDestroy.call(),this.layerSource.off("update",this.sourceEvent),(a=this.multiPassRenderer)===null||a===void 0||a.destroy(),this.textureService.destroy(),this.styleAttributeService.clearAllAttributes(),this.hooks.afterDestroy.call(),(s=this.layerModel)===null||s===void 0||s.clearModels(d),(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(a){return a.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 a=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(a.coordCenter===void 0){var d,_=a.layerSource.center;a.coordCenter=_,(d=a.mapService)!==null&&d!==void 0&&d.setCoordCenter&&a.mapService.setCoordCenter(_)}if(f==="update"){if(a.tileLayer){a.tileLayer.reload();return}a.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 a,s,l,f=this.styleAttributeService.getLayerStyleAttribute(i),d=(f==null||(a=f.scale)===null||a===void 0?void 0:a.scalers)||[];return{type:(s=d[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 a=this.styleAttributeService.getLayerAttributeScale(i);if(!a)return[];if(a.invertExtent){var s=a.range().map(function(d){return(0,F.Z)({value:a.invertExtent(d)},i,d)});return s}else if(a.ticks){var l=a.ticks().map(function(d){return(0,F.Z)({value:d},i,a(d))});return l}else if(a!=null&&a.domain){var f=a.domain().filter(function(d){return!Pw(d)}).map(function(d){return(0,F.Z)({value:d},i,a(d))});return f}return[]}},{key:"pick",value:function(i){var a=i.x,s=i.y;this.interactionService.triggerHover({x:a,y:s})}},{key:"boxSelect",value:function(i,a){this.pickingService.boxPickLayer(this,i,a)}},{key:"buildLayerModel",value:function(){var n=(0,Ft.Z)(_e().mark(function a(s){var l=this,f,d,_,b,T,M,P,D,G,q,se,Se;return _e().wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:return f=s.moduleName,d=s.vertexShader,_=s.fragmentShader,b=s.inject,T=s.triangulation,M=s.styleOption,P=(0,wa.Z)(s,Tw),this.shaderModuleService.registerModule(f,{vs:d,fs:_,inject:b}),D=this.shaderModuleService.getModule(f),G=D.vs,q=D.fs,se=D.uniforms,Se=this.rendererService.createModel,nt.abrupt("return",new Promise(function(st){var at=l.styleAttributeService.createAttributesAndIndices(l.encodedData,T,M),At=at.attributes,Wt=at.elements,Sr=at.count,_r=(0,H.Z)({attributes:At,uniforms:se,fs:q,vs:G,elements:Wt,blend:n1[ff.normal],uniformBuffers:[].concat((0,Qt.Z)(l.layerModel.uniformBuffers),(0,Qt.Z)(l.rendererService.uniformBuffers),[l.getLayerUniformBuffer(),l.getPickingUniformBuffer()]),textures:l.layerModel.textures},P);Sr&&(_r.count=Sr);var Gr=Se(_r);st(Gr)}));case 5:case"end":return nt.stop()}},a,this)}));function i(a){return n.apply(this,arguments)}return i}()},{key:"createAttributes",value:function(i){var a=i.triangulation,s=this.styleAttributeService.createAttributes(this.encodedData,a),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 a=this.getLayerConfig(),s=a.enableHighlight,l=s===void 0?!0:s,f=a.enableSelect,d=f===void 0?!0:f,_=this.eventNames().indexOf(i)!==-1||this.eventNames().indexOf("un"+i)!==-1;return(i==="click"||i==="dblclick")&&d&&(_=!0),i==="mousemove"&&(l||this.eventNames().indexOf("mouseenter")!==-1||this.eventNames().indexOf("unmousemove")!==-1||this.eventNames().indexOf("mouseout")!==-1)&&(_=!0),this.isVisible()&&_}},{key:"buildModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){return _e().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return l.stop()}},a)}));function i(){return n.apply(this,arguments)}return i}()},{key:"rebuildModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){return _e().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,this.buildModels();case 2:case"end":return l.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"renderMulPass",value:function(){var n=(0,Ft.Z)(_e().mark(function a(s){return _e().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,s.render();case 2:case"end":return f.stop()}},a)}));function i(a){return n.apply(this,arguments)}return i}()},{key:"renderModels",value:function(){var i=this,a=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(a),textures:i.layerModel.textures},(a==null?void 0:a.ispick)||!1)}),this.hooks.afterRender.call(),this)}},{key:"updateStyleAttribute",value:function(i,a,s,l){var f=this.configService.getAttributeConfig(this.id)||{};return U0(f[i],{field:a,values:s})?!1:(["color","size","texture","rotate","filter","label","shape"].indexOf(i)!==-1&&this.configService.setAttributeConfig(this.id,(0,F.Z)({},i,{field:a,values:s})),this.startInit?this.styleAttributeService.updateStyleAttribute(i,{scale:(0,H.Z)({field:a},this.splitValuesAndCallbackInAttribute(s,this.getLayerConfig()[a]))},l):this.pendingStyleAttributes.push({attributeName:i,attributeField:a,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,Ft.Z)(_e().mark(function a(){var s,l;return _e().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return this.models.forEach(function(_){return _.destroy()}),this.models=[],this.uniformBuffers.forEach(function(_){_.destroy()}),this.uniformBuffers=[],s=this.rendererService.createBuffer({data:new Float32Array(20).fill(0),isUBO:!0}),this.uniformBuffers.push(s),l=this.rendererService.createBuffer({data:new Float32Array(20).fill(0),isUBO:!0}),this.uniformBuffers.push(l),d.next=10,this.layerModel.initModels();case 10:this.models=d.sent;case 11:case"end":return d.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getLayerUniformBuffer",value:function(){return this.uniformBuffers[0]}},{key:"getPickingUniformBuffer",value:function(){return this.uniformBuffers[1]}},{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}(Ka.EventEmitter),s1=Pi(N0.prototype,"configService",[o1],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N0);function Ow(e,r){return{enable:e,mask:255,func:{cmp:I.EQUAL,ref:r?1:0,mask:1}}}function h1(e){return e.maskOperation===rd.OR?{enable:!0,mask:255,func:{cmp:I.ALWAYS,ref:1,mask:255},opFront:{fail:I.KEEP,zfail:I.REPLACE,zpass:I.REPLACE}}:{enable:!0,mask:255,func:{cmp:e.stencilType===Kf.SINGLE||e.stencilIndex===0?I.ALWAYS:I.LESS,ref:e.stencilType===Kf.SINGLE?1:e.stencilIndex===0?2:1,mask:255},opFront:{fail:I.KEEP,zfail:I.REPLACE,zpass:I.REPLACE}}}var Yn=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[e.UV=14]="UV",e[e.LINEAR=15]="LINEAR",e}({});function kw(e){switch(e){case"rotation":return{name:"Rotation",type:In.Attribute,descriptor:{name:"a_Rotation",shaderLocation:Yn.ROTATION,buffer:{usage:I.DYNAMIC_DRAW,data:[],type:I.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:In.Attribute,descriptor:{name:"a_Stroke",shaderLocation:Yn.STROKE,buffer:{usage:I.DYNAMIC_DRAW,data:[],type:I.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:In.Attribute,descriptor:{name:"a_Opacity",shaderLocation:Yn.OPACITY,buffer:{usage:I.STATIC_DRAW,data:[],type:I.FLOAT},size:1,update:function(t){var n=t.opacity,i=n===void 0?1:n;return[i]}}};case"extrusionBase":return{name:"extrusionBase",type:In.Attribute,descriptor:{name:"a_ExtrusionBase",shaderLocation:Yn.EXTRUSION_BASE,buffer:{usage:I.STATIC_DRAW,data:[],type:I.FLOAT},size:1,update:function(t){var n=t.extrusionBase,i=n===void 0?0:n;return[i]}}};case"offsets":return{name:"offsets",type:In.Attribute,descriptor:{name:"a_Offsets",shaderLocation:Yn.OFFSETS,buffer:{usage:I.STATIC_DRAW,data:[],type:I.FLOAT},size:2,update:function(t){var n=t.offsets;return n}}};case"thetaOffset":return{name:"thetaOffset",type:In.Attribute,descriptor:{name:"a_ThetaOffset",shaderLocation:15,buffer:{usage:I.STATIC_DRAW,data:[],type:I.FLOAT},size:1,update:function(t){var n=t.thetaOffset,i=n===void 0?1:n;return[i]}}};default:return}}var Dw={opacity:1,stroke:[1,0,0,1],offsets:[0,0],rotation:0,extrusionBase:0,strokeOpacity:1,thetaOffset:.314},wg={opacity:"float",stroke:"vec4",offsets:"vec2",textOffset:"vec2",rotation:"float",extrusionBase:"float",strokeOpacity:"float",thetaOffset:"float"};function qB(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.max(Math.ceil(e/4)*4,4)}var d1,z0,v1,Z0={opacity:Yn.OPACITY,stroke:Yn.STROKE,offsets:Yn.OFFSETS,rotation:Yn.ROTATION,extrusionBase:Yn.EXTRUSION_BASE,thetaOffset:15},Na=(d1=D0(Ke.IGlobalConfigService),z0=function(){function e(r){(0,Q.Z)(this,e),(0,F.Z)(this,"uniformBuffers",[]),(0,F.Z)(this,"textures",[]),(0,F.Z)(this,"preStyleAttribute",{}),(0,F.Z)(this,"encodeStyleAttribute",{}),Di(this,"configService",v1,this),this.layer=r,this.rendererService=r.getContainer().get(Ke.IRendererService),this.pickingService=r.getContainer().get(Ke.IPickingService),this.shaderModuleService=r.getContainer().get(Ke.IShaderModuleService),this.styleAttributeService=r.getContainer().get(Ke.IStyleAttributeService),this.mapService=r.getContainer().get(Ke.IMapService),this.iconService=r.getContainer().get(Ke.IIconService),this.fontService=r.getContainer().get(Ke.IFontService),this.cameraService=r.getContainer().get(Ke.ICameraService),this.layerService=r.getContainer().get(Ke.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[ff[i]]}},{key:"getStencil",value:function(t){var n=this.layer.getLayerConfig(),i=n.mask,a=i===void 0?!1:i,s=n.maskInside,l=s===void 0?!0:s,f=n.enableMask,d=n.maskOperation,_=d===void 0?rd.AND:d;if(this.layer.type==="MaskLayer")return h1({isStencil:!0,stencilType:Kf.SINGLE});if(t.isStencil)return h1((0,H.Z)((0,H.Z)({},t),{},{maskOperation:_}));var b=a||f&&this.layer.masks.length!==0||this.layer.tileMask!==void 0;return Ow(b,l)}},{key:"getDefaultStyle",value:function(){return{}}},{key:"getUninforms",value:function(){var t=this.getCommonUniformsInfo(),n=this.getUniformsBufferInfo(this.getStyleAttribute());this.updateStyleUnifoms();var i=(0,H.Z)((0,H.Z)({},n.uniformsOption),t.uniformsOption);return!this.rendererService.hasOwnProperty("device")&&this.textures&&this.textures.length===1&&(i.u_texture=this.textures[0]),i}},{key:"getAnimateUniforms",value:function(){return{}}},{key:"needUpdate",value:function(){var r=(0,Ft.Z)(_e().mark(function n(){return _e().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",!1);case 1:case"end":return a.stop()}},n)}));function t(){return r.apply(this,arguments)}return t}()},{key:"buildModels",value:function(){var r=(0,Ft.Z)(_e().mark(function n(){return _e().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return a.stop()}},n)}));function t(){return r.apply(this,arguments)}return t}()},{key:"initModels",value:function(){var r=(0,Ft.Z)(_e().mark(function n(){return _e().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:throw new Error("Method not implemented.");case 1:case"end":return a.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:"prerender",value:function(){}},{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(wg[l]," u_").concat(l,";"));var f=Z0[l];!f&&l==="THETA_OFFSET"&&(f=15),n+=` + #ifdef USE_ATTRIBUTE_`.concat(l.toUpperCase(),` + layout(location = `).concat(Z0[l],") in ").concat(wg[l]," a_").concat(l.charAt(0).toUpperCase()+l.slice(1),`; + #endif + + `)});var a=i.length?` +layout(std140) uniform AttributeUniforms { +`.concat(i.join(` +`),` +}; + `):"";n+=a;var s="";return this.layer.enableShaderEncodeStyles.forEach(function(l){s+=` + + #ifdef USE_ATTRIBUTE_`.concat(l.toUpperCase(),` + `).concat(wg[l]," ").concat(l," = a_").concat(l.charAt(0).toUpperCase()+l.slice(1),`; + #else + `).concat(wg[l]," ").concat(l," = u_").concat(l,`; + #endif + + `)}),{"vs:#decl":n,"fs:#decl":a,"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 a=t.layer.getLayerConfig()[i],s=typeof a=="undefined"?Dw[i]:a;i==="stroke"&&(s=vi(s)),n["u_"+i]=s}}),n}},{key:"registerStyleAttribute",value:function(){var t=this;Object.keys(this.layer.encodeStyleAttribute).forEach(function(n){var i=kw(n);i&&(t.styleAttributeService.registerStyleAttribute(i),i.descriptor&&(i.descriptor.shaderLocation=Z0[n]))})}},{key:"updateEncodeAttribute",value:function(t,n){this.encodeStyleAttribute[t]=n}},{key:"initUniformsBuffer",value:function(){var t=this.getUniformsBufferInfo(this.getStyleAttribute()),n=this.getCommonUniformsInfo();t.uniformsLength!==0&&(this.attributeUnifoms=this.rendererService.createBuffer({data:new Float32Array(p1(t.uniformsLength)).fill(0),isUBO:!0}),this.uniformBuffers.push(this.attributeUnifoms)),n.uniformsLength!==0&&(this.commonUnifoms=this.rendererService.createBuffer({data:new Float32Array(p1(n.uniformsLength)).fill(0),isUBO:!0}),this.uniformBuffers.push(this.commonUnifoms))}},{key:"getUniformsBufferInfo",value:function(t){var n=0,i=[];return Object.values(t).forEach(function(a){Array.isArray(a)?(i.push.apply(i,(0,Qt.Z)(a)),n+=a.length):typeof a=="number"?(i.push(a),n+=1):typeof a=="boolean"&&(i.push(Number(a)),n+=1)}),{uniformsOption:t,uniformsLength:n,uniformsArray:i}}},{key:"getCommonUniformsInfo",value:function(){return{uniformsLength:0,uniformsArray:[],uniformsOption:{}}}},{key:"updateStyleUnifoms",value:function(){var t,n,i=this.getUniformsBufferInfo(this.getStyleAttribute()),a=i.uniformsArray,s=this.getCommonUniformsInfo(),l=s.uniformsArray;(t=this.attributeUnifoms)===null||t===void 0||t.subData({offset:0,data:new Uint8Array(new Float32Array(a).buffer)}),(n=this.commonUnifoms)===null||n===void 0||n.subData({offset:0,data:new Uint8Array(new Float32Array(l).buffer)})}}]),e}(),v1=Pi(z0.prototype,"configService",[d1],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z0),m1=100,KB=36,QB=40;function g1(e){return e/180*Math.acos(-1)}function y1(e){var r=g1(e[0])+Math.PI/2,t=g1(e[1]),n=m1+Math.random()*.4,i=n*Math.cos(t)*Math.cos(r),a=n*Math.cos(t)*Math.sin(r),s=n*Math.sin(t);return[a,s,i]}function JB(e,r){var t=mat4.create(),n=mat4.create(),i=vec3.fromValues(0,1,0),a=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,d=[],_=[],b=[],T=[],M=[],P=[],D=0;D<=l;D++){for(var G=D/l,q=G*Math.PI,se=0;se<=f;se++){var Se=se/f,Ve=Se*Math.PI*2;mat4.identity(n),mat4.rotateZ(n,n,-q),mat4.identity(t),mat4.rotateY(t,t,Ve),vec3.transformMat4(a,i,n),vec3.transformMat4(a,a,t),vec3.scale(a,a,-e),b.push(a.slice()),T.push.apply(T,_toConsumableArray(a.slice())),vec3.normalize(a,a),M.push.apply(M,_toConsumableArray(a.slice())),P.push([Se,1-G]),T.push(Se,1-G)}if(D>0)for(var nt=b.length,st=nt-2*(f+1);st+f+20&&arguments[0]!==void 0?arguments[0]:{};(0,Q.Z)(this,e),(0,F.Z)(this,"lastFlip",-1),(0,F.Z)(this,"miter",Dr.al(0,0)),(0,F.Z)(this,"started",!1),(0,F.Z)(this,"dash",!1),(0,F.Z)(this,"totalDistance",0),(0,F.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,a=n.startIndex,s=1;sthis.miterLimit&&(Gr=!0)}Gr?(M.push(this.normal[0],this.normal[1],0),M.push(Sr[0],Sr[1],0),T.push(a[0],a[1],a[2]|0,this.totalDistance,-this.thickness*_r,a[2]|0),this.complex.indexes.push(this.currentIndex),T.push(a[0],a[1],a[2]|0,this.totalDistance,this.thickness*_r,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,b.push.apply(b,(0,Qt.Z)(this.lastFlip!==-_r?[n,n+2,n+3]:[n+2,n+1,n+3])),b.push(n+2,n+3,n+4),Ip(Cg,Mp),Dr.JG(this.normal,Cg),M.push(this.normal[0],this.normal[1],0),T.push(a[0],a[1],a[2]|0,this.totalDistance,-this.thickness*_r,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,_+=3):(this.extrusions(T,M,a,Sr,Wt,this.totalDistance),b.push.apply(b,(0,Qt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),_r=-1,Dr.JG(this.normal,Sr),_+=2),this.lastFlip=_r}else{if(Ip(this.normal,Xs),P){var nt=Dr.Ue(),st=Dr.Ue();Dr.lu(st,Xs,this.normal),Dr.IH(nt,Xs,this.normal),M.push(st[0],st[1],0),M.push(nt[0],nt[1],0),T.push(a[0],a[1],a[2]|0,this.totalDistance,this.thickness,a[2]|0),this.complex.indexes.push(this.currentIndex),T.push(a[0],a[1],a[2]|0,this.totalDistance,this.thickness,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(T,M,a,this.normal,this.thickness,this.totalDistance);b.push.apply(b,(0,Qt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),_+=2}return _}},{key:"segment",value:function(t,n,i,a,s){var l=0,f=t.indices,d=t.positions,_=t.normals,b=this.cap==="square",T=this.join==="bevel",M=ja([a[0],a[1]]),P=ja([i[0],i[1]]);pv(Xs,M,P);var D=0;if(this.dash&&(D=this.lineSegmentDistance(M,P),this.totalDistance+=D),this.normal||(this.normal=Dr.Ue(),Ip(this.normal,Xs)),!this.started)if(this.started=!0,b){var G=Dr.Ue(),q=Dr.Ue();Dr.IH(G,this.normal,Xs),Dr.IH(q,this.normal,Xs),_.push(q[0],q[1],0),_.push(G[0],G[1],0),d.push(i[0],i[1],i[2]|0,this.totalDistance-D,-this.thickness,i[2]|0),this.complex.indexes.push(this.currentIndex),d.push(i[0],i[1],i[2]|0,this.totalDistance-D,this.thickness,i[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(d,_,i,this.normal,this.thickness,this.totalDistance-D);if(f.push(n+0,n+1,n+2),s){var Ve=ja([s[0],s[1]]);j0(M,Ve)&&Dr.IH(Ve,M,Dr.Fv(Ve,Dr.$X(Ve,M,P))),pv(Mp,Ve,M);var nt=V0(hv,Dr.Ue(),Xs,Mp,this.thickness),st=(0,_n.Z)(nt,2),at=st[0],At=st[1],Wt=Dr.AK(hv,this.normal)<0?-1:1,Sr=T;if(!Sr&&this.join==="miter"){var _r=at;_r>this.miterLimit&&(Sr=!0)}Sr?(_.push(this.normal[0],this.normal[1],0),_.push(At[0],At[1],0),d.push(a[0],a[1],a[2]|0,this.totalDistance,-this.thickness*Wt,a[2]|0),this.complex.indexes.push(this.currentIndex),d.push(a[0],a[1],a[2]|0,this.totalDistance,this.thickness*Wt,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,f.push.apply(f,(0,Qt.Z)(this.lastFlip!==-Wt?[n,n+2,n+3]:[n+2,n+1,n+3])),f.push(n+2,n+3,n+4),Ip(Cg,Mp),Dr.JG(this.normal,Cg),_.push(this.normal[0],this.normal[1],0),d.push(a[0],a[1],a[2]|0,this.totalDistance,-this.thickness*Wt,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++,l+=3):(this.extrusions(d,_,a,At,at,this.totalDistance),f.push.apply(f,(0,Qt.Z)(this.lastFlip===1?[n,n+2,n+3]:[n+2,n+1,n+3])),Wt=-1,Dr.JG(this.normal,At),l+=2),this.lastFlip=Wt}else{if(Ip(this.normal,Xs),b){var se=Dr.Ue(),Se=Dr.Ue();Dr.lu(Se,Xs,this.normal),Dr.IH(se,Xs,this.normal),_.push(Se[0],Se[1],0),_.push(se[0],se[1],0),d.push(a[0],a[1],a[2]|0,this.totalDistance,this.thickness,a[2]|0),this.complex.indexes.push(this.currentIndex),d.push(a[0],a[1],a[2]|0,this.totalDistance,this.thickness,a[2]|0),this.complex.indexes.push(this.currentIndex),this.currentIndex++}else this.extrusions(d,_,a,this.normal,this.thickness,this.totalDistance);f.push.apply(f,(0,Qt.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,a,s,l){n.push(a[0],a[1],0),n.push(a[0],a[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],a=n[1]-t[1];return Math.sqrt(i*i+a*a)}}]),e}(),La=U(54442);function Bw(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=ko().flatten(e),a=i.vertices,s=i.dimensions,l=[],f=[],d=0;d1&&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,a=ko().flatten(e),s=a.vertices,l=a.dimensions,f=[],d=[],_=[],b=0;b3&&arguments[3]!==void 0?arguments[3]:!1,i=La.create(),a=La.create(),s=La.create();n&&(e=xh(e),r=xh(r),t=xh(t));var l=La.fromValues.apply(La,(0,Qt.Z)(e)),f=La.fromValues.apply(La,(0,Qt.Z)(r)),d=La.fromValues.apply(La,(0,Qt.Z)(t));La.sub(i,d,f),La.sub(a,l,f),La.cross(s,i,a);var _=La.create();return La.normalize(_,s),_}var Wc,ym=function(e){return e.CYLINDER="cylinder",e.SQUARECOLUMN="squareColumn",e.TRIANGLECOLUMN="triangleColumn",e.HEXAGONCOLUMN="hexagonColumn",e.PENTAGONCOLUMN="pentagonColumn",e}({}),_m=function(e){return e.CIRCLE="circle",e.SQUARE="square",e.TRIANGLE="triangle",e.HEXAGON="hexagon",e.PENTAGON="pentagon",e}({});function xm(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(Rg&&Rg[e])return Rg[e];var t=dv[e]?dv[e]():dv.cylinder(),n=_1([t],r);return Rg[e]=n,n}function iF(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),a,s,l,f=vec3.create(),d=vec3.create(),_=vec3.create(),b=0,T=r.length;b 0.0 && v_worldDis < u_cityMinSize) { + float r = fract(((v_worldDis/u_cityMinSize) - u_time * u_circleSweepSpeed) * 2.0); + outputColor.rgb += r * r * u_circleSweepColor.rgb; + } + + outputColor.a *= u_opacity; + outputColor = filterColor(outputColor); +} +`,Qw=`precision highp float; + +#define ambientRatio 0.5 +#define diffuseRatio 0.3 +#define specularRatio 0.2 + +layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in float a_Size; +layout(location = 13) in vec3 a_Normal; +layout(location = 14) in vec2 a_Uv; + +out vec2 v_texCoord; +out vec4 v_Color; +out float v_worldDis; + +layout(std140) uniform commonUniforms { + vec4 u_baseColor : [ 1.0, 0, 0, 1.0 ]; + vec4 u_brightColor : [ 1.0, 0, 0, 1.0 ]; + vec4 u_windowColor : [ 1.0, 0, 0, 1.0 ]; + vec4 u_circleSweepColor; + vec2 u_cityCenter; + float u_circleSweep; + float u_cityMinSize; + float u_circleSweepSpeed; + float u_opacity: 1.0; + float u_near : 0; + float u_far : 1; + float u_time; +}; +#pragma include "projection" +#pragma include "light" +#pragma include "picking" + + +void main() { + vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0); + vec4 project_pos = project_position(pos); + + v_texCoord = a_Uv; + + if(u_circleSweep > 0.0) { + vec2 lnglatscale = vec2(0.0); + if(u_CoordinateSystem != COORDINATE_SYSTEM_P20_2) { + lnglatscale = (a_Position.xy - u_cityCenter) * vec2(0.0, 0.135); + } + v_worldDis = length(a_Position.xy + lnglatscale - u_cityCenter); + } + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * (vec4(project_pos.xyz, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); + } + + float lightWeight = calc_lighting(pos); + // v_Color = a_Color; + v_Color = vec4(a_Color.rgb * lightWeight, a_Color.w); + + setPickingColor(a_PickingColor); +} +`,Jw=function(e){(0,Fe.Z)(t,e);var r=Yw(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"getCommonUniformsInfo",value:function(){var i=this.layer.getLayerConfig(),a=i.opacity,s=a===void 0?1:a,l=i.baseColor,f=l===void 0?"rgb(16,16,16)":l,d=i.brightColor,_=d===void 0?"rgb(255,176,38)":d,b=i.windowColor,T=b===void 0?"rgb(30,60,89)":b,M=i.time,P=M===void 0?0:M,D=i.sweep,G=D===void 0?{enable:!1,sweepRadius:1,sweepColor:"rgb(255, 255, 255)",sweepSpeed:.4,sweepCenter:this.cityCenter}:D,q={u_baseColor:vi(f),u_brightColor:vi(_),u_windowColor:vi(T),u_circleSweepColor:[].concat((0,Qt.Z)(vi(G.sweepColor).slice(0,3)),[1]),u_cityCenter:G.sweepCenter||this.cityCenter,u_circleSweep:G.enable?1:0,u_cityMinSize:this.cityMinSize*G.sweepRadius,u_circleSweepSpeed:G.sweepSpeed,u_opacity:s,u_near:0,u_far:1,u_time:this.layer.getLayerAnimateTime()||P},se=this.getUniformsBufferInfo(q);return se}},{key:"calCityGeo",value:function(){var i=(0,_n.Z)(this.layer.getSource().extent,4),a=i[0],s=i[1],l=i[2],f=i[3];if(this.mapService.version==="GAODE2.x"){this.cityCenter=this.mapService.lngLatToCoord([(l+a)/2,(f+s)/2]);var d=this.mapService.lngLatToCoord([l,f]),_=this.mapService.lngLatToCoord([a,s]);this.cityMinSize=Math.sqrt(Math.pow(d[0]-_[0],2)+Math.pow(d[1]-_[1],2))/4}else{var b=l-a,T=f-s;this.cityCenter=[(l+a)/2,(f+s)/2],this.cityMinSize=Math.sqrt(Math.pow(b,2)+Math.pow(T,2))/4}}},{key:"initModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){return _e().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.calCityGeo(),this.initUniformsBuffer(),this.startModelAnimate(),l.abrupt("return",this.buildModels());case 4:case"end":return l.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){var s;return _e().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,this.layer.buildLayerModel({moduleName:"cityBuilding",vertexShader:Qw,fragmentShader:Kw,triangulation:X0,depth:{enable:!0},inject:this.getInject(),cull:{enable:!0,face:I.BACK}});case 2:return s=f.sent,f.abrupt("return",[s]);case 4:case"end":return f.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"normal",type:In.Attribute,descriptor:{name:"a_Normal",shaderLocation:Yn.NORMAL,buffer:{usage:I.STATIC_DRAW,data:[],type:I.FLOAT},size:3,update:function(a,s,l,f,d){return d}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:In.Attribute,descriptor:{name:"a_Size",shaderLocation:Yn.SIZE,buffer:{usage:I.DYNAMIC_DRAW,data:[],type:I.FLOAT},size:1,update:function(a){var s=a.size,l=s===void 0?10:s;return Array.isArray(l)?[l[0]]:[l]}}}),this.styleAttributeService.registerStyleAttribute({name:"uv",type:In.Attribute,descriptor:{name:"a_Uv",shaderLocation:Yn.UV,buffer:{usage:I.DYNAMIC_DRAW,data:[],type:I.FLOAT},size:2,update:function(a,s,l){return[l[3],l[4]]}}})}}]),t}(Na);function eC(e){var r=tC();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function tC(){if(typeof Reflect=="undefined"||!Reflect.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,Fe.Z)(t,e);var r=eC(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,a=new Array(i),s=0;s 1 \u7684 uv \u8F6C\u6362\u4E3A -1 -> 1 \u7684\u6807\u51C6\u5750\u6807\u7A7A\u95F4\uFF08NDC\uFF09 + + vec4 p1 = vec4(pos, 0.0, 1.0); // x/y \u5E73\u9762\u4E0A\u7684\u70B9\uFF08z == 0\uFF09\u53EF\u4EE5\u8BA4\u4E3A\u662F\u4E09\u7EF4\u4E0A\u7684\u70B9\u88AB\u6295\u5F71\u5230\u5E73\u9762\u540E\u7684\u70B9 + vec4 p2 = vec4(pos, 1.0, 1.0); // \u5E73\u884C\u4E8Ex/y\u5E73\u9762\u3001z==1 \u7684\u5E73\u9762\u4E0A\u7684\u70B9 + + vec4 inverseP1 = u_InverseViewProjectionMatrix * p1; // \u6839\u636E\u89C6\u56FE\u6295\u5F71\u77E9\u9635\u7684\u9006\u77E9\u9635\u5E73\u9762\u4E0A\u7684\u53CD\u7B97\u51FA\u4E09\u7EF4\u7A7A\u95F4\u4E2D\u7684\u70B9\uFF08p1\u5E73\u9762\u4E0A\u7684\u70B9\uFF09 + vec4 inverseP2 = u_InverseViewProjectionMatrix * p2; + + inverseP1 = inverseP1 / inverseP1.w; // \u5F52\u4E00\u5316\u64CD\u4F5C\uFF08\u5F52\u4E00\u5316\u540E\u4E3A\u4E16\u754C\u5750\u6807\uFF09 + inverseP2 = inverseP2 / inverseP2.w; + + float zPos = (0.0 - inverseP1.z) / (inverseP2.z - inverseP1.z); // ?? + vec4 position = inverseP1 + zPos * (inverseP2 - inverseP1); + + vec4 b= vec4(0.5000, 0.0, 1.0, 0.5000); + float fh; + + v_intensity = texture(SAMPLER_2D(u_texture), v_texCoord).r; + fh = toBezier(v_intensity, b).y; + gl_Position = u_ViewProjectionMatrixUncentered * vec4(position.xy, fh * project_pixel(50.), 1.0); + +} +`,yC=`uniform sampler2D u_texture; // \u70ED\u529B\u5F3A\u5EA6\u56FE +uniform sampler2D u_colorTexture; // \u6839\u636E\u5F3A\u5EA6\u5206\u5E03\u7684\u8272\u5E26 + +layout(std140) uniform commonUniforms { + float u_opacity; + float u_common_uniforms_padding1; + float u_common_uniforms_padding2; + float u_common_uniforms_padding3; +}; +in vec2 v_texCoord; +out vec4 outputColor; + +#pragma include "scene_uniforms" + +float getBlurIndusty() { + float vW = 2.0/ u_ViewportSize.x; + float vH = 2.0/ u_ViewportSize.y; + vec2 vUv = v_texCoord; + float i11 = texture(SAMPLER_2D(u_texture), vec2( vUv.x - 1.0 * vW, vUv.y + 1.0 * vH) ).r; + float i12 = texture(SAMPLER_2D(u_texture), vec2( vUv.x - 0.0 * vW, vUv.y + 1.0 * vH) ).r; + float i13 = texture(SAMPLER_2D(u_texture), vec2( vUv.x + 1.0 * vW, vUv.y + 1.0 * vH) ).r; + + float i21 = texture(SAMPLER_2D(u_texture), vec2( vUv.x - 1.0 * vW, vUv.y) ).r; + float i22 = texture(SAMPLER_2D(u_texture), vec2( vUv.x , vUv.y) ).r; + float i23 = texture(SAMPLER_2D(u_texture), vec2( vUv.x + 1.0 * vW, vUv.y) ).r; + + float i31 = texture(SAMPLER_2D(u_texture), vec2( vUv.x - 1.0 * vW, vUv.y-1.0*vH) ).r; + float i32 = texture(SAMPLER_2D(u_texture), vec2( vUv.x - 0.0 * vW, vUv.y-1.0*vH) ).r; + float i33 = texture(SAMPLER_2D(u_texture), vec2( vUv.x + 1.0 * vW, vUv.y-1.0*vH) ).r; + + return( + i11 + + i12 + + i13 + + i21 + + i21 + + i22 + + i23 + + i31 + + i32 + + i33 + )/9.0; +} + + +void main(){ + // float intensity = texture(u_texture, v_texCoord).r; + float intensity = getBlurIndusty(); + vec4 color = texture(SAMPLER_2D(u_colorTexture), vec2(intensity, 0.0)); + outputColor = color; + outputColor.a = color.a * smoothstep(0.,0.1,intensity) * u_opacity; +} +`,_C=` +layout(location = 0) in vec3 a_Position; +layout(location = 14) in vec2 a_Uv; + +layout(std140) uniform commonUniforms { + float u_opacity; + float u_common_uniforms_padding1; + float u_common_uniforms_padding2; + float u_common_uniforms_padding3; +}; + +#pragma include "scene_uniforms" + +out vec2 v_texCoord; +void main() { + v_texCoord = a_Uv; + + gl_Position = vec4(a_Position.xy, 0, 1.); +} +`,xC=`layout(std140) uniform commonUniforms { + float u_radius; + float u_intensity; + float u_common_uniforms_padding1; + float u_common_uniforms_padding2; +}; + +in float v_weight; +in vec2 v_extrude; +out vec4 outputColor; +#define GAUSS_COEF 0.3989422804014327 +void main(){ + float d = -0.5 * 3.0 * 3.0 * dot(v_extrude, v_extrude); + float val = v_weight * u_intensity * GAUSS_COEF * exp(d); + outputColor = vec4(val, 1., 1., 1.); +} +`,bC=`layout(location = 0) in vec3 a_Position; +layout(location = 9) in float a_Size; +layout(location = 10) in vec2 a_Dir; + + +layout(std140) uniform commonUniforms { + float u_radius; + float u_intensity; + float u_common_uniforms_padding1; + float u_common_uniforms_padding2; +}; + +out vec2 v_extrude; +out float v_weight; + + +#define GAUSS_COEF 0.3989422804014327 + +#pragma include "projection" + +void main(){ + v_weight = a_Size; + float ZERO = 1.0 / 255.0 / 16.0; + float extrude_x = a_Dir.x * 2.0 -1.0; + float extrude_y = a_Dir.y * 2.0 -1.0; + vec2 extrude_dir = normalize(vec2(extrude_x,extrude_y)); + float S = sqrt(-2.0 * log(ZERO / a_Size / u_intensity / GAUSS_COEF)) / 2.5; + v_extrude = extrude_dir * S; + + vec2 offset = project_pixel(v_extrude * u_radius); + vec4 project_pos = project_position(vec4(a_Position.xy, 0.0, 1.0)); + + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0)); + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * (vec4(project_pos.xy + offset, 0.0, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, 0.0, 1.0)); + } +} +`,EC=ui.isEqual,I1=(R1=(0,er.b2)(),R1(M1=function(e){(0,Fe.Z)(t,e);var r=dC(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,a=new Array(i),s=0;s0&&arguments[0]!==void 0?arguments[0]:{},s=this.getModelType();return s==="heatmap"?(this.layerModel&&this.layerModel.render(a),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(a)})}),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,a=this.styleAttributeService.getLayerStyleAttribute("shape"),s=this.getLayerConfig(),l=s.shape3d,f=this.getSource(),d=f.data.type,_=(a==null||(i=a.scale)===null||i===void 0?void 0:i.field)||"heatmap";return _==="heatmap"||_==="heatmap3d"?"heatmap":d==="hexagon"?(l==null?void 0:l.indexOf(_))===-1?"hexagon":"grid3d":d==="grid"?(l==null?void 0:l.indexOf(_))===-1?"grid":"grid3d":"heatmap"}}]),t}(Rp);function kC(e){var r=DC();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function DC(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var LC=`uniform sampler2D u_texture; +layout(std140) uniform commonUniforms { + float u_opacity:1.0; + float u_brightness:1.0; + float u_contrast:1.0; + float u_saturation:1.0; + float u_gamma:1.0; +}; + +in vec2 v_texCoord; +out vec4 outputColor; +vec3 setContrast(vec3 rgb, float contrast) { + vec3 color = mix(vec3(0.5), rgb, contrast); + color = clamp(color, 0.0, 1.0); + return color; +} +vec3 setSaturation(vec3 rgb, float adjustment) { + const vec3 grayVector = vec3(0.2125, 0.7154, 0.0721); + vec3 intensity = vec3(dot(rgb, grayVector)); + vec3 color = mix(intensity, rgb, adjustment); + color = clamp(color, 0.0, 1.0); + return color; +} +void main() { + vec4 color = texture(SAMPLER_2D(u_texture),vec2(v_texCoord.x,v_texCoord.y)); + //brightness + color.rgb = mix(vec3(0.0, 0.0, 0.0), color.rgb, u_brightness); + //contrast + color.rgb = setContrast(color.rgb, u_contrast); + // saturation + color.rgb = setSaturation(color.rgb, u_saturation); + // gamma + color.rgb = pow(color.rgb, vec3(u_gamma)); + outputColor = color; + outputColor.a *= u_opacity; + if(outputColor.a < 0.01) + discard; +} +`,BC=`layout(location = 0) in vec3 a_Position; +layout(location = 14) in vec2 a_Uv; + +layout(std140) uniform commonUniforms { + float u_opacity:1.0; + float u_brightness:1.0; + float u_contrast:1.0; + float u_saturation:1.0; + float u_gamma:1.0; +}; + +out vec2 v_texCoord; +#pragma include "projection" +void main() { + v_texCoord = a_Uv; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); + +} +`,FC=function(e){(0,Fe.Z)(t,e);var r=kC(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"getCommonUniformsInfo",value:function(){var i=this.layer.getLayerConfig(),a=i.color,s=a===void 0?"rgb(255,255,255)":a,l=i.opacity,f=i.brightness,d=i.contrast,_=i.saturation,b=i.gamma,T=vi(s),M={u_opacity:vl(l,1),u_brightness:vl(f,1),u_contrast:vl(d,1),u_saturation:vl(_,1),u_gamma:vl(b,1)};this.textures=[this.texture];var P=this.getUniformsBufferInfo(M);return P}},{key:"initModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){return _e().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,this.loadTexture();case 2:return l.abrupt("return",this.buildModels());case 3:case"end":return l.stop()}},a,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:"loadTexture",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){var s,l,f;return _e().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return s=this.rendererService.createTexture2D,this.texture=s({height:0,width:0}),l=this.layer.getSource(),_.next=5,l.data.images;case 5:f=_.sent,this.texture=s({data:f[0],width:f[0].width,height:f[0].height,mag:I.LINEAR,min:I.LINEAR});case 7:case"end":return _.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){var s;return _e().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return this.initUniformsBuffer(),f.next=3,this.layer.buildLayerModel({moduleName:"rasterImage",vertexShader:BC,fragmentShader:LC,triangulation:Ig,primitive:I.TRIANGLES,blend:{enable:!0},depth:{enable:!1}});case 3:return s=f.sent,f.abrupt("return",[s]);case 5:case"end":return f.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"uv",type:In.Attribute,descriptor:{name:"a_Uv",shaderLocation:Yn.UV,buffer:{usage:I.DYNAMIC_DRAW,data:[],type:I.FLOAT},size:2,update:function(a,s,l){return[l[3],l[4]]}}})}}]),t}(Na),NC={image:FC},UC=NC;function zC(e){var r=ZC();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function ZC(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var P1=function(e){(0,Fe.Z)(t,e);var r=zC(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,a=new Array(i),s=0;s (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z))) { + discard; + }; + } + float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 + outputColor = v_color; + if(u_animate.x == Animate && u_line_texture != LineTexture) { + animateSpeed = u_time / u_animate.y; + float alpha =1.0 - fract( mod(1.0- v_lineData.b, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y); + alpha = (alpha + u_animate.w -1.0) / u_animate.w; + // alpha = smoothstep(0., 1., alpha); + alpha = clamp(alpha, 0.0, 1.0); + outputColor.a *= alpha; + } + + // \u5F53\u5B58\u5728\u8D34\u56FE\u65F6\u5728\u5E95\u8272\u4E0A\u8D34\u4E0A\u8D34\u56FE + if(u_line_texture == LineTexture) { // while load texture + float arcRadio = smoothstep( 0.0, 1.0, (v_lineData.r / segmentNumber)); + // float arcRadio = smoothstep( 0.0, 1.0, d_distance_ratio); + + float count = v_lineData.g; // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + + float time = 0.0; + if(u_animate.x == Animate) { + time = u_time / u_animate.y; + } + float redioCount = arcRadio * count; + + float u = fract(redioCount - time); + float v = v_lineData.a; // \u6A2A\u5411 v + vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; + + vec4 pattern = texture(SAMPLER_2D(u_texture), uv); + + if(u_animate.x == Animate) { + float currentPlane = floor(redioCount - time); + float textureStep = floor(count * u_animate.z); + float a = mod(currentPlane, textureStep); + if(a < textureStep - 1.0) { + pattern = vec4(0.0); + } + } + + if(u_textureBlend == 0.0) { // normal + pattern.a = 0.0; + outputColor = filterColor(outputColor + pattern); + } else { // replace + pattern.a *= v_color.a; + if(outputColor.a <= 0.0) { + pattern.a = 0.0; + } + outputColor = filterColor(pattern); + } + + } else { + outputColor = filterColor(outputColor); + } +}`,WC=`#define Animate 0.0 +#define LineTexture 1.0 +layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in float a_Size; +layout(location = 12) in vec4 a_Instance; +layout(location = 14) in vec2 a_iconMapUV; + +layout(std140) uniform commonUniorm { + vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; + vec4 u_dash_array; + vec4 u_sourceColor; + vec4 u_targetColor; + vec2 u_textSize; + float segmentNumber; + float u_lineDir: 1.0; + float u_icon_step: 100; + float u_line_texture: 0.0; + float u_textureBlend; + float u_blur : 0.9; + float u_line_type: 0.0; + float u_time; + float u_linearColor: 0.0; +}; +out vec4 v_color; +out vec2 v_iconMapUV; +out vec4 v_lineData; +//dash +out vec4 v_dash_array; +out float v_distance_ratio; + + +#pragma include "projection" +#pragma include "project" +#pragma include "picking" + +float bezier3(vec3 arr, float t) { + float ut = 1. - t; + return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; +} +vec2 midPoint(vec2 source, vec2 target, float arcThetaOffset) { + vec2 center = target - source; + float r = length(center); + float theta = atan(center.y, center.x); + float thetaOffset = arcThetaOffset; + float r2 = r / 2.0 / cos(thetaOffset); + float theta2 = theta + thetaOffset; + vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); + if(u_lineDir == 1.0) { // \u6B63\u5411 + return mid; + } else { // \u9006\u5411 + // (mid + vmin)/2 = (s + t)/2 + vec2 vmid = source + target - mid; + return vmid; + } + // return mid; +} +float getSegmentRatio(float index) { + // dash: index / (segmentNumber - 1.); + // normal: smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); + return smoothstep(0.0, 1.0, index / (segmentNumber - 1.)); + // return index / (segmentNumber - 1.); +} +vec2 interpolate (vec2 source, vec2 target, float t, float arcThetaOffset) { + // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation + vec2 mid = midPoint(source, target, arcThetaOffset); + vec3 x = vec3(source.x, mid.x, target.x); + vec3 y = vec3(source.y, mid.y, target.y); + return vec2(bezier3(x ,t), bezier3(y,t)); +} +vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; + return offset; +} +vec2 getNormal(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); +} + +void main() { + //vs\u4E2D\u8BA1\u7B97\u6E10\u53D8\u8272 + if(u_linearColor==1.0){ + float d_segmentIndex = a_Position.x + 1.0; // \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u4F4D\u7F6E + v_color = mix(u_sourceColor, u_targetColor, d_segmentIndex/segmentNumber); + } + else{ + v_color = a_Color; + } + v_color.a = v_color.a * opacity; + + vec2 source = a_Instance.rg; // \u8D77\u59CB\u70B9 + vec2 target = a_Instance.ba; // \u7EC8\u70B9 + + + + float segmentIndex = a_Position.x; + float segmentRatio = getSegmentRatio(segmentIndex); + + //\u8BA1\u7B97dashArray\u548CdistanceRatio \u8F93\u51FA\u5230\u7247\u5143 + vec2 s = source; + vec2 t = target; + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + s = unProjCustomCoord(source); + t = unProjCustomCoord(target); + } + float total_Distance = pixelDistance(s, t) / 2.0 * PI; + v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / total_Distance; + v_distance_ratio = segmentIndex / segmentNumber; + + float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); + float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); + float d_distance_ratio; + + if(u_animate.x == Animate) { + d_distance_ratio = segmentIndex / segmentNumber; + if(u_lineDir != 1.0) { + d_distance_ratio = 1.0 - d_distance_ratio; + } + } + + v_lineData.b = d_distance_ratio; + + vec4 curr = project_position(vec4(interpolate(source, target, segmentRatio, thetaOffset), 0.0, 1.0)); + vec4 next = project_position(vec4(interpolate(source, target, nextSegmentRatio, thetaOffset), 0.0, 1.0)); + + + vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); + + + float d_segmentIndex = a_Position.x + 1.0; // \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u4F4D\u7F6E + v_lineData.r = d_segmentIndex; + + if(LineTexture == u_line_texture) { // \u5F00\u542F\u8D34\u56FE\u6A21\u5F0F + + float arcDistrance = length(source - target); // \u8D77\u59CB\u70B9\u548C\u7EC8\u70B9\u7684\u8DDD\u79BB + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20) { // amap + arcDistrance *= 1000000.0; + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { // mapbox + // arcDistrance *= 8.0; + arcDistrance = project_pixel_allmap(arcDistrance); + } + v_iconMapUV = a_iconMapUV; + + float pixelLen = project_pixel_texture(u_icon_step); // \u8D34\u56FE\u6CBF\u5F27\u7EBF\u65B9\u5411\u7684\u957F\u5EA6 - \u968F\u5730\u56FE\u7F29\u653E\u6539\u53D8 + float texCount = floor(arcDistrance/pixelLen); // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + v_lineData.g = texCount; + + float lineOffsetWidth = length(offset + offset * sign(a_Position.y)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB + float linePixelSize = project_pixel(a_Size); // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB + v_lineData.a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + } + + gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + offset, 0, 1.0)); + + setPickingColor(a_PickingColor); +} +`,GC={solid:0,dash:1},lF=ui.isNumber,XC=function(e){(0,Fe.Z)(t,e);var r=VC(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,a=new Array(i),s=0;s (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { + flag = 1.; + } + outputColor.a *=flag; + } + + if(u_animate.x == Animate && u_line_texture != LineTexture) { + animateSpeed = u_time / u_animate.y; + float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y); + + alpha = (alpha + u_animate.w -1.0) / u_animate.w; + // alpha = smoothstep(0., 1., alpha); + alpha = clamp(alpha, 0.0, 1.0); + outputColor.a *= alpha; + + // u_animate + // x enable + // y duration + // z interval + // w trailLength + } + + if(u_line_texture == LineTexture && u_line_type != LineTypeDash) { // while load texture + // float arcRadio = smoothstep( 0.0, 1.0, (v_segmentIndex / segmentNumber)); + float arcRadio = v_segmentIndex / (segmentNumber - 1.0); + float count = v_line_data.b; // // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + + float time = 0.0; + if(u_animate.x == Animate) { + time = u_time / u_animate.y; + } + float redioCount = arcRadio * count; + + float u = fract(redioCount - time); + + float v = v_line_data.a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; + vec4 pattern = texture(SAMPLER_2D(u_texture), uv); + + if(u_animate.x == Animate) { + float currentPlane = floor(redioCount - time); + float textureStep = floor(count * u_animate.z); + float a = mod(currentPlane, textureStep); + if(a < textureStep - 1.0) { + pattern = vec4(0.0); + } + } + + if(u_textureBlend == 0.0) { // normal + pattern.a = 0.0; + outputColor = filterColor(outputColor + pattern); + } else { // replace + pattern.a *= v_color.a; + if(outputColor.a <= 0.0) { + pattern.a = 0.0; + discard; + } else { + outputColor = filterColor(pattern); + } + } + + } else { + outputColor = filterColor(outputColor); + } +} +`,KC=`#define LineTypeSolid 0.0 +#define LineTypeDash 1.0 +#define Animate 0.0 +#define LineTexture 1.0 +layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in float a_Size; +layout(location = 12) in vec4 a_Instance; +layout(location = 14) in vec2 a_iconMapUV; + + +layout(std140) uniform commonUniorm { + vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; + vec4 u_dash_array: [10.0, 5., 0, 0]; + vec4 u_sourceColor; + vec4 u_targetColor; + vec2 u_textSize; + float u_globel; + float u_globel_radius; + float u_global_height: 10; + float segmentNumber; + float u_line_type: 0.0; + float u_icon_step: 100; + float u_line_texture: 0.0; + float u_textureBlend; + float u_time; + float u_linearColor: 0.0; +}; +out vec4 v_color; +out vec4 v_dash_array; +out float v_segmentIndex; +out vec2 v_iconMapUV; +out vec4 v_line_data; + +#pragma include "projection" +#pragma include "project" +#pragma include "picking" + +float maps (float value, float start1, float stop1, float start2, float stop2) { + return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); +} + +float getSegmentRatio(float index) { + return smoothstep(0.0, 1.0, index / (segmentNumber - 1.0)); +} + +float paraboloid(vec2 source, vec2 target, float ratio) { + vec2 x = mix(source, target, ratio); + vec2 center = mix(source, target, 0.5); + float dSourceCenter = distance(source, center); + float dXCenter = distance(x, center); + return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter); +} + +vec3 getPos(vec2 source, vec2 target, float segmentRatio) { + float vertex_height = paraboloid(source, target, segmentRatio); + + return vec3( + mix(source, target, segmentRatio), + sqrt(max(0.0, vertex_height)) + ); +} +vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + + vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size) / 2.0; + + return offset; +} +vec2 getNormal(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); +} + +float torad(float deg) { + return (deg / 180.0) * acos(-1.0); +} + +vec3 lglt2xyz(vec2 lnglat) { + float pi = 3.1415926; + // + Math.PI/2 \u662F\u4E3A\u4E86\u5BF9\u9F50\u5750\u6807 + float lng = torad(lnglat.x) + pi / 2.0; + float lat = torad(lnglat.y); + + // \u624B\u52A8\u589E\u52A0\u4E00\u4E9B\u504F\u79FB\uFF0C\u51CF\u8F7B\u9762\u7684\u51B2\u7A81 + float radius = u_globel_radius; + + float z = radius * cos(lat) * cos(lng); + float x = radius * cos(lat) * sin(lng); + float y = radius * sin(lat); + return vec3(x, y, z); +} + +void main() { + //vs\u4E2D\u8BA1\u7B97\u6E10\u53D8\u8272 + if(u_linearColor==1.0){ + float d_segmentIndex = a_Position.x + 1.0; // \u5F53\u524D\u9876\u70B9\u5728\u5F27\u7EBF\u4E2D\u6240\u5904\u7684\u5206\u6BB5\u4F4D\u7F6E + v_color = mix(u_sourceColor, u_targetColor, d_segmentIndex/segmentNumber); + } + else{ + v_color = a_Color; + } + v_color.a = v_color.a * opacity; + vec2 source = project_position(vec4(a_Instance.rg, 0, 0)).xy; + vec2 target = project_position(vec4(a_Instance.ba, 0, 0)).xy; + float segmentIndex = a_Position.x; + float segmentRatio = getSegmentRatio(segmentIndex); + float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); + + float d_distance_ratio; + if(u_line_type == LineTypeDash) { + d_distance_ratio = segmentIndex / segmentNumber; + vec2 s = source; + vec2 t = target; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + s = unProjCustomCoord(source); + t = unProjCustomCoord(target); + } + float total_Distance = pixelDistance(s, t) / 2.0 * PI; + v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / (total_Distance / segmentNumber * segmentIndex); + } + if(u_animate.x == Animate) { + d_distance_ratio = segmentIndex / segmentNumber; + } + v_line_data.g = d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + + float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); + vec3 curr = getPos(source, target, segmentRatio); + vec3 next = getPos(source, target, nextSegmentRatio); + vec2 offset = getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y); + // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); + + + v_segmentIndex = a_Position.x; + if(LineTexture == u_line_texture && u_line_type != LineTypeDash) { // \u5F00\u542F\u8D34\u56FE\u6A21\u5F0F + + float arcDistrance = length(source - target); + float pixelLen = project_pixel_texture(u_icon_step); + v_line_data.b = floor(arcDistrance/pixelLen); // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + + vec2 projectOffset = project_pixel(offset); + float lineOffsetWidth = length(projectOffset + projectOffset * sign(a_Position.y)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB + float linePixelSize = project_pixel(a_Size); // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB + v_line_data.a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + + v_iconMapUV = a_iconMapUV; + } + + + gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + project_pixel(offset), curr.z * thetaOffset, 1.0)); + + // \u5730\u7403\u6A21\u5F0F + if(u_globel > 0.0) { + vec3 startLngLat = lglt2xyz(a_Instance.rg); + vec3 endLngLat = lglt2xyz(a_Instance.ba); + float globalRadius = length(startLngLat); + + vec3 lineDir = normalize(endLngLat - startLngLat); + vec3 midPointDir = normalize((startLngLat + endLngLat)/2.0); + + // \u7EBF\u7684\u504F\u79FB + vec3 lnglatOffset = cross(lineDir, midPointDir) * a_Position.y; + // \u8BA1\u7B97\u8D77\u59CB\u70B9\u548C\u7EC8\u6B62\u70B9\u7684\u8DDD\u79BB + float lnglatLength = length(a_Instance.rg - a_Instance.ba)/50.0; + // \u8BA1\u7B97\u98DE\u7EBF\u5404\u4E2A\u8282\u70B9\u76F8\u5E94\u7684\u9AD8\u5EA6 + float lineHeight = u_global_height * (-4.0*segmentRatio*segmentRatio + 4.0 * segmentRatio) * lnglatLength; + // \u5730\u7403\u70B9\u4F4D + vec3 globalPoint = normalize(mix(startLngLat, endLngLat, segmentRatio)) * (globalRadius + lineHeight) + lnglatOffset * a_Size; + + gl_Position = u_ViewProjectionMatrix * vec4(globalPoint, 1.0); + } + + + setPickingColor(a_PickingColor); +} +`,QC={solid:0,dash:1},O1=function(e){(0,Fe.Z)(t,e);var r=$C(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,a=new Array(i),s=0;s1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2?arguments[2]:void 0,n=(0,Hs.Z)(t.source)==="object"?t.source.type:t.source,i=(0,Hs.Z)(t.target)==="object"?t.target.type:t.target,a=(0,Hs.Z)(t.source)==="object"?t.source:{},s=a.width,l=s===void 0?n?k1[n]:0:s,f=a.height,d=f===void 0?2:f,_=(0,Hs.Z)(t.target)==="object"?t.target:{},b=_.width,T=b===void 0?i?k1[i]:0:b,M=_.height,P=M===void 0?2:M;return{vertices:[0,Vl,1*l].concat((0,Qt.Z)(e),[1,Vl,-1*T],(0,Qt.Z)(e),[1,-Vl,-1*T],(0,Qt.Z)(e),[0,-Vl,1*l],(0,Qt.Z)(e),[0,Vl,1*l],(0,Qt.Z)(e),[1,Vl,-1*T],(0,Qt.Z)(e),[1,-Vl,-1*T],(0,Qt.Z)(e),[0,-Vl,1*l],(0,Qt.Z)(e)),outLineIndices:[0,1,2,0,2,3].map(function(D){return D+r}),indices:[4,5,6,4,6,7].map(function(D){return D+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,Hs.Z)(e)==="object"?e.type:e,n=r==="source"?1:-1,i=(0,Hs.Z)(e)==="object"?e:{};switch(t){case"circle":return i3(n,i);case"triangle":return e3(n,i);case"diamond":return r3(n,i);case"rect":return t3(n,i);case"classic":return n3(n,i);case"halfTriangle":return JC(n,i);default:return{vertices:[],indices:[],normals:[],dimensions:2,outLineIndices:[],outLineNormals:[]}}}function o3(e){var r=e.coordinates.flat(),t=1,n=1;return{vertices:[1,0,0].concat((0,Qt.Z)(r),[1,2,-3],(0,Qt.Z)(r),[1,1,-3],(0,Qt.Z)(r),[0,1,0],(0,Qt.Z)(r),[0,0,0],(0,Qt.Z)(r),[1,0,0],(0,Qt.Z)(r),[1,2,-3],(0,Qt.Z)(r),[1,1,-3],(0,Qt.Z)(r),[0,1,0],(0,Qt.Z)(r),[0,0,0],(0,Qt.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 s3(e,r){return r?u3(e,r):o3(e)}function u3(e,r){var t=e.coordinates.flat(),n=r,i=n.target,a=i===void 0?"classic":i,s=n.source,l=s===void 0?"circle":s,f=L1(D1(l,"source"),t,0,0),d=a3(t,f.vertices.length/7,r),_=L1(D1(a,"target"),t,1,f.vertices.length/7+d.vertices.length/7),b={vertices:[].concat((0,Qt.Z)(f.vertices),(0,Qt.Z)(d.vertices),(0,Qt.Z)(_.vertices)),indices:[].concat((0,Qt.Z)(f.outLineIndices),(0,Qt.Z)(d.outLineIndices),(0,Qt.Z)(_.outLineIndices),(0,Qt.Z)(f.indices),(0,Qt.Z)(d.indices),(0,Qt.Z)(_.indices)),normals:[].concat((0,Qt.Z)(f.normals),(0,Qt.Z)(d.normals),(0,Qt.Z)(_.normals)),size:7};return b}function L1(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=[],a=e.vertices,s=e.indices,l=e.dimensions,f=e.outLineIndices,d=0;d (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z)) { + // \u5B9E\u7EBF\u90E8\u5206 + } else { + // \u865A\u7EBF\u90E8\u5206 + discard; + }; + } + + // \u8BBE\u7F6E\u5F27\u7EBF\u7684\u52A8\u753B\u6A21\u5F0F + if(u_animate.x == Animate) { + animateSpeed = u_time / u_animate.y; + float alpha =1.0 - fract( mod(1.0- v_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + u_time / u_animate.y); + alpha = (alpha + u_animate.w -1.0) / u_animate.w; + alpha = smoothstep(0., 1., alpha); + outputColor.a *= alpha; + } + + // \u8BBE\u7F6E\u5F27\u7EBF\u7684\u8D34\u56FE + if(LineTexture == u_line_texture && u_line_type != LineTypeDash) { + float arcRadio = smoothstep( 0.0, 1.0, (d_segmentIndex / (segmentNumber - 1.0))); + // float arcRadio = d_segmentIndex / (segmentNumber - 1.0); + float count = v_line_data.b; // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + float u = fract(arcRadio * count - animateSpeed * count); + // float u = fract(arcRadio * count - animateSpeed); + if(u_animate.x == Animate) { + u = outputColor.a/v_color.a; + } + + float v = v_line_data.a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + + vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; + vec4 pattern = texture(SAMPLER_2D(u_texture), uv); + + // \u8BBE\u7F6E\u8D34\u56FE\u548C\u5E95\u8272\u7684\u53E0\u52A0\u6A21\u5F0F + if(u_textureBlend == 0.0) { // normal + pattern.a = 0.0; + outputColor = filterColor(outputColor + pattern); + } else { // replace + pattern.a *= v_color.a; + if(outputColor.a <= 0.0) { + pattern.a = 0.0; + } + outputColor = filterColor(pattern); + } + } else { + outputColor = filterColor(outputColor); + } + + // gl_FragColor = filterColor(gl_FragColor); +}`,y3=`#define LineTypeSolid 0.0 +#define LineTypeDash 1.0 +#define Animate 0.0 +#define LineTexture 1.0 + +layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in float a_Size; +layout(location = 12) in vec4 a_Instance; +layout(location = 14) in vec2 a_iconMapUV; + +layout(std140) uniform commonUniorm { + vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; + vec4 u_dash_array: [10.0, 5., 0, 0]; + vec4 u_sourceColor; + vec4 u_targetColor; + vec2 u_textSize; + float segmentNumber; + float u_line_type: 0.0; + float u_icon_step: 100; + float u_line_texture: 0.0; + float u_textureBlend; + float u_time; + float u_linearColor: 0; +}; + +out vec4 v_dash_array; +out vec4 v_color; +out vec2 v_iconMapUV; +out vec4 v_line_data; +out float v_distance_ratio; + +#pragma include "projection" +#pragma include "project" +#pragma include "picking" + +float maps (float value, float start1, float stop1, float start2, float stop2) { + return start2 + (stop2 - start2) * ((value - start1) / (stop1 - start1)); +} + +float getSegmentRatio(float index) { + return index / (segmentNumber - 1.); +} + +float paraboloid(vec2 source, vec2 target, float ratio) { + vec2 x = mix(source, target, ratio); + vec2 center = mix(source, target, 0.5); + float dSourceCenter = distance(source, center); + float dXCenter = distance(x, center); + return (dSourceCenter + dXCenter) * (dSourceCenter - dXCenter); +} + +vec3 getPos(vec2 source, vec2 target, float segmentRatio) { + float vertex_height = paraboloid(source, target, segmentRatio); + + return vec3( + mix(source, target, segmentRatio), + sqrt(max(0.0, vertex_height)) + ); +} +vec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + vec2 offset = dir_screenspace * offset_direction * setPickingSize(a_Size)/ 2.0; + return offset; +} +vec2 getNormal(vec2 line_clipspace, float offset_direction) { + // normalized direction of the line + vec2 dir_screenspace = normalize(line_clipspace); + // rotate by 90 degrees + dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x); + return reverse_offset_normal(vec3(dir_screenspace,1.0)).xy * sign(offset_direction); +} +float getAngularDist (vec2 source, vec2 target) { + vec2 delta = source - target; + vec2 sin_half_delta = sin(delta / 2.0); + float a = + sin_half_delta.y * sin_half_delta.y + + cos(source.y) * cos(target.y) * + sin_half_delta.x * sin_half_delta.x; + return 2.0 * atan(sqrt(a), sqrt(1.0 - a)); +} + +vec2 midPoint(vec2 source, vec2 target) { + vec2 center = target - source; + float r = length(center); + float theta = atan(center.y, center.x); + float thetaOffset = 0.314; + float r2 = r / 2.0 / cos(thetaOffset); + float theta2 = theta + thetaOffset; + vec2 mid = vec2(r2*cos(theta2) + source.x, r2*sin(theta2) + source.y); + return mid; +} +float bezier3(vec3 arr, float t) { + float ut = 1. - t; + return (arr.x * ut + arr.y * t) * ut + (arr.y * ut + arr.z * t) * t; +} + +vec2 interpolate (vec2 source, vec2 target, float angularDist, float t) { + // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + vec2 mid = midPoint(source, target); + vec3 x = vec3(source.x, mid.x, target.x); + vec3 y = vec3(source.y, mid.y, target.y); + return vec2(bezier3(x ,t), bezier3(y,t)); + } + else { + if(abs(angularDist - PI) < 0.001) { + return (1.0 - t) * source + t * target; + } + float a = sin((1.0 - t) * angularDist) / sin(angularDist); + float b = sin(t * angularDist) / sin(angularDist); + vec2 sin_source = sin(source); + vec2 cos_source = cos(source); + vec2 sin_target = sin(target); + vec2 cos_target = cos(target); + float x = a * cos_source.y * cos_source.x + b * cos_target.y * cos_target.x; + float y = a * cos_source.y * sin_source.x + b * cos_target.y * sin_target.x; + float z = a * sin_source.y + b * sin_target.y; + return vec2(atan(y, x), atan(z, sqrt(x * x + y * y))); + } +} + +void main() { + v_color = a_Color; + v_color.a = v_color.a * opacity; + vec2 source = radians(a_Instance.rg); + vec2 target = radians(a_Instance.ba); + float angularDist = getAngularDist(source, target); + float segmentIndex = a_Position.x; + float segmentRatio = getSegmentRatio(segmentIndex); + float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0)); + + if(u_line_type == LineTypeDash) { + v_distance_ratio = segmentIndex / segmentNumber; + vec2 s = source; + vec2 t = target; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + s = unProjCustomCoord(source); + t = unProjCustomCoord(target); + } + float total_Distance = pixelDistance(s, t) / 2.0 * PI; + total_Distance = total_Distance*16.0; // total_Distance*16.0 \u8C03\u6574\u9ED8\u8BA4\u7684\u6548\u679C + v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / total_Distance; + } + + if(u_animate.x == Animate) { + v_distance_ratio = segmentIndex / segmentNumber; + } + + float nextSegmentRatio = getSegmentRatio(segmentIndex + indexDir); + v_distance_ratio = segmentIndex / segmentNumber; + vec4 curr = project_position(vec4(degrees(interpolate(source, target, angularDist, segmentRatio)), 0.0, 1.0)); + vec4 next = project_position(vec4(degrees(interpolate(source, target, angularDist, nextSegmentRatio)), 0.0, 1.0)); + // v_normal = getNormal((next.xy - curr.xy) * indexDir, a_Position.y); + vec2 offset = project_pixel(getExtrusionOffset((next.xy - curr.xy) * indexDir, a_Position.y)); + // vec4 project_pos = project_position(vec4(curr.xy, 0, 1.0)); + // gl_Position = project_common_position_to_clipspace(vec4(curr.xy + offset, curr.z, 1.0)); + + v_line_data.g = a_Position.x; // \u8BE5\u9876\u70B9\u5728\u5F27\u7EBF\u4E0A\u7684\u5206\u6BB5\u6392\u5E8F + if(LineTexture == u_line_texture) { // \u5F00\u542F\u8D34\u56FE\u6A21\u5F0F + // float mapZoomScale = u_CoordinateSystem !== COORDINATE_SYSTEM_P20_2?10000000.0:1.0; + float d_arcDistrance = length(source - target); + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20) { // amap + d_arcDistrance = d_arcDistrance * 1000000.0; + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { // mapbox + d_arcDistrance = project_pixel_allmap(d_arcDistrance); + } + float d_pixelLen = project_pixel(u_icon_step)/8.0; + v_line_data.b = floor(d_arcDistrance/d_pixelLen); // \u8D34\u56FE\u5728\u5F27\u7EBF\u4E0A\u91CD\u590D\u7684\u6570\u91CF + + float lineOffsetWidth = length(offset + offset * sign(a_Position.y)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB + float linePixelSize = project_pixel(a_Size); // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB + v_line_data.a = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + + v_iconMapUV = a_iconMapUV; + } + + gl_Position = project_common_position_to_clipspace_v2(vec4(curr.xy + offset, 0, 1.0)); + setPickingColor(a_PickingColor); +} + +`,_3={solid:0,dash:1},x3=function(e){(0,Fe.Z)(t,e);var r=v3(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,a=new Array(i),s=0;s (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z))) { + // \u865A\u7EBF\u90E8\u5206 + discard; + }; + } + float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 + float d_distance_ratio = v_texture_data.r; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + if(u_linearDir < 1.0) { + d_distance_ratio = v_texture_data.a; + } + if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 + outputColor = mix(u_sourceColor, u_targetColor, d_distance_ratio); + outputColor.a *= v_color.a; + } else { // \u4F7F\u7528 color \u65B9\u6CD5\u4F20\u5165\u7684\u989C\u8272 + outputColor = v_color; + } + // anti-alias + // float blur = 1.0 - smoothstep(u_blur, 1., length(v_normal.xy)); + if(u_animate.x == Animate) { + animateSpeed = u_time / u_animate.y; + float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + animateSpeed); + alpha = (alpha + u_animate.w -1.0) / u_animate.w; + alpha = smoothstep(0., 1., alpha); + outputColor.a *= alpha; + } + + if(u_line_texture == LineTexture) { // while load texture + float aDistance = v_texture_data.g; // \u5F53\u524D\u9876\u70B9\u7684\u8DDD\u79BB + float d_texPixelLen = v_texture_data.b; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E + float u = fract(mod(aDistance, d_texPixelLen)/d_texPixelLen - animateSpeed); + float v = v_texture_data.a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + + // v = max(smoothstep(0.95, 1.0, v), v); + vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; + vec4 pattern = texture(SAMPLER_2D(u_texture), uv); + + if(u_textureBlend == 0.0) { // normal + pattern.a = 0.0; + outputColor += pattern; + } else { // replace + pattern.a *= v_color.a; + if(outputColor.a <= 0.0) { + pattern.a = 0.0; + } + outputColor = pattern; + } + } + + float v = v_texture_data.a; + float strokeWidth = min(0.5, u_strokeWidth); + // \u7ED8\u5236 border + if(strokeWidth > 0.01) { + float borderOuterWidth = strokeWidth / 2.0; + + + if(v >= 1.0 - strokeWidth || v <= strokeWidth) { + if(v > strokeWidth) { // \u5916\u4FA7 + float linear = smoothstep(0.0, 1.0, (v - (1.0 - strokeWidth))/strokeWidth); + // float linear = step(0.0, (v - (1.0 - borderWidth))/borderWidth); + outputColor.rgb = mix(outputColor.rgb, v_stroke.rgb, linear); + } else if(v <= strokeWidth) { + float linear = smoothstep(0.0, 1.0, v/strokeWidth); + outputColor.rgb = mix(v_stroke.rgb, outputColor.rgb, linear); + } + } + + if(v < borderOuterWidth) { + outputColor.a = mix(0.0, outputColor.a, v/borderOuterWidth); + } else if(v > 1.0 - borderOuterWidth) { + outputColor.a = mix(outputColor.a, 0.0, (v - (1.0 - borderOuterWidth))/borderOuterWidth); + } + } + + // blur + float blurV = v_texture_data.a; + if(blurV < 0.5) { + outputColor.a *= mix(u_blur.r, u_blur.g, blurV/0.5); + } else { + outputColor.a *= mix(u_blur.g, u_blur.b, (blurV - 0.5)/0.5); + } + + outputColor = filterColor(outputColor); +} +`,T3=` +#define Animate 0.0 + +layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 10) in vec2 a_DistanceAndIndex; +layout(location = 9) in vec2 a_Size; +layout(location = 11) in float a_Total_Distance; +layout(location = 13) in vec3 a_Normal; +layout(location = 15) in float a_Miter; +layout(location = 14) in vec2 a_iconMapUV; + +layout(std140) uniform commonUniorm { + vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; + vec4 u_dash_array; + vec4 u_blur; + vec4 u_sourceColor; + vec4 u_targetColor; + vec2 u_textSize; + float u_icon_step: 100; + float u_heightfixed: 0.0; + float u_vertexScale: 1.0; + float u_raisingHeight: 0.0; + float u_strokeWidth: 0.0; + float u_textureBlend; + float u_line_texture; + float u_linearDir: 1.0; + float u_linearColor: 0; + float u_time; +}; +#pragma include "projection" +#pragma include "picking" + +out vec4 v_color; +out vec4 v_stroke; +//dash +out vec4 v_dash_array; +out float v_d_distance_ratio; + +// texV \u7EBF\u56FE\u5C42 - \u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\uFF08\u7EBF\u7684\u5BBD\u5EA6\u65B9\u5411\uFF09 +out vec2 v_iconMapUV; +out vec4 v_texture_data; + +void main() { + //dash\u8F93\u51FA + v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / a_Total_Distance; + v_d_distance_ratio = a_DistanceAndIndex.x / a_Total_Distance; + + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + float d_texPixelLen; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E + v_iconMapUV = a_iconMapUV; + d_texPixelLen = project_float_pixel(u_icon_step); + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + d_texPixelLen *= 10.0; + } + + v_color = a_Color; + v_color.a *= opacity; + v_stroke = stroke; + + vec3 size = a_Miter * setPickingSize(a_Size.x) * reverse_offset_normal(a_Normal); + + vec2 offset = project_pixel(size.xy); + + float lineDistance = a_DistanceAndIndex.x; + float currentLinePointRatio = lineDistance / a_Total_Distance; + + + float lineOffsetWidth = length(offset + offset * sign(a_Miter)); // \u7EBF\u6A2A\u5411\u504F\u79FB\u7684\u8DDD\u79BB\uFF08\u5411\u4E24\u4FA7\u504F\u79FB\u7684\u548C\uFF09 + float linePixelSize = project_pixel(a_Size.x) * 2.0; // \u5B9A\u70B9\u4F4D\u7F6E\u504F\u79FB\uFF0C\u6309\u5730\u56FE\u7B49\u7EA7\u7F29\u653E\u540E\u7684\u8DDD\u79BB \u5355\u4FA7 * 2 + float texV = lineOffsetWidth/linePixelSize; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + + v_texture_data = vec4(currentLinePointRatio, lineDistance, d_texPixelLen, texV); + // \u8BBE\u7F6E\u6570\u636E\u96C6\u7684\u53C2\u6570 + + vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0)); + + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, a_Size.y, 1.0)); + + float h = float(a_Position.z) * u_vertexScale; // \u7EBF\u9876\u70B9\u7684\u9AD8\u5EA6 - \u517C\u5BB9\u4E0D\u5B58\u5728\u7B2C\u4E09\u4E2A\u6570\u503C\u7684\u60C5\u51B5 vertex height + float lineHeight = a_Size.y; // size \u7B2C\u4E8C\u4E2A\u53C2\u6570\u4EE3\u8868\u7684\u9AD8\u5EA6 [linewidth, lineheight] + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + lineHeight *= 0.2; // \u4FDD\u6301\u548C amap/mapbox \u4E00\u81F4\u7684\u6548\u679C + h *= 0.2; + if(u_heightfixed < 1.0) { + lineHeight = project_pixel(a_Size.y); + } + gl_Position = u_Mvp * (vec4(project_pos.xy + offset, lineHeight + h + u_raisingHeight, 1.0)); + } else { + // mapbox - amap + + // \u517C\u5BB9 mapbox \u5728\u7EBF\u9AD8\u5EA6\u4E0A\u7684\u6548\u679C\u8868\u73B0\u57FA\u672C\u4E00\u81F4 + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + // mapbox + // \u4FDD\u6301\u9AD8\u5EA6\u76F8\u5BF9\u4E0D\u53D8 + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + h *= mapboxZoomScale; + h += u_raisingHeight * mapboxZoomScale; + if(u_heightfixed > 0.0) { + lineHeight *= mapboxZoomScale; + } + + } else { + // amap + h += u_raisingHeight; + // lineHeight \u9876\u70B9\u504F\u79FB\u9AD8\u5EA6 + if(u_heightfixed < 1.0) { + lineHeight *= pow(2.0, 20.0 - u_Zoom); + } + } + + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, lineHeight + h, 1.0)); + } + + setPickingColor(a_PickingColor); +} +`,hF={solid:0,dash:1},F1=function(e){(0,Fe.Z)(t,e);var r=E3(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,a=new Array(i),s=0;s (v_dash_array.x + v_dash_array.y) && dashLength < v_dash_array.x + v_dash_array.y + v_dash_array.z))) { + // \u865A\u7EBF\u90E8\u5206 + discard; + }; + } + if(u_linearColor==1.0){ + outputColor = mix(u_sourceColor, u_targetColor, v_distanceScale); + outputColor.a *= v_color.a; // \u5168\u5C40\u900F\u660E\u5EA6 + } + else{ + outputColor = v_color; + } +} +`,M3=`layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in vec4 a_SizeDistanceAndTotalDistance; + +layout(std140) uniform commonUniorm { + vec4 u_sourceColor; + vec4 u_targetColor; + vec4 u_dash_array; + float u_vertexScale: 1.0; + float u_linearColor: 0; +}; + +#pragma include "projection" +#pragma include "picking" + +out vec4 v_color; +out float v_distanceScale; +out vec4 v_dash_array; + +void main() { + //dash\u8F93\u51FA + v_dash_array = pow(2.0, 20.0 - u_Zoom) * u_dash_array / a_SizeDistanceAndTotalDistance.a; + + v_color = a_Color; + v_distanceScale = a_SizeDistanceAndTotalDistance.b / a_SizeDistanceAndTotalDistance.a; + v_color.a = v_color.a * opacity; + vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0)); + + float h = float(a_Position.z) * u_vertexScale; // \u7EBF\u9876\u70B9\u7684\u9AD8\u5EA6 - \u517C\u5BB9\u4E0D\u5B58\u5728\u7B2C\u4E09\u4E2A\u6570\u503C\u7684\u60C5\u51B5 + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * (vec4(project_pos.xy, project_pixel(a_SizeDistanceAndTotalDistance.y) + h * 0.2, 1.0)); + } else { + float lineHeight = a_SizeDistanceAndTotalDistance.y; + // \u517C\u5BB9 mapbox \u5728\u7EBF\u9AD8\u5EA6\u4E0A\u7684\u6548\u679C\u8868\u73B0\u57FA\u672C\u4E00\u81F4 + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + // \u4FDD\u6301\u9AD8\u5EA6\u76F8\u5BF9\u4E0D\u53D8 + h *= 2.0/pow(2.0, 20.0 - u_Zoom); + } + + // amap1.x + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + // \u4FDD\u6301\u9AD8\u5EA6\u76F8\u5BF9\u4E0D\u53D8 + lineHeight *= pow(2.0, 20.0 - u_Zoom); + } + + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, lineHeight + h, 1.0)); + gl_PointSize = 10.0; + } +} +`,pF=ui.isNumber,I3=function(e){(0,Fe.Z)(t,e);var r=w3(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"getCommonUniformsInfo",value:function(){var i=this.layer.getLayerConfig(),a=i.sourceColor,s=i.targetColor,l=i.lineType,f=l===void 0?"solid":l,d=i.dashArray,_=d===void 0?[10,5,0,0]:d,b=i.vertexHeightScale,T=b===void 0?20:b,M=_;f!=="dash"&&(M=[0,0,0,0]),M.length===2&&M.push(0,0);var P=0,D=[0,0,0,0],G=[0,0,0,0];a&&s&&(D=vi(a),G=vi(s),P=1);var q={u_sourceColor:D,u_targetColor:G,u_dash_array:M,u_vertexScale:T,u_linearColor:P},se=this.getUniformsBufferInfo(q);return se}},{key:"initModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){return _e().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getShaders",value:function(){return{frag:R3,vert:M3,type:"lineSimpleNormal"}}},{key:"buildModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){var s,l,f,d,_;return _e().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return this.initUniformsBuffer(),s=this.getShaders(),l=s.frag,f=s.vert,d=s.type,T.next=4,this.layer.buildLayerModel({moduleName:d,vertexShader:f,fragmentShader:l,triangulation:Zw,inject:this.getInject(),primitive:I.LINES,depth:{enable:!1},pick:!1});case 4:return _=T.sent,T.abrupt("return",[_]);case 6:case"end":return T.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"sizeDistanceAndTotalDistance",type:In.Attribute,descriptor:{name:"a_SizeDistanceAndTotalDistance",shaderLocation:Yn.SIZE,buffer:{usage:I.STATIC_DRAW,data:[],type:I.FLOAT},size:4,update:function(a,s,l){var f=a.size,d=f===void 0?1:f,_=Array.isArray(d)?[d[0],d[1]]:[d,0];return[_[0],_[1],l[3],l[5]]}}})}}]),t}(Na);function P3(e){var r=O3();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function O3(){if(typeof Reflect=="undefined"||!Reflect.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 k3=`#define Animate 0.0 +#define LineTexture 1.0 + +// line texture + +uniform sampler2D u_texture; +layout(std140) uniform commonUniorm { + vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; + vec4 u_sourceColor; + vec4 u_targetColor; + vec2 u_textSize; + float u_icon_step: 100; + float u_heightfixed; + float u_linearColor: 0; + float u_line_texture; + float u_textureBlend; + float u_iconStepCount; + float u_time; +}; +in vec2 v_iconMapUV; +in float v_blur; +in float v_radio; +in vec4 v_color; +in vec4 v_dataset; + +out vec4 outputColor; +#pragma include "picking" + +void main() { + float animateSpeed = 0.0; // \u8FD0\u52A8\u901F\u5EA6 + float d_distance_ratio = v_dataset.r; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + float v = v_dataset.a; + + if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 + outputColor = mix(u_sourceColor, u_targetColor, v); + } else { // \u4F7F\u7528 color \u65B9\u6CD5\u4F20\u5165\u7684\u989C\u8272 + outputColor = v_color; + } + + outputColor.a *= v_color.a; // \u5168\u5C40\u900F\u660E\u5EA6 + if(u_animate.x == Animate) { + animateSpeed = u_time / u_animate.y; + float alpha =1.0 - fract( mod(1.0- d_distance_ratio, u_animate.z)* (1.0/ u_animate.z) + animateSpeed); + alpha = (alpha + u_animate.w -1.0) / u_animate.w; + alpha = smoothstep(0., 1., alpha); + outputColor.a *= alpha; + } + + if(u_line_texture == LineTexture) { // while load texture + float aDistance = v_dataset.g; // \u5F53\u524D\u9876\u70B9\u7684\u8DDD\u79BB + float d_texPixelLen = v_dataset.b; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E + float u = fract(mod(aDistance, d_texPixelLen)/d_texPixelLen - animateSpeed); + float v = v_dataset.a; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C + + // \u8BA1\u7B97\u7EB9\u7406\u95F4\u9694 start + float flag = 0.0; + if(u > 1.0/u_iconStepCount) { + flag = 1.0; + } + u = fract(u*u_iconStepCount); + // \u8BA1\u7B97\u7EB9\u7406\u95F4\u9694 end + + vec2 uv= v_iconMapUV / u_textSize + vec2(u, v) / u_textSize * 64.; + vec4 pattern = texture(SAMPLER_2D(u_texture), uv); + + // Tip: \u5224\u65AD\u7EB9\u7406\u95F4\u9694 + if(flag > 0.0) { + pattern = vec4(0.0); + } + + if(u_textureBlend == 0.0) { // normal + pattern.a = 0.0; + outputColor = filterColor(outputColor + pattern); + } else { // replace + pattern.a *= v_color.a; + if(outputColor.a <= 0.0) { + pattern.a = 0.0; + } + outputColor = filterColor(pattern); + } + } + + + // blur - AA + if(v < v_blur) { + outputColor.a = mix(0.0, outputColor.a, v/v_blur); + } else if(v > 1.0 - v_blur) { + outputColor.a = mix(outputColor.a, 0.0, (v - (1.0 - v_blur))/v_blur); + } + + outputColor = filterColor(outputColor); +} +`,D3=`#define Animate 0.0 +layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in vec2 a_Size; +layout(location = 10) in float a_Miter; +layout(location = 11) in float a_Total_Distance; +layout(location = 12) in vec4 a_Instance; +layout(location = 13) in vec3 a_Normal; +layout(location = 14) in vec2 a_iconMapUV; +layout(location = 15) in float a_Distance; + + +layout(std140) uniform commonUniorm { + vec4 u_animate: [ 1., 2., 1.0, 0.2 ]; + vec4 u_sourceColor; + vec4 u_targetColor; + vec2 u_textSize; + float u_icon_step: 100; + float u_heightfixed; + float u_linearColor: 0; + float u_line_texture; + float u_textureBlend; + float u_iconStepCount; + float u_time; +}; +#pragma include "projection" +#pragma include "light" +#pragma include "picking" + +// texV \u7EBF\u56FE\u5C42 - \u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\uFF08\u7EBF\u7684\u5BBD\u5EA6\u65B9\u5411\uFF09 +out vec2 v_iconMapUV; +out vec4 v_color; +out float v_blur; +out float v_radio; +out vec4 v_dataset; + +void main() { + + + float d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + float d_texPixelLen; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E + + v_iconMapUV = a_iconMapUV; + if(u_heightfixed < 1.0) { // \u9AD8\u5EA6\u968F zoom \u8C03\u6574 + d_texPixelLen = project_pixel(u_icon_step); + } else { + d_texPixelLen = u_icon_step; + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + d_texPixelLen *= 10.0; + } + + if(u_animate.x == Animate || u_linearColor == 1.0) { + d_distance_ratio = a_Distance / a_Total_Distance; + } + + float miter = (a_Miter + 1.0)/2.0; + // \u8BBE\u7F6E\u6570\u636E\u96C6\u7684\u53C2\u6570 + v_dataset[0] = d_distance_ratio; // \u5F53\u524D\u70B9\u4F4D\u8DDD\u79BB\u5360\u7EBF\u603B\u957F\u7684\u6BD4\u4F8B + v_dataset[1] = a_Distance; // \u5F53\u524D\u9876\u70B9\u7684\u8DDD\u79BB + v_dataset[2] = d_texPixelLen; // \u8D34\u56FE\u7684\u50CF\u7D20\u957F\u5EA6\uFF0C\u6839\u636E\u5730\u56FE\u5C42\u7EA7\u7F29\u653E + v_dataset[3] = miter; // \u7EBF\u56FE\u5C42\u8D34\u56FE\u90E8\u5206\u7684 v \u5750\u6807\u503C 0 - 1 + + vec4 project_pos = project_position(vec4(a_Position.xy, 0, 1.0)); + + float originSize = a_Size.x; // \u56FA\u5B9A\u9AD8\u5EA6 + if(u_heightfixed < 1.0) { + originSize = project_float_meter(a_Size.x); // \u9AD8\u5EA6\u968F zoom \u8C03\u6574 + } + + + float wallHeight = originSize * miter; + float lightWeight = calc_lighting(vec4(project_pos.xy, wallHeight, 1.0)); + + v_blur = min(project_float_pixel(2.0) / originSize, 0.05); + v_color = vec4(a_Color.rgb * lightWeight, a_Color.w * opacity); + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * (vec4(project_pos.xy, wallHeight, 1.0)); + } else { + gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy, wallHeight, 1.0)); + } + + setPickingColor(a_PickingColor); +} +`,L3=function(e){(0,Fe.Z)(t,e);var r=P3(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,a=new Array(i),s=0;s 0.01 + float blurWidth = (1.0 - v_blur)/2.0; + vec4 stroke = vec4(u_stroke_color.rgb, u_stroke_opacity); + if(fragmengTocenter > v_innerRadius + blurWidth) { + outputColor = stroke; + } else if(fragmengTocenter > v_innerRadius - blurWidth){ + float mixR = (fragmengTocenter - (v_innerRadius - blurWidth)) / (blurWidth * 2.0); + outputColor = mix(v_color, stroke, mixR); + } else { + outputColor = v_color; + } + } else { + // \u5F53\u4E0D\u5B58\u5728 stroke \u6216 stroke <= 0.01 + outputColor = v_color; + } + + outputColor = filterColor(outputColor); + + if(u_additive > 0.0) { + outputColor *= circleClipOpacity; + } else { + outputColor.a *= circleClipOpacity; + } + +} +`,j3=` +layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in float a_Size; + +layout(std140) uniform commonUniorm { + vec4 u_stroke_color; + float u_additive; + float u_stroke_opacity; + float u_stroke_width; +}; + +out vec4 v_color; +out float v_blur; +out float v_innerRadius; + +#pragma include "projection" +#pragma include "picking" +#pragma include "project" +void main() { + v_color = vec4(a_Color.xyz, a_Color.w * opacity); + v_blur = 1.0 - max(2.0/a_Size, 0.05); + v_innerRadius = max((a_Size - u_stroke_width) / a_Size, 0.0); + + vec2 offset = project_pixel(u_offsets); + + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { // gaode2.x + gl_Position = u_Mvp * vec4(a_Position.xy + offset, a_Position.z, 1.0); + } else { // else + vec4 project_pos = project_position(vec4(a_Position, 1.0)) + vec4(a_Size / 2.,-a_Size /2.,0.,0.); + gl_Position = project_common_position_to_clipspace(vec4(vec2(project_pos.xy+offset),project_pos.z,project_pos.w)); + } + + gl_PointSize = a_Size * 2.0 * u_DevicePixelRatio; + setPickingColor(a_PickingColor); +} +`;function N1(e){var r=e.coordinates;return{vertices:(0,Qt.Z)(r),indices:[0],size:r.length}}var H3=function(e){(0,Fe.Z)(t,e);var r=z3(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"getDefaultStyle",value:function(){return{blend:"additive"}}},{key:"getCommonUniformsInfo",value:function(){var i=this.layer.getLayerConfig(),a=i.blend,s=i.strokeOpacity,l=s===void 0?1:s,f=i.strokeWidth,d=f===void 0?0:f,_=i.stroke,b=_===void 0?"#fff":_,T={u_stroke_color:vi(b),u_additive:a==="additive"?1:0,u_stroke_opacity:l,u_stroke_width:d},M=this.getUniformsBufferInfo(T);return M}},{key:"initModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){return _e().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){var s;return _e().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return this.layer.triangulation=N1,this.initUniformsBuffer(),f.next=4,this.layer.buildLayerModel({moduleName:"pointSimple",vertexShader:j3,fragmentShader:V3,inject:this.getInject(),triangulation:N1,depth:{enable:!1},primitive:I.POINTS});case 4:return s=f.sent,f.abrupt("return",[s]);case 6:case"end":return f.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:In.Attribute,descriptor:{name:"a_Size",shaderLocation:Yn.SIZE,buffer:{usage:I.DYNAMIC_DRAW,data:[],type:I.FLOAT},size:1,update:function(a){var s=a.size,l=s===void 0?1:s;return Array.isArray(l)?[l[0]]:[l]}}})}}]),t}(Na);function W3(e){var r=G3();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function G3(){if(typeof Reflect=="undefined"||!Reflect.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 X3=`precision highp float; +in vec4 v_color; + +#pragma include "picking" + +layout(std140) uniform commonUniform { + vec4 u_sourceColor; + vec4 u_targetColor; + float u_linearColor: 0; + float u_heightfixed: 0.0; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A + float u_globel; + float u_r; + float u_pickLight: 0.0; + float u_opacitylinear: 0.0; + float u_opacitylinear_dir: 1.0; + float u_lightEnable: 1.0; +}; +in float v_lightWeight; +in float v_barLinearZ; +out vec4 outputColor; +void main() { + + outputColor = v_color; + + // \u5F00\u542F\u900F\u660E\u5EA6\u6E10\u53D8 + if(u_opacitylinear > 0.0) { + outputColor.a *= u_opacitylinear_dir > 0.0 ? (1.0 - v_barLinearZ): v_barLinearZ; + } + + // picking + if(u_pickLight > 0.0) { + outputColor = filterColorAlpha(outputColor, v_lightWeight); + } else { + outputColor = filterColor(outputColor); + } +} +`,$3=`precision highp float; + +#define pi 3.1415926535 +#define ambientRatio 0.5 +#define diffuseRatio 0.3 +#define specularRatio 0.2 + + +layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in vec3 a_Size; +layout(location = 11) in vec3 a_Pos; +layout(location = 13) in vec3 a_Normal; + + +layout(std140) uniform commonUniform { + vec4 u_sourceColor; + vec4 u_targetColor; + float u_linearColor: 0; + float u_heightfixed: 0.0; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A + float u_globel; + float u_r; + float u_pickLight: 0.0; + float u_opacitylinear: 0.0; + float u_opacitylinear_dir: 1.0; + float u_lightEnable: 1.0; +}; + +out vec4 v_color; +out float v_lightWeight; +out float v_barLinearZ; +// \u7528\u4E8E\u5C06\u5728\u9876\u70B9\u7740\u8272\u5668\u4E2D\u8BA1\u7B97\u597D\u7684\u6837\u5F0F\u503C\u4F20\u9012\u7ED9\u7247\u5143 + + +#pragma include "projection" +#pragma include "light" +#pragma include "picking" + +float getYRadian(float x, float z) { + if(x > 0.0 && z > 0.0) { + return atan(x/z); + } else if(x > 0.0 && z <= 0.0){ + return atan(-z/x) + pi/2.0; + } else if(x <= 0.0 && z <= 0.0) { + return pi + atan(x/z); //atan(x/z) + + } else { + return atan(z/-x) + pi*3.0/2.0; + } +} + +float getXRadian(float y, float r) { + return atan(y/r); +} + +void main() { + + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + vec3 size = a_Size * a_Position; + + // a_Position.z \u662F\u5728\u6784\u5EFA\u7F51\u683C\u7684\u65F6\u5019\u4F20\u5165\u7684\u6807\u51C6\u503C 0 - 1\uFF0C\u5728\u63D2\u503C\u5668\u63D2\u503C\u53EF\u4EE5\u83B7\u53D6 0\uFF5E1 \u7EBF\u6027\u6E10\u53D8\u7684\u503C + v_barLinearZ = a_Position.z; + + vec3 offset = size; // \u63A7\u5236\u5706\u67F1\u4F53\u7684\u5927\u5C0F - \u4ECE\u6807\u51C6\u5355\u4F4D\u5706\u67F1\u4F53\u8FDB\u884C\u504F\u79FB + if(u_heightfixed < 1.0) { // \u5706\u67F1\u4F53\u4E0D\u56FA\u5B9A\u9AD8\u5EA6 + + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + // P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 + offset = offset * pow(2.0, (19.0 - u_Zoom)); + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + // P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 + offset = offset * pow(2.0, (19.0 - 3.0 - u_Zoom)); + } + } else {// \u5706\u67F1\u4F53\u56FA\u5B9A\u9AD8\u5EA6 \uFF08 \u5904\u7406 mapbox \uFF09 + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + offset *= 4.0/pow(2.0, 21.0 - u_Zoom); + } + } + + + vec4 project_pos = project_position(vec4(a_Pos.xy, 0., 1.0)); + + // u_r \u63A7\u5236\u5706\u67F1\u7684\u751F\u957F + vec4 pos = vec4(project_pos.xy + offset.xy, offset.z * u_r, 1.0); + + // \u5706\u67F1\u5149\u7167\u6548\u679C + float lightWeight = 1.0; + if(u_lightEnable > 0.0) { // \u53D6\u6D88\u4E09\u5143\u8868\u8FBE\u5F0F\uFF0C\u589E\u5F3A\u5065\u58EE\u6027 + lightWeight = calc_lighting(pos); + } + v_lightWeight = lightWeight; + // \u8BBE\u7F6E\u5706\u67F1\u7684\u5E95\u8272 + if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 + v_color = mix(u_sourceColor, u_targetColor, v_barLinearZ); + v_color.rgb *= lightWeight; + } else { // \u4F7F\u7528 color \u65B9\u6CD5\u4F20\u5165\u7684\u989C\u8272 + v_color = a_Color; + } + v_color.a *= u_opacity; + + + // \u5728\u5730\u7403\u6A21\u5F0F\u4E0B\uFF0C\u5C06\u539F\u672C\u5782\u76F4\u4E8E xy \u5E73\u9762\u7684\u5706\u67F1\u8C03\u6574\u59FF\u6001\u5230\u9002\u5E94\u5706\u7684\u89D2\u5EA6 + //\u65CB\u8F6C\u77E9\u9635mx\uFF0C\u521B\u5EFA\u7ED5x\u8F74\u65CB\u8F6C\u77E9\u9635 + float r = sqrt(a_Pos.z*a_Pos.z + a_Pos.x*a_Pos.x); + float xRadian = getXRadian(a_Pos.y, r); + float xcos = cos(xRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u4F59\u5F26\u503C + float xsin = sin(xRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u6B63\u5F26\u503C + mat4 mx = mat4( + 1,0,0,0, + 0,xcos,-xsin,0, + 0,xsin,xcos,0, + 0,0,0,1); + + //\u65CB\u8F6C\u77E9\u9635my\uFF0C\u521B\u5EFA\u7ED5y\u8F74\u65CB\u8F6C\u77E9\u9635 + float yRadian = getYRadian(a_Pos.x, a_Pos.z); + float ycos = cos(yRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u4F59\u5F26\u503C + float ysin = sin(yRadian);//\u6C42\u89E3\u65CB\u8F6C\u89D2\u5EA6\u6B63\u5F26\u503C + mat4 my = mat4( + ycos,0,-ysin,0, + 0,1,0,0, + ysin,0,ycos,0, + 0,0,0,1); + + gl_Position = u_ViewProjectionMatrix * vec4(( my * mx * vec4(a_Position * a_Size, 1.0)).xyz + a_Pos, 1.0); + + + setPickingColor(a_PickingColor); +} +`,Y3=ui.isNumber,q3=function(e){(0,Fe.Z)(t,e);var r=W3(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,a=new Array(i),s=0;s0&&s.enable){var st=s.speed,at=st===void 0?.01:st;this.raiseCount+=at,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}var At={u_sourceColor:Ve,u_targetColor:nt,u_linearColor:Se,u_pickLight:Number(T),u_heightfixed:Number(P),u_r:s.enable&&this.raiseRepeat>0?this.raiseCount:1,u_opacity:Y3(f)?f:1,u_opacitylinear:Number(G.enable),u_opacitylinear_dir:G.dir==="up"?1:0,u_lightEnable:Number(se)},Wt=this.getUniformsBufferInfo(At);return Wt}},{key:"initModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){return _e().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.initUniformsBuffer(),l.abrupt("return",this.buildModels());case 2:case"end":return l.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){var s,l,f,d;return _e().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:$3,fragmentShader:X3,triangulation:W0,depth:{enable:!0},inject:this.getInject(),cull:{enable:!0,face:Ji(this.mapService.version)},blend:this.getBlend()});case 4:return d=b.sent,b.abrupt("return",[d]);case 6:case"end":return b.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:In.Attribute,descriptor:{name:"a_Size",shaderLocation:Yn.SIZE,buffer:{usage:I.DYNAMIC_DRAW,data:[],type:I.FLOAT},size:3,update:function(a){var s=a.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:In.Attribute,descriptor:{name:"a_Normal",shaderLocation:Yn.NORMAL,buffer:{usage:I.STATIC_DRAW,data:[],type:I.FLOAT},size:3,update:function(a,s,l,f,d){return d}}}),this.styleAttributeService.registerStyleAttribute({name:"pos",type:In.Attribute,descriptor:{name:"a_Pos",shaderLocation:15,buffer:{usage:I.DYNAMIC_DRAW,data:[],type:I.FLOAT},size:3,update:function(a){var s=Qs(a.coordinates);return y1([s[0],s[1]])}}})}}]),t}(Na);function K3(e){var r=Q3();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function Q3(){if(typeof Reflect=="undefined"||!Reflect.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 J3=`in vec4 v_data; +in vec4 v_color; +in float v_radius; + +layout(std140) uniform commonUniform { + float u_additive; + float u_stroke_opacity : 1; + float u_stroke_width : 2; + float u_blur : 0.0; +}; +#pragma include "sdf_2d" +#pragma include "picking" + +out vec4 outputColor; + +void main() { + int shape = int(floor(v_data.w + 0.5)); + + vec4 strokeColor = u_stroke == vec4(0.0) ? v_color : u_stroke; + + lowp float antialiasblur = v_data.z; + float r = v_radius / (v_radius + u_stroke_width); + + float outer_df; + float inner_df; + // 'circle', 'triangle', 'square', 'pentagon', 'hexagon', 'octogon', 'hexagram', 'rhombus', 'vesica' + if (shape == 0) { + outer_df = sdCircle(v_data.xy, 1.0); + inner_df = sdCircle(v_data.xy, r); + } else if (shape == 1) { + outer_df = sdEquilateralTriangle(1.1 * v_data.xy); + inner_df = sdEquilateralTriangle(1.1 / r * v_data.xy); + } else if (shape == 2) { + outer_df = sdBox(v_data.xy, vec2(1.)); + inner_df = sdBox(v_data.xy, vec2(r)); + } else if (shape == 3) { + outer_df = sdPentagon(v_data.xy, 0.8); + inner_df = sdPentagon(v_data.xy, r * 0.8); + } else if (shape == 4) { + outer_df = sdHexagon(v_data.xy, 0.8); + inner_df = sdHexagon(v_data.xy, r * 0.8); + } else if (shape == 5) { + outer_df = sdOctogon(v_data.xy, 1.0); + inner_df = sdOctogon(v_data.xy, r); + } else if (shape == 6) { + outer_df = sdHexagram(v_data.xy, 0.52); + inner_df = sdHexagram(v_data.xy, r * 0.52); + } else if (shape == 7) { + outer_df = sdRhombus(v_data.xy, vec2(1.0)); + inner_df = sdRhombus(v_data.xy, vec2(r)); + } else if (shape == 8) { + outer_df = sdVesica(v_data.xy, 1.1, 0.8); + inner_df = sdVesica(v_data.xy, r * 1.1, r * 0.8); + } + + if(outer_df > antialiasblur + 0.018) discard; + + float opacity_t = smoothstep(0.0, antialiasblur, outer_df); + + float color_t = u_stroke_width < 0.01 ? 0.0 : smoothstep( + antialiasblur, + 0.0, + inner_df + ); + + if(u_stroke_width < 0.01) { + outputColor = vec4(v_color.rgb, v_color.a * u_opacity); + } else { + outputColor = mix(vec4(v_color.rgb, v_color.a * u_opacity), strokeColor * u_stroke_opacity, color_t); + } + + if(u_additive > 0.0) { + outputColor *= opacity_t; + outputColor = filterColorAlpha(outputColor, outputColor.a); + } else { + outputColor.a *= opacity_t; + outputColor = filterColor(outputColor); + } +} +`,eR=`layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in float a_Size; +layout(location = 10) in float a_Shape; +layout(location = 11) in vec3 a_Extrude; + +layout(std140) uniform commonUniform { + float u_additive; + float u_stroke_opacity : 1; + float u_stroke_width : 2; + float u_blur : 0.0; +}; +out vec4 v_data; +out vec4 v_color; +out float v_radius; + +#pragma include "projection" +#pragma include "picking" + + +void main() { + vec3 extrude = a_Extrude; + float shape_type = a_Shape; + /* + * setPickingSize \u8BBE\u7F6E\u62FE\u53D6\u5927\u5C0F + */ + float newSize = setPickingSize(a_Size); + // float newSize = setPickingSize(a_Size) * 0.00001038445708445579; + + // unpack color(vec2) + v_color = a_Color; + + // radius(16-bit) + v_radius = newSize; + + // anti-alias + // float antialiased_blur = -max(u_blur, antialiasblur); + float antialiasblur = -max(2.0 / u_DevicePixelRatio / newSize, u_blur); + + // TODP: /abs(extrude.x) \u662F\u4E3A\u4E86\u517C\u5BB9\u5730\u7403\u6A21\u5F0F + v_data = vec4(extrude.x/abs(extrude.x), extrude.y/abs(extrude.y), antialiasblur,shape_type); + + gl_Position = u_ViewProjectionMatrix * vec4(a_Position + extrude * newSize * 0.1 + vec3(u_offsets,0.0), 1.0); + + setPickingColor(a_PickingColor); +}`,tR=function(e){(0,Fe.Z)(t,e);var r=K3(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"getCommonUniformsInfo",value:function(){var i=this.layer.getLayerConfig(),a=i.strokeOpacity,s=a===void 0?1:a,l=i.strokeWidth,f=l===void 0?0:l,d=i.blend,_=i.blur,b=_===void 0?0:_;this.layer.getLayerConfig();var T={u_additive:d==="additive"?1:0,u_stroke_opacity:s,u_stroke_width:f,u_blur:b},M=this.getUniformsBufferInfo(T);return M}},{key:"initModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){return _e().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.initUniformsBuffer(),l.abrupt("return",this.buildModels());case 2:case"end":return l.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){var s;return _e().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:eR,fragmentShader:J3,triangulation:A1,inject:this.getInject(),depth:{enable:!0},blend:this.getBlend()});case 3:return s=f.sent,f.abrupt("return",[s]);case 5:case"end":return f.stop()}},a,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:In.Attribute,descriptor:{name:"a_Extrude",shaderLocation:Yn.EXTRUDE,buffer:{usage:I.DYNAMIC_DRAW,data:[],type:I.FLOAT},size:3,update:function(s,l,f,d){var _=(0,_n.Z)(f,3),b=_[0],T=_[1],M=_[2],P=La.fromValues(0,0,1),D=La.fromValues(b,0,M),G=b>=0?La.angle(P,D):Math.PI*2-La.angle(P,D),q=Math.PI*2-Math.asin(T/100),se=Ct.create();Ct.rotateY(se,se,G),Ct.rotateX(se,se,q);var Se=La.fromValues(1,1,0);La.transformMat4(Se,Se,se),La.normalize(Se,Se);var Ve=La.fromValues(-1,1,0);La.transformMat4(Ve,Ve,se),La.normalize(Ve,Ve);var nt=La.fromValues(-1,-1,0);La.transformMat4(nt,nt,se),La.normalize(nt,nt);var st=La.fromValues(1,-1,0);La.transformMat4(st,st,se),La.normalize(st,st);var at=[].concat((0,Qt.Z)(Se),(0,Qt.Z)(Ve),(0,Qt.Z)(nt),(0,Qt.Z)(st)),At=d%4*3;return[at[At],at[At+1],at[At+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:In.Attribute,descriptor:{name:"a_Size",shaderLocation:Yn.SIZE,buffer:{usage:I.DYNAMIC_DRAW,data:[],type:I.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:In.Attribute,descriptor:{name:"a_Shape",shaderLocation:Yn.SHAPE,buffer:{usage:I.DYNAMIC_DRAW,data:[],type:I.FLOAT},size:1,update:function(s){var l=s.shape,f=l===void 0?2:l,d=i.layer.getLayerConfig().shape2d,_=d.indexOf(f);return[_]}}})}}]),t}(Na);function rR(e){var r=nR();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function nR(){if(typeof Reflect=="undefined"||!Reflect.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=` +in vec4 v_color; +in float v_lightWeight; +out vec4 outputColor; + +layout(std140) uniform commonUniforms { + float u_pickLight; + float u_heightfixed; + float u_r; + float u_linearColor; + vec4 u_sourceColor; + vec4 u_targetColor; + float u_opacitylinear; + float u_opacitylinear_dir; + float u_lightEnable; +}; + +#pragma include "picking" + +void main() { + + outputColor = v_color; + // \u5F00\u542F\u900F\u660E\u5EA6\u6E10\u53D8 + // picking + if(u_pickLight > 0.0) { + outputColor = filterColorAlpha(outputColor, v_lightWeight); + } else { + outputColor = filterColor(outputColor); + } +} +`,aR=`#define pi 3.1415926535 + +layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in vec3 a_Size; +layout(location = 11) in vec3 a_Extrude; +layout(location = 13) in vec3 a_Normal; + +layout(std140) uniform commonUniforms { + float u_pickLight; + float u_heightfixed; + float u_r; + float u_linearColor; + vec4 u_sourceColor; + vec4 u_targetColor; + float u_opacitylinear; + float u_opacitylinear_dir; + float u_lightEnable; +}; +out vec4 v_color; +out float v_lightWeight; +out float v_barLinearZ; + +#pragma include "projection" +#pragma include "light" +#pragma include "picking" + +float getYRadian(float x, float z) { + if(x > 0.0 && z > 0.0) { + return atan(x/z); + } else if(x > 0.0 && z <= 0.0){ + return atan(-z/x) + pi/2.0; + } else if(x <= 0.0 && z <= 0.0) { + return pi + atan(x/z); //atan(x/z) + + } else { + return atan(z/-x) + pi*3.0/2.0; + } +} + +float getXRadian(float y, float r) { + return atan(y/r); +} + +void main() { + + + vec3 size = a_Size * a_Position; + + vec3 offset = size; // \u63A7\u5236\u5706\u67F1\u4F53\u7684\u5927\u5C0F - \u4ECE\u6807\u51C6\u5355\u4F4D\u5706\u67F1\u4F53\u8FDB\u884C\u504F\u79FB + + if(u_heightfixed < 1.0) { // \u5706\u67F1\u4F53\u4E0D\u56FA\u5B9A\u9AD8\u5EA6 + + if (u_CoordinateSystem == COORDINATE_SYSTEM_P20 || u_CoordinateSystem == COORDINATE_SYSTEM_P20_OFFSET) { + // P20 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF1 + offset = offset * pow(2.0, (19.0 - u_Zoom)); + } + if(u_CoordinateSystem == COORDINATE_SYSTEM_P20_2) { + // P20_2 \u5750\u6807\u7CFB\u4E0B\uFF0C\u4E3A\u4E86\u548C Web \u58A8\u5361\u6258\u5750\u6807\u7CFB\u7EDF\u4E00\uFF0Czoom \u9ED8\u8BA4\u51CF3 + offset = offset * pow(2.0, (19.0 - 3.0 - u_Zoom)); + } + } else {// \u5706\u67F1\u4F53\u56FA\u5B9A\u9AD8\u5EA6 \uFF08 \u5904\u7406 mapbox \uFF09 + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + offset *= 4.0/pow(2.0, 21.0 - u_Zoom); + } + } + + + vec4 project_pos = project_position(vec4(a_Extrude.xy, 0., 1.0)); + + // u_r \u63A7\u5236\u5706\u67F1\u7684\u751F\u957F + vec4 pos = vec4(project_pos.xy + offset.xy, offset.z * u_r, 1.0); + + // // \u5706\u67F1\u5149\u7167\u6548\u679C + float lightWeight = 1.0; + + if(u_lightEnable > 0.0) { // \u53D6\u6D88\u4E09\u5143\u8868\u8FBE\u5F0F\uFF0C\u589E\u5F3A\u5065\u58EE\u6027 + lightWeight = calc_lighting(pos); + } + + v_lightWeight = lightWeight; + + v_color = a_Color; + + // \u8BBE\u7F6E\u5706\u67F1\u7684\u5E95\u8272 + if(u_linearColor == 1.0) { // \u4F7F\u7528\u6E10\u53D8\u989C\u8272 + v_color = mix(u_sourceColor, u_targetColor, a_Position.z); + v_color.a = v_color.a * opacity; + } else { + v_color = vec4(a_Color.rgb * lightWeight, a_Color.w * opacity); + } + + if(u_opacitylinear > 0.0) { + v_color.a *= u_opacitylinear_dir > 0.0 ? (1.0 - a_Position.z): a_Position.z; + } + + + gl_Position = project_common_position_to_clipspace_v2(pos); + + setPickingColor(a_PickingColor); +} +`,U1=function(e){(0,Fe.Z)(t,e);var r=rR(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,a=new Array(i),s=0;s0&&s.enable){var Ve=s.speed,nt=Ve===void 0?.01:Ve;this.raiseCount+=nt,this.raiseCount>=1&&(this.raiseRepeat>1?(this.raiseCount=0,this.raiseRepeat--):this.raiseCount=1)}var st={u_pickLight:Number(_),u_heightfixed:Number(T),u_r:s.enable&&this.raiseRepeat>0?this.raiseCount:1,u_linearColor:q,u_sourceColor:se,u_targetColor:Se,u_opacitylinear:Number(P.enable),u_opacitylinear_dir:P.dir==="up"?1:0,u_lightEnable:Number(G)},at=this.getUniformsBufferInfo(st);return at}},{key:"initModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){return _e().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){var s,l,f,d,_,b;return _e().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,d=s.animateOption.repeat,_=d===void 0?1:d,this.raiseRepeat=_,this.initUniformsBuffer(),M.next=5,this.layer.buildLayerModel({moduleName:"pointExtrude",vertexShader:aR,fragmentShader:iR,triangulation:W0,inject:this.getInject(),cull:{enable:!0,face:Ji(this.mapService.version)},depth:{enable:f}});case 5:return b=M.sent,M.abrupt("return",[b]);case 7:case"end":return M.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"size",type:In.Attribute,descriptor:{name:"a_Size",shaderLocation:Yn.SIZE,buffer:{usage:I.DYNAMIC_DRAW,data:[],type:I.FLOAT},size:3,update:function(a){var s=a.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:In.Attribute,descriptor:{name:"a_Normal",shaderLocation:Yn.NORMAL,buffer:{usage:I.STATIC_DRAW,data:[],type:I.FLOAT},size:3,update:function(a,s,l,f,d){return d}}}),this.styleAttributeService.registerStyleAttribute({name:"extrude",type:In.Attribute,descriptor:{name:"a_Extrude",shaderLocation:Yn.EXTRUDE,buffer:{usage:I.DYNAMIC_DRAW,data:[],type:I.FLOAT},size:3,update:function(a){var s=Qs(a.coordinates);return[s[0],s[1],0]}}})}}]),t}(Na);function oR(e){var r=sR();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function sR(){if(typeof Reflect=="undefined"||!Reflect.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 uR=`layout(std140) uniform commonUniforms { + vec3 u_blur_height_fixed; + float u_stroke_width; + float u_additive; + float u_stroke_opacity; + float u_size_unit; + float u_time; + vec4 u_animate; +}; + + +in vec4 v_color; +in vec4 v_stroke; +in vec4 v_data; +in float v_radius; + +#pragma include "scene_uniforms" +#pragma include "sdf_2d" +#pragma include "picking" + +out vec4 outputColor; + +void main() { + int shape = int(floor(v_data.w + 0.5)); + lowp float antialiasblur = v_data.z; + float r = v_radius / (v_radius + u_stroke_width); + + float outer_df; + float inner_df; + // 'circle', 'triangle', 'square', 'pentagon', 'hexagon', 'octogon', 'hexagram', 'rhombus', 'vesica' + if (shape == 0) { + outer_df = sdCircle(v_data.xy, 1.0); + inner_df = sdCircle(v_data.xy, r); + } else if (shape == 1) { + outer_df = sdEquilateralTriangle(1.1 * v_data.xy); + inner_df = sdEquilateralTriangle(1.1 / r * v_data.xy); + } else if (shape == 2) { + outer_df = sdBox(v_data.xy, vec2(1.)); + inner_df = sdBox(v_data.xy, vec2(r)); + } else if (shape == 3) { + outer_df = sdPentagon(v_data.xy, 0.8); + inner_df = sdPentagon(v_data.xy, r * 0.8); + } else if (shape == 4) { + outer_df = sdHexagon(v_data.xy, 0.8); + inner_df = sdHexagon(v_data.xy, r * 0.8); + } else if (shape == 5) { + outer_df = sdOctogon(v_data.xy, 1.0); + inner_df = sdOctogon(v_data.xy, r); + } else if (shape == 6) { + outer_df = sdHexagram(v_data.xy, 0.52); + inner_df = sdHexagram(v_data.xy, r * 0.52); + } else if (shape == 7) { + outer_df = sdRhombus(v_data.xy, vec2(1.0)); + inner_df = sdRhombus(v_data.xy, vec2(r)); + } else if (shape == 8) { + outer_df = sdVesica(v_data.xy, 1.1, 0.8); + inner_df = sdVesica(v_data.xy, r * 1.1, r * 0.8); + } + + float opacity_t = smoothstep(0.0, antialiasblur, outer_df); + + float color_t = u_stroke_width < 0.01 ? 0.0 : smoothstep( + antialiasblur, + 0.0, + inner_df + ); + + float PI = 3.14159; + float N_RINGS = 3.0; + float FREQ = 1.0; + + if(u_stroke_width < 0.01) { + outputColor = v_color; + } else { + outputColor = mix(v_color, v_stroke * u_stroke_opacity, color_t); + } + float intensity = 1.0; + if(u_time!=-1.0){ + //wave\u76F8\u5173\u903B\u8F91 + float d = length(v_data.xy); + if(d > 0.5) { + discard; + } + intensity = clamp(cos(d * PI), 0.0, 1.0) * clamp(cos(2.0 * PI * (d * 2.0 * u_animate.z - u_animate.y * u_time)), 0.0, 1.0); + } + + if(u_additive > 0.0) { + outputColor *= opacity_t; + outputColor *= intensity;//wave + outputColor = filterColorAlpha(outputColor, outputColor.a); + } else { + outputColor.a *= opacity_t; + outputColor.a *= intensity;//wave + outputColor = filterColor(outputColor); + } + // \u4F5C\u4E3A mask \u6A21\u677F\u65F6\u9700\u8981\u4E22\u5F03\u900F\u660E\u7684\u50CF\u7D20 + if(outputColor.a < 0.01) { + discard; + } +} +`,lR=`layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in float a_Size; +layout(location = 10) in float a_Shape; +layout(location = 11) in vec3 a_Extrude; + +layout(std140) uniform commonUniforms { + vec3 u_blur_height_fixed; + float u_stroke_width; + float u_additive; + float u_stroke_opacity; + float u_size_unit; + float u_time; + vec4 u_animate; +}; + +out vec4 v_color; +out vec4 v_stroke; +out vec4 v_data; +out float v_radius; + +#pragma include "projection" +#pragma include "picking" +#pragma include "rotation_2d" + +void main() { + // \u900F\u660E\u5EA6\u8BA1\u7B97 + v_stroke = stroke; + vec3 extrude = a_Extrude; + float shape_type = a_Shape; + /* + * setPickingSize \u8BBE\u7F6E\u62FE\u53D6\u5927\u5C0F + * u_meter2coord \u5728\u7B49\u9762\u79EF\u5927\u5C0F\u7684\u65F6\u5019\u8BBE\u7F6E\u5355\u4F4D + */ + float newSize = setPickingSize(a_Size); + // float newSize = setPickingSize(a_Size) * 0.00001038445708445579; + + + + // unpack color(vec2) + v_color = vec4(a_Color.xyz, a_Color.w * opacity); + + if(u_size_unit == 1.0) { + newSize = newSize * u_PixelsPerMeter.z; + } + + v_radius = newSize; + + // anti-alias + // float antialiased_blur = -max(u_blur, antialiasblur); + float antialiasblur = -max(2.0 / u_DevicePixelRatio / newSize, u_blur_height_fixed.x); + + vec2 offset = (extrude.xy * (newSize + u_stroke_width) + u_offsets); + vec3 aPosition = a_Position; + + offset = project_pixel(offset); + offset = rotate_matrix(offset,rotation); + + // TODP: /abs(extrude.x) \u662F\u4E3A\u4E86\u517C\u5BB9\u5730\u7403\u6A21\u5F0F + v_data = vec4(extrude.x/abs(extrude.x), extrude.y/abs(extrude.y), antialiasblur,shape_type); + + + // vec4 project_pos = project_position(vec4(a_Position.xy, 0.0, 1.0)); + vec4 project_pos = project_position(vec4(aPosition.xy, 0.0, 1.0)); + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xy + offset, project_pixel(setPickingOrder(0.0)), 1.0)); + + float raisingHeight = u_blur_height_fixed.y; + + if(u_blur_height_fixed.z < 1.0) { // false + raisingHeight = project_pixel(u_blur_height_fixed.y); + } else { + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + raisingHeight = u_blur_height_fixed.y * mapboxZoomScale; + } + } + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy + offset, raisingHeight, 1.0)); + + setPickingColor(a_PickingColor); +} +`,z1=function(e){(0,Fe.Z)(t,e);var r=oR(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"getCommonUniformsInfo",value:function(){var i=this.layer.getLayerConfig(),a=i.strokeOpacity,s=a===void 0?1:a,l=i.strokeWidth,f=l===void 0?0:l,d=i.blend,_=i.blur,b=_===void 0?0:_,T=i.raisingHeight,M=T===void 0?0:T,P=i.heightfixed,D=P===void 0?!1:P,G=i.unit,q=G===void 0?"pixel":G,se=this.getAnimateUniforms().u_time;isNaN(se)&&(se=-1);var Se={u_blur_height_fixed:[b,Number(M),Number(D)],u_stroke_width:f,u_additive:d==="additive"?1:0,u_stroke_opacity:s,u_size_unit:Y0[q],u_time:se,u_animate:this.getAnimateUniforms().u_animate},Ve=this.getUniformsBufferInfo(Se);return Ve}},{key:"getAnimateUniforms",value:function(){var i=this.layer.getLayerConfig(),a=i.animateOption,s=a===void 0?{enable:!1}:a;return{u_animate:this.animateOption2Array(s),u_time:this.layer.getLayerAnimateTime()}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),dp)}},{key:"initModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){return _e().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){var s,l,f,d,_,b,T,M;return _e().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return s=this.layer.getLayerConfig(),l=s.animateOption,f=l===void 0?{enable:!1}:l,d=this.getShaders(f),_=d.frag,b=d.vert,T=d.type,this.layer.triangulation=dp,this.initUniformsBuffer(),D.next=6,this.layer.buildLayerModel({moduleName:T,vertexShader:b,fragmentShader:_,inject:this.getInject(),triangulation:dp,depth:{enable:!1}});case 6:return M=D.sent,D.abrupt("return",[M]);case 8:case"end":return D.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getShaders",value:function(i){return{frag:uR,vert:lR,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:In.Attribute,descriptor:{name:"a_Extrude",shaderLocation:Yn.EXTRUDE,buffer:{usage:I.DYNAMIC_DRAW,data:[],type:I.FLOAT},size:3,update:function(s,l,f,d){var _=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],b=d%4*3;return[_[b],_[b+1],_[b+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:In.Attribute,descriptor:{name:"a_Size",shaderLocation:Yn.SIZE,buffer:{usage:I.DYNAMIC_DRAW,data:[],type:I.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:In.Attribute,descriptor:{name:"a_Shape",shaderLocation:Yn.SHAPE,buffer:{usage:I.DYNAMIC_DRAW,data:[],type:I.FLOAT},size:1,update:function(s){var l=s.shape,f=l===void 0?2:l,d=i.indexOf(f);return[d]}}})}}]),t}(Na);function cR(e){var r=fR();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function fR(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var hR=`in vec4 v_color; +in vec2 v_uv;// \u672C\u8EAB\u7684 uv \u5750\u6807 +in vec2 v_Iconuv; +in float v_opacity; +out vec4 outputColor; + +uniform sampler2D u_texture; +layout(std140) uniform commonUniform { + vec2 u_textSize; + float u_heightfixed: 0.0; + float u_raisingHeight: 0.0; + float u_size_unit; +}; + +#pragma include "sdf_2d" +#pragma include "picking" + + +void main() { + vec2 pos = v_Iconuv / u_textSize + v_uv / u_textSize * 64.; + outputColor = texture(SAMPLER_2D(u_texture), pos); + outputColor.a *= v_opacity; + outputColor = filterColor(outputColor); +} +`,pR=`layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in float a_Size; +layout(location = 11) in vec3 a_Extrude; +layout(location = 14) in vec2 a_Uv; + +layout(std140) uniform commonUniform { + vec2 u_textSize; + float u_heightfixed: 0.0; + float u_raisingHeight: 0.0; + float u_size_unit; +}; + +out vec2 v_uv; +out vec2 v_Iconuv; +out float v_opacity; + + +#pragma include "projection" +#pragma include "picking" +#pragma include "rotation_2d" + +void main() { + vec3 extrude = a_Extrude; + v_uv = (a_Extrude.xy + 1.0)/2.0; + v_uv.y = 1.0 - v_uv.y; + v_Iconuv = a_Uv; + v_opacity = opacity; + float newSize = a_Size; + if(u_size_unit == 1.0) { + newSize = newSize * u_PixelsPerMeter.z; + } + + // vec2 offset = (u_RotateMatrix * extrude.xy * (a_Size) + textrueOffsets); + vec2 offset = (extrude.xy * (newSize) + offsets); + + offset = rotate_matrix(offset,rotation); + + vec3 aPosition = a_Position; + + offset = project_pixel(offset); + + vec4 project_pos = project_position(vec4(aPosition.xy, 0.0, 1.0)); + float raisingHeight = u_raisingHeight; + if(u_heightfixed < 1.0) { // height fixed + raisingHeight = project_pixel(u_raisingHeight); + } else { + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + raisingHeight = u_raisingHeight * mapboxZoomScale; + } + } + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy + offset, 0.0, 1.0)); + + setPickingColor(a_PickingColor); +} +`,dR=function(e){(0,Fe.Z)(t,e);var r=cR(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,a=new Array(i),s=0;s= 0.5) { + float luma = 0.299 * textureColor.r + 0.587 * textureColor.g + 0.114 * textureColor.b; + textureColor.a *= luma; + } + + if(all(lessThan(v_color, vec4(1.0+0.00001))) && all(greaterThan(v_color, vec4(1.0-0.00001))) || v_color==vec4(1.0)){ + outputColor= textureColor; + }else { + outputColor= step(0.01, textureColor.z) * v_color; + } + outputColor.a *= v_opacity; + if (outputColor.a < 0.01) { + discard; + } + outputColor = filterColor(outputColor); +} +`,yR=`layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in float a_Size; +layout(location = 14) in vec2 a_Uv; + +layout(std140) uniform commonUniforms { + vec2 u_textSize; + float u_raisingHeight; + float u_heightfixed; +}; + +out vec4 v_color; +out vec2 v_uv; +out float v_opacity; + +#pragma include "projection" +#pragma include "picking" + +void main() { + + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + v_color = a_Color; + v_opacity = opacity; + v_uv = a_Uv; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + + vec2 offset = project_pixel(offsets); + + float raisingHeight = u_raisingHeight; + if(u_heightfixed < 1.0) { // false + raisingHeight = project_pixel(u_raisingHeight); + } else { + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + raisingHeight = u_raisingHeight * mapboxZoomScale; + } + } + + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy + offset, raisingHeight, 1.0)); + + gl_PointSize = a_Size * 2.0 * u_DevicePixelRatio; + setPickingColor(a_PickingColor); +} +`,Z1=function(e){(0,Fe.Z)(t,e);var r=vR(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,a=new Array(i),s=0;s 0.0) { + outputColor *= opacity_t; + } else { + outputColor.a *= opacity_t; + } + + if(outputColor.a > 0.0) { + outputColor = filterColor(outputColor); + } + + vec2 extrude = v_extrude; + vec2 dir = normalize(extrude); + vec2 baseDir = vec2(1.0, 0.0); + float pi = 3.14159265359; + float flag = sign(dir.y); + float rades = dot(dir, baseDir); + float radar_v = (flag - 1.0) * -0.5 * acos(rades)/pi; + // simple AA + if(radar_v > 0.99) { + radar_v = 1.0 - (radar_v - 0.99)/0.01; + } + + outputColor.a *= radar_v; +} +`,wR=`layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in float a_Size; +layout(location = 11) in vec3 a_Extrude; + +layout(std140) uniform commonUniorm { + float u_additive; + float u_size_unit; + float u_speed: 1.0; + float u_time; +}; + +out vec4 v_data; +out vec4 v_color; +out float v_radius; +out vec2 v_extrude; + +#pragma include "projection" +#pragma include "picking" + +void main() { + float newSize = setPickingSize(a_Size); + + float time = u_time * u_speed; + mat2 rotateMatrix = mat2( + cos(time), sin(time), + -sin(time), cos(time) + ); + v_extrude = rotateMatrix * a_Extrude.xy; + + v_color = a_Color; + v_color.a *= opacity; + + float blur = 0.0; + float antialiasblur = -max(2.0 / u_DevicePixelRatio / a_Size, blur); + + if(u_size_unit == 1.) { + newSize = newSize * u_PixelsPerMeter.z; + } + v_radius = newSize; + + vec2 offset = (a_Extrude.xy * (newSize)); + vec3 aPosition = a_Position; + + offset = project_pixel(offset); + + v_data = vec4(a_Extrude.x, a_Extrude.y, antialiasblur, -1.0); + + vec4 project_pos = project_position(vec4(aPosition.xy, 0.0, 1.0)); + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy + offset, project_pixel(setPickingOrder(0.0)), 1.0)); + + setPickingColor(a_PickingColor); +} +`,CR=function(e){(0,Fe.Z)(t,e);var r=SR(t);function t(){return(0,Q.Z)(this,t),r.apply(this,arguments)}return(0,j.Z)(t,[{key:"getCommonUniformsInfo",value:function(){var i=this.layer.getLayerConfig(),a=i.blend,s=i.speed,l=s===void 0?1:s,f=i.unit,d=f===void 0?"pixel":f,_={u_additive:a==="additive"?1:0,u_size_unit:Y0[d],u_speed:l,u_time:this.layer.getLayerAnimateTime()},b=this.getUniformsBufferInfo(_);return b}},{key:"getAnimateUniforms",value:function(){return{}}},{key:"getAttribute",value:function(){return this.styleAttributeService.createAttributesAndIndices(this.layer.getEncodedData(),Mg)}},{key:"initModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){return _e().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){var s;return _e().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return this.initUniformsBuffer(),f.next=3,this.layer.buildLayerModel({moduleName:"pointRadar",vertexShader:wR,fragmentShader:TR,triangulation:Mg,inject:this.getInject(),depth:{enable:!1}});case 3:return s=f.sent,f.abrupt("return",[s]);case 5:case"end":return f.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"animateOption2Array",value:function(i){return[i.enable?0:1,i.speed||1,i.rings||3,0]}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"extrude",type:In.Attribute,descriptor:{name:"a_Extrude",shaderLocation:Yn.EXTRUDE,buffer:{usage:I.DYNAMIC_DRAW,data:[],type:I.FLOAT},size:3,update:function(a,s,l,f){var d=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],_=f%4*3;return[d[_],d[_+1],d[_+2]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:In.Attribute,descriptor:{shaderLocation:Yn.SIZE,name:"a_Size",buffer:{usage:I.DYNAMIC_DRAW,data:[],type:I.FLOAT},size:1,update:function(a){var s=a.size,l=s===void 0?5:s;return Array.isArray(l)?[l[0]]:[l]}}})}}]),t}(Na);function RR(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=MR(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(d){throw d},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 a=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var d=t.next();return a=d.done,d},e:function(d){s=!0,l=d},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function MR(e,r){if(e){if(typeof e=="string")return H1(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 H1(e,r)}}function H1(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);tthis.width||a<0||n>this.height)return s?!1:[];var f=[];if(t<=0&&n<=0&&this.width<=i&&this.height<=a){if(s)return!0;for(var d=0;d0:f}},{key:"queryCell",value:function(t,n,i,a,s,l,f,d){var _=f.seenUids,b=this.boxCells[s];if(b!==null){var T=this.bboxes,M=RR(b),P;try{for(M.s();!(P=M.n()).done;){var D=P.value;if(!_.box[D]){_.box[D]=!0;var G=D*4;if(t<=T[G+2]&&n<=T[G+3]&&i>=T[G+0]&&a>=T[G+1]&&(!d||d(this.boxKeys[D]))){if(f.hitTest)return l.push(!0),!0;l.push({key:this.boxKeys[D],x1:T[G],y1:T[G+1],x2:T[G+2],y2:T[G+3]})}}}}catch(q){M.e(q)}finally{M.f()}}return!1}},{key:"forEachCell",value:function(t,n,i,a,s,l,f,d){for(var _=this.convertToXCellCoord(t),b=this.convertToYCellCoord(n),T=this.convertToXCellCoord(i),M=this.convertToYCellCoord(a),P=_;P<=T;P++)for(var D=b;D<=M;D++){var G=this.xCellCount*D+P;if(s.call(this,t,n,i,a,G,l,f,d))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}(),PR=IR,OR=function(){function e(r,t){(0,Q.Z)(this,e),(0,F.Z)(this,"viewportPadding",100),this.width=r,this.height=t,this.viewportPadding=Math.max(r,t),this.grid=new PR(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,a=t.x2+t.anchorPointX+this.viewportPadding,s=t.y2+t.anchorPointY+this.viewportPadding;return!this.isInsideGrid(n,i,a,s)||this.grid.hitTest(n,i,a,s)?{box:[]}:{box:[n,i,a,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 a=Bh.al(n,i,0,1),s=Bh.Ue(),l=Ct.fromValues.apply(Ct,(0,Qt.Z)(t));return Bh.fF(s,a,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,a){return i>=0&&t=0&&n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(d){throw d},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 a=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var d=t.next();return a=d.done,d},e:function(d){s=!0,l=d},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function kR(e,r){if(e){if(typeof e=="string")return G1(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 G1(e,r)}}function G1(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(` +`),d=[],_={positionedGlyphs:d,top:s[1],bottom:s[1],left:s[0],right:s[0],lineCount:f.length,text:e};return l?LR(_,r,f,t,n,i,a):DR(_,r,f,t,n,i,a),d.length?_:!1}function FR(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,a=[],s=W1(i),l;try{for(s.s();!(l=s.n()).done;){var f=l.value,d=f.metrics,_=4,b=d.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]],P=(0-_)*f.scale-b+M[0],D=(0-_)*f.scale+M[1],G=P+d.width*f.scale,q=D+d.height*f.scale,se={x:P,y:D},Se={x:G,y:D},Ve={x:P,y:q},nt={x:G,y:q};a.push({tl:se,tr:Se,bl:Ve,br:nt,tex:d,glyphOffset:T})}}catch(st){s.e(st)}finally{s.f()}return a}function NR(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=UR(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(d){throw d},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 a=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var d=t.next();return a=d.done,d},e:function(d){s=!0,l=d},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function UR(e,r){if(e){if(typeof e=="string")return q1(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 q1(e,r)}}function q1(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t.5||!q||f!==this.preTextStyle.textAllowOverlap)){Se.next=14;break}return Se.next=13,this.reBuildModel();case 13:return Se.abrupt("return",!0);case 14:return Se.abrupt("return",!1);case 15:case"end":return Se.stop()}},a,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:In.Attribute,descriptor:{shaderLocation:10,name:"a_textOffsets",buffer:{usage:I.STATIC_DRAW,data:[],type:I.FLOAT},size:2,update:function(a,s,l){return[l[5],l[6]]}}}),this.styleAttributeService.registerStyleAttribute({name:"textUv",type:In.Attribute,descriptor:{name:"a_tex",shaderLocation:Yn.UV,buffer:{usage:I.DYNAMIC_DRAW,data:[],type:I.FLOAT},size:2,update:function(a,s,l){return[l[3],l[4]]}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:In.Attribute,descriptor:{name:"a_Size",shaderLocation:Yn.SIZE,buffer:{usage:I.DYNAMIC_DRAW,data:[],type:I.FLOAT},size:1,update:function(a){var s=a.size,l=s===void 0?12:s;return Array.isArray(l)?[l[0]]:[l]}}})}},{key:"bindEvent",value:function(){this.layer.isTileLayer||this.layer.on("remapping",this.mapping)}},{key:"textExtent",value:function(){var i=this.mapService.getBounds();return Zu(i,.5)}},{key:"initTextFont",value:function(){var i=this.getTextStyle(),a=i.fontWeight,s=i.fontFamily,l=this.rawEncodeData,f=[];l.forEach(function(d){var _=d.shape,b=_===void 0?"":_;b=b.toString();var T=NR(b),M;try{for(T.s();!(M=T.n()).done;){var P=M.value;f.indexOf(P)===-1&&f.push(P)}}catch(D){T.e(D)}finally{T.f()}}),this.fontService.setFontOptions({characterSet:f,fontWeight:a,fontFamily:s,iconfont:!1})}},{key:"initIconFontTex",value:function(){var i=this.getTextStyle(),a=i.fontWeight,s=i.fontFamily,l=this.rawEncodeData,f=[];l.forEach(function(d){var _=d.shape,b=_===void 0?"":_;b="".concat(b),f.indexOf(b)===-1&&f.push(b)}),this.fontService.setFontOptions({characterSet:f,fontWeight:a,fontFamily:s,iconfont:!0})}},{key:"getTextStyle",value:function(){var i=this.layer.getLayerConfig(),a=i.fontWeight,s=a===void 0?"400":a,l=i.fontFamily,f=l===void 0?"sans-serif":l,d=i.textAllowOverlap,_=d===void 0?!1:d,b=i.padding,T=b===void 0?[0,0]:b,M=i.textAnchor,P=M===void 0?"center":M,D=i.textOffset,G=D===void 0?[0,0]:D,q=i.opacity,se=q===void 0?1:q,Se=i.strokeOpacity,Ve=Se===void 0?1:Se,nt=i.strokeWidth,st=nt===void 0?0:nt,at=i.stroke,At=at===void 0?"#000":at;return{fontWeight:s,fontFamily:f,textAllowOverlap:_,padding:T,textAnchor:P,textOffset:G,opacity:se,strokeOpacity:Ve,strokeWidth:st,stroke:At}}},{key:"generateGlyphLayout",value:function(i){var a=this,s=this.getFontServiceMapping(),l=this.layer.getLayerConfig(),f=l.spacing,d=f===void 0?2:f,_=l.textAnchor,b=_===void 0?"center":_,T=l.textOffset,M=this.rawEncodeData;this.glyphInfo=M.map(function(P){var D=P.shape,G=D===void 0?"":D,q=P.id,se=P.size,Se=se===void 0?1:se,Ve=P.textOffset?P.textOffset:T||[0,0],nt=P.textAnchor?P.textAnchor:b||"center",st=BR(G.toString(),s,Se,nt,"left",d,Ve,i),at=FR(st,Ve,!1);return P.shaping=st,P.glyphQuads=at,P.centroid=Qs(P.coordinates),P.originCentroid=P.version==="GAODE2.x"?Qs(P.originCoordinates):P.originCentroid=P.centroid,a.glyphInfoMap[q]={shaping:st,glyphQuads:at,centroid:Qs(P.coordinates)},P})}},{key:"getFontServiceMapping",value:function(){var i=this.layer.getLayerConfig(),a=i.fontWeight,s=a===void 0?"400":a,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(),a=i.fontWeight,s=a===void 0?"400":a,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,a=this.layer.getLayerConfig(),s=a.padding,l=s===void 0?[0,0]:s,f=a.textAllowOverlap,d=f===void 0?!1:f;if(!d){this.glyphInfoMap={},this.currentZoom=this.mapService.getZoom(),this.extent=this.textExtent();var _=this.rendererService.getViewportSize(),b=_.width,T=_.height,M=new OR(b,T),P=this.glyphInfo.filter(function(D){var G=D.shaping,q=D.id,se=q===void 0?0:q,Se=D.version==="GAODE2.x"?D.originCentroid:D.centroid,Ve=D.size,nt=Ve/16,st=i.mapService.lngLatToContainer(Se),at=M.placeCollisionBox({x1:G.left*nt-l[0],x2:G.right*nt+l[0],y1:G.top*nt-l[1],y2:G.bottom*nt+l[1],anchorPointX:st.x,anchorPointY:st.y}),At=at.box;return At&&At.length?(M.insertCollisionBox(At,se),!0):!1});P.forEach(function(D){i.glyphInfoMap[D.id]=D})}}},{key:"initGlyph",value:function(){var i=this.layer.getLayerConfig(),a=i.iconfont,s=a===void 0?!1:a;s?this.initIconFontTex():this.initTextFont(),this.generateGlyphLayout(s)}},{key:"updateTexture",value:function(){var i=this.rendererService.createTexture2D,a=this.getFontServiceCanvas();this.textureHeight=a.height,this.texture&&this.texture.destroy(),this.texture=i({data:a,mag:I.LINEAR,min:I.LINEAR,width:a.width,height:a.height}),this.textures=[this.texture]}},{key:"reBuildModel",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){var s;return _e().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return this.filterGlyphs(),f.next=3,this.layer.buildLayerModel({moduleName:"pointText",vertexShader:Q1,fragmentShader:K1,triangulation:J1.bind(this),inject:this.getInject(),depth:{enable:!1}});case 3:s=f.sent,this.layer.models=[s];case 5:case"end":return f.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()}]),t}(Na),VR={fillImage:dR,fill:z1,radar:CR,image:Z1,normal:j1,simplePoint:H3,extrude:U1,text:ex,earthFill:tR,earthExtrude:q3},jR=VR;function HR(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=WR(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(d){throw d},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 a=!0,s=!1,l;return{s:function(){t=t.call(e)},n:function(){var d=t.next();return a=d.done,d},e:function(d){s=!0,l=d},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(s)throw l}}}}function WR(e,r){if(e){if(typeof e=="string")return tx(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 tx(e,r)}}function tx(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t 0.0) { // \u5224\u65AD\u51E0\u4F55\u4F53\u662F\u5426\u56FA\u5B9A\u9AD8\u5EA6 + project_pos.z = a_Position.z * a_Size; + project_pos.z += u_raisingHeight; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + project_pos.z *= mapboxZoomScale; + project_pos.z += u_raisingHeight * mapboxZoomScale; + } + } + + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); + + // Tip: \u90E8\u5206\u673A\u578B GPU \u8BA1\u7B97\u7CBE\u5EA6\u517C\u5BB9 + if(isSide < 0.999) { + // side face + // if(u_sidesurface < 1.0) { + // discard; + // } + + if(u_linearColor == 1.0) { + vec4 linearColor = mix(u_targetColor, u_sourceColor, sidey); + linearColor.rgb *= lightWeight; + v_Color = linearColor; + } else { + v_Color = a_Color; + } + + } else { + v_Color = a_Color; + } + + v_Color = vec4(v_Color.rgb * lightWeight, v_Color.w * opacity); + + + setPickingColor(a_PickingColor); +} +`,QR=`uniform sampler2D u_texture; + +layout(std140) uniform commonUniforms { + vec4 u_sourceColor; + vec4 u_targetColor; + float u_linearColor; + float u_topsurface; + float u_sidesurface; + float u_heightfixed; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A + float u_raisingHeight; +}; + +in vec4 v_Color; +in vec3 v_uvs; +in vec2 v_texture_data; + + +#pragma include "picking" + +out vec4 outputColor; + +void main() { + float opacity = u_opacity; + float isSide = v_texture_data.x; + float lightWeight = v_texture_data.y; + float topU = v_uvs[0]; + float topV = 1.0 - v_uvs[1]; + float sidey = v_uvs[2]; + // Tip: \u90E8\u5206\u673A\u578B GPU \u8BA1\u7B97\u7CBE\u5EA6\u517C\u5BB9 + if(isSide < 0.999) {// \u662F\u5426\u662F\u8FB9\u7F18 + // side face + if(u_sidesurface < 1.0) { + discard; + } + + if(u_linearColor == 1.0) { + vec4 linearColor = mix(u_targetColor, u_sourceColor, sidey); + linearColor.rgb *= lightWeight; + outputColor = linearColor; + } else { + outputColor = v_Color; + } + } else { + + // top face + if(u_topsurface < 1.0) { + discard; + } + + outputColor = texture(SAMPLER_2D(u_texture), vec2(topU, topV)); + } + + + outputColor.a *= opacity; + outputColor = filterColor(outputColor); +} +`,JR=`layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in float a_Size; +layout(location = 13) in vec3 a_Normal; +layout(location = 14) in vec3 a_uvs; + + +layout(std140) uniform commonUniforms { + vec4 u_sourceColor; + vec4 u_targetColor; + float u_linearColor; + float u_topsurface; + float u_sidesurface; + float u_heightfixed; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A + float u_raisingHeight; +}; + +out vec4 v_Color; + +out vec2 v_texture_data; +out vec3 v_uvs; + +#pragma include "projection" +#pragma include "light" +#pragma include "picking" + +void main() { + + vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0); + float lightWeight = calc_lighting(pos); + vec4 project_pos = project_position(pos); + v_uvs = a_uvs; + v_Color = a_Color; + v_Color.a *= opacity; + + v_texture_data = vec2(a_Position.z, lightWeight); + + if(u_heightfixed > 0.0) { // \u5224\u65AD\u51E0\u4F55\u4F53\u662F\u5426\u56FA\u5B9A\u9AD8\u5EA6 + project_pos.z = a_Position.z * a_Size; + project_pos.z += u_raisingHeight; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + project_pos.z *= mapboxZoomScale; + project_pos.z += u_raisingHeight * mapboxZoomScale; + } + } + + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); + + + + setPickingColor(a_PickingColor); +} +`,eM=` +layout(std140) uniform commonUniforms { + vec4 u_sourceColor; + vec4 u_targetColor; + float u_linearColor; + float u_topsurface; + float u_sidesurface; + float u_heightfixed; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A + float u_raisingHeight; +}; + +in vec4 v_Color; +in vec3 v_uvs; +in vec2 v_texture_data; +out vec4 outputColor; + +#pragma include "picking" + +void main() { + float isSide = v_texture_data.x; + float sidey = v_uvs[2]; + float lightWeight = v_texture_data.y; + + // Tip: \u90E8\u5206\u673A\u578B GPU \u8BA1\u7B97\u7CBE\u5EA6\u517C\u5BB9 + if(isSide < 0.999) { + // side face + if(u_sidesurface < 1.0) { + discard; + } + + if( u_linearColor == 1.0) { + // side use linear + vec4 linearColor = mix(u_targetColor, u_sourceColor, sidey); + linearColor.rgb *= lightWeight; + outputColor = linearColor; + } else { + // side notuse linear + outputColor = v_Color; + } + } else { + // top face + if(u_topsurface < 1.0) { + discard; + } + outputColor = v_Color; + } + + outputColor = filterColorAlpha(outputColor, lightWeight); +} +`,tM=`layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in float a_Size; +layout(location = 13) in vec3 a_Normal; +layout(location = 14) in vec3 a_uvs; + + +layout(std140) uniform commonUniforms { + vec4 u_sourceColor; + vec4 u_targetColor; + float u_linearColor; + float u_topsurface; + float u_sidesurface; + float u_heightfixed; // \u9ED8\u8BA4\u4E0D\u56FA\u5B9A + float u_raisingHeight; +}; + +out vec2 v_texture_data; +out vec3 v_uvs; +out vec4 v_Color; + + +#pragma include "projection" +#pragma include "light" +#pragma include "picking" + +void main() { + + + v_uvs = a_uvs; + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size, 1.0); + vec4 project_pos = project_position(pos); + + if(u_heightfixed > 0.0) { // \u5224\u65AD\u51E0\u4F55\u4F53\u662F\u5426\u56FA\u5B9A\u9AD8\u5EA6 + project_pos.z = a_Position.z * a_Size; + project_pos.z += u_raisingHeight; + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + project_pos.z *= mapboxZoomScale; + project_pos.z += u_raisingHeight * mapboxZoomScale; + } + } + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); + float lightWeight = calc_lighting(pos); + v_texture_data = vec2(a_Position.z,lightWeight); + + v_Color = vec4(a_Color.rgb * lightWeight, a_Color.w * opacity); + + setPickingColor(a_PickingColor); +} +`,rM=function(e){(0,Fe.Z)(t,e);var r=$R(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.getCommonUniformsInfo(),a=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),(0,H.Z)((0,H.Z)({},i.uniformsOption),a.uniformsOption)}},{key:"getCommonUniformsInfo",value:function(){var i=this.layer.getLayerConfig(),a=i.heightfixed,s=a===void 0?!1:a,l=i.raisingHeight,f=l===void 0?0:l,d=i.topsurface,_=d===void 0?!0:d,b=i.sidesurface,T=b===void 0?!0:b,M=i.sourceColor,P=i.targetColor,D=0,G=[1,1,1,1],q=[1,1,1,1];M&&P&&(G=vi(M),q=vi(P),D=1);var se={u_sourceColor:G,u_targetColor:q,u_linearColor:D,u_topsurface:Number(_),u_sidesurface:Number(T),u_heightfixed:Number(s),u_raisingHeight:Number(f),u_texture:this.texture};this.texture&&(this.textures=[this.texture]);var Se=this.getUniformsBufferInfo(se);return Se}},{key:"initModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){return _e().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,this.loadTexture();case 2:return l.abrupt("return",this.buildModels());case 3:case"end":return l.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){var s,l,f,d,_;return _e().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return s=this.getShaders(),l=s.frag,f=s.vert,d=s.type,this.initUniformsBuffer(),T.next=4,this.layer.buildLayerModel({moduleName:d,vertexShader:f,fragmentShader:l,depth:{enable:!0},inject:this.getInject(),triangulation:X0});case 4:return _=T.sent,T.abrupt("return",[_]);case 6:case"end":return T.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getShaders",value:function(){var i=this.layer.getLayerConfig(),a=i.pickLight,s=i.mapTexture;return s?{frag:QR,vert:JR,type:"polygonExtrudeTexture"}:a?{frag:eM,vert:tM,type:"polygonExtrudePickLight"}:{frag:qR,vert:KR,type:"polygonExtrude"}}},{key:"clearModels",value:function(){var i;(i=this.texture)===null||i===void 0||i.destroy(),this.textures=[]}},{key:"registerBuiltinAttributes",value:function(){var i=this.layer.getSource().extent,a=i,s=this.layer.coordCenter||this.layer.getSource().center,l=a[2]-a[0],f=a[3]-a[1];if(this.mapService.version==="GAODE2.x"){var d=this.mapService.coordToAMap2RelativeCoordinates([i[0],i[1]],s),_=(0,_n.Z)(d,2),b=_[0],T=_[1],M=this.mapService.coordToAMap2RelativeCoordinates([i[2],i[3]],s),P=(0,_n.Z)(M,2),D=P[0],G=P[1];l=D-b,f=G-T,a=[b,T,D,G]}this.styleAttributeService.registerStyleAttribute({name:"uvs",type:In.Attribute,descriptor:{name:"a_uvs",shaderLocation:Yn.UV,buffer:{usage:I.STATIC_DRAW,data:[],type:I.FLOAT},size:3,update:function(se,Se,Ve){var nt=Ve[0],st=Ve[1];return[(nt-a[0])/l,(st-a[1])/f,Ve[4]]}}}),this.styleAttributeService.registerStyleAttribute({name:"normal",type:In.Attribute,descriptor:{name:"a_Normal",shaderLocation:Yn.NORMAL,buffer:{usage:I.STATIC_DRAW,data:[],type:I.FLOAT},size:3,update:function(se,Se,Ve,nt,st){return st}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:In.Attribute,descriptor:{name:"a_Size",shaderLocation:Yn.SIZE,buffer:{usage:I.DYNAMIC_DRAW,data:[],type:I.FLOAT},size:1,update:function(se){var Se=se.size,Ve=Se===void 0?10:Se;return Array.isArray(Ve)?[Ve[0]]:[Ve]}}})}},{key:"loadTexture",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){var s=this,l,f,d;return _e().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(l=this.layer.getLayerConfig(),f=l.mapTexture,d=this.rendererService.createTexture2D,this.texture=d({height:0,width:0}),!f){b.next=5;break}return b.abrupt("return",new Promise(function(T,M){var P=new Image;P.crossOrigin="anonymous",P.src=f,P.onload=function(){return s.texture=d({data:P,width:P.width,height:P.height,wrapS:I.CLAMP_TO_EDGE,wrapT:I.CLAMP_TO_EDGE,min:I.LINEAR,mag:I.LINEAR}),T(null)},P.onerror=function(){M(new Error("image load error"))}}));case 5:case"end":return b.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()}]),t}(Na);function nM(e){var r=iM();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function iM(){if(typeof Reflect=="undefined"||!Reflect.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 aM=` +in vec4 v_Color; +#pragma include "picking" +out vec4 outputColor; +void main() { + + outputColor = v_Color; + outputColor = filterColor(outputColor); +} +`,oM=`layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 9) in float a_Size; +layout(location = 13) in vec3 a_Normal; + +out vec4 v_Color; + +#pragma include "projection" +#pragma include "light" +#pragma include "picking" + +void main() { + + vec4 pos = vec4(a_Position.xy, a_Position.z * a_Size + (1.0 - a_Position.z) * extrusionBase, 1.0); + + vec4 project_pos = project_position(pos); + float lightWeight = calc_lighting(project_pos); + v_Color = a_Color; + v_Color = vec4(v_Color.rgb * lightWeight, v_Color.w * opacity); + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); + + setPickingColor(a_PickingColor); +} +`,sM=function(e){(0,Fe.Z)(t,e);var r=nM(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.getCommonUniformsInfo(),a=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),(0,H.Z)((0,H.Z)({},i.uniformsOption),a.uniformsOption)}},{key:"getCommonUniformsInfo",value:function(){var i={},a=this.getUniformsBufferInfo(i);return a}},{key:"initModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){return _e().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){var s,l,f,d,_;return _e().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return s=this.getShaders(),l=s.frag,f=s.vert,d=s.type,this.initUniformsBuffer(),T.next=4,this.layer.buildLayerModel({moduleName:d,vertexShader:f,fragmentShader:l,inject:this.getInject(),triangulation:X0,depth:{enable:!0}});case 4:return _=T.sent,T.abrupt("return",[_]);case 6:case"end":return T.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getShaders",value:function(){return{frag:aM,vert:oM,type:"polygonExtrude"}}},{key:"clearModels",value:function(){var i;(i=this.texture)===null||i===void 0||i.destroy()}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"normal",type:In.Attribute,descriptor:{name:"a_Normal",shaderLocation:Yn.NORMAL,buffer:{usage:I.STATIC_DRAW,data:[],type:I.FLOAT},size:3,update:function(a,s,l,f,d){return d}}}),this.styleAttributeService.registerStyleAttribute({name:"size",type:In.Attribute,descriptor:{name:"a_Size",shaderLocation:Yn.SIZE,buffer:{usage:I.DYNAMIC_DRAW,data:[],type:I.FLOAT},size:1,update:function(a){var s=a.size,l=s===void 0?10:s;return Array.isArray(l)?[l[0]]:[l]}}})}}]),t}(Na);function uM(e){var r=lM();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function lM(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var cM=`in vec4 v_color; +#pragma include "picking" +out vec4 outputColor; +void main() { + outputColor = v_color; + outputColor = filterColor(outputColor); +} +`,fM=` +layout(std140) uniform commonUniforms { + float u_raisingHeight; + float u_opacitylinear; + float u_dir; +}; + +in vec3 v_linear; +in vec2 v_pos; +in vec4 v_color; +out vec4 outputColor; +#pragma include "picking" + +void main() { + outputColor = v_color; + if(u_opacitylinear > 0.0) { + outputColor.a *= u_dir == 1.0 ? 1.0 - length(v_pos - v_linear.xy)/v_linear.z : length(v_pos - v_linear.xy)/v_linear.z; + } + outputColor = filterColor(outputColor); +} +`,hM=`layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 15) in vec3 a_linear; + + +layout(std140) uniform commonUniforms { + float u_raisingHeight; + float u_opacitylinear; + float u_dir; +}; + + +out vec4 v_color; + +#pragma include "projection" +#pragma include "picking" + +out vec3 v_linear; +out vec2 v_pos; + +void main() { + if(u_opacitylinear > 0.0) { + v_linear = a_linear; + v_pos = a_Position.xy; + } + v_color = vec4(a_Color.xyz, a_Color.w * opacity); + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + project_pos.z += u_raisingHeight; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + project_pos.z *= mapboxZoomScale; + project_pos.z += u_raisingHeight * mapboxZoomScale; + } + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); + setPickingColor(a_PickingColor); +}`,pM=`layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; + +layout(std140) uniform commonUniforms { + float u_raisingHeight; +}; + + +out vec4 v_color; + + +#pragma include "projection" +#pragma include "picking" + +void main() { + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + // cal style mapping - \u6570\u636E\u7EB9\u7406\u6620\u5C04\u90E8\u5206\u7684\u8BA1\u7B97 + + v_color = vec4(a_Color.xyz, a_Color.w * opacity); + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + // gl_Position = project_common_position_to_clipspace(vec4(project_pos.xyz, 1.0)); + + project_pos.z += u_raisingHeight; + + if(u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT || u_CoordinateSystem == COORDINATE_SYSTEM_LNGLAT_OFFSET) { + float mapboxZoomScale = 4.0/pow(2.0, 21.0 - u_Zoom); + project_pos.z *= mapboxZoomScale; + project_pos.z += u_raisingHeight * mapboxZoomScale; + } + + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); + + setPickingColor(a_PickingColor); +} + +`,dM=function(e){(0,Fe.Z)(t,e);var r=uM(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.getCommonUniformsInfo(),a=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),(0,H.Z)((0,H.Z)({},i.uniformsOption),a.uniformsOption)}},{key:"getCommonUniformsInfo",value:function(){var i=this.layer.getLayerConfig(),a=i.raisingHeight,s=a===void 0?0:a,l=i.opacityLinear,f=l===void 0?{enable:!1,dir:"in"}:l,d={u_raisingHeight:Number(s),u_opacitylinear:Number(f.enable),u_dir:f.dir==="in"?1:0},_=this.getUniformsBufferInfo(d);return _}},{key:"initModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){return _e().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){var s,l,f,d,_,b;return _e().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return s=this.getModelParams(),l=s.frag,f=s.vert,d=s.triangulation,_=s.type,this.initUniformsBuffer(),this.layer.triangulation=d,M.next=5,this.layer.buildLayerModel({moduleName:_,vertexShader:f,fragmentShader:l,inject:this.getInject(),triangulation:d,primitive:I.TRIANGLES,depth:{enable:!1}});case 5:return b=M.sent,M.abrupt("return",[b]);case 7:case"end":return M.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){var i=this.layer.getLayerConfig(),a=i.opacityLinear,s=a===void 0?{enable:!1,dir:"in"}:a;s.enable&&this.styleAttributeService.registerStyleAttribute({name:"linear",type:In.Attribute,descriptor:{name:"a_linear",shaderLocation:Yn.LINEAR,buffer:{usage:I.STATIC_DRAW,data:[],type:I.FLOAT},size:3,update:function(f,d,_){return[_[3],_[4],_[5]]}}})}},{key:"getModelParams",value:function(){var i=this.layer.getLayerConfig(),a=i.opacityLinear,s=a===void 0?{enable:!1}:a;return s.enable?{frag:fM,vert:hM,type:"polygonLinear",triangulation:Hw}:{frag:cM,vert:pM,type:"polygonFill",triangulation:Mh}}}]),t}(Na);function vM(e){var r=mM();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function mM(){if(typeof Reflect=="undefined"||!Reflect.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 gM=` +layout(std140) uniform commonUniforms { + vec4 u_watercolor; + vec4 u_watercolor2; + float u_time; +}; + +in vec2 v_uv; +in float v_opacity; +out vec4 outputColor; + +float coast2water_fadedepth = 0.10; +float large_waveheight = .750; // change to adjust the "heavy" waves +float large_wavesize = 3.4; // factor to adjust the large wave size +float small_waveheight = 0.6; // change to adjust the small random waves +float small_wavesize = 0.5; // factor to ajust the small wave size +float water_softlight_fact = 15.; // range [1..200] (should be << smaller than glossy-fact) +float water_glossylight_fact= 120.; // range [1..200] +float particle_amount = 70.; + +vec3 water_specularcolor = vec3(1.3, 1.3, 0.9); // specular Color (RGB) of the water-highlights +#define light vec3(-0., sin(u_time*0.5)*.5 + .35, 2.8) // position of the sun + +uniform sampler2D u_texture1; +uniform sampler2D u_texture2; +uniform sampler2D u_texture3; + + + +float hash( float n ) { + return fract(sin(n)*43758.5453123); +} + +// 2d noise function +float noise1( in vec2 x ) { + vec2 p = floor(x); + vec2 f = smoothstep(0.0, 1.0, fract(x)); + float n = p.x + p.y*57.0; + return mix(mix( hash(n+ 0.0), hash(n+ 1.0),f.x), + mix( hash(n+ 57.0), hash(n+ 58.0),f.x),f.y); +} + +float noise(vec2 p) { + return texture(SAMPLER_2D(u_texture2),p*vec2(1./256.)).x; +} + +vec4 highness(vec2 p) { + vec4 t = texture(SAMPLER_2D(u_texture1),fract(p)); + float clipped = -2.0-smoothstep(3.,10.,t.a)*6.9-smoothstep(10.,100.,t.a)*89.9-smoothstep(0.,10000.,t.a)*10000.0; + return clamp(t, 0.0,3.0)+clamp(t/3.0-1.0, 0.0,1.0)+clamp(t/16.0-1.0, 0.0,1.0); +} + +float height_map( vec2 p ) { + vec4 height=highness(p); + /* + height = -0.5+ + 0.5*smoothstep(-100.,0.,-height)+ + 2.75*smoothstep(0.,2.,height)+ + 1.75*smoothstep(2.,4.,height)+ + 2.75*smoothstep(4.,16.,height)+ + 1.5*smoothstep(16.,1000.,height); + */ + + mat2 m = mat2( 0.9563*1.4, -0.2924*1.4, 0.2924*1.4, 0.9563*1.4 ); + //p = p*6.; + float f = 0.6000*noise1( p ); p = m*p*1.1*6.; + f += 0.2500*noise( p ); p = m*p*1.32; + f += 0.1666*noise( p ); p = m*p*1.11; + f += 0.0834*noise( p ); p = m*p*1.12; + f += 0.0634*noise( p ); p = m*p*1.13; + f += 0.0444*noise( p ); p = m*p*1.14; + f += 0.0274*noise( p ); p = m*p*1.15; + f += 0.0134*noise( p ); p = m*p*1.16; + f += 0.0104*noise( p ); p = m*p*1.17; + f += 0.0084*noise( p ); + f = .25*f+dot(height,vec4(-.03125,-.125,.25,.25))*.5; + const float FLAT_LEVEL = 0.92525; + //f = f*0.25+height*0.75; + if (f level) + { + col = CalcTerrain(uv, height); + } + if (height <= level) + { + vec2 dif = vec2(.0, .01); + vec2 pos = uv*15. + vec2(u_time*.01); + float h1 = water_map(pos-dif,waveheight); + float h2 = water_map(pos+dif,waveheight); + float h3 = water_map(pos-dif.yx,waveheight); + float h4 = water_map(pos+dif.yx,waveheight); + vec3 normwater = normalize(vec3(h3-h4, h1-h2, .125)); // norm-vector of the 'bumpy' water-plane + uv += normwater.xy*.002*(level-height); + + col = CalcTerrain(uv, height); + + float coastfade = clamp((level-height)/coast2water_fadedepth, 0., 1.); + float coastfade2= clamp((level-height)/deepwater_fadedepth, 0., 1.); + float intensity = col.r*.2126+col.g*.7152+col.b*.0722; + watercolor = mix(watercolor*intensity, watercolor2, smoothstep(0., 1., coastfade2)); + + vec3 r0 = vec3(uv, WATER_LEVEL); + vec3 rd = normalize( light - r0 ); // ray-direction to the light from water-position + float grad = dot(normwater, rd); // dot-product of norm-vector and light-direction + float specular = pow(grad, water_softlight_fact); // used for soft highlights + float specular2= pow(grad, water_glossylight_fact); // used for glossy highlights + float gradpos = dot(vec3(0., 0., 1.), rd); + float specular1= smoothstep(0., 1., pow(gradpos, 5.)); // used for diffusity (some darker corona around light's specular reflections...) + float watershade = test_shadow( uv, level ); + watercolor *= 2.2+watershade; + watercolor += (.2+.8*watershade) * ((grad-1.0)*.5+specular) * .25; + watercolor /= (1.+specular1*1.25); + watercolor += watershade*specular2*water_specularcolor; + watercolor += watershade*coastfade*(1.-coastfade2)*(vec3(.5, .6, .7)*nautic(uv)+vec3(1., 1., 1.)*particles(uv)); + + col = mix(col, watercolor, coastfade); + } + + outputColor = vec4(col, v_opacity); +} +`,yM=`layout(location = 0) in vec3 a_Position; +layout(location = 14) in vec2 a_uv; + +layout(std140) uniform commonUniforms { + vec4 u_watercolor; + vec4 u_watercolor2; + float u_time; +}; + + +out vec2 v_uv; +out float v_opacity; + +#pragma include "projection" + +void main() { + v_uv = a_uv; + v_opacity = opacity; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); +} + +`,dF=ui.isNumber,_M=function(e){(0,Fe.Z)(t,e);var r=vM(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.getCommonUniformsInfo(),a=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),(0,H.Z)((0,H.Z)({},i.uniformsOption),a.uniformsOption)}},{key:"getCommonUniformsInfo",value:function(){var i=this.layer.getLayerConfig(),a=i.watercolor,s=a===void 0?"#6D99A8":a,l=i.watercolor2,f=l===void 0?"#0F121C":l,d={u_watercolor:vi(s),u_watercolor2:vi(f),u_time:this.layer.getLayerAnimateTime(),u_texture1:this.texture1,u_texture2:this.texture2,u_texture3:this.texture3};this.textures=[this.texture1,this.texture2,this.texture3];var _=this.getUniformsBufferInfo(d);return _}},{key:"getAnimateUniforms",value:function(){return{u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){return _e().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.loadTexture(),l.abrupt("return",this.buildModels());case 2:case"end":return l.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){var s;return _e().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return this.initUniformsBuffer(),f.next=3,this.layer.buildLayerModel({moduleName:"polygonOcean",vertexShader:yM,fragmentShader:gM,inject:this.getInject(),triangulation:G0,primitive:I.TRIANGLES,depth:{enable:!1}});case 3:return s=f.sent,f.abrupt("return",[s]);case 5:case"end":return f.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"clearModels",value:function(){var i,a,s;(i=this.texture1)===null||i===void 0||i.destroy(),(a=this.texture2)===null||a===void 0||a.destroy(),(s=this.texture3)===null||s===void 0||s.destroy()}},{key:"registerBuiltinAttributes",value:function(){var i=this.layer.getSource().extent,a=(0,_n.Z)(i,4),s=a[0],l=a[1],f=a[2],d=a[3],_=f-s,b=d-l;this.styleAttributeService.registerStyleAttribute({name:"oceanUv",type:In.Attribute,descriptor:{name:"a_uv",shaderLocation:Yn.UV,buffer:{usage:I.STATIC_DRAW,data:[],type:I.FLOAT},size:2,update:function(M,P,D,G){var q=M.version==="GAODE2.x"?M.originCoordinates[0][G]:D,se=(0,_n.Z)(q,2),Se=se[0],Ve=se[1];return[(Se-s)/_,(Ve-l)/b]}}})}},{key:"loadTexture",value:function(){var i=this,a=this.rendererService.createTexture2D,s={height:0,width:0};this.texture1=a(s),this.texture2=a(s),this.texture3=a(s),l(function(d){i.texture1=f(d[0]),i.texture2=f(d[1]),i.texture3=f(d[2]),i.layerService.reRender()});function l(d){var _=0,b=[],T=["https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ","https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*MJ22QbpuCzIAAAAAAAAAAAAAARQnAQ","https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*-z2HSIVDsHIAAAAAAAAAAAAAARQnAQ"];T.map(function(M){var P=new Image;P.crossOrigin="",P.src=M,b.push(P),P.onload=function(){_++,_===3&&d(b)}})}function f(d){return a({data:d,width:d.width,height:d.height,wrapS:I.MIRRORED_REPEAT,wrapT:I.MIRRORED_REPEAT,min:I.LINEAR,mag:I.LINEAR})}}}]),t}(Na);function xM(e){var r=bM();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function bM(){if(typeof Reflect=="undefined"||!Reflect.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 EM=`uniform sampler2D u_texture; +layout(std140) uniform commonUniforms { + float u_speed; + float u_time; +}; + +out vec4 outputColor; + + +in vec4 v_Color; +in vec2 v_uv; + +float rand(vec2 n) { return 0.5 + 0.5 * fract(sin(dot(n.xy, vec2(12.9898, 78.233)))* 43758.5453); } + +float water(vec3 p) { + float t = u_time * u_speed; + p.z += t * 2.; p.x += t * 2.; + vec3 c1 = texture(SAMPLER_2D(u_texture), p.xz / 30.).xyz; + p.z += t * 3.; p.x += t * 0.52; + vec3 c2 = texture(SAMPLER_2D(u_texture), p.xz / 30.).xyz; + p.z += t * 4.; p.x += t * 0.8; + vec3 c3 = texture(SAMPLER_2D(u_texture), p.xz / 30.).xyz; + c1 += c2 - c3; + float z = (c1.x + c1.y + c1.z) / 3.; + return p.y + z / 4.; +} + +float map(vec3 p) { + float d = 100.0; + d = water(p); + return d; +} + +float intersect(vec3 ro, vec3 rd) { + float d = 0.0; + for (int i = 0; i <= 100; i++) { + float h = map(ro + rd * d); + if (h < 0.1) return d; + d += h; + } + return 0.0; +} + +vec3 norm(vec3 p) { + float eps = .1; + return normalize(vec3( + map(p + vec3(eps, 0, 0)) - map(p + vec3(-eps, 0, 0)), + map(p + vec3(0, eps, 0)) - map(p + vec3(0, -eps, 0)), + map(p + vec3(0, 0, eps)) - map(p + vec3(0, 0, -eps)) + )); +} + +float calSpc() { + vec3 l1 = normalize(vec3(1, 1, 1)); + vec3 ro = vec3(-3, 20, -8); + vec3 rc = vec3(0, 0, 0); + vec3 ww = normalize(rc - ro); + vec3 uu = normalize(cross(vec3(0,1,0), ww)); + vec3 vv = normalize(cross(rc - ro, uu)); + vec3 rd = normalize(uu * v_uv.x + vv * v_uv.y + ww); + float d = intersect(ro, rd); + vec3 p = ro + rd * d; + vec3 n = norm(p); + float spc = pow(max(0.0, dot(reflect(l1, n), rd)), 30.0); + return spc; +} + +void main() { + + outputColor = v_Color; + float spc = calSpc(); + outputColor += spc * 0.4; +} +`,SM=`layout(location = 0) in vec3 a_Position; +layout(location = 1) in vec4 a_Color; +layout(location = 14) in vec2 a_uv; +layout(std140) uniform commonUniforms { + float u_speed; + float u_time; +}; +out vec4 v_Color; +out vec2 v_uv; + + +#pragma include "projection" + +void main() { + v_uv = a_uv; + v_Color = a_Color; + v_Color.a *= opacity; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xyz, 1.0)); +} + +`,vF=ui.isNumber,AM=function(e){(0,Fe.Z)(t,e);var r=xM(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.getCommonUniformsInfo(),a=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),(0,H.Z)((0,H.Z)({},i.uniformsOption),a.uniformsOption)}},{key:"getCommonUniformsInfo",value:function(){var i=this.layer.getLayerConfig(),a=i.speed,s=a===void 0?.5:a,l={u_speed:s,u_time:this.layer.getLayerAnimateTime(),u_texture:this.texture};this.textures=[this.texture];var f=this.getUniformsBufferInfo(l);return f}},{key:"getAnimateUniforms",value:function(){return{u_time:this.layer.getLayerAnimateTime()}}},{key:"initModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){return _e().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return this.loadTexture(),l.abrupt("return",this.buildModels());case 2:case"end":return l.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){var s;return _e().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return this.initUniformsBuffer(),f.next=3,this.layer.buildLayerModel({moduleName:"polygonWater",vertexShader:SM,fragmentShader:EM,triangulation:G0,inject:this.getInject(),primitive:I.TRIANGLES,depth:{enable:!1}});case 3:return s=f.sent,f.abrupt("return",[s]);case 5:case"end":return f.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"clearModels",value:function(){var i;(i=this.texture)===null||i===void 0||i.destroy()}},{key:"registerBuiltinAttributes",value:function(){var i=this.layer.getSource().extent,a=(0,_n.Z)(i,4),s=a[0],l=a[1],f=a[2],d=a[3],_=f-s,b=d-l;this.styleAttributeService.registerStyleAttribute({name:"waterUv",type:In.Attribute,descriptor:{name:"a_uv",shaderLocation:Yn.UV,buffer:{usage:I.STATIC_DRAW,data:[],type:I.FLOAT},size:2,update:function(M,P,D,G){var q=M.version==="GAODE2.x"?M.originCoordinates[0][G]:D,se=(0,_n.Z)(q,2),Se=se[0],Ve=se[1];return[(Se-s)/_,(Ve-l)/b]}}})}},{key:"loadTexture",value:function(){var i=this,a=this.layer.getLayerConfig(),s=a.waterTexture,l=this.rendererService.createTexture2D;this.texture=l({height:0,width:0});var f=new Image;f.crossOrigin="",s?(console.warn("L7 recommend\uFF1Ahttps://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ"),f.src=s):f.src="https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*EojwT4VzSiYAAAAAAAAAAAAAARQnAQ",f.onload=function(){i.texture=l({data:f,width:f.width,height:f.height,wrapS:I.MIRRORED_REPEAT,wrapT:I.MIRRORED_REPEAT,min:I.LINEAR,mag:I.LINEAR}),i.layerService.reRender()}}}]),t}(Na),TM={fill:dM,line:F1,extrude:rM,text:ex,point_fill:z1,point_image:Z1,point_normal:j1,point_extrude:U1,water:AM,ocean:_M,extrusion:sM},wM=TM;function CM(e){var r=RM();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function RM(){if(typeof Reflect=="undefined"||!Reflect.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 kg=function(e){(0,Fe.Z)(t,e);var r=CM(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,a=new Array(i),s=0;s 0.0 || x < 0.0) ? x != x : x != 0.0; } + +out vec4 outputColor; + +void main() { + // Can use any component here since u_rasterTexture is under luminance format. + float value = texture(SAMPLER_2D(u_rasterTexture), vec2(v_texCoord.x, v_texCoord.y)).r; + if (value == u_noDataValue || isnan_emu(value)) { + discard; + } else if ((!u_clampLow && value < u_domain[0]) || (!u_clampHigh && value > u_domain[1])) { + discard; + } else { + float normalisedValue =(value - u_domain[0]) / (u_domain[1] - u_domain[0]); + vec4 color = texture(SAMPLER_2D(u_colorTexture), vec2(normalisedValue, 0)); + + outputColor = color; + outputColor.a = outputColor.a * u_opacity ; + if (outputColor.a < 0.01) + discard; + } +} +`,OM=` +layout(location = 0) in vec3 a_Position; +layout(location = 14) in vec2 a_Uv; + +layout(std140) uniform commonUniforms { + vec2 u_domain; + float u_opacity; + float u_noDataValue; + bool u_clampLow; + bool u_clampHigh; +}; + +out vec2 v_texCoord; + +#pragma include "projection" + +void main() { + v_texCoord = a_Uv; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); +} +`,rx=function(e){(0,Fe.Z)(t,e);var r=MM(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.getCommonUniformsInfo(),a=this.getUniformsBufferInfo(this.getStyleAttribute());return this.updateStyleUnifoms(),(0,H.Z)((0,H.Z)({},i.uniformsOption),a.uniformsOption)}},{key:"getCommonUniformsInfo",value:function(){var i=this.layer.getLayerConfig(),a=i.opacity,s=a===void 0?1:a,l=i.clampLow,f=l===void 0?!0:l,d=i.clampHigh,_=d===void 0?!0:d,b=i.noDataValue,T=b===void 0?-9999999:b,M=i.domain,P=i.rampColors,D=M||yc(P);this.colorTexture=this.layer.textureService.getColorTexture(P,D);var G={u_domain:D,u_opacity:s||1,u_noDataValue:T,u_clampLow:f,u_clampHigh:typeof _!="undefined"?_:f,u_rasterTexture:this.texture,u_colorTexture:this.colorTexture};this.textures=[this.texture,this.colorTexture];var q=this.getUniformsBufferInfo(G);return q}},{key:"getRasterData",value:function(){var n=(0,Ft.Z)(_e().mark(function a(s){var l,f,d,_;return _e().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(!Array.isArray(s.data)){T.next=4;break}return T.abrupt("return",{data:s.data,width:s.width,height:s.height});case 4:return T.next=6,s.data;case 6:return l=T.sent,f=l.rasterData,d=l.width,_=l.height,T.abrupt("return",{data:Array.from(f),width:d,height:_});case 11:case"end":return T.stop()}},a)}));function i(a){return n.apply(this,arguments)}return i}()},{key:"initModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){return _e().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.buildModels());case 1:case"end":return l.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"buildModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){var s,l,f,d,_,b,T,M,P,D;return _e().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return this.initUniformsBuffer(),s=this.layer.getSource(),l=this.rendererService,f=l.createTexture2D,d=l.queryVerdorInfo,_=s.data.dataArray[0],q.next=6,this.getRasterData(_);case 6:return b=q.sent,T=b.data,M=b.width,P=b.height,this.texture=f({data:new Float32Array(T),width:M,height:P,format:d()==="WebGL1"?I.LUMINANCE:I.RED,type:I.FLOAT,alignment:1}),q.next=13,this.layer.buildLayerModel({moduleName:"rasterImageData",vertexShader:OM,fragmentShader:PM,triangulation:Ig,primitive:I.TRIANGLES,depth:{enable:!1}});case 13:return D=q.sent,q.abrupt("return",[D]);case 15:case"end":return q.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"clearModels",value:function(){var i,a;(i=this.texture)===null||i===void 0||i.destroy(),(a=this.colorTexture)===null||a===void 0||a.destroy()}},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"uv",type:In.Attribute,descriptor:{shaderLocation:Yn.UV,name:"a_Uv",buffer:{usage:I.DYNAMIC_DRAW,data:[],type:I.FLOAT},size:2,update:function(a,s,l){return[l[3],l[4]]}}})}}]),t}(Na),kM=["data"],DM=["rasterData"];function LM(e){var r=BM();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function BM(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var FM=`uniform sampler2D u_texture; +layout(std140) uniform commonUniforms { + vec2 u_rminmax; + vec2 u_gminmax; + vec2 u_bminmax; + float u_opacity; + float u_noDataValue; +}; + +in vec2 v_texCoord; + +out vec4 outputColor; + +void main() { + + vec3 rgb = texture(SAMPLER_2D(u_texture),vec2(v_texCoord.x,v_texCoord.y)).rgb; + + if(rgb == vec3(u_noDataValue)) { + outputColor = vec4(0.0, 0, 0, 0.0); + } else { + outputColor = vec4(rgb.r / (u_rminmax.y -u_rminmax.x), rgb.g /(u_gminmax.y -u_gminmax.x), rgb.b/ (u_bminmax.y - u_bminmax.x), u_opacity); + } + if(outputColor.a < 0.01) + discard; + +}`,NM=` +layout(location = 0) in vec3 a_Position; +layout(location = 14) in vec2 a_Uv; + +layout(std140) uniform commonUniforms { + vec2 u_rminmax; + vec2 u_gminmax; + vec2 u_bminmax; + float u_opacity; + float u_noDataValue; +}; + +out vec2 v_texCoord; + +#pragma include "projection" + +void main() { + v_texCoord = a_Uv; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); +} +`,UM=function(e){(0,Fe.Z)(t,e);var r=LM(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,a=new Array(i),s=0;s u_domain[1])) { + gl_FragColor = vec4(0.0, 0, 0, 0.0); + } else { + + gl_FragColor = getColor(value); + gl_FragColor.a = gl_FragColor.a * u_opacity ; + if(gl_FragColor.a < 0.01) + discard; + } +} +`,jM=`precision highp float; +uniform mat4 u_ModelMatrix; + +attribute vec3 a_Position; +attribute vec2 a_Uv; +varying vec2 v_texCoord; +#pragma include "projection" +void main() { + v_texCoord = a_Uv; + vec4 project_pos = project_position(vec4(a_Position, 1.0)); + gl_Position = project_common_position_to_clipspace_v2(vec4(project_pos.xy,0., 1.0)); +} +`,HM=function(e){(0,Fe.Z)(t,e);var r=zM(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(),a=i.opacity,s=i.clampLow,l=s===void 0?!0:s,f=i.clampHigh,d=f===void 0?!0:f,_=i.noDataValue,b=_===void 0?-9999999:_,T=i.domain,M=i.rampColors,P=i.colorTexture,D=i.rScaler,G=D===void 0?6553.6:D,q=i.gScaler,se=q===void 0?25.6:q,Se=i.bScaler,Ve=Se===void 0?.1:Se,nt=i.offset,st=nt===void 0?1e4:nt,at=T||yc(M),At=P;return P?this.layer.textureService.setColorTexture(P,M,at):At=this.layer.textureService.getColorTexture(M,at),{u_opacity:a||1,u_texture:this.texture,u_domain:at,u_clampLow:l,u_clampHigh:typeof d!="undefined"?d:l,u_noDataValue:b,u_unpack:[G,se,Ve,st],u_colorTexture:At}}},{key:"initModels",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){var s,l,f,d;return _e().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.layer.getSource(),l=this.rendererService.createTexture2D,b.next=4,s.data.images;case 4:return f=b.sent,this.texture=l({data:f[0],width:f[0].width,height:f[0].height,min:I.LINEAR,mag:I.LINEAR}),b.next=8,this.layer.buildLayerModel({moduleName:"RasterTileDataImage",vertexShader:jM,fragmentShader:VM,triangulation:Ig,primitive:I.TRIANGLES,depth:{enable:!1}});case 8:return d=b.sent,b.abrupt("return",[d]);case 10:case"end":return b.stop()}},a,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,Ft.Z)(_e().mark(function a(){return _e().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",this.initModels());case 1:case"end":return l.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"registerBuiltinAttributes",value:function(){this.styleAttributeService.registerStyleAttribute({name:"uv",type:In.Attribute,descriptor:{name:"a_Uv",buffer:{usage:I.DYNAMIC_DRAW,data:[],type:I.FLOAT},size:2,update:function(a,s,l){return[l[3],l[4]]}}})}}]),t}(Na),WM={raster:rx,rasterRgb:UM,raster3d:rx,rasterTerrainRgb:HM},GM=WM;function XM(e){var r=$M();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function $M(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var Dg=function(e){(0,Fe.Z)(t,e);var r=XM(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,a=new Array(i),s=0;s0&&arguments[0]!==void 0?arguments[0]:!0;i&&this.layerService.clear()}},{key:"registerBuiltinAttributes",value:function(){return""}}]),t}(Na),eI={fill:JM},tI=eI;function rI(e){var r=nI();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function nI(){if(typeof Reflect=="undefined"||!Reflect.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 nx=function(e){(0,Fe.Z)(t,e);var r=rI(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,a=new Array(i),s=0;s0&&this.mapService.version==="GAODE2.x"){var a=n.coordCenter||n.getSource().center;t.filter(function(s){return!s.originCoordinates}).map(function(s){s.version="GAODE2.x",s.originCoordinates=iI(s.coordinates),s.coordinates=i.mapService.coordToAMap2RelativeCoordinates(s.coordinates,a)})}}},{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 a=[];return t.map(function(s){a.push(n.mapService.simpleMapCoord.unproject(s))}),a}}},{key:"applyAttributeMapping",value:function(t,n){var i;if(!t.scale)return[];var a=(t==null||(i=t.scale)===null||i===void 0?void 0:i.scalers)||[],s=[];a.forEach(function(f){var d,_=f.field;(n.hasOwnProperty(_)||((d=t.scale)===null||d===void 0?void 0:d.type)==="variable")&&s.push(n[_])});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]],a=Vu(i),s=[t[0]+a[0]*1e-4,t[1]+a[1]*1e-4];return s}}]),e}(),ux=Pi(Lg.prototype,"mapService",[ax],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),lx=Pi(Lg.prototype,"fontService",[ox],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Lg))||sx),cx,fx,oI=(cx=(0,er.b2)(),cx(fx=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(Ke.IMapService),t.hooks.init.tapPromise("DataSourcePlugin",(0,Ft.Z)(_e().mark(function i(){var a,s,l,f;return _e().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(t.log(Ds.SourceInitStart,es.INIT),a=t.getSource(),a||(s=t.sourceOption||t.defaultSourceConfig,l=s.data,f=s.options,a=new $_(l,f),t.setSource(a)),!a.inited){_.next=8;break}n.updateClusterData(t),t.log(Ds.SourceInitEnd,es.INIT),_.next=10;break;case 8:return _.next=10,new Promise(function(b){a.on("update",function(T){T.type==="inited"&&(n.updateClusterData(t),t.log(Ds.SourceInitEnd,es.INIT)),b(null)})});case 10:case"end":return _.stop()}},i)}))),t.hooks.beforeRenderData.tapPromise("DataSourcePlugin",(0,Ft.Z)(_e().mark(function i(){var a,s,l;return _e().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return a=n.updateClusterData(t),s=t.dataState.dataSourceNeedUpdate,t.dataState.dataSourceNeedUpdate=!1,l=a||s,d.abrupt("return",l);case 5:case"end":return d.stop()}},i)})))}},{key:"updateClusterData",value:function(t){if(t.isTileLayer||t.tileLayer||!t.getSource())return!1;var n=t.getSource(),i=n.cluster,a=n.clusterOptions.zoom,s=a===void 0?0:a,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}())||fx);function K0(e,r){return er?1:e>=r?0:NaN}function hx(e){return e.length===1&&(e=sI(e)),{left:function(r,t,n,i){for(n==null&&(n=0),i==null&&(i=r.length);n>>1;e(r[a],t)<0?n=a+1:i=a}return n},right:function(r,t,n,i){for(n==null&&(n=0),i==null&&(i=r.length);n>>1;e(r[a],t)>0?i=a:n=a+1}return n}}}function sI(e){return function(r,t){return K0(e(r),t)}}var px=hx(K0),uI=px.right,mF=px.left,Bg=uI;function dx(e,r){var t=e.length,n=-1,i,a,s;if(r==null){for(;++n=i)for(a=s=i;++ni&&(a=i),s=i)for(a=s=i;++ni&&(a=i),s0)return[e];if((n=r0)for(e=Math.ceil(e/l),r=Math.floor(r/l),s=new Array(a=Math.ceil(r-e+1));++i=0?(a>=Q0?10:a>=J0?5:a>=ey?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=Q0?10:a>=J0?5:a>=ey?2:1)}function ty(e,r,t){var n=Math.abs(r-e)/Math.max(0,t),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),a=n/i;return a>=Q0?i*=10:a>=J0?i*=5:a>=ey&&(i*=2),rb;)T.pop(),--M;var P=new Array(M+1),D;for(a=0;a<=M;++a)D=P[a]=[],D.x0=a>0?T[a-1]:_,D.x1=a=1)return+t(e[n-1],n-1,e);var n,i=(n-1)*r,a=Math.floor(i),s=+t(e[a],a,e),l=+t(e[a+1],a+1,e);return s+(l-s)*(i-a)}}function gx(e,r,t,n,i){var a=e*e,s=a*e;return((1-3*e+3*a-s)*r+(4-6*a+3*s)*t+(1+3*e+3*a-3*s)*n+s*i)/6}function fI(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],a=e[n+1],s=n>0?e[n-1]:2*i-a,l=n180||t<-180?t-360*Math.round(t/360):t):constant(isNaN(e)?r:e)}function dI(e){return(e=+e)==1?_x:function(r,t){return t-r?pI(r,t,e):ry(isNaN(r)?t:r)}}function _x(e,r){var t=r-e;return t?yx(e,t):ry(isNaN(e)?r:e)}var xx=function e(r){var t=dI(r);function n(i,a){var s=t((i=(0,vs.B8)(i)).r,(a=(0,vs.B8)(a)).r),l=t(i.g,a.g),f=t(i.b,a.b),d=_x(i.opacity,a.opacity);return function(_){return i.r=s(_),i.g=l(_),i.b=f(_),i.opacity=d(_),i+""}}return n.gamma=e,n}(1);function bx(e){return function(r){var t=r.length,n=new Array(t),i=new Array(t),a=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++],P,D,G=map(),q,se=d();++be.length)return l;var d,_=r[f-1];return n!=null&&f>=e.length?d=l.entries():(d=[],l.each(function(b,T){d.push({key:T,values:s(b,f)})})),_!=null?d.sort(function(b,T){return _(b.key,T.key)}):d}return i={object:function(l){return a(l,0,mI,gI)},map:function(l){return a(l,0,Sx,Ax)},entries:function(l){return s(a(l,0,Sx,Ax),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 mI(){return{}}function gI(e,r,t){e[r]=t}function Sx(){return map()}function Ax(e,r,t){e.set(r,t)}function Ug(){}var bd=ny.prototype;Ug.prototype=yI.prototype={constructor:Ug,has:bd.has,add:function(e){return e+="",this[Gc+e]=e,this},remove:bd.remove,clear:bd.clear,values:bd.keys,size:bd.size,empty:bd.empty,each:bd.each};function yI(e,r){var t=new Ug;if(e instanceof Ug)e.each(function(a){t.add(a)});else if(e){var n=-1,i=e.length;if(r==null)for(;++nt&&(a=r.slice(t,a),l[s]?l[s]+=a:l[++s]=a),(n=n[0])===(i=i[0])?l[s]?l[s]+=i:l[++s]=i:(l[++s]=null,f.push({i:s,x:Zg(n,i)})),t=ay.lastIndex;return tt&&(n=r,r=t,t=n),function(i){return Math.max(r,Math.min(t,i))}}function MI(e,r,t){var n=e[0],i=e[1],a=r[0],s=r[1];return i2?II:MI,f=d=null,b}function b(T){return isNaN(T=+T)?a:(f||(f=l(e.map(n),r,t)))(n(s(T)))}return b.invert=function(T){return s(i((d||(d=l(r,e.map(n),Zg)))(T)))},b.domain=function(T){return arguments.length?(e=Cx.call(T,RI),s===Ku||(s=Dx(e)),_()):e.slice()},b.range=function(T){return arguments.length?(r=Ed.call(T),_()):r.slice()},b.rangeRound=function(T){return r=Ed.call(T),t=wI,_()},b.clamp=function(T){return arguments.length?(s=T?Dx(e):Ku,b):s!==Ku},b.interpolate=function(T){return arguments.length?(t=T,_()):t},b.unknown=function(T){return arguments.length?(a=T,b):a},function(T,M){return n=T,i=M,_()}}function Lx(e,r){return uy()(e,r)}var PI=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function jg(e){if(!(r=PI.exec(e)))throw new Error("invalid format: "+e);var r;return new ly({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]})}jg.prototype=ly.prototype;function ly(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+""}ly.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 OI(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Hg(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 mv(e){return e=Hg(Math.abs(e)),e?e[1]:NaN}function kI(e,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(mv(r)/3)))*3-mv(Math.abs(e)))}function DI(e,r){return function(t,n){for(var i=t.length,a=[],s=0,l=e[0],f=0;i>0&&l>0&&(f+l+1>n&&(l=Math.max(1,n-f)),a.push(t.substring(i-=l,i+l)),!((f+=l+1)>n));)l=e[s=(s+1)%e.length];return a.reverse().join(r)}}function LI(e){return function(r){return r.replace(/[0-9]/g,function(t){return e[+t]})}}function BI(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 Bx;function FI(e,r){var t=Hg(e,r);if(!t)return e+"";var n=t[0],i=t[1],a=i-(Bx=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=n.length;return a===s?n:a>s?n+new Array(a-s+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Hg(e,Math.max(0,r+a-1))[0]}function Fx(e,r){var t=Hg(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 Nx={"%":function(e,r){return(e*100).toFixed(r)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:OI,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 Fx(e*100,r)},r:Fx,s:FI,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Ux(e){return e}var zx=Array.prototype.map,Zx=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function NI(e){var r=e.grouping===void 0||e.thousands===void 0?Ux:DI(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+"",a=e.numerals===void 0?Ux:LI(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 d(b){b=jg(b);var T=b.fill,M=b.align,P=b.sign,D=b.symbol,G=b.zero,q=b.width,se=b.comma,Se=b.precision,Ve=b.trim,nt=b.type;nt==="n"?(se=!0,nt="g"):Nx[nt]||(Se===void 0&&(Se=12),Ve=!0,nt="g"),(G||T==="0"&&M==="=")&&(G=!0,T="0",M="=");var st=D==="$"?t:D==="#"&&/[boxX]/.test(nt)?"0"+nt.toLowerCase():"",at=D==="$"?n:/[%p]/.test(nt)?s:"",At=Nx[nt],Wt=/[defgprs%]/.test(nt);Se=Se===void 0?6:/[gprs]/.test(nt)?Math.max(1,Math.min(21,Se)):Math.max(0,Math.min(20,Se));function Sr(_r){var Gr=st,Cn=at,wi,la,co;if(nt==="c")Cn=At(_r)+Cn,_r="";else{_r=+_r;var Yo=_r<0||1/_r<0;if(_r=isNaN(_r)?f:At(Math.abs(_r),Se),Ve&&(_r=BI(_r)),Yo&&+_r==0&&P!=="+"&&(Yo=!1),Gr=(Yo?P==="("?P:l:P==="-"||P==="("?"":P)+Gr,Cn=(nt==="s"?Zx[8+Bx/3]:"")+Cn+(Yo&&P==="("?")":""),Wt){for(wi=-1,la=_r.length;++wico||co>57){Cn=(co===46?i+_r.slice(wi+1):_r.slice(wi))+Cn,_r=_r.slice(0,wi);break}}}se&&!G&&(_r=r(_r,1/0));var Uo=Gr.length+_r.length+Cn.length,qs=Uo>1)+Gr+_r+Cn+qs.slice(Uo);break;default:_r=qs+Gr+_r+Cn;break}return a(_r)}return Sr.toString=function(){return b+""},Sr}function _(b,T){var M=d((b=jg(b),b.type="f",b)),P=Math.max(-8,Math.min(8,Math.floor(mv(T)/3)))*3,D=Math.pow(10,-P),G=Zx[8+P/3];return function(q){return M(D*q)+G}}return{format:d,formatPrefix:_}}var Wg,cy,Vx;UI({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function UI(e){return Wg=NI(e),cy=Wg.format,Vx=Wg.formatPrefix,Wg}function zI(e,r){return e=Math.abs(e),r=Math.abs(r)-e,Math.max(0,mv(r)-mv(e))+1}function ZI(e){return Math.max(0,-mv(Math.abs(e)))}function VI(e,r,t,n){var i=ty(e,r,t),a;switch(n=jg(n==null?",f":n),n.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(r));return n.precision==null&&!isNaN(a=kI(i,s))&&(n.precision=a),Vx(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=zI(i,Math.max(Math.abs(e),Math.abs(r))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=ZI(i))&&(n.precision=a-(n.type==="%")*2);break}}return cy(n)}function Em(e){var r=e.domain;return e.ticks=function(t){var n=r();return mx(n[0],n[n.length-1],t==null?10:t)},e.tickFormat=function(t,n){var i=r();return VI(i[0],i[i.length-1],t==null?10:t,n)},e.nice=function(t){t==null&&(t=10);var n=r(),i=0,a=n.length-1,s=n[i],l=n[a],f;return l0?(s=Math.floor(s/f)*f,l=Math.ceil(l/f)*f,f=Fg(s,l,t)):f<0&&(s=Math.ceil(s*f)/f,l=Math.floor(l*f)/f,f=Fg(s,l,t)),f>0?(n[i]=Math.floor(s/f)*f,n[a]=Math.ceil(l/f)*f,r(n)):f<0&&(n[i]=Math.ceil(s*f)/f,n[a]=Math.floor(l*f)/f,r(n)),e},e}function jx(){var e=Lx(Ku,Ku);return e.copy=function(){return Vg(e,jx())},Pp.apply(e,arguments),Em(e)}function jI(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 jI(e).unknown(r)},e=arguments.length?map.call(e,number):[0,1],linearish(t)}function Hx(e,r){e=e.slice();var t=0,n=e.length-1,i=e[t],a=e[n],s;return a0){for(;T_)break;se.push(G)}}else for(;T=1;--D)if(G=P*D,!(G_)break;se.push(G)}}else se=mx(T,M,Math.min(M-T,q)).map(a);return b?se.reverse():se},r.tickFormat=function(l,f){if(f==null&&(f=n===10?".0e":","),typeof f!="function"&&(f=cy(f)),l===1/0)return f;l==null&&(l=10);var d=Math.max(1,n*l/r.ticks().length);return function(_){var b=_/a(Math.round(i(_)));return b*n0?t[l-1]:e[0],l=t?[n[t-1],r]:[n[d-1],n[d]]},s.unknown=function(f){return arguments.length&&(a=f),s},s.thresholds=function(){return n.slice()},s.copy=function(){return Jx().domain([e,r]).range(i).unknown(a)},Pp.apply(Em(s),arguments)}function eb(){var e=[.5],r=[0,1],t,n=1;function i(a){return a<=a?r[Bg(e,a,0,n)]:t}return i.domain=function(a){return arguments.length?(e=Ed.call(a),n=Math.min(e.length,r.length-1),i):e.slice()},i.range=function(a){return arguments.length?(r=Ed.call(a),n=Math.min(e.length,r.length-1),i):r.slice()},i.invertExtent=function(a){var s=r.indexOf(a);return[e[s-1],e[s]]},i.unknown=function(a){return arguments.length?(t=a,i):t},i.copy=function(){return eb().domain(e).range(r).unknown(t)},Pp.apply(i,arguments)}var hy=new Date,py=new Date;function yl(e,r,t,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),r(a,1),e(a),a},i.round=function(a){var s=i(a),l=i.ceil(a);return a-s0))return f;do f.push(d=new Date(+a)),r(a,l),e(a);while(d=s)for(;e(s),!a(s);)s.setTime(s-1)},function(s,l){if(s>=s)if(l<0)for(;++l<=0;)for(;r(s,-1),!a(s););else for(;--l>=0;)for(;r(s,1),!a(s););})},t&&(i.count=function(a,s){return hy.setTime(+a),py.setTime(+s),e(hy),e(py),Math.floor(t(hy,py))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?function(s){return n(s)%a===0}:function(s){return i.count(0,s)%a===0}):i}),i}var dy=yl(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()});dy.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:yl(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 gv=dy,RF=dy.range,tb=yl(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()}),tP=tb,MF=tb.range,Gg=1e3,Sm=6e4,rb=36e5,nb=864e5,ib=6048e5;function Sd(e){return yl(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())*Sm)/ib})}var vy=Sd(0),Xg=Sd(1),rP=Sd(2),nP=Sd(3),yv=Sd(4),iP=Sd(5),aP=Sd(6),IF=vy.range,PF=Xg.range,OF=rP.range,kF=nP.range,DF=yv.range,LF=iP.range,BF=aP.range,ab=yl(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())*Sm)/nb},function(e){return e.getDate()-1}),gy=ab,FF=ab.range,ob=yl(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Gg-e.getMinutes()*Sm)},function(e,r){e.setTime(+e+r*rb)},function(e,r){return(r-e)/rb},function(e){return e.getHours()}),oP=ob,NF=ob.range,sb=yl(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Gg)},function(e,r){e.setTime(+e+r*Sm)},function(e,r){return(r-e)/Sm},function(e){return e.getMinutes()}),sP=sb,UF=sb.range,ub=yl(function(e){e.setTime(e-e.getMilliseconds())},function(e,r){e.setTime(+e+r*Gg)},function(e,r){return(r-e)/Gg},function(e){return e.getUTCSeconds()}),uP=ub,zF=ub.range,$g=yl(function(){},function(e,r){e.setTime(+e+r)},function(e,r){return r-e});$g.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?yl(function(r){r.setTime(Math.floor(r/e)*e)},function(r,t){r.setTime(+r+t*e)},function(r,t){return(t-r)/e}):$g};var lP=$g,ZF=$g.range;function Ad(e){return yl(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)/ib})}var lb=Ad(0),Yg=Ad(1),cP=Ad(2),fP=Ad(3),_v=Ad(4),hP=Ad(5),pP=Ad(6),VF=lb.range,jF=Yg.range,HF=cP.range,WF=fP.range,GF=_v.range,XF=hP.range,$F=pP.range,cb=yl(function(e){e.setUTCHours(0,0,0,0)},function(e,r){e.setUTCDate(e.getUTCDate()+r)},function(e,r){return(r-e)/nb},function(e){return e.getUTCDate()-1}),fb=cb,YF=cb.range,yy=yl(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()});yy.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:yl(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 Am=yy,qF=yy.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 xy(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 Tm(e,r,t){return{y:e,m:r,d:t,H:0,M:0,S:0,L:0}}function dP(e){var r=e.dateTime,t=e.date,n=e.time,i=e.periods,a=e.days,s=e.shortDays,l=e.months,f=e.shortMonths,d=wm(i),_=Cm(i),b=wm(a),T=Cm(a),M=wm(s),P=Cm(s),D=wm(l),G=Cm(l),q=wm(f),se=Cm(f),Se={a:Yo,A:Uo,b:qs,B:bl,c:null,d:gb,e:gb,f:FP,g:XP,G:YP,H:DP,I:LP,j:BP,L:yb,m:NP,M:UP,p:AB,q:TB,Q:Ab,s:Tb,S:zP,u:ZP,U:VP,V:jP,w:HP,W:WP,x:null,X:null,y:GP,Y:$P,Z:qP,"%":Sb},Ve={a:wB,A:CB,b:RB,B:MB,c:null,d:xb,e:xb,f:eO,g:cO,G:hO,H:KP,I:QP,j:JP,L:bb,m:tO,M:rO,p:IB,q:PB,Q:Ab,s:Tb,S:nO,u:iO,U:aO,V:oO,w:sO,W:uO,x:null,X:null,y:lO,Y:fO,Z:pO,"%":Sb},nt={a:Sr,A:_r,b:Gr,B:Cn,c:wi,d:vb,e:vb,f:IP,g:db,G:pb,H:mb,I:mb,j:wP,L:MP,m:TP,M:CP,p:Wt,q:AP,Q:OP,s:kP,S:RP,u:_P,U:xP,V:bP,w:yP,W:EP,x:la,X:co,y:db,Y:pb,Z:SP,"%":PP};Se.x=st(t,Se),Se.X=st(n,Se),Se.c=st(r,Se),Ve.x=st(t,Ve),Ve.X=st(n,Ve),Ve.c=st(r,Ve);function st(oi,xa){return function(za){var yn=[],Wl=-1,zo=0,mc=oi.length,gc,kd,r2;for(za instanceof Date||(za=new Date(+za));++Wl53)return null;"w"in yn||(yn.w=1),"Z"in yn?(zo=xy(Tm(yn.y,0,1)),mc=zo.getUTCDay(),zo=mc>4||mc===0?Yg.ceil(zo):Yg(zo),zo=fb.offset(zo,(yn.V-1)*7),yn.y=zo.getUTCFullYear(),yn.m=zo.getUTCMonth(),yn.d=zo.getUTCDate()+(yn.w+6)%7):(zo=_y(Tm(yn.y,0,1)),mc=zo.getDay(),zo=mc>4||mc===0?Xg.ceil(zo):Xg(zo),zo=gy.offset(zo,(yn.V-1)*7),yn.y=zo.getFullYear(),yn.m=zo.getMonth(),yn.d=zo.getDate()+(yn.w+6)%7)}else("W"in yn||"U"in yn)&&("w"in yn||(yn.w="u"in yn?yn.u%7:"W"in yn?1:0),mc="Z"in yn?xy(Tm(yn.y,0,1)).getUTCDay():_y(Tm(yn.y,0,1)).getDay(),yn.m=0,yn.d="W"in yn?(yn.w+6)%7+yn.W*7-(mc+5)%7:yn.w+yn.U*7-(mc+6)%7);return"Z"in yn?(yn.H+=yn.Z/100|0,yn.M+=yn.Z%100,xy(yn)):_y(yn)}}function At(oi,xa,za,yn){for(var Wl=0,zo=xa.length,mc=za.length,gc,kd;Wl=mc)return-1;if(gc=xa.charCodeAt(Wl++),gc===37){if(gc=xa.charAt(Wl++),kd=nt[gc in hb?xa.charAt(Wl++):gc],!kd||(yn=kd(oi,za,yn))<0)return-1}else if(gc!=za.charCodeAt(yn++))return-1}return yn}function Wt(oi,xa,za){var yn=d.exec(xa.slice(za));return yn?(oi.p=_[yn[0].toLowerCase()],za+yn[0].length):-1}function Sr(oi,xa,za){var yn=M.exec(xa.slice(za));return yn?(oi.w=P[yn[0].toLowerCase()],za+yn[0].length):-1}function _r(oi,xa,za){var yn=b.exec(xa.slice(za));return yn?(oi.w=T[yn[0].toLowerCase()],za+yn[0].length):-1}function Gr(oi,xa,za){var yn=q.exec(xa.slice(za));return yn?(oi.m=se[yn[0].toLowerCase()],za+yn[0].length):-1}function Cn(oi,xa,za){var yn=D.exec(xa.slice(za));return yn?(oi.m=G[yn[0].toLowerCase()],za+yn[0].length):-1}function wi(oi,xa,za){return At(oi,r,xa,za)}function la(oi,xa,za){return At(oi,t,xa,za)}function co(oi,xa,za){return At(oi,n,xa,za)}function Yo(oi){return s[oi.getDay()]}function Uo(oi){return a[oi.getDay()]}function qs(oi){return f[oi.getMonth()]}function bl(oi){return l[oi.getMonth()]}function AB(oi){return i[+(oi.getHours()>=12)]}function TB(oi){return 1+~~(oi.getMonth()/3)}function wB(oi){return s[oi.getUTCDay()]}function CB(oi){return a[oi.getUTCDay()]}function RB(oi){return f[oi.getUTCMonth()]}function MB(oi){return l[oi.getUTCMonth()]}function IB(oi){return i[+(oi.getUTCHours()>=12)]}function PB(oi){return 1+~~(oi.getUTCMonth()/3)}return{format:function(oi){var xa=st(oi+="",Se);return xa.toString=function(){return oi},xa},parse:function(oi){var xa=at(oi+="",!1);return xa.toString=function(){return oi},xa},utcFormat:function(oi){var xa=st(oi+="",Ve);return xa.toString=function(){return oi},xa},utcParse:function(oi){var xa=at(oi+="",!0);return xa.toString=function(){return oi},xa}}}var hb={"-":"",_:" ",0:"0"},du=/^\s*\d+/,vP=/^%/,mP=/[\\^$*+?|[\]().{}]/g;function Ua(e,r,t){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a68?1900:2e3),t+n[0].length):-1}function SP(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 AP(e,r,t){var n=du.exec(r.slice(t,t+1));return n?(e.q=n[0]*3-3,t+n[0].length):-1}function TP(e,r,t){var n=du.exec(r.slice(t,t+2));return n?(e.m=n[0]-1,t+n[0].length):-1}function vb(e,r,t){var n=du.exec(r.slice(t,t+2));return n?(e.d=+n[0],t+n[0].length):-1}function wP(e,r,t){var n=du.exec(r.slice(t,t+3));return n?(e.m=0,e.d=+n[0],t+n[0].length):-1}function mb(e,r,t){var n=du.exec(r.slice(t,t+2));return n?(e.H=+n[0],t+n[0].length):-1}function CP(e,r,t){var n=du.exec(r.slice(t,t+2));return n?(e.M=+n[0],t+n[0].length):-1}function RP(e,r,t){var n=du.exec(r.slice(t,t+2));return n?(e.S=+n[0],t+n[0].length):-1}function MP(e,r,t){var n=du.exec(r.slice(t,t+3));return n?(e.L=+n[0],t+n[0].length):-1}function IP(e,r,t){var n=du.exec(r.slice(t,t+6));return n?(e.L=Math.floor(n[0]/1e3),t+n[0].length):-1}function PP(e,r,t){var n=vP.exec(r.slice(t,t+1));return n?t+n[0].length:-1}function OP(e,r,t){var n=du.exec(r.slice(t));return n?(e.Q=+n[0],t+n[0].length):-1}function kP(e,r,t){var n=du.exec(r.slice(t));return n?(e.s=+n[0],t+n[0].length):-1}function gb(e,r){return Ua(e.getDate(),r,2)}function DP(e,r){return Ua(e.getHours(),r,2)}function LP(e,r){return Ua(e.getHours()%12||12,r,2)}function BP(e,r){return Ua(1+gy.count(gv(e),e),r,3)}function yb(e,r){return Ua(e.getMilliseconds(),r,3)}function FP(e,r){return yb(e,r)+"000"}function NP(e,r){return Ua(e.getMonth()+1,r,2)}function UP(e,r){return Ua(e.getMinutes(),r,2)}function zP(e,r){return Ua(e.getSeconds(),r,2)}function ZP(e){var r=e.getDay();return r===0?7:r}function VP(e,r){return Ua(vy.count(gv(e)-1,e),r,2)}function _b(e){var r=e.getDay();return r>=4||r===0?yv(e):yv.ceil(e)}function jP(e,r){return e=_b(e),Ua(yv.count(gv(e),e)+(gv(e).getDay()===4),r,2)}function HP(e){return e.getDay()}function WP(e,r){return Ua(Xg.count(gv(e)-1,e),r,2)}function GP(e,r){return Ua(e.getFullYear()%100,r,2)}function XP(e,r){return e=_b(e),Ua(e.getFullYear()%100,r,2)}function $P(e,r){return Ua(e.getFullYear()%1e4,r,4)}function YP(e,r){var t=e.getDay();return e=t>=4||t===0?yv(e):yv.ceil(e),Ua(e.getFullYear()%1e4,r,4)}function qP(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Ua(r/60|0,"0",2)+Ua(r%60,"0",2)}function xb(e,r){return Ua(e.getUTCDate(),r,2)}function KP(e,r){return Ua(e.getUTCHours(),r,2)}function QP(e,r){return Ua(e.getUTCHours()%12||12,r,2)}function JP(e,r){return Ua(1+fb.count(Am(e),e),r,3)}function bb(e,r){return Ua(e.getUTCMilliseconds(),r,3)}function eO(e,r){return bb(e,r)+"000"}function tO(e,r){return Ua(e.getUTCMonth()+1,r,2)}function rO(e,r){return Ua(e.getUTCMinutes(),r,2)}function nO(e,r){return Ua(e.getUTCSeconds(),r,2)}function iO(e){var r=e.getUTCDay();return r===0?7:r}function aO(e,r){return Ua(lb.count(Am(e)-1,e),r,2)}function Eb(e){var r=e.getUTCDay();return r>=4||r===0?_v(e):_v.ceil(e)}function oO(e,r){return e=Eb(e),Ua(_v.count(Am(e),e)+(Am(e).getUTCDay()===4),r,2)}function sO(e){return e.getUTCDay()}function uO(e,r){return Ua(Yg.count(Am(e)-1,e),r,2)}function lO(e,r){return Ua(e.getUTCFullYear()%100,r,2)}function cO(e,r){return e=Eb(e),Ua(e.getUTCFullYear()%100,r,2)}function fO(e,r){return Ua(e.getUTCFullYear()%1e4,r,4)}function hO(e,r){var t=e.getUTCDay();return e=t>=4||t===0?_v(e):_v.ceil(e),Ua(e.getUTCFullYear()%1e4,r,4)}function pO(){return"+0000"}function Sb(){return"%"}function Ab(e){return+e}function Tb(e){return Math.floor(+e/1e3)}var xv,wb,dO,vO,mO;gO({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 gO(e){return xv=dP(e),wb=xv.format,dO=xv.parse,vO=xv.utcFormat,mO=xv.utcParse,xv}var Rm=1e3,Mm=Rm*60,Im=Mm*60,Pm=Im*24,yO=Pm*7,Cb=Pm*30,by=Pm*365;function _O(e){return new Date(e)}function xO(e){return e instanceof Date?+e:+new Date(+e)}function Rb(e,r,t,n,i,a,s,l,f){var d=Lx(Ku,Ku),_=d.invert,b=d.domain,T=f(".%L"),M=f(":%S"),P=f("%I:%M"),D=f("%I %p"),G=f("%a %d"),q=f("%b %d"),se=f("%B"),Se=f("%Y"),Ve=[[s,1,Rm],[s,5,5*Rm],[s,15,15*Rm],[s,30,30*Rm],[a,1,Mm],[a,5,5*Mm],[a,15,15*Mm],[a,30,30*Mm],[i,1,Im],[i,3,3*Im],[i,6,6*Im],[i,12,12*Im],[n,1,Pm],[n,2,2*Pm],[t,1,yO],[r,1,Cb],[r,3,3*Cb],[e,1,by]];function nt(at){return(s(at)2){var b=d.scale.ticks(s.values.length);d.scale.domain(b)}s.values?d.scale.range(s.values):d.scale.range(d.option.domain);break;case Ya.QUANTILE:case Ya.QUANTIZE:case Ya.THRESHOLD:d.scale.range(s.values);break;case Ya.IDENTITY:break;case Ya.CAT:s.values?d.scale.range(s.values):d.scale.range(d.option.domain);break;case Ya.DIVERGING:case Ya.SEQUENTIAL:d.scale.interpolator(vI(s.values));break}}if(s.values==="text"){var T;d.scale.range((T=d.option)===null||T===void 0?void 0:T.domain)}})):(s.type=lv.CONSTANT,s.defaultValues=f.map(function(d,_){return d.scale(s.names[_])})),s.scalers=f.map(function(d){return{field:d.field,func:d.scale,option:d.option}}),a.needRescale=!1}})}},{key:"parseFields",value:function(t){return Array.isArray(t)?t:CO(t)?t.split("*"):[t]}},{key:"createScale",value:function(t,n,i,a){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],d={field:t,scale:void 0,type:lv.VARIABLE,option:f};if(!a||!a.length)return f&&f.type?d.scale=this.createDefaultScale(f):(d.scale=zg([t]),d.type=lv.CONSTANT),d;var _=(l=a.find(function(M){return!Ey(M[t])}))===null||l===void 0?void 0:l[t];if(this.isNumber(t)||Ey(_)&&!f)d.scale=zg([t]),d.type=lv.CONSTANT;else{var b=f&&f.type||this.getDefaultType(_);i==="text"&&(b=Ya.CAT),i===void 0&&(b=Ya.IDENTITY);var T=this.createScaleConfig(b,t,f,a);d.scale=this.createDefaultScale(T),d.option=T}return d}},{key:"getDefaultType",value:function(t){var n=Ya.LINEAR;return typeof t=="string"&&(n=MO.test(t)?Ya.TIME:Ya.CAT),n}},{key:"createScaleConfig",value:function(t,n,i,a){var s={type:t},l=[];if(t===Ya.QUANTILE){var f=new Map;a==null||a.forEach(function(b){f.set(b._id,b[n])}),l=Array.from(f.values())}else l=(a==null?void 0:a.map(function(b){return b[n]}))||[];if(i!=null&&i.domain)s.domain=i==null?void 0:i.domain;else if(t===Ya.CAT||t===Ya.IDENTITY)s.domain=RO(l);else if(t===Ya.QUANTILE)s.domain=l;else if(t===Ya.DIVERGING){var d=dx(l),_=(i==null?void 0:i.neutral)!==void 0?i==null?void 0:i.neutral:(d[0]+d[1])/2;s.domain=[d[0],_,d[1]]}else s.domain=dx(l);return(0,H.Z)((0,H.Z)({},s),i)}},{key:"createDefaultScale",value:function(t){var n=t.type,i=t.domain,a=t.unknown,s=t.clamp,l=t.nice,f=IO[n]();return i&&f.domain&&f.domain(i),a&&f.unknown(a),s!==void 0&&f.clamp&&f.clamp(s),l!==void 0&&f.nice&&f.nice(l),f}}]),e}())||Lb),Bb,Fb,OO=(Bb=(0,er.b2)(),Bb(Fb=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,H.Z)({},t.layerModel.getAnimateUniforms()))})})}}]),e}())||Fb),Nb,Ub,kO=(Nb=(0,er.b2)(),Nb(Ub=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,a=n.enableMask;if(!t.tileLayer&&i&&i.length>0){var s;(s=t.masks).push.apply(s,(0,Qt.Z)(i)),t.updateLayerConfig({mask:a})}})}}]),e}())||Ub),DO=function(){function e(r){var t=r.rendererService,n=r.layerService,i=r.parent;(0,Q.Z)(this,e),(0,F.Z)(this,"tileResource",new Map),(0,F.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(a){return a.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 a=this.isChildrenLoaded(t.parent);n==null||n.updateVisible(!a)}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(a){var s=n.getTile(a==null?void 0:a.key);return s?(s==null?void 0:s.isLoaded)===!0:!0})}},{key:"render",value:function(){var r=(0,Ft.Z)(_e().mark(function n(){var i=this,a,s;return _e().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return a=this.getRenderLayers(),s=a.map(function(){var d=(0,Ft.Z)(_e().mark(function _(b){return _e().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()}},_)}));return function(_){return d.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,Qt.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,Qt.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}(),LO=U(41227);function BO(e,r,t){t===void 0&&(t={});var n=Ln(e),i=Ln(r),a=LO.union(n.coordinates,i.coordinates);return a.length===0?null:a.length===1?Vt(a[0],t.properties):rn(a,t.properties)}var FO=BO,NO=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(a){var s=Vt(a.coordinates);n===null?n=s:n=FO(n,s)}),i&&(n.properties=(0,H.Z)({},i)),n}}]),e}(),km="select",Dm="active",UO=function(){function e(r){var t=r.layerService,n=r.tileLayerService,i=r.parent;(0,Q.Z)(this,e),(0,F.Z)(this,"tilePickID",new Map),this.layerService=t,this.tileLayerService=n,this.parent=i,this.tileSourceService=new NO}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(),a=i.get(Ke.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),a.pickFromPickingFBO(t,n)}},{key:"selectFeature",value:function(t){var n=(0,_n.Z)(t,3),i=n[0],a=n[1],s=n[2],l=this.color2PickId(i,a,s);this.tilePickID.set(km,l),this.updateHighLight(i,a,s,km)}},{key:"highlightPickedFeature",value:function(t){var n=(0,_n.Z)(t,3),i=n[0],a=n[1],s=n[2],l=this.color2PickId(i,a,s);this.tilePickID.set(Dm,l),this.updateHighLight(i,a,s,Dm)}},{key:"updateHighLight",value:function(t,n,i,a){this.tileLayerService.tiles.map(function(s){var l=s.getMainLayer();switch(a){case km:l==null||l.hooks.beforeSelect.call([t,n,i]);break;case Dm:l==null||l.hooks.beforeHighlight.call([t,n,i]);break}})}},{key:"setPickState",value:function(){var t=this.tilePickID.get(km),n=this.tilePickID.get(Dm);if(t){var i=this.pickId2Color(t),a=(0,_n.Z)(i,3),s=a[0],l=a[1],f=a[2];this.updateHighLight(s,l,f,km);return}if(n){var d=this.pickId2Color(n),_=(0,_n.Z)(d,3),b=_[0],T=_[1],M=_[2];this.updateHighLight(b,T,M,Dm);return}}},{key:"color2PickId",value:function(t,n,i){return ka(new Uint8Array([t,n,i]))}},{key:"pickId2Color",value:function(t){return na(t)}},{key:"getFeatureById",value:function(t){var n=this.tileLayerService.getTiles().filter(function(a){return a.visible}),i=[];return n.forEach(function(a){i.push.apply(i,(0,Qt.Z)(a.getFeatureById(t)))}),i}},{key:"pickRasterLayer",value:function(t,n,i){return!1}}]),e}();function zO(e){return e==="PolygonLayer"?kg:e==="LineLayer"?q0:Og}function ZO(e){return["PolygonLayer","LineLayer"].indexOf(e)!==-1}function VO(e){var r=jO();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function jO(){if(typeof Reflect=="undefined"||!Reflect.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 Td=function(e){(0,Fe.Z)(t,e);var r=VO(t);function t(n,i){var a;return(0,Q.Z)(this,t),a=r.call(this),(0,F.Z)((0,Me.Z)(a),"visible",!0),(0,F.Z)((0,Me.Z)(a),"layers",[]),(0,F.Z)((0,Me.Z)(a),"isLoaded",!1),(0,F.Z)((0,Me.Z)(a),"tileMaskLayers",[]),a.parent=i,a.sourceTile=n,a.x=n.x,a.y=n.y,a.z=n.z,a.key="".concat(a.x,"_").concat(a.y,"_").concat(a.z),a}return(0,j.Z)(t,[{key:"getLayers",value:function(){return this.layers}},{key:"styleUpdate",value:function(){}},{key:"lnglatInBounds",value:function(i){var a=(0,_n.Z)(this.sourceTile.bounds,4),s=a[0],l=a[1],f=a[2],d=a[3],_=i.lng,b=i.lat;return _>=s&&_<=f&&b>=l&&b<=d}},{key:"getLayerOptions",value:function(){var i,a=this.parent.getLayerConfig();return(0,H.Z)((0,H.Z)({},a),{},{textAllowOverlap:!0,autoFit:!1,maskLayers:this.getMaskLayer(),tileMask:ZO(this.parent.type),mask:a.mask||((i=a.maskLayers)===null||i===void 0?void 0:i.length)!==0&&a.enableMask})}},{key:"getMaskLayer",value:function(){var i=this,a=this.parent.getLayerConfig(),s=a.maskLayers,l=[];return s==null||s.forEach(function(f){if(!f.tileLayer)return l.push(f),f;var d=f.tileLayer,_=d.getTile(i.sourceTile.key),b=_==null?void 0:_.getLayers()[0];b&&l.push(b)}),l}},{key:"addTileMask",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){var s,l,f;return _e().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return s=new kg({visible:!1,enablePicking:!1}).source({type:"FeatureCollection",features:[this.sourceTile.bboxPolygon]},{parser:{type:"geojson",featureId:"id"}}).shape("fill").style({opacity:.5}),l=gm(this.parent.sceneContainer),s.setContainer(l,this.parent.sceneContainer),_.next=5,s.init();case 5:return this.tileMask=s,f=this.getMainLayer(),f!==void 0&&(f.tileMask=s),_.abrupt("return",s);case 9:case"end":return _.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"addMask",value:function(){var n=(0,Ft.Z)(_e().mark(function a(s,l){var f;return _e().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return f=gm(this.parent.sceneContainer),l.setContainer(f,this.parent.sceneContainer),_.next=4,l.init();case 4:s.addMask(l),this.tileMaskLayers.push(l);case 6:case"end":return _.stop()}},a,this)}));function i(a,s){return n.apply(this,arguments)}return i}()},{key:"addLayer",value:function(){var n=(0,Ft.Z)(_e().mark(function a(s){var l;return _e().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return s.isTileLayer=!0,l=gm(this.parent.sceneContainer),s.setContainer(l,this.parent.sceneContainer),this.layers.push(s),d.next=6,s.init();case 6:case"end":return d.stop()}},a,this)}));function i(a){return n.apply(this,arguments)}return i}()},{key:"updateVisible",value:function(i){this.visible=i,this.updateOptions("visible",i)}},{key:"updateOptions",value:function(i,a){this.layers.forEach(function(s){s.updateLayerConfig((0,F.Z)({},i,a))})}},{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(a){return a.destroy()})}}]),t}(Ka.EventEmitter);function HO(e){var r=WO();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function WO(){if(typeof Reflect=="undefined"||!Reflect.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 GO=function(e){(0,Fe.Z)(t,e);var r=HO(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,Ft.Z)(_e().mark(function a(){var s,l,f,d;return _e().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"),d=new Og({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(d);case 8:this.isLoaded=!0;case 9:case"end":return b.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getSourceOption",value:function(){var i=this.parent.getSource(),a=this.sourceTile.data.layers.testTile.features;return{data:{type:"FeatureCollection",features:a},options:{parser:{type:"geojson"},transforms:i.transforms}}}}]),t}(Td);function XO(e){var r=$O();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.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,Fe.Z)(t,e);var r=XO(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,Ft.Z)(_e().mark(function a(){var s,l,f,d;return _e().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.parent.getLayerAttributeConfig(),l=this.getLayerOptions(),f=this.getSourceOption(),d=new P1((0,H.Z)({},l)).source(f.data,f.options),s&&Object.keys(s).forEach(function(T){var M,P,D=T;d[D]((M=s[D])===null||M===void 0?void 0:M.field,(P=s[D])===null||P===void 0?void 0:P.values)}),b.next=7,this.addLayer(d);case 7:this.isLoaded=!0;case 8:case"end":return b.stop()}},a,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}(Td);function qO(e){var r=KO();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function KO(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}var QO=function(e){(0,Fe.Z)(t,e);var r=qO(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,Ft.Z)(_e().mark(function a(){var s,l,f,d;return _e().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.parent.getLayerAttributeConfig(),l=this.getLayerOptions(),f=this.getSourceOption(),d=new nx((0,H.Z)({},l)).source(f.data,f.options),s&&Object.keys(s).forEach(function(T){var M,P,D=T;d[D]((M=s[D])===null||M===void 0?void 0:M.field,(P=s[D])===null||P===void 0?void 0:P.values)}),b.next=7,this.addLayer(d);case 7:this.isLoaded=!0;case 8:case"end":return b.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getFeatures",value:function(i){if(!i)return[];var a=this.sourceTile.data;return a.getTileData(i)}},{key:"getSourceOption",value:function(){var i=this.parent.getSource(),a=this.parent.getLayerConfig(),s=a.sourceLayer,l=a.featureId,f=this.getFeatures(s);return{data:{type:"FeatureCollection",features:f},options:{parser:{type:"geojson",featureId:l},transforms:i.transforms}}}}]),t}(Td),JO=["rasterData"];function e5(e){var r=t5();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function t5(){if(typeof Reflect=="undefined"||!Reflect.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 r5=function(e){(0,Fe.Z)(t,e);var r=e5(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,Ft.Z)(_e().mark(function a(){var s,l,f,d;return _e().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.parent.getLayerAttributeConfig(),l=this.getLayerOptions(),f=this.getSourceOption(),d=new Dg((0,H.Z)({},l)).source(f.data,f.options),s&&Object.keys(s).forEach(function(T){var M,P,D=T;d[D]((M=s[D])===null||M===void 0?void 0:M.field,(P=s[D])===null||P===void 0?void 0:P.values)}),b.next=7,this.addLayer(d);case 7:this.isLoaded=!0;case 8:case"end":return b.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getSourceOption",value:function(){var i=this.parent.getSource(),a=this.sourceTile.data.data,s=a.rasterData,l=(0,wa.Z)(a,JO);return{data:s,options:{parser:(0,H.Z)({type:"rasterRgb",extent:this.sourceTile.bounds},l),transforms:i.transforms}}}}]),t}(Td);function n5(e){var r=i5();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function i5(){if(typeof Reflect=="undefined"||!Reflect.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 a5=function(e){(0,Fe.Z)(t,e);var r=n5(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,Ft.Z)(_e().mark(function a(){var s,l,f,d;return _e().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return s=this.parent.getLayerAttributeConfig(),l=this.getLayerOptions(),f=this.getSourceOption(),d=new Dg((0,H.Z)({},l)).source(f.data,f.options),s&&Object.keys(s).forEach(function(T){var M,P,D=T;d[D]((M=s[D])===null||M===void 0?void 0:M.field,(P=s[D])===null||P===void 0?void 0:P.values)}),b.next=7,this.addLayer(d);case 7:this.isLoaded=!0;case 8:case"end":return b.stop()}},a,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}(Td),o5=["rasterData"];function s5(e){var r=u5();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function u5(){if(typeof Reflect=="undefined"||!Reflect.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 l5={positions:[0,1],colors:["#000","#fff"]},c5=function(e){(0,Fe.Z)(t,e);var r=s5(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,Ft.Z)(_e().mark(function a(){var s,l,f,d,_,b,T;return _e().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return s=this.parent.getLayerAttributeConfig(),l=this.getLayerOptions(),f=this.getSourceOption(),d=this.getLayerOptions(),_=d.rampColors,b=d.domain,this.colorTexture=this.parent.textureService.getColorTexture(_,b),T=new Dg((0,H.Z)((0,H.Z)({},l),{},{colorTexture:this.colorTexture})).source(f.data,f.options),s&&Object.keys(s).forEach(function(D){var G,q,se=D;T[se]((G=s[se])===null||G===void 0?void 0:G.field,(q=s[se])===null||q===void 0?void 0:q.values)}),P.next=9,this.addLayer(T);case 9:this.isLoaded=!0;case 10:case"end":return P.stop()}},a,this)}));function i(){return n.apply(this,arguments)}return i}()},{key:"getSourceOption",value:function(){var i=this.parent.getSource(),a=this.sourceTile.data.data,s=a.rasterData,l=(0,wa.Z)(a,o5);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,a=arguments.length,s=new Array(a),l=0;l=2&&!d&&(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,F.Z)(this,"viewchange",v5(this.mapchange,24)),this.parent=r;var n=this.parent.getContainer();this.rendererService=n.get(Ke.IRendererService),this.layerService=n.get(Ke.ILayerService),this.mapService=n.get(Ke.IMapService),this.pickingService=n.get(Ke.IPickingService),this.tileLayerService=new DO({rendererService:this.rendererService,layerService:this.layerService,parent:r}),this.tilePickService=new UO({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(),a=i.latLonBounds,s=i.zoom;(t=this.tilesetManager)===null||t===void 0||t.update(s,a)}}},{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,a=n.zoom;(t=this.tilesetManager)===null||t===void 0||t.update(a,i)}},{key:"tileUnLoad",value:function(t){this.tileLayerService.removeTile(t.key)}},{key:"tileUpdate",value:function(){var r=(0,Ft.Z)(_e().mark(function n(){var i=this,a,s;return _e().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 a=this.parent.getMinZoom(),s=this.parent.getMaxZoom(),f.next=6,Promise.all(this.tilesetManager.tiles.filter(function(d){return d.isLoaded}).filter(function(d){return d.isVisibleChange}).filter(function(d){return d.data}).filter(function(d){return d.z>=a&&d.zn.mapsService.getMinZoom()&&n.mapsService.zoomOut()}),(0,F.Z)((0,Me.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,H.Z)((0,H.Z)({},Ia((0,Ae.Z)(t.prototype),"getDefault",this).call(this,i)),{},{position:wr.BOTTOMRIGHT,name:"zoom",zoomInText:Xh("l7-icon-enlarge"),zoomInTitle:"Zoom in",zoomOutText:Xh("l7-icon-narrow"),zoomOutTitle:"Zoom out",showZoom:!1})}},{key:"setOptions",value:function(i){Ia((0,Ae.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=Yi("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){Ml(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,a,s,l,f){var d=Yi("button",s,l);return typeof i=="string"?d.innerHTML=i:d.append(i),d.title=a,f&&d.addEventListener("click",f),d}}]),t}(fv);function F5(e){var r=N5();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function N5(){if(typeof Reflect=="undefined"||!Reflect.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 mE=function(e){(0,Fe.Z)(t,e);var r=F5(t);function t(n){var i;(0,Q.Z)(this,t),i=r.call(this),(0,F.Z)((0,Me.Z)(i),"isShow",!0),(0,F.Z)((0,Me.Z)(i),"onMouseMove",function(s){var l,f=i.mapsService.getMapContainer(),d=(l=f==null?void 0:f.getBoundingClientRect())!==null&&l!==void 0?l:{},_=d.left,b=_===void 0?0:_,T=d.top,M=T===void 0?0:T;i.setPopupPosition(s.clientX-b,s.clientY-M)}),(0,F.Z)((0,Me.Z)(i),"updateLngLatPosition",function(){if(!(!i.mapsService||i.popupOption.followCursor)){var s=i.lngLat,l=s.lng,f=s.lat,d=i.mapsService.lngLatToContainer([l,f]),_=d.x,b=d.y;i.setPopupPosition(_,b)}}),(0,F.Z)((0,Me.Z)(i),"onKeyDown",function(s){s.keyCode===27&&i.remove()}),(0,F.Z)((0,Me.Z)(i),"onCloseButtonClick",function(s){s.stopPropagation&&s.stopPropagation(),i.hide()}),(0,F.Z)((0,Me.Z)(i),"update",function(){var s=!!i.lngLat,l=i.popupOption,f=l.className,d=l.style,_=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=Yi("div","l7-popup ".concat(f!=null?f:""," ").concat(i.isShow?"":"l7-popup-hide"),M),d&&i.container.setAttribute("style",d),i.tip=Yi("div","l7-popup-tip",i.container),i.container.appendChild(i.content),T&&["mousemove","mousedown","mouseup","click","dblclick"].forEach(function(G){i.container.addEventListener(G,function(q){q.stopPropagation()})}),i.container.style.whiteSpace="nowrap"),i.updateLngLatPosition(),gu(i.container,"".concat(Ra[b])),Gl(i.container,b,"popup"),_){var P=i.container.getBoundingClientRect(),D=P.width;D>parseFloat(_)&&(i.container.style.width=_)}else i.container.style.removeProperty("width")}}),i.popupOption=(0,H.Z)((0,H.Z)({},i.getDefault(n!=null?n:{})),n);var a=i.popupOption.lngLat;return a&&(i.lngLat=a),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(Ke.IMapService),this.sceneService=i.get(Ke.ISceneService),this.layerService=i.get(Ke.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 a=this.popupOption,s=a.html,l=a.text,f=a.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&&mu(this.container,"l7-popup-hide"),this.isShow=!0,this.emit("show"),this}},{key:"hide",value:function(){if(this.isShow)return this.container&&ou(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=Yi("div","l7-popup-content__title"),this.content.firstChild?this.content.insertBefore(this.contentTitle,this.content.firstChild):this.content.append(this.contentTitle)),Ml(this.contentTitle),al(this.contentTitle,i)):this.contentTitle&&(Ci(this.contentTitle),this.contentTitle=void 0)}},{key:"panToPopup",value:function(){var i=this.lngLat,a=i.lng,s=i.lat;return this.popupOption.autoPan&&this.mapsService.panTo([a,s]),this}},{key:"setLngLat",value:function(i){return this.setLnglat(i)}},{key:"setLnglat",value:function(i){var a=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(){a.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:fa.BOTTOM,stopPropagation:!0,autoPan:!1,autoClose:!0,closeOnEsc:!1,followCursor:!1}}},{key:"setDOMContent",value:function(i){return this.show(),this.createContent(),al(this.contentPanel,i),this.update(),this}},{key:"updateCloseOnClick",value:function(i){var a=this,s=this.mapsService;s&&(s==null||s.off("click",this.onCloseButtonClick),this.popupOption.closeOnClick&&!i&&requestAnimationFrame(function(){s==null||s.on("click",a.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 a,s=(a=this.mapsService)===null||a===void 0?void 0:a.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=Yi("div","l7-popup-content",this.container),this.setTitle(this.popupOption.title),this.popupOption.closeButton){var a=Xh("l7-icon-guanbi");ou(a,"l7-popup-close-button"),this.content.appendChild(a),this.popupOption.closeButtonOffsets&&(a.style.right=this.popupOption.closeButtonOffsets[0]+"px",a.style.top=this.popupOption.closeButtonOffsets[1]+"px"),a.setAttribute("aria-label","Close popup"),a.addEventListener("click",function(){i.hide()}),a.addEventListener("pointerup",function(s){s.stopPropagation()}),a.addEventListener("pointerdown",function(s){s.stopPropagation()}),this.closeButton=a}else this.closeButton=void 0;this.contentPanel=Yi("div","l7-popup-content__panel",this.content)}},{key:"setPopupPosition",value:function(i,a){if(this.container){var s=this.popupOption.offsets;this.container.style.left=i+s[0]+"px",this.container.style.top=a-s[1]+"px"}}},{key:"checkUpdateOption",value:function(i,a){return a.some(function(s){return s in i})}}]),t}(Ka.EventEmitter);function nN(e){var r=U5();return function(){var n=_getPrototypeOf(e),i;if(r){var a=_getPrototypeOf(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return _possibleConstructorReturn(this,i)}}function U5(){if(typeof Reflect=="undefined"||!Reflect.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 iN=ui.get,aN=null;function z5(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 a=r.body||r.getElementsByTagName("body")[0];a?a.parentNode.insertBefore(i,a):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}}z5(`.l7-marker-container { + position: absolute; + width: 100%; + height: 100%; + overflow: hidden; +} +.l7-marker { + position: absolute !important; + top: 0; + left: 0; + z-index: 5; + cursor: pointer; +} +.l7-marker-cluster { + width: 40px; + height: 40px; + background-color: rgba(181, 226, 140, 0.6); + background-clip: padding-box; + border-radius: 20px; +} +.l7-marker-cluster div { + width: 30px; + height: 30px; + margin-top: 5px; + margin-left: 5px; + font: 12px 'Helvetica Neue', Arial, Helvetica, sans-serif; + text-align: center; + background-color: rgba(110, 204, 57, 0.6); + border-radius: 15px; +} +.l7-marker-cluster span { + line-height: 30px; +} +.l7-touch .l7-control-attribution, +.l7-touch .l7-control-layers, +.l7-touch .l7-bar { + -webkit-box-shadow: none; + box-shadow: none; +} +.l7-touch .l7-control-layers, +.l7-touch .l7-bar { + background-clip: padding-box; + border: 2px solid rgba(0, 0, 0, 0.2); +} +.mapboxgl-ctrl-logo, +.amap-logo { + display: none !important; +} +.l7-select-box { + border: 3px dashed gray; + border-radius: 2px; + position: absolute; + z-index: 999; + -webkit-box-sizing: border-box; + box-sizing: border-box; +} +.l7-control-container { + font: 12px/1.5 'Helvetica Neue', Arial, Helvetica, sans-serif; +} +.l7-control-container .l7-control { + position: relative; + z-index: 999; + float: left; + clear: both; + color: #595959; + font-size: 12px; + pointer-events: visiblePainted; + /* IE 9-10 doesn't have auto */ + pointer-events: auto; +} +.l7-control-container .l7-control.l7-control--hide { + display: none; +} +.l7-control-container .l7-top { + top: 0; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + position: absolute; + z-index: 999; + pointer-events: none; +} +.l7-control-container .l7-top .l7-control:not(.l7-control--hide) { + margin-top: 8px; +} +.l7-control-container .l7-right { + right: 0; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + position: absolute; + z-index: 999; + pointer-events: none; +} +.l7-control-container .l7-right .l7-control:not(.l7-control--hide) { + margin-right: 8px; +} +.l7-control-container .l7-bottom { + bottom: 0; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + position: absolute; + z-index: 999; + pointer-events: none; +} +.l7-control-container .l7-bottom .l7-control:not(.l7-control--hide) { + margin-bottom: 8px; +} +.l7-control-container .l7-left { + left: 0; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + position: absolute; + z-index: 999; + pointer-events: none; +} +.l7-control-container .l7-left .l7-control:not(.l7-control--hide) { + margin-left: 8px; +} +.l7-control-container .l7-center { + position: absolute; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; +} +.l7-control-container .l7-center.l7-top, +.l7-control-container .l7-center.l7-bottom { + width: 100%; +} +.l7-control-container .l7-center.l7-left, +.l7-control-container .l7-center.l7-right { + height: 100%; +} +.l7-control-container .l7-center .l7-control { + margin-right: 8px; + margin-bottom: 8px; +} +.l7-control-container .l7-row { + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + -ms-flex-direction: row; + flex-direction: row; +} +.l7-control-container .l7-row.l7-top { + -webkit-box-align: start; + -ms-flex-align: start; + align-items: flex-start; +} +.l7-control-container .l7-row.l7-bottom { + -webkit-box-align: end; + -ms-flex-align: end; + align-items: flex-end; +} +.l7-control-container .l7-column { + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; +} +.l7-control-container .l7-column.l7-left { + -webkit-box-align: start; + -ms-flex-align: start; + align-items: flex-start; +} +.l7-control-container .l7-column.l7-right { + -webkit-box-align: end; + -ms-flex-align: end; + align-items: flex-end; +} +.l7-button-control { + min-width: 28px; + height: 28px; + background-color: #fff; + border-width: 0; + border-radius: 2px; + outline: 0; + cursor: pointer; + -webkit-transition: all 0.2s; + transition: all 0.2s; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + padding: 0 6px; + -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); + box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); + line-height: 16px; +} +.l7-button-control .l7-iconfont { + fill: #595959; + color: #595959; + width: 16px; + height: 16px; +} +.l7-button-control.l7-button-control--row { + padding: 0 16px 0 13px; +} +.l7-button-control.l7-button-control--row * + .l7-button-control__text { + margin-left: 8px; +} +.l7-button-control.l7-button-control--column { + height: 44px; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; +} +.l7-button-control.l7-button-control--column .l7-iconfont { + margin-top: 3px; +} +.l7-button-control.l7-button-control--column .l7-button-control__text { + margin-top: 3px; + font-size: 10px; + -webkit-transform: scale(0.83333); + transform: scale(0.83333); +} +.l7-button-control:not(:disabled):hover { + background-color: #f3f3f3; +} +.l7-button-control:not(:disabled):active { + background-color: #f3f3f3; +} +.l7-button-control:disabled { + background-color: #fafafa; + color: #bdbdbd; + cursor: not-allowed; +} +.l7-button-control:disabled .l7-iconfont { + fill: #bdbdbd; + color: #bdbdbd; +} +.l7-button-control:disabled:hover { + background-color: #fafafa; +} +.l7-button-control:disabled:active { + background-color: #fafafa; +} +.l7-popper { + position: absolute; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + z-index: 5; + color: #595959; +} +.l7-popper.l7-popper-hide { + display: none; +} +.l7-popper .l7-popper-content { + min-height: 28px; + background: #fff; + border-radius: 2px; + -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); + box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); +} +.l7-popper .l7-popper-arrow { + width: 0; + height: 0; + border-width: 4px; + border-style: solid; + border-top-color: transparent; + border-bottom-color: transparent; + border-left-color: transparent; + border-right-color: transparent; + -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); + box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); +} +.l7-popper.l7-popper-left { + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + -ms-flex-direction: row; + flex-direction: row; +} +.l7-popper.l7-popper-left .l7-popper-arrow { + border-left-color: #fff; + margin: 10px 0; +} +.l7-popper.l7-popper-right { + -webkit-box-orient: horizontal; + -webkit-box-direction: reverse; + -ms-flex-direction: row-reverse; + flex-direction: row-reverse; +} +.l7-popper.l7-popper-right .l7-popper-arrow { + border-right-color: #fff; + margin: 10px 0; +} +.l7-popper.l7-popper-top { + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; +} +.l7-popper.l7-popper-top .l7-popper-arrow { + border-top-color: #fff; + margin: 0 10px; +} +.l7-popper.l7-popper-bottom { + -webkit-box-orient: vertical; + -webkit-box-direction: reverse; + -ms-flex-direction: column-reverse; + flex-direction: column-reverse; +} +.l7-popper.l7-popper-bottom .l7-popper-arrow { + border-bottom-color: #fff; + margin: 0 10px; +} +.l7-popper.l7-popper-start { + -webkit-box-align: start; + -ms-flex-align: start; + align-items: flex-start; +} +.l7-popper.l7-popper-end { + -webkit-box-align: end; + -ms-flex-align: end; + align-items: flex-end; +} +.l7-select-control--normal { + padding: 4px 0; +} +.l7-select-control--normal .l7-select-control-item { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + height: 24px; + padding: 0 16px; + font-size: 12px; + line-height: 24px; +} +.l7-select-control--normal .l7-select-control-item > * + * { + margin-left: 6px; +} +.l7-select-control--normal .l7-select-control-item input[type='checkbox'] { + width: 14px; + height: 14px; +} +.l7-select-control--normal .l7-select-control-item:hover { + background-color: #f3f3f3; +} +.l7-select-control--image { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + -webkit-box-align: start; + -ms-flex-align: start; + align-items: flex-start; + -webkit-box-sizing: content-box; + box-sizing: content-box; + max-width: 460px; + max-height: 400px; + margin: 12px 0 0 12px; + overflow-x: hidden; + overflow-y: auto; +} +.l7-select-control--image .l7-select-control-item { + position: relative; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-flex: 0; + -ms-flex: 0 0 calc((100% - (12px + 9px) * 2) / 3); + flex: 0 0 calc((100% - (12px + 9px) * 2) / 3); + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + -webkit-box-sizing: content-box; + box-sizing: content-box; + margin-right: 12px; + margin-bottom: 12px; + overflow: hidden; + font-size: 12px; + border: 1px solid #fff; + border-radius: 2px; +} +.l7-select-control--image .l7-select-control-item img { + width: 100%; + height: 80px; +} +.l7-select-control--image .l7-select-control-item input[type='checkbox'] { + position: absolute; + top: 0; + right: 0; +} +.l7-select-control--image .l7-select-control-item input[type='radio'] { + position: absolute; + top: 0; + right: 0; +} +.l7-select-control--image .l7-select-control-item .l7-select-control-item-row { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + line-height: 26px; +} +.l7-select-control--image .l7-select-control-item .l7-select-control-item-row > * + * { + margin-left: 8px; +} +.l7-select-control--image .l7-select-control-item.l7-select-control-item-active { + border-color: #0370fe; +} +.l7-select-control-item { + cursor: pointer; +} +.l7-select-control-item input[type='checkbox'] { + margin: 0; + cursor: pointer; +} +.l7-select-control--multiple .l7-select-control-item:hover { + background-color: transparent; +} +.l7-control-logo { + width: 89px; + height: 16px; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} +.l7-control-logo img { + height: 100%; + width: 100%; +} +.l7-control-logo .l7-control-logo-link { + display: block; + cursor: pointer; +} +.l7-control-logo .l7-control-logo-link img { + cursor: pointer; +} +.l7-control-mouse-location { + background-color: #fff; + border-radius: 2px; + -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); + box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); + padding: 2px 4px; + min-width: 130px; +} +.l7-control-zoom { + overflow: hidden; + border-radius: 2px; + -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); + box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15); +} +.l7-control-zoom .l7-button-control { + font-size: 16px; + border-bottom: 1px solid #f0f0f0; + border-radius: 0; + -webkit-box-shadow: 0 0 0; + box-shadow: 0 0 0; +} +.l7-control-zoom .l7-button-control .l7-iconfont { + width: 14px; + height: 14px; +} +.l7-control-zoom .l7-button-control:last-child { + border-bottom: 0; +} +.l7-control-zoom .l7-control-zoom__number { + color: #595959; + padding: 0; +} +.l7-control-zoom .l7-control-zoom__number:hover { + background-color: #fff; +} +.l7-control-scale { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; +} +.l7-control-scale .l7-control-scale-line { + -webkit-box-sizing: border-box; + box-sizing: border-box; + padding: 2px 5px 1px; + overflow: hidden; + color: #595959; + font-size: 10px; + line-height: 1.1; + white-space: nowrap; + background: #fff; + border: 2px solid #000; + border-top: 0; + -webkit-transition: width 0.1s; + transition: width 0.1s; +} +.l7-control-scale .l7-control-scale-line + .l7-control-scale .l7-control-scale-line { + margin-top: -2px; + border-top: 2px solid #777; + border-bottom: none; +} +.l7-right .l7-control-scale { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-align: end; + -ms-flex-align: end; + align-items: flex-end; +} +.l7-right .l7-control-scale .l7-control-scale-line { + text-align: right; +} +.l7-popup { + position: absolute; + top: 0; + left: 0; + z-index: 5; + display: -webkit-box; + display: -ms-flexbox; + display: flex; + will-change: transform; + pointer-events: none; +} +.l7-popup.l7-popup-hide { + display: none; +} +.l7-popup .l7-popup-content { + position: relative; + padding: 16px; + font-size: 14px; + background: #fff; + border-radius: 3px; + -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); +} +.l7-popup .l7-popup-content .l7-popup-content__title { + margin-bottom: 8px; + font-weight: bold; +} +.l7-popup .l7-popup-content .l7-popup-close-button, +.l7-popup .l7-popup-content .l7-popup-content__title, +.l7-popup .l7-popup-content .l7-popup-content__panel { + white-space: normal; + -webkit-user-select: text; + -moz-user-select: text; + -ms-user-select: text; + user-select: text; + pointer-events: initial; +} +.l7-popup .l7-popup-content .l7-popup-close-button { + position: absolute; + top: 0; + right: 0; + width: 18px; + height: 18px; + padding: 0; + font-size: 14px; + line-height: 18px; + text-align: center; + background-color: transparent; + border: 0; + border-radius: 0 3px 0 0; + cursor: pointer; +} +.l7-popup .l7-popup-tip { + position: relative; + z-index: 1; + width: 0; + height: 0; + border: 10px solid transparent; +} +.l7-popup.l7-popup-anchor-bottom, +.l7-popup.l7-popup-anchor-bottom-left, +.l7-popup.l7-popup-anchor-bottom-right { + -webkit-box-orient: vertical; + -webkit-box-direction: reverse; + -ms-flex-direction: column-reverse; + flex-direction: column-reverse; +} +.l7-popup.l7-popup-anchor-bottom .l7-popup-tip, +.l7-popup.l7-popup-anchor-bottom-left .l7-popup-tip, +.l7-popup.l7-popup-anchor-bottom-right .l7-popup-tip { + bottom: 1px; +} +.l7-popup.l7-popup-anchor-top, +.l7-popup.l7-popup-anchor-top-left, +.l7-popup.l7-popup-anchor-top-right { + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; +} +.l7-popup.l7-popup-anchor-top .l7-popup-tip, +.l7-popup.l7-popup-anchor-top-left .l7-popup-tip, +.l7-popup.l7-popup-anchor-top-right .l7-popup-tip { + top: 1px; +} +.l7-popup.l7-popup-anchor-left { + -webkit-box-orient: horizontal; + -webkit-box-direction: normal; + -ms-flex-direction: row; + flex-direction: row; +} +.l7-popup.l7-popup-anchor-right { + -webkit-box-orient: horizontal; + -webkit-box-direction: reverse; + -ms-flex-direction: row-reverse; + flex-direction: row-reverse; +} +.l7-popup-anchor-top .l7-popup-tip { + position: relative; + -webkit-align-self: center; + -ms-flex-item-align: center; + align-self: center; + border-top: none; + border-bottom-color: #fff; +} +.l7-popup-anchor-top-left .l7-popup-tip { + -webkit-align-self: flex-start; + -ms-flex-item-align: start; + align-self: flex-start; + border-top: none; + border-bottom-color: #fff; + border-left: none; +} +.l7-popup-anchor-top-right .l7-popup-tip { + -webkit-align-self: flex-end; + -ms-flex-item-align: end; + align-self: flex-end; + border-top: none; + border-right: none; + border-bottom-color: #fff; +} +.l7-popup-anchor-bottom .l7-popup-tip { + -webkit-align-self: center; + -ms-flex-item-align: center; + align-self: center; + border-top-color: #fff; + border-bottom: none; +} +.l7-popup-anchor-bottom-left .l7-popup-tip { + -webkit-align-self: flex-start; + -ms-flex-item-align: start; + align-self: flex-start; + border-top-color: #fff; + border-bottom: none; + border-left: none; +} +.l7-popup-anchor-bottom-right .l7-popup-tip { + -webkit-align-self: flex-end; + -ms-flex-item-align: end; + align-self: flex-end; + border-top-color: #fff; + border-right: none; + border-bottom: none; +} +.l7-popup-anchor-left .l7-popup-tip { + -webkit-align-self: center; + -ms-flex-item-align: center; + align-self: center; + border-right-color: #fff; + border-left: none; +} +.l7-popup-anchor-right .l7-popup-tip { + right: 1px; + -webkit-align-self: center; + -ms-flex-item-align: center; + align-self: center; + border-right: none; + border-left-color: #fff; +} +.l7-popup-anchor-top-left .l7-popup-content { + border-top-left-radius: 0; +} +.l7-popup-anchor-top-right .l7-popup-content { + border-top-right-radius: 0; +} +.l7-popup-anchor-bottom-left .l7-popup-content { + border-bottom-left-radius: 0; +} +.l7-popup-anchor-bottom-right .l7-popup-content { + border-bottom-right-radius: 0; +} +.l7-popup-track-pointer { + display: none; +} +.l7-popup-track-pointer * { + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + pointer-events: none; +} +.l7-map:hover .l7-popup-track-pointer { + display: -webkit-box; + display: -ms-flexbox; + display: flex; +} +.l7-map:active .l7-popup-track-pointer { + display: none; +} +.l7-layer-popup__row { + font-size: 12px; +} +.l7-layer-popup__row + .l7-layer-popup__row { + margin-top: 4px; +} +.l7-control-swipe { + position: absolute; + top: 50%; + left: 50%; + z-index: 6; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + -ms-touch-action: none; + touch-action: none; +} +.l7-control-swipe_hide { + display: none; +} +.l7-control-swipe:before { + position: absolute; + top: -5000px; + bottom: -5000px; + left: 50%; + z-index: -1; + width: 4px; + background: #fff; + -webkit-transform: translate(-2px, 0); + transform: translate(-2px, 0); + content: ''; +} +.l7-control-swipe.horizontal:before { + top: 50%; + right: -5000px; + bottom: auto; + left: -5000px; + width: auto; + height: 4px; +} +.l7-control-swipe__button { + display: block; + width: 28px; + height: 28px; + margin: 0; + padding: 0; + color: #595959; + font-weight: bold; + font-size: inherit; + text-align: center; + text-decoration: none; + background-color: #fff; + border: none; + border-radius: 2px; + outline: none; +} +.l7-control-swipe, +.l7-control-swipe__button { + cursor: ew-resize; +} +.l7-control-swipe.horizontal, +.l7-control-swipe.horizontal button { + cursor: ns-resize; +} +.l7-control-swipe:after, +.l7-control-swipe__button:before, +.l7-control-swipe__button:after { + position: absolute; + top: 25%; + bottom: 25%; + left: 50%; + width: 2px; + background: currentColor; + -webkit-transform: translate(-1px, 0); + transform: translate(-1px, 0); + content: ''; +} +.l7-control-swipe__button:after { + -webkit-transform: translateX(4px); + transform: translateX(4px); +} +.l7-control-swipe__button:before { + -webkit-transform: translateX(-6px); + transform: translateX(-6px); +} +`);var Z5=U(79801),V5=U.n(Z5),j5=function(){function e(r,t){(0,Q.Z)(this,e);var n=t.buffer,i=t.offset,a=t.stride,s=t.normalized,l=t.size,f=t.divisor;this.buffer=n,this.attribute={buffer:n.get(),offset:i||0,stride:a||0,normalized:s||!1,divisor:f||0},l&&(this.attribute.size=l)}return(0,j.Z)(e,[{key:"get",value:function(){return this.attribute}},{key:"updateBuffer",value:function(t){this.buffer.subData(t)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),e}(),Yh,Lm,Op,Xc,Bm,kp,Fm,Jg,ih,Cd,Pu,ah,oh,e0,H5=(Yh={},(0,F.Z)(Yh,I.POINTS,"points"),(0,F.Z)(Yh,I.LINES,"lines"),(0,F.Z)(Yh,I.LINE_LOOP,"line loop"),(0,F.Z)(Yh,I.LINE_STRIP,"line strip"),(0,F.Z)(Yh,I.TRIANGLES,"triangles"),(0,F.Z)(Yh,I.TRIANGLE_FAN,"triangle fan"),(0,F.Z)(Yh,I.TRIANGLE_STRIP,"triangle strip"),Yh),gE=(Lm={},(0,F.Z)(Lm,I.STATIC_DRAW,"static"),(0,F.Z)(Lm,I.DYNAMIC_DRAW,"dynamic"),(0,F.Z)(Lm,I.STREAM_DRAW,"stream"),Lm),Sy=(Op={},(0,F.Z)(Op,I.BYTE,"int8"),(0,F.Z)(Op,I.INT,"int32"),(0,F.Z)(Op,I.UNSIGNED_BYTE,"uint8"),(0,F.Z)(Op,I.UNSIGNED_SHORT,"uint16"),(0,F.Z)(Op,I.UNSIGNED_INT,"uint32"),(0,F.Z)(Op,I.FLOAT,"float"),Op),W5=(Xc={},(0,F.Z)(Xc,I.ALPHA,"alpha"),(0,F.Z)(Xc,I.LUMINANCE,"luminance"),(0,F.Z)(Xc,I.LUMINANCE_ALPHA,"luminance alpha"),(0,F.Z)(Xc,I.RGB,"rgb"),(0,F.Z)(Xc,I.RGBA,"rgba"),(0,F.Z)(Xc,I.RGBA4,"rgba4"),(0,F.Z)(Xc,I.RGB5_A1,"rgb5 a1"),(0,F.Z)(Xc,I.RGB565,"rgb565"),(0,F.Z)(Xc,I.DEPTH_COMPONENT,"depth"),(0,F.Z)(Xc,I.DEPTH_STENCIL,"depth stencil"),Xc),G5=(Bm={},(0,F.Z)(Bm,I.DONT_CARE,"dont care"),(0,F.Z)(Bm,I.NICEST,"nice"),(0,F.Z)(Bm,I.FASTEST,"fast"),Bm),yE=(kp={},(0,F.Z)(kp,I.NEAREST,"nearest"),(0,F.Z)(kp,I.LINEAR,"linear"),(0,F.Z)(kp,I.LINEAR_MIPMAP_LINEAR,"mipmap"),(0,F.Z)(kp,I.NEAREST_MIPMAP_LINEAR,"nearest mipmap linear"),(0,F.Z)(kp,I.LINEAR_MIPMAP_NEAREST,"linear mipmap nearest"),(0,F.Z)(kp,I.NEAREST_MIPMAP_NEAREST,"nearest mipmap nearest"),kp),_E=(Fm={},(0,F.Z)(Fm,I.REPEAT,"repeat"),(0,F.Z)(Fm,I.CLAMP_TO_EDGE,"clamp"),(0,F.Z)(Fm,I.MIRRORED_REPEAT,"mirror"),Fm),X5=(Jg={},(0,F.Z)(Jg,I.NONE,"none"),(0,F.Z)(Jg,I.BROWSER_DEFAULT_WEBGL,"browser"),Jg),$5=(ih={},(0,F.Z)(ih,I.NEVER,"never"),(0,F.Z)(ih,I.ALWAYS,"always"),(0,F.Z)(ih,I.LESS,"less"),(0,F.Z)(ih,I.LEQUAL,"lequal"),(0,F.Z)(ih,I.GREATER,"greater"),(0,F.Z)(ih,I.GEQUAL,"gequal"),(0,F.Z)(ih,I.EQUAL,"equal"),(0,F.Z)(ih,I.NOTEQUAL,"notequal"),ih),xE=(Cd={},(0,F.Z)(Cd,I.FUNC_ADD,"add"),(0,F.Z)(Cd,I.MIN_EXT,"min"),(0,F.Z)(Cd,I.MAX_EXT,"max"),(0,F.Z)(Cd,I.FUNC_SUBTRACT,"subtract"),(0,F.Z)(Cd,I.FUNC_REVERSE_SUBTRACT,"reverse subtract"),Cd),t0=(Pu={},(0,F.Z)(Pu,I.ZERO,"zero"),(0,F.Z)(Pu,I.ONE,"one"),(0,F.Z)(Pu,I.SRC_COLOR,"src color"),(0,F.Z)(Pu,I.ONE_MINUS_SRC_COLOR,"one minus src color"),(0,F.Z)(Pu,I.SRC_ALPHA,"src alpha"),(0,F.Z)(Pu,I.ONE_MINUS_SRC_ALPHA,"one minus src alpha"),(0,F.Z)(Pu,I.DST_COLOR,"dst color"),(0,F.Z)(Pu,I.ONE_MINUS_DST_COLOR,"one minus dst color"),(0,F.Z)(Pu,I.DST_ALPHA,"dst alpha"),(0,F.Z)(Pu,I.ONE_MINUS_DST_ALPHA,"one minus dst alpha"),(0,F.Z)(Pu,I.CONSTANT_COLOR,"constant color"),(0,F.Z)(Pu,I.ONE_MINUS_CONSTANT_COLOR,"one minus constant color"),(0,F.Z)(Pu,I.CONSTANT_ALPHA,"constant alpha"),(0,F.Z)(Pu,I.ONE_MINUS_CONSTANT_ALPHA,"one minus constant alpha"),(0,F.Z)(Pu,I.SRC_ALPHA_SATURATE,"src alpha saturate"),Pu),Y5=(ah={},(0,F.Z)(ah,I.NEVER,"never"),(0,F.Z)(ah,I.ALWAYS,"always"),(0,F.Z)(ah,I.LESS,"less"),(0,F.Z)(ah,I.LEQUAL,"lequal"),(0,F.Z)(ah,I.GREATER,"greater"),(0,F.Z)(ah,I.GEQUAL,"gequal"),(0,F.Z)(ah,I.EQUAL,"equal"),(0,F.Z)(ah,I.NOTEQUAL,"notequal"),ah),Ev=(oh={},(0,F.Z)(oh,I.ZERO,"zero"),(0,F.Z)(oh,I.KEEP,"keep"),(0,F.Z)(oh,I.REPLACE,"replace"),(0,F.Z)(oh,I.INVERT,"invert"),(0,F.Z)(oh,I.INCR,"increment"),(0,F.Z)(oh,I.DECR,"decrement"),(0,F.Z)(oh,I.INCR_WRAP,"increment wrap"),(0,F.Z)(oh,I.DECR_WRAP,"decrement wrap"),oh),q5=(e0={},(0,F.Z)(e0,I.FRONT,"front"),(0,F.Z)(e0,I.BACK,"back"),e0),K5=function(){function e(r,t){(0,Q.Z)(this,e),(0,F.Z)(this,"isDestroyed",!1);var n=t.data,i=t.usage,a=t.type;this.buffer=r.buffer({data:n,usage:gE[i||I.STATIC_DRAW],type:Sy[a||I.UNSIGNED_BYTE]})}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;this.buffer.subdata(n,i)}}]),e}(),Q5=function(){function e(r,t){(0,Q.Z)(this,e);var n=t.data,i=t.usage,a=t.type,s=t.count;this.elements=r.elements({data:n,usage:gE[i||I.STATIC_DRAW],type:Sy[a||I.UNSIGNED_BYTE],count:s})}return(0,j.Z)(e,[{key:"get",value:function(){return this.elements}},{key:"subData",value:function(t){var n=t.data;this.elements.subdata(n)}},{key:"destroy",value:function(){}}]),e}(),J5=function(){function e(r,t){(0,Q.Z)(this,e);var n=t.width,i=t.height,a=t.color,s=t.colors,l={width:n,height:i};Array.isArray(s)&&(l.colors=s.map(function(f){return f.get()})),a&&typeof a!="boolean"&&(l.color=a.get()),this.framebuffer=r.framebuffer(l)}return(0,j.Z)(e,[{key:"get",value:function(){return this.framebuffer}},{key:"destroy",value:function(){this.framebuffer.destroy()}},{key:"resize",value:function(t){var n=t.width,i=t.height;this.framebuffer.resize(n,i)}}]),e}(),Sv=U(39696),Dp=U(58622),e4=U(39083),Pn=U(99938),bE=U(73983),Xe;(function(e){e[e.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",e[e.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",e[e.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN",e[e.ZERO=0]="ZERO",e[e.ONE=1]="ONE",e[e.SRC_COLOR=768]="SRC_COLOR",e[e.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",e[e.SRC_ALPHA=770]="SRC_ALPHA",e[e.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",e[e.DST_ALPHA=772]="DST_ALPHA",e[e.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",e[e.DST_COLOR=774]="DST_COLOR",e[e.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",e[e.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",e[e.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.FUNC_ADD=32774]="FUNC_ADD",e[e.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",e[e.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",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.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.BLEND_COLOR=32773]="BLEND_COLOR",e[e.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",e[e.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",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.VENDOR=7936]="VENDOR",e[e.RENDERER=7937]="RENDERER",e[e.VERSION=7938]="VERSION",e[e.IMPLEMENTATION_COLOR_READ_TYPE=35738]="IMPLEMENTATION_COLOR_READ_TYPE",e[e.IMPLEMENTATION_COLOR_READ_FORMAT=35739]="IMPLEMENTATION_COLOR_READ_FORMAT",e[e.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",e[e.STATIC_DRAW=35044]="STATIC_DRAW",e[e.STREAM_DRAW=35040]="STREAM_DRAW",e[e.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",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.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.CULL_FACE=2884]="CULL_FACE",e[e.FRONT=1028]="FRONT",e[e.BACK=1029]="BACK",e[e.FRONT_AND_BACK=1032]="FRONT_AND_BACK",e[e.BLEND=3042]="BLEND",e[e.DEPTH_TEST=2929]="DEPTH_TEST",e[e.DITHER=3024]="DITHER",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.SCISSOR_TEST=3089]="SCISSOR_TEST",e[e.STENCIL_TEST=2960]="STENCIL_TEST",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.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",e[e.CW=2304]="CW",e[e.CCW=2305]="CCW",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.DOUBLE=5130]="DOUBLE",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.COMPILE_STATUS=35713]="COMPILE_STATUS",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_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",e[e.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",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.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",e[e.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",e[e.NEVER=512]="NEVER",e[e.ALWAYS=519]="ALWAYS",e[e.LESS=513]="LESS",e[e.EQUAL=514]="EQUAL",e[e.LEQUAL=515]="LEQUAL",e[e.GREATER=516]="GREATER",e[e.GEQUAL=518]="GEQUAL",e[e.NOTEQUAL=517]="NOTEQUAL",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.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.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.TEXTURE_WIDTH=4096]="TEXTURE_WIDTH",e[e.TEXTURE_HEIGHT=4097]="TEXTURE_HEIGHT",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.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.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",e[e.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER",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.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",e[e.READ_BUFFER=3074]="READ_BUFFER",e[e.UNPACK_ROW_LENGTH=3314]="UNPACK_ROW_LENGTH",e[e.UNPACK_SKIP_ROWS=3315]="UNPACK_SKIP_ROWS",e[e.UNPACK_SKIP_PIXELS=3316]="UNPACK_SKIP_PIXELS",e[e.PACK_ROW_LENGTH=3330]="PACK_ROW_LENGTH",e[e.PACK_SKIP_ROWS=3331]="PACK_SKIP_ROWS",e[e.PACK_SKIP_PIXELS=3332]="PACK_SKIP_PIXELS",e[e.TEXTURE_BINDING_3D=32874]="TEXTURE_BINDING_3D",e[e.UNPACK_SKIP_IMAGES=32877]="UNPACK_SKIP_IMAGES",e[e.UNPACK_IMAGE_HEIGHT=32878]="UNPACK_IMAGE_HEIGHT",e[e.MAX_3D_TEXTURE_SIZE=32883]="MAX_3D_TEXTURE_SIZE",e[e.MAX_ELEMENTS_VERTICES=33e3]="MAX_ELEMENTS_VERTICES",e[e.MAX_ELEMENTS_INDICES=33001]="MAX_ELEMENTS_INDICES",e[e.MAX_TEXTURE_LOD_BIAS=34045]="MAX_TEXTURE_LOD_BIAS",e[e.MAX_FRAGMENT_UNIFORM_COMPONENTS=35657]="MAX_FRAGMENT_UNIFORM_COMPONENTS",e[e.MAX_VERTEX_UNIFORM_COMPONENTS=35658]="MAX_VERTEX_UNIFORM_COMPONENTS",e[e.MAX_ARRAY_TEXTURE_LAYERS=35071]="MAX_ARRAY_TEXTURE_LAYERS",e[e.MIN_PROGRAM_TEXEL_OFFSET=35076]="MIN_PROGRAM_TEXEL_OFFSET",e[e.MAX_PROGRAM_TEXEL_OFFSET=35077]="MAX_PROGRAM_TEXEL_OFFSET",e[e.MAX_VARYING_COMPONENTS=35659]="MAX_VARYING_COMPONENTS",e[e.FRAGMENT_SHADER_DERIVATIVE_HINT=35723]="FRAGMENT_SHADER_DERIVATIVE_HINT",e[e.RASTERIZER_DISCARD=35977]="RASTERIZER_DISCARD",e[e.VERTEX_ARRAY_BINDING=34229]="VERTEX_ARRAY_BINDING",e[e.MAX_VERTEX_OUTPUT_COMPONENTS=37154]="MAX_VERTEX_OUTPUT_COMPONENTS",e[e.MAX_FRAGMENT_INPUT_COMPONENTS=37157]="MAX_FRAGMENT_INPUT_COMPONENTS",e[e.MAX_SERVER_WAIT_TIMEOUT=37137]="MAX_SERVER_WAIT_TIMEOUT",e[e.MAX_ELEMENT_INDEX=36203]="MAX_ELEMENT_INDEX",e[e.RED=6403]="RED",e[e.RGB8=32849]="RGB8",e[e.RGBA8=32856]="RGBA8",e[e.RGB10_A2=32857]="RGB10_A2",e[e.TEXTURE_3D=32879]="TEXTURE_3D",e[e.TEXTURE_WRAP_R=32882]="TEXTURE_WRAP_R",e[e.TEXTURE_MIN_LOD=33082]="TEXTURE_MIN_LOD",e[e.TEXTURE_MAX_LOD=33083]="TEXTURE_MAX_LOD",e[e.TEXTURE_BASE_LEVEL=33084]="TEXTURE_BASE_LEVEL",e[e.TEXTURE_MAX_LEVEL=33085]="TEXTURE_MAX_LEVEL",e[e.TEXTURE_COMPARE_MODE=34892]="TEXTURE_COMPARE_MODE",e[e.TEXTURE_COMPARE_FUNC=34893]="TEXTURE_COMPARE_FUNC",e[e.SRGB=35904]="SRGB",e[e.SRGB8=35905]="SRGB8",e[e.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",e[e.COMPARE_REF_TO_TEXTURE=34894]="COMPARE_REF_TO_TEXTURE",e[e.RGBA32F=34836]="RGBA32F",e[e.RGB32F=34837]="RGB32F",e[e.RGBA16F=34842]="RGBA16F",e[e.RGB16F=34843]="RGB16F",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",e[e.TEXTURE_BINDING_2D_ARRAY=35869]="TEXTURE_BINDING_2D_ARRAY",e[e.R11F_G11F_B10F=35898]="R11F_G11F_B10F",e[e.RGB9_E5=35901]="RGB9_E5",e[e.RGBA32UI=36208]="RGBA32UI",e[e.RGB32UI=36209]="RGB32UI",e[e.RGBA16UI=36214]="RGBA16UI",e[e.RGB16UI=36215]="RGB16UI",e[e.RGBA8UI=36220]="RGBA8UI",e[e.RGB8UI=36221]="RGB8UI",e[e.RGBA32I=36226]="RGBA32I",e[e.RGB32I=36227]="RGB32I",e[e.RGBA16I=36232]="RGBA16I",e[e.RGB16I=36233]="RGB16I",e[e.RGBA8I=36238]="RGBA8I",e[e.RGB8I=36239]="RGB8I",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER",e[e.R8=33321]="R8",e[e.RG8=33323]="RG8",e[e.R16F=33325]="R16F",e[e.R32F=33326]="R32F",e[e.RG16F=33327]="RG16F",e[e.RG32F=33328]="RG32F",e[e.R8I=33329]="R8I",e[e.R8UI=33330]="R8UI",e[e.R16I=33331]="R16I",e[e.R16UI=33332]="R16UI",e[e.R32I=33333]="R32I",e[e.R32UI=33334]="R32UI",e[e.RG8I=33335]="RG8I",e[e.RG8UI=33336]="RG8UI",e[e.RG16I=33337]="RG16I",e[e.RG16UI=33338]="RG16UI",e[e.RG32I=33339]="RG32I",e[e.RG32UI=33340]="RG32UI",e[e.R8_SNORM=36756]="R8_SNORM",e[e.RG8_SNORM=36757]="RG8_SNORM",e[e.RGB8_SNORM=36758]="RGB8_SNORM",e[e.RGBA8_SNORM=36759]="RGBA8_SNORM",e[e.RGB10_A2UI=36975]="RGB10_A2UI",e[e.TEXTURE_IMMUTABLE_FORMAT=37167]="TEXTURE_IMMUTABLE_FORMAT",e[e.TEXTURE_IMMUTABLE_LEVELS=33503]="TEXTURE_IMMUTABLE_LEVELS",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.HALF_FLOAT=5131]="HALF_FLOAT",e[e.RG=33319]="RG",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.INT_2_10_10_10_REV=36255]="INT_2_10_10_10_REV",e[e.CURRENT_QUERY=34917]="CURRENT_QUERY",e[e.QUERY_RESULT=34918]="QUERY_RESULT",e[e.QUERY_RESULT_AVAILABLE=34919]="QUERY_RESULT_AVAILABLE",e[e.ANY_SAMPLES_PASSED=35887]="ANY_SAMPLES_PASSED",e[e.ANY_SAMPLES_PASSED_CONSERVATIVE=36202]="ANY_SAMPLES_PASSED_CONSERVATIVE",e[e.MAX_DRAW_BUFFERS=34852]="MAX_DRAW_BUFFERS",e[e.DRAW_BUFFER0=34853]="DRAW_BUFFER0",e[e.DRAW_BUFFER1=34854]="DRAW_BUFFER1",e[e.DRAW_BUFFER2=34855]="DRAW_BUFFER2",e[e.DRAW_BUFFER3=34856]="DRAW_BUFFER3",e[e.DRAW_BUFFER4=34857]="DRAW_BUFFER4",e[e.DRAW_BUFFER5=34858]="DRAW_BUFFER5",e[e.DRAW_BUFFER6=34859]="DRAW_BUFFER6",e[e.DRAW_BUFFER7=34860]="DRAW_BUFFER7",e[e.DRAW_BUFFER8=34861]="DRAW_BUFFER8",e[e.DRAW_BUFFER9=34862]="DRAW_BUFFER9",e[e.DRAW_BUFFER10=34863]="DRAW_BUFFER10",e[e.DRAW_BUFFER11=34864]="DRAW_BUFFER11",e[e.DRAW_BUFFER12=34865]="DRAW_BUFFER12",e[e.DRAW_BUFFER13=34866]="DRAW_BUFFER13",e[e.DRAW_BUFFER14=34867]="DRAW_BUFFER14",e[e.DRAW_BUFFER15=34868]="DRAW_BUFFER15",e[e.MAX_COLOR_ATTACHMENTS=36063]="MAX_COLOR_ATTACHMENTS",e[e.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",e[e.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",e[e.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",e[e.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",e[e.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",e[e.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",e[e.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",e[e.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",e[e.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",e[e.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",e[e.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",e[e.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",e[e.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",e[e.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",e[e.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15",e[e.SAMPLER_3D=35679]="SAMPLER_3D",e[e.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",e[e.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",e[e.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",e[e.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",e[e.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",e[e.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",e[e.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",e[e.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",e[e.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",e[e.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",e[e.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",e[e.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY",e[e.MAX_SAMPLES=36183]="MAX_SAMPLES",e[e.SAMPLER_BINDING=35097]="SAMPLER_BINDING",e[e.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",e[e.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",e[e.PIXEL_PACK_BUFFER_BINDING=35053]="PIXEL_PACK_BUFFER_BINDING",e[e.PIXEL_UNPACK_BUFFER_BINDING=35055]="PIXEL_UNPACK_BUFFER_BINDING",e[e.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",e[e.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER",e[e.COPY_READ_BUFFER_BINDING=36662]="COPY_READ_BUFFER_BINDING",e[e.COPY_WRITE_BUFFER_BINDING=36663]="COPY_WRITE_BUFFER_BINDING",e[e.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",e[e.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",e[e.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",e[e.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",e[e.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",e[e.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",e[e.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",e[e.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",e[e.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",e[e.UNSIGNED_NORMALIZED=35863]="UNSIGNED_NORMALIZED",e[e.SIGNED_NORMALIZED=36764]="SIGNED_NORMALIZED",e[e.VERTEX_ATTRIB_ARRAY_INTEGER=35069]="VERTEX_ATTRIB_ARRAY_INTEGER",e[e.VERTEX_ATTRIB_ARRAY_DIVISOR=35070]="VERTEX_ATTRIB_ARRAY_DIVISOR",e[e.TRANSFORM_FEEDBACK_BUFFER_MODE=35967]="TRANSFORM_FEEDBACK_BUFFER_MODE",e[e.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS=35968]="MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS",e[e.TRANSFORM_FEEDBACK_VARYINGS=35971]="TRANSFORM_FEEDBACK_VARYINGS",e[e.TRANSFORM_FEEDBACK_BUFFER_START=35972]="TRANSFORM_FEEDBACK_BUFFER_START",e[e.TRANSFORM_FEEDBACK_BUFFER_SIZE=35973]="TRANSFORM_FEEDBACK_BUFFER_SIZE",e[e.TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN=35976]="TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN",e[e.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS=35978]="MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS",e[e.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS=35979]="MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS",e[e.INTERLEAVED_ATTRIBS=35980]="INTERLEAVED_ATTRIBS",e[e.SEPARATE_ATTRIBS=35981]="SEPARATE_ATTRIBS",e[e.TRANSFORM_FEEDBACK_BUFFER=35982]="TRANSFORM_FEEDBACK_BUFFER",e[e.TRANSFORM_FEEDBACK_BUFFER_BINDING=35983]="TRANSFORM_FEEDBACK_BUFFER_BINDING",e[e.TRANSFORM_FEEDBACK=36386]="TRANSFORM_FEEDBACK",e[e.TRANSFORM_FEEDBACK_PAUSED=36387]="TRANSFORM_FEEDBACK_PAUSED",e[e.TRANSFORM_FEEDBACK_ACTIVE=36388]="TRANSFORM_FEEDBACK_ACTIVE",e[e.TRANSFORM_FEEDBACK_BINDING=36389]="TRANSFORM_FEEDBACK_BINDING",e[e.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING=33296]="FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING",e[e.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE=33297]="FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE",e[e.FRAMEBUFFER_ATTACHMENT_RED_SIZE=33298]="FRAMEBUFFER_ATTACHMENT_RED_SIZE",e[e.FRAMEBUFFER_ATTACHMENT_GREEN_SIZE=33299]="FRAMEBUFFER_ATTACHMENT_GREEN_SIZE",e[e.FRAMEBUFFER_ATTACHMENT_BLUE_SIZE=33300]="FRAMEBUFFER_ATTACHMENT_BLUE_SIZE",e[e.FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE=33301]="FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE",e[e.FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE=33302]="FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE",e[e.FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE=33303]="FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE",e[e.FRAMEBUFFER_DEFAULT=33304]="FRAMEBUFFER_DEFAULT",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.DRAW_FRAMEBUFFER_BINDING=36006]="DRAW_FRAMEBUFFER_BINDING",e[e.READ_FRAMEBUFFER_BINDING=36010]="READ_FRAMEBUFFER_BINDING",e[e.RENDERBUFFER_SAMPLES=36011]="RENDERBUFFER_SAMPLES",e[e.FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER=36052]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER",e[e.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE=36182]="FRAMEBUFFER_INCOMPLETE_MULTISAMPLE",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e[e.UNIFORM_BUFFER_BINDING=35368]="UNIFORM_BUFFER_BINDING",e[e.UNIFORM_BUFFER_START=35369]="UNIFORM_BUFFER_START",e[e.UNIFORM_BUFFER_SIZE=35370]="UNIFORM_BUFFER_SIZE",e[e.MAX_VERTEX_UNIFORM_BLOCKS=35371]="MAX_VERTEX_UNIFORM_BLOCKS",e[e.MAX_FRAGMENT_UNIFORM_BLOCKS=35373]="MAX_FRAGMENT_UNIFORM_BLOCKS",e[e.MAX_COMBINED_UNIFORM_BLOCKS=35374]="MAX_COMBINED_UNIFORM_BLOCKS",e[e.MAX_UNIFORM_BUFFER_BINDINGS=35375]="MAX_UNIFORM_BUFFER_BINDINGS",e[e.MAX_UNIFORM_BLOCK_SIZE=35376]="MAX_UNIFORM_BLOCK_SIZE",e[e.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS=35377]="MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS",e[e.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS=35379]="MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS",e[e.UNIFORM_BUFFER_OFFSET_ALIGNMENT=35380]="UNIFORM_BUFFER_OFFSET_ALIGNMENT",e[e.ACTIVE_UNIFORM_BLOCKS=35382]="ACTIVE_UNIFORM_BLOCKS",e[e.UNIFORM_TYPE=35383]="UNIFORM_TYPE",e[e.UNIFORM_SIZE=35384]="UNIFORM_SIZE",e[e.UNIFORM_BLOCK_INDEX=35386]="UNIFORM_BLOCK_INDEX",e[e.UNIFORM_OFFSET=35387]="UNIFORM_OFFSET",e[e.UNIFORM_ARRAY_STRIDE=35388]="UNIFORM_ARRAY_STRIDE",e[e.UNIFORM_MATRIX_STRIDE=35389]="UNIFORM_MATRIX_STRIDE",e[e.UNIFORM_IS_ROW_MAJOR=35390]="UNIFORM_IS_ROW_MAJOR",e[e.UNIFORM_BLOCK_BINDING=35391]="UNIFORM_BLOCK_BINDING",e[e.UNIFORM_BLOCK_DATA_SIZE=35392]="UNIFORM_BLOCK_DATA_SIZE",e[e.UNIFORM_BLOCK_ACTIVE_UNIFORMS=35394]="UNIFORM_BLOCK_ACTIVE_UNIFORMS",e[e.UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES=35395]="UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES",e[e.UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER=35396]="UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER",e[e.UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER=35398]="UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER",e[e.OBJECT_TYPE=37138]="OBJECT_TYPE",e[e.SYNC_CONDITION=37139]="SYNC_CONDITION",e[e.SYNC_STATUS=37140]="SYNC_STATUS",e[e.SYNC_FLAGS=37141]="SYNC_FLAGS",e[e.SYNC_FENCE=37142]="SYNC_FENCE",e[e.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE",e[e.UNSIGNALED=37144]="UNSIGNALED",e[e.SIGNALED=37145]="SIGNALED",e[e.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",e[e.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",e[e.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",e[e.WAIT_FAILED=37149]="WAIT_FAILED",e[e.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT",e[e.COLOR=6144]="COLOR",e[e.DEPTH=6145]="DEPTH",e[e.STENCIL=6146]="STENCIL",e[e.MIN=32775]="MIN",e[e.MAX=32776]="MAX",e[e.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",e[e.STREAM_READ=35041]="STREAM_READ",e[e.STREAM_COPY=35042]="STREAM_COPY",e[e.STATIC_READ=35045]="STATIC_READ",e[e.STATIC_COPY=35046]="STATIC_COPY",e[e.DYNAMIC_READ=35049]="DYNAMIC_READ",e[e.DYNAMIC_COPY=35050]="DYNAMIC_COPY",e[e.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",e[e.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8",e[e.INVALID_INDEX=4294967295]="INVALID_INDEX",e[e.TIMEOUT_IGNORED=-1]="TIMEOUT_IGNORED",e[e.MAX_CLIENT_WAIT_TIMEOUT_WEBGL=37447]="MAX_CLIENT_WAIT_TIMEOUT_WEBGL",e[e.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE=35070]="VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE",e[e.UNMASKED_VENDOR_WEBGL=37445]="UNMASKED_VENDOR_WEBGL",e[e.UNMASKED_RENDERER_WEBGL=37446]="UNMASKED_RENDERER_WEBGL",e[e.MAX_TEXTURE_MAX_ANISOTROPY_EXT=34047]="MAX_TEXTURE_MAX_ANISOTROPY_EXT",e[e.TEXTURE_MAX_ANISOTROPY_EXT=34046]="TEXTURE_MAX_ANISOTROPY_EXT",e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37493]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ETC2=37494]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37495]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37496]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37497]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",e[e.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",e[e.COMPRESSED_RGB_PVRTC_2BPPV1_IMG=35841]="COMPRESSED_RGB_PVRTC_2BPPV1_IMG",e[e.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=35843]="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",e[e.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL",e[e.COMPRESSED_RGB_ATC_WEBGL=35986]="COMPRESSED_RGB_ATC_WEBGL",e[e.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=35986]="COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL",e[e.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=34798]="COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL",e[e.UNSIGNED_INT_24_8_WEBGL=34042]="UNSIGNED_INT_24_8_WEBGL",e[e.HALF_FLOAT_OES=36193]="HALF_FLOAT_OES",e[e.RGBA32F_EXT=34836]="RGBA32F_EXT",e[e.RGB32F_EXT=34837]="RGB32F_EXT",e[e.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT=33297]="FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT",e[e.UNSIGNED_NORMALIZED_EXT=35863]="UNSIGNED_NORMALIZED_EXT",e[e.MIN_EXT=32775]="MIN_EXT",e[e.MAX_EXT=32776]="MAX_EXT",e[e.SRGB_EXT=35904]="SRGB_EXT",e[e.SRGB_ALPHA_EXT=35906]="SRGB_ALPHA_EXT",e[e.SRGB8_ALPHA8_EXT=35907]="SRGB8_ALPHA8_EXT",e[e.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT=33296]="FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT",e[e.FRAGMENT_SHADER_DERIVATIVE_HINT_OES=35723]="FRAGMENT_SHADER_DERIVATIVE_HINT_OES",e[e.COLOR_ATTACHMENT0_WEBGL=36064]="COLOR_ATTACHMENT0_WEBGL",e[e.COLOR_ATTACHMENT1_WEBGL=36065]="COLOR_ATTACHMENT1_WEBGL",e[e.COLOR_ATTACHMENT2_WEBGL=36066]="COLOR_ATTACHMENT2_WEBGL",e[e.COLOR_ATTACHMENT3_WEBGL=36067]="COLOR_ATTACHMENT3_WEBGL",e[e.COLOR_ATTACHMENT4_WEBGL=36068]="COLOR_ATTACHMENT4_WEBGL",e[e.COLOR_ATTACHMENT5_WEBGL=36069]="COLOR_ATTACHMENT5_WEBGL",e[e.COLOR_ATTACHMENT6_WEBGL=36070]="COLOR_ATTACHMENT6_WEBGL",e[e.COLOR_ATTACHMENT7_WEBGL=36071]="COLOR_ATTACHMENT7_WEBGL",e[e.COLOR_ATTACHMENT8_WEBGL=36072]="COLOR_ATTACHMENT8_WEBGL",e[e.COLOR_ATTACHMENT9_WEBGL=36073]="COLOR_ATTACHMENT9_WEBGL",e[e.COLOR_ATTACHMENT10_WEBGL=36074]="COLOR_ATTACHMENT10_WEBGL",e[e.COLOR_ATTACHMENT11_WEBGL=36075]="COLOR_ATTACHMENT11_WEBGL",e[e.COLOR_ATTACHMENT12_WEBGL=36076]="COLOR_ATTACHMENT12_WEBGL",e[e.COLOR_ATTACHMENT13_WEBGL=36077]="COLOR_ATTACHMENT13_WEBGL",e[e.COLOR_ATTACHMENT14_WEBGL=36078]="COLOR_ATTACHMENT14_WEBGL",e[e.COLOR_ATTACHMENT15_WEBGL=36079]="COLOR_ATTACHMENT15_WEBGL",e[e.DRAW_BUFFER0_WEBGL=34853]="DRAW_BUFFER0_WEBGL",e[e.DRAW_BUFFER1_WEBGL=34854]="DRAW_BUFFER1_WEBGL",e[e.DRAW_BUFFER2_WEBGL=34855]="DRAW_BUFFER2_WEBGL",e[e.DRAW_BUFFER3_WEBGL=34856]="DRAW_BUFFER3_WEBGL",e[e.DRAW_BUFFER4_WEBGL=34857]="DRAW_BUFFER4_WEBGL",e[e.DRAW_BUFFER5_WEBGL=34858]="DRAW_BUFFER5_WEBGL",e[e.DRAW_BUFFER6_WEBGL=34859]="DRAW_BUFFER6_WEBGL",e[e.DRAW_BUFFER7_WEBGL=34860]="DRAW_BUFFER7_WEBGL",e[e.DRAW_BUFFER8_WEBGL=34861]="DRAW_BUFFER8_WEBGL",e[e.DRAW_BUFFER9_WEBGL=34862]="DRAW_BUFFER9_WEBGL",e[e.DRAW_BUFFER10_WEBGL=34863]="DRAW_BUFFER10_WEBGL",e[e.DRAW_BUFFER11_WEBGL=34864]="DRAW_BUFFER11_WEBGL",e[e.DRAW_BUFFER12_WEBGL=34865]="DRAW_BUFFER12_WEBGL",e[e.DRAW_BUFFER13_WEBGL=34866]="DRAW_BUFFER13_WEBGL",e[e.DRAW_BUFFER14_WEBGL=34867]="DRAW_BUFFER14_WEBGL",e[e.DRAW_BUFFER15_WEBGL=34868]="DRAW_BUFFER15_WEBGL",e[e.MAX_COLOR_ATTACHMENTS_WEBGL=36063]="MAX_COLOR_ATTACHMENTS_WEBGL",e[e.MAX_DRAW_BUFFERS_WEBGL=34852]="MAX_DRAW_BUFFERS_WEBGL",e[e.VERTEX_ARRAY_BINDING_OES=34229]="VERTEX_ARRAY_BINDING_OES",e[e.QUERY_COUNTER_BITS_EXT=34916]="QUERY_COUNTER_BITS_EXT",e[e.CURRENT_QUERY_EXT=34917]="CURRENT_QUERY_EXT",e[e.QUERY_RESULT_EXT=34918]="QUERY_RESULT_EXT",e[e.QUERY_RESULT_AVAILABLE_EXT=34919]="QUERY_RESULT_AVAILABLE_EXT",e[e.TIME_ELAPSED_EXT=35007]="TIME_ELAPSED_EXT",e[e.TIMESTAMP_EXT=36392]="TIMESTAMP_EXT",e[e.GPU_DISJOINT_EXT=36795]="GPU_DISJOINT_EXT"})(Xe||(Xe={}));var _a;(function(e){e[e.Buffer=0]="Buffer",e[e.Texture=1]="Texture",e[e.RenderTarget=2]="RenderTarget",e[e.Sampler=3]="Sampler",e[e.Program=4]="Program",e[e.Bindings=5]="Bindings",e[e.InputLayout=6]="InputLayout",e[e.RenderPipeline=7]="RenderPipeline",e[e.ComputePipeline=8]="ComputePipeline",e[e.Readback=9]="Readback",e[e.QueryPool=10]="QueryPool"})(_a||(_a={}));var Ui;(function(e){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"})(Ui||(Ui={}));var Nm;(function(e){e[e.CCW=2305]="CCW",e[e.CW=2304]="CW"})(Nm||(Nm={}));var jl;(function(e){e[e.NONE=0]="NONE",e[e.FRONT=1]="FRONT",e[e.BACK=2]="BACK",e[e.FRONT_AND_BACK=3]="FRONT_AND_BACK"})(jl||(jl={}));var $i;(function(e){e[e.ZERO=0]="ZERO",e[e.ONE=1]="ONE",e[e.SRC=768]="SRC",e[e.ONE_MINUS_SRC=769]="ONE_MINUS_SRC",e[e.DST=774]="DST",e[e.ONE_MINUS_DST=775]="ONE_MINUS_DST",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.CONST=32769]="CONST",e[e.ONE_MINUS_CONSTANT=32770]="ONE_MINUS_CONSTANT",e[e.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE"})($i||($i={}));var iu;(function(e){e[e.ADD=32774]="ADD",e[e.SUBSTRACT=32778]="SUBSTRACT",e[e.REVERSE_SUBSTRACT=32779]="REVERSE_SUBSTRACT",e[e.MIN=32775]="MIN",e[e.MAX=32776]="MAX"})(iu||(iu={}));var _l;(function(e){e[e.CLAMP_TO_EDGE=0]="CLAMP_TO_EDGE",e[e.REPEAT=1]="REPEAT",e[e.MIRRORED_REPEAT=2]="MIRRORED_REPEAT"})(_l||(_l={}));var rs;(function(e){e[e.POINT=0]="POINT",e[e.BILINEAR=1]="BILINEAR"})(rs||(rs={}));var $s;(function(e){e[e.NO_MIP=0]="NO_MIP",e[e.NEAREST=1]="NEAREST",e[e.LINEAR=2]="LINEAR"})($s||($s={}));var Cs;(function(e){e[e.POINTS=0]="POINTS",e[e.TRIANGLES=1]="TRIANGLES",e[e.TRIANGLE_STRIP=2]="TRIANGLE_STRIP",e[e.LINES=3]="LINES",e[e.LINE_STRIP=4]="LINE_STRIP"})(Cs||(Cs={}));var no;(function(e){e[e.MAP_READ=1]="MAP_READ",e[e.MAP_WRITE=2]="MAP_WRITE",e[e.COPY_SRC=4]="COPY_SRC",e[e.COPY_DST=8]="COPY_DST",e[e.INDEX=16]="INDEX",e[e.VERTEX=32]="VERTEX",e[e.UNIFORM=64]="UNIFORM",e[e.STORAGE=128]="STORAGE",e[e.INDIRECT=256]="INDIRECT",e[e.QUERY_RESOLVE=512]="QUERY_RESOLVE"})(no||(no={}));var bf;(function(e){e[e.STATIC=1]="STATIC",e[e.DYNAMIC=2]="DYNAMIC"})(bf||(bf={}));var Rd;(function(e){e[e.VERTEX=1]="VERTEX",e[e.INSTANCE=2]="INSTANCE"})(Rd||(Rd={}));var EE;(function(e){e.LOADED="loaded"})(EE||(EE={}));var Wi;(function(e){e[e.TEXTURE_2D=0]="TEXTURE_2D",e[e.TEXTURE_2D_ARRAY=1]="TEXTURE_2D_ARRAY",e[e.TEXTURE_3D=2]="TEXTURE_3D",e[e.TEXTURE_CUBE_MAP=3]="TEXTURE_CUBE_MAP"})(Wi||(Wi={}));var Ou;(function(e){e[e.SAMPLED=1]="SAMPLED",e[e.RENDER_TARGET=2]="RENDER_TARGET",e[e.STORAGE=4]="STORAGE"})(Ou||(Ou={}));var au;(function(e){e[e.NONE=0]="NONE",e[e.RED=1]="RED",e[e.GREEN=2]="GREEN",e[e.BLUE=4]="BLUE",e[e.ALPHA=8]="ALPHA",e[e.RGB=7]="RGB",e[e.ALL=15]="ALL"})(au||(au={}));var Go;(function(e){e[e.KEEP=7680]="KEEP",e[e.ZERO=0]="ZERO",e[e.REPLACE=7681]="REPLACE",e[e.INVERT=5386]="INVERT",e[e.INCREMENT_CLAMP=7682]="INCREMENT_CLAMP",e[e.DECREMENT_CLAMP=7683]="DECREMENT_CLAMP",e[e.INCREMENT_WRAP=34055]="INCREMENT_WRAP",e[e.DECREMENT_WRAP=34056]="DECREMENT_WRAP"})(Go||(Go={}));function oN(e,r,t,n){var i=Wi.TEXTURE_2D,a=1,s=Ou.SAMPLED;return{dimension:i,format:e,width:r,height:t,depthOrArrayLayers:a,mipLevelCount:n,usage:s}}var Xo;(function(e){e[e.Float=0]="Float",e[e.Uint=1]="Uint",e[e.Sint=2]="Sint",e[e.Depth=3]="Depth"})(Xo||(Xo={}));var Av;(function(e){e[e.LOWER_LEFT=0]="LOWER_LEFT",e[e.UPPER_LEFT=1]="UPPER_LEFT"})(Av||(Av={}));var Tv;(function(e){e[e.NEGATIVE_ONE=0]="NEGATIVE_ONE",e[e.ZERO=1]="ZERO"})(Tv||(Tv={}));var r0;(function(e){e[e.OcclusionConservative=0]="OcclusionConservative"})(r0||(r0={}));var Pr;(function(e){e[e.U8=1]="U8",e[e.U16=2]="U16",e[e.U32=3]="U32",e[e.S8=4]="S8",e[e.S16=5]="S16",e[e.S32=6]="S32",e[e.F16=7]="F16",e[e.F32=8]="F32",e[e.BC1=65]="BC1",e[e.BC2=66]="BC2",e[e.BC3=67]="BC3",e[e.BC4_UNORM=68]="BC4_UNORM",e[e.BC4_SNORM=69]="BC4_SNORM",e[e.BC5_UNORM=70]="BC5_UNORM",e[e.BC5_SNORM=71]="BC5_SNORM",e[e.U16_PACKED_5551=97]="U16_PACKED_5551",e[e.U16_PACKED_565=98]="U16_PACKED_565",e[e.D24=129]="D24",e[e.D32F=130]="D32F",e[e.D24S8=131]="D24S8",e[e.D32FS8=132]="D32FS8"})(Pr||(Pr={}));var Wn;(function(e){e[e.R=1]="R",e[e.RG=2]="RG",e[e.RGB=3]="RGB",e[e.RGBA=4]="RGBA",e[e.A=5]="A"})(Wn||(Wn={}));function sN(e){return e}var wn;(function(e){e[e.None=0]="None",e[e.Normalized=1]="Normalized",e[e.sRGB=2]="sRGB",e[e.Depth=4]="Depth",e[e.Stencil=8]="Stencil",e[e.RenderTarget=16]="RenderTarget",e[e.Luminance=32]="Luminance"})(wn||(wn={}));function li(e,r,t){return e<<16|r<<8|t}var It;(function(e){e[e.ALPHA=li(Pr.U8,Wn.A,wn.None)]="ALPHA",e[e.U8_LUMINANCE=li(Pr.U8,Wn.A,wn.Luminance)]="U8_LUMINANCE",e[e.F16_LUMINANCE=li(Pr.F16,Wn.A,wn.Luminance)]="F16_LUMINANCE",e[e.F32_LUMINANCE=li(Pr.F32,Wn.A,wn.Luminance)]="F32_LUMINANCE",e[e.F16_R=li(Pr.F16,Wn.R,wn.None)]="F16_R",e[e.F16_RG=li(Pr.F16,Wn.RG,wn.None)]="F16_RG",e[e.F16_RGB=li(Pr.F16,Wn.RGB,wn.None)]="F16_RGB",e[e.F16_RGBA=li(Pr.F16,Wn.RGBA,wn.None)]="F16_RGBA",e[e.F32_R=li(Pr.F32,Wn.R,wn.None)]="F32_R",e[e.F32_RG=li(Pr.F32,Wn.RG,wn.None)]="F32_RG",e[e.F32_RGB=li(Pr.F32,Wn.RGB,wn.None)]="F32_RGB",e[e.F32_RGBA=li(Pr.F32,Wn.RGBA,wn.None)]="F32_RGBA",e[e.U8_R=li(Pr.U8,Wn.R,wn.None)]="U8_R",e[e.U8_R_NORM=li(Pr.U8,Wn.R,wn.Normalized)]="U8_R_NORM",e[e.U8_RG=li(Pr.U8,Wn.RG,wn.None)]="U8_RG",e[e.U8_RG_NORM=li(Pr.U8,Wn.RG,wn.Normalized)]="U8_RG_NORM",e[e.U8_RGB=li(Pr.U8,Wn.RGB,wn.None)]="U8_RGB",e[e.U8_RGB_NORM=li(Pr.U8,Wn.RGB,wn.Normalized)]="U8_RGB_NORM",e[e.U8_RGB_SRGB=li(Pr.U8,Wn.RGB,wn.sRGB|wn.Normalized)]="U8_RGB_SRGB",e[e.U8_RGBA=li(Pr.U8,Wn.RGBA,wn.None)]="U8_RGBA",e[e.U8_RGBA_NORM=li(Pr.U8,Wn.RGBA,wn.Normalized)]="U8_RGBA_NORM",e[e.U8_RGBA_SRGB=li(Pr.U8,Wn.RGBA,wn.sRGB|wn.Normalized)]="U8_RGBA_SRGB",e[e.U16_R=li(Pr.U16,Wn.R,wn.None)]="U16_R",e[e.U16_R_NORM=li(Pr.U16,Wn.R,wn.Normalized)]="U16_R_NORM",e[e.U16_RG_NORM=li(Pr.U16,Wn.RG,wn.Normalized)]="U16_RG_NORM",e[e.U16_RGBA_NORM=li(Pr.U16,Wn.RGBA,wn.Normalized)]="U16_RGBA_NORM",e[e.U16_RGB=li(Pr.U16,Wn.RGB,wn.None)]="U16_RGB",e[e.U32_R=li(Pr.U32,Wn.R,wn.None)]="U32_R",e[e.U32_RG=li(Pr.U32,Wn.RG,wn.None)]="U32_RG",e[e.S8_R=li(Pr.S8,Wn.R,wn.None)]="S8_R",e[e.S8_R_NORM=li(Pr.S8,Wn.R,wn.Normalized)]="S8_R_NORM",e[e.S8_RG_NORM=li(Pr.S8,Wn.RG,wn.Normalized)]="S8_RG_NORM",e[e.S8_RGB_NORM=li(Pr.S8,Wn.RGB,wn.Normalized)]="S8_RGB_NORM",e[e.S8_RGBA_NORM=li(Pr.S8,Wn.RGBA,wn.Normalized)]="S8_RGBA_NORM",e[e.S16_R=li(Pr.S16,Wn.R,wn.None)]="S16_R",e[e.S16_RG=li(Pr.S16,Wn.RG,wn.None)]="S16_RG",e[e.S16_RG_NORM=li(Pr.S16,Wn.RG,wn.Normalized)]="S16_RG_NORM",e[e.S16_RGB_NORM=li(Pr.S16,Wn.RGB,wn.Normalized)]="S16_RGB_NORM",e[e.S16_RGBA=li(Pr.S16,Wn.RGBA,wn.None)]="S16_RGBA",e[e.S16_RGBA_NORM=li(Pr.S16,Wn.RGBA,wn.Normalized)]="S16_RGBA_NORM",e[e.S32_R=li(Pr.S32,Wn.R,wn.None)]="S32_R",e[e.U16_RGBA_5551=li(Pr.U16_PACKED_5551,Wn.RGBA,wn.Normalized)]="U16_RGBA_5551",e[e.U16_RGB_565=li(Pr.U16_PACKED_565,Wn.RGB,wn.Normalized)]="U16_RGB_565",e[e.BC1=li(Pr.BC1,Wn.RGBA,wn.Normalized)]="BC1",e[e.BC1_SRGB=li(Pr.BC1,Wn.RGBA,wn.Normalized|wn.sRGB)]="BC1_SRGB",e[e.BC2=li(Pr.BC2,Wn.RGBA,wn.Normalized)]="BC2",e[e.BC2_SRGB=li(Pr.BC2,Wn.RGBA,wn.Normalized|wn.sRGB)]="BC2_SRGB",e[e.BC3=li(Pr.BC3,Wn.RGBA,wn.Normalized)]="BC3",e[e.BC3_SRGB=li(Pr.BC3,Wn.RGBA,wn.Normalized|wn.sRGB)]="BC3_SRGB",e[e.BC4_UNORM=li(Pr.BC4_UNORM,Wn.R,wn.Normalized)]="BC4_UNORM",e[e.BC4_SNORM=li(Pr.BC4_SNORM,Wn.R,wn.Normalized)]="BC4_SNORM",e[e.BC5_UNORM=li(Pr.BC5_UNORM,Wn.RG,wn.Normalized)]="BC5_UNORM",e[e.BC5_SNORM=li(Pr.BC5_SNORM,Wn.RG,wn.Normalized)]="BC5_SNORM",e[e.D24=li(Pr.D24,Wn.R,wn.Depth)]="D24",e[e.D24_S8=li(Pr.D24S8,Wn.RG,wn.Depth|wn.Stencil)]="D24_S8",e[e.D32F=li(Pr.D32F,Wn.R,wn.Depth)]="D32F",e[e.D32F_S8=li(Pr.D32FS8,Wn.RG,wn.Depth|wn.Stencil)]="D32F_S8",e[e.U8_RGB_RT=li(Pr.U8,Wn.RGB,wn.RenderTarget|wn.Normalized)]="U8_RGB_RT",e[e.U8_RGBA_RT=li(Pr.U8,Wn.RGBA,wn.RenderTarget|wn.Normalized)]="U8_RGBA_RT",e[e.U8_RGBA_RT_SRGB=li(Pr.U8,Wn.RGBA,wn.RenderTarget|wn.Normalized|wn.sRGB)]="U8_RGBA_RT_SRGB"})(It||(It={}));function n0(e){return e>>>8&255}function sh(e){return e>>>16&255}function wv(e){return e&255}function SE(e){switch(e){case Pr.F32:case Pr.U32:case Pr.S32:return 4;case Pr.U16:case Pr.S16:case Pr.F16:return 2;case Pr.U8:case Pr.S8:return 1;default:throw new Error("whoops")}}function AE(e){return SE(sh(e))}function uN(e){return n0(e)}function t4(e){var r=SE(sh(e)),t=n0(e);return r*t}function lN(e,r){return e&4294967040|r}function cN(e,r){return e&4294902015|r<<8}function TE(e){var r=wv(e);if(r&wn.Depth)return Xo.Depth;if(r&wn.Normalized)return Xo.Float;var t=sh(e);if(t===Pr.F16||t===Pr.F32)return Xo.Float;if(t===Pr.U8||t===Pr.U16||t===Pr.U32)return Xo.Uint;if(t===Pr.S8||t===Pr.S16||t===Pr.S32)return Xo.Sint;throw new Error("whoops")}function Oi(e,r){if(r===void 0&&(r=""),!e)throw new Error("Assert fail: ".concat(r))}function Md(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 Um(e,r,t,n){return n===void 0&&(n=1),{r:e,g:r,b:t,a:n}}var Ay=Um(0,0,0,0),fN=Um(0,0,0,1),r4=Um(1,1,1,0),hN=Um(1,1,1,1),Cv=!0;function pN(e,r){r===void 0&&(r=Cv),r&&(e[10]=-e[10],e[14]=-e[14])}function dN(e,r){r===void 0&&(r=Cv),r&&(e[10]=-e[10],e[14]=-e[14]+1)}function n4(e,r){if(r===void 0&&(r=Cv),r)switch(e){case Ui.LESS:return Ui.GREATER;case Ui.LEQUAL:return Ui.GEQUAL;case Ui.GEQUAL:return Ui.LEQUAL;case Ui.GREATER:return Ui.LESS;default:return e}else return e}function vN(e,r){return r===void 0&&(r=Cv),r?1-e:e}function mN(e,r){return r===void 0&&(r=Cv),r?-e:e}function gN(e,r,t,n){if(n===void 0&&(n=Cv),t=n4(t,n),t===Ui.LESS)return er;if(t===Ui.GEQUAL)return e>=r;throw new Error("whoops")}function i0(e){return!!(e&&!(e&e-1))}function Rv(e,r){return e!=null?e:r}function i4(e){return e===void 0?null:e}function yN(e,r,t){e.length=r,e.fill(t)}function a0(e,r){var t=r-1;return e+t&~t}function _N(e,r){return((e+r-1)/r|0)*r}function a4(e,r,t){for(var n=0,i=e.length;n>>1),s=t(r,e[a]);s<0?i=a:n=a+1}return n}function xN(e,r,t){var n=a4(e,r,t);e.splice(n,0,r)}function bN(e,r,t){return t?e|=r:e&=~r,e}function o4(e,r){for(var t=new Array(e),n=0;n-1;if(f=f.replace(";","").replace("[","").trim(),!l.startsWith("#")){if(l){var _=t.find(function(M){return l===M.type});if(_)if(d)for(var b=function(M){_.uniforms.forEach(function(P){r.push("".concat(f,"[").concat(M,"].").concat(P.name))})},T=0;T<5;T++)b(T);else _.uniforms.forEach(function(M){r.push("".concat(f,".").concat(M.name))})}f&&r.push(f)}}),""}),r}function UE(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 k4(e){var r="",t=e;return[t,r]}function Fp(e,r,t,n,i){var a;n===void 0&&(n=null),i===void 0&&(i=!0);var s=e.glslVersion==="#version 100",l=r==="frag"&&((a=t.match(/^\s*layout\(location\s*=\s*\d*\)\s*out\s+vec4\s*(.*);$/gm))===null||a===void 0?void 0:a.length)>1,f=t.replace(`\r +`,` +`).split(` +`).map(function(st){return st.replace(/[/][/].*$/,"")}).filter(function(st){var at=!st||/^\s+$/.test(st);return!at}),d="";n!==null&&(d=Object.keys(n).map(function(st){return zm(st,n[st])}).join(` +`));var _=f.find(function(st){return st.startsWith("precision")})||"precision mediump float;",b=i?f.filter(function(st){return!st.startsWith("precision")}).join(` +`):f.join(` +`),T="";if(e.viewportOrigin===Av.UPPER_LEFT&&(T+="".concat(zm("VIEWPORT_ORIGIN_TL","1"),` +`)),e.clipSpaceNearZ===Tv.ZERO&&(T+="".concat(zm("CLIPSPACE_NEAR_ZERO","1"),` +`)),e.explicitBindingLocations){var M=0,P=0,D=0;b=b.replace(/^\s*(layout\((.*)\))?\s*uniform(.+{)$/gm,function(st,at,At,Wt){var Sr=At?"".concat(At,", "):"";return"layout(".concat(Sr,"set = ").concat(M,", binding = ").concat(P++,") uniform ").concat(Wt)}),M++,P=0,Oi(e.separateSamplerTextures),b=b.replace(/^\s*(layout\((.*)\))?\s*uniform sampler(\w+) (.*);/gm,function(st,at,At,Wt,Sr){var _r=UE(At);_r===null&&(_r=P++);var Gr=(0,Pn.CR)(k4(Wt),2),Cn=Gr[0],wi=Gr[1];return r==="frag"?` +layout(set = `.concat(M,", binding = ").concat(_r*2+0,") uniform texture").concat(Cn," T_").concat(Sr,`; +layout(set = `).concat(M,", binding = ").concat(_r*2+1,") uniform sampler").concat(wi," S_").concat(Sr,";").trim():""}),b=b.replace(r==="frag"?/^\s*\b(varying|in)\b/gm:/^\s*\b(varying|out)\b/gm,function(st,at){return"layout(location = ".concat(D++,") ").concat(at)}),T+="".concat(zm("gl_VertexID","gl_VertexIndex"),` +`),T+="".concat(zm("gl_InstanceID","gl_InstanceIndex"),` +`),_=_.replace(/^precision (.*) sampler(.*);$/gm,"")}else{var G=0;b=b.replace(/^\s*(layout\((.*)\))?\s*uniform sampler(\w+) (.*);/gm,function(st,at,At,Wt,Sr){var _r=UE(At);return _r===null&&(_r=G++),"uniform sampler".concat(Wt," ").concat(Sr,"; // BINDING=").concat(_r)})}if(e.separateSamplerTextures)b=b.replace(/\bSAMPLER_(\w+)\((.*?)\)/g,function(st,at,At){return"sampler".concat(at,"(T_").concat(At,", S_").concat(At,")")}),b=b.replace(/\bTEXTURE\((.*?)\)/g,function(st,at){return"T_".concat(at)});else{var q=[];b=b.replace(/\bSAMPLER_(\w+)\((.*?)\)/g,function(st,at,At){return q.push([At,at]),At}),s&&q.forEach(function(st){var at=(0,Pn.CR)(st,2),At=at[0],Wt=at[1];b=b.replace(new RegExp("texture\\(".concat(At),"g"),function(){return"texture".concat(Wt,"(").concat(At)})}),b=b.replace(/\bTEXTURE\((.*?)\)/g,function(st,at){return at})}var se="".concat(s?"":e.glslVersion,` +`).concat(s&&l?`#extension GL_EXT_draw_buffers : require +`:"",` +`).concat(s&&r==="frag"?`#extension GL_OES_standard_derivatives : enable +`:"").concat(i?_:"",` +`).concat(T||"").concat(d?d+` +`:"",` +`).concat(b,` +`).trim();if(e.explicitBindingLocations&&r==="frag"&&(se=se.replace(/^\b(out)\b/g,function(st,at){return"layout(location = 0) ".concat(at)})),s){if(r==="frag"&&(se=se.replace(/^\s*in\s+(\S+)\s*(.*);$/gm,function(st,at,At){return"varying ".concat(at," ").concat(At,`; +`)})),r==="vert"&&(se=se.replace(/^\s*out\s+(\S+)\s*(.*);$/gm,function(st,at,At){return"varying ".concat(at," ").concat(At,`; +`)}),se=se.replace(/^\s*layout\(location\s*=\s*\S*\)\s*in\s+(\S+)\s*(.*);$/gm,function(st,at,At){return"attribute ".concat(at," ").concat(At,`; +`)})),se=se.replace(/\s*uniform\s*.*\s*{((?:\s*.*\s*)*?)};/g,function(st,at){return at.trim().replace(/^.*$/gm,function(At){var Wt=At.trim();return Wt.startsWith("#")?Wt:At?"uniform ".concat(Wt):""})}),r==="frag")if(l){var Se=[];se=se.replace(/^\s*layout\(location\s*=\s*\d*\)\s*out\s+vec4\s*(.*);$/gm,function(st,at){return Se.push(at),"vec4 ".concat(at,`; +`)});var Ve=se.lastIndexOf("}");se=se.substring(0,Ve)+` + `.concat(Se.map(function(st,at){return"gl_FragData[".concat(at,"] = ").concat(st,`; + `)}).join(` +`))+se.substring(Ve)}else{var nt;if(se=se.replace(/^\s*out\s+(\S+)\s*(.*);$/gm,function(st,at,At){return nt=At,"".concat(at," ").concat(At,`; +`)}),nt){var Ve=se.lastIndexOf("}");se=se.substring(0,Ve)+` + gl_FragColor = vec4(`.concat(nt,`); +`)+se.substring(Ve)}}se=se.replace(/^\s*layout\((.*)\)/gm,"")}return se}function kN(e,r,t,n){n===void 0&&(n=null);var i=Fp(e,"vert",r,n),a=Fp(e,"frag",t,n);return{vert:r,frag:t,preprocessedVert:i,preprocessedFrag:a}}var Ef=function(e){(0,Pn.ZT)(r,e);function r(t){var n=t.id,i=t.device,a=e.call(this)||this;return a.id=n,a.device=i,a.device.resourceCreationTracker!==null&&a.device.resourceCreationTracker.trackResourceCreated(a),a}return r.prototype.destroy=function(){this.device.resourceCreationTracker!==null&&this.device.resourceCreationTracker.trackResourceDestroyed(this)},r}(bE.Z),D4=function(e){(0,Pn.ZT)(r,e);function r(t){var n=t.id,i=t.device,a=t.descriptor,s=e.call(this,{id:n,device:i})||this;s.type=_a.Bindings;var l=a.uniformBufferBindings,f=a.samplerBindings;return s.uniformBufferBindings=l||[],s.samplerBindings=f||[],s.bindingLayouts=s.createBindingLayouts(),s}return r.prototype.createBindingLayouts=function(){var t=0,n=0,i=[],a=this.uniformBufferBindings.length,s=this.samplerBindings.length;return i.push({firstUniformBuffer:t,numUniformBuffers:a,firstSampler:n,numSamplers:s}),t+=a,n+=s,{numUniformBuffers:t,numSamplers:n,bindingLayoutTables:i}},r}(Ef);function Vn(e){return typeof WebGL2RenderingContext!="undefined"&&e instanceof WebGL2RenderingContext?!0:!!(e&&e._version===2)}function zE(e){var r=sh(e);switch(r){case Pr.BC1:case Pr.BC2:case Pr.BC3:case Pr.BC4_UNORM:case Pr.BC4_SNORM:case Pr.BC5_UNORM:case Pr.BC5_SNORM:return!0;default:return!1}}function ZE(e){var r=wv(e);if(r&wn.Normalized)return!1;var t=sh(e);return t===Pr.S8||t===Pr.S16||t===Pr.S32||t===Pr.U8||t===Pr.U16||t===Pr.U32}function L4(e){switch(e){case bf.STATIC:return Xe.STATIC_DRAW;case bf.DYNAMIC:return Xe.DYNAMIC_DRAW}}function VE(e){if(e&no.INDEX)return Xe.ELEMENT_ARRAY_BUFFER;if(e&no.VERTEX)return Xe.ARRAY_BUFFER;if(e&no.UNIFORM)return Xe.UNIFORM_BUFFER}function B4(e){switch(e){case Cs.TRIANGLES:return Xe.TRIANGLES;case Cs.POINTS:return Xe.POINTS;case Cs.TRIANGLE_STRIP:return Xe.TRIANGLE_STRIP;case Cs.LINES:return Xe.LINES;case Cs.LINE_STRIP:return Xe.LINE_STRIP;default:throw new Error("Unknown primitive topology mode")}}function F4(e){switch(e){case Pr.U8:return Xe.UNSIGNED_BYTE;case Pr.U16:return Xe.UNSIGNED_SHORT;case Pr.U32:return Xe.UNSIGNED_INT;case Pr.S8:return Xe.BYTE;case Pr.S16:return Xe.SHORT;case Pr.S32:return Xe.INT;case Pr.F16:return Xe.HALF_FLOAT;case Pr.F32:return Xe.FLOAT;default:throw new Error("whoops")}}function N4(e){switch(e){case Wn.R:return 1;case Wn.RG:return 2;case Wn.RGB:return 3;case Wn.RGBA:return 4;default:return 1}}function U4(e){var r=sh(e),t=n0(e),n=wv(e),i=F4(r),a=N4(t),s=!!(n&wn.Normalized);return{size:a,type:i,normalized:s}}function z4(e){switch(e){case It.U8_R:return Xe.UNSIGNED_BYTE;case It.U16_R:return Xe.UNSIGNED_SHORT;case It.U32_R:return Xe.UNSIGNED_INT;default:throw new Error("whoops")}}function Zm(e){switch(e){case _l.CLAMP_TO_EDGE:return Xe.CLAMP_TO_EDGE;case _l.REPEAT:return Xe.REPEAT;case _l.MIRRORED_REPEAT:return Xe.MIRRORED_REPEAT;default:throw new Error("whoops")}}function l0(e,r){if(r===$s.LINEAR&&e===rs.BILINEAR)return Xe.LINEAR_MIPMAP_LINEAR;if(r===$s.LINEAR&&e===rs.POINT)return Xe.NEAREST_MIPMAP_LINEAR;if(r===$s.NEAREST&&e===rs.BILINEAR)return Xe.LINEAR_MIPMAP_NEAREST;if(r===$s.NEAREST&&e===rs.POINT)return Xe.NEAREST_MIPMAP_NEAREST;if(r===$s.NO_MIP&&e===rs.BILINEAR)return Xe.LINEAR;if(r===$s.NO_MIP&&e===rs.POINT)return Xe.NEAREST;throw new Error("Unknown texture filter mode")}function Pv(e,r){r===void 0&&(r=0);var t=e;return t.gl_buffer_pages[r/t.pageByteSize|0]}function Ov(e){var r=e;return r.gl_texture}function Cy(e){var r=e;return r.gl_sampler}function Vm(e,r){e.name=r,e.__SPECTOR_Metadata={name:r}}function jE(e,r){for(var t=[];;){var n=r.exec(e);if(!n)break;t.push(n)}return t}function Np(e){return e.blendMode==iu.ADD&&e.blendSrcFactor==$i.ONE&&e.blendDstFactor===$i.ZERO}function Z4(e){switch(e){case r0.OcclusionConservative:return Xe.ANY_SAMPLES_PASSED_CONSERVATIVE;default:throw new Error("whoops")}}function V4(e){if(e===Wi.TEXTURE_2D)return Xe.TEXTURE_2D;if(e===Wi.TEXTURE_2D_ARRAY)return Xe.TEXTURE_2D_ARRAY;if(e===Wi.TEXTURE_CUBE_MAP)return Xe.TEXTURE_CUBE_MAP;if(e===Wi.TEXTURE_3D)return Xe.TEXTURE_3D;throw new Error("whoops")}function Ry(e,r,t,n){return!(e%t!==0||r%n!==0)}var j4=function(e){(0,Pn.ZT)(r,e);function r(t){var n=t.id,i=t.device,a=t.descriptor,s=e.call(this,{id:n,device:i})||this;s.type=_a.Buffer;var l=a.viewOrSize,f=a.usage,d=a.hint,_=d===void 0?bf.STATIC:d,b=i.uniformBufferMaxPageByteSize,T=i.gl,M=f&no.UNIFORM;M||(Vn(T)?T.bindVertexArray(null):i.OES_vertex_array_object.bindVertexArrayOES(null));var P=(0,Sv.Z)(l)?a0(l,4):a0(l.byteLength,4);s.gl_buffer_pages=[];var D;if(M){for(var G=P;G>0;)s.gl_buffer_pages.push(s.createBufferPage(Math.min(G,b),f,_)),G-=b;D=b}else s.gl_buffer_pages.push(s.createBufferPage(P,f,_)),D=P;return s.pageByteSize=D,s.byteSize=P,s.usage=f,s.gl_target=VE(f),(0,Sv.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,a){i===void 0&&(i=0),a===void 0&&(a=n.byteLength-i);for(var s=this.device.gl,l=this.pageByteSize,f=t+a,d=t,_=t%l;d=1,!s){_=l.device.ensureResourceExists(f.createTexture());var T=l.device.translateTextureType(a.format),M=l.device.translateTextureInternalFormat(a.format);if(l.device.setActiveTexture(f.TEXTURE0),l.device.currentTextures[0]=null,l.preprocessImage(),a.dimension===Wi.TEXTURE_2D){if(d=Xe.TEXTURE_2D,f.bindTexture(d,_),l.immutable)if(Vn(f))f.texStorage2D(d,b,M,a.width,a.height);else{var P=(M===Xe.DEPTH_COMPONENT||l.isNPOT(),0);(l.format===It.D32F||l.format===It.D24_S8)&&!Vn(f)&&!i.WEBGL_depth_texture||(f.texImage2D(d,P,M,a.width,a.height,0,M,T,null),l.mipmaps&&(l.mipmaps=!1,f.texParameteri(Xe.TEXTURE_2D,Xe.TEXTURE_MIN_FILTER,Xe.LINEAR),f.texParameteri(Xe.TEXTURE_2D,Xe.TEXTURE_WRAP_S,Xe.CLAMP_TO_EDGE),f.texParameteri(Xe.TEXTURE_2D,Xe.TEXTURE_WRAP_T,Xe.CLAMP_TO_EDGE)))}Oi(a.depthOrArrayLayers===1)}else if(a.dimension===Wi.TEXTURE_2D_ARRAY)d=Xe.TEXTURE_2D_ARRAY,f.bindTexture(d,_),l.immutable&&Vn(f)&&f.texStorage3D(d,b,M,a.width,a.height,a.depthOrArrayLayers);else if(a.dimension===Wi.TEXTURE_3D)d=Xe.TEXTURE_3D,f.bindTexture(d,_),l.immutable&&Vn(f)&&f.texStorage3D(d,b,M,a.width,a.height,a.depthOrArrayLayers);else if(a.dimension===Wi.TEXTURE_CUBE_MAP)d=Xe.TEXTURE_CUBE_MAP,f.bindTexture(d,_),l.immutable&&Vn(f)&&f.texStorage2D(d,b,M,a.width,a.height),Oi(a.depthOrArrayLayers===6);else throw new Error("whoops")}return l.gl_texture=_,l.gl_target=d,l.mipLevelCount=b,l}return r.prototype.setImageData=function(t,n){n===void 0&&(n=0);var i=this.device.gl;zE(this.format);var a=this.gl_target===Xe.TEXTURE_3D||this.gl_target===Xe.TEXTURE_2D_ARRAY,s=this.gl_target===Xe.TEXTURE_CUBE_MAP,l=I4(t[0]);this.device.setActiveTexture(i.TEXTURE0),this.device.currentTextures[0]=null;var f=t[0],d,_;l?(d=this.width,_=this.height):(d=f.width,_=f.height,this.width=d,this.height=_),i.bindTexture(this.gl_target,this.gl_texture);var b=this.device.translateTextureFormat(this.format),T=Vn(i)?this.device.translateInternalTextureFormat(this.format):b,M=this.device.translateTextureType(this.format);this.preprocessImage();for(var P=0;P1){var n=sh(t.format);if(n===Pr.BC1)for(var i=t.width,a=t.height,s=0;s1?l.renderbufferStorageMultisample(Xe.RENDERBUFFER,T,D,d,_):l.renderbufferStorage(Xe.RENDERBUFFER,D,d,_)}return s.format=f,s.width=d,s.height=_,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}(Ef),Hl;(function(e){e[e.NeedsCompile=0]="NeedsCompile",e[e.Compiling=1]="Compiling",e[e.NeedsBind=2]="NeedsBind",e[e.ReadyToUse=3]="ReadyToUse"})(Hl||(Hl={}));var G4=function(e){(0,Pn.ZT)(r,e);function r(t,n){var i=t.id,a=t.device,s=t.descriptor,l=e.call(this,{id:i,device:a})||this;l.rawVertexGLSL=n,l.type=_a.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=Hl.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(){Oi(this.compileState===Hl.NeedsCompile);var t=this.descriptor,n=t.vertex,i=t.fragment,a=this.device.gl;n!=null&&n.glsl&&(i!=null&&i.glsl)&&(this.gl_shader_vert=this.compileShader(n.postprocess?n.postprocess(n.glsl):n.glsl,a.VERTEX_SHADER),this.gl_shader_frag=this.compileShader(i.postprocess?i.postprocess(i.glsl):i.glsl,a.FRAGMENT_SHADER),a.attachShader(this.gl_program,this.gl_shader_vert),a.attachShader(this.gl_program,this.gl_shader_frag),a.linkProgram(this.gl_program),this.compileState=Hl.Compiling,Vn(a)||(this.readUniformLocationsFromLinkedProgram(),this.readAttributesFromLinkedProgram()))},r.prototype.readAttributesFromLinkedProgram=function(){for(var t,n=this.device.gl,i=n.getProgramParameter(this.gl_program,n.ACTIVE_ATTRIBUTES),a=P4(this.descriptor.vertex.glsl),s=O4(this.rawVertexGLSL,a),l=function(_){var b=n.getActiveAttrib(f.gl_program,_),T=b.name,M=b.type,P=b.size,D=n.getAttribLocation(f.gl_program,T),G=(t=s.find(function(q){return q.name===T}))===null||t===void 0?void 0:t.location;D>=0&&!(0,Dp.Z)(G)&&(f.attributes[G]={name:T,location:D,type:M,size:P})},f=this,d=0;d1)for(var f=0;f1&&f.device.EXT_texture_filter_anisotropic!==null&&(Oi(a.minFilter===rs.BILINEAR&&a.magFilter===rs.BILINEAR&&a.mipmapFilter===$s.LINEAR),d.samplerParameterf(_,f.device.EXT_texture_filter_anisotropic.TEXTURE_MAX_ANISOTROPY_EXT,b)),f.gl_sampler=_}else f.descriptor=a;return f}return r.prototype.setTextureParameters=function(t,n,i){var a,s=this.device.gl,l=this.descriptor;this.isNPOT(n,i)?s.texParameteri(Xe.TEXTURE_2D,Xe.TEXTURE_MIN_FILTER,Xe.LINEAR):s.texParameteri(t,Xe.TEXTURE_MIN_FILTER,l0(l.minFilter,l.mipmapFilter)),s.texParameteri(Xe.TEXTURE_2D,Xe.TEXTURE_WRAP_S,Zm(l.addressModeU)),s.texParameteri(Xe.TEXTURE_2D,Xe.TEXTURE_WRAP_T,Zm(l.addressModeV)),s.texParameteri(t,Xe.TEXTURE_MAG_FILTER,l0(l.magFilter,$s.NO_MIP));var f=(a=l.maxAnisotropy)!==null&&a!==void 0?a:1;f>1&&this.device.EXT_texture_filter_anisotropic!==null&&(Oi(l.minFilter===rs.BILINEAR&&l.magFilter===rs.BILINEAR&&l.mipmapFilter===$s.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(Cy(this))},r.prototype.isNPOT=function(t,n){return!i0(t)||!i0(n)},r}(Ef),J4=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}(),HE=65536,ek=/uniform(?:\s+)(\w+)(?:\s?){([^]*?)}/g,tk=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=Mv(Id),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=Av.LOWER_LEFT,this.clipSpaceNearZ=Tv.NEGATIVE_ONE,this.supportMRT=!1,this.inBlitRenderPass=!1,this.supportedSampleCounts=[],this.occlusionQueriesRecommended=!1,this.computeShadersSupported=!1,this.gl=r,this.contextAttributes=Md(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 My({id:this.getNextUniqueId(),device:this,descriptor:{width:0,height:0,depthOrArrayLayers:1,dimension:Wi.TEXTURE_2D,mipLevelCount:1,usage:Ou.RENDER_TARGET,format:this.contextAttributes.alpha===!1?It.U8_RGB_RT:It.U8_RGBA_RT},fake:!0}),this.scTexture.formatKind=Xo.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(Wi.TEXTURE_2D,Xo.Float),this.fallbackTexture2DDepth=this.createFallbackTexture(Wi.TEXTURE_2D,Xo.Depth),this.fallbackVertexBuffer=this.createBuffer({viewOrSize:1,usage:no.VERTEX,hint:bf.STATIC}),Vn(r)&&(this.fallbackTexture2DArray=this.createFallbackTexture(Wi.TEXTURE_2D_ARRAY,Xo.Float),this.fallbackTexture3D=this.createFallbackTexture(Wi.TEXTURE_3D,Xo.Float),this.fallbackTextureCube=this.createFallbackTexture(Wi.TEXTURE_CUBE_MAP,Xo.Float)),this.currentMegaState.depthCompare=Ui.LESS,this.currentMegaState.depthWrite=!1,this.currentMegaState.attachmentsState[0].channelWriteMask=au.ALL,r.enable(r.DEPTH_TEST),r.enable(r.STENCIL_TEST),this.checkLimits(),t.shaderDebug&&(this.shaderDebug=!0),t.trackResources&&(this.resourceCreationTracker=new K4)}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===Wi.TEXTURE_CUBE_MAP?6:1,i=t===Xo.Depth?It.D32F:It.U8_RGBA_NORM,a=this.createTexture({dimension:r,format:i,usage:Ou.SAMPLED,width:1,height:1,depthOrArrayLayers:n,mipLevelCount:1});return t===Xo.Float&&a.setImageData([new Uint8Array(4*n)]),Ov(a)},e.prototype.getNextUniqueId=function(){return++this.resourceUniqueId},e.prototype.checkLimits=function(){var r=this.gl;if(this.maxVertexAttribs=r.getParameter(Xe.MAX_VERTEX_ATTRIBS),Vn(r)){this.uniformBufferMaxPageByteSize=Math.min(r.getParameter(Xe.MAX_UNIFORM_BLOCK_SIZE),HE),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,Pn.ev)([],(0,Pn.CR)(t),!1):[],this.occlusionQueriesRecommended=!0}else this.uniformBufferWordAlignment=64,this.uniformBufferMaxPageByteSize=HE;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=i4(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 It.ALPHA:return Xe.ALPHA;case It.U8_LUMINANCE:case It.F16_LUMINANCE:case It.F32_LUMINANCE:return Xe.LUMINANCE;case It.F16_R:return Xe.R16F;case It.F16_RG:return Xe.RG16F;case It.F16_RGB:return Xe.RGB16F;case It.F16_RGBA:return Xe.RGBA16F;case It.F32_R:return Xe.R32F;case It.F32_RG:return Xe.RG32F;case It.F32_RGB:return Xe.RGB32F;case It.F32_RGBA:return Vn(this.gl)?Xe.RGBA32F:t?this.WEBGL_color_buffer_float.RGBA32F_EXT:Xe.RGBA;case It.U8_R_NORM:return Xe.R8;case It.U8_RG_NORM:return Xe.RG8;case It.U8_RGB_NORM:case It.U8_RGB_RT:return Xe.RGB8;case It.U8_RGB_SRGB:return Xe.SRGB8;case It.U8_RGBA_NORM:case It.U8_RGBA_RT:return Vn(this.gl)?Xe.RGBA8:t?Xe.RGBA4:Xe.RGBA;case It.U8_RGBA:return Xe.RGBA;case It.U8_RGBA_SRGB:case It.U8_RGBA_RT_SRGB:return Xe.SRGB8_ALPHA8;case It.U16_R:return Xe.R16UI;case It.U16_R_NORM:return this.EXT_texture_norm16.R16_EXT;case It.U16_RG_NORM:return this.EXT_texture_norm16.RG16_EXT;case It.U16_RGBA_NORM:return this.EXT_texture_norm16.RGBA16_EXT;case It.U16_RGBA_5551:return Xe.RGB5_A1;case It.U16_RGB_565:return Xe.RGB565;case It.U32_R:return Xe.R32UI;case It.S8_RGBA_NORM:return Xe.RGBA8_SNORM;case It.S8_RG_NORM:return Xe.RG8_SNORM;case It.BC1:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT1_EXT;case It.BC1_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;case It.BC2:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT3_EXT;case It.BC2_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;case It.BC3:return this.WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT5_EXT;case It.BC3_SRGB:return this.WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT;case It.BC4_UNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_RED_RGTC1_EXT;case It.BC4_SNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_SIGNED_RED_RGTC1_EXT;case It.BC5_UNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_RED_GREEN_RGTC2_EXT;case It.BC5_SNORM:return this.EXT_texture_compression_rgtc.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT;case It.D32F_S8:return Vn(this.gl)?Xe.DEPTH32F_STENCIL8:this.WEBGL_depth_texture?Xe.DEPTH_STENCIL:Xe.DEPTH_COMPONENT16;case It.D24_S8:return Vn(this.gl)?Xe.DEPTH24_STENCIL8:this.WEBGL_depth_texture?Xe.DEPTH_STENCIL:Xe.DEPTH_COMPONENT16;case It.D32F:return Vn(this.gl)?Xe.DEPTH_COMPONENT32F:this.WEBGL_depth_texture?Xe.DEPTH_COMPONENT:Xe.DEPTH_COMPONENT16;case It.D24:return Vn(this.gl)?Xe.DEPTH_COMPONENT24:this.WEBGL_depth_texture?Xe.DEPTH_COMPONENT:Xe.DEPTH_COMPONENT16;default:throw new Error("whoops")}},e.prototype.translateTextureType=function(r){var t=sh(r);switch(t){case Pr.U8:return Xe.UNSIGNED_BYTE;case Pr.U16:return Xe.UNSIGNED_SHORT;case Pr.U32:return Xe.UNSIGNED_INT;case Pr.S8:return Xe.BYTE;case Pr.F16:return Xe.HALF_FLOAT;case Pr.F32:return Xe.FLOAT;case Pr.U16_PACKED_5551:return Xe.UNSIGNED_SHORT_5_5_5_1;case Pr.D32F:return Vn(this.gl)?Xe.FLOAT:this.WEBGL_depth_texture?Xe.UNSIGNED_INT:Xe.UNSIGNED_BYTE;case Pr.D24:return Vn(this.gl)?Xe.UNSIGNED_INT_24_8:this.WEBGL_depth_texture?Xe.UNSIGNED_SHORT:Xe.UNSIGNED_BYTE;case Pr.D24S8:return Vn(this.gl)?Xe.UNSIGNED_INT_24_8:this.WEBGL_depth_texture?Xe.UNSIGNED_INT_24_8_WEBGL:Xe.UNSIGNED_BYTE;case Pr.D32FS8:return Xe.FLOAT_32_UNSIGNED_INT_24_8_REV;default:throw new Error("whoops")}},e.prototype.translateInternalTextureFormat=function(r){switch(r){case It.F32_R:return Xe.R32F;case It.F32_RG:return Xe.RG32F;case It.F32_RGB:return Xe.RGB32F;case It.F32_RGBA:return Xe.RGBA32F;case It.F16_R:return Xe.R16F;case It.F16_RG:return Xe.RG16F;case It.F16_RGB:return Xe.RGB16F;case It.F16_RGBA:return Xe.RGBA16F}return this.translateTextureFormat(r)},e.prototype.translateTextureFormat=function(r){if(zE(r)||r===It.F32_LUMINANCE||r===It.U8_LUMINANCE)return this.translateTextureInternalFormat(r);var t=Vn(this.gl)||!Vn(this.gl)&&!!this.WEBGL_depth_texture;switch(r){case It.D24_S8:case It.D32F_S8:return t?Xe.DEPTH_STENCIL:Xe.RGBA;case It.D24:case It.D32F:return t?Xe.DEPTH_COMPONENT:Xe.RGBA}var n=ZE(r),i=n0(r);switch(i){case Wn.A:return Xe.ALPHA;case Wn.R:return n?Xe.RED_INTEGER:Xe.RED;case Wn.RG:return n?Xe.RG_INTEGER:Xe.RG;case Wn.RGB:return n?Xe.RGB_INTEGER:Xe.RGB;case Wn.RGBA:return Xe.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){Oi(r.compileState!==Hl.NeedsCompile),r.compileState===Hl.Compiling&&(r.compileState=Hl.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 j4({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createTexture=function(r){return new My({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createSampler=function(r){return new Q4({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createRenderTarget=function(r){return new W4({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createRenderTargetFromTexture=function(r){var t=r,n=t.format,i=t.width,a=t.height,s=t.mipLevelCount;return Oi(s===1),this.createRenderTarget({format:n,width:i,height:a,sampleCount:1,texture:r})},e.prototype.createProgram=function(r){var t,n,i,a=(t=r.vertex)===null||t===void 0?void 0:t.glsl;return!((n=r.vertex)===null||n===void 0)&&n.glsl&&(r.vertex.glsl=Fp(this.queryVendorInfo(),"vert",r.vertex.glsl)),!((i=r.fragment)===null||i===void 0)&&i.glsl&&(r.fragment.glsl=Fp(this.queryVendorInfo(),"frag",r.fragment.glsl)),this.createProgramSimple(r,a)},e.prototype.createProgramSimple=function(r,t){var n=new G4({id:this.getNextUniqueId(),device:this,descriptor:r},t);return n},e.prototype.createBindings=function(r){return new D4({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createInputLayout=function(r){return new H4({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createRenderPipeline=function(r){return new Y4({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createComputePass=function(){return new J4},e.prototype.createComputePipeline=function(r){return new q4({id:this.getNextUniqueId(),device:this,descriptor:r})},e.prototype.createReadback=function(){return new $4({id:this.getNextUniqueId(),device:this})},e.prototype.createQueryPool=function(r,t){return new X4({id:this.getNextUniqueId(),device:this,descriptor:{type:r,elemCount:t}})},e.prototype.formatRenderPassDescriptor=function(r){var t,n,i,a,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 d=0;d=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(s4(t));var a=n.getExtension("WEBGL_debug_shaders");a&&console.error(a.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 a=this.gl;if((0,Dp.Z)(n))a.framebufferRenderbuffer(r,t,a.RENDERBUFFER,null);else if(n.type===_a.RenderTarget)n.gl_renderbuffer!==null?a.framebufferRenderbuffer(r,t,a.RENDERBUFFER,n.gl_renderbuffer):n.texture!==null&&a.framebufferTexture2D(r,t,Xe.TEXTURE_2D,Ov(n.texture),i);else if(n.type===_a.Texture){var s=Ov(n);n.dimension===Wi.TEXTURE_2D?a.framebufferTexture2D(r,t,Xe.TEXTURE_2D,s,i):Vn(a)&&(n.dimension,Wi.TEXTURE_2D_ARRAY)}},e.prototype.bindFramebufferDepthStencilAttachment=function(r,t){var n=this.gl,i=(0,Dp.Z)(t)?wn.Depth|wn.Stencil:wv(t.format),a=!!(i&wn.Depth),s=!!(i&wn.Stencil);if(a&&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 a?(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),Oi(s.length>=f.numSamplers);for(var d=0;d{throw Error("TextDecoder not available")}};typeof TextDecoder!="undefined"&&WE.decode();let jm=null;function c0(){return(jm===null||jm.byteLength===0)&&(jm=new Uint8Array(Rs.memory.buffer)),jm}function f0(e,r){return e=e>>>0,WE.decode(c0().subarray(e,e+r))}const Kh=new Array(128).fill(void 0);Kh.push(void 0,null,!0,!1);let Hm=Kh.length;function nk(e){Hm===Kh.length&&Kh.push(Kh.length+1);const r=Hm;return Hm=Kh[r],Kh[r]=e,r}function h0(e){return Kh[e]}function ik(e){e<132||(Kh[e]=Hm,Hm=e)}function ak(e){const r=h0(e);return ik(e),r}let Wm=0;const p0=typeof TextEncoder!="undefined"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},ok=typeof p0.encodeInto=="function"?function(e,r){return p0.encodeInto(e,r)}:function(e,r){const t=p0.encode(e);return r.set(t),{read:e.length,written:t.length}};function Iy(e,r,t){if(t===void 0){const l=p0.encode(e),f=r(l.length,1)>>>0;return c0().subarray(f,f+l.length).set(l),Wm=l.length,f}let n=e.length,i=r(n,1)>>>0;const a=c0();let s=0;for(;s127)break;a[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=c0().subarray(i+s,i+n),f=ok(e,l);s+=f.written}return Wm=s,i}let Gm=null;function d0(){return(Gm===null||Gm.byteLength===0)&&(Gm=new Int32Array(Rs.memory.buffer)),Gm}function sk(e,r,t){let n,i;try{const l=Rs.__wbindgen_add_to_stack_pointer(-16),f=Iy(e,Rs.__wbindgen_malloc,Rs.__wbindgen_realloc),d=Wm,_=Iy(r,Rs.__wbindgen_malloc,Rs.__wbindgen_realloc),b=Wm;Rs.glsl_compile(l,f,d,_,b,t);var a=d0()[l/4+0],s=d0()[l/4+1];return n=a,i=s,f0(a,s)}finally{Rs.__wbindgen_add_to_stack_pointer(16),Rs.__wbindgen_free(n,i,1)}}class Xm{static __wrap(r){r=r>>>0;const t=Object.create(Xm.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();Rs.__wbg_wgslcomposer_free(r)}constructor(){const r=Rs.wgslcomposer_new();return Xm.__wrap(r)}wgsl_compile(r){let t,n;try{const s=Rs.__wbindgen_add_to_stack_pointer(-16),l=Iy(r,Rs.__wbindgen_malloc,Rs.__wbindgen_realloc),f=Wm;Rs.wgslcomposer_wgsl_compile(s,this.__wbg_ptr,l,f);var i=d0()[s/4+0],a=d0()[s/4+1];return t=i,n=a,f0(i,a)}finally{Rs.__wbindgen_add_to_stack_pointer(16),Rs.__wbindgen_free(t,n,1)}}}function uk(e,r){return Zy(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 lk(){const e={};return e.wbg={},e.wbg.__wbindgen_string_new=function(r,t){const n=f0(r,t);return nk(n)},e.wbg.__wbindgen_object_drop_ref=function(r){ak(r)},e.wbg.__wbg_log_1d3ae0273d8f4f8a=function(r){console.log(h0(r))},e.wbg.__wbg_log_576ca876af0d4a77=function(r,t){console.log(h0(r),h0(t))},e.wbg.__wbindgen_throw=function(r,t){throw new Error(f0(r,t))},e}function ck(e,r){return Rs=e.exports,GE.__wbindgen_wasm_module=r,Gm=null,jm=null,Rs}function GE(e){return Zy(this,null,function*(){if(Rs!==void 0)return Rs;const r=lk();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));const{instance:t,module:n}=yield uk(yield e,r);return ck(t,n)})}var Ys;(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"})(Ys||(Ys={}));var Py;(function(e){e[e.READ=1]="READ",e[e.WRITE=2]="WRITE"})(Py||(Py={}));function fk(e){var r=0;return e&Ou.SAMPLED&&(r|=Ys.TEXTURE_BINDING|Ys.COPY_DST|Ys.COPY_SRC),e&Ou.STORAGE&&(r|=Ys.TEXTURE_BINDING|Ys.STORAGE_BINDING|Ys.COPY_SRC|Ys.COPY_DST),e&Ou.RENDER_TARGET&&(r|=Ys.RENDER_ATTACHMENT|Ys.TEXTURE_BINDING|Ys.COPY_SRC|Ys.COPY_DST),r}function Oy(e){if(e===It.U8_R_NORM)return"r8unorm";if(e===It.S8_R_NORM)return"r8snorm";if(e===It.U8_RG_NORM)return"rg8unorm";if(e===It.S8_RG_NORM)return"rg8snorm";if(e===It.U32_R)return"r32uint";if(e===It.F32_R)return"r32float";if(e===It.U8_RGBA_RT)return"bgra8unorm";if(e===It.U8_RGBA_RT_SRGB)return"bgra8unorm-srgb";if(e===It.U8_RGBA_NORM)return"rgba8unorm";if(e===It.U8_RGBA_SRGB)return"rgba8unorm-srgb";if(e===It.S8_RGBA_NORM)return"rgba8snorm";if(e===It.F16_RGBA)return"rgba16float";if(e===It.F32_RGBA)return"rgba32float";if(e===It.D24)return"depth24plus";if(e===It.D24_S8)return"depth24plus-stencil8";if(e===It.D32F)return"depth32float";if(e===It.D32F_S8)return"depth32float-stencil8";if(e===It.BC1)return"bc1-rgba-unorm";if(e===It.BC1_SRGB)return"bc1-rgba-unorm-srgb";if(e===It.BC2)return"bc2-rgba-unorm";if(e===It.BC2_SRGB)return"bc2-rgba-unorm-srgb";if(e===It.BC3)return"bc3-rgba-unorm";if(e===It.BC3_SRGB)return"bc3-rgba-unorm-srgb";if(e===It.BC4_SNORM)return"bc4-r-snorm";if(e===It.BC4_UNORM)return"bc4-r-unorm";if(e===It.BC5_SNORM)return"bc5-rg-snorm";if(e===It.BC5_UNORM)return"bc5-rg-unorm";throw"whoops"}function hk(e){if(e===Wi.TEXTURE_2D)return"2d";if(e===Wi.TEXTURE_CUBE_MAP)return"2d";if(e===Wi.TEXTURE_2D_ARRAY)return"2d";if(e===Wi.TEXTURE_3D)return"3d";throw new Error("whoops")}function pk(e){if(e===Wi.TEXTURE_2D)return"2d";if(e===Wi.TEXTURE_CUBE_MAP)return"cube";if(e===Wi.TEXTURE_2D_ARRAY)return"2d-array";if(e===Wi.TEXTURE_3D)return"3d";throw new Error("whoops")}function dk(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 ky(e){if(e===_l.CLAMP_TO_EDGE)return"clamp-to-edge";if(e===_l.REPEAT)return"repeat";if(e===_l.MIRRORED_REPEAT)return"mirror-repeat";throw new Error("whoops")}function XE(e){if(e===rs.BILINEAR)return"linear";if(e===rs.POINT)return"nearest";throw new Error("whoops")}function vk(e){if(e===$s.LINEAR)return"linear";if(e===$s.NEAREST)return"nearest";if(e===$s.NO_MIP)return"nearest";throw new Error("whoops")}function kv(e){var r=e;return r.gpuBuffer}function mk(e){var r=e;return r.gpuSampler}function gk(e){var r=e;return r.querySet}function yk(e){if(e===r0.OcclusionConservative)return"occlusion";throw new Error("whoops")}function _k(e){switch(e){case Cs.TRIANGLES:return"triangle-list";case Cs.POINTS:return"point-list";case Cs.TRIANGLE_STRIP:return"triangle-strip";case Cs.LINES:return"line-list";case Cs.LINE_STRIP:return"line-strip";default:throw new Error("Unknown primitive topology mode")}}function xk(e){if(e===jl.NONE)return"none";if(e===jl.FRONT)return"front";if(e===jl.BACK)return"back";throw new Error("whoops")}function bk(e){if(e===Nm.CCW)return"ccw";if(e===Nm.CW)return"cw";throw new Error("whoops")}function Ek(e,r){return{topology:_k(e),cullMode:xk(r.cullMode),frontFace:bk(r.frontFace)}}function $E(e){if(e===$i.ZERO)return"zero";if(e===$i.ONE)return"one";if(e===$i.SRC)return"src";if(e===$i.ONE_MINUS_SRC)return"one-minus-src";if(e===$i.DST)return"dst";if(e===$i.ONE_MINUS_DST)return"one-minus-dst";if(e===$i.SRC_ALPHA)return"src-alpha";if(e===$i.ONE_MINUS_SRC_ALPHA)return"one-minus-src-alpha";if(e===$i.DST_ALPHA)return"dst-alpha";if(e===$i.ONE_MINUS_DST_ALPHA)return"one-minus-dst-alpha";if(e===$i.CONST)return"constant";if(e===$i.ONE_MINUS_CONSTANT)return"one-minus-constant";if(e===$i.SRC_ALPHA_SATURATE)return"src-alpha-saturated";throw new Error("whoops")}function Sk(e){if(e===iu.ADD)return"add";if(e===iu.SUBSTRACT)return"subtract";if(e===iu.REVERSE_SUBSTRACT)return"reverse-subtract";if(e===iu.MIN)return"min";if(e===iu.MAX)return"max";throw new Error("whoops")}function YE(e){return{operation:Sk(e.blendMode),srcFactor:$E(e.blendSrcFactor),dstFactor:$E(e.blendDstFactor)}}function qE(e){return e.blendMode===iu.ADD&&e.blendSrcFactor===$i.ONE&&e.blendDstFactor===$i.ZERO}function Ak(e){if(!(qE(e.rgbBlendState)&&qE(e.alphaBlendState)))return{color:YE(e.rgbBlendState),alpha:YE(e.alphaBlendState)}}function Tk(e,r){return{format:Oy(r),blend:Ak(e),writeMask:e.channelWriteMask}}function wk(e,r){return r.attachmentsState.map(function(t,n){return Tk(t,e[n])})}function v0(e){if(e===Ui.NEVER)return"never";if(e===Ui.LESS)return"less";if(e===Ui.EQUAL)return"equal";if(e===Ui.LEQUAL)return"less-equal";if(e===Ui.GREATER)return"greater";if(e===Ui.NOTEQUAL)return"not-equal";if(e===Ui.GEQUAL)return"greater-equal";if(e===Ui.ALWAYS)return"always";throw new Error("whoops")}function Dv(e){if(e===Go.KEEP)return"keep";if(e===Go.REPLACE)return"replace";if(e===Go.ZERO)return"zero";if(e===Go.DECREMENT_CLAMP)return"decrement-clamp";if(e===Go.DECREMENT_WRAP)return"decrement-wrap";if(e===Go.INCREMENT_CLAMP)return"increment-clamp";if(e===Go.INCREMENT_WRAP)return"increment-wrap";if(e===Go.INVERT)return"invert";throw new Error("whoops")}function Ck(e,r){if(!(0,Dp.Z)(e))return{format:Oy(e),depthWriteEnabled:!!r.depthWrite,depthCompare:v0(r.depthCompare),depthBias:r.polygonOffset?1:0,depthBiasSlopeScale:r.polygonOffset?1:0,stencilFront:{compare:v0(r.stencilFront.compare),passOp:Dv(r.stencilFront.passOp),failOp:Dv(r.stencilFront.failOp),depthFailOp:Dv(r.stencilFront.depthFailOp)},stencilBack:{compare:v0(r.stencilBack.compare),passOp:Dv(r.stencilBack.passOp),failOp:Dv(r.stencilBack.failOp),depthFailOp:Dv(r.stencilBack.depthFailOp)},stencilReadMask:1,stencilWriteMask:1}}function Rk(e){if(e!==null){if(e===It.U16_R)return"uint16";if(e===It.U32_R)return"uint32";throw new Error("whoops")}}function Mk(e){if(e===Rd.VERTEX)return"vertex";if(e===Rd.INSTANCE)return"instance";throw new Error("whoops")}function Ik(e){if(e===It.U8_R)return"uint8x2";if(e===It.U8_RG)return"uint8x2";if(e===It.U8_RGB)return"uint8x4";if(e===It.U8_RGBA)return"uint8x4";if(e===It.U8_RG_NORM)return"unorm8x2";if(e===It.U8_RGBA_NORM)return"unorm8x4";if(e===It.S8_RGB_NORM)return"snorm8x4";if(e===It.S8_RGBA_NORM)return"snorm8x4";if(e===It.U16_RG_NORM)return"unorm16x2";if(e===It.U16_RGBA_NORM)return"unorm16x4";if(e===It.S16_RG_NORM)return"snorm16x2";if(e===It.S16_RGBA_NORM)return"snorm16x4";if(e===It.S16_RG)return"uint16x2";if(e===It.F16_RG)return"float16x2";if(e===It.F16_RGBA)return"float16x4";if(e===It.F32_R)return"float32";if(e===It.F32_RG)return"float32x2";if(e===It.F32_RGB)return"float32x3";if(e===It.F32_RGBA)return"float32x4";throw"whoops"}function Pk(e){var r=sh(e);switch(r){case Pr.BC1:case Pr.BC2:case Pr.BC3:case Pr.BC4_SNORM:case Pr.BC4_UNORM:case Pr.BC5_SNORM:case Pr.BC5_UNORM:return!0;default:return!1}}function Ok(e){var r=sh(e);switch(r){case Pr.BC1:case Pr.BC2:case Pr.BC3:case Pr.BC4_SNORM:case Pr.BC4_UNORM:case Pr.BC5_SNORM:case Pr.BC5_UNORM:return 4;default:return 1}}function KE(e,r,t,n){switch(t===void 0&&(t=!1),e){case It.S8_R:case It.S8_R_NORM:case It.S8_RG_NORM:case It.S8_RGB_NORM:case It.S8_RGBA_NORM:{var i=r instanceof ArrayBuffer?new Int8Array(r):new Int8Array(r);return n&&i.set(new Int8Array(n)),i}case It.U8_R:case It.U8_R_NORM:case It.U8_RG:case It.U8_RG_NORM:case It.U8_RGB:case It.U8_RGB_NORM:case It.U8_RGB_SRGB:case It.U8_RGBA:case It.U8_RGBA_NORM:case It.U8_RGBA_SRGB:{var a=r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r);return n&&a.set(new Uint8Array(n)),a}case It.S16_R:case It.S16_RG:case It.S16_RG_NORM:case It.S16_RGB_NORM:case It.S16_RGBA:case It.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 It.U16_R:case It.U16_RGB:case It.U16_RGBA_5551:case It.U16_RGBA_NORM:case It.U16_RG_NORM:case It.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 It.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 It.U32_R:case It.U32_RG:{var d=r instanceof ArrayBuffer?new Uint32Array(r):new Uint32Array(t?r/4:r);return n&&d.set(new Uint32Array(n)),d}case It.F32_R:case It.F32_RG:case It.F32_RGB:case It.F32_RGBA:{var _=r instanceof ArrayBuffer?new Float32Array(r):new Float32Array(t?r/4:r);return n&&_.set(new Float32Array(n)),_}}var b=r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r);return n&&b.set(new Uint8Array(n)),b}function kk(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 uh=function(e){(0,Pn.ZT)(r,e);function r(t){var n=t.id,i=t.device,a=e.call(this)||this;return a.id=n,a.device=i,a}return r.prototype.destroy=function(){},r}(bE.Z),Dk=function(e){(0,Pn.ZT)(r,e);function r(t){var n=t.id,i=t.device,a=t.descriptor,s,l,f=e.call(this,{id:n,device:i})||this;f.type=_a.Bindings;var d=a.pipeline;Oi(!!d);var _=a.uniformBufferBindings,b=a.storageBufferBindings,T=a.samplerBindings,M=a.storageTextureBindings;f.numUniformBuffers=(_==null?void 0:_.length)||0;var P=[[],[],[],[]],D=0;if(_&&_.length)for(var G=0;G<_.length;G++){var q=a.uniformBufferBindings[G],se=q.binding,Se=q.size,Ve=q.offset,nt=q.buffer,st={buffer:kv(nt),offset:Ve!=null?Ve:0,size:Se};P[0].push({binding:se!=null?se:D++,resource:st})}if(T&&T.length){D=0;for(var G=0;Gb;)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,a-T)},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.gpuBuffer.destroy()},r}(uh),Bk=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(){Oi(this.gpuComputePassEncoder===null),this.gpuComputePassEncoder=this.commandEncoder.beginComputePass(this.gpuComputePassDescriptor)},e.prototype.setPipeline=function(r){var t=r,n=Md(t.gpuComputePipeline);this.gpuComputePassEncoder.setPipeline(n)},e.prototype.setBindings=function(r){var t=this,n=r;n.gpuBindGroup.forEach(function(i,a){i&&t.gpuComputePassEncoder.setBindGroup(a,n.gpuBindGroup[a])})},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}(),Fk=function(e){(0,Pn.ZT)(r,e);function r(t){var n=t.id,i=t.device,a=t.descriptor,s=e.call(this,{id:n,device:i})||this;s.type=_a.ComputePipeline,s.gpuComputePipeline=null,s.descriptor=a;var l=a.program,f=l.computeStage;if(f===null)return s;var d={layout:"auto",compute:(0,Pn.pi)({},f)};return s.gpuComputePipeline=s.device.device.createComputePipeline(d),s.name!==void 0&&(s.gpuComputePipeline.label=s.name),s}return r.prototype.getBindGroupLayout=function(t){return this.gpuComputePipeline.getBindGroupLayout(t)},r}(uh),Nk=function(e){(0,Pn.ZT)(r,e);function r(t){var n,i,a,s,l=t.id,f=t.device,d=t.descriptor,_=e.call(this,{id:l,device:f})||this;_.type=_a.InputLayout;var b=[];try{for(var T=(0,Pn.XA)(d.vertexBufferDescriptors),M=T.next();!M.done;M=T.next()){var P=M.value,D=P.arrayStride,G=P.stepMode,q=P.attributes;b.push({arrayStride:D,stepMode:Mk(G),attributes:[]});try{for(var se=(a=void 0,(0,Pn.XA)(q)),Se=se.next();!Se.done;Se=se.next()){var Ve=Se.value,nt=Ve.shaderLocation,st=Ve.format,at=Ve.offset;b[b.length-1].attributes.push({shaderLocation:nt,format:Ik(st),offset:at})}}catch(At){a={error:At}}finally{try{Se&&!Se.done&&(s=se.return)&&s.call(se)}finally{if(a)throw a.error}}}}catch(At){n={error:At}}finally{try{M&&!M.done&&(i=T.return)&&i.call(T)}finally{if(n)throw n.error}}return _.indexFormat=Rk(d.indexBufferFormat),_.buffers=b,_}return r}(uh),QE=function(e){(0,Pn.ZT)(r,e);function r(t){var n=t.id,i=t.device,a=t.descriptor,s=e.call(this,{id:n,device:i})||this;return s.type=_a.Program,s.vertexStage=null,s.fragmentStage=null,s.computeStage=null,s.descriptor=a,a.vertex&&(s.vertexStage=s.createShaderStage(a.vertex,"vertex")),a.fragment&&(s.fragmentStage=s.createShaderStage(a.fragment,"fragment")),a.compute&&(s.computeStage=s.createShaderStage(a.compute,"compute")),s}return r.prototype.setUniformsLegacy=function(t){},r.prototype.createShaderStage=function(t,n){var i,a,s=t.glsl,l=t.wgsl,f=t.entryPoint,d=t.postprocess,_=!1,b=l;if(!b)try{b=this.device.glsl_compile(s,n,_)}catch(q){throw console.error(q,s),new Error("whoops")}var T=function(q){if(!b.includes(q))return"continue";b=b.replace("var T_".concat(q,": texture_2d;"),"var T_".concat(q,": texture_depth_2d;")),b=b.replace(new RegExp("textureSample\\(T_".concat(q,"(.*)\\);$"),"gm"),function(se,Se){return"vec4(textureSample(T_".concat(q).concat(Se,"), 0.0, 0.0, 0.0);")})};try{for(var M=(0,Pn.XA)(["u_TextureFramebufferDepth"]),P=M.next();!P.done;P=M.next()){var D=P.value;T(D)}}catch(q){i={error:q}}finally{try{P&&!P.done&&(a=M.return)&&a.call(M)}finally{if(i)throw i.error}}d&&(b=d(b));var G=this.device.device.createShaderModule({code:b});return{module:G,entryPoint:f||"main"}},r}(uh),Uk=function(e){(0,Pn.ZT)(r,e);function r(t){var n=t.id,i=t.device,a=t.descriptor,s=e.call(this,{id:n,device:i})||this;s.type=_a.QueryPool;var l=a.elemCount,f=a.type;return s.querySet=s.device.device.createQuerySet({type:yk(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}(uh),zk=function(e){(0,Pn.ZT)(r,e);function r(t){var n=t.id,i=t.device,a=e.call(this,{id:n,device:i})||this;return a.type=_a.Readback,a}return r.prototype.readTexture=function(t,n,i,a,s,l,f,d){return f===void 0&&(f=0),(0,Pn.mG)(this,void 0,void 0,function(){var _,b,T,M,P,D,G,q;return(0,Pn.Jh)(this,function(se){return _=t,b=0,T=this.getBlockInformationFromFormat(_.gpuTextureformat),M=Math.ceil(a/T.width)*T.length,P=Math.ceil(M/256)*256,D=P*s,G=this.device.createBuffer({usage:no.STORAGE|no.MAP_READ|no.COPY_DST,hint:bf.STATIC,viewOrSize:D}),q=this.device.device.createCommandEncoder(),q.copyTextureToBuffer({texture:_.gpuTexture,mipLevel:0,origin:{x:n,y:i,z:Math.max(b,0)}},{buffer:G.gpuBuffer,offset:0,bytesPerRow:P},{width:a,height:s,depthOrArrayLayers:1}),this.device.device.queue.submit([q.finish()]),[2,this.readBuffer(G,0,l.byteLength===D?l:null,f,D,_.format,!0,!1,M,P,s)]})})},r.prototype.readTextureSync=function(t,n,i,a,s,l,f,d){throw new Error("ERROR_MSG_METHOD_NOT_IMPLEMENTED")},r.prototype.readBuffer=function(t,n,i,a,s,l,f,d,_,b,T){var M=this;n===void 0&&(n=0),i===void 0&&(i=null),s===void 0&&(s=0),l===void 0&&(l=It.U8_RGB),f===void 0&&(f=!1),_===void 0&&(_=0),b===void 0&&(b=0),T===void 0&&(T=0);var P=t,D=s||P.size,G=i||P.view,q=G&&G.constructor&&G.constructor.BYTES_PER_ELEMENT||AE(l),se=P;if(!(P.usage&no.MAP_READ&&P.usage&no.COPY_DST)){var Se=this.device.device.createCommandEncoder();se=this.device.createBuffer({usage:no.STORAGE|no.MAP_READ|no.COPY_DST,hint:bf.STATIC,viewOrSize:D}),Se.copyBufferToBuffer(P.gpuBuffer,n,se.gpuBuffer,0,D),this.device.device.queue.submit([Se.finish()])}return new Promise(function(Ve,nt){se.gpuBuffer.mapAsync(Py.READ,n,D).then(function(){var st=se.gpuBuffer.getMappedRange(n,D),at=G;if(f)at===null?at=KE(l,D,!0,st):at=KE(l,at.buffer,void 0,st);else if(at===null)switch(q){case 1:at=new Uint8Array(D),at.set(new Uint8Array(st));break;case 2:at=M.getHalfFloatAsFloatRGBAArrayBuffer(D/2,st);break;case 4:at=new Float32Array(D/4),at.set(new Float32Array(st));break}else switch(q){case 1:at=new Uint8Array(at.buffer),at.set(new Uint8Array(st));break;case 2:at=M.getHalfFloatAsFloatRGBAArrayBuffer(D/2,st,G);break;case 4:var At=G&&G.constructor||Float32Array;at=new At(at.buffer),at.set(new At(st));break}if(_!==b){q===1&&!f&&(_*=2,b*=2);for(var Wt=new Uint8Array(at.buffer),Sr=_,_r=0,Gr=1;Gr1?T.resolveTarget=this.getTextureView(b,this.gfxColorResolveToLevel[d]):T.storeOp="store")}else{this.gpuColorAttachments.length=d,this.gfxColorAttachment.length=d,this.gfxColorResolveTo.length=d;break}}if(this.gfxDepthStencilAttachment=r.depthStencilAttachment,this.gfxDepthStencilResolveTo=r.depthStencilResolveTo,r.depthStencilAttachment){var P=r.depthStencilAttachment,T=this.gpuDepthStencilAttachment;T.view=P.gpuTextureView;var D=!!(wv(P.format)&wn.Depth);D?(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 G=!!(wv(P.format)&wn.Stencil);G?(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,Dp.Z)(r.occlusionQueryPool)?void 0:gk(r.occlusionQueryPool)},e.prototype.beginRenderPass=function(r){Oi(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,a,s){a===void 0&&(a=0),s===void 0&&(s=1),this.gpuRenderPassEncoder.setViewport(r,this.flipY(t,i),n,i,a,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=Md(t.gpuRenderPipeline);this.gpuRenderPassEncoder.setPipeline(n)},e.prototype.setVertexInput=function(r,t,n){if(r!==null){var i=r;n!==null&&this.gpuRenderPassEncoder.setIndexBuffer(kv(n.buffer),Md(i.indexFormat),n.offset);for(var a=0;a1||this.copyAttachment(this.gfxDepthStencilResolveTo,0,this.gfxDepthStencilAttachment,0)),this.commandEncoder.finish()},e.prototype.copyAttachment=function(r,t,n,i){Oi(n.sampleCount===1);var a={texture:n.gpuTexture,mipLevel:i},s={texture:r.gpuTexture,mipLevel:t};Oi(n.width>>>i===r.width>>>t),Oi(n.height>>>i===r.height>>>t),Oi(!!(n.usage&Ys.COPY_SRC)),Oi(!!(r.usage&Ys.COPY_DST)),this.commandEncoder.copyTextureToTexture(a,s,[r.width,r.height,1])},e}(),Vk=function(e){(0,Pn.ZT)(r,e);function r(t){var n=t.id,i=t.device,a=t.descriptor,s=e.call(this,{id:n,device:i})||this;return s.type=_a.RenderPipeline,s.isCreatingAsync=!1,s.gpuRenderPipeline=null,s.descriptor=a,s.device.createRenderPipelineInternal(s,!1),s}return r.prototype.getBindGroupLayout=function(t){return this.gpuRenderPipeline.getBindGroupLayout(t)},r}(uh),jk=function(e){(0,Pn.ZT)(r,e);function r(t){var n=t.id,i=t.device,a=t.descriptor,s,l,f=e.call(this,{id:n,device:i})||this;f.type=_a.Sampler;var d=a.lodMinClamp,_=a.mipmapFilter===$s.NO_MIP?a.lodMinClamp:a.lodMaxClamp,b=(s=a.maxAnisotropy)!==null&&s!==void 0?s:1;return b>1&&Oi(a.minFilter===rs.BILINEAR&&a.magFilter===rs.BILINEAR&&a.mipmapFilter===$s.LINEAR),f.gpuSampler=f.device.device.createSampler({addressModeU:ky(a.addressModeU),addressModeV:ky(a.addressModeV),addressModeW:ky((l=a.addressModeW)!==null&&l!==void 0?l:a.addressModeU),lodMinClamp:d,lodMaxClamp:_,minFilter:XE(a.minFilter),magFilter:XE(a.magFilter),mipmapFilter:vk(a.mipmapFilter),compare:a.compareFunction!==void 0?v0(a.compareFunction):void 0,maxAnisotropy:b}),f}return r}(uh),m0=function(e){(0,Pn.ZT)(r,e);function r(t){var n=t.id,i=t.device,a=t.descriptor,s=t.skipCreate,l=t.sampleCount,f=e.call(this,{id:n,device:i})||this;f.type=_a.Texture,f.flipY=!1;var d=a.format,_=a.dimension,b=a.width,T=a.height,M=a.depthOrArrayLayers,P=a.mipLevelCount,D=a.usage,G=a.pixelStore;return f.flipY=!!(G!=null&&G.unpackFlipY),f.device.createTextureShared({format:d,dimension:_!=null?_:Wi.TEXTURE_2D,width:b,height:T,depthOrArrayLayers:M!=null?M:1,mipLevelCount:P!=null?P:1,usage:D,sampleCount:l!=null?l:1},f,s),f}return r.prototype.textureFromImageBitmapOrCanvas=function(t,n,i){for(var a=n[0].width,s=n[0].height,l={size:{width:a,height:s,depthOrArrayLayers:i},format:"rgba8unorm",usage:GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_DST|GPUTextureUsage.RENDER_ATTACHMENT},f=t.createTexture(l),d=0;d>>2,uniformBufferWordAlignment:this.device.limits.minUniformBufferOffsetAlignment>>>2,supportedSampleCounts:[1],occlusionQueriesRecommended:!0,computeShadersSupported:!0}},e.prototype.queryTextureFormatSupported=function(r,t,n){if(Pk(r)){if(!this.featureTextureCompressionBC)return!1;var i=Ok(r);return t%i!==0||n%i!==0?!1:this.featureTextureCompressionBC}switch(r){case It.U16_RGBA_NORM:return!1;case It.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===_a.Buffer){var n=r;n.gpuBuffer.label=t}else if(r.type===_a.Texture){var n=r;n.gpuTexture.label=t,n.gpuTextureView.label=t}else if(r.type===_a.RenderTarget){var n=r;n.gpuTexture.label=t,n.gpuTextureView.label=t}else if(r.type===_a.Sampler){var n=r;n.gpuSampler.label=t}else if(r.type===_a.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}(),Wk=function(){function e(r){this.pluginOptions=r}return e.prototype.createSwapChain=function(r){return(0,Pn.mG)(this,void 0,void 0,function(){var t,n,i,a,s,l,f,d;return(0,Pn.Jh)(this,function(_){switch(_.label){case 0:if(globalThis.navigator.gpu===void 0)return[2,null];t=null,_.label=1;case 1:return _.trys.push([1,3,,4]),n=this.pluginOptions.xrCompatible,[4,globalThis.navigator.gpu.requestAdapter({xrCompatible:n})];case 2:return t=_.sent(),[3,4];case 3:return i=_.sent(),console.log(i),[3,4];case 4:return t===null?[2,null]:(a=["depth32float-stencil8","texture-compression-bc"],s=a.filter(function(b){return t.features.has(b)}),[4,t.requestDevice({requiredFeatures:s})]);case 5:if(l=_.sent(),l&&(f=this.pluginOptions.onContextLost,l.lost.then(function(){f&&f()})),l===null)return[2,null];if(d=r.getContext("webgpu"),!d)return[2,null];_.label=6;case 6:return _.trys.push([6,8,,9]),[4,GE(this.pluginOptions.shaderCompilerPath)];case 7:return _.sent(),[3,9];case 8:return _.sent(),[3,9];case 9:return[2,new Hk(t,l,r,d,sk,Xm&&new Xm)]}})})},e}(),Gk=ui.isPlainObject,Xk=ui.isTypedArray,$k=function(){function e(r,t){(0,Q.Z)(this,e),(0,F.Z)(this,"destroyed",!1),(0,F.Z)(this,"uniforms",{}),this.reGl=r;var n=t.vs,i=t.fs,a=t.attributes,s=t.uniforms,l=t.primitive,f=t.count,d=t.elements,_=t.depth,b=t.cull,T=t.instances,M={platformString:"WebGL1",glslVersion:"#version 100",explicitBindingLocations:!1,separateSamplerTextures:!1,viewportOrigin:Av.LOWER_LEFT,clipSpaceNearZ:Tv.NEGATIVE_ONE,supportMRT:!1},P={};this.options=t,s&&(this.uniforms=this.extractUniforms(s),Object.keys(s).forEach(function(Se){P[Se]=r.prop(Se)}));var D={};Object.keys(a).forEach(function(Se){D[Se]=a[Se].get()});var G=dm(Fp(M,"frag",i,null,!1)),q=dm(Fp(M,"vert",n,null,!1)),se={attributes:D,frag:G,uniforms:P,vert:q,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:H5[l===void 0?I.TRIANGLES:l]};T&&(se.instances=T),f?se.count=f:d&&(se.elements=d.get()),this.initDepthDrawParams({depth:_},se),this.initCullDrawParams({cull:b},se),this.drawCommand=r(se),this.drawParams=se}return(0,j.Z)(e,[{key:"updateAttributesAndElements",value:function(t,n){var i={};Object.keys(t).forEach(function(a){i[a]=t[a].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||{})),a={};Object.keys(i).forEach(function(s){var l=(0,Hs.Z)(i[s]);l==="boolean"||l==="number"||Array.isArray(i[s])||i[s].BYTES_PER_ELEMENT?a[s]=i[s]:a[s]=i[s].get()}),a.blend=n?this.getBlendDrawParams({blend:{enable:!1}}):this.getBlendDrawParams(t),a.stencil=this.getStencilDrawParams(t),a.colorMask=this.getColorMaskDrawParams(t,n),this.drawCommand(a)}}},{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:$5[i.func||I.LESS],range:i.range||[0,1]})}},{key:"getBlendDrawParams",value:function(t){var n=t.blend,i=n||{},a=i.enable,s=i.func,l=i.equation,f=i.color,d=f===void 0?[0,0,0,0]:f;return{enable:!!a,func:{srcRGB:t0[s&&s.srcRGB||I.SRC_ALPHA],srcAlpha:t0[s&&s.srcAlpha||I.SRC_ALPHA],dstRGB:t0[s&&s.dstRGB||I.ONE_MINUS_SRC_ALPHA],dstAlpha:t0[s&&s.dstAlpha||I.ONE_MINUS_SRC_ALPHA]},equation:{rgb:xE[l&&l.rgb||I.FUNC_ADD],alpha:xE[l&&l.alpha||I.FUNC_ADD]},color:d}}},{key:"getStencilDrawParams",value:function(t){var n=t.stencil,i=n||{},a=i.enable,s=i.mask,l=s===void 0?-1:s,f=i.func,d=f===void 0?{cmp:I.ALWAYS,ref:0,mask:-1}:f,_=i.opFront,b=_===void 0?{fail:I.KEEP,zfail:I.KEEP,zpass:I.KEEP}:_,T=i.opBack,M=T===void 0?{fail:I.KEEP,zfail:I.KEEP,zpass:I.KEEP}:T;return{enable:!!a,mask:l,func:(0,H.Z)((0,H.Z)({},d),{},{cmp:Y5[d.cmp]}),opFront:{fail:Ev[b.fail],zfail:Ev[b.zfail],zpass:Ev[b.zpass]},opBack:{fail:Ev[M.fail],zfail:Ev[M.zfail],zpass:Ev[M.zpass]}}}},{key:"getColorMaskDrawParams",value:function(t,n){var i=t.stencil,a=i!=null&&i.enable&&i.opFront&&!n?[!1,!1,!1,!1]:[!0,!0,!0,!0];return a}},{key:"initCullDrawParams",value:function(t,n){var i=t.cull;if(i){var a=i.enable,s=i.face,l=s===void 0?I.BACK:s;n.cull={enable:!!a,face:q5[l]}}}},{key:"extractUniforms",value:function(t){var n=this,i={};return Object.keys(t).forEach(function(a){n.extractUniformsRecursively(a,t[a],i,"")}),i}},{key:"extractUniformsRecursively",value:function(t,n,i,a){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(a&&a+".").concat(t)]=n;return}Gk(n)&&Object.keys(n).forEach(function(l){s.extractUniformsRecursively(l,n[l],i,"".concat(a&&a+".").concat(t))}),Array.isArray(n)&&n.forEach(function(l,f){Object.keys(l).forEach(function(d){s.extractUniformsRecursively(d,l[d],i,"".concat(a&&a+".").concat(t,"[").concat(f,"]"))})})}}]),e}(),Yk=function(){function e(r,t){(0,Q.Z)(this,e),(0,F.Z)(this,"isDestroy",!1);var n=t.data,i=t.type,a=i===void 0?I.UNSIGNED_BYTE:i,s=t.width,l=t.height,f=t.flipY,d=f===void 0?!1:f,_=t.format,b=_===void 0?I.RGBA:_,T=t.mipmap,M=T===void 0?!1:T,P=t.wrapS,D=P===void 0?I.CLAMP_TO_EDGE:P,G=t.wrapT,q=G===void 0?I.CLAMP_TO_EDGE:G,se=t.aniso,Se=se===void 0?0:se,Ve=t.alignment,nt=Ve===void 0?1:Ve,st=t.premultiplyAlpha,at=st===void 0?!1:st,At=t.mag,Wt=At===void 0?I.NEAREST:At,Sr=t.min,_r=Sr===void 0?I.NEAREST:Sr,Gr=t.colorSpace,Cn=Gr===void 0?I.BROWSER_DEFAULT_WEBGL:Gr,wi=t.x,la=wi===void 0?0:wi,co=t.y,Yo=co===void 0?0:co,Uo=t.copy,qs=Uo===void 0?!1:Uo;this.width=s,this.height=l;var bl={width:s,height:l,type:Sy[a],format:W5[b],wrapS:_E[D],wrapT:_E[q],mag:yE[Wt],min:yE[_r],alignment:nt,flipY:d,colorSpace:X5[Cn],premultiplyAlpha:at,aniso:Se,x:la,y:Yo,copy:qs};n&&(bl.data=n),typeof M=="number"?bl.mipmap=G5[M]:typeof M=="boolean"&&(bl.mipmap=M),this.texture=r.texture(bl)}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}(),JE,eS,qk=(JE=(0,er.b2)(),JE(eS=function(){function e(){var r=this;(0,Q.Z)(this,e),(0,F.Z)(this,"uniformBuffers",[]),(0,F.Z)(this,"queryVerdorInfo",function(){return"WebGL1"}),(0,F.Z)(this,"createModel",function(t){return new $k(r.gl,t)}),(0,F.Z)(this,"createAttribute",function(t){return new j5(r.gl,t)}),(0,F.Z)(this,"createBuffer",function(t){return new K5(r.gl,t)}),(0,F.Z)(this,"createElements",function(t){return new Q5(r.gl,t)}),(0,F.Z)(this,"createTexture2D",function(t){return new Yk(r.gl,t)}),(0,F.Z)(this,"createFramebuffer",function(t){return new J5(r.gl,t)}),(0,F.Z)(this,"useFramebuffer",function(t,n){r.gl({framebuffer:t?t.get():null})(n)}),(0,F.Z)(this,"clear",function(t){var n,i=t.color,a=t.depth,s=t.stencil,l=t.framebuffer,f=l===void 0?null:l,d={color:i,depth:a,stencil:s};d.framebuffer=f===null?f:f.get(),(n=r.gl)===null||n===void 0||n.clear(d)}),(0,F.Z)(this,"viewport",function(t){var n=t.x,i=t.y,a=t.width,s=t.height;r.gl._gl.viewport(n,i,a,s),r.width=a,r.height=s,r.gl._refresh()}),(0,F.Z)(this,"readPixels",function(t){var n=t.framebuffer,i=t.x,a=t.y,s=t.width,l=t.height,f={x:i,y:a,width:s,height:l};return n&&(f.framebuffer=n.get()),r.gl.read(f)}),(0,F.Z)(this,"getViewportSize",function(){return{width:r.gl._gl.drawingBufferWidth,height:r.gl._gl.drawingBufferHeight}}),(0,F.Z)(this,"getContainer",function(){var t;return(t=r.canvas)===null||t===void 0?void 0:t.parentElement}),(0,F.Z)(this,"getCanvas",function(){return r.canvas}),(0,F.Z)(this,"getGLContext",function(){return r.gl._gl}),(0,F.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,Ft.Z)(_e().mark(function n(i,a,s){var l=this;return _e().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(this.canvas=i,!s){d.next=5;break}this.gl=s,d.next=8;break;case 5:return d.next=7,new Promise(function(_,b){V5()({canvas:l.canvas,attributes:{alpha:!0,antialias:a.antialias,premultipliedAlpha:!0,preserveDrawingBuffer:a.preserveDrawingBuffer,stencil:a.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,P){(M||!P)&&b(M),_(P)}})});case 7:this.gl=d.sent;case 8:this.extensionObject={OES_texture_float:this.testExtension("OES_texture_float")};case 9:case"end":return d.stop()}},n,this)}));function t(n,i,a){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}())||eS),Kk=function(){function e(r,t){(0,Q.Z)(this,e);var n=t.buffer,i=t.offset,a=t.stride,s=t.normalized,l=t.size,f=t.divisor,d=t.shaderLocation;this.buffer=n,this.attribute={shaderLocation:d,buffer:n.get(),offset:i||0,stride:a||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}(),Up,Qh,Lv,$m,Ym,lh,g0,Pd,ku,ch,fh,y0=(Up={},(0,F.Z)(Up,I.FLOAT,Float32Array),(0,F.Z)(Up,I.UNSIGNED_BYTE,Uint8Array),(0,F.Z)(Up,I.SHORT,Int16Array),(0,F.Z)(Up,I.UNSIGNED_SHORT,Uint16Array),(0,F.Z)(Up,I.INT,Int32Array),(0,F.Z)(Up,I.UNSIGNED_INT,Uint32Array),Up),Qk=(Qh={},(0,F.Z)(Qh,I.POINTS,Cs.POINTS),(0,F.Z)(Qh,I.LINES,Cs.LINES),(0,F.Z)(Qh,I.LINE_LOOP,Cs.LINES),(0,F.Z)(Qh,I.LINE_STRIP,Cs.LINE_STRIP),(0,F.Z)(Qh,I.TRIANGLES,Cs.TRIANGLES),(0,F.Z)(Qh,I.TRIANGLE_FAN,Cs.TRIANGLES),(0,F.Z)(Qh,I.TRIANGLE_STRIP,Cs.TRIANGLE_STRIP),Qh),Jk=(Lv={},(0,F.Z)(Lv,1,It.F32_R),(0,F.Z)(Lv,2,It.F32_RG),(0,F.Z)(Lv,3,It.F32_RGB),(0,F.Z)(Lv,4,It.F32_RGBA),Lv),eD=($m={},(0,F.Z)($m,I.STATIC_DRAW,bf.STATIC),(0,F.Z)($m,I.DYNAMIC_DRAW,bf.DYNAMIC),(0,F.Z)($m,I.STREAM_DRAW,bf.DYNAMIC),$m),tS=(Ym={},(0,F.Z)(Ym,I.REPEAT,_l.REPEAT),(0,F.Z)(Ym,I.CLAMP_TO_EDGE,_l.CLAMP_TO_EDGE),(0,F.Z)(Ym,I.MIRRORED_REPEAT,_l.MIRRORED_REPEAT),Ym),tD=(lh={},(0,F.Z)(lh,I.NEVER,Ui.NEVER),(0,F.Z)(lh,I.ALWAYS,Ui.ALWAYS),(0,F.Z)(lh,I.LESS,Ui.LESS),(0,F.Z)(lh,I.LEQUAL,Ui.LEQUAL),(0,F.Z)(lh,I.GREATER,Ui.GREATER),(0,F.Z)(lh,I.GEQUAL,Ui.GEQUAL),(0,F.Z)(lh,I.EQUAL,Ui.EQUAL),(0,F.Z)(lh,I.NOTEQUAL,Ui.NOTEQUAL),lh),rD=(g0={},(0,F.Z)(g0,I.FRONT,jl.FRONT),(0,F.Z)(g0,I.BACK,jl.BACK),g0),rS=(Pd={},(0,F.Z)(Pd,I.FUNC_ADD,iu.ADD),(0,F.Z)(Pd,I.MIN_EXT,iu.MIN),(0,F.Z)(Pd,I.MAX_EXT,iu.MAX),(0,F.Z)(Pd,I.FUNC_SUBTRACT,iu.SUBSTRACT),(0,F.Z)(Pd,I.FUNC_REVERSE_SUBTRACT,iu.REVERSE_SUBSTRACT),Pd),_0=(ku={},(0,F.Z)(ku,I.ZERO,$i.ZERO),(0,F.Z)(ku,I.ONE,$i.ONE),(0,F.Z)(ku,I.SRC_COLOR,$i.SRC),(0,F.Z)(ku,I.ONE_MINUS_SRC_COLOR,$i.ONE_MINUS_SRC),(0,F.Z)(ku,I.SRC_ALPHA,$i.SRC_ALPHA),(0,F.Z)(ku,I.ONE_MINUS_SRC_ALPHA,$i.ONE_MINUS_SRC_ALPHA),(0,F.Z)(ku,I.DST_COLOR,$i.DST),(0,F.Z)(ku,I.ONE_MINUS_DST_COLOR,$i.ONE_MINUS_DST),(0,F.Z)(ku,I.DST_ALPHA,$i.DST_ALPHA),(0,F.Z)(ku,I.ONE_MINUS_DST_ALPHA,$i.ONE_MINUS_DST_ALPHA),(0,F.Z)(ku,I.CONSTANT_COLOR,$i.CONST),(0,F.Z)(ku,I.ONE_MINUS_CONSTANT_COLOR,$i.ONE_MINUS_CONSTANT),(0,F.Z)(ku,I.CONSTANT_ALPHA,$i.CONST),(0,F.Z)(ku,I.ONE_MINUS_CONSTANT_ALPHA,$i.ONE_MINUS_CONSTANT),(0,F.Z)(ku,I.SRC_ALPHA_SATURATE,$i.SRC_ALPHA_SATURATE),ku),Bv=(ch={},(0,F.Z)(ch,I.REPLACE,Go.REPLACE),(0,F.Z)(ch,I.KEEP,Go.KEEP),(0,F.Z)(ch,I.ZERO,Go.ZERO),(0,F.Z)(ch,I.INVERT,Go.INVERT),(0,F.Z)(ch,I.INCR,Go.INCREMENT_CLAMP),(0,F.Z)(ch,I.DECR,Go.DECREMENT_CLAMP),(0,F.Z)(ch,I.INCR_WRAP,Go.INCREMENT_WRAP),(0,F.Z)(ch,I.DECR_WRAP,Go.DECREMENT_WRAP),ch),nD=(fh={},(0,F.Z)(fh,I.ALWAYS,Ui.ALWAYS),(0,F.Z)(fh,I.EQUAL,Ui.EQUAL),(0,F.Z)(fh,I.GEQUAL,Ui.GEQUAL),(0,F.Z)(fh,I.GREATER,Ui.GREATER),(0,F.Z)(fh,I.LEQUAL,Ui.LEQUAL),(0,F.Z)(fh,I.LESS,Ui.LESS),(0,F.Z)(fh,I.NEVER,Ui.NEVER),(0,F.Z)(fh,I.NOTEQUAL,Ui.NOTEQUAL),fh),iD={"[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 x0(e){return Object.prototype.toString.call(e)in iD}var aD=function(){function e(r,t){(0,Q.Z)(this,e),(0,F.Z)(this,"isDestroyed",!1);var n=t.data,i=t.usage,a=t.type,s=t.isUBO,l=t.label,f;x0(n)?f=n:f=new y0[this.type||I.FLOAT](n),this.type=a,this.size=f.byteLength,this.buffer=r.createBuffer({viewOrSize:f,usage:s?no.UNIFORM:no.VERTEX,hint:eD[i||I.STATIC_DRAW]}),l&&r.setResourceName(this.buffer,l)}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,a;x0(n)?a=n:a=new y0[this.type||I.FLOAT](n),this.buffer.setSubData(i,new Uint8Array(a.buffer))}}]),e}(),oD=function(){function e(r,t){(0,Q.Z)(this,e);var n=t.data,i=t.type,a=t.count,s=a===void 0?0:a,l;x0(n)?l=n:l=new y0[this.type||I.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;x0(n)?i=n:i=new y0[this.type||I.UNSIGNED_INT](n),this.indexBuffer.setSubData(0,new Uint8Array(i.buffer))}},{key:"destroy",value:function(){this.indexBuffer.destroy()}}]),e}();function nS(e){return!!(e&&e.texture)}var iS=function(){function e(r,t){(0,Q.Z)(this,e),(0,F.Z)(this,"isDestroy",!1);var n=t.data,i=t.type,a=i===void 0?I.UNSIGNED_BYTE:i,s=t.width,l=t.height,f=t.flipY,d=f===void 0?!1:f,_=t.format,b=_===void 0?I.RGBA:_,T=t.wrapS,M=T===void 0?I.CLAMP_TO_EDGE:T,P=t.wrapT,D=P===void 0?I.CLAMP_TO_EDGE:P,G=t.aniso,q=G===void 0?0:G,se=t.alignment,Se=se===void 0?1:se,Ve=t.usage,nt=Ve===void 0?ht.SAMPLED:Ve,st=t.mipmap,at=st===void 0?!1:st,At=t.mag,Wt=At===void 0?I.NEAREST:At,Sr=t.min,_r=Sr===void 0?I.NEAREST:Sr;this.width=s,this.height=l;var Gr=It.U8_RGBA_RT;if(a===I.UNSIGNED_BYTE&&b===I.RGBA)Gr=It.U8_RGBA_RT;else if(a===I.UNSIGNED_BYTE&&b===I.LUMINANCE)Gr=It.U8_LUMINANCE;else if(a===I.FLOAT&&b===I.RGB)Gr=It.F32_RGB;else if(a===I.FLOAT&&b===I.RGBA)Gr=It.F32_RGBA;else if(a===I.FLOAT&&b===I.RED)Gr=It.F32_R;else throw new Error("create texture error, type: ".concat(a,", format: ").concat(b));this.texture=r.createTexture({format:Gr,width:s,height:l,usage:nt===ht.SAMPLED?Ou.SAMPLED:Ou.RENDER_TARGET,pixelStore:{unpackFlipY:d,packAlignment:Se},mipLevelCount:nt===ht.RENDER_TARGET||at?1:0}),n&&this.texture.setImageData([n]),this.sampler=r.createSampler({addressModeU:tS[M],addressModeV:tS[D],minFilter:_r===I.NEAREST?rs.POINT:rs.BILINEAR,magFilter:Wt===I.NEAREST?rs.POINT:rs.BILINEAR,mipmapFilter:$s.NO_MIP,maxAnisotropy:q})}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}(),aS=function(){function e(r,t){(0,Q.Z)(this,e),this.device=r,this.options=t,this.createColorRenderTarget(),this.createDepthRenderTarget()}return(0,j.Z)(e,[{key:"createColorRenderTarget",value:function(){var t=this.options,n=t.width,i=t.height,a=t.color;a&&(nS(a)?(this.colorTexture=a.get(),this.colorRenderTarget=this.device.createRenderTargetFromTexture(this.colorTexture),this.width=a.width,this.height=a.height):n&&i&&(this.colorTexture=this.device.createTexture({format:It.U8_RGBA_RT,usage:Ou.RENDER_TARGET,width:n,height:i}),this.colorRenderTarget=this.device.createRenderTargetFromTexture(this.colorTexture),this.width=n,this.height=i))}},{key:"createDepthRenderTarget",value:function(){var t=this.options,n=t.width,i=t.height,a=t.depth;a&&(nS(a)?(this.depthTexture=a.get(),this.depthRenderTarget=this.device.createRenderTargetFromTexture(this.depthTexture),this.width=a.width,this.height=a.height):n&&i&&(this.depthTexture=this.device.createTexture({format:It.D24_S8,usage:Ou.RENDER_TARGET,width:n,height:i}),this.depthRenderTarget=this.device.createRenderTargetFromTexture(this.depthTexture),this.width=n,this.height=i))}},{key:"get",value:function(){return this.colorRenderTarget}},{key:"destroy",value:function(){var t,n;(t=this.colorRenderTarget)===null||t===void 0||t.destroy(),(n=this.depthRenderTarget)===null||n===void 0||n.destroy()}},{key:"resize",value:function(t){var n=t.width,i=t.height;(this.width!==n||this.height!==i)&&(this.destroy(),this.options.width=n,this.options.height=i,this.createColorRenderTarget(),this.createDepthRenderTarget())}}]),e}(),sD=ui.isPlainObject,uD=ui.isTypedArray,lD=function(){function e(r,t,n){var i=this;(0,Q.Z)(this,e),(0,F.Z)(this,"destroyed",!1),(0,F.Z)(this,"uniforms",{}),(0,F.Z)(this,"vertexBuffers",[]),this.device=r,this.options=t,this.service=n;var a=t.vs,s=t.fs,l=t.attributes,f=t.uniforms,d=t.count,_=t.elements;this.options=t;var b=r.createProgram({vertex:{glsl:a},fragment:{glsl:s}});this.program=b,f&&(this.uniforms=this.extractUniforms(f));var T=[],M=0;Object.keys(l).forEach(function(D){var G=l[D],q=G.get();i.vertexBuffers.push(q.get());var se=G.attribute,Se=se.offset,Ve=Se===void 0?0:Se,nt=se.stride,st=nt===void 0?0:nt,at=se.size,At=at===void 0?1:at,Wt=se.divisor,Sr=Wt===void 0?0:Wt,_r=se.shaderLocation,Gr=_r===void 0?0:_r;T.push({arrayStride:st||At*4,stepMode:Rd.VERTEX,attributes:[{format:Jk[At],shaderLocation:Gr,offset:Ve,divisor:Sr}]}),M=q.size/At}),d||(this.options.count=M),_&&(this.indexBuffer=_.get());var P=r.createInputLayout({vertexBufferDescriptors:T,indexBufferFormat:_?It.U32_R:null,program:b});this.inputLayout=P,this.pipeline=this.createPipeline(t)}return(0,j.Z)(e,[{key:"createPipeline",value:function(t,n){var i=t.primitive,a=i===void 0?I.TRIANGLES:i,s=t.depth,l=t.cull,f=t.blend,d=t.stencil,_=this.initDepthDrawParams({depth:s}),b=!!(_&&_.enable),T=this.initCullDrawParams({cull:l}),M=!!(T&&T.enable),P=this.getBlendDrawParams({blend:f}),D=!!(P&&P.enable),G=this.getStencilDrawParams({stencil:d}),q=!!(G&&G.enable);return this.device.createRenderPipeline({inputLayout:this.inputLayout,program:this.program,topology:Qk[a],colorAttachmentFormats:[It.U8_RGBA_RT],depthStencilAttachmentFormat:It.D24_S8,megaStateDescriptor:{attachmentsState:[n?{channelWriteMask:au.ALL,rgbBlendState:{blendMode:iu.ADD,blendSrcFactor:$i.ONE,blendDstFactor:$i.ZERO},alphaBlendState:{blendMode:iu.ADD,blendSrcFactor:$i.ONE,blendDstFactor:$i.ZERO}}:{channelWriteMask:q&&G.opFront.zpass===Go.REPLACE?au.NONE:au.ALL,rgbBlendState:{blendMode:D&&P.equation.rgb||iu.ADD,blendSrcFactor:D&&P.func.srcRGB||$i.SRC_ALPHA,blendDstFactor:D&&P.func.dstRGB||$i.ONE_MINUS_SRC_ALPHA},alphaBlendState:{blendMode:D&&P.equation.alpha||iu.ADD,blendSrcFactor:D&&P.func.srcAlpha||$i.ONE,blendDstFactor:D&&P.func.dstAlpha||$i.ONE}}],blendConstant:D?Ay:void 0,depthWrite:b,depthCompare:b&&_.func||Ui.LESS,cullMode:M&&T.face||jl.NONE,stencilWrite:q,stencilFront:{compare:q?G.func.cmp:Ui.ALWAYS,passOp:G.opFront.zpass},stencilBack:{compare:q?G.func.cmp:Ui.ALWAYS,passOp:G.opBack.zpass}}})}},{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,n){var i=this,a=(0,H.Z)((0,H.Z)({},this.options),t),s=a.count,l=s===void 0?0:s,f=a.instances,d=a.elements,_=a.uniforms,b=_===void 0?{}:_,T=a.uniformBuffers,M=a.textures;this.uniforms=(0,H.Z)((0,H.Z)({},this.uniforms),this.extractUniforms(b));var P=this.service,D=P.renderPass,G=P.currentFramebuffer,q=P.width,se=P.height;if(this.pipeline=this.createPipeline(a,n),D.setViewport(0,0,(G==null?void 0:G.width)||q,(G==null?void 0:G.height)||se),D.setPipeline(this.pipeline),D.setStencilReference(1),D.setVertexInput(this.inputLayout,this.vertexBuffers.map(function(Ve){return{buffer:Ve}}),d?{buffer:this.indexBuffer,offset:0}:null),T&&(this.bindings=this.device.createBindings({pipeline:this.pipeline,uniformBufferBindings:T.map(function(Ve,nt){var st=Ve;return{binding:nt,buffer:st.get(),size:st.size}}),samplerBindings:M==null?void 0:M.map(function(Ve){return{texture:Ve.texture,sampler:Ve.sampler}})})),this.bindings&&(D.setBindings(this.bindings),Object.keys(this.uniforms).forEach(function(Ve){var nt=i.uniforms[Ve];nt instanceof iS?i.uniforms[Ve]=nt.get():nt instanceof aS&&(i.uniforms[Ve]=nt.get().texture)}),this.program.setUniformsLegacy(this.uniforms)),d){var Se=d.count;Se===0?D.draw(l,f):D.drawIndexed(Se,f)}else D.draw(l,f)}},{key:"destroy",value:function(){var t,n,i;this.program.destroy(),(t=this.vertexBuffers)===null||t===void 0||t.forEach(function(a){return a.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:tD[n.func||I.LESS],range:n.range||[0,1]}}},{key:"getBlendDrawParams",value:function(t){var n=t.blend,i=n||{},a=i.enable,s=i.func,l=i.equation,f=i.color,d=f===void 0?[0,0,0,0]:f;return{enable:!!a,func:{srcRGB:_0[s&&s.srcRGB||I.SRC_ALPHA],srcAlpha:_0[s&&s.srcAlpha||I.SRC_ALPHA],dstRGB:_0[s&&s.dstRGB||I.ONE_MINUS_SRC_ALPHA],dstAlpha:_0[s&&s.dstAlpha||I.ONE_MINUS_SRC_ALPHA]},equation:{rgb:rS[l&&l.rgb||I.FUNC_ADD],alpha:rS[l&&l.alpha||I.FUNC_ADD]},color:d}}},{key:"getStencilDrawParams",value:function(t){var n=t.stencil,i=n||{},a=i.enable,s=i.mask,l=s===void 0?-1:s,f=i.func,d=f===void 0?{cmp:I.ALWAYS,ref:0,mask:-1}:f,_=i.opFront,b=_===void 0?{fail:I.KEEP,zfail:I.KEEP,zpass:I.KEEP}:_,T=i.opBack,M=T===void 0?{fail:I.KEEP,zfail:I.KEEP,zpass:I.KEEP}:T;return{enable:!!a,mask:l,func:(0,H.Z)((0,H.Z)({},d),{},{cmp:nD[d.cmp]}),opFront:{fail:Bv[b.fail],zfail:Bv[b.zfail],zpass:Bv[b.zpass]},opBack:{fail:Bv[M.fail],zfail:Bv[M.zfail],zpass:Bv[M.zpass]}}}},{key:"initCullDrawParams",value:function(t){var n=t.cull;if(n){var i=n.enable,a=n.face,s=a===void 0?I.BACK:a;return{enable:!!i,face:rD[s]}}}},{key:"extractUniforms",value:function(t){var n=this,i={};return Object.keys(t).forEach(function(a){n.extractUniformsRecursively(a,t[a],i,"")}),i}},{key:"extractUniformsRecursively",value:function(t,n,i,a){var s=this;if(n===null||typeof n=="number"||typeof n=="boolean"||Array.isArray(n)&&typeof n[0]=="number"||uD(n)||n===""||"resize"in n){i["".concat(a&&a+".").concat(t)]=n;return}sD(n)&&Object.keys(n).forEach(function(l){s.extractUniformsRecursively(l,n[l],i,"".concat(a&&a+".").concat(t))}),Array.isArray(n)&&n.forEach(function(l,f){Object.keys(l).forEach(function(d){s.extractUniformsRecursively(d,l[d],i,"".concat(a&&a+".").concat(t,"[").concat(f,"]"))})})}}]),e}();function cD(e){return typeof WebGL2RenderingContext!="undefined"&&e instanceof WebGL2RenderingContext?!0:!!(e&&e._version===2)}var oS,sS,fD=(oS=(0,er.b2)(),oS(sS=function(){function e(){var r=this;(0,Q.Z)(this,e),(0,F.Z)(this,"uniformBuffers",[]),(0,F.Z)(this,"queryVerdorInfo",function(){return r.device.queryVendorInfo().platformString}),(0,F.Z)(this,"createModel",function(t){return new lD(r.device,t,r)}),(0,F.Z)(this,"createAttribute",function(t){return new Kk(r.device,t)}),(0,F.Z)(this,"createBuffer",function(t){return new aD(r.device,t)}),(0,F.Z)(this,"createElements",function(t){return new oD(r.device,t)}),(0,F.Z)(this,"createTexture2D",function(t){return new iS(r.device,t)}),(0,F.Z)(this,"createFramebuffer",function(t){return new aS(r.device,t)}),(0,F.Z)(this,"useFramebuffer",function(t,n){r.currentFramebuffer=t,r.beginFrame(),n(),r.endFrame(),r.currentFramebuffer=null}),(0,F.Z)(this,"clear",function(t){var n=t.color,i=t.depth,a=t.stencil,s=t.framebuffer,l=s===void 0?null:s;l&&(l.clearOptions={color:n,depth:i,stencil:a})}),(0,F.Z)(this,"viewport",function(t){var n=t.width,i=t.height;r.width=n,r.height=i}),(0,F.Z)(this,"readPixels",function(t){var n=t.framebuffer,i=t.x,a=t.y,s=t.width,l=t.height,f=r.device.createReadback(),d=n.colorTexture;return f.readTextureSync(d,i,a,s,l,new Uint8Array(s*l*4))}),(0,F.Z)(this,"getViewportSize",function(){return{width:r.width,height:r.height}}),(0,F.Z)(this,"getContainer",function(){var t;return(t=r.canvas)===null||t===void 0?void 0:t.parentElement}),(0,F.Z)(this,"getCanvas",function(){return r.canvas}),(0,F.Z)(this,"getGLContext",function(){return r.device.gl}),(0,F.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,Ft.Z)(_e().mark(function n(i,a){var s,l,f,d,_;return _e().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return s=a.enableWebGPU,l=a.shaderCompilerPath,this.canvas=i,f=s?new Wk({shaderCompilerPath:l}):new rk({targets:["webgl2","webgl1"],onContextLost:function(P){console.warn("context lost",P)},onContextCreationError:function(P){console.warn("context creation error",P)},onContextRestored:function(P){console.warn("context restored",P)}}),T.next=5,f.createSwapChain(i);case 5:d=T.sent,d.configureSwapChain(i.width,i.height),this.device=d.getDevice(),this.swapChain=d,this.currentFramebuffer=null,_=this.device.gl,this.extensionObject={OES_texture_float:!cD(_)&&this.device.OES_texture_float},this.mainColorRT=this.device.createRenderTargetFromTexture(this.device.createTexture({format:It.U8_RGBA_RT,width:i.width,height:i.height,usage:Ou.RENDER_TARGET})),this.mainDepthRT=this.device.createRenderTargetFromTexture(this.device.createTexture({format:It.D24_S8,width:i.width,height:i.height,usage:Ou.RENDER_TARGET}));case 14:case"end":return T.stop()}},n,this)}));function t(n,i){return r.apply(this,arguments)}return t}()},{key:"beginFrame",value:function(){var t=this.currentFramebuffer,n=this.swapChain,i=this.mainColorRT,a=this.mainDepthRT,s=n.getOnscreenTexture(),l=t?t.colorRenderTarget:i,f=t?null:s,d=t?t.depthRenderTarget:a,_=(t==null?void 0:t.clearOptions)||{},b=_.color,T=b===void 0?[0,0,0,0]:b,M=_.depth,P=M===void 0?1:M,D=_.stencil,G=D===void 0?0:D,q=l?Um(T[0]*255,T[1]*255,T[2]*255,T[3]):Ay,se=d?P:void 0,Se=d?G:void 0,Ve=this.device.createRenderPass({colorAttachment:[l],colorResolveTo:[f],colorClearColor:[q],depthStencilAttachment:d,depthClearValue:se,stencilClearValue:Se});this.renderPass=Ve}},{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}())||sS);function hD(e){var r=pD();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function pD(){if(typeof Reflect=="undefined"||!Reflect.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 Dy=["selectstart","selecting","selectend"],dD=function(e){(0,Fe.Z)(t,e);var r=hD(t);function t(n){var i,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,Q.Z)(this,t),i=r.call(this),(0,F.Z)((0,Me.Z)(i),"isEnable",!1),(0,F.Z)((0,Me.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,F.Z)((0,Me.Z)(i),"onDragging",function(s){i.endEvent=s,i.syncBoxBound(),i.emit("selecting",i.getLngLatBox(),i.startEvent,i.endEvent)}),(0,F.Z)((0,Me.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=a,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 a=Yi("div",void 0,this.container);a.classList.add("l7-select-box"),i&&a.classList.add(i),a.style.display="none",this.box=a}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,a=i.x,s=i.y,l=this.endEvent,f=l.x,d=l.y,_=Math.min(a,f),b=Math.min(s,d),T=Math.abs(a-f),M=Math.abs(s-d);this.box.style.top="".concat(b,"px"),this.box.style.left="".concat(_,"px"),this.box.style.width="".concat(T,"px"),this.box.style.height="".concat(M,"px")}},{key:"getLngLatBox",value:function(){var i=this.startEvent.lngLat,a=i.lng,s=i.lat,l=this.endEvent.lngLat,f=l.lng,d=l.lat;return kf([[a,s],[f,d]])}}]),t}(Ka.EventEmitter),vD=function(){function e(r){(0,Q.Z)(this,e);var t=r.id,n=r.map,i=r.canvas,a=r.renderer,s=a===void 0?"regl":a,l=wA();this.container=l,n.setContainer(l,t,i),l.bind(Ke.IRendererService).to(s==="regl"?qk:fD).inSingletonScope(),this.sceneService=l.get(Ke.ISceneService),this.mapService=l.get(Ke.IMapService),this.iconService=l.get(Ke.IIconService),this.fontService=l.get(Ke.IFontService),this.controlService=l.get(Ke.IControlService),this.layerService=l.get(Ke.ILayerService),this.debugService=l.get(Ke.IDebugService),this.debugService.setEnable(r.debug),this.markerService=l.get(Ke.IMarkerService),this.interactionService=l.get(Ke.IInteractionService),this.popupService=l.get(Ke.IPopupService),this.boxSelect=new dD(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,Ft.Z)(_e().mark(function n(i){return _e().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,Ft.Z)(_e().mark(function n(i){return _e().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 a=new t(n);a.init()})}},{key:"setBgColor",value:function(t){this.mapService.setBgColor(t)}},{key:"addLayer",value:function(t){var n=this,i=gm(this.container);if(t.setContainer(i,this.container),this.sceneService.addLayer(t),t.inited){var a=this.initMask(t);this.addMask(a,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,a=n.maskfence,s=n.maskColor,l=s===void 0?"#000":s,f=n.maskOpacity,d=f===void 0?0:f;if(!(!i||!a)){var _=new nx().source(a).shape("fill").style({color:l,opacity:d});return _}}},{key:"addMask",value:function(t,n){if(t){var i=this.getLayer(n);if(i){var a=gm(this.container);t.setContainer(a,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,Ft.Z)(_e().mark(function n(i,a){return _e().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,this.layerService.remove(i,a);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,Ft.Z)(_e().mark(function n(){return _e().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.layerService.removeAllLayers();case 2:case"end":return a.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 a=(0,_n.Z)(i,2),s=a[0],l=a[1];n.fontService.addIconFont(s,l)})}},{key:"addFontFace",value:function(t,n){var i=this;this.fontService.once("fontloaded",function(a){i.emit("fontloaded",a)}),this.fontService.addFontFace(t,n)}},{key:"addImage",value:function(){var r=(0,Ft.Z)(_e().mark(function n(i,a){return _e().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,this.iconService.addImage(i,a);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(Dy.includes(t)){var i;(i=this.boxSelect)===null||i===void 0||i.on(t,n)}else Ag.includes(t)?this.sceneService.on(t,n):this.mapService.on(t,n)}},{key:"once",value:function(t,n){if(Dy.includes(t)){var i;(i=this.boxSelect)===null||i===void 0||i.once(t,n)}else Ag.includes(t)?this.sceneService.once(t,n):this.mapService.once(t,n)}},{key:"emit",value:function(t,n){Ag.indexOf(t)===-1?this.mapService.on(t,n):this.sceneService.emit(t,n)}},{key:"off",value:function(t,n){if(Dy.includes(t)){var i;(i=this.boxSelect)===null||i===void 0||i.off(t,n)}else Ag.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(),a=i.fitBoundsOptions,s=i.animate;this.mapService.fitBounds(t,n||(0,H.Z)((0,H.Z)({},a),{},{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(Ke.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 Xr.REGISTERED_PROTOCOLS[t]}},{key:"startAnimate",value:function(){this.layerService.startAnimate()}},{key:"stopAnimate",value:function(){this.layerService.stopAnimate()}},{key:"getPointSizeRange",value:function(){return this.sceneService.getPointSizeRange()}},{key:"initComponent",value:function(t){this.controlService.init({container:Fs(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 r1({position:i}))}}],[{key:"addProtocol",value:function(t,n){Xr.REGISTERED_PROTOCOLS[t]=n}},{key:"removeProtocol",value:function(t){delete Xr.REGISTERED_PROTOCOLS[t]}}]),e}(),DN="2.20.13";function qm(e){"@babel/helpers - typeof";return qm=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},qm(e)}function uS(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 LN(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 wD}},{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,a=new Array(i>1?i-1:0),s=1;s1?i-1:0),s=1;sCD&&n?this.coordinateSystemService.setCoordinateSystem(to.LNGLAT_OFFSET):this.coordinateSystemService.setCoordinateSystem(to.LNGLAT)}}]),e}(),yS=Pi(Fv.prototype,"config",[pS],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_S=Pi(Fv.prototype,"configService",[dS],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xS=Pi(Fv.prototype,"coordinateSystemService",[vS],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),bS=Pi(Fv.prototype,"eventEmitter",[mS],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Fv))||gS);function Qm(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function b0(e,r){var t=Bh.fF([],r,e);return Bh.bA(t,t,1/t[3]),t}function UN(e,r){var t=e%r;return t<0?r+t:t}function zN(e,r,t){return t*r+(1-t)*e}function Od(e,r){if(!e)throw new Error(r||"viewport-mercator-project: assertion failed.")}var Sf=Math.PI,SS=Sf/4,Jh=Sf/180,AS=180/Sf,By=512,Fy=4003e4,MD=1.5;function TS(e){return Math.pow(2,e)}function ID(e){return Math.log2(e)}function E0(e,r){var t=(0,_n.Z)(e,2),n=t[0],i=t[1];Od(Number.isFinite(n)&&Number.isFinite(r)),Od(Number.isFinite(i)&&i>=-90&&i<=90,"invalid latitude"),r*=By;var a=n*Jh,s=i*Jh,l=r*(a+Sf)/(2*Sf),f=r*(Sf-Math.log(Math.tan(SS+s*.5)))/(2*Sf);return[l,f]}function Ny(e,r){var t=(0,_n.Z)(e,2),n=t[0],i=t[1];r*=By;var a=n/r*(2*Sf)-Sf,s=2*(Math.atan(Math.exp(Sf-i/r*(2*Sf)))-SS);return[a*AS,s*AS]}function ZN(e){var r=e.latitude;assert(Number.isFinite(r));var t=Math.cos(r*Jh);return ID(Fy*t)-9}function wS(e){var r=e.latitude,t=e.longitude,n=e.zoom,i=e.scale,a=e.highPrecision,s=a===void 0?!1:a;i=i!==void 0?i:TS(n),Od(Number.isFinite(r)&&Number.isFinite(t)&&Number.isFinite(i));var l={},f=By*i,d=Math.cos(r*Jh),_=f/360,b=_/d,T=f/Fy/d;if(l.pixelsPerMeter=[T,-T,T],l.metersPerPixel=[1/T,-1/T,1/T],l.pixelsPerDegree=[_,-b,T],l.degreesPerPixel=[1/_,-1/b,1/T],s){var M=Jh*Math.tan(r*Jh)/d,P=_*M/2,D=f/Fy*M,G=D/b*T;l.pixelsPerDegree2=[0,-P,D],l.pixelsPerMeter2=[G,0,G]}return l}function VN(e,r){var t=_slicedToArray(e,3),n=t[0],i=t[1],a=t[2],s=_slicedToArray(r,3),l=s[0],f=s[1],d=s[2],_=1,b=wS({longitude:n,latitude:i,scale:_,highPrecision:!0}),T=b.pixelsPerMeter,M=b.pixelsPerMeter2,P=E0(e,_);P[0]+=l*(T[0]+M[0]*f),P[1]+=f*(T[1]+M[1]*f);var D=Ny(P,_),G=(a||0)+(d||0);return Number.isFinite(a)||Number.isFinite(d)?[D[0],D[1],G]:D}function PD(e){var r=e.height,t=e.pitch,n=e.bearing,i=e.altitude,a=e.center,s=a===void 0?null:a,l=e.flipY,f=l===void 0?!1:l,d=Qm();return Ct.translate(d,d,[0,0,-i]),Ct.scale(d,d,[1,1,1/r]),Ct.rotateX(d,d,-t*Jh),Ct.rotateZ(d,d,n*Jh),f&&Ct.scale(d,d,[1,-1,1]),s&&Ct.translate(d,d,La.negate([],s)),d}function OD(e){var r=e.width,t=e.height,n=e.altitude,i=n===void 0?MD:n,a=e.pitch,s=a===void 0?0:a,l=e.nearZMultiplier,f=l===void 0?1:l,d=e.farZMultiplier,_=d===void 0?1:d,b=s*Jh,T=Math.atan(.5/i),M=Math.sin(T)*i/Math.sin(Math.PI/2-b-T),P=Math.cos(Math.PI/2-b)*M+i;return{fov:2*Math.atan(t/2/i),aspect:r/t,focalDistance:i,near:f,far:P*_}}function kD(e){var r=e.width,t=e.height,n=e.pitch,i=e.altitude,a=e.nearZMultiplier,s=e.farZMultiplier,l=OD({width:r,height:t,altitude:i,pitch:n,nearZMultiplier:a,farZMultiplier:s}),f=l.fov,d=l.aspect,_=l.near,b=l.far,T=Ct.perspective([],f,d,_,b);return T}function DD(e,r){var t=(0,_n.Z)(e,3),n=t[0],i=t[1],a=t[2],s=a===void 0?0:a;return Od(Number.isFinite(n)&&Number.isFinite(i)&&Number.isFinite(s)),b0(r,[n,i,s,1])}function CS(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=(0,_n.Z)(e,3),i=n[0],a=n[1],s=n[2];if(Od(Number.isFinite(i)&&Number.isFinite(a),"invalid pixel coordinate"),Number.isFinite(s)){var l=b0(r,[i,a,s,1]);return l}var f=b0(r,[i,a,0,1]),d=b0(r,[i,a,1,1]),_=f[2],b=d[2],T=_===b?0:((t||0)-_)/(b-_);return Dr.t7([],f,d,T)}var RS=Qm(),LD=function(){function e(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=r.width,n=r.height,i=r.viewMatrix,a=i===void 0?RS:i,s=r.projectionMatrix,l=s===void 0?RS:s;(0,Q.Z)(this,e),this.width=t||1,this.height=n||1,this.scale=1,this.pixelsPerMeter=1,this.viewMatrix=a,this.projectionMatrix=l;var f=Qm();Ct.multiply(f,f,this.projectionMatrix),Ct.multiply(f,f,this.viewMatrix),this.viewProjectionMatrix=f;var d=Qm();Ct.scale(d,d,[this.width/2,-this.height/2,1]),Ct.translate(d,d,[1,-1,0]),Ct.multiply(d,d,this.viewProjectionMatrix);var _=Ct.invert(Qm(),d);if(!_)throw new Error("Pixel project matrix not invertible");this.pixelProjectionMatrix=d,this.pixelUnprojectionMatrix=_,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&&Ct.equals(t.projectionMatrix,this.projectionMatrix)&&Ct.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,a=i===void 0?!0:i,s=this.projectPosition(t),l=DD(s,this.pixelProjectionMatrix),f=(0,_n.Z)(l,2),d=f[0],_=f[1],b=a?_:this.height-_;return t.length===2?[d,b]:[d,b,l[2]]}},{key:"unproject",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.topLeft,a=i===void 0?!0:i,s=n.targetZ,l=(0,_n.Z)(t,3),f=l[0],d=l[1],_=l[2],b=a?d:this.height-d,T=s&&s*this.pixelsPerMeter,M=CS([f,b,_],this.pixelUnprojectionMatrix,T),P=this.unprojectPosition(M),D=(0,_n.Z)(P,3),G=D[0],q=D[1],se=D[2];return Number.isFinite(_)?[G,q,se]:Number.isFinite(s)?[G,q,s]:[G,q]}},{key:"projectPosition",value:function(t){var n=this.projectFlat(t),i=(0,_n.Z)(n,2),a=i[0],s=i[1],l=(t[2]||0)*this.pixelsPerMeter;return[a,s,l]}},{key:"unprojectPosition",value:function(t){var n=this.unprojectFlat(t),i=(0,_n.Z)(n,2),a=i[0],s=i[1],l=(t[2]||0)/this.pixelsPerMeter;return[a,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 BD(e){var r=e.width,t=e.height,n=e.bounds,i=e.minExtent,a=i===void 0?0:i,s=e.maxZoom,l=s===void 0?24:s,f=e.padding,d=f===void 0?0:f,_=e.offset,b=_===void 0?[0,0]:_,T=(0,_n.Z)(n,2),M=(0,_n.Z)(T[0],2),P=M[0],D=M[1],G=(0,_n.Z)(T[1],2),q=G[0],se=G[1];if(Number.isFinite(d)){var Se=d;d={top:Se,bottom:Se,left:Se,right:Se}}else Od(Number.isFinite(d.top)&&Number.isFinite(d.bottom)&&Number.isFinite(d.left)&&Number.isFinite(d.right));var Ve=new MS({width:r,height:t,longitude:0,latitude:0,zoom:0}),nt=Ve.project([P,se]),st=Ve.project([q,D]),at=[Math.max(Math.abs(st[0]-nt[0]),a),Math.max(Math.abs(st[1]-nt[1]),a)],At=[r-d.left-d.right-Math.abs(b[0])*2,t-d.top-d.bottom-Math.abs(b[1])*2];Od(At[0]>0&&At[1]>0);var Wt=At[0]/at[0],Sr=At[1]/at[1],_r=(d.right-d.left)/2/Wt,Gr=(d.bottom-d.top)/2/Sr,Cn=[(st[0]+nt[0])/2+_r,(st[1]+nt[1])/2+Gr],wi=Ve.unproject(Cn),la=Ve.zoom+Math.log2(Math.abs(Math.min(Wt,Sr)));return{longitude:wi[0],latitude:wi[1],zoom:Math.min(la,l)}}var MS=function(e){(0,Fe.Z)(r,e);function r(){var t,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.width,a=n.height,s=n.latitude,l=s===void 0?0:s,f=n.longitude,d=f===void 0?0:f,_=n.zoom,b=_===void 0?0:_,T=n.pitch,M=T===void 0?0:T,P=n.bearing,D=P===void 0?0:P,G=n.altitude,q=G===void 0?1.5:G,se=n.nearZMultiplier,Se=n.farZMultiplier;(0,Q.Z)(this,r),i=i||1,a=a||1;var Ve=TS(b);q=Math.max(.75,q);var nt=E0([d,l],Ve);nt[2]=0;var st=kD({width:i,height:a,pitch:M,bearing:D,altitude:q,nearZMultiplier:se||1/a,farZMultiplier:Se||1.01}),at=PD({height:a,center:nt,pitch:M,bearing:D,altitude:q,flipY:!0});return t=(0,et.Z)(this,(0,Ae.Z)(r).call(this,{width:i,height:a,viewMatrix:at,projectionMatrix:st})),t.latitude=l,t.longitude=d,t.zoom=b,t.pitch=M,t.bearing=D,t.altitude=q,t.scale=Ve,t.center=nt,t.pixelsPerMeter=wS((0,Me.Z)((0,Me.Z)(t))).pixelsPerMeter[2],Object.freeze((0,Me.Z)((0,Me.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 E0(n,i)}},{key:"unprojectFlat",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.scale;return Ny(n,i)}},{key:"getMapCenterByLngLatPosition",value:function(n){var i=n.lngLat,a=n.pos,s=CS(a,this.pixelUnprojectionMatrix),l=E0(i,this.scale),f=Dr.IH([],l,Dr.tk([],s)),d=Dr.IH([],this.center,f);return Ny(d,this.scale)}},{key:"getLocationAtPoint",value:function(n){var i=n.lngLat,a=n.pos;return this.getMapCenterByLngLatPosition({lngLat:i,pos:a})}},{key:"fitBounds",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=this.width,s=this.height,l=BD(Object.assign({width:a,height:s,bounds:n},i)),f=l.longitude,d=l.latitude,_=l.zoom;return new r({width:a,height:s,longitude:f,latitude:d,zoom:_})}}]),r}(LD),FD=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,a=t.pitch,s=t.bearing,l=t.viewportHeight,f=t.viewportWidth;this.viewport=new MS({width:f,height:l,longitude:n&&n[0],latitude:n&&n[1],zoom:i,pitch:a,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}(),ND=["id","attributionControl","style","token","rotation","mapInstance"],IS,PS;function UD(e){var r=zD();return function(){var n=(0,Ae.Z)(e),i;if(r){var a=(0,Ae.Z)(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return(0,et.Z)(this,i)}}function zD(){if(typeof Reflect=="undefined"||!Reflect.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 ZD(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 a=r.body||r.getElementsByTagName("body")[0];a?a.parentNode.insertBefore(i,a):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}}ZD(`.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=Km();var VD=0,OS="101MlGsZ2AmmA&access_token=pk.eyJ1IjoiZXhhbXBsZXMiLCJhIjoiY2p0MG01MXRqMW45cjQzb2R6b2ptc3J4MSJ9.zA2W0IkI0c6KaAhJfk9bWg",jD=(IS=(0,er.b2)(),IS(PS=function(e){(0,Fe.Z)(t,e);var r=UD(t);function t(){var n;(0,Q.Z)(this,t);for(var i=arguments.length,a=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-a.x,f-a.y]}},{key:"lngLatToMercator",value:function(i,a){var s=window.mapboxgl.MercatorCoordinate.fromLngLat(i,a),l=s.x,f=l===void 0?0:l,d=s.y,_=d===void 0?0:d,b=s.z,T=b===void 0?0:b;return{x:f,y:_,z:T}}},{key:"getModelMatrix",value:function(i,a,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},d=window.mapboxgl.MercatorCoordinate.fromLngLat(i,a),_=d.meterInMercatorCoordinateUnits(),b=Ct.create();return Ct.translate(b,b,La.fromValues(d.x-f.x,d.y-f.y,d.z||0-f.z)),Ct.scale(b,b,La.fromValues(_*l[0],-_*l[1],_*l[2])),Ct.rotateX(b,b,s[0]),Ct.rotateY(b,b,s[1]),Ct.rotateZ(b,b,s[2]),b}},{key:"init",value:function(){var n=(0,Ft.Z)(_e().mark(function a(){var s=this,l,f,d,_,b,T,M,P,D,G,q,se,Se;return _e().wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:l=this.config,f=l.id,d=f===void 0?"map":f,_=l.attributionControl,b=_===void 0?!1:_,T=l.style,M=T===void 0?"light":T,P=l.token,D=P===void 0?OS:P,G=l.rotation,q=G===void 0?0:G,se=l.mapInstance,Se=(0,wa.Z)(l,ND),this.viewport=new FD,!se&&!window.mapboxgl&&console.error(this.configService.getSceneWarninfo("SDK")),D===OS&&M!=="blank"&&!window.mapboxgl.accessToken&&!se&&console.warn(this.configService.getSceneWarninfo("MapToken")),!se&&!window.mapboxgl.accessToken&&(window.mapboxgl.accessToken=D),se?(this.map=se,this.$mapContainer=this.map.getContainer()):(this.$mapContainer=this.creatMapContainer(d),this.map=new window.mapboxgl.Map((0,H.Z)({container:this.$mapContainer,style:this.getMapStyleValue(M),attributionControl:b,bearing:q},Se))),this.map.on("load",function(){s.handleCameraChanged()}),this.map.on("move",this.handleCameraChanged),this.handleCameraChanged();case 9:case"end":return nt.stop()}},a,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 a,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 OL(e,r){if(e==null)return{};var t={},n=Object.keys(e),i,a;for(a=0;a=0)&&(t[i]=e[i]);return t}var o6={exportImage:QT,fullscreen:nw,geoLocate:ow,layer:t1,layerSwitch:t1,logo:r1,mapTheme:vw,mouseLocation:yw,zoom:B5,scale:bw},s6=null,HS=U(10422);function WS(e,r){return BL(e)||LL(e,r)||DL(e,r)||kL()}function kL(){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 DL(e,r){if(e){if(typeof e=="string")return GS(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 GS(e,r)}}function GS(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 YL(e,r){if(e==null)return{};var t={},n=Object.keys(e),i,a;for(a=0;a=0)&&(t[i]=e[i]);return t}var qL=te.memo(function(r){var t=r.layer,n=r.source,i=n.data,a=$L(n,XL);return t.inited?t.setData(i,a):t.source(i,a),a.autoFit&&t.fitBounds(a&&a.fitBoundsOptions),null},Is()),c6=te.useEffect,KL=te.memo(function(r){var t=r.layer,n=r.style;return t.style(n),null},Is());function QL(e,r){return rB(e)||tB(e,r)||eB(e,r)||JL()}function JL(){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 eB(e,r){if(e){if(typeof e=="string")return qS(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 qS(e,r)}}function qS(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t=Math.abs(ce)?he-rt+ce:ce-rt+he,he=rt}he+Z>=0!=!!y&&ye.reverse()}},96542:function(sr){"use strict";sr.exports=ne;function ne(U,te){this.x=U,this.y=te}ne.prototype={clone:function(){return new ne(this.x,this.y)},add:function(U){return this.clone()._add(U)},sub:function(U){return this.clone()._sub(U)},multByPoint:function(U){return this.clone()._multByPoint(U)},divByPoint:function(U){return this.clone()._divByPoint(U)},mult:function(U){return this.clone()._mult(U)},div:function(U){return this.clone()._div(U)},rotate:function(U){return this.clone()._rotate(U)},rotateAround:function(U,te){return this.clone()._rotateAround(U,te)},matMult:function(U){return this.clone()._matMult(U)},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(U){return this.x===U.x&&this.y===U.y},dist:function(U){return Math.sqrt(this.distSqr(U))},distSqr:function(U){var te=U.x-this.x,ye=U.y-this.y;return te*te+ye*ye},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(U){return Math.atan2(this.y-U.y,this.x-U.x)},angleWith:function(U){return this.angleWithSep(U.x,U.y)},angleWithSep:function(U,te){return Math.atan2(this.x*te-this.y*U,this.x*U+this.y*te)},_matMult:function(U){var te=U[0]*this.x+U[1]*this.y,ye=U[2]*this.x+U[3]*this.y;return this.x=te,this.y=ye,this},_add:function(U){return this.x+=U.x,this.y+=U.y,this},_sub:function(U){return this.x-=U.x,this.y-=U.y,this},_mult:function(U){return this.x*=U,this.y*=U,this},_div:function(U){return this.x/=U,this.y/=U,this},_multByPoint:function(U){return this.x*=U.x,this.y*=U.y,this},_divByPoint:function(U){return this.x/=U.x,this.y/=U.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var U=this.y;return this.y=this.x,this.x=-U,this},_rotate:function(U){var te=Math.cos(U),ye=Math.sin(U),y=te*this.x-ye*this.y,he=ye*this.x+te*this.y;return this.x=y,this.y=he,this},_rotateAround:function(U,te){var ye=Math.cos(U),y=Math.sin(U),he=te.x+ye*(this.x-te.x)-y*(this.y-te.y),Z=te.y+y*(this.x-te.x)+ye*(this.y-te.y);return this.x=he,this.y=Z,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},ne.convert=function(U){return U instanceof ne?U:Array.isArray(U)?new ne(U[0],U[1]):U}},25865:function(sr){"use strict";sr.exports=U,sr.exports.default=U;var ne=1e20;function U(Z,pe,fe,it,ce,rt){this.fontSize=Z||24,this.buffer=pe===void 0?3:pe,this.cutoff=it||.25,this.fontFamily=ce||"sans-serif",this.fontWeight=rt||"normal",this.radius=fe||8;var vt=this.size=this.fontSize+this.buffer*2,tt=vt+this.buffer*2;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=vt,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(tt*tt),this.gridInner=new Float64Array(tt*tt),this.f=new Float64Array(tt),this.z=new Float64Array(tt+1),this.v=new Uint16Array(tt),this.useMetrics=this.ctx.measureText("A").actualBoundingBoxLeft!==void 0,this.middle=Math.round(vt/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function te(Z,pe,fe,it,ce,rt,vt){rt.fill(ne,0,pe*fe),vt.fill(0,0,pe*fe);for(var tt=(pe-it)/2,Ot=0;Ot-1);Ot++,rt[Ot]=tt,vt[Ot]=Xt,vt[Ot+1]=ne}for(tt=0,Ot=0;tt>3}if(rt--,ce===1||ce===2)vt+=fe.readSVarint(),tt+=fe.readSVarint(),ce===1&&(Xt&&Ot.push(Xt),Xt=[]),Xt.push(new te(vt,tt));else if(ce===7)Xt&&Xt.push(Xt[0].clone());else throw new Error("unknown command "+ce)}return Xt&&Ot.push(Xt),Ot},ye.prototype.bbox=function(){var fe=this._pbf;fe.pos=this._geometry;for(var it=fe.readVarint()+fe.pos,ce=1,rt=0,vt=0,tt=0,Ot=1/0,Xt=-1/0,Yt=1/0,ar=-1/0;fe.pos>3}if(rt--,ce===1||ce===2)vt+=fe.readSVarint(),tt+=fe.readSVarint(),vtXt&&(Xt=vt),ttar&&(ar=tt);else if(ce!==7)throw new Error("unknown command "+ce)}return[Ot,Yt,Xt,ar]},ye.prototype.toGeoJSON=function(fe,it,ce){var rt=this.extent*Math.pow(2,ce),vt=this.extent*fe,tt=this.extent*it,Ot=this.loadGeometry(),Xt=ye.types[this.type],Yt,ar;function Zt(Rr){for(var gr=0;gr>3;pe=it===1?Z.readString():it===2?Z.readFloat():it===3?Z.readDouble():it===4?Z.readVarint64():it===5?Z.readVarint():it===6?Z.readSVarint():it===7?Z.readBoolean():null}return pe}ye.prototype.feature=function(Z){if(Z<0||Z>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[Z];var pe=this._pbf.readVarint()+this._pbf.pos;return new te(this._pbf,pe,this.extent,this._keys,this._values)}},16965:function(sr,ne,U){"use strict";U.d(ne,{Z:function(){return ut}});var te=U(50959),ye=U(82187),y=U.n(ye),he=U(87017),Z=U(92576),pe=U(50483),fe=U(9146),it=U(40622),ce=function(ie,Le){var Pe={};for(var Ge in ie)Object.prototype.hasOwnProperty.call(ie,Ge)&&Le.indexOf(Ge)<0&&(Pe[Ge]=ie[Ge]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vt=0,Ge=Object.getOwnPropertySymbols(ie);Vt{var{prefixCls:Le,className:Pe,hoverable:Ge=!0}=ie,Vt=ce(ie,["prefixCls","className","hoverable"]);const{getPrefixCls:Et}=te.useContext(Z.E_),Jr=Et("card",Le),on=y()(`${Jr}-grid`,Pe,{[`${Jr}-grid-hoverable`]:Ge});return te.createElement("div",Object.assign({},Vt,{className:on}))},tt=U(25446),Ot=U(55985),Xt=U(87077),Yt=U(37324);const ar=ie=>{const{antCls:Le,componentCls:Pe,headerHeight:Ge,cardPaddingBase:Vt,tabsMarginBottom:Et}=ie;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:Ge,marginBottom:-1,padding:`0 ${(0,tt.bf)(Vt)}`,color:ie.colorTextHeading,fontWeight:ie.fontWeightStrong,fontSize:ie.headerFontSize,background:ie.headerBg,borderBottom:`${(0,tt.bf)(ie.lineWidth)} ${ie.lineType} ${ie.colorBorderSecondary}`,borderRadius:`${(0,tt.bf)(ie.borderRadiusLG)} ${(0,tt.bf)(ie.borderRadiusLG)} 0 0`},(0,Ot.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Ot.vS),{[` + > ${Pe}-typography, + > ${Pe}-typography-edit-content + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${Le}-tabs-top`]:{clear:"both",marginBottom:Et,color:ie.colorText,fontWeight:"normal",fontSize:ie.fontSize,"&-bar":{borderBottom:`${(0,tt.bf)(ie.lineWidth)} ${ie.lineType} ${ie.colorBorderSecondary}`}}})},Zt=ie=>{const{cardPaddingBase:Le,colorBorderSecondary:Pe,cardShadow:Ge,lineWidth:Vt}=ie;return{width:"33.33%",padding:Le,border:0,borderRadius:0,boxShadow:` + ${(0,tt.bf)(Vt)} 0 0 0 ${Pe}, + 0 ${(0,tt.bf)(Vt)} 0 0 ${Pe}, + ${(0,tt.bf)(Vt)} ${(0,tt.bf)(Vt)} 0 0 ${Pe}, + ${(0,tt.bf)(Vt)} 0 0 0 ${Pe} inset, + 0 ${(0,tt.bf)(Vt)} 0 0 ${Pe} inset; + `,transition:`all ${ie.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:Ge}}},bt=ie=>{const{componentCls:Le,iconCls:Pe,actionsLiMargin:Ge,cardActionsIconSize:Vt,colorBorderSecondary:Et,actionsBg:Jr}=ie;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:Jr,borderTop:`${(0,tt.bf)(ie.lineWidth)} ${ie.lineType} ${Et}`,display:"flex",borderRadius:`0 0 ${(0,tt.bf)(ie.borderRadiusLG)} ${(0,tt.bf)(ie.borderRadiusLG)}`},(0,Ot.dF)()),{"& > li":{margin:Ge,color:ie.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:ie.calc(ie.cardActionsIconSize).mul(2).equal(),fontSize:ie.fontSize,lineHeight:ie.lineHeight,cursor:"pointer","&:hover":{color:ie.colorPrimary,transition:`color ${ie.motionDurationMid}`},[`a:not(${Le}-btn), > ${Pe}`]:{display:"inline-block",width:"100%",color:ie.colorTextDescription,lineHeight:(0,tt.bf)(ie.fontHeight),transition:`color ${ie.motionDurationMid}`,"&:hover":{color:ie.colorPrimary}},[`> ${Pe}`]:{fontSize:Vt,lineHeight:(0,tt.bf)(ie.calc(Vt).mul(ie.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,tt.bf)(ie.lineWidth)} ${ie.lineType} ${Et}`}}})},St=ie=>Object.assign(Object.assign({margin:`${(0,tt.bf)(ie.calc(ie.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,Ot.dF)()),{"&-avatar":{paddingInlineEnd:ie.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:ie.marginXS}},"&-title":Object.assign({color:ie.colorTextHeading,fontWeight:ie.fontWeightStrong,fontSize:ie.fontSizeLG},Ot.vS),"&-description":{color:ie.colorTextDescription}}),Rr=ie=>{const{componentCls:Le,cardPaddingBase:Pe,colorFillAlter:Ge}=ie;return{[`${Le}-head`]:{padding:`0 ${(0,tt.bf)(Pe)}`,background:Ge,"&-title":{fontSize:ie.fontSize}},[`${Le}-body`]:{padding:`${(0,tt.bf)(ie.padding)} ${(0,tt.bf)(Pe)}`}}},gr=ie=>{const{componentCls:Le}=ie;return{overflow:"hidden",[`${Le}-body`]:{userSelect:"none"}}},fr=ie=>{const{antCls:Le,componentCls:Pe,cardShadow:Ge,cardHeadPadding:Vt,colorBorderSecondary:Et,boxShadowTertiary:Jr,cardPaddingBase:on,extraColor:Mr}=ie;return{[Pe]:Object.assign(Object.assign({},(0,Ot.Wf)(ie)),{position:"relative",background:ie.colorBgContainer,borderRadius:ie.borderRadiusLG,[`&:not(${Pe}-bordered)`]:{boxShadow:Jr},[`${Pe}-head`]:ar(ie),[`${Pe}-extra`]:{marginInlineStart:"auto",color:Mr,fontWeight:"normal",fontSize:ie.fontSize},[`${Pe}-body`]:Object.assign({padding:on,borderRadius:` 0 0 ${(0,tt.bf)(ie.borderRadiusLG)} ${(0,tt.bf)(ie.borderRadiusLG)}`},(0,Ot.dF)()),[`${Pe}-grid`]:Zt(ie),[`${Pe}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${Le}-image-mask`]:{borderRadius:`${(0,tt.bf)(ie.borderRadiusLG)} ${(0,tt.bf)(ie.borderRadiusLG)} 0 0`}},[`${Pe}-actions`]:bt(ie),[`${Pe}-meta`]:St(ie)}),[`${Pe}-bordered`]:{border:`${(0,tt.bf)(ie.lineWidth)} ${ie.lineType} ${Et}`,[`${Pe}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${Pe}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${ie.motionDurationMid}, border-color ${ie.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:Ge}},[`${Pe}-contain-grid`]:{borderRadius:`${(0,tt.bf)(ie.borderRadiusLG)} ${(0,tt.bf)(ie.borderRadiusLG)} 0 0 `,[`${Pe}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${Pe}-loading) ${Pe}-body`]:{marginBlockStart:ie.calc(ie.lineWidth).mul(-1).equal(),marginInlineStart:ie.calc(ie.lineWidth).mul(-1).equal(),padding:0}},[`${Pe}-contain-tabs`]:{[`> ${Pe}-head`]:{minHeight:0,[`${Pe}-head-title, ${Pe}-extra`]:{paddingTop:Vt}}},[`${Pe}-type-inner`]:Rr(ie),[`${Pe}-loading`]:gr(ie),[`${Pe}-rtl`]:{direction:"rtl"}}},Mt=ie=>{const{componentCls:Le,cardPaddingSM:Pe,headerHeightSM:Ge,headerFontSizeSM:Vt}=ie;return{[`${Le}-small`]:{[`> ${Le}-head`]:{minHeight:Ge,padding:`0 ${(0,tt.bf)(Pe)}`,fontSize:Vt,[`> ${Le}-head-wrapper`]:{[`> ${Le}-extra`]:{fontSize:ie.fontSize}}},[`> ${Le}-body`]:{padding:Pe}},[`${Le}-small${Le}-contain-tabs`]:{[`> ${Le}-head`]:{[`${Le}-head-title, ${Le}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},ft=ie=>({headerBg:"transparent",headerFontSize:ie.fontSizeLG,headerFontSizeSM:ie.fontSize,headerHeight:ie.fontSizeLG*ie.lineHeightLG+ie.padding*2,headerHeightSM:ie.fontSize*ie.lineHeight+ie.paddingXS*2,actionsBg:ie.colorBgContainer,actionsLiMargin:`${ie.paddingSM}px 0`,tabsMarginBottom:-ie.padding-ie.lineWidth,extraColor:ie.colorText});var kt=(0,Xt.I$)("Card",ie=>{const Le=(0,Yt.TS)(ie,{cardShadow:ie.boxShadowCard,cardHeadPadding:ie.padding,cardPaddingBase:ie.paddingLG,cardActionsIconSize:ie.fontSize,cardPaddingSM:12});return[fr(Le),Mt(Le)]},ft),qe=function(ie,Le){var Pe={};for(var Ge in ie)Object.prototype.hasOwnProperty.call(ie,Ge)&&Le.indexOf(Ge)<0&&(Pe[Ge]=ie[Ge]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vt=0,Ge=Object.getOwnPropertySymbols(ie);Vt{const{prefixCls:Le,actions:Pe=[]}=ie;return te.createElement("ul",{className:`${Le}-actions`},Pe.map((Ge,Vt)=>{const Et=`action-${Vt}`;return te.createElement("li",{style:{width:`${100/Pe.length}%`},key:Et},te.createElement("span",null,Ge))}))};var oe=te.forwardRef((ie,Le)=>{const{prefixCls:Pe,className:Ge,rootClassName:Vt,style:Et,extra:Jr,headStyle:on={},bodyStyle:Mr={},title:Dn,loading:bn,bordered:rn=!0,size:yi,type:ti,cover:Zi,actions:En,tabList:Rn,children:sa,activeTabKey:ki,defaultActiveTabKey:ba,tabBarExtraContent:fo,hoverable:Re,tabProps:Ea={}}=ie,va=qe(ie,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:Za,direction:Ms,card:ho}=te.useContext(Z.E_),Zo=$=>{var ee;(ee=ie.onTabChange)===null||ee===void 0||ee.call(ie,$)},jt=te.useMemo(()=>{let $=!1;return te.Children.forEach(sa,ee=>{ee&&ee.type&&ee.type===vt&&($=!0)}),$},[sa]),pr=Za("card",Pe),[Vr,en,Ln]=kt(pr),Gi=te.createElement(fe.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},sa),ue=ki!==void 0,k=Object.assign(Object.assign({},Ea),{[ue?"activeKey":"defaultActiveKey"]:ue?ki:ba,tabBarExtraContent:fo});let z;const ae=(0,pe.Z)(yi),Ee=!ae||ae==="default"?"large":ae,De=Rn?te.createElement(it.Z,Object.assign({size:Ee},k,{className:`${pr}-head-tabs`,onChange:Zo,items:Rn.map($=>{var{tab:ee}=$,xe=qe($,["tab"]);return Object.assign({label:ee},xe)})})):null;(Dn||Jr||De)&&(z=te.createElement("div",{className:`${pr}-head`,style:on},te.createElement("div",{className:`${pr}-head-wrapper`},Dn&&te.createElement("div",{className:`${pr}-head-title`},Dn),Jr&&te.createElement("div",{className:`${pr}-extra`},Jr)),De));const zt=Zi?te.createElement("div",{className:`${pr}-cover`},Zi):null,Tt=te.createElement("div",{className:`${pr}-body`,style:Mr},bn?Gi:sa),Rt=En&&En.length?te.createElement(Dt,{prefixCls:pr,actions:En}):null,dt=(0,he.Z)(va,["onTabChange"]),N=y()(pr,ho==null?void 0:ho.className,{[`${pr}-loading`]:bn,[`${pr}-bordered`]:rn,[`${pr}-hoverable`]:Re,[`${pr}-contain-grid`]:jt,[`${pr}-contain-tabs`]:Rn&&Rn.length,[`${pr}-${ae}`]:ae,[`${pr}-type-${ti}`]:!!ti,[`${pr}-rtl`]:Ms==="rtl"},Ge,Vt,en,Ln),B=Object.assign(Object.assign({},ho==null?void 0:ho.style),Et);return Vr(te.createElement("div",Object.assign({ref:Le},dt,{className:N,style:B}),z,zt,Tt,Rt))}),H=function(ie,Le){var Pe={};for(var Ge in ie)Object.prototype.hasOwnProperty.call(ie,Ge)&&Le.indexOf(Ge)<0&&(Pe[Ge]=ie[Ge]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vt=0,Ge=Object.getOwnPropertySymbols(ie);Vt{const{prefixCls:Le,className:Pe,avatar:Ge,title:Vt,description:Et}=ie,Jr=H(ie,["prefixCls","className","avatar","title","description"]),{getPrefixCls:on}=te.useContext(Z.E_),Mr=on("card",Le),Dn=y()(`${Mr}-meta`,Pe),bn=Ge?te.createElement("div",{className:`${Mr}-meta-avatar`},Ge):null,rn=Vt?te.createElement("div",{className:`${Mr}-meta-title`},Vt):null,yi=Et?te.createElement("div",{className:`${Mr}-meta-description`},Et):null,ti=rn||yi?te.createElement("div",{className:`${Mr}-meta-detail`},rn,yi):null;return te.createElement("div",Object.assign({},Jr,{className:Dn}),bn,ti)};const we=oe;we.Grid=vt,we.Meta=Be;var ut=we},24223:function(sr,ne,U){"use strict";U.d(ne,{Z:function(){return kt}});var te=U(50959),ye=U(97950),y=U(37865),he=U(82187),Z=U.n(he),pe=U(92576),fe=U(9146),ce=qe=>{const{value:Dt,formatter:dr,precision:oe,decimalSeparator:H,groupSeparator:re="",prefixCls:Be}=qe;let we;if(typeof dr=="function")we=dr(Dt);else{const ut=String(Dt),ie=ut.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ie||ut==="-")we=ut;else{const Le=ie[1];let Pe=ie[2]||"0",Ge=ie[4]||"";Pe=Pe.replace(/\B(?=(\d{3})+(?!\d))/g,re),typeof oe=="number"&&(Ge=Ge.padEnd(oe,"0").slice(0,oe>0?oe:0)),Ge&&(Ge=`${H}${Ge}`),we=[te.createElement("span",{key:"int",className:`${Be}-content-value-int`},Le,Pe),Ge&&te.createElement("span",{key:"decimal",className:`${Be}-content-value-decimal`},Ge)]}}return te.createElement("span",{className:`${Be}-content-value`},we)},rt=U(55985),vt=U(87077),tt=U(37324);const Ot=qe=>{const{componentCls:Dt,marginXXS:dr,padding:oe,colorTextDescription:H,titleFontSize:re,colorTextHeading:Be,contentFontSize:we,fontFamily:ut}=qe;return{[`${Dt}`]:Object.assign(Object.assign({},(0,rt.Wf)(qe)),{[`${Dt}-title`]:{marginBottom:dr,color:H,fontSize:re},[`${Dt}-skeleton`]:{paddingTop:oe},[`${Dt}-content`]:{color:Be,fontSize:we,fontFamily:ut,[`${Dt}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Dt}-content-prefix, ${Dt}-content-suffix`]:{display:"inline-block"},[`${Dt}-content-prefix`]:{marginInlineEnd:dr},[`${Dt}-content-suffix`]:{marginInlineStart:dr}}})}},Xt=qe=>{const{fontSizeHeading3:Dt,fontSize:dr}=qe;return{titleFontSize:dr,contentFontSize:Dt}};var Yt=(0,vt.I$)("Statistic",qe=>{const Dt=(0,tt.TS)(qe,{});return[Ot(Dt)]},Xt),Zt=qe=>{const{prefixCls:Dt,className:dr,rootClassName:oe,style:H,valueStyle:re,value:Be=0,title:we,valueRender:ut,prefix:ie,suffix:Le,loading:Pe=!1,onMouseEnter:Ge,onMouseLeave:Vt,decimalSeparator:Et=".",groupSeparator:Jr=","}=qe,{getPrefixCls:on,direction:Mr,statistic:Dn}=te.useContext(pe.E_),bn=on("statistic",Dt),[rn,yi,ti]=Yt(bn),Zi=te.createElement(ce,Object.assign({decimalSeparator:Et,groupSeparator:Jr,prefixCls:bn},qe,{value:Be})),En=Z()(bn,{[`${bn}-rtl`]:Mr==="rtl"},Dn==null?void 0:Dn.className,dr,oe,yi,ti);return rn(te.createElement("div",{className:En,style:Object.assign(Object.assign({},Dn==null?void 0:Dn.style),H),onMouseEnter:Ge,onMouseLeave:Vt},we&&te.createElement("div",{className:`${bn}-title`},we),te.createElement(fe.Z,{paragraph:!1,loading:Pe,className:`${bn}-skeleton`},te.createElement("div",{style:re,className:`${bn}-content`},ie&&te.createElement("span",{className:`${bn}-content-prefix`},ie),ut?ut(Zi):Zi,Le&&te.createElement("span",{className:`${bn}-content-suffix`},Le)))))};const bt=[["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 St(qe,Dt){let dr=qe;const oe=/\[[^\]]*]/g,H=(Dt.match(oe)||[]).map(ut=>ut.slice(1,-1)),re=Dt.replace(oe,"[]"),Be=bt.reduce((ut,ie)=>{let[Le,Pe]=ie;if(ut.includes(Le)){const Ge=Math.floor(dr/Pe);return dr-=Ge*Pe,ut.replace(new RegExp(`${Le}+`,"g"),Vt=>{const Et=Vt.length;return Ge.toString().padStart(Et,"0")})}return ut},re);let we=0;return Be.replace(oe,()=>{const ut=H[we];return we+=1,ut})}function Rr(qe,Dt){const{format:dr=""}=Dt,oe=new Date(qe).getTime(),H=Date.now(),re=Math.max(oe-H,0);return St(re,dr)}const gr=1e3/30;function fr(qe){return new Date(qe).getTime()}const Mt=qe=>{const{value:Dt,format:dr="HH:mm:ss",onChange:oe,onFinish:H}=qe,re=(0,ye.Z)(),Be=te.useRef(null),we=()=>{H==null||H(),Be.current&&(clearInterval(Be.current),Be.current=null)},ut=()=>{const Pe=fr(Dt);Pe>=Date.now()&&(Be.current=setInterval(()=>{re(),oe==null||oe(Pe-Date.now()),Pe(ut(),()=>{Be.current&&(clearInterval(Be.current),Be.current=null)}),[Dt]);const ie=(Pe,Ge)=>Rr(Pe,Object.assign(Object.assign({},Ge),{format:dr})),Le=Pe=>(0,y.Tm)(Pe,{title:void 0});return te.createElement(Zt,Object.assign({},qe,{valueRender:Le,formatter:ie}))};var ft=te.memo(Mt);Zt.Countdown=ft;var kt=Zt},75734:function(sr){"use strict";sr.exports=ne,sr.exports.default=ne;function ne(re,Be,we){we=we||2;var ut=Be&&Be.length,ie=ut?Be[0]*we:re.length,Le=U(re,0,ie,we,!0),Pe=[];if(!Le||Le.next===Le.prev)return Pe;var Ge,Vt,Et,Jr,on,Mr,Dn;if(ut&&(Le=fe(re,Be,Le,we)),re.length>80*we){Ge=Et=re[0],Vt=Jr=re[1];for(var bn=we;bnEt&&(Et=on),Mr>Jr&&(Jr=Mr);Dn=Math.max(Et-Ge,Jr-Vt),Dn=Dn!==0?32767/Dn:0}return ye(Le,Pe,we,Ge,Vt,Dn,0),Pe}function U(re,Be,we,ut,ie){var Le,Pe;if(ie===H(re,Be,we,ut)>0)for(Le=Be;Le=Be;Le-=ut)Pe=Dt(Le,re[Le],re[Le+1],Pe);return Pe&&St(Pe,Pe.next)&&(dr(Pe),Pe=Pe.next),Pe}function te(re,Be){if(!re)return re;Be||(Be=re);var we=re,ut;do if(ut=!1,!we.steiner&&(St(we,we.next)||bt(we.prev,we,we.next)===0)){if(dr(we),we=Be=we.prev,we===we.next)break;ut=!0}else we=we.next;while(ut||we!==Be);return Be}function ye(re,Be,we,ut,ie,Le,Pe){if(re){!Pe&&Le&&tt(re,ut,ie,Le);for(var Ge=re,Vt,Et;re.prev!==re.next;){if(Vt=re.prev,Et=re.next,Le?he(re,ut,ie,Le):y(re)){Be.push(Vt.i/we|0),Be.push(re.i/we|0),Be.push(Et.i/we|0),dr(re),re=Et.next,Ge=Et.next;continue}if(re=Et,re===Ge){Pe?Pe===1?(re=Z(te(re),Be,we),ye(re,Be,we,ut,ie,Le,2)):Pe===2&&pe(re,Be,we,ut,ie,Le):ye(te(re),Be,we,ut,ie,Le,1);break}}}}function y(re){var Be=re.prev,we=re,ut=re.next;if(bt(Be,we,ut)>=0)return!1;for(var ie=Be.x,Le=we.x,Pe=ut.x,Ge=Be.y,Vt=we.y,Et=ut.y,Jr=ieLe?ie>Pe?ie:Pe:Le>Pe?Le:Pe,Dn=Ge>Vt?Ge>Et?Ge:Et:Vt>Et?Vt:Et,bn=ut.next;bn!==Be;){if(bn.x>=Jr&&bn.x<=Mr&&bn.y>=on&&bn.y<=Dn&&ar(ie,Ge,Le,Vt,Pe,Et,bn.x,bn.y)&&bt(bn.prev,bn,bn.next)>=0)return!1;bn=bn.next}return!0}function he(re,Be,we,ut){var ie=re.prev,Le=re,Pe=re.next;if(bt(ie,Le,Pe)>=0)return!1;for(var Ge=ie.x,Vt=Le.x,Et=Pe.x,Jr=ie.y,on=Le.y,Mr=Pe.y,Dn=GeVt?Ge>Et?Ge:Et:Vt>Et?Vt:Et,yi=Jr>on?Jr>Mr?Jr:Mr:on>Mr?on:Mr,ti=Xt(Dn,bn,Be,we,ut),Zi=Xt(rn,yi,Be,we,ut),En=re.prevZ,Rn=re.nextZ;En&&En.z>=ti&&Rn&&Rn.z<=Zi;){if(En.x>=Dn&&En.x<=rn&&En.y>=bn&&En.y<=yi&&En!==ie&&En!==Pe&&ar(Ge,Jr,Vt,on,Et,Mr,En.x,En.y)&&bt(En.prev,En,En.next)>=0||(En=En.prevZ,Rn.x>=Dn&&Rn.x<=rn&&Rn.y>=bn&&Rn.y<=yi&&Rn!==ie&&Rn!==Pe&&ar(Ge,Jr,Vt,on,Et,Mr,Rn.x,Rn.y)&&bt(Rn.prev,Rn,Rn.next)>=0))return!1;Rn=Rn.nextZ}for(;En&&En.z>=ti;){if(En.x>=Dn&&En.x<=rn&&En.y>=bn&&En.y<=yi&&En!==ie&&En!==Pe&&ar(Ge,Jr,Vt,on,Et,Mr,En.x,En.y)&&bt(En.prev,En,En.next)>=0)return!1;En=En.prevZ}for(;Rn&&Rn.z<=Zi;){if(Rn.x>=Dn&&Rn.x<=rn&&Rn.y>=bn&&Rn.y<=yi&&Rn!==ie&&Rn!==Pe&&ar(Ge,Jr,Vt,on,Et,Mr,Rn.x,Rn.y)&&bt(Rn.prev,Rn,Rn.next)>=0)return!1;Rn=Rn.nextZ}return!0}function Z(re,Be,we){var ut=re;do{var ie=ut.prev,Le=ut.next.next;!St(ie,Le)&&Rr(ie,ut,ut.next,Le)&&ft(ie,Le)&&ft(Le,ie)&&(Be.push(ie.i/we|0),Be.push(ut.i/we|0),Be.push(Le.i/we|0),dr(ut),dr(ut.next),ut=re=Le),ut=ut.next}while(ut!==re);return te(ut)}function pe(re,Be,we,ut,ie,Le){var Pe=re;do{for(var Ge=Pe.next.next;Ge!==Pe.prev;){if(Pe.i!==Ge.i&&Zt(Pe,Ge)){var Vt=qe(Pe,Ge);Pe=te(Pe,Pe.next),Vt=te(Vt,Vt.next),ye(Pe,Be,we,ut,ie,Le,0),ye(Vt,Be,we,ut,ie,Le,0);return}Ge=Ge.next}Pe=Pe.next}while(Pe!==re)}function fe(re,Be,we,ut){var ie=[],Le,Pe,Ge,Vt,Et;for(Le=0,Pe=Be.length;Le=we.next.y&&we.next.y!==we.y){var Ge=we.x+(ie-we.y)*(we.next.x-we.x)/(we.next.y-we.y);if(Ge<=ut&&Ge>Le&&(Le=Ge,Pe=we.x=we.x&&we.x>=Et&&ut!==we.x&&ar(iePe.x||we.x===Pe.x&&vt(Pe,we)))&&(Pe=we,on=Mr)),we=we.next;while(we!==Vt);return Pe}function vt(re,Be){return bt(re.prev,re,Be.prev)<0&&bt(Be.next,re,re.next)<0}function tt(re,Be,we,ut){var ie=re;do ie.z===0&&(ie.z=Xt(ie.x,ie.y,Be,we,ut)),ie.prevZ=ie.prev,ie.nextZ=ie.next,ie=ie.next;while(ie!==re);ie.prevZ.nextZ=null,ie.prevZ=null,Ot(ie)}function Ot(re){var Be,we,ut,ie,Le,Pe,Ge,Vt,Et=1;do{for(we=re,re=null,Le=null,Pe=0;we;){for(Pe++,ut=we,Ge=0,Be=0;Be0||Vt>0&&ut;)Ge!==0&&(Vt===0||!ut||we.z<=ut.z)?(ie=we,we=we.nextZ,Ge--):(ie=ut,ut=ut.nextZ,Vt--),Le?Le.nextZ=ie:re=ie,ie.prevZ=Le,Le=ie;we=ut}Le.nextZ=null,Et*=2}while(Pe>1);return re}function Xt(re,Be,we,ut,ie){return re=(re-we)*ie|0,Be=(Be-ut)*ie|0,re=(re|re<<8)&16711935,re=(re|re<<4)&252645135,re=(re|re<<2)&858993459,re=(re|re<<1)&1431655765,Be=(Be|Be<<8)&16711935,Be=(Be|Be<<4)&252645135,Be=(Be|Be<<2)&858993459,Be=(Be|Be<<1)&1431655765,re|Be<<1}function Yt(re){var Be=re,we=re;do(Be.x=(re-Pe)*(Le-Ge)&&(re-Pe)*(ut-Ge)>=(we-Pe)*(Be-Ge)&&(we-Pe)*(Le-Ge)>=(ie-Pe)*(ut-Ge)}function Zt(re,Be){return re.next.i!==Be.i&&re.prev.i!==Be.i&&!Mt(re,Be)&&(ft(re,Be)&&ft(Be,re)&&kt(re,Be)&&(bt(re.prev,re,Be.prev)||bt(re,Be.prev,Be))||St(re,Be)&&bt(re.prev,re,re.next)>0&&bt(Be.prev,Be,Be.next)>0)}function bt(re,Be,we){return(Be.y-re.y)*(we.x-Be.x)-(Be.x-re.x)*(we.y-Be.y)}function St(re,Be){return re.x===Be.x&&re.y===Be.y}function Rr(re,Be,we,ut){var ie=fr(bt(re,Be,we)),Le=fr(bt(re,Be,ut)),Pe=fr(bt(we,ut,re)),Ge=fr(bt(we,ut,Be));return!!(ie!==Le&&Pe!==Ge||ie===0&&gr(re,we,Be)||Le===0&&gr(re,ut,Be)||Pe===0&&gr(we,re,ut)||Ge===0&&gr(we,Be,ut))}function gr(re,Be,we){return Be.x<=Math.max(re.x,we.x)&&Be.x>=Math.min(re.x,we.x)&&Be.y<=Math.max(re.y,we.y)&&Be.y>=Math.min(re.y,we.y)}function fr(re){return re>0?1:re<0?-1:0}function Mt(re,Be){var we=re;do{if(we.i!==re.i&&we.next.i!==re.i&&we.i!==Be.i&&we.next.i!==Be.i&&Rr(we,we.next,re,Be))return!0;we=we.next}while(we!==re);return!1}function ft(re,Be){return bt(re.prev,re,re.next)<0?bt(re,Be,re.next)>=0&&bt(re,re.prev,Be)>=0:bt(re,Be,re.prev)<0||bt(re,re.next,Be)<0}function kt(re,Be){var we=re,ut=!1,ie=(re.x+Be.x)/2,Le=(re.y+Be.y)/2;do we.y>Le!=we.next.y>Le&&we.next.y!==we.y&&ie<(we.next.x-we.x)*(Le-we.y)/(we.next.y-we.y)+we.x&&(ut=!ut),we=we.next;while(we!==re);return ut}function qe(re,Be){var we=new oe(re.i,re.x,re.y),ut=new oe(Be.i,Be.x,Be.y),ie=re.next,Le=Be.prev;return re.next=Be,Be.prev=re,we.next=ie,ie.prev=we,ut.next=we,we.prev=ut,Le.next=ut,ut.prev=Le,ut}function Dt(re,Be,we,ut){var ie=new oe(re,Be,we);return ut?(ie.next=ut.next,ie.prev=ut,ut.next.prev=ie,ut.next=ie):(ie.prev=ie,ie.next=ie),ie}function dr(re){re.next.prev=re.prev,re.prev.next=re.next,re.prevZ&&(re.prevZ.nextZ=re.nextZ),re.nextZ&&(re.nextZ.prevZ=re.prevZ)}function oe(re,Be,we){this.i=re,this.x=Be,this.y=we,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}ne.deviation=function(re,Be,we,ut){var ie=Be&&Be.length,Le=ie?Be[0]*we:re.length,Pe=Math.abs(H(re,0,Le,we));if(ie)for(var Ge=0,Vt=Be.length;Ge0&&(ut+=re[ie-1].length,we.holes.push(ut))}return we}},31204:function(sr){function ne(te){var ye=te.target||te.srcElement;ye.__resizeRAF__&&cancelAnimationFrame(ye.__resizeRAF__),ye.__resizeRAF__=requestAnimationFrame(function(){var y=ye.__resizeTrigger__,he=y&&y.__resizeListeners__;he&&he.forEach(function(Z){Z.call(y,te)})})}var U=function(ye,y){var he=this,Z=he.document,pe,fe=Z.attachEvent;typeof navigator!="undefined"&&(pe=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/));function it(){this.contentDocument.defaultView.__resizeTrigger__=this.__resizeElement__,this.contentDocument.defaultView.addEventListener("resize",ne)}if(!ye.__resizeListeners__)if(ye.__resizeListeners__=[],fe)ye.__resizeTrigger__=ye,ye.attachEvent("onresize",ne);else{getComputedStyle(ye).position==="static"&&(ye.style.position="relative");var ce=ye.__resizeTrigger__=Z.createElement("object");ce.setAttribute("style","position: absolute; top: 0; left: 0; height: 100%; width: 100%; pointer-events: none; z-index: -1; opacity: 0;"),ce.setAttribute("class","resize-sensor"),ce.setAttribute("tabindex","-1"),ce.setAttribute("title",""),ce.__resizeElement__=ye,ce.onload=it,ce.type="text/html",pe&&ye.appendChild(ce),ce.data="about:blank",pe||ye.appendChild(ce)}ye.__resizeListeners__.push(y)};sr.exports=typeof window=="undefined"?U:U.bind(window),sr.exports.unbind=function(te,ye){var y=document.attachEvent,he=te.__resizeListeners__||[];if(ye){var Z=he.indexOf(ye);Z!==-1&&he.splice(Z,1)}else he=te.__resizeListeners__=[];if(!he.length){if(y)te.detachEvent("onresize",ne);else if(te.__resizeTrigger__){var pe=te.__resizeTrigger__.contentDocument,fe=pe&&pe.defaultView;fe&&(fe.removeEventListener("resize",ne),delete fe.__resizeTrigger__),te.__resizeTrigger__=!te.removeChild(te.__resizeTrigger__)}delete te.__resizeListeners__}}},11312:function(sr){"use strict";var ne=Object.prototype.hasOwnProperty,U="~";function te(){}Object.create&&(te.prototype=Object.create(null),new te().__proto__||(U=!1));function ye(pe,fe,it){this.fn=pe,this.context=fe,this.once=it||!1}function y(pe,fe,it,ce,rt){if(typeof it!="function")throw new TypeError("The listener must be a function");var vt=new ye(it,ce||pe,rt),tt=U?U+fe:fe;return pe._events[tt]?pe._events[tt].fn?pe._events[tt]=[pe._events[tt],vt]:pe._events[tt].push(vt):(pe._events[tt]=vt,pe._eventsCount++),pe}function he(pe,fe){--pe._eventsCount===0?pe._events=new te:delete pe._events[fe]}function Z(){this._events=new te,this._eventsCount=0}Z.prototype.eventNames=function(){var fe=[],it,ce;if(this._eventsCount===0)return fe;for(ce in it=this._events)ne.call(it,ce)&&fe.push(U?ce.slice(1):ce);return Object.getOwnPropertySymbols?fe.concat(Object.getOwnPropertySymbols(it)):fe},Z.prototype.listeners=function(fe){var it=U?U+fe:fe,ce=this._events[it];if(!ce)return[];if(ce.fn)return[ce.fn];for(var rt=0,vt=ce.length,tt=new Array(vt);rt\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",ji=ye.console&&(ye.console.warn||ye.console.log);return ji&&ji.call(ye.console,lr,kn),ge.apply(this,arguments)}}var ar;typeof Object.assign!="function"?ar=function(ke){if(ke===Z||ke===null)throw new TypeError("Cannot convert undefined or null to object");for(var gt=Object(ke),lr=1;lr-1}function Dt(ge){return ge.trim().split(/\s+/g)}function dr(ge,ke,gt){if(ge.indexOf&&!gt)return ge.indexOf(ke);for(var lr=0;lrpo[ke]}):lr=lr.sort()),lr}function re(ge,ke){for(var gt,lr,Kr=ke[0].toUpperCase()+ke.slice(1),kn=0;kn1&&!gt.firstMultiple?gt.firstMultiple=pr(ke):Kr===1&&(gt.firstMultiple=!1);var kn=gt.firstInput,ji=gt.firstMultiple,go=ji?ji.center:kn.center,Co=ke.center=Vr(lr);ke.timeStamp=vt(),ke.deltaTime=ke.timeStamp-kn.timeStamp,ke.angle=ue(go,Co),ke.distance=Gi(go,Co),Zo(gt,ke),ke.offsetDirection=Ln(ke.deltaX,ke.deltaY);var po=en(ke.deltaTime,ke.deltaX,ke.deltaY);ke.overallVelocityX=po.x,ke.overallVelocityY=po.y,ke.overallVelocity=rt(po.x)>rt(po.y)?po.x:po.y,ke.scale=ji?z(ji.pointers,lr):1,ke.rotation=ji?k(ji.pointers,lr):0,ke.maxPointers=gt.prevInput?ke.pointers.length>gt.prevInput.maxPointers?ke.pointers.length:gt.prevInput.maxPointers:ke.pointers.length,jt(gt,ke);var Ls=ge.element;kt(ke.srcEvent.target,Ls)&&(Ls=ke.srcEvent.target),ke.target=Ls}function Zo(ge,ke){var gt=ke.center,lr=ge.offsetDelta||{},Kr=ge.prevDelta||{},kn=ge.prevInput||{};(ke.eventType===Dn||kn.eventType===rn)&&(Kr=ge.prevDelta={x:kn.deltaX||0,y:kn.deltaY||0},lr=ge.offsetDelta={x:gt.x,y:gt.y}),ke.deltaX=Kr.x+(gt.x-lr.x),ke.deltaY=Kr.y+(gt.y-lr.y)}function jt(ge,ke){var gt=ge.lastInterval||ke,lr=ke.timeStamp-gt.timeStamp,Kr,kn,ji,go;if(ke.eventType!=yi&&(lr>Mr||gt.velocity===Z)){var Co=ke.deltaX-gt.deltaX,po=ke.deltaY-gt.deltaY,Ls=en(lr,Co,po);kn=Ls.x,ji=Ls.y,Kr=rt(Ls.x)>rt(Ls.y)?Ls.x:Ls.y,go=Ln(Co,po),ge.lastInterval=ke}else Kr=gt.velocity,kn=gt.velocityX,ji=gt.velocityY,go=gt.direction;ke.velocity=Kr,ke.velocityX=kn,ke.velocityY=ji,ke.direction=go}function pr(ge){for(var ke=[],gt=0;gt=rt(ke)?ge<0?Zi:En:ke<0?Rn:sa}function Gi(ge,ke,gt){gt||(gt=Re);var lr=ke[gt[0]]-ge[gt[0]],Kr=ke[gt[1]]-ge[gt[1]];return Math.sqrt(lr*lr+Kr*Kr)}function ue(ge,ke,gt){gt||(gt=Re);var lr=ke[gt[0]]-ge[gt[0]],Kr=ke[gt[1]]-ge[gt[1]];return Math.atan2(Kr,lr)*180/Math.PI}function k(ge,ke){return ue(ke[1],ke[0],Ea)+ue(ge[1],ge[0],Ea)}function z(ge,ke){return Gi(ke[0],ke[1],Ea)/Gi(ge[0],ge[1],Ea)}var ae={mousedown:Dn,mousemove:bn,mouseup:rn},Ee="mousedown",De="mousemove mouseup";function zt(){this.evEl=Ee,this.evWin=De,this.pressed=!1,va.apply(this,arguments)}St(zt,va,{handler:function(ke){var gt=ae[ke.type];gt&Dn&&ke.button===0&&(this.pressed=!0),gt&bn&&ke.which!==1&&(gt=rn),this.pressed&&(gt&rn&&(this.pressed=!1),this.callback(this.manager,gt,{pointers:[ke],changedPointers:[ke],pointerType:Jr,srcEvent:ke}))}});var Tt={pointerdown:Dn,pointermove:bn,pointerup:rn,pointercancel:yi,pointerout:yi},Rt={2:Vt,3:Et,4:Jr,5:on},dt="pointerdown",N="pointermove pointerup pointercancel";ye.MSPointerEvent&&!ye.PointerEvent&&(dt="MSPointerDown",N="MSPointerMove MSPointerUp MSPointerCancel");function B(){this.evEl=dt,this.evWin=N,va.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}St(B,va,{handler:function(ke){var gt=this.store,lr=!1,Kr=ke.type.toLowerCase().replace("ms",""),kn=Tt[Kr],ji=Rt[ke.pointerType]||ke.pointerType,go=ji==Vt,Co=dr(gt,ke.pointerId,"pointerId");kn&Dn&&(ke.button===0||go)?Co<0&&(gt.push(ke),Co=gt.length-1):kn&(rn|yi)&&(lr=!0),!(Co<0)&&(gt[Co]=ke,this.callback(this.manager,kn,{pointers:gt,changedPointers:[ke],pointerType:ji,srcEvent:ke}),lr&>.splice(Co,1))}});var $={touchstart:Dn,touchmove:bn,touchend:rn,touchcancel:yi},ee="touchstart",xe="touchstart touchmove touchend touchcancel";function Ue(){this.evTarget=ee,this.evWin=xe,this.started=!1,va.apply(this,arguments)}St(Ue,va,{handler:function(ke){var gt=$[ke.type];if(gt===Dn&&(this.started=!0),!!this.started){var lr=Qe.call(this,ke,gt);gt&(rn|yi)&&lr[0].length-lr[1].length===0&&(this.started=!1),this.callback(this.manager,gt,{pointers:lr[0],changedPointers:lr[1],pointerType:Vt,srcEvent:ke})}}});function Qe(ge,ke){var gt=oe(ge.touches),lr=oe(ge.changedTouches);return ke&(rn|yi)&&(gt=H(gt.concat(lr),"identifier",!0)),[gt,lr]}var j={touchstart:Dn,touchmove:bn,touchend:rn,touchcancel:yi},Q="touchstart touchmove touchend touchcancel";function Fe(){this.evTarget=Q,this.targetIds={},va.apply(this,arguments)}St(Fe,va,{handler:function(ke){var gt=j[ke.type],lr=et.call(this,ke,gt);lr&&this.callback(this.manager,gt,{pointers:lr[0],changedPointers:lr[1],pointerType:Vt,srcEvent:ke})}});function et(ge,ke){var gt=oe(ge.touches),lr=this.targetIds;if(ke&(Dn|bn)&>.length===1)return lr[gt[0].identifier]=!0,[gt,gt];var Kr,kn,ji=oe(ge.changedTouches),go=[],Co=this.target;if(kn=gt.filter(function(po){return kt(po.target,Co)}),ke===Dn)for(Kr=0;Kr-1&&lr.splice(kn,1)};setTimeout(Kr,Ae)}}function tr(ge){for(var ke=ge.srcEvent.clientX,gt=ge.srcEvent.clientY,lr=0;lr-1&&this.requireFail.splice(ke,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(ge){return!!this.simultaneous[ge.id]},emit:function(ge){var ke=this,gt=this.state;function lr(Kr){ke.manager.emit(Kr,ge)}gt=Ai&&lr(ke.options.event+Gl(gt))},tryEmit:function(ge){if(this.canEmit())return this.emit(ge);this.state=fa},canEmit:function(){for(var ge=0;geke.threshold&&Kr&ke.direction},attrTest:function(ge){return vi.prototype.attrTest.call(this,ge)&&(this.state&Si||!(this.state&Si)&&this.directionTest(ge))},emit:function(ge){this.pX=ge.deltaX,this.pY=ge.deltaY;var ke=vs(ge.direction);ke&&(ge.additionalEvent=this.options.event+ke),this._super.emit.call(this,ge)}});function na(){vi.apply(this,arguments)}St(na,vi,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[hi]},attrTest:function(ge){return this._super.attrTest.call(this,ge)&&(Math.abs(ge.scale-1)>this.options.threshold||this.state&Si)},emit:function(ge){if(ge.scale!==1){var ke=ge.scale<1?"in":"out";ge.additionalEvent=this.options.event+ke}this._super.emit.call(this,ge)}});function Vo(){Ra.apply(this,arguments),this._timer=null,this._input=null}St(Vo,Ra,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Jn]},process:function(ge){var ke=this.options,gt=ge.pointers.length===ke.pointers,lr=ge.distanceke.time;if(this._input=ge,!lr||!gt||ge.eventType&(rn|yi)&&!Kr)this.reset();else if(ge.eventType&Dn)this.reset(),this._timer=tt(function(){this.state=Oa,this.tryEmit()},ke.time,this);else if(ge.eventType&rn)return Oa;return fa},reset:function(){clearTimeout(this._timer)},emit:function(ge){this.state===Oa&&(ge&&ge.eventType&rn?this.manager.emit(this.options.event+"up",ge):(this._input.timeStamp=vt(),this.manager.emit(this.options.event,this._input)))}});function ca(){vi.apply(this,arguments)}St(ca,vi,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[hi]},attrTest:function(ge){return this._super.attrTest.call(this,ge)&&(Math.abs(ge.rotation)>this.options.threshold||this.state&Si)}});function is(){vi.apply(this,arguments)}St(is,vi,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:ki|ba,pointers:1},getTouchAction:function(){return ka.prototype.getTouchAction.call(this)},attrTest:function(ge){var ke=this.options.direction,gt;return ke&(ki|ba)?gt=ge.overallVelocity:ke&ki?gt=ge.overallVelocityX:ke&ba&&(gt=ge.overallVelocityY),this._super.attrTest.call(this,ge)&&ke&ge.offsetDirection&&ge.distance>this.options.threshold&&ge.maxPointers==this.options.pointers&&rt(gt)>this.options.velocity&&ge.eventType&rn},emit:function(ge){var ke=vs(ge.offsetDirection);ke&&this.manager.emit(this.options.event+ke,ge),this.manager.emit(this.options.event,ge)}});function qo(){Ra.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}St(qo,Ra,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ln]},process:function(ge){var ke=this.options,gt=ge.pointers.length===ke.pointers,lr=ge.distance= than the number of constructor arguments of its base class.")};ne.ARGUMENTS_LENGTH_MISMATCH=te,ne.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",ne.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",ne.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",ne.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",ne.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class";var ye=function(){for(var he=[],Z=0;Z0&&fr[fr.length-1])&&(qe[0]===6||qe[0]===2)){St=0;continue}if(qe[0]===3&&(!fr||qe[1]>fr[0]&&qe[1]0?Z._map.set(fe,it):Z._map.delete(fe)})},y.prototype.hasKey=function(he){if(he==null)throw new Error(te.NULL_ARGUMENT);return this._map.has(he)},y.prototype.clone=function(){var he=new y;return this._map.forEach(function(Z,pe){Z.forEach(function(fe){return he.add(pe,fe.clone())})}),he},y.prototype.traverse=function(he){this._map.forEach(function(Z,pe){he(pe,Z)})},y}();ne.Lookup=ye},14156:function(sr,ne,U){"use strict";var te;te={value:!0},te=te=te=te=te=te=ne.GW=te=te=ne.zY=te=te=te=te=te=ne.f3=te=te=ne.b2=te=te=te=te=te=ne.W2=te=void 0;var ye=U(17597);te=ye;var y=U(27877);Object.defineProperty(ne,"W2",{enumerable:!0,get:function(){return y.Container}});var he=U(71297);te={enumerable:!0,get:function(){return he.BindingScopeEnum}},te={enumerable:!0,get:function(){return he.BindingTypeEnum}},te={enumerable:!0,get:function(){return he.TargetTypeEnum}};var Z=U(66440);te={enumerable:!0,get:function(){return Z.AsyncContainerModule}},te={enumerable:!0,get:function(){return Z.ContainerModule}};var pe=U(66733);Object.defineProperty(ne,"b2",{enumerable:!0,get:function(){return pe.injectable}});var fe=U(76316);te={enumerable:!0,get:function(){return fe.tagged}};var it=U(23769);te={enumerable:!0,get:function(){return it.named}};var ce=U(71791);Object.defineProperty(ne,"f3",{enumerable:!0,get:function(){return ce.inject}}),te={enumerable:!0,get:function(){return ce.LazyServiceIdentifer}};var rt=U(57758);te={enumerable:!0,get:function(){return rt.optional}};var vt=U(39868);te={enumerable:!0,get:function(){return vt.unmanaged}};var tt=U(33406);te={enumerable:!0,get:function(){return tt.multiInject}};var Ot=U(26805);te={enumerable:!0,get:function(){return Ot.targetName}};var Xt=U(82935);Object.defineProperty(ne,"zY",{enumerable:!0,get:function(){return Xt.postConstruct}});var Yt=U(51288);te={enumerable:!0,get:function(){return Yt.MetadataReader}};var ar=U(92452);te={enumerable:!0,get:function(){return ar.id}};var Zt=U(38362);Object.defineProperty(ne,"GW",{enumerable:!0,get:function(){return Zt.decorate}});var bt=U(95093);te={enumerable:!0,get:function(){return bt.traverseAncerstors}},te={enumerable:!0,get:function(){return bt.taggedConstraint}},te={enumerable:!0,get:function(){return bt.namedConstraint}},te={enumerable:!0,get:function(){return bt.typeConstraint}};var St=U(96783);te={enumerable:!0,get:function(){return St.getServiceIdentifierAsString}};var Rr=U(6024);te={enumerable:!0,get:function(){return Rr.multiBindToService}}},68338:function(sr,ne,U){"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.Context=void 0;var te=U(92452),ye=function(){function y(he){this.id=te.id(),this.container=he}return y.prototype.addPlan=function(he){this.plan=he},y.prototype.setCurrentRequest=function(he){this.currentRequest=he},y}();ne.Context=ye},4957:function(sr,ne,U){"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.Metadata=void 0;var te=U(17597),ye=function(){function y(he,Z){this.key=he,this.value=Z}return y.prototype.toString=function(){return this.key===te.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},y}();ne.Metadata=ye},51288:function(sr,ne,U){"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.MetadataReader=void 0;var te=U(17597),ye=function(){function y(){}return y.prototype.getConstructorMetadata=function(he){var Z=Reflect.getMetadata(te.PARAM_TYPES,he),pe=Reflect.getMetadata(te.TAGGED,he);return{compilerGeneratedMetadata:Z,userGeneratedMetadata:pe||{}}},y.prototype.getPropertiesMetadata=function(he){var Z=Reflect.getMetadata(te.TAGGED_PROP,he)||[];return Z},y}();ne.MetadataReader=ye},30515:function(sr,ne){"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.Plan=void 0;var U=function(){function te(ye,y){this.parentContext=ye,this.rootRequest=y}return te}();ne.Plan=U},14346:function(sr,ne,U){"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.getBindingDictionary=ne.createMockRequest=ne.plan=void 0;var te=U(53837),ye=U(81463),y=U(71297),he=U(17597),Z=U(99438),pe=U(96783),fe=U(68338),it=U(4957),ce=U(30515),rt=U(4793),vt=U(39373),tt=U(90700);function Ot(gr){return gr._bindingDictionary}ne.getBindingDictionary=Ot;function Xt(gr,fr,Mt,ft,kt,qe){var Dt=gr?he.MULTI_INJECT_TAG:he.INJECT_TAG,dr=new it.Metadata(Dt,Mt),oe=new tt.Target(fr,ft,Mt,dr);if(kt!==void 0){var H=new it.Metadata(kt,qe);oe.metadata.push(H)}return oe}function Yt(gr,fr,Mt,ft,kt){var qe=bt(Mt.container,kt.serviceIdentifier),Dt=[];return qe.length===te.BindingCount.NoBindingsAvailable&&Mt.container.options.autoBindInjectable&&typeof kt.serviceIdentifier=="function"&&gr.getConstructorMetadata(kt.serviceIdentifier).compilerGeneratedMetadata&&(Mt.container.bind(kt.serviceIdentifier).toSelf(),qe=bt(Mt.container,kt.serviceIdentifier)),fr?Dt=qe:Dt=qe.filter(function(dr){var oe=new vt.Request(dr.serviceIdentifier,Mt,ft,dr,kt);return dr.constraint(oe)}),ar(kt.serviceIdentifier,Dt,kt,Mt.container),Dt}function ar(gr,fr,Mt,ft){switch(fr.length){case te.BindingCount.NoBindingsAvailable:if(Mt.isOptional())return fr;var kt=pe.getServiceIdentifierAsString(gr),qe=ye.NOT_REGISTERED;throw qe+=pe.listMetadataForTarget(kt,Mt),qe+=pe.listRegisteredBindingsForServiceIdentifier(ft,kt,bt),new Error(qe);case te.BindingCount.OnlyOneBindingAvailable:if(!Mt.isArray())return fr;case te.BindingCount.MultipleBindingsAvailable:default:if(Mt.isArray())return fr;var kt=pe.getServiceIdentifierAsString(gr),qe=ye.AMBIGUOUS_MATCH+" "+kt;throw qe+=pe.listRegisteredBindingsForServiceIdentifier(ft,kt,bt),new Error(qe)}}function Zt(gr,fr,Mt,ft,kt,qe){var Dt,dr;if(kt===null){Dt=Yt(gr,fr,ft,null,qe),dr=new vt.Request(Mt,ft,null,Dt,qe);var oe=new ce.Plan(ft,dr);ft.addPlan(oe)}else Dt=Yt(gr,fr,ft,kt,qe),dr=kt.addChildRequest(qe.serviceIdentifier,Dt,qe);Dt.forEach(function(H){var re=null;if(qe.isArray())re=dr.addChildRequest(H.serviceIdentifier,H,qe);else{if(H.cache)return;re=dr}if(H.type===y.BindingTypeEnum.Instance&&H.implementationType!==null){var Be=rt.getDependencies(gr,H.implementationType);if(!ft.container.options.skipBaseClassChecks){var we=rt.getBaseClassDependencyCount(gr,H.implementationType);if(Be.length0,kt=Mt.length>Zt.length,qe=ft||kt?Mt.length:Zt.length,Dt=vt(bt,ar,Rr,fr,qe),dr=tt(Yt,Zt),oe=te(te([],Dt),dr);return oe}function rt(Yt,ar,Zt,bt,St){var Rr=St[Yt.toString()]||[],gr=Xt(Rr),fr=gr.unmanaged!==!0,Mt=bt[Yt],ft=gr.inject||gr.multiInject;if(Mt=ft||Mt,Mt instanceof ye.LazyServiceIdentifer&&(Mt=Mt.unwrap()),fr){var kt=Mt===Object,qe=Mt===Function,Dt=Mt===void 0,dr=kt||qe||Dt;if(!ar&&dr){var oe=y.MISSING_INJECT_ANNOTATION+" argument "+Yt+" in class "+Zt+".";throw new Error(oe)}var H=new fe.Target(he.TargetTypeEnum.ConstructorArgument,gr.targetName,Mt);return H.metadata=Rr,H}return null}function vt(Yt,ar,Zt,bt,St){for(var Rr=[],gr=0;gr0?fr:Ot(Yt,Zt)}else return 0}ne.getBaseClassDependencyCount=Ot;function Xt(Yt){var ar={};return Yt.forEach(function(Zt){ar[Zt.key.toString()]=Zt.value}),{inject:ar[Z.INJECT_TAG],multiInject:ar[Z.MULTI_INJECT_TAG],targetName:ar[Z.NAME_TAG],unmanaged:ar[Z.UNMANAGED_TAG]}}},39373:function(sr,ne,U){"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.Request=void 0;var te=U(92452),ye=function(){function y(he,Z,pe,fe,it){this.id=te.id(),this.serviceIdentifier=he,this.parentContext=Z,this.parentRequest=pe,this.target=it,this.childRequests=[],this.bindings=Array.isArray(fe)?fe:[fe],this.requestScope=pe===null?new Map:null}return y.prototype.addChildRequest=function(he,Z,pe){var fe=new y(he,this.parentContext,this,Z,pe);return this.childRequests.push(fe),fe},y}();ne.Request=ye},90700:function(sr,ne,U){"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.Target=void 0;var te=U(17597),ye=U(92452),y=U(4957),he=U(41141),Z=function(){function pe(fe,it,ce,rt){this.id=ye.id(),this.type=fe,this.serviceIdentifier=ce,this.name=new he.QueryableString(it||""),this.metadata=new Array;var vt=null;typeof rt=="string"?vt=new y.Metadata(te.NAMED_TAG,rt):rt instanceof y.Metadata&&(vt=rt),vt!==null&&this.metadata.push(vt)}return pe.prototype.hasTag=function(fe){for(var it=0,ce=this.metadata;it0){var Ot=rt.filter(function(Yt){return Yt.target!==null&&Yt.target.type===y.TargetTypeEnum.ConstructorArgument}),Xt=Ot.map(vt);tt=pe(ce,Xt),tt=Z(tt,rt,vt)}else tt=new ce;return fe(ce,tt),tt}ne.resolveInstance=it},50857:function(sr,ne,U){"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.resolve=void 0;var te=U(81463),ye=U(71297),y=U(99438),he=U(96783),Z=U(31831),pe=function(ce,rt,vt){try{return vt()}catch(tt){throw y.isStackOverflowExeption(tt)?new Error(te.CIRCULAR_DEPENDENCY_IN_FACTORY(ce,rt.toString())):tt}},fe=function(ce){return function(rt){rt.parentContext.setCurrentRequest(rt);var vt=rt.bindings,tt=rt.childRequests,Ot=rt.target&&rt.target.isArray(),Xt=!rt.parentRequest||!rt.parentRequest.target||!rt.target||!rt.parentRequest.target.matchesArray(rt.target.serviceIdentifier);if(Ot&&Xt)return tt.map(function(Rr){var gr=fe(ce);return gr(Rr)});var Yt=null;if(rt.target.isOptional()&&vt.length===0)return;var ar=vt[0],Zt=ar.scope===ye.BindingScopeEnum.Singleton,bt=ar.scope===ye.BindingScopeEnum.Request;if(Zt&&ar.activated)return ar.cache;if(bt&&ce!==null&&ce.has(ar.id))return ce.get(ar.id);if(ar.type===ye.BindingTypeEnum.ConstantValue)Yt=ar.cache,ar.activated=!0;else if(ar.type===ye.BindingTypeEnum.Function)Yt=ar.cache,ar.activated=!0;else if(ar.type===ye.BindingTypeEnum.Constructor)Yt=ar.implementationType;else if(ar.type===ye.BindingTypeEnum.DynamicValue&&ar.dynamicValue!==null)Yt=pe("toDynamicValue",ar.serviceIdentifier,function(){return ar.dynamicValue(rt.parentContext)});else if(ar.type===ye.BindingTypeEnum.Factory&&ar.factory!==null)Yt=pe("toFactory",ar.serviceIdentifier,function(){return ar.factory(rt.parentContext)});else if(ar.type===ye.BindingTypeEnum.Provider&&ar.provider!==null)Yt=pe("toProvider",ar.serviceIdentifier,function(){return ar.provider(rt.parentContext)});else if(ar.type===ye.BindingTypeEnum.Instance&&ar.implementationType!==null)Yt=Z.resolveInstance(ar.implementationType,tt,fe(ce));else{var St=he.getServiceIdentifierAsString(rt.serviceIdentifier);throw new Error(te.INVALID_BINDING_TYPE+" "+St)}return typeof ar.onActivation=="function"&&(Yt=ar.onActivation(rt.parentContext,Yt)),Zt&&(ar.cache=Yt,ar.activated=!0),bt&&ce!==null&&!ce.has(ar.id)&&ce.set(ar.id,Yt),Yt}};function it(ce){var rt=fe(ce.plan.rootRequest.requestScope);return rt(ce.plan.rootRequest)}ne.resolve=it},29664:function(sr,ne,U){"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.BindingInSyntax=void 0;var te=U(71297),ye=U(62923),y=function(){function he(Z){this._binding=Z}return he.prototype.inRequestScope=function(){return this._binding.scope=te.BindingScopeEnum.Request,new ye.BindingWhenOnSyntax(this._binding)},he.prototype.inSingletonScope=function(){return this._binding.scope=te.BindingScopeEnum.Singleton,new ye.BindingWhenOnSyntax(this._binding)},he.prototype.inTransientScope=function(){return this._binding.scope=te.BindingScopeEnum.Transient,new ye.BindingWhenOnSyntax(this._binding)},he}();ne.BindingInSyntax=y},35268:function(sr,ne,U){"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.BindingInWhenOnSyntax=void 0;var te=U(29664),ye=U(85370),y=U(76199),he=function(){function Z(pe){this._binding=pe,this._bindingWhenSyntax=new y.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new ye.BindingOnSyntax(this._binding),this._bindingInSyntax=new te.BindingInSyntax(pe)}return Z.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},Z.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},Z.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},Z.prototype.when=function(pe){return this._bindingWhenSyntax.when(pe)},Z.prototype.whenTargetNamed=function(pe){return this._bindingWhenSyntax.whenTargetNamed(pe)},Z.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},Z.prototype.whenTargetTagged=function(pe,fe){return this._bindingWhenSyntax.whenTargetTagged(pe,fe)},Z.prototype.whenInjectedInto=function(pe){return this._bindingWhenSyntax.whenInjectedInto(pe)},Z.prototype.whenParentNamed=function(pe){return this._bindingWhenSyntax.whenParentNamed(pe)},Z.prototype.whenParentTagged=function(pe,fe){return this._bindingWhenSyntax.whenParentTagged(pe,fe)},Z.prototype.whenAnyAncestorIs=function(pe){return this._bindingWhenSyntax.whenAnyAncestorIs(pe)},Z.prototype.whenNoAncestorIs=function(pe){return this._bindingWhenSyntax.whenNoAncestorIs(pe)},Z.prototype.whenAnyAncestorNamed=function(pe){return this._bindingWhenSyntax.whenAnyAncestorNamed(pe)},Z.prototype.whenAnyAncestorTagged=function(pe,fe){return this._bindingWhenSyntax.whenAnyAncestorTagged(pe,fe)},Z.prototype.whenNoAncestorNamed=function(pe){return this._bindingWhenSyntax.whenNoAncestorNamed(pe)},Z.prototype.whenNoAncestorTagged=function(pe,fe){return this._bindingWhenSyntax.whenNoAncestorTagged(pe,fe)},Z.prototype.whenAnyAncestorMatches=function(pe){return this._bindingWhenSyntax.whenAnyAncestorMatches(pe)},Z.prototype.whenNoAncestorMatches=function(pe){return this._bindingWhenSyntax.whenNoAncestorMatches(pe)},Z.prototype.onActivation=function(pe){return this._bindingOnSyntax.onActivation(pe)},Z}();ne.BindingInWhenOnSyntax=he},85370:function(sr,ne,U){"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.BindingOnSyntax=void 0;var te=U(76199),ye=function(){function y(he){this._binding=he}return y.prototype.onActivation=function(he){return this._binding.onActivation=he,new te.BindingWhenSyntax(this._binding)},y}();ne.BindingOnSyntax=ye},98e3:function(sr,ne,U){"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.BindingToSyntax=void 0;var te=U(81463),ye=U(71297),y=U(35268),he=U(62923),Z=function(){function pe(fe){this._binding=fe}return pe.prototype.to=function(fe){return this._binding.type=ye.BindingTypeEnum.Instance,this._binding.implementationType=fe,new y.BindingInWhenOnSyntax(this._binding)},pe.prototype.toSelf=function(){if(typeof this._binding.serviceIdentifier!="function")throw new Error(""+te.INVALID_TO_SELF_VALUE);var fe=this._binding.serviceIdentifier;return this.to(fe)},pe.prototype.toConstantValue=function(fe){return this._binding.type=ye.BindingTypeEnum.ConstantValue,this._binding.cache=fe,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=ye.BindingScopeEnum.Singleton,new he.BindingWhenOnSyntax(this._binding)},pe.prototype.toDynamicValue=function(fe){return this._binding.type=ye.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=fe,this._binding.implementationType=null,new y.BindingInWhenOnSyntax(this._binding)},pe.prototype.toConstructor=function(fe){return this._binding.type=ye.BindingTypeEnum.Constructor,this._binding.implementationType=fe,this._binding.scope=ye.BindingScopeEnum.Singleton,new he.BindingWhenOnSyntax(this._binding)},pe.prototype.toFactory=function(fe){return this._binding.type=ye.BindingTypeEnum.Factory,this._binding.factory=fe,this._binding.scope=ye.BindingScopeEnum.Singleton,new he.BindingWhenOnSyntax(this._binding)},pe.prototype.toFunction=function(fe){if(typeof fe!="function")throw new Error(te.INVALID_FUNCTION_BINDING);var it=this.toConstantValue(fe);return this._binding.type=ye.BindingTypeEnum.Function,this._binding.scope=ye.BindingScopeEnum.Singleton,it},pe.prototype.toAutoFactory=function(fe){return this._binding.type=ye.BindingTypeEnum.Factory,this._binding.factory=function(it){var ce=function(){return it.container.get(fe)};return ce},this._binding.scope=ye.BindingScopeEnum.Singleton,new he.BindingWhenOnSyntax(this._binding)},pe.prototype.toProvider=function(fe){return this._binding.type=ye.BindingTypeEnum.Provider,this._binding.provider=fe,this._binding.scope=ye.BindingScopeEnum.Singleton,new he.BindingWhenOnSyntax(this._binding)},pe.prototype.toService=function(fe){this.toDynamicValue(function(it){return it.container.get(fe)})},pe}();ne.BindingToSyntax=Z},62923:function(sr,ne,U){"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.BindingWhenOnSyntax=void 0;var te=U(85370),ye=U(76199),y=function(){function he(Z){this._binding=Z,this._bindingWhenSyntax=new ye.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new te.BindingOnSyntax(this._binding)}return he.prototype.when=function(Z){return this._bindingWhenSyntax.when(Z)},he.prototype.whenTargetNamed=function(Z){return this._bindingWhenSyntax.whenTargetNamed(Z)},he.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},he.prototype.whenTargetTagged=function(Z,pe){return this._bindingWhenSyntax.whenTargetTagged(Z,pe)},he.prototype.whenInjectedInto=function(Z){return this._bindingWhenSyntax.whenInjectedInto(Z)},he.prototype.whenParentNamed=function(Z){return this._bindingWhenSyntax.whenParentNamed(Z)},he.prototype.whenParentTagged=function(Z,pe){return this._bindingWhenSyntax.whenParentTagged(Z,pe)},he.prototype.whenAnyAncestorIs=function(Z){return this._bindingWhenSyntax.whenAnyAncestorIs(Z)},he.prototype.whenNoAncestorIs=function(Z){return this._bindingWhenSyntax.whenNoAncestorIs(Z)},he.prototype.whenAnyAncestorNamed=function(Z){return this._bindingWhenSyntax.whenAnyAncestorNamed(Z)},he.prototype.whenAnyAncestorTagged=function(Z,pe){return this._bindingWhenSyntax.whenAnyAncestorTagged(Z,pe)},he.prototype.whenNoAncestorNamed=function(Z){return this._bindingWhenSyntax.whenNoAncestorNamed(Z)},he.prototype.whenNoAncestorTagged=function(Z,pe){return this._bindingWhenSyntax.whenNoAncestorTagged(Z,pe)},he.prototype.whenAnyAncestorMatches=function(Z){return this._bindingWhenSyntax.whenAnyAncestorMatches(Z)},he.prototype.whenNoAncestorMatches=function(Z){return this._bindingWhenSyntax.whenNoAncestorMatches(Z)},he.prototype.onActivation=function(Z){return this._bindingOnSyntax.onActivation(Z)},he}();ne.BindingWhenOnSyntax=y},76199:function(sr,ne,U){"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.BindingWhenSyntax=void 0;var te=U(85370),ye=U(95093),y=function(){function he(Z){this._binding=Z}return he.prototype.when=function(Z){return this._binding.constraint=Z,new te.BindingOnSyntax(this._binding)},he.prototype.whenTargetNamed=function(Z){return this._binding.constraint=ye.namedConstraint(Z),new te.BindingOnSyntax(this._binding)},he.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(Z){var pe=Z.target!==null&&!Z.target.isNamed()&&!Z.target.isTagged();return pe},new te.BindingOnSyntax(this._binding)},he.prototype.whenTargetTagged=function(Z,pe){return this._binding.constraint=ye.taggedConstraint(Z)(pe),new te.BindingOnSyntax(this._binding)},he.prototype.whenInjectedInto=function(Z){return this._binding.constraint=function(pe){return ye.typeConstraint(Z)(pe.parentRequest)},new te.BindingOnSyntax(this._binding)},he.prototype.whenParentNamed=function(Z){return this._binding.constraint=function(pe){return ye.namedConstraint(Z)(pe.parentRequest)},new te.BindingOnSyntax(this._binding)},he.prototype.whenParentTagged=function(Z,pe){return this._binding.constraint=function(fe){return ye.taggedConstraint(Z)(pe)(fe.parentRequest)},new te.BindingOnSyntax(this._binding)},he.prototype.whenAnyAncestorIs=function(Z){return this._binding.constraint=function(pe){return ye.traverseAncerstors(pe,ye.typeConstraint(Z))},new te.BindingOnSyntax(this._binding)},he.prototype.whenNoAncestorIs=function(Z){return this._binding.constraint=function(pe){return!ye.traverseAncerstors(pe,ye.typeConstraint(Z))},new te.BindingOnSyntax(this._binding)},he.prototype.whenAnyAncestorNamed=function(Z){return this._binding.constraint=function(pe){return ye.traverseAncerstors(pe,ye.namedConstraint(Z))},new te.BindingOnSyntax(this._binding)},he.prototype.whenNoAncestorNamed=function(Z){return this._binding.constraint=function(pe){return!ye.traverseAncerstors(pe,ye.namedConstraint(Z))},new te.BindingOnSyntax(this._binding)},he.prototype.whenAnyAncestorTagged=function(Z,pe){return this._binding.constraint=function(fe){return ye.traverseAncerstors(fe,ye.taggedConstraint(Z)(pe))},new te.BindingOnSyntax(this._binding)},he.prototype.whenNoAncestorTagged=function(Z,pe){return this._binding.constraint=function(fe){return!ye.traverseAncerstors(fe,ye.taggedConstraint(Z)(pe))},new te.BindingOnSyntax(this._binding)},he.prototype.whenAnyAncestorMatches=function(Z){return this._binding.constraint=function(pe){return ye.traverseAncerstors(pe,Z)},new te.BindingOnSyntax(this._binding)},he.prototype.whenNoAncestorMatches=function(Z){return this._binding.constraint=function(pe){return!ye.traverseAncerstors(pe,Z)},new te.BindingOnSyntax(this._binding)},he}();ne.BindingWhenSyntax=y},95093:function(sr,ne,U){"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.typeConstraint=ne.namedConstraint=ne.taggedConstraint=ne.traverseAncerstors=void 0;var te=U(17597),ye=U(4957),y=function(fe,it){var ce=fe.parentRequest;return ce!==null?it(ce)?!0:y(ce,it):!1};ne.traverseAncerstors=y;var he=function(fe){return function(it){var ce=function(rt){return rt!==null&&rt.target!==null&&rt.target.matchesTag(fe)(it)};return ce.metaData=new ye.Metadata(fe,it),ce}};ne.taggedConstraint=he;var Z=he(te.NAMED_TAG);ne.namedConstraint=Z;var pe=function(fe){return function(it){var ce=null;if(it!==null)if(ce=it.bindings[0],typeof fe=="string"){var rt=ce.serviceIdentifier;return rt===fe}else{var vt=it.bindings[0].implementationType;return fe===vt}return!1}};ne.typeConstraint=pe},6024:function(sr,ne){"use strict";Object.defineProperty(ne,"__esModule",{value:!0}),ne.multiBindToService=void 0;var U=function(te){return function(ye){return function(){for(var y=[],he=0;he ")}function pe(ce){ce.childRequests.forEach(function(rt){if(he(rt,rt.serviceIdentifier)){var vt=Z(rt);throw new Error(te.CIRCULAR_DEPENDENCY+" "+vt)}else pe(rt)})}ne.circularDependencyToException=pe;function fe(ce,rt){if(rt.isTagged()||rt.isNamed()){var vt="",tt=rt.getNamedTag(),Ot=rt.getCustomTags();return tt!==null&&(vt+=tt.toString()+` +`),Ot!==null&&Ot.forEach(function(Xt){vt+=Xt.toString()+` +`})," "+ce+` + `+ce+" - "+vt}else return" "+ce}ne.listMetadataForTarget=fe;function it(ce){if(ce.name)return ce.name;var rt=ce.toString(),vt=rt.match(/^function\s*([^\s(]+)/);return vt?vt[1]:"Anonymous function: "+rt}ne.getFunctionName=it},45170:function(sr,ne,U){var te=U(13807);function ye(y,he){var Z=y==null?0:y.length;return!!Z&&te(y,he,0)>-1}sr.exports=ye},94936:function(sr){function ne(U,te,ye){for(var y=-1,he=U==null?0:U.length;++y=te?U:te)),U}sr.exports=ne},92504:function(sr){function ne(U,te,ye,y){for(var he=U.length,Z=ye+(y?1:-1);y?Z--:++Z-1;)ar!==ce&&fe.call(ar,Zt,1),fe.call(ce,Zt,1);return ce}sr.exports=it},95453:function(sr,ne,U){var te=U(78188),ye=U(45170),y=U(94936),he=U(29880),Z=U(17319),pe=U(79967),fe=200;function it(ce,rt,vt){var tt=-1,Ot=ye,Xt=ce.length,Yt=!0,ar=[],Zt=ar;if(vt)Yt=!1,Ot=y;else if(Xt>=fe){var bt=rt?null:Z(ce);if(bt)return pe(bt);Yt=!1,Ot=he,Zt=new te}else Zt=rt?[]:ar;e:for(;++tt(m=1))return m;for(;cE?c=x:m=x,x=.5*(m-c)+c}return x},pe.prototype.solve=function(o,u){return this.sampleCurveY(this.solveCurveX(o,u))};var fe=it;function it(o,u){this.x=o,this.y=u}it.prototype={clone:function(){return new it(this.x,this.y)},add:function(o){return this.clone()._add(o)},sub:function(o){return this.clone()._sub(o)},multByPoint:function(o){return this.clone()._multByPoint(o)},divByPoint:function(o){return this.clone()._divByPoint(o)},mult:function(o){return this.clone()._mult(o)},div:function(o){return this.clone()._div(o)},rotate:function(o){return this.clone()._rotate(o)},rotateAround:function(o,u){return this.clone()._rotateAround(o,u)},matMult:function(o){return this.clone()._matMult(o)},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(o){return this.x===o.x&&this.y===o.y},dist:function(o){return Math.sqrt(this.distSqr(o))},distSqr:function(o){var u=o.x-this.x,c=o.y-this.y;return u*u+c*c},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(o){return Math.atan2(this.y-o.y,this.x-o.x)},angleWith:function(o){return this.angleWithSep(o.x,o.y)},angleWithSep:function(o,u){return Math.atan2(this.x*u-this.y*o,this.x*o+this.y*u)},_matMult:function(o){var u=o[2]*this.x+o[3]*this.y;return this.x=o[0]*this.x+o[1]*this.y,this.y=u,this},_add:function(o){return this.x+=o.x,this.y+=o.y,this},_sub:function(o){return this.x-=o.x,this.y-=o.y,this},_mult:function(o){return this.x*=o,this.y*=o,this},_div:function(o){return this.x/=o,this.y/=o,this},_multByPoint:function(o){return this.x*=o.x,this.y*=o.y,this},_divByPoint:function(o){return this.x/=o.x,this.y/=o.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var o=this.y;return this.y=this.x,this.x=-o,this},_rotate:function(o){var u=Math.cos(o),c=Math.sin(o),m=c*this.x+u*this.y;return this.x=u*this.x-c*this.y,this.y=m,this},_rotateAround:function(o,u){var c=Math.cos(o),m=Math.sin(o),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}},it.convert=function(o){return o instanceof it?o:Array.isArray(o)?new it(o[0],o[1]):o};var ce=typeof self!="undefined"?self:{},rt=Math.pow(2,53)-1;function vt(o,u,c,m){var x=new Z(o,u,c,m);return function(E){return x.solve(E)}}var tt=vt(.25,.1,.25,1);function Ot(o,u,c){return Math.min(c,Math.max(u,o))}function Xt(o,u,c){var m=c-u,x=((o-u)%m+m)%m+u;return x===u?c:x}function Yt(o){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,o)}()}function St(o){return!!o&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(o)}function Rr(o,u){o.forEach(function(c){u[c]&&(u[c]=u[c].bind(u))})}function gr(o,u){return o.indexOf(u,o.length-u.length)!==-1}function fr(o,u,c){var m={};for(var x in o)m[x]=u.call(c||this,o[x],x,o);return m}function Mt(o,u,c){var m={};for(var x in o)u.call(c||this,o[x],x,o)&&(m[x]=o[x]);return m}function ft(o){return Array.isArray(o)?o.map(ft):typeof o=="object"&&o?fr(o,ft):o}var kt={};function qe(o){kt[o]||(typeof console!="undefined"&&console.warn(o),kt[o]=!0)}function Dt(o,u,c){return(c.y-o.y)*(u.x-o.x)>(u.y-o.y)*(c.x-o.x)}function dr(o){for(var u=0,c=0,m=o.length,x=m-1,E=void 0,A=void 0;c@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,function(m,x,E,A){var R=E||A;return u[x]=!R||R.toLowerCase(),""}),u["max-age"]){var c=parseInt(u["max-age"],10);isNaN(c)?delete u["max-age"]:u["max-age"]=c}return u}var re=null;function Be(o){if(re==null){var u=o.navigator?o.navigator.userAgent:null;re=!!o.safari||!(!u||!(/\b(iPad|iPhone|iPod)\b/.test(u)||u.match("Safari")&&!u.match("Chrome")))}return re}function we(o){try{var u=ce[o];return u.setItem("_mapbox_test_",1),u.removeItem("_mapbox_test_"),!0}catch(c){return!1}}var ut,ie,Le,Pe,Ge=ce.performance&&ce.performance.now?ce.performance.now.bind(ce.performance):Date.now.bind(Date),Vt=ce.requestAnimationFrame||ce.mozRequestAnimationFrame||ce.webkitRequestAnimationFrame||ce.msRequestAnimationFrame,Et=ce.cancelAnimationFrame||ce.mozCancelAnimationFrame||ce.webkitCancelAnimationFrame||ce.msCancelAnimationFrame,Jr={now:Ge,frame:function(o){var u=Vt(o);return{cancel:function(){return Et(u)}}},getImageData:function(o,u){u===void 0&&(u=0);var c=ce.document.createElement("canvas"),m=c.getContext("2d");if(!m)throw new Error("failed to create canvas 2d context");return c.width=o.width,c.height=o.height,m.drawImage(o,0,0,o.width,o.height),m.getImageData(-u,-u,o.width+2*u,o.height+2*u)},resolveURL:function(o){return ut||(ut=ce.document.createElement("a")),ut.href=o,ut.href},hardwareConcurrency:ce.navigator&&ce.navigator.hardwareConcurrency||4,get devicePixelRatio(){return ce.devicePixelRatio},get prefersReducedMotion(){return!!ce.matchMedia&&(ie==null&&(ie=ce.matchMedia("(prefers-reduced-motion: reduce)")),ie.matches)}},on={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},Mr={supported:!1,testSupport:function(o){!Dn&&Pe&&(bn?rn(o):Le=o)}},Dn=!1,bn=!1;function rn(o){var u=o.createTexture();o.bindTexture(o.TEXTURE_2D,u);try{if(o.texImage2D(o.TEXTURE_2D,0,o.RGBA,o.RGBA,o.UNSIGNED_BYTE,Pe),o.isContextLost())return;Mr.supported=!0}catch(c){}o.deleteTexture(u),Dn=!0}ce.document&&((Pe=ce.document.createElement("img")).onload=function(){Le&&rn(Le),Le=null,bn=!0},Pe.onerror=function(){Dn=!0,Le=null},Pe.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var yi="01",ti=function(o,u){this._transformRequestFn=o,this._customAccessToken=u,this._createSkuToken()};function Zi(o){return o.indexOf("mapbox:")===0}ti.prototype._createSkuToken=function(){var o=function(){for(var u="",c=0;c<10;c++)u+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",yi,u].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=o.token,this._skuTokenExpiresAt=o.tokenExpiresAt},ti.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},ti.prototype.transformRequest=function(o,u){return this._transformRequestFn&&this._transformRequestFn(o,u)||{url:o}},ti.prototype.normalizeStyleURL=function(o,u){if(!Zi(o))return o;var c=ki(o);return c.path="/styles/v1"+c.path,this._makeAPIURL(c,this._customAccessToken||u)},ti.prototype.normalizeGlyphsURL=function(o,u){if(!Zi(o))return o;var c=ki(o);return c.path="/fonts/v1"+c.path,this._makeAPIURL(c,this._customAccessToken||u)},ti.prototype.normalizeSourceURL=function(o,u){if(!Zi(o))return o;var c=ki(o);return c.path="/v4/"+c.authority+".json",c.params.push("secure"),this._makeAPIURL(c,this._customAccessToken||u)},ti.prototype.normalizeSpriteURL=function(o,u,c,m){var x=ki(o);return Zi(o)?(x.path="/styles/v1"+x.path+"/sprite"+u+c,this._makeAPIURL(x,this._customAccessToken||m)):(x.path+=""+u+c,ba(x))},ti.prototype.normalizeTileURL=function(o,u){if(this._isSkuTokenExpired()&&this._createSkuToken(),o&&!Zi(o))return o;var c=ki(o);c.path=c.path.replace(/(\.(png|jpg)\d*)(?=$)/,(Jr.devicePixelRatio>=2||u===512?"@2x":"")+(Mr.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&&o.params.splice(x,1)}if(m.path!=="/"&&(o.path=""+m.path+o.path),!on.REQUIRE_ACCESS_TOKEN)return ba(o);if(!(u=u||on.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 o.params=o.params.filter(function(E){return E.indexOf("access_token")===-1}),o.params.push("access_token="+u),ba(o)};var En=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Rn(o){return En.test(o)}var sa=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function ki(o){var u=o.match(sa);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 ba(o){var u=o.params.length?"?"+o.params.join("&"):"";return o.protocol+"://"+o.authority+o.path+u}function fo(o){if(!o)return null;var u=o.split(".");if(!u||u.length!==3)return null;try{return JSON.parse(decodeURIComponent(ce.atob(u[1]).split("").map(function(c){return"%"+("00"+c.charCodeAt(0).toString(16)).slice(-2)}).join("")))}catch(c){return null}}var Re=function(o){this.type=o,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};Re.prototype.getStorageKey=function(o){var u,c=fo(on.ACCESS_TOKEN);return u=c&&c.u?ce.btoa(encodeURIComponent(c.u).replace(/%([0-9A-F]{2})/g,function(m,x){return String.fromCharCode(+("0x"+x))})):on.ACCESS_TOKEN||"",o?"mapbox.eventData."+o+":"+u:"mapbox.eventData:"+u},Re.prototype.fetchEventData=function(){var o=we("localStorage"),u=this.getStorageKey(),c=this.getStorageKey("uuid");if(o)try{var m=ce.localStorage.getItem(u);m&&(this.eventData=JSON.parse(m));var x=ce.localStorage.getItem(c);x&&(this.anonId=x)}catch(E){qe("Unable to read from LocalStorage")}},Re.prototype.saveEventData=function(){var o=we("localStorage"),u=this.getStorageKey(),c=this.getStorageKey("uuid");if(o)try{ce.localStorage.setItem(c,this.anonId),Object.keys(this.eventData).length>=1&&ce.localStorage.setItem(u,JSON.stringify(this.eventData))}catch(m){qe("Unable to write to LocalStorage")}},Re.prototype.processRequests=function(o){},Re.prototype.postEvent=function(o,u,c,m){var x=this;if(on.EVENTS_URL){var E=ki(on.EVENTS_URL);E.params.push("access_token="+(m||on.ACCESS_TOKEN||""));var A={event:this.type,created:new Date(o).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.13.3",skuId:yi,userId:this.anonId},R=u?Yt(A,u):A,L={url:ba(E),headers:{"Content-Type":"text/plain"},body:JSON.stringify([R])};this.pendingRequest=dt(L,function(V){x.pendingRequest=null,c(V),x.saveEventData(),x.processRequests(m)})}},Re.prototype.queueRequest=function(o,u){this.queue.push(o),this.processRequests(u)};var Ea,va,Za=function(o){function u(){o.call(this,"map.load"),this.success={},this.skuToken=""}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.prototype)).constructor=u,u.prototype.postMapLoadEvent=function(c,m,x,E){this.skuToken=x;var A=!(!E&&!on.ACCESS_TOKEN),R=Array.isArray(c)&&c.some(function(L){return Zi(L)||Rn(L)});on.EVENTS_URL&&A&&R&&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(),St(this.anonId)||(this.anonId=bt()),this.postEvent(A,{skuToken:this.skuToken},function(R){R||E&&(m.success[E]=!0)},c))}},u}(Re),Ms=new(function(o){function u(c){o.call(this,"appUserTurnstile"),this._customAccessToken=c}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.prototype)).constructor=u,u.prototype.postTurnstileEvent=function(c,m){on.EVENTS_URL&&on.ACCESS_TOKEN&&Array.isArray(c)&&c.some(function(x){return Zi(x)||Rn(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=fo(on.ACCESS_TOKEN),E=x?x.u:on.ACCESS_TOKEN,A=E!==this.eventData.tokenU;St(this.anonId)||(this.anonId=bt(),A=!0);var R=this.queue.shift();if(this.eventData.lastSuccess){var L=new Date(this.eventData.lastSuccess),V=new Date(R),Y=(R-this.eventData.lastSuccess)/864e5;A=A||Y>=1||Y<-1||L.getDate()!==V.getDate()}else A=!0;if(!A)return this.processRequests();this.postEvent(R,{"enabled.telemetry":!1},function(K){K||(m.eventData.lastSuccess=R,m.eventData.tokenU=E)},c)}},u}(Re)),ho=Ms.postTurnstileEvent.bind(Ms),Zo=new Za,jt=Zo.postMapLoadEvent.bind(Zo),pr=500,Vr=50;function en(){ce.caches&&!Ea&&(Ea=ce.caches.open("mapbox-tiles"))}function Ln(o){var u=o.indexOf("?");return u<0?o:o.slice(0,u)}var Gi,ue=1/0;function k(){return Gi==null&&(Gi=ce.OffscreenCanvas&&new ce.OffscreenCanvas(1,1).getContext("2d")&&typeof ce.createImageBitmap=="function"),Gi}var z={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(z);var ae=function(o){function u(c,m,x){m===401&&Rn(x)&&(c+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),o.call(this,c),this.status=m,this.url=x,this.name=this.constructor.name,this.message=c}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.prototype)).constructor=u,u.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},u}(Error),Ee=oe()?function(){return self.worker&&self.worker.referrer}:function(){return(ce.location.protocol==="blob:"?ce.parent:ce).location.href},De,zt,Tt=function(o,u){if(!(/^file:/.test(c=o.url)||/^file:/.test(Ee())&&!/^\w+:/.test(c))){if(ce.fetch&&ce.Request&&ce.AbortController&&ce.Request.prototype.hasOwnProperty("signal"))return function(m,x){var E,A=new ce.AbortController,R=new ce.Request(m.url,{method:m.method||"GET",body:m.body,credentials:m.credentials,headers:m.headers,referrer:Ee(),signal:A.signal}),L=!1,V=!1,Y=(E=R.url).indexOf("sku=")>0&&Rn(E);m.type==="json"&&R.headers.set("Accept","application/json");var K=function(ve,ze,I){if(!V){if(ve&&ve.message!=="SecurityError"&&qe(ve),ze&&I)return le(ze);var ht=Date.now();ce.fetch(R).then(function(Je){if(Je.ok){var wt=Y?Je.clone():null;return le(Je,wt,ht)}return x(new ae(Je.statusText,Je.status,m.url))}).catch(function(Je){Je.code!==20&&x(new Error(Je.message))})}},le=function(ve,ze,I){(m.type==="arrayBuffer"?ve.arrayBuffer():m.type==="json"?ve.json():ve.text()).then(function(ht){V||(ze&&I&&function(Je,wt,Bt){if(en(),Ea){var nr={status:wt.status,statusText:wt.statusText,headers:new ce.Headers};wt.headers.forEach(function(mr,Zr){return nr.headers.set(Zr,mr)});var or=H(wt.headers.get("Cache-Control")||"");or["no-store"]||(or["max-age"]&&nr.headers.set("Expires",new Date(Bt+1e3*or["max-age"]).toUTCString()),new Date(nr.headers.get("Expires")).getTime()-Bt<42e4||function(mr,Zr){if(va===void 0)try{new Response(new ReadableStream),va=!0}catch(qr){va=!1}va?Zr(mr.body):mr.blob().then(Zr)}(wt,function(mr){var Zr=new ce.Response(mr,nr);en(),Ea&&Ea.then(function(qr){return qr.put(Ln(Je.url),Zr)}).catch(function(qr){return qe(qr.message)})}))}}(R,ze,I),L=!0,x(null,ht,ve.headers.get("Cache-Control"),ve.headers.get("Expires")))}).catch(function(ht){V||x(new Error(ht.message))})};return Y?function(ve,ze){if(en(),!Ea)return ze(null);var I=Ln(ve.url);Ea.then(function(ht){ht.match(I).then(function(Je){var wt=function(Bt){if(!Bt)return!1;var nr=new Date(Bt.headers.get("Expires")||0),or=H(Bt.headers.get("Cache-Control")||"");return nr>Date.now()&&!or["no-cache"]}(Je);ht.delete(I),wt&&ht.put(I,Je.clone()),ze(null,Je,wt)}).catch(ze)}).catch(ze)}(R,K):K(null,null),{cancel:function(){V=!0,L||A.abort()}}}(o,u);if(oe()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",o,u,void 0,!0)}var c;return function(m,x){var E=new ce.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 R=E.response;if(m.type==="json")try{R=JSON.parse(E.response)}catch(L){return x(L)}x(null,R,E.getResponseHeader("Cache-Control"),E.getResponseHeader("Expires"))}else x(new ae(E.statusText,E.status,m.url))},E.send(m.body),{cancel:function(){return E.abort()}}}(o,u)},Rt=function(o,u){return Tt(Yt(o,{type:"arrayBuffer"}),u)},dt=function(o,u){return Tt(Yt(o,{method:"POST"}),u)},N="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";De=[],zt=0;var B=function(o,u){if(Mr.supported&&(o.headers||(o.headers={}),o.headers.accept="image/webp,*/*"),zt>=on.MAX_PARALLEL_IMAGE_REQUESTS){var c={requestParameters:o,callback:u,cancelled:!1,cancel:function(){this.cancelled=!0}};return De.push(c),c}zt++;var m=!1,x=function(){if(!m)for(m=!0,zt--;De.length&&zt0||this._oneTimeListeners&&this._oneTimeListeners[o]&&this._oneTimeListeners[o].length>0||this._eventedParent&&this._eventedParent.listens(o)},Qe.prototype.setEventedParent=function(o,u){return this._eventedParent=o,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(o,u,c,m){this.message=(o?o+": ":"")+c,m&&(this.identifier=m),u!=null&&u.__line__&&(this.line=u.__line__)};function Fe(o){var u=o.value;return u?[new Q(o.key,u,"constants have been deprecated as of v8")]:[]}function et(o){for(var u=[],c=arguments.length-1;c-- >0;)u[c]=arguments[c+1];for(var m=0,x=u;m":o.itemType.kind==="value"?"array":"array<"+u+">"}return o.kind}var ns=[Qr,tr,Xr,zr,jr,Vi,Jn,Li(ln),ci];function Qi(o,u){if(u.kind==="error")return null;if(o.kind==="array"){if(u.kind==="array"&&(u.N===0&&u.itemType.kind==="value"||!Qi(o.itemType,u.itemType))&&(typeof o.N!="number"||o.N===u.N))return null}else{if(o.kind===u.kind)return null;if(o.kind==="value"){for(var c=0,m=ns;c255?255:R}function x(R){return m(R[R.length-1]==="%"?parseFloat(R)/100*255:parseInt(R))}function E(R){return(L=R[R.length-1]==="%"?parseFloat(R)/100:parseFloat(R))<0?0:L>1?1:L;var L}function A(R,L,V){return V<0?V+=1:V>1&&(V-=1),6*V<1?R+(L-R)*V*6:2*V<1?L:3*V<2?R+(L-R)*(2/3-V)*6:R}try{u.parseCSSColor=function(R){var L,V=R.replace(/ /g,"").toLowerCase();if(V in c)return c[V].slice();if(V[0]==="#")return V.length===4?(L=parseInt(V.substr(1),16))>=0&&L<=4095?[(3840&L)>>4|(3840&L)>>8,240&L|(240&L)>>4,15&L|(15&L)<<4,1]:null:V.length===7&&(L=parseInt(V.substr(1),16))>=0&&L<=16777215?[(16711680&L)>>16,(65280&L)>>8,255&L,1]:null;var Y=V.indexOf("("),K=V.indexOf(")");if(Y!==-1&&K+1===V.length){var le=V.substr(0,Y),ve=V.substr(Y+1,K-(Y+1)).split(","),ze=1;switch(le){case"rgba":if(ve.length!==4)return null;ze=E(ve.pop());case"rgb":return ve.length!==3?null:[x(ve[0]),x(ve[1]),x(ve[2]),ze];case"hsla":if(ve.length!==4)return null;ze=E(ve.pop());case"hsl":if(ve.length!==3)return null;var I=(parseFloat(ve[0])%360+360)%360/360,ht=E(ve[1]),Je=E(ve[2]),wt=Je<=.5?Je*(ht+1):Je+ht-Je*ht,Bt=2*Je-wt;return[m(255*A(Bt,wt,I+1/3)),m(255*A(Bt,wt,I)),m(255*A(Bt,wt,I-1/3)),ze];default:return null}}return null}}catch(R){}}).parseCSSColor,Ai=function(o,u,c,m){m===void 0&&(m=1),this.r=o,this.g=u,this.b=c,this.a=m};Ai.parse=function(o){if(o){if(o instanceof Ai)return o;if(typeof o=="string"){var u=di(o);if(u)return new Ai(u[0]/255*u[3],u[1]/255*u[3],u[2]/255*u[3],u[3])}}},Ai.prototype.toString=function(){var o=this.toArray(),u=o[1],c=o[2],m=o[3];return"rgba("+Math.round(o[0])+","+Math.round(u)+","+Math.round(c)+","+m+")"},Ai.prototype.toArray=function(){var o=this.a;return o===0?[0,0,0,0]:[255*this.r/o,255*this.g/o,255*this.b/o,o]},Ai.black=new Ai(0,0,0,1),Ai.white=new Ai(1,1,1,1),Ai.transparent=new Ai(0,0,0,0),Ai.red=new Ai(1,0,0,1);var Oa=function(o,u,c){this.sensitivity=o?u?"variant":"case":u?"accent":"base",this.locale=c,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Oa.prototype.compare=function(o,u){return this.collator.compare(o,u)},Oa.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var vu=function(o,u,c,m,x){this.text=o,this.image=u,this.scale=c,this.fontStack=m,this.textColor=x},fa=function(o){this.sections=o};fa.fromString=function(o){return new fa([new vu(o,null,null,null,null)])},fa.prototype.isEmpty=function(){return this.sections.length===0||!this.sections.some(function(o){return o.text.length!==0||o.image&&o.image.name.length!==0})},fa.factory=function(o){return o instanceof fa?o:fa.fromString(o)},fa.prototype.toString=function(){return this.sections.length===0?"":this.sections.map(function(o){return o.text}).join("")},fa.prototype.serialize=function(){for(var o=["format"],u=0,c=this.sections;u=0&&o<=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 ["+[o,u,c,m].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+(typeof m=="number"?[o,u,c,m]:[o,u,c]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function vs(o){if(o===null||typeof o=="string"||typeof o=="boolean"||typeof o=="number"||o instanceof Ai||o instanceof Oa||o instanceof fa||o instanceof Ra)return!0;if(Array.isArray(o)){for(var u=0,c=o;u2){var R=o[1];if(typeof R!="string"||!(R in Vo)||R==="object")return u.error('The item type argument of "array" must be one of string, number, boolean',1);E=Vo[R],m++}else E=ln;if(o.length>3){if(o[2]!==null&&(typeof o[2]!="number"||o[2]<0||o[2]!==Math.floor(o[2])))return u.error('The length argument to "array" must be a positive integer literal',2);A=o[2],m++}c=Li(E,A)}else c=Vo[x];for(var L=[];m1)&&u.push(m)}}return u.concat(this.args.map(function(x){return x.serialize()}))};var is=function(o){this.type=Vi,this.sections=o};is.parse=function(o,u){if(o.length<2)return u.error("Expected at least one argument.");var c=o[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<=o.length-1;++E){var A=o[E];if(x&&typeof A=="object"&&!Array.isArray(A)){x=!1;var R=null;if(A["font-scale"]&&!(R=u.parse(A["font-scale"],1,tr)))return null;var L=null;if(A["text-font"]&&!(L=u.parse(A["text-font"],1,Li(Xr))))return null;var V=null;if(A["text-color"]&&!(V=u.parse(A["text-color"],1,jr)))return null;var Y=m[m.length-1];Y.scale=R,Y.font=L,Y.textColor=V}else{var K=u.parse(o[E],1,ln);if(!K)return null;var le=K.type.kind;if(le!=="string"&&le!=="value"&&le!=="null"&&le!=="resolvedImage")return u.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");x=!0,m.push({content:K,scale:null,font:null,textColor:null})}}return new is(m)},is.prototype.evaluate=function(o){return new fa(this.sections.map(function(u){var c=u.content.evaluate(o);return Ma(c)===ci?new vu("",c,null,null,null):new vu(vi(c),null,u.scale?u.scale.evaluate(o):null,u.font?u.font.evaluate(o).join(","):null,u.textColor?u.textColor.evaluate(o):null)}))},is.prototype.eachChild=function(o){for(var u=0,c=this.sections;u-1),c},qo.prototype.eachChild=function(o){o(this.input)},qo.prototype.outputDefined=function(){return!1},qo.prototype.serialize=function(){return["image",this.input.serialize()]};var Du={"to-boolean":zr,"to-color":jr,"to-number":tr,"to-string":Xr},ms=function(o,u){this.type=o,this.args=u};ms.parse=function(o,u){if(o.length<2)return u.error("Expected at least one argument.");var c=o[0];if((c==="to-boolean"||c==="to-string")&&o.length!==2)return u.error("Expected one argument.");for(var m=Du[c],x=[],E=1;E4?"Invalid rbga value "+JSON.stringify(u)+": expected an array containing either three or four numeric values.":Gl(u[0],u[1],u[2],u[3])))return new Ai(u[0]/255,u[1]/255,u[2]/255,u[3])}throw new na(c||"Could not parse color from value '"+(typeof u=="string"?u:String(JSON.stringify(u)))+"'")}if(this.type.kind==="number"){for(var A=null,R=0,L=this.args;R=u[2]||o[1]<=u[1]||o[3]>=u[3])}function ke(o,u){var c=(180+o[0])/360,m=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+o[1]*Math.PI/360)))/360,x=Math.pow(2,u.z);return[Math.round(c*x*8192),Math.round(m*x*8192)]}function gt(o,u,c){return u[1]>o[1]!=c[1]>o[1]&&o[0]<(c[0]-u[0])*(o[1]-u[1])/(c[1]-u[1])+u[0]}function lr(o,u){for(var c,m,x,E,A,R,L,V=!1,Y=0,K=u.length;Y0&&R<0||A<0&&R>0}function ji(o,u,c){for(var m=0,x=c;mc[2]){var x=.5*m,E=o[0]-c[0]>x?-m:c[0]-o[0]>x?m:0;E===0&&(E=o[0]-c[2]>x?-m:c[2]-o[0]>x?m:0),o[0]+=E}_n(u,o)}function ep(o,u,c,m){for(var x=8192*Math.pow(2,m.z),E=[8192*m.x,8192*m.y],A=[],R=0,L=o;R=0)return!1;var c=!0;return o.eachChild(function(m){c&&!Lu(m,u)&&(c=!1)}),c}Ko.parse=function(o,u){if(o.length!==2)return u.error("'within' expression requires exactly one argument, but found "+(o.length-1)+" instead.");if(vs(o[1])){var c=o[1];if(c.type==="FeatureCollection")for(var m=0;mu))throw new na("Input is not a number.");E=A-1}return 0}Ju.prototype.parse=function(o,u,c,m,x){return x===void 0&&(x={}),u?this.concat(u,c,m)._parse(o,x):this._parse(o,x)},Ju.prototype._parse=function(o,u){function c(V,Y,K){return K==="assert"?new ca(Y,[V]):K==="coerce"?new ms(Y,[V]):V}if(o!==null&&typeof o!="string"&&typeof o!="boolean"&&typeof o!="number"||(o=["literal",o]),Array.isArray(o)){if(o.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var m=o[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(o,this);if(!E)return null;if(this.expectedType){var A=this.expectedType,R=E.type;if(A.kind!=="string"&&A.kind!=="number"&&A.kind!=="boolean"&&A.kind!=="object"&&A.kind!=="array"||R.kind!=="value")if(A.kind!=="color"&&A.kind!=="formatted"&&A.kind!=="resolvedImage"||R.kind!=="value"&&R.kind!=="string"){if(this.checkSubtype(A,R))return null}else E=c(E,A,u.typeAnnotation||"coerce");else E=c(E,A,u.typeAnnotation||"assert")}if(!(E instanceof ka)&&E.type.kind!=="resolvedImage"&&function V(Y){if(Y instanceof Bu)return V(Y.boundExpression);if(Y instanceof Ji&&Y.name==="error"||Y instanceof Qt||Y instanceof Ko)return!1;var K=Y instanceof ms||Y instanceof ca,le=!0;return Y.eachChild(function(ve){le=K?le&&V(ve):le&&ve instanceof ka}),!!le&&El(Y)&&Lu(Y,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(E)){var L=new Sa;try{E=new ka(E.type,E.evaluate(L))}catch(V){return this.error(V.message),null}}return E}return this.error('Unknown expression "'+m+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(o===void 0?"'undefined' value invalid. Use null instead.":typeof o=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof o+" instead.")},Ju.prototype.concat=function(o,u,c){var m=typeof o=="number"?this.path.concat(o):this.path,x=c?this.scope.concat(c):this.scope;return new Ju(this.registry,m,u||null,x,this.errors)},Ju.prototype.error=function(o){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 yr(m,o))},Ju.prototype.checkSubtype=function(o,u){var c=Qi(o,u);return c&&this.error(c),c};var Bs=function(o,u,c){this.type=o,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.',L);var Y=u.parse(R,V,x);if(!Y)return null;x=x||Y.type,m.push([A,Y])}return new Bs(x,c,m)},Bs.prototype.evaluate=function(o){var u=this.labels,c=this.outputs;if(u.length===1)return c[0].evaluate(o);var m=this.input.evaluate(o);if(m<=u[0])return c[0].evaluate(o);var x=u.length;return m>=u[x-1]?c[x-1].evaluate(o):c[$c(u,m)].evaluate(o)},Bs.prototype.eachChild=function(o){o(this.input);for(var u=0,c=this.outputs;u0&&o.push(this.labels[u]),o.push(this.outputs[u].serialize());return o};var Al=Object.freeze({__proto__:null,number:qa,color:function(o,u,c){return new Ai(qa(o.r,u.r,c),qa(o.g,u.g,c),qa(o.b,u.b,c),qa(o.a,u.a,c))},array:function(o,u,c){return o.map(function(m,x){return qa(m,u[x],c)})}}),el=6/29*3*(6/29),Tf=Math.PI/180,tp=180/Math.PI;function wf(o){return o>.008856451679035631?Math.pow(o,1/3):o/el+4/29}function hh(o){return o>6/29?o*o*o:el*(o-4/29)}function ph(o){return 255*(o<=.0031308?12.92*o:1.055*Math.pow(o,1/2.4)-.055)}function dh(o){return(o/=255)<=.04045?o/12.92:Math.pow((o+.055)/1.055,2.4)}function rp(o){var u=dh(o.r),c=dh(o.g),m=dh(o.b),x=wf((.4124564*u+.3575761*c+.1804375*m)/.95047),E=wf((.2126729*u+.7151522*c+.072175*m)/1);return{l:116*E-16,a:500*(x-E),b:200*(E-wf((.0193339*u+.119192*c+.9503041*m)/1.08883)),alpha:o.a}}function np(o){var u=(o.l+16)/116,c=isNaN(o.a)?u:u+o.a/500,m=isNaN(o.b)?u:u-o.b/200;return u=1*hh(u),c=.95047*hh(c),m=1.08883*hh(m),new Ai(ph(3.2404542*c-1.5371385*u-.4985314*m),ph(-.969266*c+1.8760108*u+.041556*m),ph(.0556434*c-.2040259*u+1.0572252*m),o.alpha)}function zp(o,u,c){var m=u-o;return o+c*(m>180||m<-180?m-360*Math.round(m/360):m)}var Yc={forward:rp,reverse:np,interpolate:function(o,u,c){return{l:qa(o.l,u.l,c),a:qa(o.a,u.a,c),b:qa(o.b,u.b,c),alpha:qa(o.alpha,u.alpha,c)}}},Fu={forward:function(o){var u=rp(o),c=u.l,m=u.a,x=u.b,E=Math.atan2(x,m)*tp;return{h:E<0?E+360:E,c:Math.sqrt(m*m+x*x),l:c,alpha:o.a}},reverse:function(o){var u=o.h*Tf,c=o.c;return np({l:o.l,a:Math.cos(u)*c,b:Math.sin(u)*c,alpha:o.alpha})},interpolate:function(o,u,c){return{h:zp(o.h,u.h,c),c:qa(o.c,u.c,c),l:qa(o.l,u.l,c),alpha:qa(o.alpha,u.alpha,c)}}},ip=Object.freeze({__proto__:null,lab:Yc,hcl:Fu}),Qo=function(o,u,c,m,x){this.type=o,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:R}}if(o.length-1<4)return u.error("Expected at least 4 arguments, but found only "+(o.length-1)+".");if((o.length-1)%2!=0)return u.error("Expected an even number of arguments.");if(!(x=u.parse(x,2,tr)))return null;var L=[],V=null;c==="interpolate-hcl"||c==="interpolate-lab"?V=jr:u.expectedType&&u.expectedType.kind!=="value"&&(V=u.expectedType);for(var Y=0;Y=K)return u.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',ve);var I=u.parse(le,ze,V);if(!I)return null;V=V||I.type,L.push([K,I])}return V.kind==="number"||V.kind==="color"||V.kind==="array"&&V.itemType.kind==="number"&&typeof V.N=="number"?new Qo(V,c,m,x,L):u.error("Type "+Ei(V)+" is not interpolatable.")},Qo.prototype.evaluate=function(o){var u=this.labels,c=this.outputs;if(u.length===1)return c[0].evaluate(o);var m=this.input.evaluate(o);if(m<=u[0])return c[0].evaluate(o);var x=u.length;if(m>=u[x-1])return c[x-1].evaluate(o);var E=$c(u,m),A=Qo.interpolationFactor(this.interpolation,m,u[E],u[E+1]),R=c[E].evaluate(o),L=c[E+1].evaluate(o);return this.operator==="interpolate"?Al[this.type.kind.toLowerCase()](R,L,A):this.operator==="interpolate-hcl"?Fu.reverse(Fu.interpolate(Fu.forward(R),Fu.forward(L),A)):Yc.reverse(Yc.interpolate(Yc.forward(R),Yc.forward(L),A))},Qo.prototype.eachChild=function(o){o(this.input);for(var u=0,c=this.outputs;u=c.length)throw new na("Array index out of bounds: "+u+" > "+(c.length-1)+".");if(u!==Math.floor(u))throw new na("Array index must be an integer, but found "+u+" instead.");return c[u]},wl.prototype.eachChild=function(o){o(this.index),o(this.input)},wl.prototype.outputDefined=function(){return!1},wl.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var ui=function(o,u){this.type=zr,this.needle=o,this.haystack=u};ui.parse=function(o,u){if(o.length!==3)return u.error("Expected 2 arguments, but found "+(o.length-1)+" instead.");var c=u.parse(o[1],1,ln),m=u.parse(o[2],2,ln);return c&&m?Pa(c.type,[zr,Xr,tr,Qr,ln])?new ui(c,m):u.error("Expected first argument to be of type boolean, string, number or null, but found "+Ei(c.type)+" instead"):null},ui.prototype.evaluate=function(o){var u=this.needle.evaluate(o),c=this.haystack.evaluate(o);if(!c)return!1;if(!Si(u,["boolean","string","number","null"]))throw new na("Expected first argument to be of type boolean, string, number or null, but found "+Ei(Ma(u))+" instead.");if(!Si(c,["string","array"]))throw new na("Expected second argument to be of type array or string, but found "+Ei(Ma(c))+" instead.");return c.indexOf(u)>=0},ui.prototype.eachChild=function(o){o(this.needle),o(this.haystack)},ui.prototype.outputDefined=function(){return!0},ui.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var tl=function(o,u,c){this.type=tr,this.needle=o,this.haystack=u,this.fromIndex=c};tl.parse=function(o,u){if(o.length<=2||o.length>=5)return u.error("Expected 3 or 4 arguments, but found "+(o.length-1)+" instead.");var c=u.parse(o[1],1,ln),m=u.parse(o[2],2,ln);if(!c||!m)return null;if(!Pa(c.type,[zr,Xr,tr,Qr,ln]))return u.error("Expected first argument to be of type boolean, string, number or null, but found "+Ei(c.type)+" instead");if(o.length===4){var x=u.parse(o[3],3,tr);return x?new tl(c,m,x):null}return new tl(c,m)},tl.prototype.evaluate=function(o){var u=this.needle.evaluate(o),c=this.haystack.evaluate(o);if(!Si(u,["boolean","string","number","null"]))throw new na("Expected first argument to be of type boolean, string, number or null, but found "+Ei(Ma(u))+" instead.");if(!Si(c,["string","array"]))throw new na("Expected second argument to be of type array or string, but found "+Ei(Ma(c))+" instead.");if(this.fromIndex){var m=this.fromIndex.evaluate(o);return c.indexOf(u,m)}return c.indexOf(u)},tl.prototype.eachChild=function(o){o(this.needle),o(this.haystack),this.fromIndex&&o(this.fromIndex)},tl.prototype.outputDefined=function(){return!1},tl.prototype.serialize=function(){if(this.fromIndex!=null&&this.fromIndex!==void 0){var o=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),o]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var Fs=function(o,u,c,m,x,E){this.inputType=o,this.type=u,this.input=c,this.cases=m,this.outputs=x,this.otherwise=E};Fs.parse=function(o,u){if(o.length<5)return u.error("Expected at least 4 arguments, but found only "+(o.length-1)+".");if(o.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 V.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if(typeof le=="number"&&Math.floor(le)!==le)return V.error("Numeric branch labels must be integer values.");if(c){if(V.checkSubtype(c,Ma(le)))return null}else c=Ma(le);if(x[String(le)]!==void 0)return V.error("Branch labels must be unique.");x[String(le)]=E.length}var ve=u.parse(L,A,m);if(!ve)return null;m=m||ve.type,E.push(ve)}var ze=u.parse(o[1],1,ln);if(!ze)return null;var I=u.parse(o[o.length-1],o.length-1,m);return I?ze.type.kind!=="value"&&u.concat(1).checkSubtype(c,ze.type)?null:new Fs(c,m,ze,x,E,I):null},Fs.prototype.evaluate=function(o){var u=this.input.evaluate(o);return(Ma(u)===this.inputType&&this.outputs[this.cases[u]]||this.otherwise).evaluate(o)},Fs.prototype.eachChild=function(o){o(this.input),this.outputs.forEach(o),o(this.otherwise)},Fs.prototype.outputDefined=function(){return this.outputs.every(function(o){return o.outputDefined()})&&this.otherwise.outputDefined()},Fs.prototype.serialize=function(){for(var o=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 "+(o.length-1)+" instead.");var c=u.parse(o[1],1,ln),m=u.parse(o[2],2,tr);if(!c||!m)return null;if(!Pa(c.type,[Li(ln),Xr,ln]))return u.error("Expected first argument to be of type array or string, but found "+Ei(c.type)+" instead");if(o.length===4){var x=u.parse(o[3],3,tr);return x?new rl(c.type,c,m,x):null}return new rl(c.type,c,m)},rl.prototype.evaluate=function(o){var u=this.input.evaluate(o),c=this.beginIndex.evaluate(o);if(!Si(u,["string","array"]))throw new na("Expected first argument to be of type array or string, but found "+Ei(Ma(u))+" instead.");if(this.endIndex){var m=this.endIndex.evaluate(o);return u.slice(c,m)}return u.slice(c)},rl.prototype.eachChild=function(o){o(this.input),o(this.beginIndex),this.endIndex&&o(this.endIndex)},rl.prototype.outputDefined=function(){return!1},rl.prototype.serialize=function(){if(this.endIndex!=null&&this.endIndex!==void 0){var o=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),o]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var ou=Ci("==",function(o,u,c){return u===c},Yi),mu=Ci("!=",function(o,u,c){return u!==c},function(o,u,c,m){return!Yi(0,u,c,m)}),Cf=Ci("<",function(o,u,c){return u",function(o,u,c){return u>c},function(o,u,c,m){return m.compare(u,c)>0}),vh=Ci("<=",function(o,u,c){return u<=c},function(o,u,c,m){return m.compare(u,c)<=0}),Rf=Ci(">=",function(o,u,c){return u>=c},function(o,u,c,m){return m.compare(u,c)>=0}),Ns=function(o,u,c,m,x){this.type=Xr,this.number=o,this.locale=u,this.currency=c,this.minFractionDigits=m,this.maxFractionDigits=x};Ns.parse=function(o,u){if(o.length!==3)return u.error("Expected two arguments.");var c=u.parse(o[1],1,tr);if(!c)return null;var m=o[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,Xr)))return null;var E=null;if(m.currency&&!(E=u.parse(m.currency,1,Xr)))return null;var A=null;if(m["min-fraction-digits"]&&!(A=u.parse(m["min-fraction-digits"],1,tr)))return null;var R=null;return m["max-fraction-digits"]&&!(R=u.parse(m["max-fraction-digits"],1,tr))?null:new Ns(c,x,E,A,R)},Ns.prototype.evaluate=function(o){return new Intl.NumberFormat(this.locale?this.locale.evaluate(o):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(o):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(o):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(o):void 0}).format(this.number.evaluate(o))},Ns.prototype.eachChild=function(o){o(this.number),this.locale&&o(this.locale),this.currency&&o(this.currency),this.minFractionDigits&&o(this.minFractionDigits),this.maxFractionDigits&&o(this.maxFractionDigits)},Ns.prototype.outputDefined=function(){return!1},Ns.prototype.serialize=function(){var o={};return this.locale&&(o.locale=this.locale.serialize()),this.currency&&(o.currency=this.currency.serialize()),this.minFractionDigits&&(o["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(o["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),o]};var nl=function(o){this.type=tr,this.input=o};nl.parse=function(o,u){if(o.length!==2)return u.error("Expected 1 argument, but found "+(o.length-1)+" instead.");var c=u.parse(o[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 "+Ei(c.type)+" instead."):new nl(c):null},nl.prototype.evaluate=function(o){var u=this.input.evaluate(o);if(typeof u=="string"||Array.isArray(u))return u.length;throw new na("Expected value to be of type string or array, but found "+Ei(Ma(u))+" instead.")},nl.prototype.eachChild=function(o){o(this.input)},nl.prototype.outputDefined=function(){return!1},nl.prototype.serialize=function(){var o=["length"];return this.eachChild(function(u){o.push(u.serialize())}),o};var gu={"==":ou,"!=":mu,">":Va,"<":Cf,">=":Rf,"<=":vh,array:ca,at:wl,boolean:ca,case:Nu,coalesce:Tl,collator:Qt,format:is,image:qo,in:ui,"index-of":tl,interpolate:Qo,"interpolate-hcl":Qo,"interpolate-lab":Qo,length:nl,let:Ks,literal:ka,match:Fs,number:ca,"number-format":Ns,object:ca,slice:rl,step:Bs,string:ca,"to-boolean":ms,"to-color":ms,"to-number":ms,"to-string":ms,var:Bu,within:Ko};function Cl(o,u){var c=u[0],m=u[1],x=u[2],E=u[3];c=c.evaluate(o),m=m.evaluate(o),x=x.evaluate(o);var A=E?E.evaluate(o):1,R=Gl(c,m,x,A);if(R)throw new na(R);return new Ai(c/255*A,m/255*A,x/255*A,A)}function mh(o,u){return o in u}function _c(o,u){var c=u[o];return c===void 0?null:c}function ua(o){return{type:o}}function xc(o){return{result:"success",value:o}}function il(o){return{result:"error",value:o}}function Rl(o){return o["property-type"]==="data-driven"||o["property-type"]==="cross-faded-data-driven"}function gh(o){return!!o.expression&&o.expression.parameters.indexOf("zoom")>-1}function qc(o){return!!o.expression&&o.expression.interpolated}function ha(o){return o instanceof Number?"number":o instanceof String?"string":o instanceof Boolean?"boolean":Array.isArray(o)?"array":o===null?"null":typeof o}function Ml(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)}function op(o){return o}function al(o,u,c){return o!==void 0?o:u!==void 0?u:c!==void 0?c:void 0}function Kc(o,u,c,m,x){return al(typeof c===x?m[c]:void 0,o.default,u.default)}function Qc(o,u,c){if(ha(c)!=="number")return al(o.default,u.default);var m=o.stops.length;if(m===1||c<=o.stops[0][0])return o.stops[0][1];if(c>=o.stops[m-1][0])return o.stops[m-1][1];var x=$c(o.stops.map(function(E){return E[0]}),c);return o.stops[x][1]}function Mf(o,u,c){var m=o.base!==void 0?o.base:1;if(ha(c)!=="number")return al(o.default,u.default);var x=o.stops.length;if(x===1||c<=o.stops[0][0])return o.stops[0][1];if(c>=o.stops[x-1][0])return o.stops[x-1][1];var E=$c(o.stops.map(function(K){return K[0]}),c),A=function(K,le,ve,ze){var I=ze-ve,ht=K-ve;return I===0?0:le===1?ht/I:(Math.pow(le,ht)-1)/(Math.pow(le,I)-1)}(c,m,o.stops[E][0],o.stops[E+1][0]),R=o.stops[E][1],L=o.stops[E+1][1],V=Al[u.type]||op;if(o.colorSpace&&o.colorSpace!=="rgb"){var Y=ip[o.colorSpace];V=function(K,le){return Y.reverse(Y.interpolate(Y.forward(K),Y.forward(le),A))}}return typeof R.evaluate=="function"?{evaluate:function(){for(var K=[],le=arguments.length;le--;)K[le]=arguments[le];var ve=R.evaluate.apply(void 0,K),ze=L.evaluate.apply(void 0,K);if(ve!==void 0&&ze!==void 0)return V(ve,ze,A)}}:V(R,L,A)}function ol(o,u,c){return u.type==="color"?c=Ai.parse(c):u.type==="formatted"?c=fa.fromString(c.toString()):u.type==="resolvedImage"?c=Ra.fromString(c.toString()):ha(c)===u.type||u.type==="enum"&&u.values[c]||(c=void 0),al(c,o.default,u.default)}Ji.register(gu,{error:[{kind:"error"},[Xr],function(o,u){throw new na(u[0].evaluate(o))}],typeof:[Xr,[ln],function(o,u){return Ei(Ma(u[0].evaluate(o)))}],"to-rgba":[Li(tr,4),[jr],function(o,u){return u[0].evaluate(o).toArray()}],rgb:[jr,[tr,tr,tr],Cl],rgba:[jr,[tr,tr,tr,tr],Cl],has:{type:zr,overloads:[[[Xr],function(o,u){return mh(u[0].evaluate(o),o.properties())}],[[Xr,Jn],function(o,u){var c=u[1];return mh(u[0].evaluate(o),c.evaluate(o))}]]},get:{type:ln,overloads:[[[Xr],function(o,u){return _c(u[0].evaluate(o),o.properties())}],[[Xr,Jn],function(o,u){var c=u[1];return _c(u[0].evaluate(o),c.evaluate(o))}]]},"feature-state":[ln,[Xr],function(o,u){return _c(u[0].evaluate(o),o.featureState||{})}],properties:[Jn,[],function(o){return o.properties()}],"geometry-type":[Xr,[],function(o){return o.geometryType()}],id:[ln,[],function(o){return o.id()}],zoom:[tr,[],function(o){return o.globals.zoom}],"heatmap-density":[tr,[],function(o){return o.globals.heatmapDensity||0}],"line-progress":[tr,[],function(o){return o.globals.lineProgress||0}],accumulated:[ln,[],function(o){return o.globals.accumulated===void 0?null:o.globals.accumulated}],"+":[tr,ua(tr),function(o,u){for(var c=0,m=0,x=u;m":[zr,[Xr,ln],function(o,u){var c=u[0],m=u[1],x=o.properties()[c.value],E=m.value;return typeof x==typeof E&&x>E}],"filter-id->":[zr,[ln],function(o,u){var c=u[0],m=o.id(),x=c.value;return typeof m==typeof x&&m>x}],"filter-<=":[zr,[Xr,ln],function(o,u){var c=u[0],m=u[1],x=o.properties()[c.value],E=m.value;return typeof x==typeof E&&x<=E}],"filter-id-<=":[zr,[ln],function(o,u){var c=u[0],m=o.id(),x=c.value;return typeof m==typeof x&&m<=x}],"filter->=":[zr,[Xr,ln],function(o,u){var c=u[0],m=u[1],x=o.properties()[c.value],E=m.value;return typeof x==typeof E&&x>=E}],"filter-id->=":[zr,[ln],function(o,u){var c=u[0],m=o.id(),x=c.value;return typeof m==typeof x&&m>=x}],"filter-has":[zr,[ln],function(o,u){return u[0].value in o.properties()}],"filter-has-id":[zr,[],function(o){return o.id()!==null&&o.id()!==void 0}],"filter-type-in":[zr,[Li(Xr)],function(o,u){return u[0].value.indexOf(o.geometryType())>=0}],"filter-id-in":[zr,[Li(ln)],function(o,u){return u[0].value.indexOf(o.id())>=0}],"filter-in-small":[zr,[Xr,Li(ln)],function(o,u){var c=u[0];return u[1].value.indexOf(o.properties()[c.value])>=0}],"filter-in-large":[zr,[Xr,Li(ln)],function(o,u){var c=u[0],m=u[1];return function(x,E,A,R){for(;A<=R;){var L=A+R>>1;if(E[L]===x)return!0;E[L]>x?R=L-1:A=L+1}return!1}(o.properties()[c.value],m.value,0,m.value.length-1)}],all:{type:zr,overloads:[[[zr,zr],function(o,u){var c=u[1];return u[0].evaluate(o)&&c.evaluate(o)}],[ua(zr),function(o,u){for(var c=0,m=u;c0&&typeof o[0]=="string"&&o[0]in gu}function Jc(o,u){var c=new Ju(gu,[],u?function(x){var E={color:jr,string:Xr,number:tr,enum:Xr,boolean:zr,formatted:Vi,resolvedImage:ci};return x.type==="array"?Li(E[x.value]||ln,x.length):E[x.type]}(u):void 0),m=c.parse(o,void 0,void 0,void 0,u&&u.type==="string"?{typeAnnotation:"coerce"}:void 0);return m?xc(new $l(m,u)):il(c.errors)}$l.prototype.evaluateWithoutErrorHandling=function(o,u,c,m,x,E){return this._evaluator.globals=o,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)},$l.prototype.evaluate=function(o,u,c,m,x,E){this._evaluator.globals=o,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 na("Expected value to be one of "+Object.keys(this._enumValues).map(function(R){return JSON.stringify(R)}).join(", ")+", but found "+JSON.stringify(A)+" instead.");return A}catch(R){return this._warningHistory[R.message]||(this._warningHistory[R.message]=!0,typeof console!="undefined"&&console.warn(R.message)),this._defaultValue}};var bc=function(o,u){this.kind=o,this._styleExpression=u,this.isStateDependent=o!=="constant"&&!Sl(u.expression)};bc.prototype.evaluateWithoutErrorHandling=function(o,u,c,m,x,E){return this._styleExpression.evaluateWithoutErrorHandling(o,u,c,m,x,E)},bc.prototype.evaluate=function(o,u,c,m,x,E){return this._styleExpression.evaluate(o,u,c,m,x,E)};var Yl=function(o,u,c,m){this.kind=o,this.zoomStops=c,this._styleExpression=u,this.isStateDependent=o!=="camera"&&!Sl(u.expression),this.interpolationType=m};function yh(o,u){if((o=Jc(o,u)).result==="error")return o;var c=o.value.expression,m=El(c);if(!m&&!Rl(u))return il([new yr("","data expressions not supported")]);var x=Lu(c,["zoom"]);if(!x&&!gh(u))return il([new yr("","zoom expressions not supported")]);var E=function A(R){var L=null;if(R instanceof Ks)L=A(R.result);else if(R instanceof Tl)for(var V=0,Y=R.args;Vm.maximum?[new Q(u,c,c+" is greater than the maximum value "+m.maximum)]:[]}function Sc(o){var u,c,m,x=o.valueSpec,E=Ae(o.value.type),A={},R=E!=="categorical"&&o.value.property===void 0,L=!R,V=ha(o.value.stops)==="array"&&ha(o.value.stops[0])==="array"&&ha(o.value.stops[0][0])==="object",Y=Us({key:o.key,value:o.value,valueSpec:o.styleSpec.function,style:o.style,styleSpec:o.styleSpec,objectElementValidators:{stops:function(ve){if(E==="identity")return[new Q(ve.key,ve.value,'identity function may not have a "stops" property')];var ze=[],I=ve.value;return ze=ze.concat(_h({key:ve.key,value:I,valueSpec:ve.valueSpec,style:ve.style,styleSpec:ve.styleSpec,arrayElementValidator:K})),ha(I)==="array"&&I.length===0&&ze.push(new Q(ve.key,I,"array must have at least one stop")),ze},default:function(ve){return Bi({key:ve.key,value:ve.value,valueSpec:x,style:ve.style,styleSpec:ve.styleSpec})}}});return E==="identity"&&R&&Y.push(new Q(o.key,o.value,'missing required property "property"')),E==="identity"||o.value.stops||Y.push(new Q(o.key,o.value,'missing required property "stops"')),E==="exponential"&&o.valueSpec.expression&&!qc(o.valueSpec)&&Y.push(new Q(o.key,o.value,"exponential functions not supported")),o.styleSpec.$version>=8&&(L&&!Rl(o.valueSpec)?Y.push(new Q(o.key,o.value,"property functions not supported")):R&&!gh(o.valueSpec)&&Y.push(new Q(o.key,o.value,"zoom functions not supported"))),E!=="categorical"&&!V||o.value.property!==void 0||Y.push(new Q(o.key,o.value,'"property" property is required')),Y;function K(ve){var ze=[],I=ve.value,ht=ve.key;if(ha(I)!=="array")return[new Q(ht,I,"array expected, "+ha(I)+" found")];if(I.length!==2)return[new Q(ht,I,"array length 2 expected, length "+I.length+" found")];if(V){if(ha(I[0])!=="object")return[new Q(ht,I,"object expected, "+ha(I[0])+" found")];if(I[0].zoom===void 0)return[new Q(ht,I,"object stop key must have zoom")];if(I[0].value===void 0)return[new Q(ht,I,"object stop key must have value")];if(m&&m>Ae(I[0].zoom))return[new Q(ht,I[0].zoom,"stop zoom values must appear in ascending order")];Ae(I[0].zoom)!==m&&(m=Ae(I[0].zoom),c=void 0,A={}),ze=ze.concat(Us({key:ht+"[0]",value:I[0],valueSpec:{zoom:{}},style:ve.style,styleSpec:ve.styleSpec,objectElementValidators:{zoom:ef,value:le}}))}else ze=ze.concat(le({key:ht+"[0]",value:I[0],valueSpec:{},style:ve.style,styleSpec:ve.styleSpec},I));return Uu($t(I[1]))?ze.concat([new Q(ht+"[1]",I[1],"expressions are not allowed in function stops.")]):ze.concat(Bi({key:ht+"[1]",value:I[1],valueSpec:x,style:ve.style,styleSpec:ve.styleSpec}))}function le(ve,ze){var I=ha(ve.value),ht=Ae(ve.value),Je=ve.value!==null?ve.value:ze;if(u){if(I!==u)return[new Q(ve.key,Je,I+" stop domain type must match previous stop domain type "+u)]}else u=I;if(I!=="number"&&I!=="string"&&I!=="boolean")return[new Q(ve.key,Je,"stop domain value must be a number, string, or boolean")];if(I!=="number"&&E!=="categorical"){var wt="number expected, "+I+" found";return Rl(x)&&E===void 0&&(wt+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Q(ve.key,Je,wt)]}return E!=="categorical"||I!=="number"||isFinite(ht)&&Math.floor(ht)===ht?E!=="categorical"&&I==="number"&&c!==void 0&&ht=2&&o[1]!=="$id"&&o[1]!=="$type";case"in":return o.length>=3&&(typeof o[1]!="string"||Array.isArray(o[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return o.length!==3||Array.isArray(o[1])||Array.isArray(o[2]);case"any":case"all":for(var u=0,c=o.slice(1);uu?1:0}function bh(o){if(!o)return!0;var u,c=o[0];return o.length<=1?c!=="any":c==="=="?Eh(o[1],o[2],"=="):c==="!="?ja(Eh(o[1],o[2],"==")):c==="<"||c===">"||c==="<="||c===">="?Eh(o[1],o[2],c):c==="any"?(u=o.slice(1),["any"].concat(u.map(bh))):c==="all"?["all"].concat(o.slice(1).map(bh)):c==="none"?["all"].concat(o.slice(1).map(bh).map(ja)):c==="in"?Pf(o[1],o.slice(2)):c==="!in"?ja(Pf(o[1],o.slice(2))):c==="has"?sp(o[1]):c==="!has"?ja(sp(o[1])):c!=="within"||o}function Eh(o,u,c){switch(o){case"$type":return["filter-type-"+c,u];case"$id":return["filter-id-"+c,u];default:return["filter-"+c,o,u]}}function Pf(o,u){if(u.length===0)return!1;switch(o){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",o,["literal",u.sort(xh)]]:["filter-in-small",o,["literal",u]]}}function sp(o){switch(o){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",o]}}function ja(o){return["!",o]}function up(o){return ql($t(o.value))?Il(et({},o,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function u(c){var m=c.value,x=c.key;if(ha(m)!=="array")return[new Q(x,m,"array expected, "+ha(m)+" found")];var E,A=c.styleSpec,R=[];if(m.length<1)return[new Q(x,m,"filter array must have at least 1 element")];switch(R=R.concat(zu({key:x+"[0]",value:m[0],valueSpec:A.filter_operator,style:c.style,styleSpec:c.styleSpec})),Ae(m[0])){case"<":case"<=":case">":case">=":m.length>=2&&Ae(m[1])==="$type"&&R.push(new Q(x,m,'"$type" cannot be use with operator "'+m[0]+'"'));case"==":case"!=":m.length!==3&&R.push(new Q(x,m,'filter array for operator "'+m[0]+'" must have 3 elements'));case"in":case"!in":m.length>=2&&(E=ha(m[1]))!=="string"&&R.push(new Q(x+"[1]",m[1],"string expected, "+E+" found"));for(var L=2;L=Y[ve+0]&&m>=Y[ve+1])?(A[le]=!0,E.push(V[le])):A[le]=!1}}},Ha.prototype._forEachCell=function(o,u,c,m,x,E,A,R){for(var L=this._convertToCellCoord(o),V=this._convertToCellCoord(u),Y=this._convertToCellCoord(c),K=this._convertToCellCoord(m),le=L;le<=Y;le++)for(var ve=V;ve<=K;ve++){var ze=this.d*ve+le;if((!R||R(this._convertFromCellCoord(le),this._convertFromCellCoord(ve),this._convertFromCellCoord(le+1),this._convertFromCellCoord(ve+1)))&&x.call(this,o,u,c,m,ze,E,A,R))return}},Ha.prototype._convertFromCellCoord=function(o){return(o-this.padding)/this.scale},Ha.prototype._convertToCellCoord=function(o){return Math.max(0,Math.min(this.d-1,Math.floor(o*this.scale)+this.padding))},Ha.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var o=this.cells,u=3+this.cells.length+1+1,c=0,m=0;m=0)){var Y=o[V];L[V]=io[R].shallow.indexOf(V)>=0?Y:as(Y,u)}o instanceof Error&&(L.message=o.message)}if(L.$name)throw new Error("$name property is reserved for worker serialization logic.");return R!=="Object"&&(L.$name=R),L}throw new Error("can't serialize object of type "+typeof o)}function pa(o){if(o==null||typeof o=="boolean"||typeof o=="number"||typeof o=="string"||o instanceof Boolean||o instanceof Number||o instanceof String||o instanceof Date||o instanceof RegExp||Lf(o)||Tc(o)||ArrayBuffer.isView(o)||o instanceof nf)return o;if(Array.isArray(o))return o.map(pa);if(typeof o=="object"){var u=o.$name||"Object",c=io[u].klass;if(!c)throw new Error("can't deserialize unregistered class "+u);if(c.deserialize)return c.deserialize(o);for(var m=Object.create(c.prototype),x=0,E=Object.keys(o);x=0?R:pa(R)}}return m}throw new Error("can't deserialize object of type "+typeof o)}var Bf=function(){this.first=!0};Bf.prototype.update=function(o,u){var c=Math.floor(o);return this.first?(this.first=!1,this.lastIntegerZoom=c,this.lastIntegerZoomTime=0,this.lastZoom=o,this.lastFloorZoom=c,!0):(this.lastFloorZoom>c?(this.lastIntegerZoom=c+1,this.lastIntegerZoomTime=u):this.lastFloorZoom=128&&o<=255},Arabic:function(o){return o>=1536&&o<=1791},"Arabic Supplement":function(o){return o>=1872&&o<=1919},"Arabic Extended-A":function(o){return o>=2208&&o<=2303},"Hangul Jamo":function(o){return o>=4352&&o<=4607},"Unified Canadian Aboriginal Syllabics":function(o){return o>=5120&&o<=5759},Khmer:function(o){return o>=6016&&o<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(o){return o>=6320&&o<=6399},"General Punctuation":function(o){return o>=8192&&o<=8303},"Letterlike Symbols":function(o){return o>=8448&&o<=8527},"Number Forms":function(o){return o>=8528&&o<=8591},"Miscellaneous Technical":function(o){return o>=8960&&o<=9215},"Control Pictures":function(o){return o>=9216&&o<=9279},"Optical Character Recognition":function(o){return o>=9280&&o<=9311},"Enclosed Alphanumerics":function(o){return o>=9312&&o<=9471},"Geometric Shapes":function(o){return o>=9632&&o<=9727},"Miscellaneous Symbols":function(o){return o>=9728&&o<=9983},"Miscellaneous Symbols and Arrows":function(o){return o>=11008&&o<=11263},"CJK Radicals Supplement":function(o){return o>=11904&&o<=12031},"Kangxi Radicals":function(o){return o>=12032&&o<=12255},"Ideographic Description Characters":function(o){return o>=12272&&o<=12287},"CJK Symbols and Punctuation":function(o){return o>=12288&&o<=12351},Hiragana:function(o){return o>=12352&&o<=12447},Katakana:function(o){return o>=12448&&o<=12543},Bopomofo:function(o){return o>=12544&&o<=12591},"Hangul Compatibility Jamo":function(o){return o>=12592&&o<=12687},Kanbun:function(o){return o>=12688&&o<=12703},"Bopomofo Extended":function(o){return o>=12704&&o<=12735},"CJK Strokes":function(o){return o>=12736&&o<=12783},"Katakana Phonetic Extensions":function(o){return o>=12784&&o<=12799},"Enclosed CJK Letters and Months":function(o){return o>=12800&&o<=13055},"CJK Compatibility":function(o){return o>=13056&&o<=13311},"CJK Unified Ideographs Extension A":function(o){return o>=13312&&o<=19903},"Yijing Hexagram Symbols":function(o){return o>=19904&&o<=19967},"CJK Unified Ideographs":function(o){return o>=19968&&o<=40959},"Yi Syllables":function(o){return o>=40960&&o<=42127},"Yi Radicals":function(o){return o>=42128&&o<=42191},"Hangul Jamo Extended-A":function(o){return o>=43360&&o<=43391},"Hangul Syllables":function(o){return o>=44032&&o<=55215},"Hangul Jamo Extended-B":function(o){return o>=55216&&o<=55295},"Private Use Area":function(o){return o>=57344&&o<=63743},"CJK Compatibility Ideographs":function(o){return o>=63744&&o<=64255},"Arabic Presentation Forms-A":function(o){return o>=64336&&o<=65023},"Vertical Forms":function(o){return o>=65040&&o<=65055},"CJK Compatibility Forms":function(o){return o>=65072&&o<=65103},"Small Form Variants":function(o){return o>=65104&&o<=65135},"Arabic Presentation Forms-B":function(o){return o>=65136&&o<=65279},"Halfwidth and Fullwidth Forms":function(o){return o>=65280&&o<=65519}};function ll(o){for(var u=0,c=o;u=65097&&o<=65103)||sn["CJK Compatibility Ideographs"](o)||sn["CJK Compatibility"](o)||sn["CJK Radicals Supplement"](o)||sn["CJK Strokes"](o)||!(!sn["CJK Symbols and Punctuation"](o)||o>=12296&&o<=12305||o>=12308&&o<=12319||o===12336)||sn["CJK Unified Ideographs Extension A"](o)||sn["CJK Unified Ideographs"](o)||sn["Enclosed CJK Letters and Months"](o)||sn["Hangul Compatibility Jamo"](o)||sn["Hangul Jamo Extended-A"](o)||sn["Hangul Jamo Extended-B"](o)||sn["Hangul Jamo"](o)||sn["Hangul Syllables"](o)||sn.Hiragana(o)||sn["Ideographic Description Characters"](o)||sn.Kanbun(o)||sn["Kangxi Radicals"](o)||sn["Katakana Phonetic Extensions"](o)||sn.Katakana(o)&&o!==12540||!(!sn["Halfwidth and Fullwidth Forms"](o)||o===65288||o===65289||o===65293||o>=65306&&o<=65310||o===65339||o===65341||o===65343||o>=65371&&o<=65503||o===65507||o>=65512&&o<=65519)||!(!sn["Small Form Variants"](o)||o>=65112&&o<=65118||o>=65123&&o<=65126)||sn["Unified Canadian Aboriginal Syllabics"](o)||sn["Unified Canadian Aboriginal Syllabics Extended"](o)||sn["Vertical Forms"](o)||sn["Yijing Hexagram Symbols"](o)||sn["Yi Syllables"](o)||sn["Yi Radicals"](o))))}function of(o){return!(af(o)||function(u){return!!(sn["Latin-1 Supplement"](u)&&(u===167||u===169||u===174||u===177||u===188||u===189||u===190||u===215||u===247)||sn["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)||sn["Letterlike Symbols"](u)||sn["Number Forms"](u)||sn["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)||sn["Control Pictures"](u)&&u!==9251||sn["Optical Character Recognition"](u)||sn["Enclosed Alphanumerics"](u)||sn["Geometric Shapes"](u)||sn["Miscellaneous Symbols"](u)&&!(u>=9754&&u<=9759)||sn["Miscellaneous Symbols and Arrows"](u)&&(u>=11026&&u<=11055||u>=11088&&u<=11097||u>=11192&&u<=11243)||sn["CJK Symbols and Punctuation"](u)||sn.Katakana(u)||sn["Private Use Area"](u)||sn["CJK Compatibility Forms"](u)||sn["Small Form Variants"](u)||sn["Halfwidth and Fullwidth Forms"](u)||u===8734||u===8756||u===8757||u>=9984&&u<=10087||u>=10102&&u<=10131||u===65532||u===65533)}(o))}function yu(o){return o>=1424&&o<=2303||sn["Arabic Presentation Forms-A"](o)||sn["Arabic Presentation Forms-B"](o)}function zs(o,u){return!(!u&&yu(o)||o>=2304&&o<=3583||o>=3840&&o<=4255||sn.Khmer(o))}function Ff(o){for(var u=0,c=o;u-1&&(ys="error"),Nf&&Nf(o)};function wc(){Cc.fire(new xe("pluginStateChange",{pluginStatus:ys,pluginURL:_u}))}var Cc=new Qe,Uf=function(){return ys},Js=function(){if(ys!=="deferred"||!_u)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");ys="loading",wc(),_u&&Rt({url:_u},function(o){o?hp(o):(ys="loaded",wc())})},Ft={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return ys==="loaded"||Ft.applyArabicShaping!=null},isLoading:function(){return ys==="loading"},setState:function(o){ys=o.pluginStatus,_u=o.pluginURL},isParsed:function(){return Ft.applyArabicShaping!=null&&Ft.processBidirectionalText!=null&&Ft.processStyledBidirectionalText!=null},getPluginURL:function(){return _u}},Me=function(o,u){this.zoom=o,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 Bf,this.transition={})};Me.prototype.isSupportedScript=function(o){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 F=function(o,u){this.property=o,this.value=u,this.expression=function(c,m){if(Ml(c))return new Ec(c,m);if(Uu(c)){var x=yh(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=Ai.parse(c)),{kind:"constant",evaluate:function(){return E}}}(u===void 0?o.specification.default:u,o.specification)};F.prototype.isDataDriven=function(){return this.expression.kind==="source"||this.expression.kind==="composite"},F.prototype.possiblyEvaluate=function(o,u,c){return this.property.possiblyEvaluate(this,o,u,c)};var eu=function(o){this.property=o,this.value=new F(o,void 0)};eu.prototype.transitioned=function(o,u){return new Pl(this.property,this.value,u,Yt({},o.transition,this.transition),o.now)},eu.prototype.untransitioned=function(){return new Pl(this.property,this.value,null,{},0)};var _e=function(o){this._properties=o,this._values=Object.create(o.defaultTransitionablePropertyValues)};_e.prototype.getValue=function(o){return ft(this._values[o].value.value)},_e.prototype.setValue=function(o,u){this._values.hasOwnProperty(o)||(this._values[o]=new eu(this._values[o].property)),this._values[o].value=new F(this._values[o].property,u===null?void 0:ft(u))},_e.prototype.getTransition=function(o){return ft(this._values[o].transition)},_e.prototype.setTransition=function(o,u){this._values.hasOwnProperty(o)||(this._values[o]=new eu(this._values[o].property)),this._values[o].transition=ft(u)||void 0},_e.prototype.serialize=function(){for(var o={},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 L=R*R,V=L*R;return 4*(R<.5?V:3*(R-L)+V-.75)}(A))}return x};var Ka=function(o){this._properties=o,this._values=Object.create(o.defaultTransitioningPropertyValues)};Ka.prototype.possiblyEvaluate=function(o,u,c){for(var m=new _s(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}(An),ss=function(o){this.specification=o};ss.prototype.possiblyEvaluate=function(o,u,c,m){if(o.value!==void 0){if(o.expression.kind==="constant"){var x=o.expression.evaluate(u,null,{},c,m);return this._calculate(x,x,x,u)}return this._calculate(o.expression.evaluate(new Me(Math.floor(u.zoom-1),u)),o.expression.evaluate(new Me(Math.floor(u.zoom),u)),o.expression.evaluate(new Me(Math.floor(u.zoom+1),u)),u)}},ss.prototype._calculate=function(o,u,c,m){return m.zoom>m.zoomHistory.lastIntegerZoom?{from:o,to:u}:{from:c,to:u}},ss.prototype.interpolate=function(o){return o};var xu=function(o){this.specification=o};xu.prototype.possiblyEvaluate=function(o,u,c,m){return!!o.expression.evaluate(u,null,{},c,m)},xu.prototype.interpolate=function(){return!1};var Ba=function(o){for(var u in this.properties=o,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],o){var c=o[u];c.specification.overridable&&this.overridableProperties.push(u);var m=this.defaultPropertyValues[u]=new F(c,void 0),x=this.defaultTransitionablePropertyValues[u]=new eu(c);this.defaultTransitioningPropertyValues[u]=x.untransitioned(),this.defaultPossiblyEvaluatedValues[u]=m.possiblyEvaluate({})}};xn("DataDrivenProperty",An),xn("DataConstantProperty",Bn),xn("CrossFadedDataDrivenProperty",os),xn("CrossFadedProperty",ss),xn("ColorRampProperty",xu);var tu=function(o){function u(c,m){if(o.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 Zs(m.layout)),m.paint)){for(var x in this._transitionablePaint=new _e(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 _s(m.paint)}}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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(Df,"layers."+this.id+".layout."+c,c,m,x)||(c!=="visibility"?this._unevaluatedLayout.setValue(c,m):this.visibility=m)},u.prototype.getPaintProperty=function(c){return gr(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(kf,"layers."+this.id+".paint."+c,c,m,x))return!1;if(gr(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",R=E.value.isDataDriven(),L=E.value;this._transitionablePaint.setValue(c,m),this._handleSpecialPaintPropertyUpdate(c);var V=this._transitionablePaint._values[c].value;return V.isDataDriven()||R||A||this._handleOverridablePaintPropertyUpdate(c,L,V)},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),Mt(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)&&Jl(this,c.call(Qs,{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 Mo&&Rl(m.property.specification)&&(m.value.kind==="source"||m.value.kind==="composite")&&m.value.isStateDependent)return!0}return!1},u}(Qe),bu={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Eu=function(o,u){this._structArray=o,this._pos1=u*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},oa=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function yo(o,u){u===void 0&&(u=1);var c=0,m=0;return{members:o.map(function(x){var E=bu[x.type].BYTES_PER_ELEMENT,A=c=Sh(c,Math.max(u,E)),R=x.components||1;return m=Math.max(m,E),c+=E*R,{name:x.name,type:x.type,components:R,offset:A}}),size:Sh(c,Math.max(m,u)),alignment:u}}function Sh(o,u){return Math.ceil(o/u)*u}oa.serialize=function(o,u){return o._trim(),u&&(o.isTransferred=!0,u.push(o.arrayBuffer)),{length:o.length,arrayBuffer:o.arrayBuffer}},oa.deserialize=function(o){var u=Object.create(this.prototype);return u.arrayBuffer=o.arrayBuffer,u.length=o.length,u.capacity=o.arrayBuffer.byteLength/u.bytesPerElement,u._refreshViews(),u},oa.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},oa.prototype.clear=function(){this.length=0},oa.prototype.resize=function(o){this.reserve(o),this.length=o},oa.prototype.reserve=function(o){if(o>this.capacity){this.capacity=Math.max(o,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)}},oa.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var Ol=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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}(oa);Ol.prototype.bytesPerElement=4,xn("StructArrayLayout2i4",Ol);var zf=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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 R=4*c;return this.int16[R+0]=m,this.int16[R+1]=x,this.int16[R+2]=E,this.int16[R+3]=A,c},u}(oa);zf.prototype.bytesPerElement=8,xn("StructArrayLayout4i8",zf);var cl=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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,R){var L=this.length;return this.resize(L+1),this.emplace(L,c,m,x,E,A,R)},u.prototype.emplace=function(c,m,x,E,A,R,L){var V=6*c;return this.int16[V+0]=m,this.int16[V+1]=x,this.int16[V+2]=E,this.int16[V+3]=A,this.int16[V+4]=R,this.int16[V+5]=L,c},u}(oa);cl.prototype.bytesPerElement=12,xn("StructArrayLayout2i4i12",cl);var xs=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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,R){var L=this.length;return this.resize(L+1),this.emplace(L,c,m,x,E,A,R)},u.prototype.emplace=function(c,m,x,E,A,R,L){var V=4*c,Y=8*c;return this.int16[V+0]=m,this.int16[V+1]=x,this.uint8[Y+4]=E,this.uint8[Y+5]=A,this.uint8[Y+6]=R,this.uint8[Y+7]=L,c},u}(oa);xs.prototype.bytesPerElement=8,xn("StructArrayLayout2i4ub8",xs);var ec=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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}(oa);ec.prototype.bytesPerElement=8,xn("StructArrayLayout2f8",ec);var Su=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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,R,L,V,Y,K){var le=this.length;return this.resize(le+1),this.emplace(le,c,m,x,E,A,R,L,V,Y,K)},u.prototype.emplace=function(c,m,x,E,A,R,L,V,Y,K,le){var ve=10*c;return this.uint16[ve+0]=m,this.uint16[ve+1]=x,this.uint16[ve+2]=E,this.uint16[ve+3]=A,this.uint16[ve+4]=R,this.uint16[ve+5]=L,this.uint16[ve+6]=V,this.uint16[ve+7]=Y,this.uint16[ve+8]=K,this.uint16[ve+9]=le,c},u}(oa);Su.prototype.bytesPerElement=20,xn("StructArrayLayout10ui20",Su);var Zf=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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,R,L,V,Y,K,le,ve){var ze=this.length;return this.resize(ze+1),this.emplace(ze,c,m,x,E,A,R,L,V,Y,K,le,ve)},u.prototype.emplace=function(c,m,x,E,A,R,L,V,Y,K,le,ve,ze){var I=12*c;return this.int16[I+0]=m,this.int16[I+1]=x,this.int16[I+2]=E,this.int16[I+3]=A,this.uint16[I+4]=R,this.uint16[I+5]=L,this.uint16[I+6]=V,this.uint16[I+7]=Y,this.int16[I+8]=K,this.int16[I+9]=le,this.int16[I+10]=ve,this.int16[I+11]=ze,c},u}(oa);Zf.prototype.bytesPerElement=24,xn("StructArrayLayout4i4ui4i24",Zf);var Rc=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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}(oa);Rc.prototype.bytesPerElement=12,xn("StructArrayLayout3f12",Rc);var sf=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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}(oa);sf.prototype.bytesPerElement=4,xn("StructArrayLayout1ul4",sf);var Vf=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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,R,L,V,Y){var K=this.length;return this.resize(K+1),this.emplace(K,c,m,x,E,A,R,L,V,Y)},u.prototype.emplace=function(c,m,x,E,A,R,L,V,Y,K){var le=10*c,ve=5*c;return this.int16[le+0]=m,this.int16[le+1]=x,this.int16[le+2]=E,this.int16[le+3]=A,this.int16[le+4]=R,this.int16[le+5]=L,this.uint32[ve+3]=V,this.uint16[le+8]=Y,this.uint16[le+9]=K,c},u}(oa);Vf.prototype.bytesPerElement=20,xn("StructArrayLayout6i1ul2ui20",Vf);var tc=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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,R){var L=this.length;return this.resize(L+1),this.emplace(L,c,m,x,E,A,R)},u.prototype.emplace=function(c,m,x,E,A,R,L){var V=6*c;return this.int16[V+0]=m,this.int16[V+1]=x,this.int16[V+2]=E,this.int16[V+3]=A,this.int16[V+4]=R,this.int16[V+5]=L,c},u}(oa);tc.prototype.bytesPerElement=12,xn("StructArrayLayout2i2i2i12",tc);var rc=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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 R=this.length;return this.resize(R+1),this.emplace(R,c,m,x,E,A)},u.prototype.emplace=function(c,m,x,E,A,R){var L=4*c,V=8*c;return this.float32[L+0]=m,this.float32[L+1]=x,this.float32[L+2]=E,this.int16[V+6]=A,this.int16[V+7]=R,c},u}(oa);rc.prototype.bytesPerElement=16,xn("StructArrayLayout2f1f2i16",rc);var Ah=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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 R=12*c,L=3*c;return this.uint8[R+0]=m,this.uint8[R+1]=x,this.float32[L+1]=E,this.float32[L+2]=A,c},u}(oa);Ah.prototype.bytesPerElement=12,xn("StructArrayLayout2ub2f12",Ah);var us=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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}(oa);us.prototype.bytesPerElement=6,xn("StructArrayLayout3ui6",us);var Au=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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,R,L,V,Y,K,le,ve,ze,I,ht,Je,wt){var Bt=this.length;return this.resize(Bt+1),this.emplace(Bt,c,m,x,E,A,R,L,V,Y,K,le,ve,ze,I,ht,Je,wt)},u.prototype.emplace=function(c,m,x,E,A,R,L,V,Y,K,le,ve,ze,I,ht,Je,wt,Bt){var nr=24*c,or=12*c,mr=48*c;return this.int16[nr+0]=m,this.int16[nr+1]=x,this.uint16[nr+2]=E,this.uint16[nr+3]=A,this.uint32[or+2]=R,this.uint32[or+3]=L,this.uint32[or+4]=V,this.uint16[nr+10]=Y,this.uint16[nr+11]=K,this.uint16[nr+12]=le,this.float32[or+7]=ve,this.float32[or+8]=ze,this.uint8[mr+36]=I,this.uint8[mr+37]=ht,this.uint8[mr+38]=Je,this.uint32[or+10]=wt,this.int16[nr+22]=Bt,c},u}(oa);Au.prototype.bytesPerElement=48,xn("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Au);var uf=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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,R,L,V,Y,K,le,ve,ze,I,ht,Je,wt,Bt,nr,or,mr,Zr,qr,Nn,vn,Zn,mn,bi){var ei=this.length;return this.resize(ei+1),this.emplace(ei,c,m,x,E,A,R,L,V,Y,K,le,ve,ze,I,ht,Je,wt,Bt,nr,or,mr,Zr,qr,Nn,vn,Zn,mn,bi)},u.prototype.emplace=function(c,m,x,E,A,R,L,V,Y,K,le,ve,ze,I,ht,Je,wt,Bt,nr,or,mr,Zr,qr,Nn,vn,Zn,mn,bi,ei){var Mn=34*c,Mi=17*c;return this.int16[Mn+0]=m,this.int16[Mn+1]=x,this.int16[Mn+2]=E,this.int16[Mn+3]=A,this.int16[Mn+4]=R,this.int16[Mn+5]=L,this.int16[Mn+6]=V,this.int16[Mn+7]=Y,this.uint16[Mn+8]=K,this.uint16[Mn+9]=le,this.uint16[Mn+10]=ve,this.uint16[Mn+11]=ze,this.uint16[Mn+12]=I,this.uint16[Mn+13]=ht,this.uint16[Mn+14]=Je,this.uint16[Mn+15]=wt,this.uint16[Mn+16]=Bt,this.uint16[Mn+17]=nr,this.uint16[Mn+18]=or,this.uint16[Mn+19]=mr,this.uint16[Mn+20]=Zr,this.uint16[Mn+21]=qr,this.uint16[Mn+22]=Nn,this.uint32[Mi+12]=vn,this.float32[Mi+13]=Zn,this.float32[Mi+14]=mn,this.float32[Mi+15]=bi,this.float32[Mi+16]=ei,c},u}(oa);uf.prototype.bytesPerElement=68,xn("StructArrayLayout8i15ui1ul4f68",uf);var kl=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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}(oa);kl.prototype.bytesPerElement=4,xn("StructArrayLayout1f4",kl);var uu=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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}(oa);uu.prototype.bytesPerElement=6,xn("StructArrayLayout3i6",uu);var Th=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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}(oa);Th.prototype.bytesPerElement=8,xn("StructArrayLayout1ul2ui8",Th);var ju=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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}(oa);ju.prototype.bytesPerElement=4,xn("StructArrayLayout2ui4",ju);var jf=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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}(oa);jf.prototype.bytesPerElement=2,xn("StructArrayLayout1ui2",jf);var wh=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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 R=4*c;return this.float32[R+0]=m,this.float32[R+1]=x,this.float32[R+2]=E,this.float32[R+3]=A,c},u}(oa);wh.prototype.bytesPerElement=16,xn("StructArrayLayout4f16",wh);var h=function(o){function u(){o.apply(this,arguments)}o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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 fe(this.anchorPointX,this.anchorPointY)},Object.defineProperties(u.prototype,c),u}(Eu);h.prototype.size=20;var v=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.prototype)).constructor=u,u.prototype.get=function(c){return new h(this,c)},u}(Vf);xn("CollisionBoxArray",v);var p=function(o){function u(){o.apply(this,arguments)}o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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}(Eu);p.prototype.size=48;var g=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.prototype)).constructor=u,u.prototype.get=function(c){return new p(this,c)},u}(Au);xn("PlacedSymbolArray",g);var S=function(o){function u(){o.apply(this,arguments)}o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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}(Eu);S.prototype.size=68;var w=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.prototype)).constructor=u,u.prototype.get=function(c){return new S(this,c)},u}(uf);xn("SymbolInstanceArray",w);var C=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.prototype)).constructor=u,u.prototype.getoffsetX=function(c){return this.float32[1*c+0]},u}(kl);xn("GlyphOffsetArray",C);var O=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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}(uu);xn("SymbolLineVertexArray",O);var X=function(o){function u(){o.apply(this,arguments)}o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.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}(Eu);X.prototype.size=8;var J=function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.prototype)).constructor=u,u.prototype.get=function(c){return new X(this,c)},u}(Th);xn("FeatureIndexArray",J);var me=yo([{name:"a_pos",components:2,type:"Int16"}],4).members,be=function(o){o===void 0&&(o=[]),this.segments=o};function Te(o,u){return 256*(o=Ot(Math.floor(o),0,255))+Ot(Math.floor(u),0,255)}be.prototype.prepareSegment=function(o,u,c,m){var x=this.segments[this.segments.length-1];return o>be.MAX_VERTEX_ARRAY_LENGTH&&qe("Max vertices per segment is "+be.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+o),(!x||x.vertexLength+o>be.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},be.prototype.get=function(){return this.segments},be.prototype.destroy=function(){for(var o=0,u=this.segments;o>>16)*R&65535)<<16)&4294967295)<<15|V>>>17))*L+(((V>>>16)*L&65535)<<16)&4294967295)<<13|E>>>19))+((5*(E>>>16)&65535)<<16)&4294967295))+((58964+(A>>>16)&65535)<<16);switch(V=0,m){case 3:V^=(255&u.charCodeAt(Y+2))<<16;case 2:V^=(255&u.charCodeAt(Y+1))<<8;case 1:E^=V=(65535&(V=(V=(65535&(V^=255&u.charCodeAt(Y)))*R+(((V>>>16)*R&65535)<<16)&4294967295)<<15|V>>>17))*L+(((V>>>16)*L&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}}),lt=he(function(o){o.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}}),Ne=Ze,ot=lt;Ne.murmur3=Ze,Ne.murmur2=ot;var _t=function(){this.ids=[],this.positions=[],this.indexed=!1};_t.prototype.add=function(o,u,c,m){this.ids.push(ir(o)),this.positions.push(u,c,m)},_t.prototype.getPositions=function(o){for(var u=ir(o),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},_t.serialize=function(o,u){var c=new Float64Array(o.ids),m=new Uint32Array(o.positions);return function x(E,A,R,L){for(;R>1],Y=R-1,K=L+1;;){do Y++;while(E[Y]V);if(Y>=K)break;qt(E,Y,K),qt(A,3*Y,3*K),qt(A,3*Y+1,3*K+1),qt(A,3*Y+2,3*K+2)}K-RA.x+1||LA.y+1)&&qe("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return c}function Ja(o,u){return{type:o.type,id:o.id,properties:o.properties,geometry:u?Wa(o):[]}}function bs(o,u,c,m,x){o.emplaceBack(2*u+(m+1)/2,2*c+(x+1)/2)}var Es=function(o){this.zoom=o.zoom,this.overscaling=o.overscaling,this.layers=o.layers,this.layerIds=this.layers.map(function(u){return u.id}),this.index=o.index,this.hasPattern=!1,this.layoutVertexArray=new Ol,this.indexArray=new us,this.segments=new be,this.programConfigurations=new Gn(o.layers,o.zoom),this.stateDependentLayerIds=this.layers.filter(function(u){return u.isStateDependent()}).map(function(u){return u.id})};function fl(o,u){for(var c=0;c1){if(Mc(o,u))return!0;for(var m=0;m1?c:c.sub(u)._mult(x)._add(u))}function hl(o,u){for(var c,m,x,E=!1,A=0;Au.y!=(x=c[L]).y>u.y&&u.x<(x.x-m.x)*(u.y-m.y)/(x.y-m.y)+m.x&&(E=!E);return E}function cu(o,u){for(var c=!1,m=0,x=o.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 pl(o,u,c){var m=c[0],x=c[2];if(o.xx.x&&u.x>x.x||o.yx.y&&u.y>x.y)return!1;var E=Dt(o,u,c[0]);return E!==Dt(o,u,c[1])||E!==Dt(o,u,c[2])||E!==Dt(o,u,c[3])}function Oo(o,u,c){var m=u.paint.get(o).value;return m.kind==="constant"?m.value:c.programConfigurations.get(u.id).getMaxValue(o)}function ao(o){return Math.sqrt(o[0]*o[0]+o[1]*o[1])}function Ps(o,u,c,m,x){if(!u[0]&&!u[1])return o;var E=fe.convert(u)._mult(x);c==="viewport"&&E._rotate(-m);for(var A=[],R=0;R=8192||Y<0||Y>=8192)){var K=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,o.sortKey),le=K.vertexLength;bs(this.layoutVertexArray,V,Y,-1,-1),bs(this.layoutVertexArray,V,Y,1,-1),bs(this.layoutVertexArray,V,Y,1,1),bs(this.layoutVertexArray,V,Y,-1,1),this.indexArray.emplaceBack(le,le+1,le+2),this.indexArray.emplaceBack(le,le+3,le+2),K.vertexLength+=4,K.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,o,c,{},m)},xn("CircleBucket",Es,{omit:["layers"]});var fu=new Ba({"circle-sort-key":new An(j.layout_circle["circle-sort-key"])}),wu={paint:new Ba({"circle-radius":new An(j.paint_circle["circle-radius"]),"circle-color":new An(j.paint_circle["circle-color"]),"circle-blur":new An(j.paint_circle["circle-blur"]),"circle-opacity":new An(j.paint_circle["circle-opacity"]),"circle-translate":new Bn(j.paint_circle["circle-translate"]),"circle-translate-anchor":new Bn(j.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new Bn(j.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new Bn(j.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new An(j.paint_circle["circle-stroke-width"]),"circle-stroke-color":new An(j.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new An(j.paint_circle["circle-stroke-opacity"])}),layout:fu},Fi=typeof Float32Array!="undefined"?Float32Array:Array;function Jo(o){return o[0]=1,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=1,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=1,o[11]=0,o[12]=0,o[13]=0,o[14]=0,o[15]=1,o}function oo(o,u,c){var m=u[0],x=u[1],E=u[2],A=u[3],R=u[4],L=u[5],V=u[6],Y=u[7],K=u[8],le=u[9],ve=u[10],ze=u[11],I=u[12],ht=u[13],Je=u[14],wt=u[15],Bt=c[0],nr=c[1],or=c[2],mr=c[3];return o[0]=Bt*m+nr*R+or*K+mr*I,o[1]=Bt*x+nr*L+or*le+mr*ht,o[2]=Bt*E+nr*V+or*ve+mr*Je,o[3]=Bt*A+nr*Y+or*ze+mr*wt,o[4]=(Bt=c[4])*m+(nr=c[5])*R+(or=c[6])*K+(mr=c[7])*I,o[5]=Bt*x+nr*L+or*le+mr*ht,o[6]=Bt*E+nr*V+or*ve+mr*Je,o[7]=Bt*A+nr*Y+or*ze+mr*wt,o[8]=(Bt=c[8])*m+(nr=c[9])*R+(or=c[10])*K+(mr=c[11])*I,o[9]=Bt*x+nr*L+or*le+mr*ht,o[10]=Bt*E+nr*V+or*ve+mr*Je,o[11]=Bt*A+nr*Y+or*ze+mr*wt,o[12]=(Bt=c[12])*m+(nr=c[13])*R+(or=c[14])*K+(mr=c[15])*I,o[13]=Bt*x+nr*L+or*le+mr*ht,o[14]=Bt*E+nr*V+or*ve+mr*Je,o[15]=Bt*A+nr*Y+or*ze+mr*wt,o}Math.hypot||(Math.hypot=function(){for(var o=arguments,u=0,c=arguments.length;c--;)u+=o[c]*o[c];return Math.sqrt(u)});var hu,Ic=oo;function Wu(o,u,c){var m=u[0],x=u[1],E=u[2],A=u[3];return o[0]=c[0]*m+c[4]*x+c[8]*E+c[12]*A,o[1]=c[1]*m+c[5]*x+c[9]*E+c[13]*A,o[2]=c[2]*m+c[6]*x+c[10]*E+c[14]*A,o[3]=c[3]*m+c[7]*x+c[11]*E+c[15]*A,o}hu=new Fi(3),Fi!=Float32Array&&(hu[0]=0,hu[1]=0,hu[2]=0),function(){var o=new Fi(4);Fi!=Float32Array&&(o[0]=0,o[1]=0,o[2]=0,o[3]=0)}();var Ch=(function(){var o=new Fi(2);Fi!=Float32Array&&(o[0]=0,o[1]=0)}(),function(o){function u(c){o.call(this,c,wu)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.prototype)).constructor=u,u.prototype.createBucket=function(c){return new Es(c)},u.prototype.queryRadius=function(c){var m=c;return Oo("circle-radius",this,m)+Oo("circle-stroke-width",this,m)+ao(this.paint.get("circle-translate"))},u.prototype.queryIntersectsFeature=function(c,m,x,E,A,R,L,V){for(var Y=Ps(c,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),R.angle,L),K=this.paint.get("circle-radius").evaluate(m,x)+this.paint.get("circle-stroke-width").evaluate(m,x),le=this.paint.get("circle-pitch-alignment")==="map",ve=le?Y:function(Zr,qr){return Zr.map(function(Nn){return ko(Nn,qr)})}(Y,V),ze=le?K*L:K,I=0,ht=E;Io.width||x.height>o.height||c.x>o.width-x.width||c.y>o.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=o.data,R=u.data,L=0;L80*c){m=E=o[0],x=A=o[1];for(var ze=c;zeE&&(E=R),L>A&&(A=L);V=(V=Math.max(E-m,A-x))!==0?1/V:0}return Ih(le,ve,c,m,x,V),ve}function Dd(o,u,c,m,x){var E,A;if(x===ac(o,u,c,m)>0)for(E=u;E=u;E-=m)A=$f(E,o[E],o[E+1],A);return A&&Wf(A,A.next)&&(Dc(A),A=A.next),A}function Pc(o,u){if(!o)return o;u||(u=o);var c,m=o;do if(c=!1,m.steiner||!Wf(m,m.next)&&eo(m.prev,m,m.next)!==0)m=m.next;else{if(Dc(m),(m=u=m.prev)===m.next)break;c=!0}while(c||m!==u);return u}function Ih(o,u,c,m,x,E,A){if(o){!A&&E&&function(Y,K,le,ve){var ze=Y;do ze.z===null&&(ze.z=Dl(ze.x,ze.y,K,le,ve)),ze.prevZ=ze.prev,ze.nextZ=ze.next,ze=ze.next;while(ze!==Y);ze.prevZ.nextZ=null,ze.prevZ=null,function(I){var ht,Je,wt,Bt,nr,or,mr,Zr,qr=1;do{for(Je=I,I=null,nr=null,or=0;Je;){for(or++,wt=Je,mr=0,ht=0;ht0||Zr>0&&wt;)mr!==0&&(Zr===0||!wt||Je.z<=wt.z)?(Bt=Je,Je=Je.nextZ,mr--):(Bt=wt,wt=wt.nextZ,Zr--),nr?nr.nextZ=Bt:I=Bt,Bt.prevZ=nr,nr=Bt;Je=wt}nr.nextZ=null,qr*=2}while(or>1)}(ze)}(o,m,x,E);for(var R,L,V=o;o.prev!==o.next;)if(R=o.prev,L=o.next,E?Ld(o,m,x,E):Zv(o))u.push(R.i/c),u.push(o.i/c),u.push(L.i/c),Dc(o),o=L.next,V=L.next;else if((o=L)===V){A?A===1?Ih(o=og(Pc(o),u,c),u,c,m,x,E,2):A===2&&Vp(o,u,c,m,x,E):Ih(Pc(o),u,c,m,x,E,1);break}}}function Zv(o){var u=o.prev,c=o,m=o.next;if(eo(u,c,m)>=0)return!1;for(var x=o.next.next;x!==o.prev;){if(Oc(u.x,u.y,c.x,c.y,m.x,m.y,x.x,x.y)&&eo(x.prev,x,x.next)>=0)return!1;x=x.next}return!0}function Ld(o,u,c,m){var x=o.prev,E=o,A=o.next;if(eo(x,E,A)>=0)return!1;for(var R=x.x>E.x?x.x>A.x?x.x:A.x:E.x>A.x?E.x:A.x,L=x.y>E.y?x.y>A.y?x.y:A.y:E.y>A.y?E.y:A.y,V=Dl(x.x=V&&le&&le.z<=Y;){if(K!==o.prev&&K!==o.next&&Oc(x.x,x.y,E.x,E.y,A.x,A.y,K.x,K.y)&&eo(K.prev,K,K.next)>=0||(K=K.prevZ,le!==o.prev&&le!==o.next&&Oc(x.x,x.y,E.x,E.y,A.x,A.y,le.x,le.y)&&eo(le.prev,le,le.next)>=0))return!1;le=le.nextZ}for(;K&&K.z>=V;){if(K!==o.prev&&K!==o.next&&Oc(x.x,x.y,E.x,E.y,A.x,A.y,K.x,K.y)&&eo(K.prev,K,K.next)>=0)return!1;K=K.prevZ}for(;le&&le.z<=Y;){if(le!==o.prev&&le!==o.next&&Oc(x.x,x.y,E.x,E.y,A.x,A.y,le.x,le.y)&&eo(le.prev,le,le.next)>=0)return!1;le=le.nextZ}return!0}function og(o,u,c){var m=o;do{var x=m.prev,E=m.next.next;!Wf(x,E)&&Gf(x,m,m.next,E)&&kc(x,E)&&kc(E,x)&&(u.push(x.i/c),u.push(m.i/c),u.push(E.i/c),Dc(m),Dc(m.next),m=o=E),m=m.next}while(m!==o);return Pc(m)}function Vp(o,u,c,m,x,E){var A=o;do{for(var R=A.next.next;R!==A.prev;){if(A.i!==R.i&&Hp(A,R)){var L=Xf(A,R);return A=Pc(A,A.next),L=Pc(L,L.next),Ih(A,u,c,m,x,E),void Ih(L,u,c,m,x,E)}R=R.next}A=A.next}while(A!==o)}function Bd(o,u){return o.x-u.x}function Fd(o,u){if(u=function(m,x){var E,A=x,R=m.x,L=m.y,V=-1/0;do{if(L<=A.y&&L>=A.next.y&&A.next.y!==A.y){var Y=A.x+(L-A.y)*(A.next.x-A.x)/(A.next.y-A.y);if(Y<=R&&Y>V){if(V=Y,Y===R){if(L===A.y)return A;if(L===A.next.y)return A.next}E=A.x=A.x&&A.x>=ve&&R!==A.x&&Oc(LE.x||A.x===E.x&&jp(E,A)))&&(E=A,I=K)),A=A.next;while(A!==le);return E}(o,u)){var c=Xf(u,o);Pc(u,u.next),Pc(c,c.next)}}function jp(o,u){return eo(o.prev,o,u.prev)<0&&eo(u.next,o,o.next)<0}function Dl(o,u,c,m,x){return(o=1431655765&((o=858993459&((o=252645135&((o=16711935&((o=32767*(o-c)*x)|o<<8))|o<<4))|o<<2))|o<<1))|(u=1431655765&((u=858993459&((u=252645135&((u=16711935&((u=32767*(u-m)*x)|u<<8))|u<<4))|u<<2))|u<<1))<<1}function vp(o){var u=o,c=o;do(u.x=0&&(o-A)*(m-R)-(c-A)*(u-R)>=0&&(c-A)*(E-R)-(x-A)*(m-R)>=0}function Hp(o,u){return o.next.i!==u.i&&o.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&&Gf(x,x.next,c,m))return!0;x=x.next}while(x!==c);return!1}(o,u)&&(kc(o,u)&&kc(u,o)&&function(c,m){var x=c,E=!1,A=(c.x+m.x)/2,R=(c.y+m.y)/2;do x.y>R!=x.next.y>R&&x.next.y!==x.y&&A<(x.next.x-x.x)*(R-x.y)/(x.next.y-x.y)+x.x&&(E=!E),x=x.next;while(x!==c);return E}(o,u)&&(eo(o.prev,o,u.prev)||eo(o,u.prev,u))||Wf(o,u)&&eo(o.prev,o,o.next)>0&&eo(u.prev,u,u.next)>0)}function eo(o,u,c){return(u.y-o.y)*(c.x-u.x)-(u.x-o.x)*(c.y-u.y)}function Wf(o,u){return o.x===u.x&&o.y===u.y}function Gf(o,u,c,m){var x=lf(eo(o,u,c)),E=lf(eo(o,u,m)),A=lf(eo(c,m,o)),R=lf(eo(c,m,u));return x!==E&&A!==R||!(x!==0||!vl(o,c,u))||!(E!==0||!vl(o,m,u))||!(A!==0||!vl(c,o,m))||!(R!==0||!vl(c,u,m))}function vl(o,u,c){return u.x<=Math.max(o.x,c.x)&&u.x>=Math.min(o.x,c.x)&&u.y<=Math.max(o.y,c.y)&&u.y>=Math.min(o.y,c.y)}function lf(o){return o>0?1:o<0?-1:0}function kc(o,u){return eo(o.prev,o,o.next)<0?eo(o,u,o.next)>=0&&eo(o,o.prev,u)>=0:eo(o,u,o.prev)<0||eo(o,o.next,u)<0}function Xf(o,u){var c=new Lc(o.i,o.x,o.y),m=new Lc(u.i,u.x,u.y),x=o.next,E=u.prev;return o.next=u,u.prev=o,c.next=x,x.prev=c,m.next=c,c.prev=m,E.next=m,m.prev=E,m}function $f(o,u,c,m){var x=new Lc(o,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 Dc(o){o.next.prev=o.prev,o.prev.next=o.next,o.prevZ&&(o.prevZ.nextZ=o.nextZ),o.nextZ&&(o.nextZ.prevZ=o.prevZ)}function Lc(o,u,c){this.i=o,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 ac(o,u,c,m){for(var x=0,E=u,A=c-m;EL;){if(V-L>600){var K=V-L+1,le=R-L+1,ve=Math.log(K),ze=.5*Math.exp(2*ve/3),I=.5*Math.sqrt(ve*ze*(K-ze)/K)*(le-K/2<0?-1:1);E(A,R,Math.max(L,Math.floor(R-le*ze/K+I)),Math.min(V,Math.floor(R+(K-le)*ze/K+I)),Y)}var ht=A[R],Je=L,wt=V;for(oc(A,L,R),Y(A[V],ht)>0&&oc(A,L,V);Je0;)wt--}Y(A[L],ht)===0?oc(A,L,wt):oc(A,++wt,V),wt<=R&&(L=wt+1),R<=wt&&(V=wt-1)}})(o,u,c||0,m||o.length-1,x||Hs)}function oc(o,u,c){var m=o[u];o[u]=o[c],o[c]=m}function Hs(o,u){return ou?1:0}function mp(o,u){var c=o.length;if(c<=1)return[o];for(var m,x,E=[],A=0;A1)for(var L=0;L0&&c.holes.push(m+=o[x-1].length)}return c},Hf.default=dp;var ml=function(o){this.zoom=o.zoom,this.overscaling=o.overscaling,this.layers=o.layers,this.layerIds=this.layers.map(function(u){return u.id}),this.index=o.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Ol,this.indexArray=new us,this.indexArray2=new ju,this.programConfigurations=new Gn(o.layers,o.zoom),this.segments=new be,this.segments2=new be,this.stateDependentLayerIds=this.layers.filter(function(u){return u.isStateDependent()}).map(function(u){return u.id})};ml.prototype.populate=function(o,u,c){this.hasPattern=Xp("fill",this.layers,u);for(var m=this.layers[0].layout.get("fill-sort-key"),x=[],E=0,A=o;E>3}if(x--,m===1||m===2)E+=o.readSVarint(),A+=o.readSVarint(),m===1&&(u&&R.push(u),u=[]),u.push(new fe(E,A));else{if(m!==7)throw new Error("unknown command "+m);u&&u.push(u[0].clone())}}return u&&R.push(u),R},Bc.prototype.bbox=function(){var o=this._pbf;o.pos=this._geometry;for(var u=o.readVarint()+o.pos,c=1,m=0,x=0,E=0,A=1/0,R=-1/0,L=1/0,V=-1/0;o.pos>3}if(m--,c===1||c===2)(x+=o.readSVarint())R&&(R=x),(E+=o.readSVarint())V&&(V=E);else if(c!==7)throw new Error("unknown command "+c)}return[A,L,R,V]},Bc.prototype.toGeoJSON=function(o,u,c){var m,x,E=this.extent*Math.pow(2,c),A=this.extent*o,R=this.extent*u,L=this.loadGeometry(),V=Bc.types[this.type];function Y(ve){for(var ze=0;ze>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 zd(o,u,c){if(o===3){var m=new yp(c,c.readVarint()+c.pos);m.length&&(u[m.name]=m)}}Fc.prototype.feature=function(o){if(o<0||o>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[o];var u=this._pbf.readVarint()+this._pbf.pos;return new Oh(this._pbf,u,this.extent,this._keys,this._values)};var sc={VectorTile:function(o,u){this.layers=o.readFields(zd,{},u)},VectorTileFeature:Oh,VectorTileLayer:yp},kh=sc.VectorTileFeature.types,Yf=Math.pow(2,13);function ls(o,u,c,m,x,E,A,R){o.emplaceBack(u,c,2*Math.floor(m*Yf)+A,x*Yf*2,E*Yf*2,Math.round(R))}var As=function(o){this.zoom=o.zoom,this.overscaling=o.overscaling,this.layers=o.layers,this.layerIds=this.layers.map(function(u){return u.id}),this.index=o.index,this.hasPattern=!1,this.layoutVertexArray=new cl,this.indexArray=new us,this.programConfigurations=new Gn(o.layers,o.zoom),this.segments=new be,this.stateDependentLayerIds=this.layers.filter(function(u){return u.isStateDependent()}).map(function(u){return u.id})};function Bo(o,u){return o.x===u.x&&(o.x<0||o.x>8192)||o.y===u.y&&(o.y<0||o.y>8192)}As.prototype.populate=function(o,u,c){this.features=[],this.hasPattern=Xp("fill-extrusion",this.layers,u);for(var m=0,x=o;m8192})||Mi.every(function(mi){return mi.y<0})||Mi.every(function(mi){return mi.y>8192})))for(var I=0,ht=0;ht=1){var wt=ze[ht-1];if(!Bo(Je,wt)){K.vertexLength+4>be.MAX_VERTEX_ARRAY_LENGTH&&(K=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var Bt=Je.sub(wt)._perp()._unit(),nr=wt.dist(Je);I+nr>32768&&(I=0),ls(this.layoutVertexArray,Je.x,Je.y,Bt.x,Bt.y,0,0,I),ls(this.layoutVertexArray,Je.x,Je.y,Bt.x,Bt.y,0,1,I),ls(this.layoutVertexArray,wt.x,wt.y,Bt.x,Bt.y,0,0,I+=nr),ls(this.layoutVertexArray,wt.x,wt.y,Bt.x,Bt.y,0,1,I);var or=K.vertexLength;this.indexArray.emplaceBack(or,or+2,or+1),this.indexArray.emplaceBack(or+1,or+2,or+3),K.vertexLength+=4,K.primitiveLength+=2}}}}if(K.vertexLength+L>be.MAX_VERTEX_ARRAY_LENGTH&&(K=this.segments.prepareSegment(L,this.layoutVertexArray,this.indexArray)),kh[o.type]==="Polygon"){for(var mr=[],Zr=[],qr=K.vertexLength,Nn=0,vn=R;Nn=2&&o[L-1].equals(o[L-2]);)L--;for(var V=0;V0;if(Zr&&Je>V){var Nn=Y.dist(ve);if(Nn>2*K){var vn=Y.sub(Y.sub(ve)._mult(K/Nn)._round());this.updateDistance(ve,vn),this.addCurrentVertex(vn,I,0,0,le),ve=vn}}var Zn=ve&&ze,mn=Zn?c:R?"butt":m;if(Zn&&mn==="round"&&(orx&&(mn="bevel"),mn==="bevel"&&(or>2&&(mn="flipbevel"),or100)wt=ht.mult(-1);else{var bi=or*I.add(ht).mag()/I.sub(ht).mag();wt._perp()._mult(bi*(qr?-1:1))}this.addCurrentVertex(Y,wt,0,0,le),this.addCurrentVertex(Y,wt.mult(-1),0,0,le)}else if(mn==="bevel"||mn==="fakeround"){var ei=-Math.sqrt(or*or-1),Mn=qr?ei:0,Mi=qr?0:ei;if(ve&&this.addCurrentVertex(Y,I,Mn,Mi,le),mn==="fakeround")for(var mi=Math.round(180*mr/Math.PI/20),Hi=1;Hi2*K){var Fa=Y.add(ze.sub(Y)._mult(K/ro)._round());this.updateDistance(Y,Fa),this.addCurrentVertex(Fa,ht,0,0,le),Y=Fa}}}}},Os.prototype.addCurrentVertex=function(o,u,c,m,x,E){E===void 0&&(E=!1);var A=u.y*m-u.x,R=-u.y-u.x*m;this.addHalfVertex(o,u.x+u.y*c,u.y-u.x*c,E,!1,c,x),this.addHalfVertex(o,A,R,E,!0,-m,x),this.distance>jd/2&&this.totalDistance===0&&(this.distance=0,this.addCurrentVertex(o,u,c,m,x,E))},Os.prototype.addHalfVertex=function(o,u,c,m,x,E,A){var R=.5*(this.lineClips?this.scaledDistance*(jd-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((o.x<<1)+(m?1:0),(o.y<<1)+(x?1:0),Math.round(63*u)+128,Math.round(63*c)+128,1+(E===0?0:E<0?-1:1)|(63&R)<<2,R>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var L=A.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,L),A.primitiveLength++),x?this.e2=L:this.e1=L},Os.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Os.prototype.updateDistance=function(o,u){this.distance+=o.dist(u),this.updateScaledDistance()},xn("LineBucket",Os,{omit:["layers","patternFeatures"]});var _p=new Ba({"line-cap":new Bn(j.layout_line["line-cap"]),"line-join":new An(j.layout_line["line-join"]),"line-miter-limit":new Bn(j.layout_line["line-miter-limit"]),"line-round-limit":new Bn(j.layout_line["line-round-limit"]),"line-sort-key":new An(j.layout_line["line-sort-key"])}),xp={paint:new Ba({"line-opacity":new An(j.paint_line["line-opacity"]),"line-color":new An(j.paint_line["line-color"]),"line-translate":new Bn(j.paint_line["line-translate"]),"line-translate-anchor":new Bn(j.paint_line["line-translate-anchor"]),"line-width":new An(j.paint_line["line-width"]),"line-gap-width":new An(j.paint_line["line-gap-width"]),"line-offset":new An(j.paint_line["line-offset"]),"line-blur":new An(j.paint_line["line-blur"]),"line-dasharray":new ss(j.paint_line["line-dasharray"]),"line-pattern":new os(j.paint_line["line-pattern"]),"line-gradient":new xu(j.paint_line["line-gradient"])}),layout:_p},Qp=new(function(o){function u(){o.apply(this,arguments)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.prototype)).constructor=u,u.prototype.possiblyEvaluate=function(c,m){return m=new Me(Math.floor(m.zoom),{now:m.now,fadeDuration:m.fadeDuration,zoomHistory:m.zoomHistory,transition:m.transition}),o.prototype.possiblyEvaluate.call(this,c,m)},u.prototype.evaluate=function(c,m,x,E){return m=Yt({},m,{zoom:Math.floor(m.zoom)}),o.prototype.evaluate.call(this,c,m,x,E)},u}(An))(xp.paint.properties["line-width"].specification);Qp.useIntegerZoom=!0;var qf=function(o){function u(c){o.call(this,c,xp),this.gradientVersion=0}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.prototype)).constructor=u,u.prototype._handleSpecialPaintPropertyUpdate=function(c){c==="line-gradient"&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof Bs,this.gradientVersion=(this.gradientVersion+1)%rt)},u.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},u.prototype.recalculate=function(c,m){o.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 Os(c)},u.prototype.queryRadius=function(c){var m=c,x=Jp(Oo("line-width",this,m),Oo("line-gap-width",this,m)),E=Oo("line-offset",this,m);return x/2+Math.abs(E)+ao(this.paint.get("line-translate"))},u.prototype.queryIntersectsFeature=function(c,m,x,E,A,R,L){var V=Ps(c,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),R.angle,L),Y=L/2*Jp(this.paint.get("line-width").evaluate(m,x),this.paint.get("line-gap-width").evaluate(m,x)),K=this.paint.get("line-offset").evaluate(m,x);return K&&(E=function(le,ve){for(var ze=[],I=new fe(0,0),ht=0;ht=3){for(var Je=0;Je0?u+2*o:o}var jv=yo([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Hv=yo([{name:"a_projected_pos",components:3,type:"Float32"}],4),Hd=(yo([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),yo([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Wd=(yo([{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"}]),yo([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),W=yo([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function Ce(o,u,c){return o.sections.forEach(function(m){m.text=function(x,E,A){var R=E.layout.get("text-transform").evaluate(A,{});return R==="uppercase"?x=x.toLocaleUpperCase():R==="lowercase"&&(x=x.toLocaleLowerCase()),Ft.applyArabicShaping&&(x=Ft.applyArabicShaping(x)),x}(m.text,u,c)}),o}yo([{name:"triangle",components:3,type:"Uint16"}]),yo([{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"}]),yo([{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"}]),yo([{type:"Float32",name:"offsetX"}]),yo([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var Ye={"!":"\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"},Kt=function(o,u,c,m,x){var E,A,R=8*x-m-1,L=(1<>1,Y=-7,K=c?x-1:0,le=c?-1:1,ve=o[u+K];for(K+=le,E=ve&(1<<-Y)-1,ve>>=-Y,Y+=R;Y>0;E=256*E+o[u+K],K+=le,Y-=8);for(A=E&(1<<-Y)-1,E>>=-Y,Y+=m;Y>0;A=256*A+o[u+K],K+=le,Y-=8);if(E===0)E=1-V;else{if(E===L)return A?NaN:1/0*(ve?-1:1);A+=Math.pow(2,m),E-=V}return(ve?-1:1)*A*Math.pow(2,E-m)},vr=function(o,u,c,m,x,E){var A,R,L,V=8*E-x-1,Y=(1<>1,le=x===23?Math.pow(2,-24)-Math.pow(2,-77):0,ve=m?0:E-1,ze=m?1:-1,I=u<0||u===0&&1/u<0?1:0;for(u=Math.abs(u),isNaN(u)||u===1/0?(R=isNaN(u)?1:0,A=Y):(A=Math.floor(Math.log(u)/Math.LN2),u*(L=Math.pow(2,-A))<1&&(A--,L*=2),(u+=A+K>=1?le/L:le*Math.pow(2,1-K))*L>=2&&(A++,L/=2),A+K>=Y?(R=0,A=Y):A+K>=1?(R=(u*L-1)*Math.pow(2,x),A+=K):(R=u*Math.pow(2,K-1)*Math.pow(2,x),A=0));x>=8;o[c+ve]=255&R,ve+=ze,R/=256,x-=8);for(A=A<0;o[c+ve]=255&A,ve+=ze,A/=256,V-=8);o[c+ve-ze]|=128*I},Jt=Ut;function Ut(o){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(o)?o:new Uint8Array(o||0),this.pos=0,this.type=0,this.length=this.buf.length}Ut.Varint=0,Ut.Fixed64=1,Ut.Bytes=2,Ut.Fixed32=5;var Br=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");function Or(o){return o.type===Ut.Bytes?o.readVarint()+o.pos:o.pos+1}function Yr(o,u,c){return c?4294967296*u+(o>>>0):4294967296*(u>>>0)+(o>>>0)}function Nr(o,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>=o;x--)c.buf[x+m]=c.buf[x]}function Wr(o,u){for(var c=0;c>>8,o[c+2]=u>>>16,o[c+3]=u>>>24}function fn(o,u){return(o[u]|o[u+1]<<8|o[u+2]<<16)+(o[u+3]<<24)}function Ar(o,u,c){o===1&&c.readMessage(un,u)}function un(o,u,c){if(o===3){var m=c.readMessage(jn,{}),x=m.width,E=m.height,A=m.left,R=m.top,L=m.advance;u.push({id:m.id,bitmap:new ru({width:x+6,height:E+6},m.bitmap),metrics:{width:x,height:E,left:A,top:R,advance:L}})}}function jn(o,u,c){o===1?u.id=c.readVarint():o===2?u.bitmap=c.readBytes():o===3?u.width=c.readVarint():o===4?u.height=c.readVarint():o===5?u.left=c.readSVarint():o===6?u.top=c.readSVarint():o===7&&(u.advance=c.readVarint())}function ai(o){for(var u=0,c=0,m=0,x=o;m=0;le--){var ve=A[le];if(!(K.w>ve.w||K.h>ve.h)){if(K.x=ve.x,K.y=ve.y,L=Math.max(L,K.y+K.h),R=Math.max(R,K.x+K.w),K.w===ve.w&&K.h===ve.h){var ze=A.pop();le>3,E=this.pos;this.type=7&m,o(x,u,this),this.pos===E&&this.skip(m)}return u},readMessage:function(o,u){return this.readFields(o,u,this.readVarint()+this.pos)},readFixed32:function(){var o=pn(this.buf,this.pos);return this.pos+=4,o},readSFixed32:function(){var o=fn(this.buf,this.pos);return this.pos+=4,o},readFixed64:function(){var o=pn(this.buf,this.pos)+4294967296*pn(this.buf,this.pos+4);return this.pos+=8,o},readSFixed64:function(){var o=pn(this.buf,this.pos)+4294967296*fn(this.buf,this.pos+4);return this.pos+=8,o},readFloat:function(){var o=Kt(this.buf,this.pos,!0,23,4);return this.pos+=4,o},readDouble:function(){var o=Kt(this.buf,this.pos,!0,52,8);return this.pos+=8,o},readVarint:function(o){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 R,L,V=A.buf;if(R=(112&(L=V[A.pos++]))>>4,L<128||(R|=(127&(L=V[A.pos++]))<<3,L<128)||(R|=(127&(L=V[A.pos++]))<<10,L<128)||(R|=(127&(L=V[A.pos++]))<<17,L<128)||(R|=(127&(L=V[A.pos++]))<<24,L<128)||(R|=(1&(L=V[A.pos++]))<<31,L<128))return Yr(x,R,E);throw new Error("Expected varint not more than 10 bytes")}(u|=(15&(c=m[this.pos]))<<28,o,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var o=this.readVarint();return o%2==1?(o+1)/-2:o/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var o=this.readVarint()+this.pos,u=this.pos;return this.pos=o,o-u>=12&&Br?function(c,m,x){return Br.decode(c.subarray(m,x))}(this.buf,u,o):function(c,m,x){for(var E="",A=m;A239?4:Y>223?3:Y>191?2:1;if(A+le>x)break;le===1?Y<128&&(K=Y):le===2?(192&(R=c[A+1]))==128&&(K=(31&Y)<<6|63&R)<=127&&(K=null):le===3?(L=c[A+2],(192&(R=c[A+1]))==128&&(192&L)==128&&((K=(15&Y)<<12|(63&R)<<6|63&L)<=2047||K>=55296&&K<=57343)&&(K=null)):le===4&&(L=c[A+2],V=c[A+3],(192&(R=c[A+1]))==128&&(192&L)==128&&(192&V)==128&&((K=(15&Y)<<18|(63&R)<<12|(63&L)<<6|63&V)<=65535||K>=1114112)&&(K=null)),K===null?(K=65533,le=1):K>65535&&(K-=65536,E+=String.fromCharCode(K>>>10&1023|55296),K=56320|1023&K),E+=String.fromCharCode(K),A+=le}return E}(this.buf,u,o)},readBytes:function(){var o=this.readVarint()+this.pos,u=this.buf.subarray(this.pos,o);return this.pos=o,u},readPackedVarint:function(o,u){if(this.type!==Ut.Bytes)return o.push(this.readVarint(u));var c=Or(this);for(o=o||[];this.pos127;);else if(u===Ut.Bytes)this.pos=this.readVarint()+this.pos;else if(u===Ut.Fixed32)this.pos+=4;else{if(u!==Ut.Fixed64)throw new Error("Unimplemented type: "+u);this.pos+=8}},writeTag:function(o,u){this.writeVarint(o<<3|u)},realloc:function(o){for(var u=this.length||16;u268435455||o<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,R){R.buf[R.pos++]=127&E|128,E>>>=7,R.buf[R.pos++]=127&E|128,E>>>=7,R.buf[R.pos++]=127&E|128,E>>>=7,R.buf[R.pos++]=127&E|128,R.buf[R.pos]=127&(E>>>=7)}(m,0,c),function(E,A){var R=(7&E)<<4;A.buf[A.pos++]|=R|((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)}(o,this):(this.realloc(4),this.buf[this.pos++]=127&o|(o>127?128:0),o<=127||(this.buf[this.pos++]=127&(o>>>=7)|(o>127?128:0),o<=127||(this.buf[this.pos++]=127&(o>>>=7)|(o>127?128:0),o<=127||(this.buf[this.pos++]=o>>>7&127))))},writeSVarint:function(o){this.writeVarint(o<0?2*-o-1:2*o)},writeBoolean:function(o){this.writeVarint(!!o)},writeString:function(o){o=String(o),this.realloc(4*o.length),this.pos++;var u=this.pos;this.pos=function(m,x,E){for(var A,R,L=0;L55295&&A<57344){if(!R){A>56319||L+1===x.length?(m[E++]=239,m[E++]=191,m[E++]=189):R=A;continue}if(A<56320){m[E++]=239,m[E++]=191,m[E++]=189,R=A;continue}A=R-55296<<10|A-56320|65536,R=null}else R&&(m[E++]=239,m[E++]=191,m[E++]=189,R=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,o,this.pos);var c=this.pos-u;c>=128&&Nr(u,c,this),this.pos=u-1,this.writeVarint(c),this.pos+=c},writeFloat:function(o){this.realloc(4),vr(this.buf,o,this.pos,!0,23,4),this.pos+=4},writeDouble:function(o){this.realloc(8),vr(this.buf,o,this.pos,!0,52,8),this.pos+=8},writeBytes:function(o){var u=o.length;this.writeVarint(u),this.realloc(u);for(var c=0;c=128&&Nr(c,m,this),this.pos=c-1,this.writeVarint(m),this.pos+=m},writeMessage:function(o,u,c){this.writeTag(o,Ut.Bytes),this.writeRawMessage(u,c)},writePackedVarint:function(o,u){u.length&&this.writeMessage(o,Wr,u)},writePackedSVarint:function(o,u){u.length&&this.writeMessage(o,tn,u)},writePackedBoolean:function(o,u){u.length&&this.writeMessage(o,Pt,u)},writePackedFloat:function(o,u){u.length&&this.writeMessage(o,kr,u)},writePackedDouble:function(o,u){u.length&&this.writeMessage(o,$r,u)},writePackedFixed32:function(o,u){u.length&&this.writeMessage(o,ur,u)},writePackedSFixed32:function(o,u){u.length&&this.writeMessage(o,Ur,u)},writePackedFixed64:function(o,u){u.length&&this.writeMessage(o,cn,u)},writePackedSFixed64:function(o,u){u.length&&this.writeMessage(o,Tr,u)},writeBytesField:function(o,u){this.writeTag(o,Ut.Bytes),this.writeBytes(u)},writeFixed32Field:function(o,u){this.writeTag(o,Ut.Fixed32),this.writeFixed32(u)},writeSFixed32Field:function(o,u){this.writeTag(o,Ut.Fixed32),this.writeSFixed32(u)},writeFixed64Field:function(o,u){this.writeTag(o,Ut.Fixed64),this.writeFixed64(u)},writeSFixed64Field:function(o,u){this.writeTag(o,Ut.Fixed64),this.writeSFixed64(u)},writeVarintField:function(o,u){this.writeTag(o,Ut.Varint),this.writeVarint(u)},writeSVarintField:function(o,u){this.writeTag(o,Ut.Varint),this.writeSVarint(u)},writeStringField:function(o,u){this.writeTag(o,Ut.Bytes),this.writeString(u)},writeFloatField:function(o,u){this.writeTag(o,Ut.Fixed32),this.writeFloat(u)},writeDoubleField:function(o,u){this.writeTag(o,Ut.Fixed64),this.writeDouble(u)},writeBooleanField:function(o,u){this.writeVarintField(o,!!u)}};var an=function(o,u){var c=u.pixelRatio,m=u.version,x=u.stretchX,E=u.stretchY,A=u.content;this.paddedRect=o,this.pixelRatio=c,this.stretchX=x,this.stretchY=E,this.content=A,this.version=m},Lr={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};Lr.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},Lr.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},Lr.tlbr.get=function(){return this.tl.concat(this.br)},Lr.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(an.prototype,Lr);var xr=function(o,u){var c={},m={};this.haveRenderCallbacks=[];var x=[];this.addImages(o,c,x),this.addImages(u,m,x);var E=ai(x),A=new Lo({width:E.w||1,height:E.h||1});for(var R in o){var L=o[R],V=c[R].paddedRect;Lo.copy(L.data,A,{x:0,y:0},{x:V.x+1,y:V.y+1},L.data)}for(var Y in u){var K=u[Y],le=m[Y].paddedRect,ve=le.x+1,ze=le.y+1,I=K.data.width,ht=K.data.height;Lo.copy(K.data,A,{x:0,y:0},{x:ve,y:ze},K.data),Lo.copy(K.data,A,{x:0,y:ht-1},{x:ve,y:ze-1},{width:I,height:1}),Lo.copy(K.data,A,{x:0,y:0},{x:ve,y:ze+ht},{width:I,height:1}),Lo.copy(K.data,A,{x:I-1,y:0},{x:ve-1,y:ze},{width:1,height:ht}),Lo.copy(K.data,A,{x:0,y:0},{x:ve+I,y:ze},{width:1,height:ht})}this.image=A,this.iconPositions=c,this.patternPositions=m};xr.prototype.addImages=function(o,u,c){for(var m in o){var x=o[m],E={x:0,y:0,w:x.data.width+2,h:x.data.height+2};c.push(E),u[m]=new an(E,x),x.hasRenderCallback&&this.haveRenderCallbacks.push(m)}},xr.prototype.patchUpdatedImages=function(o,u){for(var c in o.dispatchRenderCallbacks(this.haveRenderCallbacks),o.updatedImages)this.patchUpdatedImage(this.iconPositions[c],o.getImage(c),u),this.patchUpdatedImage(this.patternPositions[c],o.getImage(c),u)},xr.prototype.patchUpdatedImage=function(o,u,c){if(o&&u&&o.version!==u.version){o.version=u.version;var m=o.tl;c.update(u.data,void 0,{x:m[0],y:m[1]})}},xn("ImagePosition",an),xn("ImageAtlas",xr);var er={horizontal:1,vertical:2,horizontalOnly:3},Ti=function(){this.scale=1,this.fontStack="",this.imageName=null};Ti.forText=function(o,u){var c=new Ti;return c.scale=o||1,c.fontStack=u,c},Ti.forImage=function(o){var u=new Ti;return u.imageName=o,u};var Ke=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function _i(o,u,c,m,x,E,A,R,L,V,Y,K,le,ve,ze,I){var ht,Je=Ke.fromFeature(o,x);K===er.vertical&&Je.verticalizePunctuation();var wt=Ft.processBidirectionalText,Bt=Ft.processStyledBidirectionalText;if(wt&&Je.sections.length===1){ht=[];for(var nr=0,or=wt(Je.toString(),xo(Je,V,E,u,m,ve,ze));nr0&&zc>wo&&(wo=zc)}else{var nu=mi[ta.fontStack],th=nu&&nu[qu];if(th&&th.rect)Fl=th.rect,uo=th.metrics;else{var Uh=Mi[ta.fontStack],lc=Uh&&Uh[qu];if(!lc)continue;uo=lc.metrics}Bl=24*(Ki-ta.scale)}df?(Mn.verticalizable=!0,Da.push({glyph:qu,imageName:Cu,x:Ho,y:Gs+Bl,vertical:df,scale:ta.scale,fontStack:ta.fontStack,sectionIndex:Uc,metrics:uo,rect:Fl}),Ho+=pf*ta.scale+Fa):(Da.push({glyph:qu,imageName:Cu,x:Ho,y:Gs+Bl,vertical:df,scale:ta.scale,fontStack:ta.fontStack,sectionIndex:Uc,metrics:uo,rect:Fl}),Ho+=uo.advance*ta.scale+Fa)}Da.length!==0&&(hs=Math.max(Ho-Fa,hs),bo(Da,0,Da.length-1,To,wo)),Ho=0;var Gd=ea*Ki+wo;ws.lineOffset=Math.max(wo,ps),Gs+=Gd,ks=Math.max(Gd,ks),++wa}else Gs+=ea,++wa}var vf,sd=Gs- -17,zh=Aa(Ta),mf=zh.horizontalAlign,Zc=zh.verticalAlign;(function(Xd,$d,ud,Ep,Yd,ld,cd,cc,Sp){var gf,Ap=($d-ud)*Yd;gf=ld!==cd?-cc*Ep- -17:(-Ep*Sp+.5)*cd;for(var Vc=0,Zh=Xd;Vc=0&&m>=o&&si[this.text.charCodeAt(m)];m--)c--;this.text=this.text.substring(o,c),this.sectionIndex=this.sectionIndex.slice(o,c)},Ke.prototype.substring=function(o,u){var c=new Ke;return c.text=this.text.substring(o,u),c.sectionIndex=this.sectionIndex.slice(o,u),c.sections=this.sections,c},Ke.prototype.toString=function(){return this.text},Ke.prototype.getMaxScale=function(){var o=this;return this.sectionIndex.reduce(function(u,c){return Math.max(u,o.sections[c].scale)},0)},Ke.prototype.addTextSection=function(o,u){this.text+=o.text,this.sections.push(Ti.forText(o.scale,o.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 qi(o,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 R=c[u.fontStack],L=R&&R[o];return L?L.metrics.advance*u.scale+x:0}function vo(o,u,c,m){var x=Math.pow(o-u,2);return m?o=0,K=0,le=0;le-c/2;){if(--A<0)return!1;R-=o[A].dist(E),E=o[A]}R+=o[A].dist(o[A+1]),A++;for(var L=[],V=0;Rm;)V-=L.shift().angleDelta;if(V>x)return!1;A++,R+=Y.dist(K)}return!0}function ia(o){for(var u=0,c=0;cV){var ze=(V-L)/ve,I=qa(K.x,le.x,ze),ht=qa(K.y,le.y,ze),Je=new Ga(I,ht,le.angleTo(K),Y);return Je._round(),!A||cs(o,Je,R,A,u)?Je:void 0}L+=ve}}function Ao(o,u,c,m,x,E,A,R,L){var V=Xn(m,E,A),Y=Ri(m,x),K=Y*A,le=o[0].x===0||o[0].x===L||o[0].y===0||o[0].y===L;return u-K=0&&Hi=0&&Hn=0&&vn+Zr<=qr){var ea=new Ga(Hi,Hn,Mi,mn);ea._round(),Je&&!cs(ze,ea,Bt,Je,wt)||Zn.push(ea)}}Nn+=Mn}return or||Zn.length||nr||(Zn=ve(ze,Nn/2,ht,Je,wt,Bt,nr,!0,mr)),Zn}(o,le?u/2*R%u:(Y/2+2*E)*A*R%u,u,V,c,K,le,!1,L)}function gl(o,u,c,m,x){for(var E=[],A=0;A=m&&K.x>=m||(Y.x>=m?Y=new fe(m,Y.y+(m-Y.x)/(K.x-Y.x)*(K.y-Y.y))._round():K.x>=m&&(K=new fe(m,Y.y+(m-Y.x)/(K.x-Y.x)*(K.y-Y.y))._round()),Y.y>=x&&K.y>=x||(Y.y>=x?Y=new fe(Y.x+(x-Y.y)/(K.y-Y.y)*(K.x-Y.x),x)._round():K.y>=x&&(K=new fe(Y.x+(x-Y.y)/(K.y-Y.y)*(K.x-Y.x),x)._round()),L&&Y.equals(L[L.length-1])||E.push(L=[Y]),L.push(K)))))}return E}function He(o,u,c,m){var x=[],E=o.image,A=E.pixelRatio,R=E.paddedRect.w-2,L=E.paddedRect.h-2,V=o.right-o.left,Y=o.bottom-o.top,K=E.stretchX||[[0,R]],le=E.stretchY||[[0,L]],ve=function(Hi,Hn){return Hi+Hn[1]-Hn[0]},ze=K.reduce(ve,0),I=le.reduce(ve,0),ht=R-ze,Je=L-I,wt=0,Bt=ze,nr=0,or=I,mr=0,Zr=ht,qr=0,Nn=Je;if(E.content&&m){var vn=E.content;wt=rr(K,0,vn[0]),nr=rr(le,0,vn[1]),Bt=rr(K,vn[0],vn[2]),or=rr(le,vn[1],vn[3]),mr=vn[0]-wt,qr=vn[1]-nr,Zr=vn[2]-vn[0]-Bt,Nn=vn[3]-vn[1]-or}var Zn=function(Hi,Hn,ea,Ta){var so=dn(Hi.stretch-wt,Bt,V,o.left),ro=xi(Hi.fixed-mr,Zr,Hi.stretch,ze),Fa=dn(Hn.stretch-nr,or,Y,o.top),$a=xi(Hn.fixed-qr,Nn,Hn.stretch,I),ts=dn(ea.stretch-wt,Bt,V,o.left),Ho=xi(ea.fixed-mr,Zr,ea.stretch,ze),Gs=dn(Ta.stretch-nr,or,Y,o.top),hs=xi(Ta.fixed-qr,Nn,Ta.stretch,I),ks=new fe(so,Fa),To=new fe(ts,Fa),wa=new fe(ts,Gs),Ni=new fe(so,Gs),Ca=new fe(ro/A,$a/A),da=new fe(Ho/A,hs/A),Ki=u*Math.PI/180;if(Ki){var ps=Math.sin(Ki),ws=Math.cos(Ki),Da=[ws,-ps,ps,ws];ks._matMult(Da),To._matMult(Da),Ni._matMult(Da),wa._matMult(Da)}var wo=Hi.stretch+Hi.fixed,ds=Hn.stretch+Hn.fixed;return{tl:ks,tr:To,bl:Ni,br:wa,tex:{x:E.paddedRect.x+1+wo,y:E.paddedRect.y+1+ds,w:ea.stretch+ea.fixed-wo,h:Ta.stretch+Ta.fixed-ds},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Ca,pixelOffsetBR:da,minFontScaleX:Zr/A/V,minFontScaleY:Nn/A/Y,isSDF:c}};if(m&&(E.stretchX||E.stretchY))for(var mn=Ht(K,ht,ze),bi=Ht(le,Je,I),ei=0;ei0&&(ve=Math.max(10,ve),this.circleDiameter=ve)}else{var ze=E.top*A-R,I=E.bottom*A+R,ht=E.left*A-R,Je=E.right*A+R,wt=E.collisionPadding;if(wt&&(ht-=wt[0]*A,ze-=wt[1]*A,Je+=wt[2]*A,I+=wt[3]*A),V){var Bt=new fe(ht,ze),nr=new fe(Je,ze),or=new fe(ht,I),mr=new fe(Je,I),Zr=V*Math.PI/180;Bt._rotate(Zr),nr._rotate(Zr),or._rotate(Zr),mr._rotate(Zr),ht=Math.min(Bt.x,nr.x,or.x,mr.x),Je=Math.max(Bt.x,nr.x,or.x,mr.x),ze=Math.min(Bt.y,nr.y,or.y,mr.y),I=Math.max(Bt.y,nr.y,or.y,mr.y)}o.emplaceBack(u.x,u.y,ht,ze,Je,I,c,m,x)}this.boxEndIndex=o.length},de=function(o,u){if(o===void 0&&(o=[]),u===void 0&&(u=Oe),this.data=o,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 Oe(o,u){return ou?1:0}function $e(o,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,R=o[0],L=0;LE)&&(E=V.x),(!L||V.y>A)&&(A=V.y)}var Y=Math.min(E-m,A-x),K=Y/2,le=new de([],Gt);if(Y===0)return new fe(m,x);for(var ve=m;veI.d||!I.d)&&(I=Je,c&&console.log("found best %d after %d probes",Math.round(1e4*Je.d)/1e4,ht)),Je.max-I.d<=u||(le.push(new Nt(Je.p.x-(K=Je.h/2),Je.p.y-K,K,o)),le.push(new Nt(Je.p.x+K,Je.p.y-K,K,o)),le.push(new Nt(Je.p.x-K,Je.p.y+K,K,o)),le.push(new Nt(Je.p.x+K,Je.p.y+K,K,o)),ht+=4)}return c&&(console.log("num probes: "+ht),console.log("best distance: "+I.d)),I.p}function Gt(o,u){return u.max-o.max}function Nt(o,u,c,m){this.p=new fe(o,u),this.h=c,this.d=function(x,E){for(var A=!1,R=1/0,L=0;Lx.y!=ze.y>x.y&&x.x<(ze.x-ve.x)*(x.y-ve.y)/(ze.y-ve.y)+ve.x&&(A=!A),R=Math.min(R,nc(x,ve,ze))}return(A?1:-1)*Math.sqrt(R)}(this.p,m),this.max=this.d+this.h*Math.SQRT2}de.prototype.push=function(o){this.data.push(o),this.length++,this._up(this.length-1)},de.prototype.pop=function(){if(this.length!==0){var o=this.data[0],u=this.data.pop();return this.length--,this.length>0&&(this.data[0]=u,this._down(0)),o}},de.prototype.peek=function(){return this.data[0]},de.prototype._up=function(o){for(var u=this.data,c=this.compare,m=u[o];o>0;){var x=o-1>>1,E=u[x];if(c(m,E)>=0)break;u[o]=E,o=x}u[o]=m},de.prototype._down=function(o){for(var u=this.data,c=this.compare,m=this.length>>1,x=u[o];o=0)break;u[o]=A,o=E}u[o]=x};var ct=Number.POSITIVE_INFINITY;function yt(o,u){return u[1]!==ct?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]}(o,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]}(o,u[0])}function xt(o){switch(o){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function We(o,u,c,m,x,E,A,R,L,V,Y,K,le,ve,ze){var I=function(nr,or,mr,Zr,qr,Nn,vn,Zn){for(var mn=Zr.layout.get("text-rotate").evaluate(Nn,{})*Math.PI/180,bi=[],ei=0,Mn=or.positionedLines;ei32640&&qe(o.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):ht.kind==="composite"&&((Je=[128*ve.compositeTextSizes[0].evaluate(A,{},ze),128*ve.compositeTextSizes[1].evaluate(A,{},ze)])[0]>32640||Je[1]>32640)&&qe(o.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),o.addSymbols(o.text,I,Je,R,E,A,V,u,L.lineStartIndex,L.lineLength,le,ze);for(var wt=0,Bt=Y;wt=0;A--)if(m.dist(E[A])0)&&(E.value.kind!=="constant"||E.value.value.length>0),V=R.value.kind!=="constant"||!!R.value.value||Object.keys(R.parameters).length>0,Y=x.get("symbol-sort-key");if(this.features=[],L||V){for(var K=u.iconDependencies,le=u.glyphDependencies,ve=u.availableImages,ze=new Me(this.zoom),I=0,ht=o;I=0;for(var Mi=0,mi=qr.sections;Mi=0;R--)E[R]={x:u[R].x,y:u[R].y,tileUnitDistanceFromAnchor:x},R>0&&(x+=u[R-1].dist(u[R]));for(var L=0;L0},Sn.prototype.hasIconData=function(){return this.icon.segments.get().length>0},Sn.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},Sn.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},Sn.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},Sn.prototype.addIndicesForPlacedSymbol=function(o,u){for(var c=o.placedSymbolArray.get(u),m=c.vertexStartIndex+4*c.numGlyphs,x=c.vertexStartIndex;x1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(o),this.sortedAngle=o,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var c=0,m=this.symbolInstanceIndexes;c=0&&R.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)}},xn("SymbolBucket",Sn,{omit:["layers","collisionBoxArray","features","compareText"]}),Sn.MAX_GLYPHS=65535,Sn.addDynamicAttributes=Cr;var Tn=new Ba({"symbol-placement":new Bn(j.layout_symbol["symbol-placement"]),"symbol-spacing":new Bn(j.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new Bn(j.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new An(j.layout_symbol["symbol-sort-key"]),"symbol-z-order":new Bn(j.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new Bn(j.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new Bn(j.layout_symbol["icon-ignore-placement"]),"icon-optional":new Bn(j.layout_symbol["icon-optional"]),"icon-rotation-alignment":new Bn(j.layout_symbol["icon-rotation-alignment"]),"icon-size":new An(j.layout_symbol["icon-size"]),"icon-text-fit":new Bn(j.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new Bn(j.layout_symbol["icon-text-fit-padding"]),"icon-image":new An(j.layout_symbol["icon-image"]),"icon-rotate":new An(j.layout_symbol["icon-rotate"]),"icon-padding":new Bn(j.layout_symbol["icon-padding"]),"icon-keep-upright":new Bn(j.layout_symbol["icon-keep-upright"]),"icon-offset":new An(j.layout_symbol["icon-offset"]),"icon-anchor":new An(j.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new Bn(j.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new Bn(j.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new Bn(j.layout_symbol["text-rotation-alignment"]),"text-field":new An(j.layout_symbol["text-field"]),"text-font":new An(j.layout_symbol["text-font"]),"text-size":new An(j.layout_symbol["text-size"]),"text-max-width":new An(j.layout_symbol["text-max-width"]),"text-line-height":new Bn(j.layout_symbol["text-line-height"]),"text-letter-spacing":new An(j.layout_symbol["text-letter-spacing"]),"text-justify":new An(j.layout_symbol["text-justify"]),"text-radial-offset":new An(j.layout_symbol["text-radial-offset"]),"text-variable-anchor":new Bn(j.layout_symbol["text-variable-anchor"]),"text-anchor":new An(j.layout_symbol["text-anchor"]),"text-max-angle":new Bn(j.layout_symbol["text-max-angle"]),"text-writing-mode":new Bn(j.layout_symbol["text-writing-mode"]),"text-rotate":new An(j.layout_symbol["text-rotate"]),"text-padding":new Bn(j.layout_symbol["text-padding"]),"text-keep-upright":new Bn(j.layout_symbol["text-keep-upright"]),"text-transform":new An(j.layout_symbol["text-transform"]),"text-offset":new An(j.layout_symbol["text-offset"]),"text-allow-overlap":new Bn(j.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new Bn(j.layout_symbol["text-ignore-placement"]),"text-optional":new Bn(j.layout_symbol["text-optional"])}),$n={paint:new Ba({"icon-opacity":new An(j.paint_symbol["icon-opacity"]),"icon-color":new An(j.paint_symbol["icon-color"]),"icon-halo-color":new An(j.paint_symbol["icon-halo-color"]),"icon-halo-width":new An(j.paint_symbol["icon-halo-width"]),"icon-halo-blur":new An(j.paint_symbol["icon-halo-blur"]),"icon-translate":new Bn(j.paint_symbol["icon-translate"]),"icon-translate-anchor":new Bn(j.paint_symbol["icon-translate-anchor"]),"text-opacity":new An(j.paint_symbol["text-opacity"]),"text-color":new An(j.paint_symbol["text-color"],{runtimeType:jr,getOverride:function(o){return o.textColor},hasOverride:function(o){return!!o.textColor}}),"text-halo-color":new An(j.paint_symbol["text-halo-color"]),"text-halo-width":new An(j.paint_symbol["text-halo-width"]),"text-halo-blur":new An(j.paint_symbol["text-halo-blur"]),"text-translate":new Bn(j.paint_symbol["text-translate"]),"text-translate-anchor":new Bn(j.paint_symbol["text-translate-anchor"])}),layout:Tn},ni=function(o){this.type=o.property.overrides?o.property.overrides.runtimeType:Qr,this.defaultValue=o};ni.prototype.evaluate=function(o){if(o.formattedSection){var u=this.defaultValue.property.overrides;if(u&&u.hasOverride(o.formattedSection))return u.getOverride(o.formattedSection)}return o.feature&&o.featureState?this.defaultValue.evaluate(o.feature,o.featureState):this.defaultValue.property.specification.default},ni.prototype.eachChild=function(o){this.defaultValue.isConstant()||o(this.defaultValue.value._styleExpression.expression)},ni.prototype.outputDefined=function(){return!1},ni.prototype.serialize=function(){return null},xn("FormatSectionOverride",ni,{omit:["defaultValue"]});var aa=function(o){function u(c){o.call(this,c,$n)}return o&&(u.__proto__=o),(u.prototype=Object.create(o&&o.prototype)).constructor=u,u.prototype.recalculate=function(c,m){if(o.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,R=x;A",targetMapId:m,sourceMapId:E.mapId})}}},Lh.prototype.receive=function(o){var u=o.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 oe()||u.mustQueue?(this.tasks[c]=u,this.taskQueue.push(c),this.invoker.trigger()):this.processTask(c,u)},Lh.prototype.process=function(){if(this.taskQueue.length){var o=this.taskQueue.shift(),u=this.tasks[o];delete this.tasks[o],this.taskQueue.length&&this.invoker.trigger(),u&&this.processTask(o,u)}},Lh.prototype.processTask=function(o,u){var c=this;if(u.type===""){var m=this.callbacks[o];delete this.callbacks[o],m&&(u.error?m(pa(u.error)):m(null,pa(u.data)))}else{var x=!1,E=Be(this.globalScope)?void 0:[],A=u.hasCallback?function(Y,K){x=!0,delete c.cancelCallbacks[o],c.target.postMessage({id:o,type:"",sourceMapId:c.mapId,error:Y?as(Y):null,data:as(K,E)},E)}:function(Y){x=!0},R=null,L=pa(u.data);if(this.parent[u.type])R=this.parent[u.type](u.sourceMapId,L,A);else if(this.parent.getWorkerSource){var V=u.type.split(".");R=this.parent.getWorkerSource(u.sourceMapId,V[0],L.source)[V[1]](L,A)}else A(new Error("Could not find function "+u.type));!x&&R&&R.cancel&&(this.cancelCallbacks[o]=R.cancel)}},Lh.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var jo=function(o,u){o&&(u?this.setSouthWest(o).setNorthEast(u):o.length===4?this.setSouthWest([o[0],o[1]]).setNorthEast([o[2],o[3]]):this.setSouthWest(o[0]).setNorthEast(o[1]))};jo.prototype.setNorthEast=function(o){return this._ne=o instanceof Xa?new Xa(o.lng,o.lat):Xa.convert(o),this},jo.prototype.setSouthWest=function(o){return this._sw=o instanceof Xa?new Xa(o.lng,o.lat):Xa.convert(o),this},jo.prototype.extend=function(o){var u,c,m=this._sw,x=this._ne;if(o instanceof Xa)u=o,c=o;else{if(!(o instanceof jo))return Array.isArray(o)?o.length===4||o.every(Array.isArray)?this.extend(jo.convert(o)):this.extend(Xa.convert(o)):this;if(c=o._ne,!(u=o._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},jo.prototype.getCenter=function(){return new Xa((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},jo.prototype.getSouthWest=function(){return this._sw},jo.prototype.getNorthEast=function(){return this._ne},jo.prototype.getNorthWest=function(){return new Xa(this.getWest(),this.getNorth())},jo.prototype.getSouthEast=function(){return new Xa(this.getEast(),this.getSouth())},jo.prototype.getWest=function(){return this._sw.lng},jo.prototype.getSouth=function(){return this._sw.lat},jo.prototype.getEast=function(){return this._ne.lng},jo.prototype.getNorth=function(){return this._ne.lat},jo.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},jo.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},jo.prototype.isEmpty=function(){return!(this._sw&&this._ne)},jo.prototype.contains=function(o){var u=Xa.convert(o),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},jo.convert=function(o){return!o||o instanceof jo?o:new jo(o)};var Xa=function(o,u){if(isNaN(o)||isNaN(u))throw new Error("Invalid LngLat object: ("+o+", "+u+")");if(this.lng=+o,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(Xt(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(o){var u=Math.PI/180,c=this.lat*u,m=o.lat*u,x=Math.sin(c)*Math.sin(m)+Math.cos(c)*Math.cos(m)*Math.cos((o.lng-this.lng)*u);return 63710088e-1*Math.acos(Math.min(x,1))},Xa.prototype.toBounds=function(o){o===void 0&&(o=0);var u=360*o/40075017,c=u/Math.cos(Math.PI/180*this.lat);return new jo(new Xa(this.lng-c,this.lat-u),new Xa(this.lng+c,this.lat+u))},Xa.convert=function(o){if(o instanceof Xa)return o;if(Array.isArray(o)&&(o.length===2||o.length===3))return new Xa(Number(o[0]),Number(o[1]));if(!Array.isArray(o)&&typeof o=="object"&&o!==null)return new Xa(Number("lng"in o?o.lng:o.lon),Number(o.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 sg=2*Math.PI*63710088e-1;function ug(o){return sg*Math.cos(o*Math.PI/180)}function Di(o){return(180+o)/360}function Pi(o){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+o*Math.PI/360)))/360}function Bh(o,u){return o/ug(u)}function nd(o){return 360/Math.PI*Math.atan(Math.exp((180-360*o)*Math.PI/180))-90}var Fh=function(o,u,c){c===void 0&&(c=0),this.x=+o,this.y=+u,this.z=+c};Fh.fromLngLat=function(o,u){u===void 0&&(u=0);var c=Xa.convert(o);return new Fh(Di(c.lng),Pi(c.lat),Bh(u,c.lat))},Fh.prototype.toLngLat=function(){return new Xa(360*this.x-180,nd(this.y))},Fh.prototype.toAltitude=function(){return this.z*ug(nd(this.y))},Fh.prototype.meterInMercatorCoordinateUnits=function(){return 1/sg*(o=nd(this.y),1/Math.cos(o*Math.PI/180));var o};var Qf=function(o,u,c){this.z=o,this.x=u,this.y=c,this.key=uc(0,o,o,u,c)};Qf.prototype.equals=function(o){return this.z===o.z&&this.x===o.x&&this.y===o.y},Qf.prototype.url=function(o,u){var c,m,x,E,A,R=(m=this.y,x=this.z,E=Gv(256*(c=this.x),256*(m=Math.pow(2,x)-m-1),x),A=Gv(256*(c+1),256*(m+1),x),E[0]+","+E[1]+","+A[0]+","+A[1]),L=function(V,Y,K){for(var le,ve="",ze=V;ze>0;ze--)ve+=(Y&(le=1<this.canonical.z?new to(o,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new to(o,this.wrap,o,this.canonical.x>>u,this.canonical.y>>u)},to.prototype.calculateScaledKey=function(o,u){var c=this.canonical.z-o;return o>this.canonical.z?uc(this.wrap*+u,o,this.canonical.z,this.canonical.x,this.canonical.y):uc(this.wrap*+u,o,o,this.canonical.x>>c,this.canonical.y>>c)},to.prototype.isChildOf=function(o){if(o.wrap!==this.wrap)return!1;var u=this.canonical.z-o.canonical.z;return o.overscaledZ===0||o.overscaledZ>u&&o.canonical.y===this.canonical.y>>u},to.prototype.children=function(o){if(this.overscaledZ>=o)return[new to(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 to(u,this.wrap,u,c,m),new to(u,this.wrap,u,c+1,m),new to(u,this.wrap,u,c,m+1),new to(u,this.wrap,u,c+1,m+1)]},to.prototype.isLessThan=function(o){return this.wrapo.wrap)&&(this.overscaledZo.overscaledZ)&&(this.canonical.xo.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+(o+1)},Nc.prototype._unpackMapbox=function(o,u,c){return(256*o*256+256*u+c)/10-1e4},Nc.prototype._unpackTerrarium=function(o,u,c){return 256*o+u+c/256-32768},Nc.prototype.getPixels=function(){return new Lo({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Nc.prototype.backfillBorder=function(o,u,c){if(this.dim!==o.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 R=-u*this.dim,L=-c*this.dim,V=E;V=0&&Y[3]>=0&&R.insert(A,Y[0],Y[1],Y[2],Y[3])}},hf.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new sc.VectorTile(new Jt(this.rawTileData)).layers,this.sourceLayerCoder=new id(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},hf.prototype.query=function(o,u,c,m){var x=this;this.loadVTLayers();for(var E=o.params||{},A=8192/o.tileSize/o.scale,R=sl(E.filter),L=o.queryGeometry,V=o.queryPadding*A,Y=$v(L),K=this.grid.query(Y.minX-V,Y.minY-V,Y.maxX+V,Y.maxY+V),le=$v(o.cameraQueryGeometry),ve=this.grid3D.query(le.minX-V,le.minY-V,le.maxX+V,le.maxY+V,function(nr,or,mr,Zr){return function(qr,Nn,vn,Zn,mn){for(var bi=0,ei=qr;bi=Mn.x&&mn>=Mn.y)return!0}var Mi=[new fe(Nn,vn),new fe(Nn,mn),new fe(Zn,mn),new fe(Zn,vn)];if(qr.length>2){for(var mi=0,Hi=Mi;mi=0)return!0;return!1}(E,K)){var le=this.sourceLayerCoder.decode(c),ve=this.vtLayers[le].feature(m);if(x.needGeometry){var ze=Ja(ve,!0);if(!x.filter(new Me(this.tileID.overscaledZ),ze,this.tileID.canonical))return}else if(!x.filter(new Me(this.tileID.overscaledZ),ve))return;for(var I=this.getId(ve,le),ht=0;htm)x=!1;else if(u)if(this.expirationTimeVr&&(o.getActor().send("enforceCacheSizeLimit",pr),ue=0)},y.clamp=Ot,y.clearTileCache=function(o){var u=ce.caches.delete("mapbox-tiles");o&&u.catch(o).then(function(){return o()})},y.clipLine=gl,y.clone=function(o){var u=new Fi(16);return u[0]=o[0],u[1]=o[1],u[2]=o[2],u[3]=o[3],u[4]=o[4],u[5]=o[5],u[6]=o[6],u[7]=o[7],u[8]=o[8],u[9]=o[9],u[10]=o[10],u[11]=o[11],u[12]=o[12],u[13]=o[13],u[14]=o[14],u[15]=o[15],u},y.clone$1=ft,y.clone$2=function(o){var u=new Fi(3);return u[0]=o[0],u[1]=o[1],u[2]=o[2],u},y.collisionCircleLayout=W,y.config=on,y.create=function(){var o=new Fi(16);return Fi!=Float32Array&&(o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[11]=0,o[12]=0,o[13]=0,o[14]=0),o[0]=1,o[5]=1,o[10]=1,o[15]=1,o},y.create$1=function(){var o=new Fi(9);return Fi!=Float32Array&&(o[1]=0,o[2]=0,o[3]=0,o[5]=0,o[6]=0,o[7]=0),o[0]=1,o[4]=1,o[8]=1,o},y.create$2=function(){var o=new Fi(4);return Fi!=Float32Array&&(o[1]=0,o[2]=0),o[0]=1,o[3]=1,o},y.createCommonjsModule=he,y.createExpression=Jc,y.createLayout=yo,y.createStyleLayer=function(o){return o.type==="custom"?new ed(o):new Ll[o.type](o)},y.cross=function(o,u,c){var m=u[0],x=u[1],E=u[2],A=c[0],R=c[1],L=c[2];return o[0]=x*L-E*R,o[1]=E*A-m*L,o[2]=m*R-x*A,o},y.deepEqual=function o(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)),o[0]=u[0]*E,o[1]=u[1]*E,o[2]=u[2]*E,o},y.number=qa,y.offscreenCanvasSupported=k,y.ortho=function(o,u,c,m,x,E,A){var R=1/(u-c),L=1/(m-x),V=1/(E-A);return o[0]=-2*R,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=-2*L,o[6]=0,o[7]=0,o[8]=0,o[9]=0,o[10]=2*V,o[11]=0,o[12]=(u+c)*R,o[13]=(x+m)*L,o[14]=(A+E)*V,o[15]=1,o},y.parseGlyphPBF=function(o){return new Jt(o).readFields(Ar,[])},y.pbf=Jt,y.performSymbolLayout=function(o,u,c,m,x,E,A){o.createArrays(),o.tilePixelRatio=8192/(512*o.overscaling),o.compareText={},o.iconsNeedLinear=!1;var R=o.layers[0].layout,L=o.layers[0]._unevaluatedLayout._values,V={};if(o.textSizeData.kind==="composite"){var Y=o.textSizeData,K=Y.maxZoom;V.compositeTextSizes=[L["text-size"].possiblyEvaluate(new Me(Y.minZoom),A),L["text-size"].possiblyEvaluate(new Me(K),A)]}if(o.iconSizeData.kind==="composite"){var le=o.iconSizeData,ve=le.maxZoom;V.compositeIconSizes=[L["icon-size"].possiblyEvaluate(new Me(le.minZoom),A),L["icon-size"].possiblyEvaluate(new Me(ve),A)]}V.layoutTextSize=L["text-size"].possiblyEvaluate(new Me(o.zoom+1),A),V.layoutIconSize=L["icon-size"].possiblyEvaluate(new Me(o.zoom+1),A),V.textMaxSize=L["text-size"].possiblyEvaluate(new Me(18));for(var ze=24*R.get("text-line-height"),I=R.get("text-rotation-alignment")==="map"&&R.get("symbol-placement")!=="point",ht=R.get("text-keep-upright"),Je=R.get("text-size"),wt=function(){var or=nr[Bt],mr=R.get("text-font").evaluate(or,{},A).join(","),Zr=Je.evaluate(or,{},A),qr=V.layoutTextSize.evaluate(or,{},A),Nn=V.layoutIconSize.evaluate(or,{},A),vn={horizontal:{},vertical:void 0},Zn=or.text,mn=[0,0];if(Zn){var bi=Zn.toString(),ei=24*R.get("text-letter-spacing").evaluate(or,{},A),Mn=function(Ni){for(var Ca=0,da=Ni;Ca=8192||Kd.y<0||Kd.y>=8192||function(lo,zl,Vy,xf,Yv,hg,Qd,fc,Jd,Tp,pd,dd,ev,qv,wp,Kv,Qv,Jv,em,tm,Ru,vd,rm,hc,pg){var nm,nh,Wo,jh,Hh,Wh=lo.addToLineVertexArray(zl,Vy),im=0,am=0,om=0,sm=0,tv=-1,rv=-1,jc={},um=Ne(""),nv=0,iv=0;if(fc._unevaluatedLayout.getValue("text-radial-offset")===void 0?(nv=(nm=fc.layout.get("text-offset").evaluate(Ru,{},hc).map(function(yd){return 24*yd}))[0],iv=nm[1]):(nv=24*fc.layout.get("text-radial-offset").evaluate(Ru,{},hc),iv=ct),lo.allowVerticalPlacement&&xf.vertical){var lm=fc.layout.get("text-rotate").evaluate(Ru,{},hc)+90;jh=new ya(Jd,zl,Tp,pd,dd,xf.vertical,ev,qv,wp,lm),Qd&&(Hh=new ya(Jd,zl,Tp,pd,dd,Qd,Qv,Jv,wp,lm))}if(Yv){var av=fc.layout.get("icon-rotate").evaluate(Ru,{}),cm=fc.layout.get("icon-text-fit")!=="none",dg=He(Yv,av,rm,cm),fm=Qd?He(Qd,av,rm,cm):void 0;Wo=new ya(Jd,zl,Tp,pd,dd,Yv,Qv,Jv,!1,av),im=4*dg.length;var vg=lo.iconSizeData,md=null;vg.kind==="source"?(md=[128*fc.layout.get("icon-size").evaluate(Ru,{})])[0]>32640&&qe(lo.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):vg.kind==="composite"&&((md=[128*vd.compositeIconSizes[0].evaluate(Ru,{},hc),128*vd.compositeIconSizes[1].evaluate(Ru,{},hc)])[0]>32640||md[1]>32640)&&qe(lo.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),lo.addSymbols(lo.icon,dg,md,tm,em,Ru,!1,zl,Wh.lineStartIndex,Wh.lineLength,-1,hc),tv=lo.icon.placedSymbolArray.length-1,fm&&(am=4*fm.length,lo.addSymbols(lo.icon,fm,md,tm,em,Ru,er.vertical,zl,Wh.lineStartIndex,Wh.lineLength,-1,hc),rv=lo.icon.placedSymbolArray.length-1)}for(var hm in xf.horizontal){var gd=xf.horizontal[hm];if(!nh){um=Ne(gd.text);var pm=fc.layout.get("text-rotate").evaluate(Ru,{},hc);nh=new ya(Jd,zl,Tp,pd,dd,gd,ev,qv,wp,pm)}var dm=gd.positionedLines.length===1;if(om+=We(lo,zl,gd,hg,fc,wp,Ru,Kv,Wh,xf.vertical?er.horizontal:er.horizontalOnly,dm?Object.keys(xf.horizontal):[hm],jc,tv,vd,hc),dm)break}xf.vertical&&(sm+=We(lo,zl,xf.vertical,hg,fc,wp,Ru,Kv,Wh,er.vertical,["vertical"],jc,rv,vd,hc));var mg=nh?nh.boxStartIndex:lo.collisionBoxArray.length,gg=nh?nh.boxEndIndex:lo.collisionBoxArray.length,C0=jh?jh.boxStartIndex:lo.collisionBoxArray.length,yg=jh?jh.boxEndIndex:lo.collisionBoxArray.length,R0=Wo?Wo.boxStartIndex:lo.collisionBoxArray.length,_g=Wo?Wo.boxEndIndex:lo.collisionBoxArray.length,xg=Hh?Hh.boxStartIndex:lo.collisionBoxArray.length,M0=Hh?Hh.boxEndIndex:lo.collisionBoxArray.length,Hc=-1,ov=function(yd,vm){return yd&&yd.circleDiameter?Math.max(yd.circleDiameter,vm):vm};Hc=ov(nh,Hc),Hc=ov(jh,Hc),Hc=ov(Wo,Hc);var bg=(Hc=ov(Hh,Hc))>-1?1:0;bg&&(Hc*=pg/24),lo.glyphOffsetArray.length>=Sn.MAX_GLYPHS&&qe("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Ru.sortKey!==void 0&&lo.addToSortKeyRanges(lo.symbolInstances.length,Ru.sortKey),lo.symbolInstances.emplaceBack(zl.x,zl.y,jc.right>=0?jc.right:-1,jc.center>=0?jc.center:-1,jc.left>=0?jc.left:-1,jc.vertical||-1,tv,rv,um,mg,gg,C0,yg,R0,_g,xg,M0,Tp,om,sm,im,am,bg,0,ev,nv,iv,Hc)}(Ni,Kd,w0,da,Ki,ps,Bl,Ni.layers[0],Ni.collisionBoxArray,Ca.index,Ca.sourceLayerIndex,Ni.index,df,nu,lc,ds,Nl,th,Gd,Fl,Ca,ws,ta,Uc,Da)};if(vf==="line")for(var Zc=0,Xd=gl(Ca.geometry,0,0,8192,8192);Zc1){var Sp=Xi(cc,Uh,da.vertical||Cu,Ki,24,eh);Sp&&mf(cc,Sp)}}else if(Ca.type==="Polygon")for(var gf=0,Ap=mp(Ca.geometry,0);gf=Li.maxzoom||Li.visibility!=="none"&&(ce(ci,this.zoom,$),($t[Li.id]=Li.createBucket({index:j.bucketLayerIDs.length,layers:ci,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Xr,sourceID:this.source})).populate(zr,yr,this.tileID.canonical),j.bucketLayerIDs.push(ci.map(function(Si){return Si.id})))}}}var Ei=y.mapObject(yr.glyphDependencies,function(Si){return Object.keys(Si).map(Number)});Object.keys(Ei).length?ee.send("getGlyphs",{uid:this.uid,stacks:Ei},function(Si,di){Q||(Q=Si,Fe=di,Pa.call(Ue))}):Fe={};var ns=Object.keys(yr.iconDependencies);ns.length?ee.send("getImages",{icons:ns,source:this.source,tileID:this.tileID,type:"icons"},function(Si,di){Q||(Q=Si,et=di,Pa.call(Ue))}):et={};var Qi=Object.keys(yr.patternDependencies);function Pa(){if(Q)return xe(Q);if(Fe&&et&&Ae){var Si=new fe(Fe),di=new y.ImageAtlas(et,Ae);for(var Ai in $t){var Oa=$t[Ai];Oa instanceof y.SymbolBucket?(ce(Oa.layers,this.zoom,$),y.performSymbolLayout(Oa,Fe,Si.positions,et,di.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):Oa.hasPattern&&(Oa instanceof y.LineBucket||Oa instanceof y.FillBucket||Oa instanceof y.FillExtrusionBucket)&&(ce(Oa.layers,this.zoom,$),Oa.addFeatures(yr,this.tileID.canonical,di.patternPositions))}this.status="done",xe(null,{buckets:y.values($t).filter(function(vu){return!vu.isEmpty()}),featureIndex:j,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Si.image,imageAtlas:di,glyphMap:this.returnDependencies?Fe:null,iconMap:this.returnDependencies?et:null,glyphPositions:this.returnDependencies?Si.positions:null})}}Qi.length?ee.send("getImages",{icons:Qi,source:this.source,tileID:this.tileID,type:"patterns"},function(Si,di){Q||(Q=Si,Ae=di,Pa.call(Ue))}):Ae={},Pa.call(this)};var vt=function(N,B,$,ee){this.actor=N,this.layerIndex=B,this.availableImages=$,this.loadVectorData=ee||rt,this.loading={},this.loaded={}};vt.prototype.loadTile=function(N,B){var $=this,ee=N.uid;this.loading||(this.loading={});var xe=!!(N&&N.request&&N.request.collectResourceTiming)&&new y.RequestPerformance(N.request),Ue=this.loading[ee]=new it(N);Ue.abort=this.loadVectorData(N,function(Qe,j){if(delete $.loading[ee],Qe||!j)return Ue.status="done",$.loaded[ee]=Ue,B(Qe);var Q=j.rawData,Fe={};j.expires&&(Fe.expires=j.expires),j.cacheControl&&(Fe.cacheControl=j.cacheControl);var et={};if(xe){var Ae=xe.finish();Ae&&(et.resourceTiming=JSON.parse(JSON.stringify(Ae)))}Ue.vectorTile=j.vectorTile,Ue.parse(j.vectorTile,$.layerIndex,$.availableImages,$.actor,function($t,yr){if($t||!yr)return B($t);B(null,y.extend({rawTileData:Q.slice(0)},yr,Fe,et))}),$.loaded=$.loaded||{},$.loaded[ee]=Ue})},vt.prototype.reloadTile=function(N,B){var $=this,ee=this.loaded,xe=N.uid,Ue=this;if(ee&&ee[xe]){var Qe=ee[xe];Qe.showCollisionBoxes=N.showCollisionBoxes;var j=function(Q,Fe){var et=Qe.reloadCallback;et&&(delete Qe.reloadCallback,Qe.parse(Qe.vectorTile,Ue.layerIndex,$.availableImages,Ue.actor,et)),B(Q,Fe)};Qe.status==="parsing"?Qe.reloadCallback=j:Qe.status==="done"&&(Qe.vectorTile?Qe.parse(Qe.vectorTile,this.layerIndex,this.availableImages,this.actor,j):j())}},vt.prototype.abortTile=function(N,B){var $=this.loading,ee=N.uid;$&&$[ee]&&$[ee].abort&&($[ee].abort(),delete $[ee]),B()},vt.prototype.removeTile=function(N,B){var $=this.loaded,ee=N.uid;$&&$[ee]&&delete $[ee],B()};var tt=y.window.ImageBitmap,Ot=function(){this.loaded={}};function Xt(N,B){if(N.length!==0){Yt(N[0],B);for(var $=1;$=Math.abs(j)?$-Q+j:j-Q+$,$=Q}$+ee>=0!=!!B&&N.reverse()}Ot.prototype.loadTile=function(N,B){var $=N.uid,ee=N.encoding,xe=N.rawImageData,Ue=tt&&xe instanceof tt?this.getImageData(xe):xe,Qe=new y.DEMData($,Ue,ee);this.loaded=this.loaded||{},this.loaded[$]=Qe,B(null,Qe)},Ot.prototype.getImageData=function(N){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(N.width,N.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=N.width,this.offscreenCanvas.height=N.height,this.offscreenCanvasContext.drawImage(N,0,0,N.width,N.height);var B=this.offscreenCanvasContext.getImageData(-1,-1,N.width+2,N.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new y.RGBAImage({width:B.width,height:B.height},B.data)},Ot.prototype.removeTile=function(N){var B=this.loaded,$=N.uid;B&&B[$]&&delete B[$]};var ar=y.vectorTile.VectorTileFeature.prototype.toGeoJSON,Zt=function(N){this._feature=N,this.extent=y.EXTENT,this.type=N.type,this.properties=N.tags,"id"in N&&!isNaN(N.id)&&(this.id=parseInt(N.id,10))};Zt.prototype.loadGeometry=function(){if(this._feature.type===1){for(var N=[],B=0,$=this._feature.geometry;B<$.length;B+=1){var ee=$[B];N.push([new y.Point$1(ee[0],ee[1])])}return N}for(var xe=[],Ue=0,Qe=this._feature.geometry;Ue>31}function re(N,B){for(var $=N.loadGeometry(),ee=N.type,xe=0,Ue=0,Qe=$.length,j=0;j>1;(function Xr(zr,jr,Jn,ln,hi,Vi){for(;hi>ln;){if(hi-ln>600){var ci=hi-ln+1,Li=Jn-ln+1,Ei=Math.log(ci),ns=.5*Math.exp(2*Ei/3),Qi=.5*Math.sqrt(Ei*ns*(ci-ns)/ci)*(Li-ci/2<0?-1:1);Xr(zr,jr,Jn,Math.max(ln,Math.floor(Jn-Li*ns/ci+Qi)),Math.min(hi,Math.floor(Jn+(ci-Li)*ns/ci+Qi)),Vi)}var Pa=jr[2*Jn+Vi],Si=ln,di=hi;for(we(zr,jr,ln,Jn),jr[2*hi+Vi]>Pa&&we(zr,jr,ln,hi);SiPa;)di--}jr[2*ln+Vi]===Pa?we(zr,jr,ln,di):we(zr,jr,++di,hi),di<=Jn&&(ln=di+1),Jn<=di&&(hi=di-1)}})(et,Ae,tr,yr,nn,Qr%2),Fe(et,Ae,$t,yr,tr-1,Qr+1),Fe(et,Ae,$t,tr+1,nn,Qr+1)}})(Qe,j,ee,0,Qe.length-1,0)};Ge.prototype.range=function(N,B,$,ee){return function(xe,Ue,Qe,j,Q,Fe,et){for(var Ae,$t,yr=[0,xe.length-1,0],nn=[];yr.length;){var Qr=yr.pop(),tr=yr.pop(),Xr=yr.pop();if(tr-Xr<=et)for(var zr=Xr;zr<=tr;zr++)$t=Ue[2*zr+1],(Ae=Ue[2*zr])>=Qe&&Ae<=Q&&$t>=j&&$t<=Fe&&nn.push(xe[zr]);else{var jr=Math.floor((Xr+tr)/2);$t=Ue[2*jr+1],(Ae=Ue[2*jr])>=Qe&&Ae<=Q&&$t>=j&&$t<=Fe&&nn.push(xe[jr]);var Jn=(Qr+1)%2;(Qr===0?Qe<=Ae:j<=$t)&&(yr.push(Xr),yr.push(jr-1),yr.push(Jn)),(Qr===0?Q>=Ae:Fe>=$t)&&(yr.push(jr+1),yr.push(tr),yr.push(Jn))}}return nn}(this.ids,this.coords,N,B,$,ee,this.nodeSize)},Ge.prototype.within=function(N,B,$){return function(ee,xe,Ue,Qe,j,Q){for(var Fe=[0,ee.length-1,0],et=[],Ae=j*j;Fe.length;){var $t=Fe.pop(),yr=Fe.pop(),nn=Fe.pop();if(yr-nn<=Q)for(var Qr=nn;Qr<=yr;Qr++)ie(xe[2*Qr],xe[2*Qr+1],Ue,Qe)<=Ae&&et.push(ee[Qr]);else{var tr=Math.floor((nn+yr)/2),Xr=xe[2*tr],zr=xe[2*tr+1];ie(Xr,zr,Ue,Qe)<=Ae&&et.push(ee[tr]);var jr=($t+1)%2;($t===0?Ue-j<=Xr:Qe-j<=zr)&&(Fe.push(nn),Fe.push(tr-1),Fe.push(jr)),($t===0?Ue+j>=Xr:Qe+j>=zr)&&(Fe.push(tr+1),Fe.push(yr),Fe.push(jr))}}return et}(this.ids,this.coords,N,B,$,this.nodeSize)};var Vt={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(N){return N}},Et=function(N){this.options=yi(Object.create(Vt),N),this.trees=new Array(this.options.maxZoom+1)};function Jr(N,B,$,ee,xe){return{x:N,y:B,zoom:1/0,id:$,parentId:-1,numPoints:ee,properties:xe}}function on(N,B){var $=N.geometry.coordinates,ee=$[1];return{x:bn($[0]),y:rn(ee),zoom:1/0,index:B,parentId:-1}}function Mr(N){return{type:"Feature",id:N.id,properties:Dn(N),geometry:{type:"Point",coordinates:[(ee=N.x,360*(ee-.5)),(B=N.y,$=(180-360*B)*Math.PI/180,360*Math.atan(Math.exp($))/Math.PI-90)]}};var B,$,ee}function Dn(N){var B=N.numPoints,$=B>=1e4?Math.round(B/1e3)+"k":B>=1e3?Math.round(B/100)/10+"k":B;return yi(yi({},N.properties),{cluster:!0,cluster_id:N.id,point_count:B,point_count_abbreviated:$})}function bn(N){return N/360+.5}function rn(N){var B=Math.sin(N*Math.PI/180),$=.5-.25*Math.log((1+B)/(1-B))/Math.PI;return $<0?0:$>1?1:$}function yi(N,B){for(var $ in B)N[$]=B[$];return N}function ti(N){return N.x}function Zi(N){return N.y}function En(N,B,$,ee,xe,Ue){var Qe=xe-$,j=Ue-ee;if(Qe!==0||j!==0){var Q=((N-$)*Qe+(B-ee)*j)/(Qe*Qe+j*j);Q>1?($=xe,ee=Ue):Q>0&&($+=Qe*Q,ee+=j*Q)}return(Qe=N-$)*Qe+(j=B-ee)*j}function Rn(N,B,$,ee){var xe={id:N===void 0?null:N,type:B,geometry:$,tags:ee,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(Ue){var Qe=Ue.geometry,j=Ue.type;if(j==="Point"||j==="MultiPoint"||j==="LineString")sa(Ue,Qe);else if(j==="Polygon"||j==="MultiLineString")for(var Q=0;Q0&&(Qe+=ee?(xe*Fe-Q*Ue)/2:Math.sqrt(Math.pow(Q-xe,2)+Math.pow(Fe-Ue,2))),xe=Q,Ue=Fe}var et=B.length-3;B[2]=1,function Ae($t,yr,nn,Qr){for(var tr,Xr=Qr,zr=nn-yr>>1,jr=nn-yr,Jn=$t[yr],ln=$t[yr+1],hi=$t[nn],Vi=$t[nn+1],ci=yr+3;ciXr)tr=ci,Xr=Li;else if(Li===Xr){var Ei=Math.abs(ci-zr);EiQr&&(tr-yr>3&&Ae($t,yr,tr,Qr),$t[tr+2]=Xr,nn-tr>3&&Ae($t,tr,nn,Qr))}(B,0,et,$),B[et+2]=1,B.size=Math.abs(Qe),B.start=0,B.end=B.size}function Re(N,B,$,ee){for(var xe=0;xe1?1:$}function Za(N,B,$,ee,xe,Ue,Qe,j){if(ee/=B,Ue>=($/=B)&&Qe=ee)return null;for(var Q=[],Fe=0;Fe=$&&nn=ee)){var Qr=[];if($t==="Point"||$t==="MultiPoint")Ms(Ae,Qr,$,ee,xe);else if($t==="LineString")ho(Ae,Qr,$,ee,xe,!1,j.lineMetrics);else if($t==="MultiLineString")jt(Ae,Qr,$,ee,xe,!1);else if($t==="Polygon")jt(Ae,Qr,$,ee,xe,!0);else if($t==="MultiPolygon")for(var tr=0;tr=$&&Qe<=ee&&(B.push(N[Ue]),B.push(N[Ue+1]),B.push(N[Ue+2]))}}function ho(N,B,$,ee,xe,Ue,Qe){for(var j,Q,Fe=Zo(N),et=xe===0?Vr:en,Ae=N.start,$t=0;$t$&&(Q=et(Fe,yr,nn,tr,Xr,$),Qe&&(Fe.start=Ae+j*Q)):zr>ee?jr=$&&(Q=et(Fe,yr,nn,tr,Xr,$),Jn=!0),jr>ee&&zr<=ee&&(Q=et(Fe,yr,nn,tr,Xr,ee),Jn=!0),!Ue&&Jn&&(Qe&&(Fe.end=Ae+j*Q),B.push(Fe),Fe=Zo(N)),Qe&&(Ae+=j)}var ln=N.length-3;yr=N[ln],nn=N[ln+1],Qr=N[ln+2],(zr=xe===0?yr:nn)>=$&&zr<=ee&&pr(Fe,yr,nn,Qr),ln=Fe.length-3,Ue&&ln>=3&&(Fe[ln]!==Fe[0]||Fe[ln+1]!==Fe[1])&&pr(Fe,Fe[0],Fe[1],Fe[2]),Fe.length&&B.push(Fe)}function Zo(N){var B=[];return B.size=N.size,B.start=N.start,B.end=N.end,B}function jt(N,B,$,ee,xe,Ue){for(var Qe=0;QeQe.maxX&&(Qe.maxX=et),Ae>Qe.maxY&&(Qe.maxY=Ae)}return Qe}function ae(N,B,$,ee){var xe=B.geometry,Ue=B.type,Qe=[];if(Ue==="Point"||Ue==="MultiPoint")for(var j=0;j0&&B.size<(xe?Qe:ee))$.numPoints+=B.length/3;else{for(var j=[],Q=0;QQe)&&($.numSimplified++,j.push(B[Q]),j.push(B[Q+1])),$.numPoints++;xe&&function(Fe,et){for(var Ae=0,$t=0,yr=Fe.length,nn=yr-2;$t0===et)for($t=0,yr=Fe.length;$t24)throw new Error("maxZoom should be in the 0-24 range");if(B.promoteId&&B.generateId)throw new Error("promoteId and generateId cannot be used together.");var ee=function(xe,Ue){var Qe=[];if(xe.type==="FeatureCollection")for(var j=0;j=ee;Fe--){var et=+Date.now();j=this._cluster(j,Fe),this.trees[Fe]=new Ge(j,ti,Zi,Ue,Float32Array),$&&console.log("z%d: %d clusters in %dms",Fe,j.length,+Date.now()-et)}return $&&console.timeEnd("total time"),this},Et.prototype.getClusters=function(N,B){var $=((N[0]+180)%360+360)%360-180,ee=Math.max(-90,Math.min(90,N[1])),xe=N[2]===180?180:((N[2]+180)%360+360)%360-180,Ue=Math.max(-90,Math.min(90,N[3]));if(N[2]-N[0]>=360)$=-180,xe=180;else if($>xe){var Qe=this.getClusters([$,ee,180,Ue],B),j=this.getClusters([-180,ee,xe,Ue],B);return Qe.concat(j)}for(var Q=this.trees[this._limitZoom(B)],Fe=[],et=0,Ae=Q.range(bn($),rn(Ue),bn(xe),rn(ee));etB&&($t+=Qr.numPoints||1)}if($t>=Ue){for(var tr=Q.x*Ae,Xr=Q.y*Ae,zr=xe&&Ae>1?this._map(Q,!0):null,jr=(j<<5)+(B+1)+this.points.length,Jn=0,ln=et;Jn1)for(var ci=0,Li=et;ci>5},Et.prototype._getOriginZoom=function(N){return(N-this.points.length)%32},Et.prototype._map=function(N,B){if(N.numPoints)return B?yi({},N.properties):N.properties;var $=this.points[N.index].properties,ee=this.options.map($);return B&&ee===$?yi({},ee):ee},De.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},De.prototype.splitTile=function(N,B,$,ee,xe,Ue,Qe){for(var j=[N,B,$,ee],Q=this.options,Fe=Q.debug;j.length;){ee=j.pop(),$=j.pop(),B=j.pop(),N=j.pop();var et=1<1&&console.time("creation"),$t=this.tiles[Ae]=z(N,B,$,ee,Q),this.tileCoords.push({z:B,x:$,y:ee}),Fe)){Fe>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",B,$,ee,$t.numFeatures,$t.numPoints,$t.numSimplified),console.timeEnd("creation"));var yr="z"+B;this.stats[yr]=(this.stats[yr]||0)+1,this.total++}if($t.source=N,xe){if(B===Q.maxZoom||B===xe)continue;var nn=1<1&&console.time("clipping");var Qr,tr,Xr,zr,jr,Jn,ln=.5*Q.buffer/Q.extent,hi=.5-ln,Vi=.5+ln,ci=1+ln;Qr=tr=Xr=zr=null,jr=Za(N,et,$-ln,$+Vi,0,$t.minX,$t.maxX,Q),Jn=Za(N,et,$+hi,$+ci,0,$t.minX,$t.maxX,Q),N=null,jr&&(Qr=Za(jr,et,ee-ln,ee+Vi,1,$t.minY,$t.maxY,Q),tr=Za(jr,et,ee+hi,ee+ci,1,$t.minY,$t.maxY,Q),jr=null),Jn&&(Xr=Za(Jn,et,ee-ln,ee+Vi,1,$t.minY,$t.maxY,Q),zr=Za(Jn,et,ee+hi,ee+ci,1,$t.minY,$t.maxY,Q),Jn=null),Fe>1&&console.timeEnd("clipping"),j.push(Qr||[],B+1,2*$,2*ee),j.push(tr||[],B+1,2*$,2*ee+1),j.push(Xr||[],B+1,2*$+1,2*ee),j.push(zr||[],B+1,2*$+1,2*ee+1)}}},De.prototype.getTile=function(N,B,$){var ee=this.options,xe=ee.extent,Ue=ee.debug;if(N<0||N>24)return null;var Qe=1<1&&console.log("drilling down to z%d-%d-%d",N,B,$);for(var Q,Fe=N,et=B,Ae=$;!Q&&Fe>0;)Fe--,et=Math.floor(et/2),Ae=Math.floor(Ae/2),Q=this.tiles[zt(Fe,et,Ae)];return Q&&Q.source?(Ue>1&&console.log("found parent tile z%d-%d-%d",Fe,et,Ae),Ue>1&&console.time("drilling down"),this.splitTile(Q.source,Fe,et,Ae,N,B,$),Ue>1&&console.timeEnd("drilling down"),this.tiles[j]?ue(this.tiles[j],xe):null):null};var Rt=function(N){function B($,ee,xe,Ue){N.call(this,$,ee,xe,Tt),Ue&&(this.loadGeoJSON=Ue)}return N&&(B.__proto__=N),(B.prototype=Object.create(N&&N.prototype)).constructor=B,B.prototype.loadData=function($,ee){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=ee,this._pendingLoadDataParams=$,this._state&&this._state!=="Idle"?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},B.prototype._loadData=function(){var $=this;if(this._pendingCallback&&this._pendingLoadDataParams){var ee=this._pendingCallback,xe=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var Ue=!!(xe&&xe.request&&xe.request.collectResourceTiming)&&new y.RequestPerformance(xe.request);this.loadGeoJSON(xe,function(Qe,j){if(Qe||!j)return ee(Qe);if(typeof j!="object")return ee(new Error("Input data given to '"+xe.source+"' is not a valid GeoJSON object."));(function $t(yr,nn){var Qr,tr=yr&&yr.type;if(tr==="FeatureCollection")for(Qr=0;Qr=0?0:h.button},Z.remove=function(h){h.parentNode&&h.parentNode.removeChild(h)};var Yt=function(h){function v(){h.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new y.RGBAImage({width:1,height:1}),this.dirty=!0}return h&&(v.__proto__=h),(v.prototype=Object.create(h&&h.prototype)).constructor=v,v.prototype.isLoaded=function(){return this.loaded},v.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 Rr(h,v,p,g,S,w,C){for(var O=0;O65535)X(new Error("glyphs > 65535 not supported"));else if(be.ranges[je])X(null,{stack:J,id:me,glyph:Te});else{var Ze=be.requests[je];Ze||(Ze=be.requests[je]=[],fr.loadGlyphRange(J,je,p.url,p.requestManager,function(lt,Ne){if(Ne){for(var ot in Ne)p._doesCharSupportLocalGlyph(+ot)||(be.glyphs[+ot]=Ne[+ot]);be.ranges[je]=!0}for(var _t=0,Lt=Ze;_t1&&(O=h[++C]);var J=Math.abs(X-O.left),me=Math.abs(X-O.right),be=Math.min(J,me),Te=void 0,je=S/p*(g+1);if(O.isDash){var Ze=g-Math.abs(je);Te=Math.sqrt(be*be+Ze*Ze)}else Te=g-Math.sqrt(be*be+je*je);this.data[w+X]=Math.max(0,Math.min(255,Te+128))}},qe.prototype.addRegularDash=function(h){for(var v=h.length-1;v>=0;--v){var p=h[v],g=h[v+1];p.zeroLength?h.splice(v,1):g&&g.isDash===p.isDash&&(g.left=p.left,h.splice(v,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,O=0,X=h[O],J=0;J1&&(X=h[++O]);var me=Math.abs(J-X.left),be=Math.abs(J-X.right),Te=Math.min(me,be);this.data[C+J]=Math.max(0,Math.min(255,(X.isDash?Te:-Te)+128))}},qe.prototype.addDash=function(h,v){var p=v?7:0,g=2*p+1;if(this.nextRow+g>this.height)return y.warnOnce("LineAtlas out of space"),null;for(var S=0,w=0;w=p&&h.x=g&&h.y0&&(J[new y.OverscaledTileID(p.overscaledZ,C,g.z,w,g.y-1).key]={backfilled:!1},J[new y.OverscaledTileID(p.overscaledZ,p.wrap,g.z,g.x,g.y-1).key]={backfilled:!1},J[new y.OverscaledTileID(p.overscaledZ,X,g.z,O,g.y-1).key]={backfilled:!1}),g.y+10&&(S.resourceTiming=p._resourceTiming,p._resourceTiming=[]),p.fire(new y.Event("data",S))}})},v.prototype.onAdd=function(p){this.map=p,this.load()},v.prototype.setData=function(p){var g=this;return this._data=p,this.fire(new y.Event("dataloading",{dataType:"source"})),this._updateWorkerData(function(S){if(S)g.fire(new y.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 y.Event("data",w))}}),this},v.prototype.getClusterExpansionZoom=function(p,g){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:p,source:this.id},g),this},v.prototype.getClusterChildren=function(p,g){return this.actor.send("geojson.getClusterChildren",{clusterId:p,source:this.id},g),this},v.prototype.getClusterLeaves=function(p,g,S,w){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:p,limit:g,offset:S},w),this},v.prototype._updateWorkerData=function(p){var g=this;this._loaded=!1;var S=y.extend({},this.workerOptions),w=this._data;typeof w=="string"?(S.request=this.map._requestManager.transformRequest(y.browser.resolveURL(w),y.ResourceType.Source),S.request.collectResourceTiming=this._collectResourceTiming):S.data=JSON.stringify(w),this.actor.send(this.type+".loadData",S,function(C,O){g._removed||O&&O.abandoned||(g._loaded=!0,O&&O.resourceTiming&&O.resourceTiming[g.id]&&(g._resourceTiming=O.resourceTiming[g.id].slice(0)),g.actor.send(g.type+".coalesce",{source:S.source},null),p(C))})},v.prototype.loaded=function(){return this._loaded},v.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:y.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},function(C,O){return delete p.request,p.unloadVectorData(),p.aborted?g(null):C?g(C):(p.loadVectorData(O,S.map.painter,w==="reloadTile"),g(null))})},v.prototype.abortTile=function(p){p.request&&(p.request.cancel(),delete p.request),p.aborted=!0},v.prototype.unloadTile=function(p){p.unloadVectorData(),this.actor.send("removeTile",{uid:p.uid,type:this.type,source:this.id})},v.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},v.prototype.serialize=function(){return y.extend({},this._options,{type:this.type,data:this._data})},v.prototype.hasTransition=function(){return!1},v}(y.Evented),ut=y.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),ie=function(h){function v(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&&(v.__proto__=h),(v.prototype=Object.create(h&&h.prototype)).constructor=v,v.prototype.load=function(p,g){var S=this;this._loaded=!1,this.fire(new y.Event("dataloading",{dataType:"source"})),this.url=this.options.url,y.getImage(this.map._requestManager.transformRequest(this.url,y.ResourceType.Image),function(w,C){S._loaded=!0,w?S.fire(new y.ErrorEvent(w)):C&&(S.image=C,p&&(S.coordinates=p),g&&g(),S._finishLoading())})},v.prototype.loaded=function(){return this._loaded},v.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},v.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new y.Event("data",{dataType:"source",sourceDataType:"metadata"})))},v.prototype.onAdd=function(p){this.map=p,this.load()},v.prototype.setCoordinates=function(p){var g=this;this.coordinates=p;var S=p.map(y.MercatorCoordinate.fromLngLat);this.tileID=function(C){for(var O=1/0,X=1/0,J=-1/0,me=-1/0,be=0,Te=C;beg.end(0)?this.fire(new y.ErrorEvent(new y.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}},v.prototype.getVideo=function(){return this.video},v.prototype.onAdd=function(p){this.map||(this.map=p,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},v.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,ut.members)),this.boundsSegments||(this.boundsSegments=y.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 y.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)}}},v.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},v.prototype.hasTransition=function(){return this.video&&!this.video.paused},v}(ie),Pe=function(h){function v(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(O){return typeof O!="number"})})||this.fire(new y.ErrorEvent(new y.ValidationError("sources."+p,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new y.ErrorEvent(new y.ValidationError("sources."+p,null,'missing required property "coordinates"'))),g.animate&&typeof g.animate!="boolean"&&this.fire(new y.ErrorEvent(new y.ValidationError("sources."+p,null,'optional "animate" property must be a boolean value'))),g.canvas?typeof g.canvas=="string"||g.canvas instanceof y.window.HTMLCanvasElement||this.fire(new y.ErrorEvent(new y.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 y.ErrorEvent(new y.ValidationError("sources."+p,null,'missing required property "canvas"'))),this.options=g,this.animate=g.animate===void 0||g.animate}return h&&(v.__proto__=h),(v.prototype=Object.create(h&&h.prototype)).constructor=v,v.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof y.window.HTMLCanvasElement?this.options.canvas:y.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new y.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())},v.prototype.getCanvas=function(){return this.canvas},v.prototype.onAdd=function(p){this.map=p,this.load(),this.canvas&&this.animate&&this.play()},v.prototype.onRemove=function(){this.pause()},v.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,ut.members)),this.boundsSegments||(this.boundsSegments=y.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(p||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new y.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)}}},v.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},v.prototype.hasTransition=function(){return this._playing},v.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},on.prototype.has=function(h){return h.wrapped().key in this.data},on.prototype.getAndRemove=function(h){return this.has(h)?this._getAndRemoveByKey(h.wrapped().key):null},on.prototype._getAndRemoveByKey=function(h){var v=this.data[h].shift();return v.timeout&&clearTimeout(v.timeout),this.data[h].length===0&&delete this.data[h],this.order.splice(this.order.indexOf(h),1),v.value},on.prototype.getByKey=function(h){var v=this.data[h];return v?v[0].value:null},on.prototype.get=function(h){return this.has(h)?this.data[h.wrapped().key][0].value:null},on.prototype.remove=function(h,v){if(!this.has(h))return this;var p=h.wrapped().key,g=v===void 0?0:this.data[p].indexOf(v),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},on.prototype.setMaxSize=function(h){for(this.max=h;this.order.length>this.max;){var v=this._getAndRemoveByKey(this.order[0]);v&&this.onRemove(v)}return this},on.prototype.filter=function(h){var v=[];for(var p in this.data)for(var g=0,S=this.data[p];g1||(Math.abs(me)>1&&(Math.abs(me+Te)===1?me+=Te:Math.abs(me-Te)===1&&(me-=Te)),J.dem&&X.dem&&(X.dem.backfillBorder(J.dem,me,be),X.neighboringTiles&&X.neighboringTiles[je]&&(X.neighboringTiles[je].backfilled=!0)))}},v.prototype.getTile=function(p){return this.getTileByID(p.key)},v.prototype.getTileByID=function(p){return this._tiles[p]},v.prototype._retainLoadedChildren=function(p,g,S,w){for(var C in this._tiles){var O=this._tiles[C];if(!(w[C]||!O.hasData()||O.tileID.overscaledZ<=g||O.tileID.overscaledZ>S)){for(var X=O.tileID;O&&O.tileID.overscaledZ>g+1;){var J=O.tileID.scaledTo(O.tileID.overscaledZ-1);(O=this._tiles[J.key])&&O.hasData()&&(X=J)}for(var me=X;me.overscaledZ>g;)if(p[(me=me.scaledTo(me.overscaledZ-1)).key]){w[X.key]=X;break}}}},v.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),O=this._getLoadedTile(C);if(O)return O}},v.prototype._getLoadedTile=function(p){var g=this._tiles[p.key];return g&&g.hasData()?g:this._cache.getByKey(p.wrapped().key)},v.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)},v.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 O in this._tiles=S,this._timers)clearTimeout(this._timers[O]),delete this._timers[O];for(var X in this._tiles)this._setTileReloadTimer(X,this._tiles[X])}},v.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(br){return new y.OverscaledTileID(br.canonical.z,br.wrap,br.canonical.z,br.canonical.x,br.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(br){return g._source.hasTile(br)}))):S=[];var w=p.coveringZoomLevel(this._source),C=Math.max(w-v.maxOverzooming,this._source.minzoom),O=Math.max(w+v.maxUnderzooming,this._source.minzoom),X=this._updateRetainedTiles(S,w);if(et(this._source.type)){for(var J={},me={},be=0,Te=Object.keys(X);bethis._source.maxzoom){var ot=lt.children(this._source.maxzoom)[0],_t=this.getTile(ot);if(_t&&_t.hasData()){S[ot.key]=ot;continue}}else{var Lt=lt.children(this._source.maxzoom);if(S[Lt[0].key]&&S[Lt[1].key]&&S[Lt[2].key]&&S[Lt[3].key])continue}for(var ir=Ne.wasRequested(),qt=lt.overscaledZ-1;qt>=C;--qt){var cr=lt.scaledTo(qt);if(w[cr.key]||(w[cr.key]=!0,!(Ne=this.getTile(cr))&&ir&&(Ne=this._addTile(cr)),Ne&&(S[cr.key]=cr,ir=Ne.wasRequested(),Ne.hasData())))break}}}return S},v.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 O=0,X=g;O0||(g.hasData()&&g.state!=="reloading"?this._cache.add(g.tileID,g,g.getExpiryTimeout()):(g.aborted=!0,this._abortTile(g),this._unloadTile(g))))},v.prototype.clearTiles=function(){for(var p in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(p);this._cache.reset()},v.prototype.tilesIn=function(p,g,S){var w=this,C=[],O=this.transform;if(!O)return C;for(var X=S?O.getCameraQueryGeometry(p):p,J=p.map(function(qt){return O.pointCoordinate(qt)}),me=X.map(function(qt){return O.pointCoordinate(qt)}),be=this.getIds(),Te=1/0,je=1/0,Ze=-1/0,lt=-1/0,Ne=0,ot=me;Ne=0&&hn[1].y+Fr>=0){var Un=J.map(function(zn){return br.getTilePoint(zn)}),Fn=me.map(function(zn){return br.getTilePoint(zn)});C.push({tile:cr,tileID:br,queryGeometry:Un,cameraQueryGeometry:Fn,scale:Hr})}}},ir=0;ir=y.browser.now())return!0}return!1},v.prototype.setFeatureState=function(p,g,S){this._state.updateState(p=p||"_geojsonTileLayer",g,S)},v.prototype.removeFeatureState=function(p,g,S){this._state.removeFeatureState(p=p||"_geojsonTileLayer",g,S)},v.prototype.getFeatureState=function(p,g){return this._state.getState(p=p||"_geojsonTileLayer",g)},v.prototype.setDependencies=function(p,g,S){var w=this._tiles[p];w&&w.setDependencies(g,S)},v.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)})},v}(y.Evented);function Fe(h,v){var p=Math.abs(2*h.wrap)-+(h.wrap<0),g=Math.abs(2*v.wrap)-+(v.wrap<0);return h.overscaledZ-v.overscaledZ||g-p||v.canonical.y-h.canonical.y||v.canonical.x-h.canonical.x}function et(h){return h==="raster"||h==="image"||h==="video"}function Ae(){return new y.window.Worker(wh.workerUrl)}Q.maxOverzooming=10,Q.maxUnderzooming=3;var $t="mapboxgl_preloaded_worker_pool",yr=function(){this.active={}};yr.prototype.acquire=function(h){if(!this.workers)for(this.workers=[];this.workers.length0?(g-w)/C:0;return this.points[S].mult(1-O).add(this.points[v].mult(O))};var Qi=function(h,v,p){var g=this.boxCells=[],S=this.circleCells=[];this.xCellCount=Math.ceil(h/p),this.yCellCount=Math.ceil(v/p);for(var w=0;w=-v[0]&&p<=v[0]&&g>=-v[1]&&g<=v[1]}function vu(h,v,p,g,S,w,C,O){var X=g?h.textSizeData:h.iconSizeData,J=y.evaluateSizeForZoom(X,p.transform.zoom),me=[256/p.width*2+1,256/p.height*2+1],be=g?h.text.dynamicLayoutVertexArray:h.icon.dynamicLayoutVertexArray;be.clear();for(var Te=h.lineVertexArray,je=g?h.text.placedSymbolArray:h.icon.placedSymbolArray,Ze=p.transform.width/p.transform.height,lt=!1,Ne=0;NeMath.abs(p.x-v.x)*g?{useVertical:!0}:(h===y.WritingMode.vertical?v.yp.x)?{needsFlipping:!0}:null}function Gl(h,v,p,g,S,w,C,O,X,J,me,be,Te,je){var Ze,lt=v/24,Ne=h.lineOffsetX*lt,ot=h.lineOffsetY*lt;if(h.numGlyphs>1){var _t=h.glyphStartIndex+h.numGlyphs,Lt=h.lineStartIndex,ir=h.lineStartIndex+h.lineLength,qt=fa(lt,O,Ne,ot,p,me,be,h,X,w,Te);if(!qt)return{notEnoughRoom:!0};var cr=di(qt.first.point,C).point,br=di(qt.last.point,C).point;if(g&&!p){var Hr=Ra(h.writingMode,cr,br,je);if(Hr)return Hr}Ze=[qt.first];for(var Fr=h.glyphStartIndex+1;Fr<_t-1;Fr++)Ze.push(Ma(lt*O.getoffsetX(Fr),Ne,ot,p,me,be,h.segment,Lt,ir,X,w,Te));Ze.push(qt.last)}else{if(g&&!p){var hn=di(be,S).point,Un=h.lineStartIndex+h.segment+1,Fn=new y.Point(X.getx(Un),X.gety(Un)),zn=di(Fn,S),zi=zn.signedDistanceFromCamera>0?zn.point:vs(be,Fn,hn,1,S),gn=Ra(h.writingMode,hn,zi,je);if(gn)return gn}var ii=Ma(lt*O.getoffsetX(h.glyphStartIndex),Ne,ot,p,me,be,h.segment,h.lineStartIndex,h.lineStartIndex+h.lineLength,X,w,Te);if(!ii)return{notEnoughRoom:!0};Ze=[ii]}for(var pi=0,ri=Ze;pi0?1:-1,Ze=0;g&&(je*=-1,Ze=Math.PI),je<0&&(Ze+=Math.PI);for(var lt=je>0?O+C:O+C+1,Ne=S,ot=S,_t=0,Lt=0,ir=Math.abs(Te),qt=[];_t+Lt<=ir;){if((lt+=je)=X)return null;if(ot=Ne,qt.push(Ne),(Ne=be[lt])===void 0){var cr=new y.Point(J.getx(lt),J.gety(lt)),br=di(cr,me);if(br.signedDistanceFromCamera>0)Ne=be[lt]=br.point;else{var Hr=lt-je;Ne=vs(_t===0?w:new y.Point(J.getx(Hr),J.gety(Hr)),cr,ot,ir-_t+1,me)}}_t+=Lt,Lt=ot.dist(Ne)}var Fr=(ir-_t)/Lt,hn=Ne.sub(ot),Un=hn.mult(Fr)._add(ot);Un._add(hn._unit()._perp()._mult(p*je));var Fn=Ze+Math.atan2(Ne.y-ot.y,Ne.x-ot.x);return qt.push(Un),{point:Un,angle:Fn,path:qt}}Qi.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Qi.prototype.insert=function(h,v,p,g,S){this._forEachCell(v,p,g,S,this._insertBoxCell,this.boxUid++),this.boxKeys.push(h),this.bboxes.push(v),this.bboxes.push(p),this.bboxes.push(g),this.bboxes.push(S)},Qi.prototype.insertCircle=function(h,v,p,g){this._forEachCell(v-g,p-g,v+g,p+g,this._insertCircleCell,this.circleUid++),this.circleKeys.push(h),this.circles.push(v),this.circles.push(p),this.circles.push(g)},Qi.prototype._insertBoxCell=function(h,v,p,g,S,w){this.boxCells[S].push(w)},Qi.prototype._insertCircleCell=function(h,v,p,g,S,w){this.circleCells[S].push(w)},Qi.prototype._query=function(h,v,p,g,S,w){if(p<0||h>this.width||g<0||v>this.height)return!S&&[];var C=[];if(h<=0&&v<=0&&this.width<=p&&this.height<=g){if(S)return!0;for(var O=0;O0:C},Qi.prototype._queryCircle=function(h,v,p,g,S){var w=h-p,C=h+p,O=v-p,X=v+p;if(C<0||w>this.width||X<0||O>this.height)return!g&&[];var J=[];return this._forEachCell(w,O,C,X,this._queryCellCircle,J,{hitTest:g,circle:{x:h,y:v,radius:p},seenUids:{box:{},circle:{}}},S),g?J.length>0:J},Qi.prototype.query=function(h,v,p,g,S){return this._query(h,v,p,g,!1,S)},Qi.prototype.hitTest=function(h,v,p,g,S){return this._query(h,v,p,g,!0,S)},Qi.prototype.hitTestCircle=function(h,v,p,g){return this._queryCircle(h,v,p,!0,g)},Qi.prototype._queryCell=function(h,v,p,g,S,w,C,O){var X=C.seenUids,J=this.boxCells[S];if(J!==null)for(var me=this.bboxes,be=0,Te=J;be=me[Ze+0]&&g>=me[Ze+1]&&(!O||O(this.boxKeys[je]))){if(C.hitTest)return w.push(!0),!0;w.push({key:this.boxKeys[je],x1:me[Ze],y1:me[Ze+1],x2:me[Ze+2],y2:me[Ze+3]})}}}var lt=this.circleCells[S];if(lt!==null)for(var Ne=this.circles,ot=0,_t=lt;ot<_t.length;ot+=1){var Lt=_t[ot];if(!X.circle[Lt]){X.circle[Lt]=!0;var ir=3*Lt;if(this._circleAndRectCollide(Ne[ir],Ne[ir+1],Ne[ir+2],h,v,p,g)&&(!O||O(this.circleKeys[Lt]))){if(C.hitTest)return w.push(!0),!0;var qt=Ne[ir],cr=Ne[ir+1],br=Ne[ir+2];w.push({key:this.circleKeys[Lt],x1:qt-br,y1:cr-br,x2:qt+br,y2:cr+br})}}}},Qi.prototype._queryCellCircle=function(h,v,p,g,S,w,C,O){var X=C.circle,J=C.seenUids,me=this.boxCells[S];if(me!==null)for(var be=this.bboxes,Te=0,je=me;TeC*C+O*O},Qi.prototype._circleAndRectCollide=function(h,v,p,g,S,w,C){var O=(w-g)/2,X=Math.abs(h-(g+O));if(X>O+p)return!1;var J=(C-S)/2,me=Math.abs(v-(S+J));if(me>J+p)return!1;if(X<=O||me<=J)return!0;var be=X-O,Te=me-J;return be*be+Te*Te<=p*p};var vi=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ka(h,v){for(var p=0;p=1;zi--)zn.push(Un.path[zi]);for(var gn=1;gn0){for(var Kn=zn[0].clone(),fi=zn[0].clone(),Qn=1;Qn=Hr.x&&fi.x<=Fr.x&&Kn.y>=Hr.y&&fi.y<=Fr.y?[zn]:fi.xFr.x||fi.yFr.y?[]:y.clipLine([zn],Hr.x,Hr.y,Fr.x,Fr.y)}for(var Gn=0,Io=ri;Gn=this.screenRightBoundary||g<100||v>this.screenBottomBoundary},Vo.prototype.isInsideGrid=function(h,v,p,g){return p>=0&&h=0&&v0?(this.prevPlacement&&this.prevPlacement.variableOffsets[be.crossTileID]&&this.prevPlacement.placements[be.crossTileID]&&this.prevPlacement.placements[be.crossTileID].text&&(lt=this.prevPlacement.variableOffsets[be.crossTileID].anchor),this.variableOffsets[be.crossTileID]={textOffset:Ne,width:p,height:g,anchor:h,textBoxScale:S,prevAnchor:lt},this.markUsedJustification(Te,h,be,je),Te.allowVerticalPlacement&&(this.markUsedOrientation(Te,je,be),this.placedOrientations[be.crossTileID]=je),{shift:ot,placedGlyphBoxes:_t}):void 0},_n.prototype.placeLayerBucketPart=function(h,v,p){var g=this,S=h.parameters,w=S.bucket,C=S.layout,O=S.posMatrix,X=S.textLabelPlaneMatrix,J=S.labelToScreenMatrix,me=S.textPixelRatio,be=S.holdingForFade,Te=S.collisionBoxArray,je=S.partiallyEvaluatedTextSize,Ze=S.collisionGroup,lt=C.get("text-optional"),Ne=C.get("icon-optional"),ot=C.get("text-allow-overlap"),_t=C.get("icon-allow-overlap"),Lt=C.get("text-rotation-alignment")==="map",ir=C.get("text-pitch-alignment")==="map",qt=C.get("icon-text-fit")!=="none",cr=C.get("symbol-z-order")==="viewport-y",br=ot&&(_t||!w.hasIconData()||Ne),Hr=_t&&(ot||!w.hasTextData()||lt);!w.collisionArrays&&Te&&w.deserializeCollisionBoxes(Te);var Fr=function(gn,ii){if(!v[gn.crossTileID])if(be)g.placements[gn.crossTileID]=new Du(!1,!1,!1);else{var pi,ri=!1,Kn=!1,fi=!0,Qn=null,Gn={box:null,offscreen:null},Io={box:null,offscreen:null},Qa=null,Po=null,_o=0,Wa=0,Ja=0;ii.textFeatureIndex?_o=ii.textFeatureIndex:gn.useRuntimeCollisionCircles&&(_o=gn.featureIndex),ii.verticalTextFeatureIndex&&(Wa=ii.verticalTextFeatureIndex);var bs=ii.textBox;if(bs){var Es=function(Fi){var Jo=y.WritingMode.horizontal;if(w.allowVerticalPlacement&&!Fi&&g.prevPlacement){var oo=g.prevPlacement.placedOrientations[gn.crossTileID];oo&&(g.placedOrientations[gn.crossTileID]=oo,g.markUsedOrientation(w,Jo=oo,gn))}return Jo},fl=function(Fi,Jo){if(w.allowVerticalPlacement&&gn.numVerticalGlyphVertices>0&&ii.verticalTextBox)for(var oo=0,hu=w.writingModes;oo0&&(Ss=Ss.filter(function(Fi){return Fi!==lu.anchor})).unshift(lu.anchor)}var Vs=function(Fi,Jo,oo){for(var hu=Fi.x2-Fi.x1,Ic=Fi.y2-Fi.y1,Wu=gn.textBoxScale,Ch=qt&&!_t?Jo:null,ko={box:[],offscreen:!1},Dr=ot?2*Ss.length:Ss.length,js=0;js=Ss.length,gn,w,oo,Ch);if(Rh&&(ko=Rh.placedGlyphBoxes)&&ko.box&&ko.box.length){ri=!0,Qn=Rh.shift;break}}return ko};fl(function(){return Vs(bs,ii.iconBox,y.WritingMode.horizontal)},function(){var Fi=ii.verticalTextBox;return w.allowVerticalPlacement&&!(Gn&&Gn.box&&Gn.box.length)&&gn.numVerticalGlyphVertices>0&&Fi?Vs(Fi,ii.verticalIconBox,y.WritingMode.vertical):{box:null,offscreen:null}}),Gn&&(ri=Gn.box,fi=Gn.offscreen);var Mc=Es(Gn&&Gn.box);if(!ri&&g.prevPlacement){var Hu=g.prevPlacement.variableOffsets[gn.crossTileID];Hu&&(g.variableOffsets[gn.crossTileID]=Hu,g.markUsedJustification(w,Hu.anchor,gn,Mc))}}else{var Tu=function(Fi,Jo){var oo=g.collisionIndex.placeCollisionBox(Fi,ot,me,O,Ze.predicate);return oo&&oo.box&&oo.box.length&&(g.markUsedOrientation(w,Jo,gn),g.placedOrientations[gn.crossTileID]=Jo),oo};fl(function(){return Tu(bs,y.WritingMode.horizontal)},function(){var Fi=ii.verticalTextBox;return w.allowVerticalPlacement&&gn.numVerticalGlyphVertices>0&&Fi?Tu(Fi,y.WritingMode.vertical):{box:null,offscreen:null}}),Es(Gn&&Gn.box&&Gn.box.length)}}if(ri=(pi=Gn)&&pi.box&&pi.box.length>0,fi=pi&&pi.offscreen,gn.useRuntimeCollisionCircles){var nc=w.text.placedSymbolArray.get(gn.centerJustifiedTextSymbolIndex),hl=y.evaluateSizeForFeature(w.textSizeData,je,nc),cu=C.get("text-padding");Qa=g.collisionIndex.placeCollisionCircles(ot,nc,w.lineVertexArray,w.glyphOffsetArray,hl,O,X,J,p,ir,Ze.predicate,gn.collisionCircleDiameter,cu),ri=ot||Qa.circles.length>0&&!Qa.collisionDetected,fi=fi&&Qa.offscreen}if(ii.iconFeatureIndex&&(Ja=ii.iconFeatureIndex),ii.iconBox){var pl=function(Fi){var Jo=qt&&Qn?Qt(Fi,Qn.x,Qn.y,Lt,ir,g.transform.angle):Fi;return g.collisionIndex.placeCollisionBox(Jo,_t,me,O,Ze.predicate)};Kn=Io&&Io.box&&Io.box.length&&ii.verticalIconBox?(Po=pl(ii.verticalIconBox)).box.length>0:(Po=pl(ii.iconBox)).box.length>0,fi=fi&&Po.offscreen}var Oo=lt||gn.numHorizontalGlyphVertices===0&&gn.numVerticalGlyphVertices===0,ao=Ne||gn.numIconVertices===0;if(Oo||ao?ao?Oo||(Kn=Kn&&ri):ri=Kn&&ri:Kn=ri=Kn&&ri,ri&&pi&&pi.box&&g.collisionIndex.insertCollisionBox(pi.box,C.get("text-ignore-placement"),w.bucketInstanceId,Io&&Io.box&&Wa?Wa:_o,Ze.ID),Kn&&Po&&g.collisionIndex.insertCollisionBox(Po.box,C.get("icon-ignore-placement"),w.bucketInstanceId,Ja,Ze.ID),Qa&&(ri&&g.collisionIndex.insertCollisionCircles(Qa.circles,C.get("text-ignore-placement"),w.bucketInstanceId,_o,Ze.ID),p)){var Ps=w.bucketInstanceId,fu=g.collisionCircleArrays[Ps];fu===void 0&&(fu=g.collisionCircleArrays[Ps]=new ms);for(var wu=0;wu=0;--Un){var Fn=hn[Un];Fr(w.symbolInstances.get(Fn),w.collisionArrays[Fn])}else for(var zn=h.symbolInstanceStart;zn=0&&(h.text.placedSymbolArray.get(O).crossTileID=S>=0&&O!==S?0:p.crossTileID)}},_n.prototype.markUsedOrientation=function(h,v,p){for(var g=v===y.WritingMode.horizontal||v===y.WritingMode.horizontalOnly?v:0,S=v===y.WritingMode.vertical?v:0,w=0,C=[p.leftJustifiedTextSymbolIndex,p.centerJustifiedTextSymbolIndex,p.rightJustifiedTextSymbolIndex];w0,Hr=g.placedOrientations[_t.crossTileID],Fr=Hr===y.WritingMode.vertical,hn=Hr===y.WritingMode.horizontal||Hr===y.WritingMode.horizontalOnly;if(Lt>0||ir>0){var Un=Co(cr.text);je(h.text,Lt,Fr?po:Un),je(h.text,ir,hn?po:Un);var Fn=cr.text.isHidden();[_t.rightJustifiedTextSymbolIndex,_t.centerJustifiedTextSymbolIndex,_t.leftJustifiedTextSymbolIndex].forEach(function(Gn){Gn>=0&&(h.text.placedSymbolArray.get(Gn).hidden=Fn||Fr?1:0)}),_t.verticalPlacedTextSymbolIndex>=0&&(h.text.placedSymbolArray.get(_t.verticalPlacedTextSymbolIndex).hidden=Fn||hn?1:0);var zn=g.variableOffsets[_t.crossTileID];zn&&g.markUsedJustification(h,zn.anchor,_t,Hr);var zi=g.placedOrientations[_t.crossTileID];zi&&(g.markUsedJustification(h,"left",_t,zi),g.markUsedOrientation(h,zi,_t))}if(br){var gn=Co(cr.icon),ii=!(be&&_t.verticalPlacedIconSymbolIndex&&Fr);_t.placedIconSymbolIndex>=0&&(je(h.icon,_t.numIconVertices,ii?gn:po),h.icon.placedSymbolArray.get(_t.placedIconSymbolIndex).hidden=cr.icon.isHidden()),_t.verticalPlacedIconSymbolIndex>=0&&(je(h.icon,_t.numVerticalIconVertices,ii?po:gn),h.icon.placedSymbolArray.get(_t.verticalPlacedIconSymbolIndex).hidden=cr.icon.isHidden())}if(h.hasIconCollisionBoxData()||h.hasTextCollisionBoxData()){var pi=h.collisionArrays[ot];if(pi){var ri=new y.Point(0,0);if(pi.textBox||pi.verticalTextBox){var Kn=!0;if(X){var fi=g.variableOffsets[qt];fi?(ri=Ji(fi.anchor,fi.width,fi.height,fi.textOffset,fi.textBoxScale),J&&ri._rotate(me?g.transform.angle:-g.transform.angle)):Kn=!1}pi.textBox&&ge(h.textCollisionBox.collisionVertexArray,cr.text.placed,!Kn||Fr,ri.x,ri.y),pi.verticalTextBox&&ge(h.textCollisionBox.collisionVertexArray,cr.text.placed,!Kn||hn,ri.x,ri.y)}var Qn=!!(!hn&&pi.verticalIconBox);pi.iconBox&&ge(h.iconCollisionBox.collisionVertexArray,cr.icon.placed,Qn,be?ri.x:0,be?ri.y:0),pi.verticalIconBox&&ge(h.iconCollisionBox.collisionVertexArray,cr.icon.placed,!Qn,be?ri.x:0,be?ri.y:0)}}},lt=0;lth},_n.prototype.setStale=function(){this.stale=!0};var ke=Math.pow(2,25),gt=Math.pow(2,24),lr=Math.pow(2,17),Kr=Math.pow(2,16),kn=Math.pow(2,9),ji=Math.pow(2,8),go=Math.pow(2,1);function Co(h){if(h.opacity===0&&!h.placed)return 0;if(h.opacity===1&&h.placed)return 4294967295;var v=h.placed?1:0,p=Math.floor(127*h.opacity);return p*ke+v*gt+p*lr+v*Kr+p*kn+v*ji+p*go+v}var po=0,Ls=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=[]};Ls.prototype.continuePlacement=function(h,v,p,g,S){for(var w=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var C=v[h[this._currentPlacementIndex]],O=this.placement.collisionIndex.transform.zoom;if(C.type==="symbol"&&(!C.minzoom||C.minzoom<=O)&&(!C.maxzoom||C.maxzoom>O)){if(this._inProgressLayer||(this._inProgressLayer=new Ls(C)),this._inProgressLayer.continuePlacement(p[C.source],this.placement,this._showCollisionBoxes,C,w))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Is.prototype.commit=function(h){return this.placement.commit(h),this.placement};var ep=512/y.EXTENT/2,Af=function(h,v,p){this.tileID=h,this.indexedSymbolInstances={},this.bucketInstanceId=p;for(var g=0;gh.overscaledZ)for(var O in C){var X=C[O];X.tileID.isChildOf(h)&&X.findMatches(v.symbolInstances,h,S)}else{var J=C[h.scaledTo(Number(w)).key];J&&J.findMatches(v.symbolInstances,h,S)}}for(var me=0;me1?"@2x":"",be=y.getJSON(w.transformRequest(w.normalizeSpriteURL(S,me,".json"),y.ResourceType.SpriteJSON),function(Ze,lt){be=null,J||(J=Ze,O=lt,je())}),Te=y.getImage(w.transformRequest(w.normalizeSpriteURL(S,me,".png"),y.ResourceType.SpriteImage),function(Ze,lt){Te=null,J||(J=Ze,X=lt,je())});function je(){if(J)C(J);else if(O&&X){var Ze=y.browser.getImageData(X),lt={};for(var Ne in O){var ot=O[Ne],_t=ot.width,Lt=ot.height,ir=ot.x,qt=ot.y,cr=ot.sdf,br=ot.pixelRatio,Hr=ot.stretchX,Fr=ot.stretchY,hn=ot.content,Un=new y.RGBAImage({width:_t,height:Lt});y.RGBAImage.copy(Ze,Un,{x:ir,y:qt},{x:0,y:0},{width:_t,height:Lt}),lt[Ne]={data:Un,pixelRatio:br,sdf:cr,stretchX:Hr,stretchY:Fr,content:hn}}C(null,lt)}}return{cancel:function(){be&&(be.cancel(),be=null),Te&&(Te.cancel(),Te=null)}}}(p,this.map._requestManager,function(S,w){if(g._spriteRequest=null,S)g.fire(new y.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 y.Event("data",{dataType:"style"}))})},v.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 y.ErrorEvent(new Error('Source layer "'+S+'" does not exist on source "'+w.id+'" as specified by style layer "'+p.id+'"')))}}},v.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()},v.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},v.prototype.addImage=function(p,g){if(this.getImage(p))return this.fire(new y.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(p,g),this._afterImageUpdated(p)},v.prototype.updateImage=function(p,g){this.imageManager.updateImage(p,g)},v.prototype.getImage=function(p){return this.imageManager.getImage(p)},v.prototype.removeImage=function(p){if(!this.getImage(p))return this.fire(new y.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(p),this._afterImageUpdated(p)},v.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 y.Event("data",{dataType:"style"}))},v.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},v.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(y.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}},v.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 y.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 y.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:p})),S.setEventedParent(null),S.clearTiles(),S.onRemove&&S.onRemove(this.map),this._changed=!0},v.prototype.setGeoJSONSourceData=function(p,g){this._checkLoaded(),this.sourceCaches[p].getSource().setData(g),this._changed=!0},v.prototype.getSource=function(p){return this.sourceCaches[p]&&this.sourceCaches[p].getSource()},v.prototype.addLayer=function(p,g,S){S===void 0&&(S={}),this._checkLoaded();var w=p.id;if(this.getLayer(w))this.fire(new y.ErrorEvent(new Error('Layer with id "'+w+'" already exists on this map')));else{var C;if(p.type==="custom"){if(Lu(this,y.validateCustomStyleLayer(p)))return;C=y.createStyleLayer(p)}else{if(typeof p.source=="object"&&(this.addSource(w,p.source),p=y.clone$1(p),p=y.extend(p,{source:w})),this._validate(y.validateStyle.layer,"layers."+w,p,{arrayIndex:-1},S))return;C=y.createStyleLayer(p),this._validateLayer(C),C.setEventedParent(this,{layer:{id:w}}),this._serializedLayers[C.id]=C.serialize()}var O=g?this._order.indexOf(g):this._order.length;if(g&&O===-1)this.fire(new y.ErrorEvent(new Error('Layer with id "'+g+'" does not exist on this map.')));else{if(this._order.splice(O,0,w),this._layerOrderChanged=!0,this._layers[w]=C,this._removedLayers[w]&&C.source&&C.type!=="custom"){var X=this._removedLayers[w];delete this._removedLayers[w],X.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)}}},v.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 y.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 y.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style and cannot be moved.")))},v.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 y.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style and cannot be removed.")))},v.prototype.getLayer=function(p){return this._layers[p]},v.prototype.hasLayer=function(p){return p in this._layers},v.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 y.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style and cannot have zoom extent.")))},v.prototype.setFilter=function(p,g,S){S===void 0&&(S={}),this._checkLoaded();var w=this.getLayer(p);if(w){if(!y.deepEqual(w.filter,g))return g==null?(w.filter=void 0,void this._updateLayer(w)):void(this._validate(y.validateStyle.filter,"layers."+w.id+".filter",g,null,S)||(w.filter=y.clone$1(g),this._updateLayer(w)))}else this.fire(new y.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style and cannot be filtered.")))},v.prototype.getFilter=function(p){return y.clone$1(this.getLayer(p).filter)},v.prototype.setLayoutProperty=function(p,g,S,w){w===void 0&&(w={}),this._checkLoaded();var C=this.getLayer(p);C?y.deepEqual(C.getLayoutProperty(g),S)||(C.setLayoutProperty(g,S,w),this._updateLayer(C)):this.fire(new y.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style and cannot be styled.")))},v.prototype.getLayoutProperty=function(p,g){var S=this.getLayer(p);if(S)return S.getLayoutProperty(g);this.fire(new y.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style.")))},v.prototype.setPaintProperty=function(p,g,S,w){w===void 0&&(w={}),this._checkLoaded();var C=this.getLayer(p);C?y.deepEqual(C.getPaintProperty(g),S)||(C.setPaintProperty(g,S,w)&&this._updateLayer(C),this._changed=!0,this._updatedPaintProps[p]=!0):this.fire(new y.ErrorEvent(new Error("The layer '"+p+"' does not exist in the map's style and cannot be styled.")))},v.prototype.getPaintProperty=function(p,g){return this.getLayer(p).getPaintProperty(g)},v.prototype.setFeatureState=function(p,g){this._checkLoaded();var S=p.source,w=p.sourceLayer,C=this.sourceCaches[S];if(C!==void 0){var O=C.getSource().type;O==="geojson"&&w?this.fire(new y.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):O!=="vector"||w?(p.id===void 0&&this.fire(new y.ErrorEvent(new Error("The feature id parameter must be provided."))),C.setFeatureState(w,p.id,g)):this.fire(new y.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new y.ErrorEvent(new Error("The source '"+S+"' does not exist in the map's style.")))},v.prototype.removeFeatureState=function(p,g){this._checkLoaded();var S=p.source,w=this.sourceCaches[S];if(w!==void 0){var C=w.getSource().type,O=C==="vector"?p.sourceLayer:void 0;C!=="vector"||O?g&&typeof p.id!="string"&&typeof p.id!="number"?this.fire(new y.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):w.removeFeatureState(O,p.id,g):this.fire(new y.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new y.ErrorEvent(new Error("The source '"+S+"' does not exist in the map's style.")))},v.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 y.ErrorEvent(new Error("The feature id parameter must be provided."))),w.getFeatureState(S,p.id);this.fire(new y.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new y.ErrorEvent(new Error("The source '"+g+"' does not exist in the map's style.")))},v.prototype.getTransition=function(){return y.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},v.prototype.serialize=function(){return y.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:y.mapObject(this.sourceCaches,function(p){return p.serialize()}),layers:this._serializeLayers(this._order)},function(p){return p!==void 0})},v.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},v.prototype._flattenAndSortRenderedFeatures=function(p){for(var g=this,S=function(Hr){return g._layers[Hr].type==="fill-extrusion"},w={},C=[],O=this._order.length-1;O>=0;O--){var X=this._order[O];if(S(X)){w[X]=O;for(var J=0,me=p;J=0;lt--){var Ne=this._order[lt];if(S(Ne))for(var ot=C.length-1;ot>=0;ot--){var _t=C[ot].feature;if(w[_t.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;}"),rp=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);}"),np=Ci("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),zp=Ci(`#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float opacity +gl_FragColor=color*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec2 a_pos;uniform mat4 u_matrix; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float opacity +gl_Position=u_matrix*vec4(a_pos,0,1);}`),Yc=Ci(`varying vec2 v_pos; +#pragma mapbox: define highp vec4 outline_color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 outline_color +#pragma mapbox: initialize lowp float opacity +float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos; +#pragma mapbox: define highp vec4 outline_color +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 outline_color +#pragma mapbox: initialize lowp float opacity +gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),Fu=Ci(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos; +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),ip=Ci(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b; +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b; +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),Qo=Ci(`varying vec4 v_color;void main() {gl_FragColor=v_color; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color; +#pragma mapbox: define highp float base +#pragma mapbox: define highp float height +#pragma mapbox: define highp vec4 color +void main() { +#pragma mapbox: initialize highp float base +#pragma mapbox: initialize highp float height +#pragma mapbox: initialize highp vec4 color +vec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),Xl=Ci(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +#pragma mapbox: define lowp float base +#pragma mapbox: define lowp float height +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float base +#pragma mapbox: initialize lowp float height +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; +#pragma mapbox: define lowp float base +#pragma mapbox: define lowp float height +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float base +#pragma mapbox: initialize lowp float height +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0 +? a_pos +: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),Tl=Ci(`#ifdef GL_ES +precision highp float; +#endif +uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),Ks=Ci(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent; +#define PI 3.141592653589793 +void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),wl=Ci(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),ui=Ci(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}`),tl=Ci(`uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +#define LINE_DISTANCE_SCALE 2.0 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width; +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +#pragma mapbox: define lowp vec4 pattern_from +#pragma mapbox: define lowp vec4 pattern_to +#pragma mapbox: define lowp float pixel_ratio_from +#pragma mapbox: define lowp float pixel_ratio_to +void main() { +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +#pragma mapbox: initialize mediump vec4 pattern_from +#pragma mapbox: initialize mediump vec4 pattern_to +#pragma mapbox: initialize lowp float pixel_ratio_from +#pragma mapbox: initialize lowp float pixel_ratio_to +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),Fs=Ci(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,` +#define scale 0.015873016 +#define LINE_DISTANCE_SCALE 2.0 +attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; +#pragma mapbox: define highp vec4 color +#pragma mapbox: define lowp float blur +#pragma mapbox: define lowp float opacity +#pragma mapbox: define mediump float gapwidth +#pragma mapbox: define lowp float offset +#pragma mapbox: define mediump float width +#pragma mapbox: define lowp float floorwidth +void main() { +#pragma mapbox: initialize highp vec4 color +#pragma mapbox: initialize lowp float blur +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize mediump float gapwidth +#pragma mapbox: initialize lowp float offset +#pragma mapbox: initialize mediump float width +#pragma mapbox: initialize lowp float floorwidth +float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),Nu=Ci(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),rl=Ci(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float opacity +lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity; +#pragma mapbox: define lowp float opacity +void main() { +#pragma mapbox: initialize lowp float opacity +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}`),ap=Ci(`#define SDF_PX 8.0 +uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),Yi=Ci(`#define SDF_PX 8.0 +#define SDF 1.0 +#define ICON 0.0 +uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha; +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity); +#ifdef OVERDRAW_INSPECTOR +gl_FragColor=vec4(1.0); +#endif +}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1; +#pragma mapbox: define highp vec4 fill_color +#pragma mapbox: define highp vec4 halo_color +#pragma mapbox: define lowp float opacity +#pragma mapbox: define lowp float halo_width +#pragma mapbox: define lowp float halo_blur +void main() { +#pragma mapbox: initialize highp vec4 fill_color +#pragma mapbox: initialize highp vec4 halo_color +#pragma mapbox: initialize lowp float opacity +#pragma mapbox: initialize lowp float halo_width +#pragma mapbox: initialize lowp float halo_blur +vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ? +camera_to_anchor_distance/u_camera_to_center_distance : +u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`);function Ci(h,v){var p=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,g=v.match(/attribute ([\w]+) ([\w]+)/g),S=h.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),w=v.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),C=w?w.concat(S):S,O={};return{fragmentSource:h=h.replace(p,function(X,J,me,be,Te){return O[Te]=!0,J==="define"?` +#ifndef HAS_UNIFORM_u_`+Te+` +varying `+me+" "+be+" "+Te+`; +#else +uniform `+me+" "+be+" u_"+Te+`; +#endif +`:` +#ifdef HAS_UNIFORM_u_`+Te+` + `+me+" "+be+" "+Te+" = u_"+Te+`; +#endif +`}),vertexSource:v=v.replace(p,function(X,J,me,be,Te){var je=be==="float"?"vec2":"vec4",Ze=Te.match(/color/)?"color":je;return O[Te]?J==="define"?` +#ifndef HAS_UNIFORM_u_`+Te+` +uniform lowp float u_`+Te+`_t; +attribute `+me+" "+je+" a_"+Te+`; +varying `+me+" "+be+" "+Te+`; +#else +uniform `+me+" "+be+" u_"+Te+`; +#endif +`:Ze==="vec4"?` +#ifndef HAS_UNIFORM_u_`+Te+` + `+Te+" = a_"+Te+`; +#else + `+me+" "+be+" "+Te+" = u_"+Te+`; +#endif +`:` +#ifndef HAS_UNIFORM_u_`+Te+` + `+Te+" = unpack_mix_"+Ze+"(a_"+Te+", u_"+Te+`_t); +#else + `+me+" "+be+" "+Te+" = u_"+Te+`; +#endif +`:J==="define"?` +#ifndef HAS_UNIFORM_u_`+Te+` +uniform lowp float u_`+Te+`_t; +attribute `+me+" "+je+" a_"+Te+`; +#else +uniform `+me+" "+be+" u_"+Te+`; +#endif +`:Ze==="vec4"?` +#ifndef HAS_UNIFORM_u_`+Te+` + `+me+" "+be+" "+Te+" = a_"+Te+`; +#else + `+me+" "+be+" "+Te+" = u_"+Te+`; +#endif +`:` +#ifndef HAS_UNIFORM_u_`+Te+` + `+me+" "+be+" "+Te+" = unpack_mix_"+Ze+"(a_"+Te+", u_"+Te+`_t); +#else + `+me+" "+be+" "+Te+" = u_"+Te+`; +#endif +`}),staticAttributes:g,staticUniforms:C}}var ou=Object.freeze({__proto__:null,prelude:Al,background:el,backgroundPattern:Tf,circle:tp,clippingMask:wf,heatmap:hh,heatmapTexture:ph,collisionBox:dh,collisionCircle:rp,debug:np,fill:zp,fillOutline:Yc,fillOutlinePattern:Fu,fillPattern:ip,fillExtrusion:Qo,fillExtrusionPattern:Xl,hillshadePrepare:Tl,hillshade:Ks,line:wl,lineGradient:ui,linePattern:tl,lineSDF:Fs,raster:Nu,symbolIcon:rl,symbolSDF:ap,symbolTextAndIcon:Yi}),mu=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function Cf(h){for(var v=[],p=0;p>16,O>>16],u_pixel_coord_lower:[65535&C,65535&O]}}Va.prototype.draw=function(h,v,p,g,S,w,C,O,X,J,me,be,Te,je,Ze,lt){var Ne,ot=h.gl;if(!this.failedToCreate){for(var _t in h.program.set(this.program),h.setDepthMode(p),h.setStencilMode(g),h.setColorMode(S),h.setCullFace(w),this.fixedUniforms)this.fixedUniforms[_t].set(C[_t]);je&&je.setUniforms(h,this.binderUniforms,be,{zoom:Te});for(var Lt=(Ne={},Ne[ot.LINES]=2,Ne[ot.TRIANGLES]=3,Ne[ot.LINE_STRIP]=1,Ne)[v],ir=0,qt=me.get();ir0?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:Mf(S.paint.get("raster-hue-rotate"))};var w,C};function Mf(h){h*=Math.PI/180;var v=Math.sin(h),p=Math.cos(h);return[(2*p+1)/3,(-Math.sqrt(3)*v-p+1)/3,(Math.sqrt(3)*v-p+1)/3]}var ol,$l=function(h,v,p,g,S,w,C,O,X,J){var me=S.transform;return{u_is_size_zoom_constant:+(h==="constant"||h==="source"),u_is_size_feature_constant:+(h==="constant"||h==="camera"),u_size_t:v?v.uSizeT:0,u_size:v?v.uSize:0,u_camera_to_center_distance:me.cameraToCenterDistance,u_pitch:me.pitch/360*2*Math.PI,u_rotate_symbol:+p,u_aspect_ratio:me.width/me.height,u_fade_change:S.options.fadeDuration?S.symbolFadeChange:1,u_matrix:w,u_label_plane_matrix:C,u_coord_matrix:O,u_is_text:+X,u_pitch_with_map:+g,u_texsize:J,u_texture:0}},Uu=function(h,v,p,g,S,w,C,O,X,J,me){var be=S.transform;return y.extend($l(h,v,p,g,S,w,C,O,X,J),{u_gamma_scale:g?Math.cos(be._pitch)*be.cameraToCenterDistance:1,u_device_pixel_ratio:y.browser.devicePixelRatio,u_is_halo:+me})},Jc=function(h,v,p,g,S,w,C,O,X,J){return y.extend(Uu(h,v,p,g,S,w,C,O,!0,X,!0),{u_texsize_icon:J,u_texture_icon:1})},bc=function(h,v,p){return{u_matrix:h,u_opacity:v,u_color:p}},Yl=function(h,v,p,g,S,w){return y.extend(function(C,O,X,J){var me=X.imageManager.getPattern(C.from.toString()),be=X.imageManager.getPattern(C.to.toString()),Te=X.imageManager.getPixelSize(),je=Te.width,Ze=Te.height,lt=Math.pow(2,J.tileID.overscaledZ),Ne=J.tileSize*Math.pow(2,X.transform.tileZoom)/lt,ot=Ne*(J.tileID.canonical.x+J.tileID.wrap*lt),_t=Ne*J.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:me.tl,u_pattern_br_a:me.br,u_pattern_tl_b:be.tl,u_pattern_br_b:be.br,u_texsize:[je,Ze],u_mix:O.t,u_pattern_size_a:me.displaySize,u_pattern_size_b:be.displaySize,u_scale_a:O.fromScale,u_scale_b:O.toScale,u_tile_units_to_pixels:1/ca(J,1,X.transform.tileZoom),u_pixel_coord_upper:[ot>>16,_t>>16],u_pixel_coord_lower:[65535&ot,65535&_t]}}(g,w,p,S),{u_matrix:h,u_opacity:v})},yh={fillExtrusion:function(h,v){return{u_matrix:new y.UniformMatrix4f(h,v.u_matrix),u_lightpos:new y.Uniform3f(h,v.u_lightpos),u_lightintensity:new y.Uniform1f(h,v.u_lightintensity),u_lightcolor:new y.Uniform3f(h,v.u_lightcolor),u_vertical_gradient:new y.Uniform1f(h,v.u_vertical_gradient),u_opacity:new y.Uniform1f(h,v.u_opacity)}},fillExtrusionPattern:function(h,v){return{u_matrix:new y.UniformMatrix4f(h,v.u_matrix),u_lightpos:new y.Uniform3f(h,v.u_lightpos),u_lightintensity:new y.Uniform1f(h,v.u_lightintensity),u_lightcolor:new y.Uniform3f(h,v.u_lightcolor),u_vertical_gradient:new y.Uniform1f(h,v.u_vertical_gradient),u_height_factor:new y.Uniform1f(h,v.u_height_factor),u_image:new y.Uniform1i(h,v.u_image),u_texsize:new y.Uniform2f(h,v.u_texsize),u_pixel_coord_upper:new y.Uniform2f(h,v.u_pixel_coord_upper),u_pixel_coord_lower:new y.Uniform2f(h,v.u_pixel_coord_lower),u_scale:new y.Uniform3f(h,v.u_scale),u_fade:new y.Uniform1f(h,v.u_fade),u_opacity:new y.Uniform1f(h,v.u_opacity)}},fill:function(h,v){return{u_matrix:new y.UniformMatrix4f(h,v.u_matrix)}},fillPattern:function(h,v){return{u_matrix:new y.UniformMatrix4f(h,v.u_matrix),u_image:new y.Uniform1i(h,v.u_image),u_texsize:new y.Uniform2f(h,v.u_texsize),u_pixel_coord_upper:new y.Uniform2f(h,v.u_pixel_coord_upper),u_pixel_coord_lower:new y.Uniform2f(h,v.u_pixel_coord_lower),u_scale:new y.Uniform3f(h,v.u_scale),u_fade:new y.Uniform1f(h,v.u_fade)}},fillOutline:function(h,v){return{u_matrix:new y.UniformMatrix4f(h,v.u_matrix),u_world:new y.Uniform2f(h,v.u_world)}},fillOutlinePattern:function(h,v){return{u_matrix:new y.UniformMatrix4f(h,v.u_matrix),u_world:new y.Uniform2f(h,v.u_world),u_image:new y.Uniform1i(h,v.u_image),u_texsize:new y.Uniform2f(h,v.u_texsize),u_pixel_coord_upper:new y.Uniform2f(h,v.u_pixel_coord_upper),u_pixel_coord_lower:new y.Uniform2f(h,v.u_pixel_coord_lower),u_scale:new y.Uniform3f(h,v.u_scale),u_fade:new y.Uniform1f(h,v.u_fade)}},circle:function(h,v){return{u_camera_to_center_distance:new y.Uniform1f(h,v.u_camera_to_center_distance),u_scale_with_map:new y.Uniform1i(h,v.u_scale_with_map),u_pitch_with_map:new y.Uniform1i(h,v.u_pitch_with_map),u_extrude_scale:new y.Uniform2f(h,v.u_extrude_scale),u_device_pixel_ratio:new y.Uniform1f(h,v.u_device_pixel_ratio),u_matrix:new y.UniformMatrix4f(h,v.u_matrix)}},collisionBox:function(h,v){return{u_matrix:new y.UniformMatrix4f(h,v.u_matrix),u_camera_to_center_distance:new y.Uniform1f(h,v.u_camera_to_center_distance),u_pixels_to_tile_units:new y.Uniform1f(h,v.u_pixels_to_tile_units),u_extrude_scale:new y.Uniform2f(h,v.u_extrude_scale),u_overscale_factor:new y.Uniform1f(h,v.u_overscale_factor)}},collisionCircle:function(h,v){return{u_matrix:new y.UniformMatrix4f(h,v.u_matrix),u_inv_matrix:new y.UniformMatrix4f(h,v.u_inv_matrix),u_camera_to_center_distance:new y.Uniform1f(h,v.u_camera_to_center_distance),u_viewport_size:new y.Uniform2f(h,v.u_viewport_size)}},debug:function(h,v){return{u_color:new y.UniformColor(h,v.u_color),u_matrix:new y.UniformMatrix4f(h,v.u_matrix),u_overlay:new y.Uniform1i(h,v.u_overlay),u_overlay_scale:new y.Uniform1f(h,v.u_overlay_scale)}},clippingMask:function(h,v){return{u_matrix:new y.UniformMatrix4f(h,v.u_matrix)}},heatmap:function(h,v){return{u_extrude_scale:new y.Uniform1f(h,v.u_extrude_scale),u_intensity:new y.Uniform1f(h,v.u_intensity),u_matrix:new y.UniformMatrix4f(h,v.u_matrix)}},heatmapTexture:function(h,v){return{u_matrix:new y.UniformMatrix4f(h,v.u_matrix),u_world:new y.Uniform2f(h,v.u_world),u_image:new y.Uniform1i(h,v.u_image),u_color_ramp:new y.Uniform1i(h,v.u_color_ramp),u_opacity:new y.Uniform1f(h,v.u_opacity)}},hillshade:function(h,v){return{u_matrix:new y.UniformMatrix4f(h,v.u_matrix),u_image:new y.Uniform1i(h,v.u_image),u_latrange:new y.Uniform2f(h,v.u_latrange),u_light:new y.Uniform2f(h,v.u_light),u_shadow:new y.UniformColor(h,v.u_shadow),u_highlight:new y.UniformColor(h,v.u_highlight),u_accent:new y.UniformColor(h,v.u_accent)}},hillshadePrepare:function(h,v){return{u_matrix:new y.UniformMatrix4f(h,v.u_matrix),u_image:new y.Uniform1i(h,v.u_image),u_dimension:new y.Uniform2f(h,v.u_dimension),u_zoom:new y.Uniform1f(h,v.u_zoom),u_unpack:new y.Uniform4f(h,v.u_unpack)}},line:function(h,v){return{u_matrix:new y.UniformMatrix4f(h,v.u_matrix),u_ratio:new y.Uniform1f(h,v.u_ratio),u_device_pixel_ratio:new y.Uniform1f(h,v.u_device_pixel_ratio),u_units_to_pixels:new y.Uniform2f(h,v.u_units_to_pixels)}},lineGradient:function(h,v){return{u_matrix:new y.UniformMatrix4f(h,v.u_matrix),u_ratio:new y.Uniform1f(h,v.u_ratio),u_device_pixel_ratio:new y.Uniform1f(h,v.u_device_pixel_ratio),u_units_to_pixels:new y.Uniform2f(h,v.u_units_to_pixels),u_image:new y.Uniform1i(h,v.u_image),u_image_height:new y.Uniform1f(h,v.u_image_height)}},linePattern:function(h,v){return{u_matrix:new y.UniformMatrix4f(h,v.u_matrix),u_texsize:new y.Uniform2f(h,v.u_texsize),u_ratio:new y.Uniform1f(h,v.u_ratio),u_device_pixel_ratio:new y.Uniform1f(h,v.u_device_pixel_ratio),u_image:new y.Uniform1i(h,v.u_image),u_units_to_pixels:new y.Uniform2f(h,v.u_units_to_pixels),u_scale:new y.Uniform3f(h,v.u_scale),u_fade:new y.Uniform1f(h,v.u_fade)}},lineSDF:function(h,v){return{u_matrix:new y.UniformMatrix4f(h,v.u_matrix),u_ratio:new y.Uniform1f(h,v.u_ratio),u_device_pixel_ratio:new y.Uniform1f(h,v.u_device_pixel_ratio),u_units_to_pixels:new y.Uniform2f(h,v.u_units_to_pixels),u_patternscale_a:new y.Uniform2f(h,v.u_patternscale_a),u_patternscale_b:new y.Uniform2f(h,v.u_patternscale_b),u_sdfgamma:new y.Uniform1f(h,v.u_sdfgamma),u_image:new y.Uniform1i(h,v.u_image),u_tex_y_a:new y.Uniform1f(h,v.u_tex_y_a),u_tex_y_b:new y.Uniform1f(h,v.u_tex_y_b),u_mix:new y.Uniform1f(h,v.u_mix)}},raster:function(h,v){return{u_matrix:new y.UniformMatrix4f(h,v.u_matrix),u_tl_parent:new y.Uniform2f(h,v.u_tl_parent),u_scale_parent:new y.Uniform1f(h,v.u_scale_parent),u_buffer_scale:new y.Uniform1f(h,v.u_buffer_scale),u_fade_t:new y.Uniform1f(h,v.u_fade_t),u_opacity:new y.Uniform1f(h,v.u_opacity),u_image0:new y.Uniform1i(h,v.u_image0),u_image1:new y.Uniform1i(h,v.u_image1),u_brightness_low:new y.Uniform1f(h,v.u_brightness_low),u_brightness_high:new y.Uniform1f(h,v.u_brightness_high),u_saturation_factor:new y.Uniform1f(h,v.u_saturation_factor),u_contrast_factor:new y.Uniform1f(h,v.u_contrast_factor),u_spin_weights:new y.Uniform3f(h,v.u_spin_weights)}},symbolIcon:function(h,v){return{u_is_size_zoom_constant:new y.Uniform1i(h,v.u_is_size_zoom_constant),u_is_size_feature_constant:new y.Uniform1i(h,v.u_is_size_feature_constant),u_size_t:new y.Uniform1f(h,v.u_size_t),u_size:new y.Uniform1f(h,v.u_size),u_camera_to_center_distance:new y.Uniform1f(h,v.u_camera_to_center_distance),u_pitch:new y.Uniform1f(h,v.u_pitch),u_rotate_symbol:new y.Uniform1i(h,v.u_rotate_symbol),u_aspect_ratio:new y.Uniform1f(h,v.u_aspect_ratio),u_fade_change:new y.Uniform1f(h,v.u_fade_change),u_matrix:new y.UniformMatrix4f(h,v.u_matrix),u_label_plane_matrix:new y.UniformMatrix4f(h,v.u_label_plane_matrix),u_coord_matrix:new y.UniformMatrix4f(h,v.u_coord_matrix),u_is_text:new y.Uniform1i(h,v.u_is_text),u_pitch_with_map:new y.Uniform1i(h,v.u_pitch_with_map),u_texsize:new y.Uniform2f(h,v.u_texsize),u_texture:new y.Uniform1i(h,v.u_texture)}},symbolSDF:function(h,v){return{u_is_size_zoom_constant:new y.Uniform1i(h,v.u_is_size_zoom_constant),u_is_size_feature_constant:new y.Uniform1i(h,v.u_is_size_feature_constant),u_size_t:new y.Uniform1f(h,v.u_size_t),u_size:new y.Uniform1f(h,v.u_size),u_camera_to_center_distance:new y.Uniform1f(h,v.u_camera_to_center_distance),u_pitch:new y.Uniform1f(h,v.u_pitch),u_rotate_symbol:new y.Uniform1i(h,v.u_rotate_symbol),u_aspect_ratio:new y.Uniform1f(h,v.u_aspect_ratio),u_fade_change:new y.Uniform1f(h,v.u_fade_change),u_matrix:new y.UniformMatrix4f(h,v.u_matrix),u_label_plane_matrix:new y.UniformMatrix4f(h,v.u_label_plane_matrix),u_coord_matrix:new y.UniformMatrix4f(h,v.u_coord_matrix),u_is_text:new y.Uniform1i(h,v.u_is_text),u_pitch_with_map:new y.Uniform1i(h,v.u_pitch_with_map),u_texsize:new y.Uniform2f(h,v.u_texsize),u_texture:new y.Uniform1i(h,v.u_texture),u_gamma_scale:new y.Uniform1f(h,v.u_gamma_scale),u_device_pixel_ratio:new y.Uniform1f(h,v.u_device_pixel_ratio),u_is_halo:new y.Uniform1i(h,v.u_is_halo)}},symbolTextAndIcon:function(h,v){return{u_is_size_zoom_constant:new y.Uniform1i(h,v.u_is_size_zoom_constant),u_is_size_feature_constant:new y.Uniform1i(h,v.u_is_size_feature_constant),u_size_t:new y.Uniform1f(h,v.u_size_t),u_size:new y.Uniform1f(h,v.u_size),u_camera_to_center_distance:new y.Uniform1f(h,v.u_camera_to_center_distance),u_pitch:new y.Uniform1f(h,v.u_pitch),u_rotate_symbol:new y.Uniform1i(h,v.u_rotate_symbol),u_aspect_ratio:new y.Uniform1f(h,v.u_aspect_ratio),u_fade_change:new y.Uniform1f(h,v.u_fade_change),u_matrix:new y.UniformMatrix4f(h,v.u_matrix),u_label_plane_matrix:new y.UniformMatrix4f(h,v.u_label_plane_matrix),u_coord_matrix:new y.UniformMatrix4f(h,v.u_coord_matrix),u_is_text:new y.Uniform1i(h,v.u_is_text),u_pitch_with_map:new y.Uniform1i(h,v.u_pitch_with_map),u_texsize:new y.Uniform2f(h,v.u_texsize),u_texsize_icon:new y.Uniform2f(h,v.u_texsize_icon),u_texture:new y.Uniform1i(h,v.u_texture),u_texture_icon:new y.Uniform1i(h,v.u_texture_icon),u_gamma_scale:new y.Uniform1f(h,v.u_gamma_scale),u_device_pixel_ratio:new y.Uniform1f(h,v.u_device_pixel_ratio),u_is_halo:new y.Uniform1i(h,v.u_is_halo)}},background:function(h,v){return{u_matrix:new y.UniformMatrix4f(h,v.u_matrix),u_opacity:new y.Uniform1f(h,v.u_opacity),u_color:new y.UniformColor(h,v.u_color)}},backgroundPattern:function(h,v){return{u_matrix:new y.UniformMatrix4f(h,v.u_matrix),u_opacity:new y.Uniform1f(h,v.u_opacity),u_image:new y.Uniform1i(h,v.u_image),u_pattern_tl_a:new y.Uniform2f(h,v.u_pattern_tl_a),u_pattern_br_a:new y.Uniform2f(h,v.u_pattern_br_a),u_pattern_tl_b:new y.Uniform2f(h,v.u_pattern_tl_b),u_pattern_br_b:new y.Uniform2f(h,v.u_pattern_br_b),u_texsize:new y.Uniform2f(h,v.u_texsize),u_mix:new y.Uniform1f(h,v.u_mix),u_pattern_size_a:new y.Uniform2f(h,v.u_pattern_size_a),u_pattern_size_b:new y.Uniform2f(h,v.u_pattern_size_b),u_scale_a:new y.Uniform1f(h,v.u_scale_a),u_scale_b:new y.Uniform1f(h,v.u_scale_b),u_pixel_coord_upper:new y.Uniform2f(h,v.u_pixel_coord_upper),u_pixel_coord_lower:new y.Uniform2f(h,v.u_pixel_coord_lower),u_tile_units_to_pixels:new y.Uniform1f(h,v.u_tile_units_to_pixels)}}};function Ec(h,v,p,g,S,w,C){for(var O=h.context,X=O.gl,J=h.useProgram("collisionBox"),me=[],be=0,Te=0,je=0;je0){var ir=y.create(),qt=ot;y.mul(ir,Ne.placementInvProjMatrix,h.transform.glCoordMatrix),y.mul(ir,ir,Ne.placementViewportMatrix),me.push({circleArray:Lt,circleOffset:Te,transform:qt,invTransform:ir}),Te=be+=Lt.length/4}_t&&J.draw(O,X.LINES,ee.disabled,xe.disabled,h.colorModeForRenderPass(),Qe.disabled,ua(ot,h.transform,lt),p.id,_t.layoutVertexBuffer,_t.indexBuffer,_t.segments,null,h.transform.zoom,null,null,_t.collisionVertexBuffer)}}if(C&&me.length){var cr=h.useProgram("collisionCircle"),br=new y.StructArrayLayout2f1f2i16;br.resize(4*be),br._trim();for(var Hr=0,Fr=0,hn=me;Fr=0&&(Ze[Ne.associatedIconIndex]={shiftedAnchor:br,angle:Hr})}else ka(Ne.numGlyphs,Te)}if(me){je.clear();for(var hn=h.icon.placedSymbolArray,Un=0;Un0){var C=y.browser.now(),O=(C-h.timeAdded)/w,X=v?(C-v.timeAdded)/w:-1,J=p.getSource(),me=S.coveringZoomLevel({tileSize:J.tileSize,roundZoom:J.roundZoom}),be=!v||Math.abs(v.tileID.overscaledZ-me)>Math.abs(h.tileID.overscaledZ-me),Te=be&&h.refreshedUponExpiration?1:y.clamp(be?O:1-X,0,1);return h.refreshedUponExpiration&&O>=1&&(h.refreshedUponExpiration=!1),v?{opacity:1,mix:1-Te}:{opacity:Te,mix:0}}return{opacity:1,mix:0}}var Eh=new y.Color(1,0,0,1),Pf=new y.Color(0,1,0,1),sp=new y.Color(0,0,1,1),ja=new y.Color(1,0,1,1),up=new y.Color(0,1,1,1);function Of(h,v,p,g){Kl(h,0,v+p/2,h.transform.width,p,g)}function lp(h,v,p,g){Kl(h,v-p/2,0,p,h.transform.height,g)}function Kl(h,v,p,g,S,w){var C=h.context,O=C.gl;O.enable(O.SCISSOR_TEST),O.scissor(v*y.browser.devicePixelRatio,p*y.browser.devicePixelRatio,g*y.browser.devicePixelRatio,S*y.browser.devicePixelRatio),C.clear({color:w}),O.disable(O.SCISSOR_TEST)}function cp(h,v,p){var g=h.context,S=g.gl,w=p.posMatrix,C=h.useProgram("debug"),O=ee.disabled,X=xe.disabled,J=h.colorModeForRenderPass();g.activeTexture.set(S.TEXTURE0),h.emptyTexture.bind(S.LINEAR,S.CLAMP_TO_EDGE),C.draw(g,S.LINE_STRIP,O,X,J,Qe.disabled,il(w,y.Color.red),"$debug",h.debugBuffer,h.tileBorderIndexBuffer,h.debugSegments);var me=v.getTileByID(p.key).latestRawTileData,be=Math.floor((me&&me.byteLength||0)/1024),Te=v.getTile(p).tileSize,je=512/Math.min(Te,512)*(p.overscaledZ/h.transform.zoom)*.5,Ze=p.canonical.toString();p.overscaledZ!==p.canonical.z&&(Ze+=" => "+p.overscaledZ),function(lt,Ne){lt.initDebugOverlayCanvas();var ot=lt.debugOverlayCanvas,_t=lt.context.gl,Lt=lt.debugOverlayCanvas.getContext("2d");Lt.clearRect(0,0,ot.width,ot.height),Lt.shadowColor="white",Lt.shadowBlur=2,Lt.lineWidth=1.5,Lt.strokeStyle="white",Lt.textBaseline="top",Lt.font="bold 36px Open Sans, sans-serif",Lt.fillText(Ne,5,5),Lt.strokeText(Ne,5,5),lt.debugOverlayTexture.update(ot),lt.debugOverlayTexture.bind(_t.LINEAR,_t.CLAMP_TO_EDGE)}(h,Ze+" "+be+"kb"),C.draw(g,S.TRIANGLES,O,X,Ue.alphaBlended,Qe.disabled,il(w,y.Color.transparent,je),"$debug",h.debugBuffer,h.quadTriangleIndexBuffer,h.debugSegments)}var Zu={symbol:function(h,v,p,g,S){if(h.renderPass==="translucent"){var w=xe.disabled,C=h.colorModeForRenderPass();p.layout.get("text-variable-anchor")&&function(O,X,J,me,be,Te,je){for(var Ze=X.transform,lt=be==="map",Ne=Te==="map",ot=0,_t=O;ot<_t.length;ot+=1){var Lt=_t[ot],ir=me.getTile(Lt),qt=ir.getBucket(J);if(qt&&qt.text&&qt.text.segments.get().length){var cr=y.evaluateSizeForZoom(qt.textSizeData,Ze.zoom),br=ca(ir,1,X.transform.zoom),Hr=Pa(Lt.posMatrix,Ne,lt,X.transform,br),Fr=J.layout.get("icon-text-fit")!=="none"&&qt.hasIconData();if(cr){var hn=Math.pow(2,Ze.zoom-ir.tileID.overscaledZ);ef(qt,lt,Ne,je,y.symbolSize,Ze,Hr,Lt.posMatrix,hn,cr,Fr)}}}}(g,h,p,v,p.layout.get("text-rotation-alignment"),p.layout.get("text-pitch-alignment"),S),p.paint.get("icon-opacity").constantOr(1)!==0&&Il(h,v,p,g,!1,p.paint.get("icon-translate"),p.paint.get("icon-translate-anchor"),p.layout.get("icon-rotation-alignment"),p.layout.get("icon-pitch-alignment"),p.layout.get("icon-keep-upright"),w,C),p.paint.get("text-opacity").constantOr(1)!==0&&Il(h,v,p,g,!0,p.paint.get("text-translate"),p.paint.get("text-translate-anchor"),p.layout.get("text-rotation-alignment"),p.layout.get("text-pitch-alignment"),p.layout.get("text-keep-upright"),w,C),v.map.showCollisionBoxes&&(Ec(h,v,p,g,p.paint.get("text-translate"),p.paint.get("text-translate-anchor"),!0),Ec(h,v,p,g,p.paint.get("icon-translate"),p.paint.get("icon-translate-anchor"),!1))}},circle:function(h,v,p,g){if(h.renderPass==="translucent"){var S=p.paint.get("circle-opacity"),w=p.paint.get("circle-stroke-width"),C=p.paint.get("circle-stroke-opacity"),O=p.layout.get("circle-sort-key").constantOr(1)!==void 0;if(S.constantOr(1)!==0||w.constantOr(1)!==0&&C.constantOr(1)!==0){for(var X=h.context,J=X.gl,me=h.depthModeForSublayer(0,ee.ReadOnly),be=xe.disabled,Te=h.colorModeForRenderPass(),je=[],Ze=0;Ze256&&this.clearStencil(),p.setColorMode(Ue.disabled),p.setDepthMode(ee.disabled);var S=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var w=0,C=v;w256&&this.clearStencil();var h=this.nextStencilID++,v=this.context.gl;return new xe({func:v.NOTEQUAL,mask:255},h,255,v.KEEP,v.KEEP,v.REPLACE)},ma.prototype.stencilModeForClipping=function(h){var v=this.context.gl;return new xe({func:v.EQUAL,mask:255},this._tileClippingMaskIDs[h.key],0,v.KEEP,v.KEEP,v.REPLACE)},ma.prototype.stencilConfigForOverlap=function(h){var v,p=this.context.gl,g=h.sort(function(X,J){return J.overscaledZ-X.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={},O=0;O=0;this.currentLayer--){var Lt=this.style._layers[g[this.currentLayer]],ir=S[Lt.source],qt=J[Lt.source];this._renderTileClippingMasks(Lt,qt),this.renderLayer(this,ir,Lt,qt)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?v.pop():null},ma.prototype.isPatternMissing=function(h){if(!h)return!1;if(!h.from||!h.to)return!0;var v=this.imageManager.getPattern(h.from.toString()),p=this.imageManager.getPattern(h.to.toString());return!v||!p},ma.prototype.useProgram=function(h,v){this.cache=this.cache||{};var p=""+h+(v?v.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[p]||(this.cache[p]=new Va(this.context,h,ou[h],v,yh[h],this._showOverdrawInspector)),this.cache[p]},ma.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()},ma.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)},ma.prototype.initDebugOverlayCanvas=function(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=y.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new y.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},ma.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var Ql=function(h,v){this.points=h,this.planes=v};Ql.fromInvProjectionMatrix=function(h,v,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 y.transformMat4([],C,h)}).map(function(C){return y.scale$1([],C,1/C[3]/v*g)}),w=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(function(C){var O=y.sub([],S[C[0]],S[C[1]]),X=y.sub([],S[C[2]],S[C[1]]),J=y.normalize([],y.cross([],O,X)),me=-y.dot(J,S[C[1]]);return J.concat(me)});return new Ql(S,w)};var Vu=function(h,v){this.min=h,this.max=v,this.center=y.scale$2([],y.add([],this.min,this.max),.5)};Vu.prototype.quadrant=function(h){for(var v=[h%2==0,h<2],p=y.clone$2(this.min),g=y.clone$2(this.max),S=0;S=0;if(w===0)return 0;w!==v.length&&(p=!1)}if(p)return 2;for(var O=0;O<3;O++){for(var X=Number.MAX_VALUE,J=-Number.MAX_VALUE,me=0;methis.max[O]-this.min[O])return 0}return 1};var ul=function(h,v,p,g){if(h===void 0&&(h=0),v===void 0&&(v=0),p===void 0&&(p=0),g===void 0&&(g=0),isNaN(h)||h<0||isNaN(v)||v<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=v,this.left=p,this.right=g};ul.prototype.interpolate=function(h,v,p){return v.top!=null&&h.top!=null&&(this.top=y.number(h.top,v.top,p)),v.bottom!=null&&h.bottom!=null&&(this.bottom=y.number(h.bottom,v.bottom,p)),v.left!=null&&h.left!=null&&(this.left=y.number(h.left,v.left,p)),v.right!=null&&h.right!=null&&(this.right=y.number(h.right,v.right,p)),this},ul.prototype.getCenter=function(h,v){var p=y.clamp((this.left+h-this.right)/2,0,h),g=y.clamp((this.top+v-this.bottom)/2,0,v);return new y.Point(p,g)},ul.prototype.equals=function(h){return this.top===h.top&&this.bottom===h.bottom&&this.left===h.left&&this.right===h.right},ul.prototype.clone=function(){return new ul(this.top,this.bottom,this.left,this.right)},ul.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Bi=function(h,v,p,g,S){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=S===void 0||S,this._minZoom=h||0,this._maxZoom=v||22,this._minPitch=p==null?0:p,this._maxPitch=g==null?60:g,this.setMaxBounds(),this.width=0,this.height=0,this._center=new y.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new ul,this._posMatrixCache={},this._alignedPosMatrixCache={}},ga={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}};Bi.prototype.clone=function(){var h=new Bi(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},ga.minZoom.get=function(){return this._minZoom},ga.minZoom.set=function(h){this._minZoom!==h&&(this._minZoom=h,this.zoom=Math.max(this.zoom,h))},ga.maxZoom.get=function(){return this._maxZoom},ga.maxZoom.set=function(h){this._maxZoom!==h&&(this._maxZoom=h,this.zoom=Math.min(this.zoom,h))},ga.minPitch.get=function(){return this._minPitch},ga.minPitch.set=function(h){this._minPitch!==h&&(this._minPitch=h,this.pitch=Math.max(this.pitch,h))},ga.maxPitch.get=function(){return this._maxPitch},ga.maxPitch.set=function(h){this._maxPitch!==h&&(this._maxPitch=h,this.pitch=Math.min(this.pitch,h))},ga.renderWorldCopies.get=function(){return this._renderWorldCopies},ga.renderWorldCopies.set=function(h){h===void 0?h=!0:h===null&&(h=!1),this._renderWorldCopies=h},ga.worldSize.get=function(){return this.tileSize*this.scale},ga.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},ga.size.get=function(){return new y.Point(this.width,this.height)},ga.bearing.get=function(){return-this.angle/Math.PI*180},ga.bearing.set=function(h){var v=-y.wrap(h,-180,180)*Math.PI/180;this.angle!==v&&(this._unmodified=!1,this.angle=v,this._calcMatrices(),this.rotationMatrix=y.create$2(),y.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},ga.pitch.get=function(){return this._pitch/Math.PI*180},ga.pitch.set=function(h){var v=y.clamp(h,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==v&&(this._unmodified=!1,this._pitch=v,this._calcMatrices())},ga.fov.get=function(){return this._fov/Math.PI*180},ga.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())},ga.zoom.get=function(){return this._zoom},ga.zoom.set=function(h){var v=Math.min(Math.max(h,this.minZoom),this.maxZoom);this._zoom!==v&&(this._unmodified=!1,this._zoom=v,this.scale=this.zoomScale(v),this.tileZoom=Math.floor(v),this.zoomFraction=v-this.tileZoom,this._constrain(),this._calcMatrices())},ga.center.get=function(){return this._center},ga.center.set=function(h){h.lat===this._center.lat&&h.lng===this._center.lng||(this._unmodified=!1,this._center=h,this._constrain(),this._calcMatrices())},ga.padding.get=function(){return this._edgeInsets.toJSON()},ga.padding.set=function(h){this._edgeInsets.equals(h)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,h,1),this._calcMatrices())},ga.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Bi.prototype.isPaddingEqual=function(h){return this._edgeInsets.equals(h)},Bi.prototype.interpolatePadding=function(h,v,p){this._unmodified=!1,this._edgeInsets.interpolate(h,v,p),this._constrain(),this._calcMatrices()},Bi.prototype.coveringZoomLevel=function(h){var v=(h.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/h.tileSize));return Math.max(0,v)},Bi.prototype.getVisibleUnwrappedCoordinates=function(h){var v=[new y.UnwrappedTileID(0,h)];if(this._renderWorldCopies)for(var p=this.pointCoordinate(new y.Point(0,0)),g=this.pointCoordinate(new y.Point(this.width,0)),S=this.pointCoordinate(new y.Point(this.width,this.height)),w=this.pointCoordinate(new y.Point(0,this.height)),C=Math.floor(Math.min(p.x,g.x,S.x,w.x)),O=Math.floor(Math.max(p.x,g.x,S.x,w.x)),X=C-1;X<=O+1;X++)X!==0&&v.push(new y.UnwrappedTileID(X,h));return v},Bi.prototype.coveringTiles=function(h){var v=this.coveringZoomLevel(h),p=v;if(h.minzoom!==void 0&&vh.maxzoom&&(v=h.maxzoom);var g=y.MercatorCoordinate.fromLngLat(this.center),S=Math.pow(2,v),w=[S*g.x,S*g.y,0],C=Ql.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,v),O=h.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(O=v);var X=function(Fr){return{aabb:new Vu([Fr*S,0,0],[(Fr+1)*S,S,0]),zoom:0,x:0,y:0,wrap:Fr,fullyVisible:!1}},J=[],me=[],be=v,Te=h.reparseOverscaled?p:v;if(this._renderWorldCopies)for(var je=1;je<=3;je++)J.push(X(-je)),J.push(X(je));for(J.push(X(0));J.length>0;){var Ze=J.pop(),lt=Ze.x,Ne=Ze.y,ot=Ze.fullyVisible;if(!ot){var _t=Ze.aabb.intersects(C);if(_t===0)continue;ot=_t===2}var Lt=Ze.aabb.distanceX(w),ir=Ze.aabb.distanceY(w),qt=Math.max(Math.abs(Lt),Math.abs(ir));if(Ze.zoom===be||qt>3+(1<=O)me.push({tileID:new y.OverscaledTileID(Ze.zoom===be?Te:Ze.zoom,Ze.wrap,Ze.zoom,lt,Ne),distanceSq:y.sqrLen([w[0]-.5-lt,w[1]-.5-Ne])});else for(var cr=0;cr<4;cr++){var br=(lt<<1)+cr%2,Hr=(Ne<<1)+(cr>>1);J.push({aabb:Ze.aabb.quadrant(cr),zoom:Ze.zoom+1,x:br,y:Hr,wrap:Ze.wrap,fullyVisible:ot})}}return me.sort(function(Fr,hn){return Fr.distanceSq-hn.distanceSq}).map(function(Fr){return Fr.tileID})},Bi.prototype.resize=function(h,v){this.width=h,this.height=v,this.pixelsToGLUnits=[2/h,-2/v],this._constrain(),this._calcMatrices()},ga.unmodified.get=function(){return this._unmodified},Bi.prototype.zoomScale=function(h){return Math.pow(2,h)},Bi.prototype.scaleZoom=function(h){return Math.log(h)/Math.LN2},Bi.prototype.project=function(h){var v=y.clamp(h.lat,-this.maxValidLatitude,this.maxValidLatitude);return new y.Point(y.mercatorXfromLng(h.lng)*this.worldSize,y.mercatorYfromLat(v)*this.worldSize)},Bi.prototype.unproject=function(h){return new y.MercatorCoordinate(h.x/this.worldSize,h.y/this.worldSize).toLngLat()},ga.point.get=function(){return this.project(this.center)},Bi.prototype.setLocationAtPoint=function(h,v){var p=this.pointCoordinate(v),g=this.pointCoordinate(this.centerPoint),S=this.locationCoordinate(h),w=new y.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())},Bi.prototype.locationPoint=function(h){return this.coordinatePoint(this.locationCoordinate(h))},Bi.prototype.pointLocation=function(h){return this.coordinateLocation(this.pointCoordinate(h))},Bi.prototype.locationCoordinate=function(h){return y.MercatorCoordinate.fromLngLat(h)},Bi.prototype.coordinateLocation=function(h){return h.toLngLat()},Bi.prototype.pointCoordinate=function(h){var v=[h.x,h.y,0,1],p=[h.x,h.y,1,1];y.transformMat4(v,v,this.pixelMatrixInverse),y.transformMat4(p,p,this.pixelMatrixInverse);var g=v[3],S=p[3],w=v[1]/g,C=p[1]/S,O=v[2]/g,X=p[2]/S,J=O===X?0:(0-O)/(X-O);return new y.MercatorCoordinate(y.number(v[0]/g,p[0]/S,J)/this.worldSize,y.number(w,C,J)/this.worldSize)},Bi.prototype.coordinatePoint=function(h){var v=[h.x*this.worldSize,h.y*this.worldSize,0,1];return y.transformMat4(v,v,this.pixelMatrix),new y.Point(v[0]/v[3],v[1]/v[3])},Bi.prototype.getBounds=function(){return new y.LngLatBounds().extend(this.pointLocation(new y.Point(0,0))).extend(this.pointLocation(new y.Point(this.width,0))).extend(this.pointLocation(new y.Point(this.width,this.height))).extend(this.pointLocation(new y.Point(0,this.height)))},Bi.prototype.getMaxBounds=function(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new y.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Bi.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])},Bi.prototype.calculatePosMatrix=function(h,v){v===void 0&&(v=!1);var p=h.key,g=v?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,O=y.identity(new Float64Array(16));return y.translate(O,O,[C*w,S.y*w,0]),y.scale(O,O,[w/y.EXTENT,w/y.EXTENT,1]),y.multiply(O,v?this.alignedProjMatrix:this.projMatrix,O),g[p]=new Float32Array(O),g[p]},Bi.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Bi.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var h,v,p,g,S=-90,w=90,C=-180,O=180,X=this.size,J=this._unmodified;if(this.latRange){var me=this.latRange;S=y.mercatorYfromLat(me[1])*this.worldSize,h=(w=y.mercatorYfromLat(me[0])*this.worldSize)-Sw&&(g=w-lt)}if(this.lngRange){var Ne=Te.x,ot=X.x/2;Ne-otO&&(p=O-ot)}p===void 0&&g===void 0||(this.center=this.unproject(new y.Point(p!==void 0?p:Te.x,g!==void 0?g:Te.y))),this._unmodified=J,this._constraining=!1}},Bi.prototype._calcMatrices=function(){if(this.height){var h=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var v=Math.PI/2+this._pitch,p=this._fov*(.5+h.y/this.height),g=Math.sin(p)*this.cameraToCenterDistance/Math.sin(y.clamp(Math.PI-v-p,.01,Math.PI-.01)),S=this.point,w=S.x,C=S.y,O=1.01*(Math.cos(Math.PI/2-this._pitch)*g+this.cameraToCenterDistance),X=this.height/50,J=new Float64Array(16);y.perspective(J,this._fov,this.width/this.height,X,O),J[8]=2*-h.x/this.width,J[9]=2*h.y/this.height,y.scale(J,J,[1,-1,1]),y.translate(J,J,[0,0,-this.cameraToCenterDistance]),y.rotateX(J,J,this._pitch),y.rotateZ(J,J,this.angle),y.translate(J,J,[-w,-C,0]),this.mercatorMatrix=y.scale([],J,[this.worldSize,this.worldSize,this.worldSize]),y.scale(J,J,[1,1,y.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=J,this.invProjMatrix=y.invert([],this.projMatrix);var me=this.width%2/2,be=this.height%2/2,Te=Math.cos(this.angle),je=Math.sin(this.angle),Ze=w-Math.round(w)+Te*me+je*be,lt=C-Math.round(C)+Te*be+je*me,Ne=new Float64Array(J);if(y.translate(Ne,Ne,[Ze>.5?Ze-1:Ze,lt>.5?lt-1:lt,0]),this.alignedProjMatrix=Ne,J=y.create(),y.scale(J,J,[this.width/2,-this.height/2,1]),y.translate(J,J,[1,-1,0]),this.labelPlaneMatrix=J,J=y.create(),y.scale(J,J,[1,-1,1]),y.translate(J,J,[-1,-1,0]),y.scale(J,J,[2/this.width,2/this.height,1]),this.glCoordMatrix=J,this.pixelMatrix=y.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(J=y.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=J,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Bi.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var h=this.pointCoordinate(new y.Point(0,0)),v=[h.x*this.worldSize,h.y*this.worldSize,0,1];return y.transformMat4(v,v,this.pixelMatrix)[3]/this.cameraToCenterDistance},Bi.prototype.getCameraPoint=function(){var h=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new y.Point(0,h))},Bi.prototype.getCameraQueryGeometry=function(h){var v=this.getCameraPoint();if(h.length===1)return[h[0],v];for(var p=v.x,g=v.y,S=v.x,w=v.y,C=0,O=h;C=3&&!h.some(function(p){return isNaN(p)})){var v=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:v,pitch:+(h[4]||0)}),!0}return!1},su.prototype._updateHashUnthrottled=function(){var h=y.window.location.href.replace(/(#.+)?$/,this.getHashString());try{y.window.history.replaceState(y.window.history.state,null,h)}catch(v){}};var tf={linearity:.3,easing:y.bezier(0,0,.3,1)},rf=y.extend({deceleration:2500,maxSpeed:1400},tf),Qs=y.extend({deceleration:20,maxSpeed:1400},tf),fp=y.extend({deceleration:1e3,maxSpeed:360},tf),kf=y.extend({deceleration:1e3,maxSpeed:90},tf),Df=function(h){this._map=h,this.clear()};function Jl(h,v){(!h.duration||h.duration0&&v-h[0].time>160;)h.shift()},Df.prototype._onMoveEnd=function(h){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var v={zoom:0,bearing:0,pitch:0,pan:new y.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))},io.prototype.dblclick=function(h){return this._firePreventable(new Ha(h.type,this._map,h))},io.prototype.mouseover=function(h){this._map.fire(new Ha(h.type,this._map,h))},io.prototype.mouseout=function(h){this._map.fire(new Ha(h.type,this._map,h))},io.prototype.touchstart=function(h){return this._firePreventable(new nf(h.type,this._map,h))},io.prototype.touchmove=function(h){this._map.fire(new nf(h.type,this._map,h))},io.prototype.touchend=function(h){this._map.fire(new nf(h.type,this._map,h))},io.prototype.touchcancel=function(h){this._map.fire(new nf(h.type,this._map,h))},io.prototype._firePreventable=function(h){if(this._map.fire(h),h.defaultPrevented)return{}},io.prototype.isEnabled=function(){return!0},io.prototype.isActive=function(){return!1},io.prototype.enable=function(){},io.prototype.disable=function(){};var xn=function(h){this._map=h};xn.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},xn.prototype.mousemove=function(h){this._map.fire(new Ha(h.type,this._map,h))},xn.prototype.mousedown=function(){this._delayContextMenu=!0},xn.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Ha("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},xn.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()},xn.prototype.isEnabled=function(){return!0},xn.prototype.isActive=function(){return!1},xn.prototype.enable=function(){},xn.prototype.disable=function(){};var gs=function(h,v){this._map=h,this._el=h.getCanvasContainer(),this._container=h.getContainer(),this._clickTolerance=v.clickTolerance||1};function Lf(h,v){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 y.Point(0,0),w=0,C=g;w30)&&(this.aborted=!0)}}},Tc.prototype.touchend=function(h,v,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 as=function(h){this.singleTap=new Tc(h),this.numTaps=h.numTaps,this.reset()};as.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},as.prototype.touchstart=function(h,v,p){this.singleTap.touchstart(h,v,p)},as.prototype.touchmove=function(h,v,p){this.singleTap.touchmove(h,v,p)},as.prototype.touchend=function(h,v,p){var g=this.singleTap.touchend(h,v,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 pa=function(){this._zoomIn=new as({numTouches:1,numTaps:2}),this._zoomOut=new as({numTouches:2,numTaps:1}),this.reset()};pa.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},pa.prototype.touchstart=function(h,v,p){this._zoomIn.touchstart(h,v,p),this._zoomOut.touchstart(h,v,p)},pa.prototype.touchmove=function(h,v,p){this._zoomIn.touchmove(h,v,p),this._zoomOut.touchmove(h,v,p)},pa.prototype.touchend=function(h,v,p){var g=this,S=this._zoomIn.touchend(h,v,p),w=this._zoomOut.touchend(h,v,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},pa.prototype.touchcancel=function(){this.reset()},pa.prototype.enable=function(){this._enabled=!0},pa.prototype.disable=function(){this._enabled=!1,this.reset()},pa.prototype.isEnabled=function(){return this._enabled},pa.prototype.isActive=function(){return this._active};var Bf={0:1,2:2},sn=function(h){this.reset(),this._clickTolerance=h.clickTolerance||1};sn.prototype.blur=function(){this.reset()},sn.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},sn.prototype._correctButton=function(h,v){return!1},sn.prototype._move=function(h,v){return{}},sn.prototype.mousedown=function(h,v){if(!this._lastPoint){var p=Z.mouseButton(h);this._correctButton(h,p)&&(this._lastPoint=v,this._eventButton=p)}},sn.prototype.mousemoveWindow=function(h,v){var p=this._lastPoint;if(p){if(h.preventDefault(),function(g,S){var w=Bf[S];return g.buttons===void 0||(g.buttons&w)!==w}(h,this._eventButton))this.reset();else if(this._moved||!(v.dist(p)0&&(this._active=!0);var g=Lf(p,v),S=new y.Point(0,0),w=new y.Point(0,0),C=0;for(var O in g){var X=g[O],J=this._touches[O];J&&(S._add(X),w._add(X.sub(J)),C++,g[O]=X)}if(this._touches=g,!(CMath.abs(h.x)}var Cc=function(h){function v(){h.apply(this,arguments)}return h&&(v.__proto__=h),(v.prototype=Object.create(h&&h.prototype)).constructor=v,v.prototype.reset=function(){h.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},v.prototype._start=function(p){this._lastPoints=p,wc(p[0].sub(p[1]))&&(this._valid=!1)},v.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}},v.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 O=p.y>0==g.y>0;return wc(p)&&wc(g)&&O}},v}(zs),Uf={panStep:100,bearingStep:15,pitchStep:10},Js=function(){var h=Uf;this._panStep=h.panStep,this._bearingStep=h.bearingStep,this._pitchStep=h.pitchStep,this._rotationDisabled=!1};function Ft(h){return h*(2-h)}Js.prototype.blur=function(){this.reset()},Js.prototype.reset=function(){this._active=!1},Js.prototype.keydown=function(h){var v=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(O){var X=O.getZoom();O.easeTo({duration:300,easeId:"keyboardHandler",easing:Ft,zoom:p?Math.round(X)+p*(h.shiftKey?2:1):X,bearing:O.getBearing()+g*v._bearingStep,pitch:O.getPitch()+S*v._pitchStep,offset:[-w*v._panStep,-C*v._panStep],center:O.getCenter()},{originalEvent:h})}}}},Js.prototype.enable=function(){this._enabled=!0},Js.prototype.disable=function(){this._enabled=!1,this.reset()},Js.prototype.isEnabled=function(){return this._enabled},Js.prototype.isActive=function(){return this._active},Js.prototype.disableRotation=function(){this._rotationDisabled=!0},Js.prototype.enableRotation=function(){this._rotationDisabled=!1};var Me=function(h,v){this._map=h,this._el=h.getCanvasContainer(),this._handler=v,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,y.bindAll(["_onTimeout"],this)};Me.prototype.setZoomRate=function(h){this._defaultZoomRate=h},Me.prototype.setWheelZoomRate=function(h){this._wheelZoomRate=h},Me.prototype.isEnabled=function(){return!!this._enabled},Me.prototype.isActive=function(){return!!this._active||this._finishTimeout!==void 0},Me.prototype.isZooming=function(){return!!this._zooming},Me.prototype.enable=function(h){this.isEnabled()||(this._enabled=!0,this._aroundCenter=h&&h.around==="center")},Me.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Me.prototype.wheel=function(h){if(this.isEnabled()){var v=h.deltaMode===y.window.WheelEvent.DOM_DELTA_LINE?40*h.deltaY:h.deltaY,p=y.browser.now(),g=p-(this._lastWheelEventTime||0);this._lastWheelEventTime=p,v!==0&&v%4.000244140625==0?this._type="wheel":v!==0&&Math.abs(v)<4?this._type="trackpad":g>400?(this._type=null,this._lastValue=v,this._timeout=setTimeout(this._onTimeout,40,h)):this._type||(this._type=Math.abs(g*v)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,v+=this._lastValue)),h.shiftKey&&v&&(v/=4),this._type&&(this._lastWheelEvent=h,this._delta-=v,this._active||this._start(h)),h.preventDefault()}},Me.prototype._onTimeout=function(h){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(h)},Me.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 v=Z.mousePos(this._el,h);this._around=y.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(v)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},Me.prototype.renderFrame=function(){var h=this;if(this._frameId&&(this._frameId=null,this.isActive())){var v=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"?v.zoomScale(this._targetZoom):v.scale;this._targetZoom=Math.min(v.maxZoom,Math.max(v.minZoom,v.scaleZoom(S*g))),this._type==="wheel"&&(this._startZoom=v.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var w,C=typeof this._targetZoom=="number"?this._targetZoom:v.zoom,O=this._startZoom,X=this._easing,J=!1;if(this._type==="wheel"&&O&&X){var me=Math.min((y.browser.now()-this._lastWheelEventTime)/200,1),be=X(me);w=y.number(O,C,be),me<1?this._frameId||(this._frameId=!0):J=!0}else w=C,J=!0;return this._active=!0,J&&(this._active=!1,this._finishTimeout=setTimeout(function(){h._zooming=!1,h._handler._triggerRenderFrame(),delete h._targetZoom,delete h._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!J,zoomDelta:w-v.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},Me.prototype._smoothOutEasing=function(h){var v=y.ease;if(this._prevEase){var p=this._prevEase,g=(y.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);v=y.bezier(w,C,.25,1)}return this._prevEase={start:y.browser.now(),duration:h,easing:v},v},Me.prototype.blur=function(){this.reset()},Me.prototype.reset=function(){this._active=!1};var F=function(h,v){this._clickZoom=h,this._tapZoom=v};F.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},F.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},F.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},F.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var eu=function(){this.reset()};eu.prototype.reset=function(){this._active=!1},eu.prototype.blur=function(){this.reset()},eu.prototype.dblclick=function(h,v){return h.preventDefault(),{cameraAnimation:function(p){p.easeTo({duration:300,zoom:p.getZoom()+(h.shiftKey?-1:1),around:p.unproject(v)},{originalEvent:h})}}},eu.prototype.enable=function(){this._enabled=!0},eu.prototype.disable=function(){this._enabled=!1,this.reset()},eu.prototype.isEnabled=function(){return this._enabled},eu.prototype.isActive=function(){return this._active};var _e=function(){this._tap=new as({numTouches:1,numTaps:1}),this.reset()};_e.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},_e.prototype.touchstart=function(h,v,p){this._swipePoint||(this._tapTime&&h.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?p.length>0&&(this._swipePoint=v[0],this._swipeTouch=p[0].identifier):this._tap.touchstart(h,v,p))},_e.prototype.touchmove=function(h,v,p){if(this._tapTime){if(this._swipePoint){if(p[0].identifier!==this._swipeTouch)return;var g=v[0],S=g.y-this._swipePoint.y;return this._swipePoint=g,h.preventDefault(),this._active=!0,{zoomDelta:S/128}}}else this._tap.touchmove(h,v,p)},_e.prototype.touchend=function(h,v,p){this._tapTime?this._swipePoint&&p.length===0&&this.reset():this._tap.touchend(h,v,p)&&(this._tapTime=h.timeStamp)},_e.prototype.touchcancel=function(){this.reset()},_e.prototype.enable=function(){this._enabled=!0},_e.prototype.disable=function(){this._enabled=!1,this.reset()},_e.prototype.isEnabled=function(){return this._enabled},_e.prototype.isActive=function(){return this._active};var Pl=function(h,v,p){this._el=h,this._mousePan=v,this._touchPan=p};Pl.prototype.enable=function(h){this._inertiaOptions=h||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},Pl.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},Pl.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},Pl.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var Ka=function(h,v,p){this._pitchWithRotate=h.pitchWithRotate,this._mouseRotate=v,this._mousePitch=p};Ka.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},Ka.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},Ka.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},Ka.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var Zs=function(h,v,p,g){this._el=h,this._touchZoom=v,this._touchRotate=p,this._tapDragZoom=g,this._rotationDisabled=!1,this._enabled=!0};Zs.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")},Zs.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},Zs.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},Zs.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},Zs.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},Zs.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var Mo=function(h){return h.zoom||h.drag||h.pitch||h.rotate},_s=function(h){function v(){h.apply(this,arguments)}return h&&(v.__proto__=h),(v.prototype=Object.create(h&&h.prototype)).constructor=v,v}(y.Event);function Bn(h){return h.panDelta&&h.panDelta.mag()||h.zoomDelta||h.bearingDelta||h.pitchDelta}var An=function(h,v){this._map=h,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Df(h),this._bearingSnap=v.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(v),y.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],[y.window.document,"mousemove",{capture:!0}],[y.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],[y.window,"blur",void 0]];for(var g=0,S=this._listeners;gC?Math.min(2,cr):Math.max(.5,cr),Un=Math.pow(hn,1-Hr),Fn=w.unproject(ir.add(qt.mult(Hr*Un)).mult(Fr));w.setLocationAtPoint(w.renderWorldCopies?Fn.wrap():Fn,lt)}S._fireMoveEvents(g)},function(Hr){S._afterEase(g,Hr)},p),this},v.prototype._prepareEase=function(p,g,S){S===void 0&&(S={}),this._moving=!0,g||S.moving||this.fire(new y.Event("movestart",p)),this._zooming&&!S.zooming&&this.fire(new y.Event("zoomstart",p)),this._rotating&&!S.rotating&&this.fire(new y.Event("rotatestart",p)),this._pitching&&!S.pitching&&this.fire(new y.Event("pitchstart",p))},v.prototype._fireMoveEvents=function(p){this.fire(new y.Event("move",p)),this._zooming&&this.fire(new y.Event("zoom",p)),this._rotating&&this.fire(new y.Event("rotate",p)),this._pitching&&this.fire(new y.Event("pitch",p))},v.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 y.Event("zoomend",p)),w&&this.fire(new y.Event("rotateend",p)),C&&this.fire(new y.Event("pitchend",p)),this.fire(new y.Event("moveend",p))}},v.prototype.flyTo=function(p,g){var S=this;if(!p.essential&&y.browser.prefersReducedMotion){var w=y.pick(p,["center","zoom","bearing","pitch","around"]);return this.jumpTo(w,g)}this.stop(),p=y.extend({offset:[0,0],speed:1.2,curve:1.42,easing:y.ease},p);var C=this.transform,O=this.getZoom(),X=this.getBearing(),J=this.getPitch(),me=this.getPadding(),be="zoom"in p?y.clamp(+p.zoom,C.minZoom,C.maxZoom):O,Te="bearing"in p?this._normalizeBearing(p.bearing,X):X,je="pitch"in p?+p.pitch:J,Ze="padding"in p?p.padding:C.padding,lt=C.zoomScale(be-O),Ne=y.Point.convert(p.offset),ot=C.centerPoint.add(Ne),_t=C.pointLocation(ot),Lt=y.LngLat.convert(p.center||_t);this._normalizeCenter(Lt);var ir=C.project(_t),qt=C.project(Lt).sub(ir),cr=p.curve,br=Math.max(C.width,C.height),Hr=br/lt,Fr=qt.mag();if("minZoom"in p){var hn=y.clamp(Math.min(p.minZoom,O,be),C.minZoom,C.maxZoom),Un=br/C.zoomScale(hn-O);cr=Math.sqrt(Un/Fr*2)}var Fn=cr*cr;function zn(Qn){var Gn=(Hr*Hr-br*br+(Qn?-1:1)*Fn*Fn*Fr*Fr)/(2*(Qn?Hr:br)*Fn*Fr);return Math.log(Math.sqrt(Gn*Gn+1)-Gn)}function zi(Qn){return(Math.exp(Qn)-Math.exp(-Qn))/2}function gn(Qn){return(Math.exp(Qn)+Math.exp(-Qn))/2}var ii=zn(0),pi=function(Qn){return gn(ii)/gn(ii+cr*Qn)},ri=function(Qn){return br*((gn(ii)*(zi(Gn=ii+cr*Qn)/gn(Gn))-zi(ii))/Fn)/Fr;var Gn},Kn=(zn(1)-ii)/cr;if(Math.abs(Fr)<1e-6||!isFinite(Kn)){if(Math.abs(br-Hr)<1e-6)return this.easeTo(p,g);var fi=Hrp.maxDuration&&(p.duration=0),this._zooming=!0,this._rotating=X!==Te,this._pitching=je!==J,this._padding=!C.isPaddingEqual(Ze),this._prepareEase(g,!1),this._ease(function(Qn){var Gn=Qn*Kn,Io=1/pi(Gn);C.zoom=Qn===1?be:O+C.scaleZoom(Io),S._rotating&&(C.bearing=y.number(X,Te,Qn)),S._pitching&&(C.pitch=y.number(J,je,Qn)),S._padding&&(C.interpolatePadding(me,Ze,Qn),ot=C.centerPoint.add(Ne));var Qa=Qn===1?Lt:C.unproject(ir.add(qt.mult(ri(Gn))).mult(Io));C.setLocationAtPoint(C.renderWorldCopies?Qa.wrap():Qa,ot),S._fireMoveEvents(g)},function(){return S._afterEase(g)},p),this},v.prototype.isEasing=function(){return!!this._easeFrameId},v.prototype.stop=function(){return this._stop()},v.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},v.prototype._ease=function(p,g,S){S.animate===!1||S.duration===0?(p(1),g()):(this._easeStart=y.browser.now(),this._easeOptions=S,this._onEaseFrame=p,this._onEaseEnd=g,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},v.prototype._renderFrameCallback=function(){var p=Math.min((y.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(p)),p<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},v.prototype._normalizeBearing=function(p,g){p=y.wrap(p,-180,180);var S=Math.abs(p-g);return Math.abs(p-360-g)180?-360:S<-180?360:0}},v}(y.Evented),ss=function(h){h===void 0&&(h={}),this.options=h,y.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};ss.prototype.getDefaultPosition=function(){return"bottom-right"},ss.prototype.onAdd=function(h){var v=this.options&&this.options.compact;return this._map=h,this._container=Z.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=Z.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=Z.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),v&&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),v===void 0&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},ss.prototype.onRemove=function(){Z.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},ss.prototype._setElementTitle=function(h,v){var p=this._map._getUIString("AttributionControl."+v);h.title=p,h.setAttribute("aria-label",p)},ss.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"))},ss.prototype._updateEditLink=function(){var h=this._editLink;h||(h=this._editLink=this._container.querySelector(".mapbox-improve-map"));var v=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||y.config.ACCESS_TOKEN}];if(h){var p=v.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)}},ss.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var xu=function(){y.bindAll(["_updateLogo"],this),y.bindAll(["_updateCompact"],this)};xu.prototype.onAdd=function(h){this._map=h,this._container=Z.create("div","mapboxgl-ctrl");var v=Z.create("a","mapboxgl-ctrl-logo");return v.target="_blank",v.rel="noopener nofollow",v.href="https://www.mapbox.com/",v.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),v.setAttribute("rel","noopener nofollow"),this._container.appendChild(v),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},xu.prototype.onRemove=function(){Z.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},xu.prototype.getDefaultPosition=function(){return"bottom-left"},xu.prototype._updateLogo=function(h){h&&h.sourceDataType!=="metadata"||(this._container.style.display=this._logoRequired()?"block":"none")},xu.prototype._logoRequired=function(){if(this._map.style){var h=this._map.style.sourceCaches;for(var v in h)if(h[v].getSource().mapbox_logo)return!0;return!1}},xu.prototype._updateCompact=function(){var h=this._container.children;if(h.length){var v=h[0];this._map.getCanvasContainer().offsetWidth<250?v.classList.add("mapboxgl-compact"):v.classList.remove("mapboxgl-compact")}};var Ba=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};Ba.prototype.add=function(h){var v=++this._id;return this._queue.push({callback:h,id:v,cancelled:!1}),v},Ba.prototype.remove=function(h){for(var v=this._currentlyRunning,p=0,g=v?this._queue.concat(v):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 Bi(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 Ba,this._controls=[],this._mapId=y.uniqueId(),this._locale=y.extend({},tu,g.locale),this._clickTolerance=g.clickTolerance,this._requestManager=new y.RequestManager(g.transformRequest,g.accessToken),typeof g.container=="string"){if(this._container=y.window.document.getElementById(g.container),!this._container)throw new Error("Container '"+g.container+"' not found.")}else{if(!(g.container instanceof Eu))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=g.container}if(g.maxBounds&&this.setMaxBounds(g.maxBounds),y.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)}),y.window!==void 0&&(y.window.addEventListener("online",this._onWindowOnline,!1),y.window.addEventListener("resize",this._onWindowResize,!1),y.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new An(this,g),this._hash=g.hash&&new su(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,y.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 ss({customAttribution:g.customAttribution})),this.addControl(new xu,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 y.Event(C.dataType+"data",C))}),this.on("dataloading",function(C){S.fire(new y.Event(C.dataType+"dataloading",C))})}h&&(v.__proto__=h),(v.prototype=Object.create(h&&h.prototype)).constructor=v;var p={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return v.prototype._getMapId=function(){return this._mapId},v.prototype.addControl=function(g,S){if(S===void 0&&(S=g.getDefaultPosition?g.getDefaultPosition():"top-right"),!g||!g.onAdd)return this.fire(new y.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},v.prototype.removeControl=function(g){if(!g||!g.onRemove)return this.fire(new y.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},v.prototype.hasControl=function(g){return this._controls.indexOf(g)>-1},v.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 O=!this._moving;return O&&this.fire(new y.Event("movestart",g)).fire(new y.Event("move",g)),this.fire(new y.Event("resize",g)),O&&this.fire(new y.Event("moveend",g)),this},v.prototype.getBounds=function(){return this.transform.getBounds()},v.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},v.prototype.setMaxBounds=function(g){return this.transform.setMaxBounds(y.LngLatBounds.convert(g)),this._update()},v.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")},v.prototype.getMaxZoom=function(){return this.transform.maxZoom},v.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")},v.prototype.getMaxPitch=function(){return this.transform.maxPitch},v.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},v.prototype.setRenderWorldCopies=function(g){return this.transform.renderWorldCopies=g,this._update()},v.prototype.project=function(g){return this.transform.locationPoint(y.LngLat.convert(g))},v.prototype.unproject=function(g){return this.transform.pointLocation(y.Point.convert(g))},v.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},v.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},v.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},v.prototype._createDelegatedListener=function(g,S,w){var C,O=this;if(g==="mouseenter"||g==="mouseover"){var X=!1;return{layer:S,listener:w,delegates:{mousemove:function(me){var be=O.getLayer(S)?O.queryRenderedFeatures(me.point,{layers:[S]}):[];be.length?X||(X=!0,w.call(O,new Ha(g,O,me.originalEvent,{features:be}))):X=!1},mouseout:function(){X=!1}}}}if(g==="mouseleave"||g==="mouseout"){var J=!1;return{layer:S,listener:w,delegates:{mousemove:function(me){(O.getLayer(S)?O.queryRenderedFeatures(me.point,{layers:[S]}):[]).length?J=!0:J&&(J=!1,w.call(O,new Ha(g,O,me.originalEvent)))},mouseout:function(me){J&&(J=!1,w.call(O,new Ha(g,O,me.originalEvent)))}}}}return{layer:S,listener:w,delegates:(C={},C[g]=function(me){var be=O.getLayer(S)?O.queryRenderedFeatures(me.point,{layers:[S]}):[];be.length&&(me.features=be,w.call(O,me),delete me.features)},C)}},v.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 O in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[g]=this._delegatedListeners[g]||[],this._delegatedListeners[g].push(C),C.delegates)this.on(O,C.delegates[O]);return this},v.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 O in C.delegates)this.once(O,C.delegates[O]);return this},v.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(O){for(var X=O[g],J=0;J180;){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}xs.prototype.down=function(h,v){this.mouseRotate.mousedown(h,v),this.mousePitch&&this.mousePitch.mousedown(h,v),Z.disableDrag()},xs.prototype.move=function(h,v){var p=this.map,g=this.mouseRotate.mousemoveWindow(h,v);if(g&&g.bearingDelta&&p.setBearing(p.getBearing()+g.bearingDelta),this.mousePitch){var S=this.mousePitch.mousemoveWindow(h,v);S&&S.pitchDelta&&p.setPitch(p.getPitch()+S.pitchDelta)}},xs.prototype.off=function(){var h=this.element;Z.removeEventListener(h,"mousedown",this.mousedown),Z.removeEventListener(h,"touchstart",this.touchstart,{passive:!1}),Z.removeEventListener(h,"touchmove",this.touchmove),Z.removeEventListener(h,"touchend",this.touchend),Z.removeEventListener(h,"touchcancel",this.reset),this.offTemp()},xs.prototype.offTemp=function(){Z.enableDrag(),Z.removeEventListener(y.window,"mousemove",this.mousemove),Z.removeEventListener(y.window,"mouseup",this.mouseup)},xs.prototype.mousedown=function(h){this.down(y.extend({},h,{ctrlKey:!0,preventDefault:function(){return h.preventDefault()}}),Z.mousePos(this.element,h)),Z.addEventListener(y.window,"mousemove",this.mousemove),Z.addEventListener(y.window,"mouseup",this.mouseup)},xs.prototype.mousemove=function(h){this.move(h,Z.mousePos(this.element,h))},xs.prototype.mouseup=function(h){this.mouseRotate.mouseupWindow(h),this.mousePitch&&this.mousePitch.mouseupWindow(h),this.offTemp()},xs.prototype.touchstart=function(h){h.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=Z.touchPos(this.element,h.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return h.preventDefault()}},this._startPos))},xs.prototype.touchmove=function(h){h.targetTouches.length!==1?this.reset():(this._lastPos=Z.touchPos(this.element,h.targetTouches)[0],this.move({preventDefault:function(){return h.preventDefault()}},this._lastPos))},xs.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 y.Event("dragstart"))),this.fire(new y.Event("drag")))},v.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 y.Event("dragend")),this._state="inactive"},v.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))},v.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},v.prototype.isDraggable=function(){return this._draggable},v.prototype.setRotation=function(p){return this._rotation=p||0,this._update(),this},v.prototype.getRotation=function(){return this._rotation},v.prototype.setRotationAlignment=function(p){return this._rotationAlignment=p||"auto",this._update(),this},v.prototype.getRotationAlignment=function(){return this._rotationAlignment},v.prototype.setPitchAlignment=function(p){return this._pitchAlignment=p&&p!=="auto"?p:this._rotationAlignment,this._update(),this},v.prototype.getPitchAlignment=function(){return this._pitchAlignment},v}(y.Evented),Vf={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},tc=0,rc=!1,Ah=function(h){function v(p){h.call(this),this.options=y.extend({},Vf,p),y.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return h&&(v.__proto__=h),(v.prototype=Object.create(h&&h.prototype)).constructor=v,v.prototype.onAdd=function(p){var g;return this._map=p,this._container=Z.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),g=this._setupUI,Rc!==void 0?g(Rc):y.window.navigator.permissions!==void 0?y.window.navigator.permissions.query({name:"geolocation"}).then(function(S){g(Rc=S.state!=="denied")}):g(Rc=!!y.window.navigator.geolocation),this._container},v.prototype.onRemove=function(){this._geolocationWatchID!==void 0&&(y.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),Z.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,tc=0,rc=!1},v.prototype._isOutOfMapMaxBounds=function(p){var g=this._map.getMaxBounds(),S=p.coords;return g&&(S.longitudeg.getEast()||S.latitudeg.getNorth())},v.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")}},v.prototype._onSuccess=function(p){if(this._map){if(this._isOutOfMapMaxBounds(p))return this._setErrorState(),this.fire(new y.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 y.Event("geolocate",p)),this._finish()}},v.prototype._updateCamera=function(p){var g=new y.LngLat(p.coords.longitude,p.coords.latitude),S=p.coords.accuracy,w=this._map.getBearing(),C=y.extend({bearing:w},this.options.fitBoundsOptions);this._map.fitBounds(g.toBounds(S),C,{geolocateSource:!0})},v.prototype._updateMarker=function(p){if(p){var g=new y.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()},v.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"},v.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},v.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&&rc)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new y.Event("error",p)),this._finish()}},v.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},v.prototype._setupUI=function(p){var g=this;if(this._container.addEventListener("contextmenu",function(C){return C.preventDefault()}),this._geolocateButton=Z.create("button","mapboxgl-ctrl-geolocate",this._container),Z.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",p===!1){y.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=Z.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new sf(this._dotElement),this._circleElement=Z.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new sf({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 y.Event("trackuserlocationend")))})},v.prototype.trigger=function(){if(!this._setup)return y.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 y.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":tc--,rc=!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 y.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 y.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"),++tc>1?(p={maximumAge:6e5,timeout:0},rc=!0):(p=this.options.positionOptions,rc=!1),this._geolocationWatchID=y.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,p)}}else y.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},v.prototype._clearWatch=function(){y.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)},v}(y.Evented),us={maxWidth:100,unit:"metric"},Au=function(h){this.options=y.extend({},us,h),y.bindAll(["_onMove","setUnit"],this)};function uf(h,v,p){var g=p&&p.maxWidth||100,S=h._container.clientHeight/2,w=h.unproject([0,S]),C=h.unproject([g,S]),O=w.distanceTo(C);if(p&&p.unit==="imperial"){var X=3.2808*O;X>5280?kl(v,g,X/5280,h._getUIString("ScaleControl.Miles")):kl(v,g,X,h._getUIString("ScaleControl.Feet"))}else p&&p.unit==="nautical"?kl(v,g,O/1852,h._getUIString("ScaleControl.NauticalMiles")):O>=1e3?kl(v,g,O/1e3,h._getUIString("ScaleControl.Kilometers")):kl(v,g,O,h._getUIString("ScaleControl.Meters"))}function kl(h,v,p,g){var S,w,C,O=(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(X){var J=Math.pow(10,Math.ceil(-Math.log(X)/Math.LN10));return Math.round(X*J)/J}(C)));h.style.width=v*(O/p)+"px",h.innerHTML=O+" "+g}Au.prototype.getDefaultPosition=function(){return"bottom-left"},Au.prototype._onMove=function(){uf(this._map,this._container,this.options)},Au.prototype.onAdd=function(h){return this._map=h,this._container=Z.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",h.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Au.prototype.onRemove=function(){Z.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Au.prototype.setUnit=function(h){this.options.unit=h,uf(this._map,this._container,this.options)};var uu=function(h){this._fullscreen=!1,h&&h.container&&(h.container instanceof y.window.HTMLElement?this._container=h.container:y.warnOnce("Full screen control 'container' must be a DOM element.")),y.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in y.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in y.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in y.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in y.window.document&&(this._fullscreenchange="MSFullscreenChange")};uu.prototype.onAdd=function(h){return this._map=h,this._container||(this._container=this._map.getContainer()),this._controlContainer=Z.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",y.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},uu.prototype.onRemove=function(){Z.remove(this._controlContainer),this._map=null,y.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},uu.prototype._checkFullscreenSupport=function(){return!!(y.window.document.fullscreenEnabled||y.window.document.mozFullScreenEnabled||y.window.document.msFullscreenEnabled||y.window.document.webkitFullscreenEnabled)},uu.prototype._setupUI=function(){var h=this._fullscreenButton=Z.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);Z.create("span","mapboxgl-ctrl-icon",h).setAttribute("aria-hidden",!0),h.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),y.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},uu.prototype._updateTitle=function(){var h=this._getTitle();this._fullscreenButton.setAttribute("aria-label",h),this._fullscreenButton.title=h},uu.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},uu.prototype._isFullscreen=function(){return this._fullscreen},uu.prototype._changeIcon=function(){(y.window.document.fullscreenElement||y.window.document.mozFullScreenElement||y.window.document.webkitFullscreenElement||y.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())},uu.prototype._onClickFullscreen=function(){this._isFullscreen()?y.window.document.exitFullscreen?y.window.document.exitFullscreen():y.window.document.mozCancelFullScreen?y.window.document.mozCancelFullScreen():y.window.document.msExitFullscreen?y.window.document.msExitFullscreen():y.window.document.webkitCancelFullScreen&&y.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 Th={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},ju=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),jf=function(h){function v(p){h.call(this),this.options=y.extend(Object.create(Th),p),y.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return h&&(v.__proto__=h),(v.prototype=Object.create(h&&h.prototype)).constructor=v,v.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 y.Event("open")),this},v.prototype.isOpen=function(){return!!this._map},v.prototype.remove=function(){return this._content&&Z.remove(this._content),this._container&&(Z.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new y.Event("close")),this},v.prototype.getLngLat=function(){return this._lngLat},v.prototype.setLngLat=function(p){return this._lngLat=y.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},v.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},v.prototype.getElement=function(){return this._container},v.prototype.setText=function(p){return this.setDOMContent(y.window.document.createTextNode(p))},v.prototype.setHTML=function(p){var g,S=y.window.document.createDocumentFragment(),w=y.window.document.createElement("body");for(w.innerHTML=p;g=w.firstChild;)S.appendChild(g);return this.setDOMContent(S)},v.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},v.prototype.setMaxWidth=function(p){return this.options.maxWidth=p,this._update(),this},v.prototype.setDOMContent=function(p){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=Z.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(p),this._createCloseButton(),this._update(),this._focusFirstElement(),this},v.prototype.addClassName=function(p){this._container&&this._container.classList.add(p)},v.prototype.removeClassName=function(p){this._container&&this._container.classList.remove(p)},v.prototype.setOffset=function(p){return this.options.offset=p,this._update(),this},v.prototype.toggleClassName=function(p){if(this._container)return this._container.classList.toggle(p)},v.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=Z.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},v.prototype._onMouseUp=function(p){this._update(p.point)},v.prototype._onMouseMove=function(p){this._update(p.point)},v.prototype._onDrag=function(p){this._update(p.point)},v.prototype._update=function(p){var g=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=Z.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=Z.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach(function(be){return g._container.classList.add(be)}),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=ec(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 be(Te){if(Te){if(typeof Te=="number"){var je=Math.round(Math.sqrt(.5*Math.pow(Te,2)));return{center:new y.Point(0,0),top:new y.Point(0,Te),"top-left":new y.Point(je,je),"top-right":new y.Point(-je,je),bottom:new y.Point(0,-Te),"bottom-left":new y.Point(je,-je),"bottom-right":new y.Point(-je,-je),left:new y.Point(Te,0),right:new y.Point(-Te,0)}}if(Te instanceof y.Point||Array.isArray(Te)){var Ze=y.Point.convert(Te);return{center:Ze,top:Ze,"top-left":Ze,"top-right":Ze,bottom:Ze,"bottom-left":Ze,"bottom-right":Ze,left:Ze,right:Ze}}return{center:y.Point.convert(Te.center||[0,0]),top:y.Point.convert(Te.top||[0,0]),"top-left":y.Point.convert(Te["top-left"]||[0,0]),"top-right":y.Point.convert(Te["top-right"]||[0,0]),bottom:y.Point.convert(Te.bottom||[0,0]),"bottom-left":y.Point.convert(Te["bottom-left"]||[0,0]),"bottom-right":y.Point.convert(Te["bottom-right"]||[0,0]),left:y.Point.convert(Te.left||[0,0]),right:y.Point.convert(Te.right||[0,0])}}return be(new y.Point(0,0))}(this.options.offset);if(!w){var O,X=this._container.offsetWidth,J=this._container.offsetHeight;O=S.y+C.bottom.ythis._map.transform.height-J?["bottom"]:[],S.xthis._map.transform.width-X/2&&O.push("right"),w=O.length===0?"bottom":O.join("-")}var me=S.add(C[w]).round();Z.setTransform(this._container,Su[w]+" translate("+me.x+"px,"+me.y+"px)"),Zf(this._container,w,"popup")}},v.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var p=this._container.querySelector(ju);p&&p.focus()}},v.prototype._onClose=function(){this.remove()},v}(y.Evented),wh={version:y.version,supported:he,setRTLTextPlugin:y.setRTLTextPlugin,getRTLTextPluginStatus:y.getRTLTextPluginStatus,Map:Sh,NavigationControl:cl,GeolocateControl:Ah,AttributionControl:ss,ScaleControl:Au,FullscreenControl:uu,Popup:jf,Marker:sf,Style:Bs,LngLat:y.LngLat,LngLatBounds:y.LngLatBounds,Point:y.Point,MercatorCoordinate:y.MercatorCoordinate,Evented:y.Evented,config:y.config,prewarm:function(){tr().acquire($t)},clearPrewarmedResources:function(){var h=nn;h&&(h.isPreloaded()&&h.numActive()===1?(h.release($t),nn=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 y.config.ACCESS_TOKEN},set accessToken(h){y.config.ACCESS_TOKEN=h},get baseApiUrl(){return y.config.API_URL},set baseApiUrl(h){y.config.API_URL=h},get workerCount(){return yr.workerCount},set workerCount(h){yr.workerCount=h},get maxParallelImageRequests(){return y.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(h){y.config.MAX_PARALLEL_IMAGE_REQUESTS=h},clearStorage:function(h){y.clearTileCache(h)},workerUrl:""};return wh}),te})},63713:function(sr,ne,U){"use strict";sr.exports=ye;var te=U(30551);function ye(oe){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(oe)?oe:new Uint8Array(oe||0),this.pos=0,this.type=0,this.length=this.buf.length}ye.Varint=0,ye.Fixed64=1,ye.Bytes=2,ye.Fixed32=5;var y=65536*65536,he=1/y,Z=12,pe=typeof TextDecoder=="undefined"?null:new TextDecoder("utf8");ye.prototype={destroy:function(){this.buf=null},readFields:function(oe,H,re){for(re=re||this.length;this.pos>3,ut=this.pos;this.type=Be&7,oe(we,H,this),this.pos===ut&&this.skip(Be)}return H},readMessage:function(oe,H){return this.readFields(oe,H,this.readVarint()+this.pos)},readFixed32:function(){var oe=Mt(this.buf,this.pos);return this.pos+=4,oe},readSFixed32:function(){var oe=kt(this.buf,this.pos);return this.pos+=4,oe},readFixed64:function(){var oe=Mt(this.buf,this.pos)+Mt(this.buf,this.pos+4)*y;return this.pos+=8,oe},readSFixed64:function(){var oe=Mt(this.buf,this.pos)+kt(this.buf,this.pos+4)*y;return this.pos+=8,oe},readFloat:function(){var oe=te.read(this.buf,this.pos,!0,23,4);return this.pos+=4,oe},readDouble:function(){var oe=te.read(this.buf,this.pos,!0,52,8);return this.pos+=8,oe},readVarint:function(oe){var H=this.buf,re,Be;return Be=H[this.pos++],re=Be&127,Be<128||(Be=H[this.pos++],re|=(Be&127)<<7,Be<128)||(Be=H[this.pos++],re|=(Be&127)<<14,Be<128)||(Be=H[this.pos++],re|=(Be&127)<<21,Be<128)?re:(Be=H[this.pos],re|=(Be&15)<<28,fe(re,oe,this))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var oe=this.readVarint();return oe%2===1?(oe+1)/-2:oe/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var oe=this.readVarint()+this.pos,H=this.pos;return this.pos=oe,oe-H>=Z&&pe?Dt(this.buf,H,oe):qe(this.buf,H,oe)},readBytes:function(){var oe=this.readVarint()+this.pos,H=this.buf.subarray(this.pos,oe);return this.pos=oe,H},readPackedVarint:function(oe,H){if(this.type!==ye.Bytes)return oe.push(this.readVarint(H));var re=it(this);for(oe=oe||[];this.pos127;);else if(H===ye.Bytes)this.pos=this.readVarint()+this.pos;else if(H===ye.Fixed32)this.pos+=4;else if(H===ye.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+H)},writeTag:function(oe,H){this.writeVarint(oe<<3|H)},realloc:function(oe){for(var H=this.length||16;H268435455||oe<0){rt(oe,this);return}this.realloc(4),this.buf[this.pos++]=oe&127|(oe>127?128:0),!(oe<=127)&&(this.buf[this.pos++]=(oe>>>=7)&127|(oe>127?128:0),!(oe<=127)&&(this.buf[this.pos++]=(oe>>>=7)&127|(oe>127?128:0),!(oe<=127)&&(this.buf[this.pos++]=oe>>>7&127)))},writeSVarint:function(oe){this.writeVarint(oe<0?-oe*2-1:oe*2)},writeBoolean:function(oe){this.writeVarint(!!oe)},writeString:function(oe){oe=String(oe),this.realloc(oe.length*4),this.pos++;var H=this.pos;this.pos=dr(this.buf,oe,this.pos);var re=this.pos-H;re>=128&&Ot(H,re,this),this.pos=H-1,this.writeVarint(re),this.pos+=re},writeFloat:function(oe){this.realloc(4),te.write(this.buf,oe,this.pos,!0,23,4),this.pos+=4},writeDouble:function(oe){this.realloc(8),te.write(this.buf,oe,this.pos,!0,52,8),this.pos+=8},writeBytes:function(oe){var H=oe.length;this.writeVarint(H),this.realloc(H);for(var re=0;re=128&&Ot(re,Be,this),this.pos=re-1,this.writeVarint(Be),this.pos+=Be},writeMessage:function(oe,H,re){this.writeTag(oe,ye.Bytes),this.writeRawMessage(H,re)},writePackedVarint:function(oe,H){H.length&&this.writeMessage(oe,Xt,H)},writePackedSVarint:function(oe,H){H.length&&this.writeMessage(oe,Yt,H)},writePackedBoolean:function(oe,H){H.length&&this.writeMessage(oe,bt,H)},writePackedFloat:function(oe,H){H.length&&this.writeMessage(oe,ar,H)},writePackedDouble:function(oe,H){H.length&&this.writeMessage(oe,Zt,H)},writePackedFixed32:function(oe,H){H.length&&this.writeMessage(oe,St,H)},writePackedSFixed32:function(oe,H){H.length&&this.writeMessage(oe,Rr,H)},writePackedFixed64:function(oe,H){H.length&&this.writeMessage(oe,gr,H)},writePackedSFixed64:function(oe,H){H.length&&this.writeMessage(oe,fr,H)},writeBytesField:function(oe,H){this.writeTag(oe,ye.Bytes),this.writeBytes(H)},writeFixed32Field:function(oe,H){this.writeTag(oe,ye.Fixed32),this.writeFixed32(H)},writeSFixed32Field:function(oe,H){this.writeTag(oe,ye.Fixed32),this.writeSFixed32(H)},writeFixed64Field:function(oe,H){this.writeTag(oe,ye.Fixed64),this.writeFixed64(H)},writeSFixed64Field:function(oe,H){this.writeTag(oe,ye.Fixed64),this.writeSFixed64(H)},writeVarintField:function(oe,H){this.writeTag(oe,ye.Varint),this.writeVarint(H)},writeSVarintField:function(oe,H){this.writeTag(oe,ye.Varint),this.writeSVarint(H)},writeStringField:function(oe,H){this.writeTag(oe,ye.Bytes),this.writeString(H)},writeFloatField:function(oe,H){this.writeTag(oe,ye.Fixed32),this.writeFloat(H)},writeDoubleField:function(oe,H){this.writeTag(oe,ye.Fixed64),this.writeDouble(H)},writeBooleanField:function(oe,H){this.writeVarintField(oe,!!H)}};function fe(oe,H,re){var Be=re.buf,we,ut;if(ut=Be[re.pos++],we=(ut&112)>>4,ut<128||(ut=Be[re.pos++],we|=(ut&127)<<3,ut<128)||(ut=Be[re.pos++],we|=(ut&127)<<10,ut<128)||(ut=Be[re.pos++],we|=(ut&127)<<17,ut<128)||(ut=Be[re.pos++],we|=(ut&127)<<24,ut<128)||(ut=Be[re.pos++],we|=(ut&1)<<31,ut<128))return ce(oe,we,H);throw new Error("Expected varint not more than 10 bytes")}function it(oe){return oe.type===ye.Bytes?oe.readVarint()+oe.pos:oe.pos+1}function ce(oe,H,re){return re?H*4294967296+(oe>>>0):(H>>>0)*4294967296+(oe>>>0)}function rt(oe,H){var re,Be;if(oe>=0?(re=oe%4294967296|0,Be=oe/4294967296|0):(re=~(-oe%4294967296),Be=~(-oe/4294967296),re^4294967295?re=re+1|0:(re=0,Be=Be+1|0)),oe>=18446744073709552e3||oe<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");H.realloc(10),vt(re,Be,H),tt(Be,H)}function vt(oe,H,re){re.buf[re.pos++]=oe&127|128,oe>>>=7,re.buf[re.pos++]=oe&127|128,oe>>>=7,re.buf[re.pos++]=oe&127|128,oe>>>=7,re.buf[re.pos++]=oe&127|128,oe>>>=7,re.buf[re.pos]=oe&127}function tt(oe,H){var re=(oe&7)<<4;H.buf[H.pos++]|=re|((oe>>>=3)?128:0),oe&&(H.buf[H.pos++]=oe&127|((oe>>>=7)?128:0),oe&&(H.buf[H.pos++]=oe&127|((oe>>>=7)?128:0),oe&&(H.buf[H.pos++]=oe&127|((oe>>>=7)?128:0),oe&&(H.buf[H.pos++]=oe&127|((oe>>>=7)?128:0),oe&&(H.buf[H.pos++]=oe&127)))))}function Ot(oe,H,re){var Be=H<=16383?1:H<=2097151?2:H<=268435455?3:Math.floor(Math.log(H)/(Math.LN2*7));re.realloc(Be);for(var we=re.pos-1;we>=oe;we--)re.buf[we+Be]=re.buf[we]}function Xt(oe,H){for(var re=0;re>>8,oe[re+2]=H>>>16,oe[re+3]=H>>>24}function kt(oe,H){return(oe[H]|oe[H+1]<<8|oe[H+2]<<16)+(oe[H+3]<<24)}function qe(oe,H,re){for(var Be="",we=H;we239?4:ut>223?3:ut>191?2:1;if(we+Le>re)break;var Pe,Ge,Vt;Le===1?ut<128&&(ie=ut):Le===2?(Pe=oe[we+1],(Pe&192)===128&&(ie=(ut&31)<<6|Pe&63,ie<=127&&(ie=null))):Le===3?(Pe=oe[we+1],Ge=oe[we+2],(Pe&192)===128&&(Ge&192)===128&&(ie=(ut&15)<<12|(Pe&63)<<6|Ge&63,(ie<=2047||ie>=55296&&ie<=57343)&&(ie=null))):Le===4&&(Pe=oe[we+1],Ge=oe[we+2],Vt=oe[we+3],(Pe&192)===128&&(Ge&192)===128&&(Vt&192)===128&&(ie=(ut&15)<<18|(Pe&63)<<12|(Ge&63)<<6|Vt&63,(ie<=65535||ie>=1114112)&&(ie=null))),ie===null?(ie=65533,Le=1):ie>65535&&(ie-=65536,Be+=String.fromCharCode(ie>>>10&1023|55296),ie=56320|ie&1023),Be+=String.fromCharCode(ie),we+=Le}return Be}function Dt(oe,H,re){return pe.decode(oe.subarray(H,re))}function dr(oe,H,re){for(var Be=0,we,ut;Be55295&&we<57344)if(ut)if(we<56320){oe[re++]=239,oe[re++]=191,oe[re++]=189,ut=we;continue}else we=ut-55296<<10|we-56320|65536,ut=null;else{we>56319||Be+1===H.length?(oe[re++]=239,oe[re++]=191,oe[re++]=189):ut=we;continue}else ut&&(oe[re++]=239,oe[re++]=191,oe[re++]=189,ut=null);we<128?oe[re++]=we:(we<2048?oe[re++]=we>>6|192:(we<65536?oe[re++]=we>>12|224:(oe[re++]=we>>18|240,oe[re++]=we>>12&63|128),oe[re++]=we>>6&63|128),oe[re++]=we&63|128)}return re}},41227:function(sr,ne,U){var te=U(14224);(function(ye,y){sr.exports=y()})(this,function(){"use strict";function ye(ue,k){var z={label:0,sent:function(){if(De[0]&1)throw De[1];return De[1]},trys:[],ops:[]},ae,Ee,De,zt;return zt={next:Tt(0),throw:Tt(1),return:Tt(2)},typeof Symbol=="function"&&(zt[Symbol.iterator]=function(){return this}),zt;function Tt(dt){return function(N){return Rt([dt,N])}}function Rt(dt){if(ae)throw new TypeError("Generator is already executing.");for(;z;)try{if(ae=1,Ee&&(De=dt[0]&2?Ee.return:dt[0]?Ee.throw||((De=Ee.return)&&De.call(Ee),0):Ee.next)&&!(De=De.call(Ee,dt[1])).done)return De;switch(Ee=0,De&&(dt=[dt[0]&2,De.value]),dt[0]){case 0:case 1:De=dt;break;case 4:return z.label++,{value:dt[1],done:!1};case 5:z.label++,Ee=dt[1],dt=[0];continue;case 7:dt=z.ops.pop(),z.trys.pop();continue;default:if(De=z.trys,!(De=De.length>0&&De[De.length-1])&&(dt[0]===6||dt[0]===2)){z=0;continue}if(dt[0]===3&&(!De||dt[1]>De[0]&&dt[1]k?1:ue0){if(k.right===null)break;if(z(ue,k.right.key)>0){var Tt=k.right;if(k.right=Tt.left,Tt.left=k,k=Tt,k.right===null)break}Ee.right=k,Ee=k,k=k.right}else break}return Ee.right=k.left,De.left=k.right,k.left=ae.right,k.right=ae.left,k}function pe(ue,k,z,ae){var Ee=new y(ue,k);if(z===null)return Ee.left=Ee.right=null,Ee;z=Z(ue,z,ae);var De=ae(ue,z.key);return De<0?(Ee.left=z.left,Ee.right=z,z.left=null):De>=0&&(Ee.right=z.right,Ee.left=z,z.right=null),Ee}function fe(ue,k,z){var ae=null,Ee=null;if(k){k=Z(ue,k,z);var De=z(k.key,ue);De===0?(ae=k.left,Ee=k.right):De<0?(Ee=k.right,k.right=null,ae=k):(ae=k.left,k.left=null,Ee=k)}return{left:ae,right:Ee}}function it(ue,k,z){return k===null?ue:(ue===null||(k=Z(ue.key,k,z),k.left=ue),k)}function ce(ue,k,z,ae,Ee){if(ue){ae(""+k+(z?"\u2514\u2500\u2500 ":"\u251C\u2500\u2500 ")+Ee(ue)+` +`);var De=k+(z?" ":"\u2502 ");ue.left&&ce(ue.left,De,!1,ae,Ee),ue.right&&ce(ue.right,De,!0,ae,Ee)}}var rt=function(){function ue(k){k===void 0&&(k=he),this._root=null,this._size=0,this._comparator=k}return ue.prototype.insert=function(k,z){return this._size++,this._root=pe(k,z,this._root,this._comparator)},ue.prototype.add=function(k,z){var ae=new y(k,z);this._root===null&&(ae.left=ae.right=null,this._size++,this._root=ae);var Ee=this._comparator,De=Z(k,this._root,Ee),zt=Ee(k,De.key);return zt===0?this._root=De:(zt<0?(ae.left=De.left,ae.right=De,De.left=null):zt>0&&(ae.right=De.right,ae.left=De,De.right=null),this._size++,this._root=ae),this._root},ue.prototype.remove=function(k){this._root=this._remove(k,this._root,this._comparator)},ue.prototype._remove=function(k,z,ae){var Ee;if(z===null)return null;z=Z(k,z,ae);var De=ae(k,z.key);return De===0?(z.left===null?Ee=z.right:(Ee=Z(k,z.left,ae),Ee.right=z.right),this._size--,Ee):z},ue.prototype.pop=function(){var k=this._root;if(k){for(;k.left;)k=k.left;return this._root=Z(k.key,this._root,this._comparator),this._root=this._remove(k.key,this._root,this._comparator),{key:k.key,data:k.data}}return null},ue.prototype.findStatic=function(k){for(var z=this._root,ae=this._comparator;z;){var Ee=ae(k,z.key);if(Ee===0)return z;Ee<0?z=z.left:z=z.right}return null},ue.prototype.find=function(k){return this._root&&(this._root=Z(k,this._root,this._comparator),this._comparator(k,this._root.key)!==0)?null:this._root},ue.prototype.contains=function(k){for(var z=this._root,ae=this._comparator;z;){var Ee=ae(k,z.key);if(Ee===0)return!0;Ee<0?z=z.left:z=z.right}return!1},ue.prototype.forEach=function(k,z){for(var ae=this._root,Ee=[],De=!1;!De;)ae!==null?(Ee.push(ae),ae=ae.left):Ee.length!==0?(ae=Ee.pop(),k.call(z,ae),ae=ae.right):De=!0;return this},ue.prototype.range=function(k,z,ae,Ee){for(var De=[],zt=this._comparator,Tt=this._root,Rt;De.length!==0||Tt;)if(Tt)De.push(Tt),Tt=Tt.left;else{if(Tt=De.pop(),Rt=zt(Tt.key,z),Rt>0)break;if(zt(Tt.key,k)>=0&&ae.call(Ee,Tt))return this;Tt=Tt.right}return this},ue.prototype.keys=function(){var k=[];return this.forEach(function(z){var ae=z.key;return k.push(ae)}),k},ue.prototype.values=function(){var k=[];return this.forEach(function(z){var ae=z.data;return k.push(ae)}),k},ue.prototype.min=function(){return this._root?this.minNode(this._root).key:null},ue.prototype.max=function(){return this._root?this.maxNode(this._root).key:null},ue.prototype.minNode=function(k){if(k===void 0&&(k=this._root),k)for(;k.left;)k=k.left;return k},ue.prototype.maxNode=function(k){if(k===void 0&&(k=this._root),k)for(;k.right;)k=k.right;return k},ue.prototype.at=function(k){for(var z=this._root,ae=!1,Ee=0,De=[];!ae;)if(z)De.push(z),z=z.left;else if(De.length>0){if(z=De.pop(),Ee===k)return z;Ee++,z=z.right}else ae=!0;return null},ue.prototype.next=function(k){var z=this._root,ae=null;if(k.right){for(ae=k.right;ae.left;)ae=ae.left;return ae}for(var Ee=this._comparator;z;){var De=Ee(k.key,z.key);if(De===0)break;De<0?(ae=z,z=z.left):z=z.right}return ae},ue.prototype.prev=function(k){var z=this._root,ae=null;if(k.left!==null){for(ae=k.left;ae.right;)ae=ae.right;return ae}for(var Ee=this._comparator;z;){var De=Ee(k.key,z.key);if(De===0)break;De<0?z=z.left:(ae=z,z=z.right)}return ae},ue.prototype.clear=function(){return this._root=null,this._size=0,this},ue.prototype.toList=function(){return Ot(this._root)},ue.prototype.load=function(k,z,ae){z===void 0&&(z=[]),ae===void 0&&(ae=!1);var Ee=k.length,De=this._comparator;if(ae&&ar(k,z,0,Ee-1,De),this._root===null)this._root=vt(k,z,0,Ee),this._size=Ee;else{var zt=Yt(this.toList(),tt(k,z),De);Ee=this._size+Ee,this._root=Xt({head:zt},0,Ee)}return this},ue.prototype.isEmpty=function(){return this._root===null},Object.defineProperty(ue.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),Object.defineProperty(ue.prototype,"root",{get:function(){return this._root},enumerable:!0,configurable:!0}),ue.prototype.toString=function(k){k===void 0&&(k=function(ae){return String(ae.key)});var z=[];return ce(this._root,"",!0,function(ae){return z.push(ae)},k),z.join("")},ue.prototype.update=function(k,z,ae){var Ee=this._comparator,De=fe(k,this._root,Ee),zt=De.left,Tt=De.right;Ee(k,z)<0?Tt=pe(z,ae,Tt,Ee):zt=pe(z,ae,zt,Ee),this._root=it(zt,Tt,Ee)},ue.prototype.split=function(k){return fe(k,this._root,this._comparator)},ue.prototype[Symbol.iterator]=function(){var k,z,ae;return ye(this,function(Ee){switch(Ee.label){case 0:k=this._root,z=[],ae=!1,Ee.label=1;case 1:return ae?[3,6]:k===null?[3,2]:(z.push(k),k=k.left,[3,5]);case 2:return z.length===0?[3,4]:(k=z.pop(),[4,k]);case 3:return Ee.sent(),k=k.right,[3,5];case 4:ae=!0,Ee.label=5;case 5:return[3,1];case 6:return[2]}})},ue}();function vt(ue,k,z,ae){var Ee=ae-z;if(Ee>0){var De=z+Math.floor(Ee/2),zt=ue[De],Tt=k[De],Rt=new y(zt,Tt);return Rt.left=vt(ue,k,z,De),Rt.right=vt(ue,k,De+1,ae),Rt}return null}function tt(ue,k){for(var z=new y(null,null),ae=z,Ee=0;Ee0?(k=De=De.next=z.pop(),k=k.right):ae=!0;return De.next=null,Ee.next}function Xt(ue,k,z){var ae=z-k;if(ae>0){var Ee=k+Math.floor(ae/2),De=Xt(ue,k,Ee),zt=ue.head;return zt.left=De,ue.head=ue.head.next,zt.right=Xt(ue,Ee+1,z),zt}return null}function Yt(ue,k,z){for(var ae=new y(null,null),Ee=ae,De=ue,zt=k;De!==null&&zt!==null;)z(De.key,zt.key)<0?(Ee.next=De,De=De.next):(Ee.next=zt,zt=zt.next),Ee=Ee.next;return De!==null?Ee.next=De:zt!==null&&(Ee.next=zt),ae.next}function ar(ue,k,z,ae,Ee){if(!(z>=ae)){for(var De=ue[z+ae>>1],zt=z-1,Tt=ae+1;;){do zt++;while(Ee(ue[zt],De)<0);do Tt--;while(Ee(ue[Tt],De)>0);if(zt>=Tt)break;var Rt=ue[zt];ue[zt]=ue[Tt],ue[Tt]=Rt,Rt=k[zt],k[zt]=k[Tt],k[Tt]=Rt}ar(ue,k,z,Tt,Ee),ar(ue,k,Tt+1,ae,Ee)}}const Zt=(ue,k)=>ue.ll.x<=k.x&&k.x<=ue.ur.x&&ue.ll.y<=k.y&&k.y<=ue.ur.y,bt=(ue,k)=>{if(k.ur.x{if(-Stdt==N>-dt?(De=dt,dt=k[++B]):(De=N,N=ae[++$]);let ee=0;if(Bdt==N>-dt?(zt=dt+De,Tt=De-(zt-dt),dt=k[++B]):(zt=N+De,Tt=De-(zt-N),N=ae[++$]),De=zt,Tt!==0&&(Ee[ee++]=Tt);Bdt==N>-dt?(zt=De+dt,Rt=zt-De,Tt=De-(zt-Rt)+(dt-Rt),dt=k[++B]):(zt=De+N,Rt=zt-De,Tt=De-(zt-Rt)+(N-Rt),N=ae[++$]),De=zt,Tt!==0&&(Ee[ee++]=Tt);for(;B=Jn||-jr>=Jn||(B=ue-Qr,Tt=ue-(Qr+B)+(B-Ee),B=z-tr,dt=z-(tr+B)+(B-Ee),B=k-Xr,Rt=k-(Xr+B)+(B-De),B=ae-zr,N=ae-(zr+B)+(B-De),Tt===0&&Rt===0&&dt===0&&N===0)||(Jn=we*zt+Dt*Math.abs(jr),jr+=Qr*N+zr*Tt-(Xr*dt+tr*Rt),jr>=Jn||-jr>=Jn))return jr;et=Tt*zr,$=qe*Tt,ee=$-($-Tt),xe=Tt-ee,$=qe*zr,Ue=$-($-zr),Qe=zr-Ue,Ae=xe*Qe-(et-ee*Ue-xe*Ue-ee*Qe),$t=Rt*tr,$=qe*Rt,ee=$-($-Rt),xe=Rt-ee,$=qe*tr,Ue=$-($-tr),Qe=tr-Ue,yr=xe*Qe-($t-ee*Ue-xe*Ue-ee*Qe),j=Ae-yr,B=Ae-j,Ge[0]=Ae-(j+B)+(B-yr),Q=et+j,B=Q-et,Fe=et-(Q-B)+(j-B),j=Fe-$t,B=Fe-j,Ge[1]=Fe-(j+B)+(B-$t),nn=Q+j,B=nn-Q,Ge[2]=Q-(nn-B)+(j-B),Ge[3]=nn;const ln=dr(4,ut,4,Ge,ie);et=Qr*N,$=qe*Qr,ee=$-($-Qr),xe=Qr-ee,$=qe*N,Ue=$-($-N),Qe=N-Ue,Ae=xe*Qe-(et-ee*Ue-xe*Ue-ee*Qe),$t=Xr*dt,$=qe*Xr,ee=$-($-Xr),xe=Xr-ee,$=qe*dt,Ue=$-($-dt),Qe=dt-Ue,yr=xe*Qe-($t-ee*Ue-xe*Ue-ee*Qe),j=Ae-yr,B=Ae-j,Ge[0]=Ae-(j+B)+(B-yr),Q=et+j,B=Q-et,Fe=et-(Q-B)+(j-B),j=Fe-$t,B=Fe-j,Ge[1]=Fe-(j+B)+(B-$t),nn=Q+j,B=nn-Q,Ge[2]=Q-(nn-B)+(j-B),Ge[3]=nn;const hi=dr(ln,ie,4,Ge,Le);et=Tt*N,$=qe*Tt,ee=$-($-Tt),xe=Tt-ee,$=qe*N,Ue=$-($-N),Qe=N-Ue,Ae=xe*Qe-(et-ee*Ue-xe*Ue-ee*Qe),$t=Rt*dt,$=qe*Rt,ee=$-($-Rt),xe=Rt-ee,$=qe*dt,Ue=$-($-dt),Qe=dt-Ue,yr=xe*Qe-($t-ee*Ue-xe*Ue-ee*Qe),j=Ae-yr,B=Ae-j,Ge[0]=Ae-(j+B)+(B-yr),Q=et+j,B=Q-et,Fe=et-(Q-B)+(j-B),j=Fe-$t,B=Fe-j,Ge[1]=Fe-(j+B)+(B-$t),nn=Q+j,B=nn-Q,Ge[2]=Q-(nn-B)+(j-B),Ge[3]=nn;const Vi=dr(hi,Le,4,Ge,Pe);return Pe[Vi-1]}function Et(ue,k,z,ae,Ee,De){const zt=(k-De)*(z-Ee),Tt=(ue-Ee)*(ae-De),Rt=zt-Tt,dt=Math.abs(zt+Tt);return Math.abs(Rt)>=re*dt?Rt:-Vt(ue,k,z,ae,Ee,De,dt)}const Jr=(ue,k)=>ue.x*k.y-ue.y*k.x,on=(ue,k)=>ue.x*k.x+ue.y*k.y,Mr=(ue,k,z)=>{const ae=Et(ue.x,ue.y,k.x,k.y,z.x,z.y);return ae>0?-1:ae<0?1:0},Dn=ue=>Math.sqrt(on(ue,ue)),bn=(ue,k,z)=>{const ae={x:k.x-ue.x,y:k.y-ue.y},Ee={x:z.x-ue.x,y:z.y-ue.y};return Jr(Ee,ae)/Dn(Ee)/Dn(ae)},rn=(ue,k,z)=>{const ae={x:k.x-ue.x,y:k.y-ue.y},Ee={x:z.x-ue.x,y:z.y-ue.y};return on(Ee,ae)/Dn(Ee)/Dn(ae)},yi=(ue,k,z)=>k.y===0?null:{x:ue.x+k.x/k.y*(z-ue.y),y:z},ti=(ue,k,z)=>k.x===0?null:{x:z,y:ue.y+k.y/k.x*(z-ue.x)},Zi=(ue,k,z,ae)=>{if(k.x===0)return ti(z,ae,ue.x);if(ae.x===0)return ti(ue,k,z.x);if(k.y===0)return yi(z,ae,ue.y);if(ae.y===0)return yi(ue,k,z.y);const Ee=Jr(k,ae);if(Ee==0)return null;const De={x:z.x-ue.x,y:z.y-ue.y},zt=Jr(De,k)/Ee,Tt=Jr(De,ae)/Ee,Rt=ue.x+Tt*k.x,dt=z.x+zt*ae.x,N=ue.y+Tt*k.y,B=z.y+zt*ae.y,$=(Rt+dt)/2,ee=(N+B)/2;return{x:$,y:ee}};class En{static compare(k,z){const ae=En.comparePoints(k.point,z.point);return ae!==0?ae:(k.point!==z.point&&k.link(z),k.isLeft!==z.isLeft?k.isLeft?1:-1:sa.compare(k.segment,z.segment))}static comparePoints(k,z){return k.xz.x?1:k.yz.y?1:0}constructor(k,z){k.events===void 0?k.events=[this]:k.events.push(this),this.point=k,this.isLeft=z}link(k){if(k.point===this.point)throw new Error("Tried to link already linked events");const z=k.point.events;for(let ae=0,Ee=z.length;ae{const De=Ee.otherSE;z.set(Ee,{sine:bn(this.point,k.point,De.point),cosine:rn(this.point,k.point,De.point)})};return(Ee,De)=>{z.has(Ee)||ae(Ee),z.has(De)||ae(De);const{sine:zt,cosine:Tt}=z.get(Ee),{sine:Rt,cosine:dt}=z.get(De);return zt>=0&&Rt>=0?Ttdt?-1:0:zt<0&&Rt<0?Ttdt?1:0:Rtzt?1:0}}}let Rn=0;class sa{static compare(k,z){const ae=k.leftSE.point.x,Ee=z.leftSE.point.x,De=k.rightSE.point.x,zt=z.rightSE.point.x;if(ztTt&&Rt>dt)return-1;const B=k.comparePoint(z.leftSE.point);if(B<0)return 1;if(B>0)return-1;const $=z.comparePoint(k.rightSE.point);return $!==0?$:-1}if(ae>Ee){if(TtRt&&Tt>N)return 1;const B=z.comparePoint(k.leftSE.point);if(B!==0)return B;const $=k.comparePoint(z.rightSE.point);return $<0?1:$>0?-1:1}if(TtRt)return 1;if(Dezt){const B=k.comparePoint(z.rightSE.point);if(B<0)return 1;if(B>0)return-1}if(De!==zt){const B=dt-Tt,$=De-ae,ee=N-Rt,xe=zt-Ee;if(B>$&&eexe)return-1}return De>zt?1:DeN?1:k.idz.id?1:0}constructor(k,z,ae,Ee){this.id=++Rn,this.leftSE=k,k.segment=this,k.otherSE=z,this.rightSE=z,z.segment=this,z.otherSE=k,this.rings=ae,this.windings=Ee}static fromRing(k,z,ae){let Ee,De,zt;const Tt=En.comparePoints(k,z);if(Tt<0)Ee=k,De=z,zt=1;else if(Tt>0)Ee=z,De=k,zt=-1;else throw new Error(`Tried to create degenerate segment at [${k.x}, ${k.y}]`);const Rt=new En(Ee,!0),dt=new En(De,!1);return new sa(Rt,dt,[ae],[zt])}replaceRightSE(k){this.rightSE=k,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}bbox(){const k=this.leftSE.point.y,z=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:kz?k:z}}}vector(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}isAnEndpoint(k){return k.x===this.leftSE.point.x&&k.y===this.leftSE.point.y||k.x===this.rightSE.point.x&&k.y===this.rightSE.point.y}comparePoint(k){if(this.isAnEndpoint(k))return 0;const z=this.leftSE.point,ae=this.rightSE.point,Ee=this.vector();if(z.x===ae.x)return k.x===z.x?0:k.x0&&Tt.swapEvents(),En.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),ae&&(Ee.checkForConsuming(),De.checkForConsuming()),z}swapEvents(){const k=this.rightSE;this.rightSE=this.leftSE,this.leftSE=k,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(let z=0,ae=this.windings.length;z0){const De=z;z=ae,ae=De}if(z.prev===ae){const De=z;z=ae,ae=De}for(let De=0,zt=ae.rings.length;DeEe.length===1&&Ee[0].isSubject;this._isInResult=ae(k)!==ae(z);break}default:throw new Error(`Unrecognized operation type found ${jt.type}`)}return this._isInResult}}class ki{constructor(k,z,ae){if(!Array.isArray(k)||k.length===0)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=z,this.isExterior=ae,this.segments=[],typeof k[0][0]!="number"||typeof k[0][1]!="number")throw new Error("Input geometry is not a valid Polygon or MultiPolygon");const Ee=ft.round(k[0][0],k[0][1]);this.bbox={ll:{x:Ee.x,y:Ee.y},ur:{x:Ee.x,y:Ee.y}};let De=Ee;for(let zt=1,Tt=k.length;ztthis.bbox.ur.x&&(this.bbox.ur.x=Rt.x),Rt.y>this.bbox.ur.y&&(this.bbox.ur.y=Rt.y),De=Rt)}(Ee.x!==De.x||Ee.y!==De.y)&&this.segments.push(sa.fromRing(De,Ee,this))}getSweepEvents(){const k=[];for(let z=0,ae=this.segments.length;zthis.bbox.ur.x&&(this.bbox.ur.x=De.bbox.ur.x),De.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=De.bbox.ur.y),this.interiorRings.push(De)}this.multiPoly=z}getSweepEvents(){const k=this.exteriorRing.getSweepEvents();for(let z=0,ae=this.interiorRings.length;zthis.bbox.ur.x&&(this.bbox.ur.x=De.bbox.ur.x),De.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=De.bbox.ur.y),this.polys.push(De)}this.isSubject=z}getSweepEvents(){const k=[];for(let z=0,ae=this.polys.length;z0&&(k=zt)}let z=k.segment.prevInResult(),ae=z?z.prevInResult():null;for(;;){if(!z)return null;if(!ae)return z.ringOut;if(ae.ringOut!==z.ringOut)return ae.ringOut.enclosingRing()!==z.ringOut?z.ringOut:z.ringOut.enclosingRing();z=ae.prevInResult(),ae=z?z.prevInResult():null}}}class Ea{constructor(k){this.exteriorRing=k,k.poly=this,this.interiorRings=[]}addInterior(k){this.interiorRings.push(k),k.poly=this}getGeom(){const k=[this.exteriorRing.getGeom()];if(k[0]===null)return null;for(let z=0,ae=this.interiorRings.length;z1&&arguments[1]!==void 0?arguments[1]:sa.compare;this.queue=k,this.tree=new rt(z),this.segments=[]}process(k){const z=k.segment,ae=[];if(k.consumedBy)return k.isLeft?this.queue.remove(k.otherSE):this.tree.remove(z),ae;const Ee=k.isLeft?this.tree.add(z):this.tree.find(z);if(!Ee)throw new Error(`Unable to find segment #${z.id} [${z.leftSE.point.x}, ${z.leftSE.point.y}] -> [${z.rightSE.point.x}, ${z.rightSE.point.y}] in SweepLine tree.`);let De=Ee,zt=Ee,Tt,Rt;for(;Tt===void 0;)De=this.tree.prev(De),De===null?Tt=null:De.key.consumedBy===void 0&&(Tt=De.key);for(;Rt===void 0;)zt=this.tree.next(zt),zt===null?Rt=null:zt.key.consumedBy===void 0&&(Rt=zt.key);if(k.isLeft){let dt=null;if(Tt){const B=Tt.getIntersection(z);if(B!==null&&(z.isAnEndpoint(B)||(dt=B),!Tt.isAnEndpoint(B))){const $=this._splitSafely(Tt,B);for(let ee=0,xe=$.length;ee0?(this.tree.remove(z),ae.push(k)):(this.segments.push(z),z.prev=Tt)}else{if(Tt&&Rt){const dt=Tt.getIntersection(Rt);if(dt!==null){if(!Tt.isAnEndpoint(dt)){const N=this._splitSafely(Tt,dt);for(let B=0,$=N.length;B<$;B++)ae.push(N[B])}if(!Rt.isAnEndpoint(dt)){const N=this._splitSafely(Rt,dt);for(let B=0,$=N.length;B<$;B++)ae.push(N[B])}}}this.tree.remove(z)}return ae}_splitSafely(k,z){this.tree.remove(k);const ae=k.rightSE;this.queue.remove(ae);const Ee=k.split(z);return Ee.push(ae),k.consumedBy===void 0&&this.tree.add(k),Ee}}const Ms=typeof te!="undefined"&&{NODE_ENV:"production",PUBLIC_PATH:"/"}.POLYGON_CLIPPING_MAX_QUEUE_SIZE||1e6,ho=typeof te!="undefined"&&{NODE_ENV:"production",PUBLIC_PATH:"/"}.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS||1e6;class Zo{run(k,z,ae){jt.type=k,ft.reset();const Ee=[new fo(z,!0)];for(let B=0,$=ae.length;B<$;B++)Ee.push(new fo(ae[B],!1));if(jt.numMultiPolys=Ee.length,jt.type==="difference"){const B=Ee[0];let $=1;for(;$Ms)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big).")}const zt=new Za(De);let Tt=De.size,Rt=De.pop();for(;Rt;){const B=Rt.key;if(De.size===Tt){const ee=B.segment;throw new Error(`Unable to pop() ${B.isLeft?"left":"right"} SweepEvent [${B.point.x}, ${B.point.y}] from segment #${ee.id} [${ee.leftSE.point.x}, ${ee.leftSE.point.y}] -> [${ee.rightSE.point.x}, ${ee.rightSE.point.y}] from queue.`)}if(De.size>Ms)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big).");if(zt.segments.length>ho)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments).");const $=zt.process(B);for(let ee=0,xe=$.length;ee1?k-1:0),ae=1;ae1?k-1:0),ae=1;ae1?k-1:0),ae=1;ae1?k-1:0),ae=1;ae0)return!0;var Ln=bt.get(pr);return Ln.delete(Vr),Ln.size>0||bt.delete(pr),!0}he("deleteMetadata",dr);function oe(jt,pr){for(var Vr=jt.length-1;Vr>=0;--Vr){var en=jt[Vr],Ln=en(pr);if(!Et(Ln)&&!Jr(Ln)){if(!Rn(Ln))throw new TypeError;pr=Ln}}return pr}function H(jt,pr,Vr,en){for(var Ln=jt.length-1;Ln>=0;--Ln){var Gi=jt[Ln],ue=Gi(pr,Vr,en);if(!Et(ue)&&!Jr(ue)){if(!Mr(ue))throw new TypeError;en=ue}}return en}function re(jt,pr,Vr){var en=bt.get(jt);if(Et(en)){if(!Vr)return;en=new Yt,bt.set(jt,en)}var Ln=en.get(pr);if(Et(Ln)){if(!Vr)return;Ln=new Yt,en.set(pr,Ln)}return Ln}function Be(jt,pr,Vr){var en=we(jt,pr,Vr);if(en)return!0;var Ln=va(pr);return Jr(Ln)?!1:Be(jt,Ln,Vr)}function we(jt,pr,Vr){var en=re(pr,Vr,!1);return Et(en)?!1:rn(en.has(jt))}function ut(jt,pr,Vr){var en=we(jt,pr,Vr);if(en)return ie(jt,pr,Vr);var Ln=va(pr);if(!Jr(Ln))return ut(jt,Ln,Vr)}function ie(jt,pr,Vr){var en=re(pr,Vr,!1);if(!Et(en))return en.get(jt)}function Le(jt,pr,Vr,en){var Ln=re(Vr,en,!0);Ln.set(jt,pr)}function Pe(jt,pr){var Vr=Ge(jt,pr),en=va(jt);if(en===null)return Vr;var Ln=Pe(en,pr);if(Ln.length<=0)return Vr;if(Vr.length<=0)return Ln;for(var Gi=new ar,ue=[],k=0,z=Vr;k=0&&k=this._keys.length?(this._index=-1,this._keys=pr,this._values=pr):this._index++,{value:z,done:!1}}return{value:void 0,done:!0}},ue.prototype.throw=function(k){throw this._index>=0&&(this._index=-1,this._keys=pr,this._values=pr),k},ue.prototype.return=function(k){return this._index>=0&&(this._index=-1,this._keys=pr,this._values=pr),{value:k,done:!0}},ue}();return function(){function ue(){this._keys=[],this._values=[],this._cacheKey=jt,this._cacheIndex=-2}return Object.defineProperty(ue.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),ue.prototype.has=function(k){return this._find(k,!1)>=0},ue.prototype.get=function(k){var z=this._find(k,!1);return z>=0?this._values[z]:void 0},ue.prototype.set=function(k,z){var ae=this._find(k,!0);return this._values[ae]=z,this},ue.prototype.delete=function(k){var z=this._find(k,!1);if(z>=0){for(var ae=this._keys.length,Ee=z+1;Ee=0&&(W|0)===W||y("invalid parameter type, ("+W+")"+Z(Ce)+". must be a nonnegative integer")}function vt(W,Ce,Ye){Ce.indexOf(W)<0&&y("invalid value"+Z(Ye)+". must be one of: "+Ce)}var tt=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function Ot(W){Object.keys(W).forEach(function(Ce){tt.indexOf(Ce)<0&&y('invalid regl constructor argument "'+Ce+'". must be one of '+tt)})}function Xt(W,Ce){for(W=W+"";W.length0&&Ce.push(new Zt("unknown",0,Ye))}}),Ce}function fr(W,Ce){Ce.forEach(function(Ye){var Kt=W[Ye.file];if(Kt){var vr=Kt.index[Ye.line];if(vr){vr.errors.push(Ye),Kt.hasErrors=!0;return}}W.unknown.hasErrors=!0,W.unknown.lines[0].errors.push(Ye)})}function Mt(W,Ce,Ye,Kt,vr){if(!W.getShaderParameter(Ce,W.COMPILE_STATUS)){var Jt=W.getShaderInfoLog(Ce),Ut=Kt===W.FRAGMENT_SHADER?"fragment":"vertex";H(Ye,"string",Ut+" shader source must be a string",vr);var Br=Rr(Ye,vr),Or=gr(Jt);fr(Br,Or),Object.keys(Br).forEach(function(Yr){var Nr=Br[Yr];if(!Nr.hasErrors)return;var Wr=[""],tn=[""];function kr($r,Pt){Wr.push($r),tn.push(Pt||"")}kr("file number "+Yr+": "+Nr.name+` +`,"color:red;text-decoration:underline;font-weight:bold"),Nr.lines.forEach(function($r){if($r.errors.length>0){kr(Xt($r.number,4)+"| ","background-color:yellow; font-weight:bold"),kr($r.line+te,"color:red; background-color:yellow; font-weight:bold");var Pt=0;$r.errors.forEach(function(ur){var Ur=ur.message,cn=/^\s*'(.*)'\s*:\s*(.*)$/.exec(Ur);if(cn){var Tr=cn[1];switch(Ur=cn[2],Tr){case"assign":Tr="=";break}Pt=Math.max($r.line.indexOf(Tr,Pt),0)}else Pt=0;kr(Xt("| ",6)),kr(Xt("^^^",Pt+3)+te,"font-weight:bold"),kr(Xt("| ",6)),kr(Ur+te,"font-weight:bold")}),kr(Xt("| ",6)+te)}else kr(Xt($r.number,4)+"| "),kr($r.line+te,"color:red")}),typeof document!="undefined"&&!window.chrome?(tn[0]=Wr.join("%c"),console.log.apply(console,tn)):console.log(Wr.join(""))}),he.raise("Error compiling "+Ut+" shader, "+Br[0].name)}}function ft(W,Ce,Ye,Kt,vr){if(!W.getProgramParameter(Ce,W.LINK_STATUS)){var Jt=W.getProgramInfoLog(Ce),Ut=Rr(Ye,vr),Br=Rr(Kt,vr),Or='Error linking program with vertex shader, "'+Br[0].name+'", and fragment shader "'+Ut[0].name+'"';typeof document!="undefined"?console.log("%c"+Or+te+"%c"+Jt,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(Or+te+Jt),he.raise(Or)}}function kt(W){W._commandRef=bt()}function qe(W,Ce,Ye,Kt){kt(W);function vr(Or){return Or?Kt.id(Or):0}W._fragId=vr(W.static.frag),W._vertId=vr(W.static.vert);function Jt(Or,Yr){Object.keys(Yr).forEach(function(Nr){Or[Kt.id(Nr)]=!0})}var Ut=W._uniformSet={};Jt(Ut,Ce.static),Jt(Ut,Ce.dynamic);var Br=W._attributeSet={};Jt(Br,Ye.static),Jt(Br,Ye.dynamic),W._hasCount="count"in W.static||"count"in W.dynamic||"elements"in W.static||"elements"in W.dynamic}function Dt(W,Ce){var Ye=St();y(W+" in command "+(Ce||bt())+(Ye==="unknown"?"":" called from "+Ye))}function dr(W,Ce,Ye){W||Dt(Ce,Ye||bt())}function oe(W,Ce,Ye,Kt){W in Ce||Dt("unknown parameter ("+W+")"+Z(Ye)+". possible values: "+Object.keys(Ce).join(),Kt||bt())}function H(W,Ce,Ye,Kt){it(W,Ce)||Dt("invalid parameter type"+Z(Ye)+". expected "+Ce+", got "+typeof W,Kt||bt())}function re(W){W()}function Be(W,Ce,Ye){W.texture?vt(W.texture._texture.internalformat,Ce,"unsupported texture format for attachment"):vt(W.renderbuffer._renderbuffer.format,Ye,"unsupported renderbuffer format for attachment")}var we=33071,ut=9728,ie=9984,Le=9985,Pe=9986,Ge=9987,Vt=5120,Et=5121,Jr=5122,on=5123,Mr=5124,Dn=5125,bn=5126,rn=32819,yi=32820,ti=33635,Zi=34042,En=36193,Rn={};Rn[Vt]=Rn[Et]=1,Rn[Jr]=Rn[on]=Rn[En]=Rn[ti]=Rn[rn]=Rn[yi]=2,Rn[Mr]=Rn[Dn]=Rn[bn]=Rn[Zi]=4;function sa(W,Ce){return W===yi||W===rn||W===ti?2:W===Zi?4:Rn[W]*Ce}function ki(W){return!(W&W-1)&&!!W}function ba(W,Ce,Ye){var Kt,vr=Ce.width,Jt=Ce.height,Ut=Ce.channels;he(vr>0&&vr<=Ye.maxTextureSize&&Jt>0&&Jt<=Ye.maxTextureSize,"invalid texture shape"),(W.wrapS!==we||W.wrapT!==we)&&he(ki(vr)&&ki(Jt),"incompatible wrap mode for texture, both width and height must be power of 2"),Ce.mipmask===1?vr!==1&&Jt!==1&&he(W.minFilter!==ie&&W.minFilter!==Pe&&W.minFilter!==Le&&W.minFilter!==Ge,"min filter requires mipmap"):(he(ki(vr)&&ki(Jt),"texture must be a square power of 2 to support mipmapping"),he(Ce.mipmask===(vr<<1)-1,"missing or incomplete mipmap data")),Ce.type===bn&&(Ye.extensions.indexOf("oes_texture_float_linear")<0&&he(W.minFilter===ut&&W.magFilter===ut,"filter not supported, must enable oes_texture_float_linear"),he(!W.genMipmaps,"mipmap generation not supported with float textures"));var Br=Ce.images;for(Kt=0;Kt<16;++Kt)if(Br[Kt]){var Or=vr>>Kt,Yr=Jt>>Kt;he(Ce.mipmask&1<0&&vr<=Kt.maxTextureSize&&Jt>0&&Jt<=Kt.maxTextureSize,"invalid texture shape"),he(vr===Jt,"cube map must be square"),he(Ce.wrapS===we&&Ce.wrapT===we,"wrap mode not supported by cube map");for(var Br=0;Br>Nr,kr=Jt>>Nr;he(Or.mipmask&1<1&&Ce===Ye&&(Ce==='"'||Ce==="'"))return['"'+Ms(W.substr(1,W.length-2))+'"'];var Kt=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(W);if(Kt)return ho(W.substr(0,Kt.index)).concat(ho(Kt[1])).concat(ho(W.substr(Kt.index+Kt[0].length)));var vr=W.split(".");if(vr.length===1)return['"'+Ms(W)+'"'];for(var Jt=[],Ut=0;Ut0,"invalid pixel ratio"))):Re.raise("invalid arguments to regl"),Ye&&(Ye.nodeName.toLowerCase()==="canvas"?vr=Ye:Kt=Ye),!Jt){if(!vr){Re(typeof document!="undefined","must manually specify webgl context outside of DOM environments");var kr=k(Kt||document.body,Wr,Yr);if(!kr)return null;vr=kr.canvas,tn=kr.onDestroy}Ut.premultipliedAlpha===void 0&&(Ut.premultipliedAlpha=!0),Jt=z(vr,Ut)}return Jt?{gl:Jt,canvas:vr,container:Kt,extensions:Br,optionalExtensions:Or,pixelRatio:Yr,profile:Nr,onDone:Wr,onDestroy:tn}:(tn(),Wr("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function Rt(W,Ce){var Ye={};function Kt(Ut){Re.type(Ut,"string","extension name must be string");var Br=Ut.toLowerCase(),Or;try{Or=Ye[Br]=W.getExtension(Br)}catch(Yr){}return!!Or}for(var vr=0;vr65535)<<4,W>>>=Ce,Ye=(W>255)<<3,W>>>=Ye,Ce|=Ye,Ye=(W>15)<<2,W>>>=Ye,Ce|=Ye,Ye=(W>3)<<1,W>>>=Ye,Ce|=Ye,Ce|W>>1}function Fe(){var W=dt(8,function(){return[]});function Ce(Jt){var Ut=j(Jt),Br=W[Q(Ut)>>2];return Br.length>0?Br.pop():new ArrayBuffer(Ut)}function Ye(Jt){W[Q(Jt.byteLength)>>2].push(Jt)}function Kt(Jt,Ut){var Br=null;switch(Jt){case N:Br=new Int8Array(Ce(Ut),0,Ut);break;case B:Br=new Uint8Array(Ce(Ut),0,Ut);break;case $:Br=new Int16Array(Ce(2*Ut),0,Ut);break;case ee:Br=new Uint16Array(Ce(2*Ut),0,Ut);break;case xe:Br=new Int32Array(Ce(4*Ut),0,Ut);break;case Ue:Br=new Uint32Array(Ce(4*Ut),0,Ut);break;case Qe:Br=new Float32Array(Ce(4*Ut),0,Ut);break;default:return null}return Br.length!==Ut?Br.subarray(0,Ut):Br}function vr(Jt){Ye(Jt.buffer)}return{alloc:Ce,free:Ye,allocType:Kt,freeType:vr}}var et=Fe();et.zero=Fe();var Ae=3408,$t=3410,yr=3411,nn=3412,Qr=3413,tr=3414,Xr=3415,zr=33901,jr=33902,Jn=3379,ln=3386,hi=34921,Vi=36347,ci=36348,Li=35661,Ei=35660,ns=34930,Qi=36349,Pa=34076,Si=34024,di=7936,Ai=7937,Oa=7938,vu=35724,fa=34047,Ra=36063,Gl=34852,vs=3553,Ma=34067,vi=34069,ka=33984,na=6408,Vo=5126,ca=5121,is=36160,qo=36053,Du=36064,ms=16384,yc=function(W,Ce){var Ye=1;Ce.ext_texture_filter_anisotropic&&(Ye=W.getParameter(fa));var Kt=1,vr=1;Ce.webgl_draw_buffers&&(Kt=W.getParameter(Gl),vr=W.getParameter(Ra));var Jt=!!Ce.oes_texture_float;if(Jt){var Ut=W.createTexture();W.bindTexture(vs,Ut),W.texImage2D(vs,0,na,1,1,0,na,Vo,null);var Br=W.createFramebuffer();if(W.bindFramebuffer(is,Br),W.framebufferTexture2D(is,Du,vs,Ut,0),W.bindTexture(vs,null),W.checkFramebufferStatus(is)!==qo)Jt=!1;else{W.viewport(0,0,1,1),W.clearColor(1,0,0,1),W.clear(ms);var Or=et.allocType(Vo,4);W.readPixels(0,0,1,1,na,Vo,Or),W.getError()?Jt=!1:(W.deleteFramebuffer(Br),W.deleteTexture(Ut),Jt=Or[0]===1),et.freeType(Or)}}var Yr=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Nr=!0;if(!Yr){var Wr=W.createTexture(),tn=et.allocType(ca,36);W.activeTexture(ka),W.bindTexture(Ma,Wr),W.texImage2D(vi,0,na,3,3,0,na,ca,tn),et.freeType(tn),W.bindTexture(Ma,null),W.deleteTexture(Wr),Nr=!W.getError()}return{colorBits:[W.getParameter($t),W.getParameter(yr),W.getParameter(nn),W.getParameter(Qr)],depthBits:W.getParameter(tr),stencilBits:W.getParameter(Xr),subpixelBits:W.getParameter(Ae),extensions:Object.keys(Ce).filter(function(kr){return!!Ce[kr]}),maxAnisotropic:Ye,maxDrawbuffers:Kt,maxColorAttachments:vr,pointSizeDims:W.getParameter(zr),lineWidthDims:W.getParameter(jr),maxViewportDims:W.getParameter(ln),maxCombinedTextureUnits:W.getParameter(Li),maxCubeMapSize:W.getParameter(Pa),maxRenderbufferSize:W.getParameter(Si),maxTextureUnits:W.getParameter(ns),maxTextureSize:W.getParameter(Jn),maxAttributes:W.getParameter(hi),maxVertexUniforms:W.getParameter(Vi),maxVertexTextureUnits:W.getParameter(Ei),maxVaryingVectors:W.getParameter(ci),maxFragmentUniforms:W.getParameter(Qi),glsl:W.getParameter(vu),renderer:W.getParameter(Ai),vendor:W.getParameter(di),version:W.getParameter(Oa),readFloat:Jt,npotTextureCube:Nr}};function Sa(W){return!!W&&typeof W=="object"&&Array.isArray(W.shape)&&Array.isArray(W.stride)&&typeof W.offset=="number"&&W.shape.length===W.stride.length&&(Array.isArray(W.data)||ne(W.data))}var Ji=function(W){return Object.keys(W).map(function(Ce){return W[Ce]})},Qt={shape:Kr,flatten:lr};function _n(W,Ce,Ye){for(var Kt=0;Kt0){var fn;if(Array.isArray(ur[0])){Ir=Ju(ur);for(var Ar=1,un=1;un0)if(typeof Ar[0]=="number"){var an=et.allocType(Tr.dtype,Ar.length);tp(an,Ar),Ir(an,jn),et.freeType(an)}else if(Array.isArray(Ar[0])||ne(Ar[0])){ai=Ju(Ar);var Lr=Bu(Ar,ai,Tr.dtype);Ir(Lr,jn),et.freeType(Lr)}else Re.raise("invalid buffer data")}else if(Sa(Ar)){ai=Ar.shape;var xr=Ar.stride,er=0,Ti=0,Ke=0,_i=0;ai.length===1?(er=ai[0],Ti=1,Ke=xr[0],_i=0):ai.length===2?(er=ai[0],Ti=ai[1],Ke=xr[0],_i=xr[1]):Re.raise("invalid shape");var si=Array.isArray(Ar.data)?Tr.dtype:Tf(Ar.data),qn=et.allocType(si,er*Ti);wf(qn,Ar.data,er,Ti,Ke,_i,Ar.offset),Ir(qn,jn),et.freeType(qn)}else Re.raise("invalid data for buffer subdata");return pn}return Ur||pn(Pt),pn._reglType="buffer",pn._buffer=Tr,pn.subdata=fn,Ye.profile&&(pn.stats=Tr.stats),pn.destroy=function(){tn(Tr)},pn}function $r(){Ji(Jt).forEach(function(Pt){Pt.buffer=W.createBuffer(),W.bindBuffer(Pt.type,Pt.buffer),W.bufferData(Pt.type,Pt.persistentData||Pt.byteLength,Pt.usage)})}return Ye.profile&&(Ce.getTotalBufferSize=function(){var Pt=0;return Object.keys(Jt).forEach(function(ur){Pt+=Jt[ur].stats.size}),Pt}),{create:kr,createStream:Or,destroyStream:Yr,clear:function(){Ji(Jt).forEach(tn),Br.forEach(tn)},getBuffer:function(Pt){return Pt&&Pt._buffer instanceof Ut?Pt._buffer:null},restore:$r,_initBuffer:Wr}}var ph=0,dh=0,rp=1,np=1,zp=4,Yc=4,Fu={points:ph,point:dh,lines:rp,line:np,triangles:zp,triangle:Yc,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},ip=0,Qo=1,Xl=4,Tl=5120,Ks=5121,wl=5122,ui=5123,tl=5124,Fs=5125,Nu=34963,rl=35040,ap=35044;function Yi(W,Ce,Ye,Kt){var vr={},Jt=0,Ut={uint8:Ks,uint16:ui};Ce.oes_element_index_uint&&(Ut.uint32=Fs);function Br($r){this.id=Jt++,vr[this.id]=this,this.buffer=$r,this.primType=Xl,this.vertCount=0,this.type=0}Br.prototype.bind=function(){this.buffer.bind()};var Or=[];function Yr($r){var Pt=Or.pop();return Pt||(Pt=new Br(Ye.create(null,Nu,!0,!1)._buffer)),Wr(Pt,$r,rl,-1,-1,0,0),Pt}function Nr($r){Or.push($r)}function Wr($r,Pt,ur,Ur,cn,Tr,pn){$r.buffer.bind();var Ir;if(Pt){var fn=pn;!pn&&(!ne(Pt)||Sa(Pt)&&!ne(Pt.data))&&(fn=Ce.oes_element_index_uint?Fs:ui),Ye._initBuffer($r.buffer,Pt,ur,fn,3)}else W.bufferData(Nu,Tr,ur),$r.buffer.dtype=Ir||Ks,$r.buffer.usage=ur,$r.buffer.dimension=3,$r.buffer.byteLength=Tr;if(Ir=pn,!pn){switch($r.buffer.dtype){case Ks:case Tl:Ir=Ks;break;case ui:case wl:Ir=ui;break;case Fs:case tl:Ir=Fs;break;default:Re.raise("unsupported type for element array")}$r.buffer.dtype=Ir}$r.type=Ir,Re(Ir!==Fs||!!Ce.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var Ar=cn;Ar<0&&(Ar=$r.buffer.byteLength,Ir===ui?Ar>>=1:Ir===Fs&&(Ar>>=2)),$r.vertCount=Ar;var un=Ur;if(Ur<0){un=Xl;var jn=$r.buffer.dimension;jn===1&&(un=ip),jn===2&&(un=Qo),jn===3&&(un=Xl)}$r.primType=un}function tn($r){Kt.elementsCount--,Re($r.buffer!==null,"must not double destroy elements"),delete vr[$r.id],$r.buffer.destroy(),$r.buffer=null}function kr($r,Pt){var ur=Ye.create(null,Nu,!0),Ur=new Br(ur._buffer);Kt.elementsCount++;function cn(Tr){if(!Tr)ur(),Ur.primType=Xl,Ur.vertCount=0,Ur.type=Ks;else if(typeof Tr=="number")ur(Tr),Ur.primType=Xl,Ur.vertCount=Tr|0,Ur.type=Ks;else{var pn=null,Ir=ap,fn=-1,Ar=-1,un=0,jn=0;Array.isArray(Tr)||ne(Tr)||Sa(Tr)?pn=Tr:(Re.type(Tr,"object","invalid arguments for elements"),"data"in Tr&&(pn=Tr.data,Re(Array.isArray(pn)||ne(pn)||Sa(pn),"invalid data for element buffer")),"usage"in Tr&&(Re.parameter(Tr.usage,Lu,"invalid element buffer usage"),Ir=Lu[Tr.usage]),"primitive"in Tr&&(Re.parameter(Tr.primitive,Fu,"invalid element buffer primitive"),fn=Fu[Tr.primitive]),"count"in Tr&&(Re(typeof Tr.count=="number"&&Tr.count>=0,"invalid vertex count for elements"),Ar=Tr.count|0),"type"in Tr&&(Re.parameter(Tr.type,Ut,"invalid buffer type"),jn=Ut[Tr.type]),"length"in Tr?un=Tr.length|0:(un=Ar,jn===ui||jn===wl?un*=2:(jn===Fs||jn===tl)&&(un*=4))),Wr(Ur,pn,Ir,fn,Ar,un,jn)}return cn}return cn($r),cn._reglType="elements",cn._elements=Ur,cn.subdata=function(Tr,pn){return ur.subdata(Tr,pn),cn},cn.destroy=function(){tn(Ur)},cn}return{create:kr,createStream:Yr,destroyStream:Nr,getElements:function($r){return typeof $r=="function"&&$r._elements instanceof Br?$r._elements:null},clear:function(){Ji(vr).forEach(tn)}}}var Ci=new Float32Array(1),ou=new Uint32Array(Ci.buffer),mu=5123;function Cf(W){for(var Ce=et.allocType(mu,W.length),Ye=0;Ye>>31<<15,Jt=(Kt<<1>>>24)-127,Ut=Kt>>13&1024-1;if(Jt<-24)Ce[Ye]=vr;else if(Jt<-14){var Br=-14-Jt;Ce[Ye]=vr+(Ut+1024>>Br)}else Jt>15?Ce[Ye]=vr+31744:Ce[Ye]=vr+(Jt+15<<10)+Ut}return Ce}function Va(W){return Array.isArray(W)||ne(W)}var vh=function(W){return!(W&W-1)&&!!W},Rf=34467,Ns=3553,nl=34067,gu=34069,Cl=6408,mh=6406,_c=6407,ua=6409,xc=6410,il=32854,Rl=32855,gh=36194,qc=32819,ha=32820,Ml=33635,op=34042,al=6402,Kc=34041,Qc=35904,Mf=35906,ol=36193,$l=33776,Uu=33777,Jc=33778,bc=33779,Yl=35986,yh=35987,Ec=34798,Us=35840,_h=35841,ef=35842,Sc=35843,Il=36196,zu=5121,ql=5123,If=5125,sl=5126,xh=10242,bh=10243,Eh=10497,Pf=33071,sp=33648,ja=10240,up=10241,Of=9728,lp=9729,Kl=9984,cp=9985,Zu=9986,ma=9987,Ql=33170,Vu=4352,ul=4353,Bi=4354,ga=34046,su=3317,tf=37440,rf=37441,Qs=37443,fp=37444,kf=33984,Df=[Kl,Zu,cp,ma],Jl=[0,ua,xc,_c,Cl],Ro={};Ro[ua]=Ro[mh]=Ro[al]=1,Ro[Kc]=Ro[xc]=2,Ro[_c]=Ro[Qc]=3,Ro[Cl]=Ro[Mf]=4;function Ha(W){return"[object "+W+"]"}var nf=Ha("HTMLCanvasElement"),Ac=Ha("OffscreenCanvas"),io=Ha("CanvasRenderingContext2D"),xn=Ha("ImageBitmap"),gs=Ha("HTMLImageElement"),Lf=Ha("HTMLVideoElement"),Tc=Object.keys(kn).concat([nf,Ac,io,xn,gs,Lf]),as=[];as[zu]=1,as[sl]=4,as[ol]=2,as[ql]=2,as[If]=4;var pa=[];pa[il]=2,pa[Rl]=2,pa[gh]=2,pa[Kc]=4,pa[$l]=.5,pa[Uu]=.5,pa[Jc]=1,pa[bc]=1,pa[Yl]=.5,pa[yh]=1,pa[Ec]=1,pa[Us]=.5,pa[_h]=.25,pa[ef]=.5,pa[Sc]=.25,pa[Il]=.5;function Bf(W){return Array.isArray(W)&&(W.length===0||typeof W[0]=="number")}function sn(W){if(!Array.isArray(W))return!1;var Ce=W.length;return!(Ce===0||!Va(W[0]))}function ll(W){return Object.prototype.toString.call(W)}function af(W){return ll(W)===nf}function of(W){return ll(W)===Ac}function yu(W){return ll(W)===io}function zs(W){return ll(W)===xn}function Ff(W){return ll(W)===gs}function Nf(W){return ll(W)===Lf}function ys(W){if(!W)return!1;var Ce=ll(W);return Tc.indexOf(Ce)>=0?!0:Bf(W)||sn(W)||Sa(W)}function _u(W){return kn[Object.prototype.toString.call(W)]|0}function hp(W,Ce){var Ye=Ce.length;switch(W.type){case zu:case ql:case If:case sl:var Kt=et.allocType(W.type,Ye);Kt.set(Ce),W.data=Kt;break;case ol:W.data=Cf(Ce);break;default:Re.raise("unsupported texture type, must specify a typed array")}}function wc(W,Ce){return et.allocType(W.type===ol?sl:W.type,Ce)}function Cc(W,Ce){W.type===ol?(W.data=Cf(Ce),et.freeType(Ce)):W.data=Ce}function Uf(W,Ce,Ye,Kt,vr,Jt){for(var Ut=W.width,Br=W.height,Or=W.channels,Yr=Ut*Br*Or,Nr=wc(W,Yr),Wr=0,tn=0;tn=1;)Br+=Ut*Or*Or,Or/=2;return Br}else return Ut*Ye*Kt}function Ft(W,Ce,Ye,Kt,vr,Jt,Ut){var Br={"don't care":Vu,"dont care":Vu,nice:Bi,fast:ul},Or={repeat:Eh,clamp:Pf,mirror:sp},Yr={nearest:Of,linear:lp},Nr=U({mipmap:ma,"nearest mipmap nearest":Kl,"linear mipmap nearest":cp,"nearest mipmap linear":Zu,"linear mipmap linear":ma},Yr),Wr={none:0,browser:fp},tn={uint8:zu,rgba4:qc,rgb565:Ml,"rgb5 a1":ha},kr={alpha:mh,luminance:ua,"luminance alpha":xc,rgb:_c,rgba:Cl,rgba4:il,"rgb5 a1":Rl,rgb565:gh},$r={};Ce.ext_srgb&&(kr.srgb=Qc,kr.srgba=Mf),Ce.oes_texture_float&&(tn.float32=tn.float=sl),Ce.oes_texture_half_float&&(tn.float16=tn["half float"]=ol),Ce.webgl_depth_texture&&(U(kr,{depth:al,"depth stencil":Kc}),U(tn,{uint16:ql,uint32:If,"depth stencil":op})),Ce.webgl_compressed_texture_s3tc&&U($r,{"rgb s3tc dxt1":$l,"rgba s3tc dxt1":Uu,"rgba s3tc dxt3":Jc,"rgba s3tc dxt5":bc}),Ce.webgl_compressed_texture_atc&&U($r,{"rgb atc":Yl,"rgba atc explicit alpha":yh,"rgba atc interpolated alpha":Ec}),Ce.webgl_compressed_texture_pvrtc&&U($r,{"rgb pvrtc 4bppv1":Us,"rgb pvrtc 2bppv1":_h,"rgba pvrtc 4bppv1":ef,"rgba pvrtc 2bppv1":Sc}),Ce.webgl_compressed_texture_etc1&&($r["rgb etc1"]=Il);var Pt=Array.prototype.slice.call(W.getParameter(Rf));Object.keys($r).forEach(function(He){var rr=$r[He];Pt.indexOf(rr)>=0&&(kr[He]=rr)});var ur=Object.keys(kr);Ye.textureFormats=ur;var Ur=[];Object.keys(kr).forEach(function(He){var rr=kr[He];Ur[rr]=He});var cn=[];Object.keys(tn).forEach(function(He){var rr=tn[He];cn[rr]=He});var Tr=[];Object.keys(Yr).forEach(function(He){var rr=Yr[He];Tr[rr]=He});var pn=[];Object.keys(Nr).forEach(function(He){var rr=Nr[He];pn[rr]=He});var Ir=[];Object.keys(Or).forEach(function(He){var rr=Or[He];Ir[rr]=He});var fn=ur.reduce(function(He,rr){var Ht=kr[rr];return Ht===ua||Ht===mh||Ht===ua||Ht===xc||Ht===al||Ht===Kc||Ce.ext_srgb&&(Ht===Qc||Ht===Mf)?He[Ht]=Ht:Ht===Rl||rr.indexOf("rgba")>=0?He[Ht]=Cl:He[Ht]=_c,He},{});function Ar(){this.internalformat=Cl,this.format=Cl,this.type=zu,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=fp,this.width=0,this.height=0,this.channels=0}function un(He,rr){He.internalformat=rr.internalformat,He.format=rr.format,He.type=rr.type,He.compressed=rr.compressed,He.premultiplyAlpha=rr.premultiplyAlpha,He.flipY=rr.flipY,He.unpackAlignment=rr.unpackAlignment,He.colorSpace=rr.colorSpace,He.width=rr.width,He.height=rr.height,He.channels=rr.channels}function jn(He,rr){if(!(typeof rr!="object"||!rr)){if("premultiplyAlpha"in rr&&(Re.type(rr.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),He.premultiplyAlpha=rr.premultiplyAlpha),"flipY"in rr&&(Re.type(rr.flipY,"boolean","invalid texture flip"),He.flipY=rr.flipY),"alignment"in rr&&(Re.oneOf(rr.alignment,[1,2,4,8],"invalid texture unpack alignment"),He.unpackAlignment=rr.alignment),"colorSpace"in rr&&(Re.parameter(rr.colorSpace,Wr,"invalid colorSpace"),He.colorSpace=Wr[rr.colorSpace]),"type"in rr){var Ht=rr.type;Re(Ce.oes_texture_float||!(Ht==="float"||Ht==="float32"),"you must enable the OES_texture_float extension in order to use floating point textures."),Re(Ce.oes_texture_half_float||!(Ht==="half float"||Ht==="float16"),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),Re(Ce.webgl_depth_texture||!(Ht==="uint16"||Ht==="uint32"||Ht==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),Re.parameter(Ht,tn,"invalid texture type"),He.type=tn[Ht]}var dn=He.width,xi=He.height,ya=He.channels,de=!1;"shape"in rr?(Re(Array.isArray(rr.shape)&&rr.shape.length>=2,"shape must be an array"),dn=rr.shape[0],xi=rr.shape[1],rr.shape.length===3&&(ya=rr.shape[2],Re(ya>0&&ya<=4,"invalid number of channels"),de=!0),Re(dn>=0&&dn<=Ye.maxTextureSize,"invalid width"),Re(xi>=0&&xi<=Ye.maxTextureSize,"invalid height")):("radius"in rr&&(dn=xi=rr.radius,Re(dn>=0&&dn<=Ye.maxTextureSize,"invalid radius")),"width"in rr&&(dn=rr.width,Re(dn>=0&&dn<=Ye.maxTextureSize,"invalid width")),"height"in rr&&(xi=rr.height,Re(xi>=0&&xi<=Ye.maxTextureSize,"invalid height")),"channels"in rr&&(ya=rr.channels,Re(ya>0&&ya<=4,"invalid number of channels"),de=!0)),He.width=dn|0,He.height=xi|0,He.channels=ya|0;var Oe=!1;if("format"in rr){var $e=rr.format;Re(Ce.webgl_depth_texture||!($e==="depth"||$e==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),Re.parameter($e,kr,"invalid texture format");var Gt=He.internalformat=kr[$e];He.format=fn[Gt],$e in tn&&("type"in rr||(He.type=tn[$e])),$e in $r&&(He.compressed=!0),Oe=!0}!de&&Oe?He.channels=Ro[He.format]:de&&!Oe?He.channels!==Jl[He.format]&&(He.format=He.internalformat=Jl[He.channels]):Oe&&de&&Re(He.channels===Ro[He.format],"number of channels inconsistent with specified format")}}function ai(He){W.pixelStorei(tf,He.flipY),W.pixelStorei(rf,He.premultiplyAlpha),W.pixelStorei(Qs,He.colorSpace),W.pixelStorei(su,He.unpackAlignment)}function an(){Ar.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Lr(He,rr){var Ht=null;if(ys(rr)?Ht=rr:rr&&(Re.type(rr,"object","invalid pixel data type"),jn(He,rr),"x"in rr&&(He.xOffset=rr.x|0),"y"in rr&&(He.yOffset=rr.y|0),ys(rr.data)&&(Ht=rr.data)),Re(!He.compressed||Ht instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),rr.copy){Re(!Ht,"can not specify copy and data field for the same texture");var dn=vr.viewportWidth,xi=vr.viewportHeight;He.width=He.width||dn-He.xOffset,He.height=He.height||xi-He.yOffset,He.needsCopy=!0,Re(He.xOffset>=0&&He.xOffset=0&&He.yOffset0&&He.width<=dn&&He.height>0&&He.height<=xi,"copy texture read out of bounds")}else if(!Ht)He.width=He.width||1,He.height=He.height||1,He.channels=He.channels||4;else if(ne(Ht))He.channels=He.channels||4,He.data=Ht,!("type"in rr)&&He.type===zu&&(He.type=_u(Ht));else if(Bf(Ht))He.channels=He.channels||4,hp(He,Ht),He.alignment=1,He.needsFree=!0;else if(Sa(Ht)){var ya=Ht.data;!Array.isArray(ya)&&He.type===zu&&(He.type=_u(ya));var de=Ht.shape,Oe=Ht.stride,$e,Gt,Nt,ct,yt,xt;de.length===3?(Nt=de[2],xt=Oe[2]):(Re(de.length===2,"invalid ndarray pixel data, must be 2 or 3D"),Nt=1,xt=1),$e=de[0],Gt=de[1],ct=Oe[0],yt=Oe[1],He.alignment=1,He.width=$e,He.height=Gt,He.channels=Nt,He.format=He.internalformat=Jl[Nt],He.needsFree=!0,Uf(He,ya,ct,yt,xt,Ht.offset)}else if(af(Ht)||of(Ht)||yu(Ht))af(Ht)||of(Ht)?He.element=Ht:He.element=Ht.canvas,He.width=He.element.width,He.height=He.element.height,He.channels=4;else if(zs(Ht))He.element=Ht,He.width=Ht.width,He.height=Ht.height,He.channels=4;else if(Ff(Ht))He.element=Ht,He.width=Ht.naturalWidth,He.height=Ht.naturalHeight,He.channels=4;else if(Nf(Ht))He.element=Ht,He.width=Ht.videoWidth,He.height=Ht.videoHeight,He.channels=4;else if(sn(Ht)){var We=He.width||Ht[0].length,pt=He.height||Ht.length,Ie=He.channels;Va(Ht[0][0])?Ie=Ie||Ht[0][0].length:Ie=Ie||1;for(var mt=Qt.shape(Ht),Ct=1,hr=0;hr=0,"oes_texture_float extension not enabled"):He.type===ol&&Re(Ye.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function xr(He,rr,Ht){var dn=He.element,xi=He.data,ya=He.internalformat,de=He.format,Oe=He.type,$e=He.width,Gt=He.height;ai(He),dn?W.texImage2D(rr,Ht,de,de,Oe,dn):He.compressed?W.compressedTexImage2D(rr,Ht,ya,$e,Gt,0,xi):He.needsCopy?(Kt(),W.copyTexImage2D(rr,Ht,de,He.xOffset,He.yOffset,$e,Gt,0)):W.texImage2D(rr,Ht,de,$e,Gt,0,de,Oe,xi||null)}function er(He,rr,Ht,dn,xi){var ya=He.element,de=He.data,Oe=He.internalformat,$e=He.format,Gt=He.type,Nt=He.width,ct=He.height;ai(He),ya?W.texSubImage2D(rr,xi,Ht,dn,$e,Gt,ya):He.compressed?W.compressedTexSubImage2D(rr,xi,Ht,dn,Oe,Nt,ct,de):He.needsCopy?(Kt(),W.copyTexSubImage2D(rr,xi,Ht,dn,He.xOffset,He.yOffset,Nt,ct)):W.texSubImage2D(rr,xi,Ht,dn,Nt,ct,$e,Gt,de)}var Ti=[];function Ke(){return Ti.pop()||new an}function _i(He){He.needsFree&&et.freeType(He.data),an.call(He),Ti.push(He)}function si(){Ar.call(this),this.genMipmaps=!1,this.mipmapHint=Vu,this.mipmask=0,this.images=Array(16)}function qn(He,rr,Ht){var dn=He.images[0]=Ke();He.mipmask=1,dn.width=He.width=rr,dn.height=He.height=Ht,dn.channels=He.channels=4}function qi(He,rr){var Ht=null;if(ys(rr))Ht=He.images[0]=Ke(),un(Ht,He),Lr(Ht,rr),He.mipmask=1;else if(jn(He,rr),Array.isArray(rr.mipmap))for(var dn=rr.mipmap,xi=0;xi>=xi,Ht.height>>=xi,Lr(Ht,dn[xi]),He.mipmask|=1<=0&&!("faces"in rr)&&(He.genMipmaps=!0)}if("mag"in rr){var dn=rr.mag;Re.parameter(dn,Yr),He.magFilter=Yr[dn]}var xi=He.wrapS,ya=He.wrapT;if("wrap"in rr){var de=rr.wrap;typeof de=="string"?(Re.parameter(de,Or),xi=ya=Or[de]):Array.isArray(de)&&(Re.parameter(de[0],Or),Re.parameter(de[1],Or),xi=Or[de[0]],ya=Or[de[1]])}else{if("wrapS"in rr){var Oe=rr.wrapS;Re.parameter(Oe,Or),xi=Or[Oe]}if("wrapT"in rr){var $e=rr.wrapT;Re.parameter($e,Or),ya=Or[$e]}}if(He.wrapS=xi,He.wrapT=ya,"anisotropic"in rr){var Gt=rr.anisotropic;Re(typeof Gt=="number"&&Gt>=1&&Gt<=Ye.maxAnisotropic,"aniso samples must be between 1 and "),He.anisotropic=rr.anisotropic}if("mipmap"in rr){var Nt=!1;switch(typeof rr.mipmap){case"string":Re.parameter(rr.mipmap,Br,"invalid mipmap hint"),He.mipmapHint=Br[rr.mipmap],He.genMipmaps=!0,Nt=!0;break;case"boolean":Nt=He.genMipmaps=rr.mipmap;break;case"object":Re(Array.isArray(rr.mipmap),"invalid mipmap type"),He.genMipmaps=!1,Nt=!0;break;default:Re.raise("invalid mipmap type")}Nt&&!("min"in rr)&&(He.minFilter=Kl)}}function Eo(He,rr){W.texParameteri(rr,up,He.minFilter),W.texParameteri(rr,ja,He.magFilter),W.texParameteri(rr,xh,He.wrapS),W.texParameteri(rr,bh,He.wrapT),Ce.ext_texture_filter_anisotropic&&W.texParameteri(rr,ga,He.anisotropic),He.genMipmaps&&(W.hint(Ql,He.mipmapHint),W.generateMipmap(rr))}var Ga=0,Fo={},Ts=Ye.maxTextureUnits,So=Array(Ts).map(function(){return null});function gi(He){Ar.call(this),this.mipmask=0,this.internalformat=Cl,this.id=Ga++,this.refCount=1,this.target=He,this.texture=W.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new Aa,Ut.profile&&(this.stats={size:0})}function cs(He){W.activeTexture(kf),W.bindTexture(He.target,He.texture)}function ia(){var He=So[0];He?W.bindTexture(He.target,He.texture):W.bindTexture(Ns,null)}function Xn(He){var rr=He.texture;Re(rr,"must not double destroy texture");var Ht=He.unit,dn=He.target;Ht>=0&&(W.activeTexture(kf+Ht),W.bindTexture(dn,null),So[Ht]=null),W.deleteTexture(rr),He.texture=null,He.params=null,He.pixels=null,He.refCount=0,delete Fo[He.id],Jt.textureCount--}U(gi.prototype,{bind:function(){var He=this;He.bindCount+=1;var rr=He.unit;if(rr<0){for(var Ht=0;Ht0)continue;dn.unit=-1}So[Ht]=He,rr=Ht;break}rr>=Ts&&Re.raise("insufficient number of texture units"),Ut.profile&&Jt.maxTextureUnits>yt)-Nt,xt.height=xt.height||(Ht.height>>yt)-ct,Re(Ht.type===xt.type&&Ht.format===xt.format&&Ht.internalformat===xt.internalformat,"incompatible format for texture.subimage"),Re(Nt>=0&&ct>=0&&Nt+xt.width<=Ht.width&&ct+xt.height<=Ht.height,"texture.subimage write out of bounds"),Re(Ht.mipmask&1<>Nt;++Nt){var ct=$e>>Nt,yt=Gt>>Nt;if(!ct||!yt)break;W.texImage2D(Ns,Nt,Ht.format,ct,yt,0,Ht.format,Ht.type,null)}return ia(),Ut.profile&&(Ht.stats.size=Js(Ht.internalformat,Ht.type,$e,Gt,!1,!1)),dn}return dn(He,rr),dn.subimage=xi,dn.resize=ya,dn._reglType="texture2d",dn._texture=Ht,Ut.profile&&(dn.stats=Ht.stats),dn.destroy=function(){Ht.decRef()},dn}function Xi(He,rr,Ht,dn,xi,ya){var de=new gi(nl);Fo[de.id]=de,Jt.cubeCount++;var Oe=new Array(6);function $e(ct,yt,xt,We,pt,Ie){var mt,Ct=de.texInfo;for(Aa.call(Ct),mt=0;mt<6;++mt)Oe[mt]=Ii();if(typeof ct=="number"||!ct){var hr=ct|0||1;for(mt=0;mt<6;++mt)qn(Oe[mt],hr,hr)}else if(typeof ct=="object")if(yt)qi(Oe[0],ct),qi(Oe[1],yt),qi(Oe[2],xt),qi(Oe[3],We),qi(Oe[4],pt),qi(Oe[5],Ie);else if(bo(Ct,ct),jn(de,ct),"faces"in ct){var Cr=ct.faces;for(Re(Array.isArray(Cr)&&Cr.length===6,"cube faces must be a length 6 array"),mt=0;mt<6;++mt)Re(typeof Cr[mt]=="object"&&!!Cr[mt],"invalid input for cube map face"),un(Oe[mt],de),qi(Oe[mt],Cr[mt])}else for(mt=0;mt<6;++mt)qi(Oe[mt],ct);else Re.raise("invalid arguments to cube map");for(un(de,Oe[0]),Ye.npotTextureCube||Re(vh(de.width)&&vh(de.height),"your browser does not support non power or two texture dimensions"),Ct.genMipmaps?de.mipmask=(Oe[0].width<<1)-1:de.mipmask=Oe[0].mipmask,Re.textureCube(de,Ct,Oe,Ye),de.internalformat=Oe[0].internalformat,$e.width=Oe[0].width,$e.height=Oe[0].height,cs(de),mt=0;mt<6;++mt)vo(Oe[mt],gu+mt);for(Eo(Ct,nl),ia(),Ut.profile&&(de.stats.size=Js(de.internalformat,de.type,$e.width,$e.height,Ct.genMipmaps,!0)),$e.format=Ur[de.internalformat],$e.type=cn[de.type],$e.mag=Tr[Ct.magFilter],$e.min=pn[Ct.minFilter],$e.wrapS=Ir[Ct.wrapS],$e.wrapT=Ir[Ct.wrapT],mt=0;mt<6;++mt)xo(Oe[mt]);return $e}function Gt(ct,yt,xt,We,pt){Re(!!yt,"must specify image data"),Re(typeof ct=="number"&&ct===(ct|0)&&ct>=0&&ct<6,"invalid face");var Ie=xt|0,mt=We|0,Ct=pt|0,hr=Ke();return un(hr,de),hr.width=0,hr.height=0,Lr(hr,yt),hr.width=hr.width||(de.width>>Ct)-Ie,hr.height=hr.height||(de.height>>Ct)-mt,Re(de.type===hr.type&&de.format===hr.format&&de.internalformat===hr.internalformat,"incompatible format for texture.subimage"),Re(Ie>=0&&mt>=0&&Ie+hr.width<=de.width&&mt+hr.height<=de.height,"texture.subimage write out of bounds"),Re(de.mipmask&1<>We;++We)W.texImage2D(gu+xt,We,de.format,yt>>We,yt>>We,0,de.format,de.type,null);return ia(),Ut.profile&&(de.stats.size=Js(de.internalformat,de.type,$e.width,$e.height,!1,!0)),$e}}return $e(He,rr,Ht,dn,xi,ya),$e.subimage=Gt,$e.resize=Nt,$e._reglType="textureCube",$e._texture=de,Ut.profile&&($e.stats=de.stats),$e.destroy=function(){de.decRef()},$e}function Ao(){for(var He=0;He>dn,Ht.height>>dn,0,Ht.internalformat,Ht.type,null);else for(var xi=0;xi<6;++xi)W.texImage2D(gu+xi,dn,Ht.internalformat,Ht.width>>dn,Ht.height>>dn,0,Ht.internalformat,Ht.type,null);Eo(Ht.texInfo,Ht.target)})}return{create2D:Ri,createCube:Xi,clear:Ao,getTexture:function(He){return null},restore:gl}}var Me=36161,F=32854,eu=32855,_e=36194,Pl=33189,Ka=36168,Zs=34041,Mo=35907,_s=34836,Bn=34842,An=34843,os=[];os[F]=2,os[eu]=2,os[_e]=2,os[Pl]=2,os[Ka]=1,os[Zs]=4,os[Mo]=4,os[_s]=16,os[Bn]=8,os[An]=6;function ss(W,Ce,Ye){return os[W]*Ce*Ye}var xu=function(W,Ce,Ye,Kt,vr){var Jt={rgba4:F,rgb565:_e,"rgb5 a1":eu,depth:Pl,stencil:Ka,"depth stencil":Zs};Ce.ext_srgb&&(Jt.srgba=Mo),Ce.ext_color_buffer_half_float&&(Jt.rgba16f=Bn,Jt.rgb16f=An),Ce.webgl_color_buffer_float&&(Jt.rgba32f=_s);var Ut=[];Object.keys(Jt).forEach(function(kr){var $r=Jt[kr];Ut[$r]=kr});var Br=0,Or={};function Yr(kr){this.id=Br++,this.refCount=1,this.renderbuffer=kr,this.format=F,this.width=0,this.height=0,vr.profile&&(this.stats={size:0})}Yr.prototype.decRef=function(){--this.refCount<=0&&Nr(this)};function Nr(kr){var $r=kr.renderbuffer;Re($r,"must not double destroy renderbuffer"),W.bindRenderbuffer(Me,null),W.deleteRenderbuffer($r),kr.renderbuffer=null,kr.refCount=0,delete Or[kr.id],Kt.renderbufferCount--}function Wr(kr,$r){var Pt=new Yr(W.createRenderbuffer());Or[Pt.id]=Pt,Kt.renderbufferCount++;function ur(cn,Tr){var pn=0,Ir=0,fn=F;if(typeof cn=="object"&&cn){var Ar=cn;if("shape"in Ar){var un=Ar.shape;Re(Array.isArray(un)&&un.length>=2,"invalid renderbuffer shape"),pn=un[0]|0,Ir=un[1]|0}else"radius"in Ar&&(pn=Ir=Ar.radius|0),"width"in Ar&&(pn=Ar.width|0),"height"in Ar&&(Ir=Ar.height|0);"format"in Ar&&(Re.parameter(Ar.format,Jt,"invalid renderbuffer format"),fn=Jt[Ar.format])}else typeof cn=="number"?(pn=cn|0,typeof Tr=="number"?Ir=Tr|0:Ir=pn):cn?Re.raise("invalid arguments to renderbuffer constructor"):pn=Ir=1;if(Re(pn>0&&Ir>0&&pn<=Ye.maxRenderbufferSize&&Ir<=Ye.maxRenderbufferSize,"invalid renderbuffer size"),!(pn===Pt.width&&Ir===Pt.height&&fn===Pt.format))return ur.width=Pt.width=pn,ur.height=Pt.height=Ir,Pt.format=fn,W.bindRenderbuffer(Me,Pt.renderbuffer),W.renderbufferStorage(Me,fn,pn,Ir),Re(W.getError()===0,"invalid render buffer format"),vr.profile&&(Pt.stats.size=ss(Pt.format,Pt.width,Pt.height)),ur.format=Ut[Pt.format],ur}function Ur(cn,Tr){var pn=cn|0,Ir=Tr|0||pn;return pn===Pt.width&&Ir===Pt.height||(Re(pn>0&&Ir>0&&pn<=Ye.maxRenderbufferSize&&Ir<=Ye.maxRenderbufferSize,"invalid renderbuffer size"),ur.width=Pt.width=pn,ur.height=Pt.height=Ir,W.bindRenderbuffer(Me,Pt.renderbuffer),W.renderbufferStorage(Me,Pt.format,pn,Ir),Re(W.getError()===0,"invalid render buffer format"),vr.profile&&(Pt.stats.size=ss(Pt.format,Pt.width,Pt.height))),ur}return ur(kr,$r),ur.resize=Ur,ur._reglType="renderbuffer",ur._renderbuffer=Pt,vr.profile&&(ur.stats=Pt.stats),ur.destroy=function(){Pt.decRef()},ur}vr.profile&&(Kt.getTotalRenderbufferSize=function(){var kr=0;return Object.keys(Or).forEach(function($r){kr+=Or[$r].stats.size}),kr});function tn(){Ji(Or).forEach(function(kr){kr.renderbuffer=W.createRenderbuffer(),W.bindRenderbuffer(Me,kr.renderbuffer),W.renderbufferStorage(Me,kr.format,kr.width,kr.height)}),W.bindRenderbuffer(Me,null)}return{create:Wr,clear:function(){Ji(Or).forEach(Nr)},restore:tn}},Ba=36160,tu=36161,bu=3553,Eu=34069,oa=36064,yo=36096,Sh=36128,Ol=33306,zf=36053,cl=36054,xs=36055,ec=36057,Su=36061,Zf=36193,Rc=5121,sf=5126,Vf=6407,tc=6408,rc=6402,Ah=[Vf,tc],us=[];us[tc]=4,us[Vf]=3;var Au=[];Au[Rc]=1,Au[sf]=4,Au[Zf]=2;var uf=32854,kl=32855,uu=36194,Th=33189,ju=36168,jf=34041,wh=35907,h=34836,v=34842,p=34843,g=[uf,kl,uu,wh,v,p,h],S={};S[zf]="complete",S[cl]="incomplete attachment",S[ec]="incomplete dimensions",S[xs]="incomplete, missing attachment",S[Su]="unsupported";function w(W,Ce,Ye,Kt,vr,Jt){var Ut={cur:null,next:null,dirty:!1,setFBO:null},Br=["rgba"],Or=["rgba4","rgb565","rgb5 a1"];Ce.ext_srgb&&Or.push("srgba"),Ce.ext_color_buffer_half_float&&Or.push("rgba16f","rgb16f"),Ce.webgl_color_buffer_float&&Or.push("rgba32f");var Yr=["uint8"];Ce.oes_texture_half_float&&Yr.push("half float","float16"),Ce.oes_texture_float&&Yr.push("float","float32");function Nr(an,Lr,xr){this.target=an,this.texture=Lr,this.renderbuffer=xr;var er=0,Ti=0;Lr?(er=Lr.width,Ti=Lr.height):xr&&(er=xr.width,Ti=xr.height),this.width=er,this.height=Ti}function Wr(an){an&&(an.texture&&an.texture._texture.decRef(),an.renderbuffer&&an.renderbuffer._renderbuffer.decRef())}function tn(an,Lr,xr){if(an)if(an.texture){var er=an.texture._texture,Ti=Math.max(1,er.width),Ke=Math.max(1,er.height);Re(Ti===Lr&&Ke===xr,"inconsistent width/height for supplied texture"),er.refCount+=1}else{var _i=an.renderbuffer._renderbuffer;Re(_i.width===Lr&&_i.height===xr,"inconsistent width/height for renderbuffer"),_i.refCount+=1}}function kr(an,Lr){Lr&&(Lr.texture?W.framebufferTexture2D(Ba,an,Lr.target,Lr.texture._texture.texture,0):W.framebufferRenderbuffer(Ba,an,tu,Lr.renderbuffer._renderbuffer.renderbuffer))}function $r(an){var Lr=bu,xr=null,er=null,Ti=an;typeof an=="object"&&(Ti=an.data,"target"in an&&(Lr=an.target|0)),Re.type(Ti,"function","invalid attachment data");var Ke=Ti._reglType;return Ke==="texture2d"?(xr=Ti,Re(Lr===bu)):Ke==="textureCube"?(xr=Ti,Re(Lr>=Eu&&Lr=2,"invalid shape for framebuffer"),qn=cs[0],qi=cs[1]}else"radius"in gi&&(qn=qi=gi.radius),"width"in gi&&(qn=gi.width),"height"in gi&&(qi=gi.height);("color"in gi||"colors"in gi)&&(Ii=gi.color||gi.colors,Array.isArray(Ii)&&Re(Ii.length===1||Ce.webgl_draw_buffers,"multiple render targets not supported")),Ii||("colorCount"in gi&&(Eo=gi.colorCount|0,Re(Eo>0,"invalid color buffer count")),"colorTexture"in gi&&(xo=!!gi.colorTexture,Aa="rgba4"),"colorType"in gi&&(bo=gi.colorType,xo?(Re(Ce.oes_texture_float||!(bo==="float"||bo==="float32"),"you must enable OES_texture_float in order to use floating point framebuffer objects"),Re(Ce.oes_texture_half_float||!(bo==="half float"||bo==="float16"),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):bo==="half float"||bo==="float16"?(Re(Ce.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),Aa="rgba16f"):(bo==="float"||bo==="float32")&&(Re(Ce.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),Aa="rgba32f"),Re.oneOf(bo,Yr,"invalid color type")),"colorFormat"in gi&&(Aa=gi.colorFormat,Br.indexOf(Aa)>=0?xo=!0:Or.indexOf(Aa)>=0?xo=!1:xo?Re.oneOf(gi.colorFormat,Br,"invalid color format for texture"):Re.oneOf(gi.colorFormat,Or,"invalid color format for renderbuffer"))),("depthTexture"in gi||"depthStencilTexture"in gi)&&(So=!!(gi.depthTexture||gi.depthStencilTexture),Re(!So||Ce.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in gi&&(typeof gi.depth=="boolean"?vo=gi.depth:(Ga=gi.depth,mo=!1)),"stencil"in gi&&(typeof gi.stencil=="boolean"?mo=gi.stencil:(Fo=gi.stencil,vo=!1)),"depthStencil"in gi&&(typeof gi.depthStencil=="boolean"?vo=mo=gi.depthStencil:(Ts=gi.depthStencil,vo=!1,mo=!1))}var ia=null,Xn=null,Ri=null,Xi=null;if(Array.isArray(Ii))ia=Ii.map($r);else if(Ii)ia=[$r(Ii)];else for(ia=new Array(Eo),si=0;si=0||ia[si].renderbuffer&&g.indexOf(ia[si].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+si+" is invalid"),ia[si]&&ia[si].texture){var gl=us[ia[si].texture._texture.format]*Au[ia[si].texture._texture.type];Ao===null?Ao=gl:Re(Ao===gl,"all color attachments much have the same number of bits per pixel.")}return tn(Xn,qn,qi),Re(!Xn||Xn.texture&&Xn.texture._texture.format===rc||Xn.renderbuffer&&Xn.renderbuffer._renderbuffer.format===Th,"invalid depth attachment for framebuffer object"),tn(Ri,qn,qi),Re(!Ri||Ri.renderbuffer&&Ri.renderbuffer._renderbuffer.format===ju,"invalid stencil attachment for framebuffer object"),tn(Xi,qn,qi),Re(!Xi||Xi.texture&&Xi.texture._texture.format===jf||Xi.renderbuffer&&Xi.renderbuffer._renderbuffer.format===jf,"invalid depth-stencil attachment for framebuffer object"),Ir(xr),xr.width=qn,xr.height=qi,xr.colorAttachments=ia,xr.depthAttachment=Xn,xr.stencilAttachment=Ri,xr.depthStencilAttachment=Xi,er.color=ia.map(ur),er.depth=ur(Xn),er.stencil=ur(Ri),er.depthStencil=ur(Xi),er.width=xr.width,er.height=xr.height,Ar(xr),er}function Ti(Ke,_i){Re(Ut.next!==xr,"can not resize a framebuffer which is currently in use");var si=Math.max(Ke|0,1),qn=Math.max(_i|0||si,1);if(si===xr.width&&qn===xr.height)return er;for(var qi=xr.colorAttachments,vo=0;vo=2,"invalid shape for framebuffer"),Re(xo[0]===xo[1],"cube framebuffer must be square"),si=xo[0]}else"radius"in Ii&&(si=Ii.radius|0),"width"in Ii?(si=Ii.width|0,"height"in Ii&&Re(Ii.height===si,"must be square")):"height"in Ii&&(si=Ii.height|0);("color"in Ii||"colors"in Ii)&&(qn=Ii.color||Ii.colors,Array.isArray(qn)&&Re(qn.length===1||Ce.webgl_draw_buffers,"multiple render targets not supported")),qn||("colorCount"in Ii&&(mo=Ii.colorCount|0,Re(mo>0,"invalid color buffer count")),"colorType"in Ii&&(Re.oneOf(Ii.colorType,Yr,"invalid color type"),vo=Ii.colorType),"colorFormat"in Ii&&(qi=Ii.colorFormat,Re.oneOf(Ii.colorFormat,Br,"invalid color format for texture"))),"depth"in Ii&&(_i.depth=Ii.depth),"stencil"in Ii&&(_i.stencil=Ii.stencil),"depthStencil"in Ii&&(_i.depthStencil=Ii.depthStencil)}var Aa;if(qn)if(Array.isArray(qn))for(Aa=[],Ke=0;Ke0&&(_i.depth=Lr[0].depth,_i.stencil=Lr[0].stencil,_i.depthStencil=Lr[0].depthStencil),Lr[Ke]?Lr[Ke](_i):Lr[Ke]=un(_i)}return U(xr,{width:si,height:si,color:Aa})}function er(Ti){var Ke,_i=Ti|0;if(Re(_i>0&&_i<=Ye.maxCubeMapSize,"invalid radius for cube fbo"),_i===xr.width)return xr;var si=xr.color;for(Ke=0;Ke0,"must specify at least one attribute");for(var jn=0;jn=1&&xr.size<=4,"size must be between 1 and 4"),Re(xr.offset>=0,"invalid offset"),Re(xr.stride>=0&&xr.stride<=255,"stride must be between 0 and 255"),Re(xr.divisor>=0,"divisor must be positive"),Re(!xr.divisor||!!Ce.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in Lr?(Re(an>0,"first attribute must not be a constant"),xr.x=+Lr.x||0,xr.y=+Lr.y||0,xr.z=+Lr.z||0,xr.w=+Lr.w||0,xr.state=2):Re(!1,"invalid attribute spec for location "+an)}return fn.refresh(),Ar}return Ar.destroy=function(){fn.destroy()},Ar._vao=fn,Ar._reglType="vao",Ar(Ir)}return Nr}var me=35632,be=35633,Te=35718,je=35721;function Ze(W,Ce,Ye,Kt){var vr={},Jt={};function Ut(Pt,ur,Ur,cn){this.name=Pt,this.id=ur,this.location=Ur,this.info=cn}function Br(Pt,ur){for(var Ur=0;Ur1)for(var ai=0;aiPt&&(Pt=ur.stats.uniformsCount)}),Pt},Ye.getMaxAttributesCount=function(){var Pt=0;return Nr.forEach(function(ur){ur.stats.attributesCount>Pt&&(Pt=ur.stats.attributesCount)}),Pt});function $r(){vr={},Jt={};for(var Pt=0;Pt=0,"missing vertex shader",Ur),Re.command(ur>=0,"missing fragment shader",Ur);var Tr=Yr[ur];Tr||(Tr=Yr[ur]={});var pn=Tr[Pt];if(pn&&!cn)return pn;var Ir=new tn(ur,Pt);return Ye.shaderCount++,kr(Ir,Ur,cn),pn||(Tr[Pt]=Ir),Nr.push(Ir),Ir},restore:$r,shader:Or,frag:-1,vert:-1}}var lt=6408,Ne=5121,ot=3333,_t=5126;function Lt(W,Ce,Ye,Kt,vr,Jt,Ut){function Br(Nr){var Wr;Ce.next===null?(Re(vr.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),Wr=Ne):(Re(Ce.next.colorAttachments[0].texture!==null,"You cannot read from a renderbuffer"),Wr=Ce.next.colorAttachments[0].texture._texture.type,Jt.oes_texture_float?(Re(Wr===Ne||Wr===_t,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),Wr===_t&&Re(Ut.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):Re(Wr===Ne,"Reading from a framebuffer is only allowed for the type 'uint8'"));var tn=0,kr=0,$r=Kt.framebufferWidth,Pt=Kt.framebufferHeight,ur=null;ne(Nr)?ur=Nr:Nr&&(Re.type(Nr,"object","invalid arguments to regl.read()"),tn=Nr.x|0,kr=Nr.y|0,Re(tn>=0&&tn=0&&kr0&&$r+tn<=Kt.framebufferWidth,"invalid width for read pixels"),Re(Pt>0&&Pt+kr<=Kt.framebufferHeight,"invalid height for read pixels"),Ye();var Ur=$r*Pt*4;return ur||(Wr===Ne?ur=new Uint8Array(Ur):Wr===_t&&(ur=ur||new Float32Array(Ur))),Re.isTypedArray(ur,"data buffer for regl.read() must be a typedarray"),Re(ur.byteLength>=Ur,"data buffer for regl.read() too small"),W.pixelStorei(ot,4),W.readPixels(tn,kr,$r,Pt,lt,Wr,ur),ur}function Or(Nr){var Wr;return Ce.setFBO({framebuffer:Nr.framebuffer},function(){Wr=Br(Nr)}),Wr}function Yr(Nr){return!Nr||!("framebuffer"in Nr)?Br(Nr):Or(Nr)}return Yr}function ir(W){return Array.prototype.slice.call(W)}function qt(W){return ir(W).join("")}function cr(){var W=0,Ce=[],Ye=[];function Kt(Wr){for(var tn=0;tn0&&(Wr.push(Pt,"="),Wr.push.apply(Wr,ir(arguments)),Wr.push(";")),Pt}return U(tn,{def:$r,toString:function(){return qt([kr.length>0?"var "+kr.join(",")+";":"",qt(Wr)])}})}function Jt(){var Wr=vr(),tn=vr(),kr=Wr.toString,$r=tn.toString;function Pt(ur,Ur){tn(ur,Ur,"=",Wr.def(ur,Ur),";")}return U(function(){Wr.apply(Wr,ir(arguments))},{def:Wr.def,entry:Wr,exit:tn,save:Pt,set:function(ur,Ur,cn){Pt(ur,Ur),Wr(ur,Ur,"=",cn,";")},toString:function(){return kr()+$r()}})}function Ut(){var Wr=qt(arguments),tn=Jt(),kr=Jt(),$r=tn.toString,Pt=kr.toString;return U(tn,{then:function(){return tn.apply(tn,ir(arguments)),this},else:function(){return kr.apply(kr,ir(arguments)),this},toString:function(){var ur=Pt();return ur&&(ur="else{"+ur+"}"),qt(["if(",Wr,"){",$r(),"}",ur])}})}var Br=vr(),Or={};function Yr(Wr,tn){var kr=[];function $r(){var Tr="a"+kr.length;return kr.push(Tr),Tr}tn=tn||0;for(var Pt=0;Pt":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ws={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},zd={frag:ag,vert:zv},sc={cw:mp,ccw:Gp};function kh(W){return Array.isArray(W)||ne(W)||Sa(W)}function Yf(W){return W.sort(function(Ce,Ye){return Ce===Oo?-1:Ye===Oo?1:Ce=1,Kt>=2,Ce)}else if(Ye===gn){var vr=W.data;return new ls(vr.thisDep,vr.contextDep,vr.propDep,Ce)}else return new ls(Ye===zi,Ye===zn,Ye===Fn,Ce)}var Yp=new ls(!1,!1,!1,function(){});function cf(W,Ce,Ye,Kt,vr,Jt,Ut,Br,Or,Yr,Nr,Wr,tn,kr,$r){var Pt=Yr.Record,ur={add:32774,subtract:32778,"reverse subtract":32779};Ye.ext_blend_minmax&&(ur.min=Xp,ur.max=Ph);var Ur=Ye.angle_instanced_arrays,cn=Ye.webgl_draw_buffers,Tr={dirty:!0,profile:$r.profile},pn={},Ir=[],fn={},Ar={};function un(de){return de.replace(".","_")}function jn(de,Oe,$e){var Gt=un(de);Ir.push(de),pn[Gt]=Tr[Gt]=!!$e,fn[Gt]=Oe}function ai(de,Oe,$e){var Gt=un(de);Ir.push(de),Array.isArray($e)?(Tr[Gt]=$e.slice(),pn[Gt]=$e.slice()):Tr[Gt]=pn[Gt]=$e,Ar[Gt]=Oe}jn(ii,Pc),jn(pi,Dd),ai(ri,"blendColor",[0,0,0,0]),ai(Kn,"blendEquationSeparate",[Ud,Ud]),ai(fi,"blendFuncSeparate",[gp,Nd,gp,Nd]),jn(Qn,Zv,!0),ai(Gn,"depthFunc",Oh),ai(Io,"depthRange",[0,1]),ai(Qa,"depthMask",!0),ai(Po,Po,[!0,!0,!0,!0]),jn(_o,Mh),ai(Wa,"cullFace",Hs),ai(Ja,Ja,Gp),ai(bs,bs,1),jn(Es,og),ai(fl,"polygonOffset",[0,0]),jn(Ss,Vp),jn(lu,Bd),ai(Vs,"sampleCoverage",[1,!1]),jn(Mc,Ih),ai(Hu,"stencilMask",-1),ai(Tu,"stencilFunc",[ml,0,-1]),ai(nc,"stencilOpSeparate",[oc,Gu,Gu,Gu]),ai(hl,"stencilOpSeparate",[Hs,Gu,Gu,Gu]),jn(cu,Ld),ai(pl,"scissor",[0,0,W.drawingBufferWidth,W.drawingBufferHeight]),ai(Oo,Oo,[0,0,W.drawingBufferWidth,W.drawingBufferHeight]);var an={gl:W,context:tn,strings:Ce,next:pn,current:Tr,draw:Wr,elements:Jt,buffer:vr,shader:Nr,attributes:Yr.state,vao:Yr,uniforms:Or,framebuffer:Br,extensions:Ye,timer:kr,isBufferArgs:kh},Lr={primTypes:Fu,compareFuncs:Fc,blendFuncs:Xu,blendEquations:ur,stencilOps:Ws,glTypes:Ko,orientationType:sc};Re.optional(function(){an.isArrayLike=Va}),cn&&(Lr.backBuffer=[Hs],Lr.drawBuffer=dt(Kt.maxDrawbuffers,function(de){return de===0?[0]:dt(de,function(Oe){return $p+Oe})}));var xr=0;function er(){var de=cr(),Oe=de.link,$e=de.global;de.id=xr++,de.batchId="0";var Gt=Oe(an),Nt=de.shared={props:"a0"};Object.keys(an).forEach(function(pt){Nt[pt]=$e.def(Gt,".",pt)}),Re.optional(function(){de.CHECK=Oe(Re),de.commandStr=Re.guessCommand(),de.command=Oe(de.commandStr),de.assert=function(pt,Ie,mt){pt("if(!(",Ie,"))",this.CHECK,".commandRaise(",Oe(mt),",",this.command,");")},Lr.invalidBlendCombinations=yp});var ct=de.next={},yt=de.current={};Object.keys(Ar).forEach(function(pt){Array.isArray(Tr[pt])&&(ct[pt]=$e.def(Nt.next,".",pt),yt[pt]=$e.def(Nt.current,".",pt))});var xt=de.constants={};Object.keys(Lr).forEach(function(pt){xt[pt]=$e.def(JSON.stringify(Lr[pt]))}),de.invoke=function(pt,Ie){switch(Ie.type){case Un:var mt=["this",Nt.context,Nt.props,de.batchId];return pt.def(Oe(Ie.data),".call(",mt.slice(0,Math.max(Ie.data.length+1,4)),")");case Fn:return pt.def(Nt.props,Ie.data);case zn:return pt.def(Nt.context,Ie.data);case zi:return pt.def("this",Ie.data);case gn:return Ie.data.append(de,pt),Ie.data.ref}},de.attribCache={};var We={};return de.scopeAttrib=function(pt){var Ie=Ce.id(pt);if(Ie in We)return We[Ie];var mt=Yr.scope[Ie];mt||(mt=Yr.scope[Ie]=new Pt);var Ct=We[Ie]=Oe(mt);return Ct},de}function Ti(de){var Oe=de.static,$e=de.dynamic,Gt;if(ao in Oe){var Nt=!!Oe[ao];Gt=Bo(function(yt,xt){return Nt}),Gt.enable=Nt}else if(ao in $e){var ct=$e[ao];Gt=pu(ct,function(yt,xt){return yt.invoke(xt,ct)})}return Gt}function Ke(de,Oe){var $e=de.static,Gt=de.dynamic;if(Ps in $e){var Nt=$e[Ps];return Nt?(Nt=Br.getFramebuffer(Nt),Re.command(Nt,"invalid framebuffer object"),Bo(function(yt,xt){var We=yt.link(Nt),pt=yt.shared;xt.set(pt.framebuffer,".next",We);var Ie=pt.context;return xt.set(Ie,"."+Dr,We+".width"),xt.set(Ie,"."+js,We+".height"),We})):Bo(function(yt,xt){var We=yt.shared;xt.set(We.framebuffer,".next","null");var pt=We.context;return xt.set(pt,"."+Dr,pt+"."+Lo),xt.set(pt,"."+js,pt+"."+pp),"null"})}else if(Ps in Gt){var ct=Gt[Ps];return pu(ct,function(yt,xt){var We=yt.invoke(xt,ct),pt=yt.shared,Ie=pt.framebuffer,mt=xt.def(Ie,".getFramebuffer(",We,")");Re.optional(function(){yt.assert(xt,"!"+We+"||"+mt,"invalid framebuffer object")}),xt.set(Ie,".next",mt);var Ct=pt.context;return xt.set(Ct,"."+Dr,mt+"?"+mt+".width:"+Ct+"."+Lo),xt.set(Ct,"."+js,mt+"?"+mt+".height:"+Ct+"."+pp),mt})}else return null}function _i(de,Oe,$e){var Gt=de.static,Nt=de.dynamic;function ct(We){if(We in Gt){var pt=Gt[We];Re.commandType(pt,"object","invalid "+We,$e.commandStr);var Ie=!0,mt=pt.x|0,Ct=pt.y|0,hr,Cr;return"width"in pt?(hr=pt.width|0,Re.command(hr>=0,"invalid "+We,$e.commandStr)):Ie=!1,"height"in pt?(Cr=pt.height|0,Re.command(Cr>=0,"invalid "+We,$e.commandStr)):Ie=!1,new ls(!Ie&&Oe&&Oe.thisDep,!Ie&&Oe&&Oe.contextDep,!Ie&&Oe&&Oe.propDep,function(On,Sn){var Tn=On.shared.context,$n=hr;"width"in pt||($n=Sn.def(Tn,".",Dr,"-",mt));var ni=Cr;return"height"in pt||(ni=Sn.def(Tn,".",js,"-",Ct)),[mt,Ct,$n,ni]})}else if(We in Nt){var Er=Nt[We],wr=pu(Er,function(On,Sn){var Tn=On.invoke(Sn,Er);Re.optional(function(){On.assert(Sn,Tn+"&&typeof "+Tn+'==="object"',"invalid "+We)});var $n=On.shared.context,ni=Sn.def(Tn,".x|0"),aa=Sn.def(Tn,".y|0"),No=Sn.def('"width" in ',Tn,"?",Tn,".width|0:","(",$n,".",Dr,"-",ni,")"),$u=Sn.def('"height" in ',Tn,"?",Tn,".height|0:","(",$n,".",js,"-",aa,")");return Re.optional(function(){On.assert(Sn,No+">=0&&"+$u+">=0","invalid "+We)}),[ni,aa,No,$u]});return Oe&&(wr.thisDep=wr.thisDep||Oe.thisDep,wr.contextDep=wr.contextDep||Oe.contextDep,wr.propDep=wr.propDep||Oe.propDep),wr}else return Oe?new ls(Oe.thisDep,Oe.contextDep,Oe.propDep,function(On,Sn){var Tn=On.shared.context;return[0,0,Sn.def(Tn,".",Dr),Sn.def(Tn,".",js)]}):null}var yt=ct(Oo);if(yt){var xt=yt;yt=new ls(yt.thisDep,yt.contextDep,yt.propDep,function(We,pt){var Ie=xt.append(We,pt),mt=We.shared.context;return pt.set(mt,"."+Rh,Ie[2]),pt.set(mt,"."+Do,Ie[3]),Ie})}return{viewport:yt,scissor_box:ct(pl)}}function si(de,Oe){var $e=de.static,Gt=typeof $e[wu]=="string"&&typeof $e[fu]=="string";if(Gt){if(Object.keys(Oe.dynamic).length>0)return null;var Nt=Oe.static,ct=Object.keys(Nt);if(ct.length>0&&typeof Nt[ct[0]]=="number"){for(var yt=[],xt=0;xt=0,"invalid "+Ie,Oe.commandStr),Bo(function(Cr,Er){return mt&&(Cr.OFFSET=Ct),Ct})}else if(Ie in Gt){var hr=Gt[Ie];return pu(hr,function(Cr,Er){var wr=Cr.invoke(Er,hr);return mt&&(Cr.OFFSET=wr,Re.optional(function(){Cr.assert(Er,wr+">=0","invalid "+Ie)})),wr})}else if(mt&&ct)return Bo(function(Cr,Er){return Cr.OFFSET="0",0});return null}var We=xt(hu,!0);function pt(){if(oo in $e){var Ie=$e[oo]|0;return Re.command(typeof Ie=="number"&&Ie>=0,"invalid vertex count",Oe.commandStr),Bo(function(){return Ie})}else if(oo in Gt){var mt=Gt[oo];return pu(mt,function(Cr,Er){var wr=Cr.invoke(Er,mt);return Re.optional(function(){Cr.assert(Er,"typeof "+wr+'==="number"&&'+wr+">=0&&"+wr+"===("+wr+"|0)","invalid vertex count")}),wr})}else if(ct)if(As(ct)){if(ct)return We?new ls(We.thisDep,We.contextDep,We.propDep,function(Cr,Er){var wr=Er.def(Cr.ELEMENTS,".vertCount-",Cr.OFFSET);return Re.optional(function(){Cr.assert(Er,wr+">=0","invalid vertex offset/element buffer too small")}),wr}):Bo(function(Cr,Er){return Er.def(Cr.ELEMENTS,".vertCount")});var Ct=Bo(function(){return-1});return Re.optional(function(){Ct.MISSING=!0}),Ct}else{var hr=new ls(ct.thisDep||We.thisDep,ct.contextDep||We.contextDep,ct.propDep||We.propDep,function(Cr,Er){var wr=Cr.ELEMENTS;return Cr.OFFSET?Er.def(wr,"?",wr,".vertCount-",Cr.OFFSET,":-1"):Er.def(wr,"?",wr,".vertCount:-1")});return Re.optional(function(){hr.DYNAMIC=!0}),hr}return null}return{elements:ct,primitive:yt(),count:pt(),instances:xt(Ic,!1),offset:We}}function vo(de,Oe){var $e=de.static,Gt=de.dynamic,Nt={};return Ir.forEach(function(ct){var yt=un(ct);function xt(We,pt){if(ct in $e){var Ie=We($e[ct]);Nt[yt]=Bo(function(){return Ie})}else if(ct in Gt){var mt=Gt[ct];Nt[yt]=pu(mt,function(Ct,hr){return pt(Ct,hr,Ct.invoke(hr,mt))})}}switch(ct){case _o:case pi:case ii:case Mc:case Qn:case cu:case Es:case Ss:case lu:case Qa:return xt(function(We){return Re.commandType(We,"boolean",ct,Oe.commandStr),We},function(We,pt,Ie){return Re.optional(function(){We.assert(pt,"typeof "+Ie+'==="boolean"',"invalid flag "+ct,We.commandStr)}),Ie});case Gn:return xt(function(We){return Re.commandParameter(We,Fc,"invalid "+ct,Oe.commandStr),Fc[We]},function(We,pt,Ie){var mt=We.constants.compareFuncs;return Re.optional(function(){We.assert(pt,Ie+" in "+mt,"invalid "+ct+", must be one of "+Object.keys(Fc))}),pt.def(mt,"[",Ie,"]")});case Io:return xt(function(We){return Re.command(Va(We)&&We.length===2&&typeof We[0]=="number"&&typeof We[1]=="number"&&We[0]<=We[1],"depth range is 2d array",Oe.commandStr),We},function(We,pt,Ie){Re.optional(function(){We.assert(pt,We.shared.isArrayLike+"("+Ie+")&&"+Ie+".length===2&&typeof "+Ie+'[0]==="number"&&typeof '+Ie+'[1]==="number"&&'+Ie+"[0]<="+Ie+"[1]","depth range must be a 2d array")});var mt=pt.def("+",Ie,"[0]"),Ct=pt.def("+",Ie,"[1]");return[mt,Ct]});case fi:return xt(function(We){Re.commandType(We,"object","blend.func",Oe.commandStr);var pt="srcRGB"in We?We.srcRGB:We.src,Ie="srcAlpha"in We?We.srcAlpha:We.src,mt="dstRGB"in We?We.dstRGB:We.dst,Ct="dstAlpha"in We?We.dstAlpha:We.dst;return Re.commandParameter(pt,Xu,yt+".srcRGB",Oe.commandStr),Re.commandParameter(Ie,Xu,yt+".srcAlpha",Oe.commandStr),Re.commandParameter(mt,Xu,yt+".dstRGB",Oe.commandStr),Re.commandParameter(Ct,Xu,yt+".dstAlpha",Oe.commandStr),Re.command(yp.indexOf(pt+", "+mt)===-1,"unallowed blending combination (srcRGB, dstRGB) = ("+pt+", "+mt+")",Oe.commandStr),[Xu[pt],Xu[mt],Xu[Ie],Xu[Ct]]},function(We,pt,Ie){var mt=We.constants.blendFuncs;Re.optional(function(){We.assert(pt,Ie+"&&typeof "+Ie+'==="object"',"invalid blend func, must be an object")});function Ct(Tn,$n){var ni=pt.def('"',Tn,$n,'" in ',Ie,"?",Ie,".",Tn,$n,":",Ie,".",Tn);return Re.optional(function(){We.assert(pt,ni+" in "+mt,"invalid "+ct+"."+Tn+$n+", must be one of "+Object.keys(Xu))}),ni}var hr=Ct("src","RGB"),Cr=Ct("dst","RGB");Re.optional(function(){var Tn=We.constants.invalidBlendCombinations;We.assert(pt,Tn+".indexOf("+hr+'+", "+'+Cr+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")});var Er=pt.def(mt,"[",hr,"]"),wr=pt.def(mt,"[",Ct("src","Alpha"),"]"),On=pt.def(mt,"[",Cr,"]"),Sn=pt.def(mt,"[",Ct("dst","Alpha"),"]");return[Er,On,wr,Sn]});case Kn:return xt(function(We){if(typeof We=="string")return Re.commandParameter(We,ur,"invalid "+ct,Oe.commandStr),[ur[We],ur[We]];if(typeof We=="object")return Re.commandParameter(We.rgb,ur,ct+".rgb",Oe.commandStr),Re.commandParameter(We.alpha,ur,ct+".alpha",Oe.commandStr),[ur[We.rgb],ur[We.alpha]];Re.commandRaise("invalid blend.equation",Oe.commandStr)},function(We,pt,Ie){var mt=We.constants.blendEquations,Ct=pt.def(),hr=pt.def(),Cr=We.cond("typeof ",Ie,'==="string"');return Re.optional(function(){function Er(wr,On,Sn){We.assert(wr,Sn+" in "+mt,"invalid "+On+", must be one of "+Object.keys(ur))}Er(Cr.then,ct,Ie),We.assert(Cr.else,Ie+"&&typeof "+Ie+'==="object"',"invalid "+ct),Er(Cr.else,ct+".rgb",Ie+".rgb"),Er(Cr.else,ct+".alpha",Ie+".alpha")}),Cr.then(Ct,"=",hr,"=",mt,"[",Ie,"];"),Cr.else(Ct,"=",mt,"[",Ie,".rgb];",hr,"=",mt,"[",Ie,".alpha];"),pt(Cr),[Ct,hr]});case ri:return xt(function(We){return Re.command(Va(We)&&We.length===4,"blend.color must be a 4d array",Oe.commandStr),dt(4,function(pt){return+We[pt]})},function(We,pt,Ie){return Re.optional(function(){We.assert(pt,We.shared.isArrayLike+"("+Ie+")&&"+Ie+".length===4","blend.color must be a 4d array")}),dt(4,function(mt){return pt.def("+",Ie,"[",mt,"]")})});case Hu:return xt(function(We){return Re.commandType(We,"number",yt,Oe.commandStr),We|0},function(We,pt,Ie){return Re.optional(function(){We.assert(pt,"typeof "+Ie+'==="number"',"invalid stencil.mask")}),pt.def(Ie,"|0")});case Tu:return xt(function(We){Re.commandType(We,"object",yt,Oe.commandStr);var pt=We.cmp||"keep",Ie=We.ref||0,mt="mask"in We?We.mask:-1;return Re.commandParameter(pt,Fc,ct+".cmp",Oe.commandStr),Re.commandType(Ie,"number",ct+".ref",Oe.commandStr),Re.commandType(mt,"number",ct+".mask",Oe.commandStr),[Fc[pt],Ie,mt]},function(We,pt,Ie){var mt=We.constants.compareFuncs;Re.optional(function(){function Er(){We.assert(pt,Array.prototype.join.call(arguments,""),"invalid stencil.func")}Er(Ie+"&&typeof ",Ie,'==="object"'),Er('!("cmp" in ',Ie,")||(",Ie,".cmp in ",mt,")")});var Ct=pt.def('"cmp" in ',Ie,"?",mt,"[",Ie,".cmp]",":",Gu),hr=pt.def(Ie,".ref|0"),Cr=pt.def('"mask" in ',Ie,"?",Ie,".mask|0:-1");return[Ct,hr,Cr]});case nc:case hl:return xt(function(We){Re.commandType(We,"object",yt,Oe.commandStr);var pt=We.fail||"keep",Ie=We.zfail||"keep",mt=We.zpass||"keep";return Re.commandParameter(pt,Ws,ct+".fail",Oe.commandStr),Re.commandParameter(Ie,Ws,ct+".zfail",Oe.commandStr),Re.commandParameter(mt,Ws,ct+".zpass",Oe.commandStr),[ct===hl?Hs:oc,Ws[pt],Ws[Ie],Ws[mt]]},function(We,pt,Ie){var mt=We.constants.stencilOps;Re.optional(function(){We.assert(pt,Ie+"&&typeof "+Ie+'==="object"',"invalid "+ct)});function Ct(hr){return Re.optional(function(){We.assert(pt,'!("'+hr+'" in '+Ie+")||("+Ie+"."+hr+" in "+mt+")","invalid "+ct+"."+hr+", must be one of "+Object.keys(Ws))}),pt.def('"',hr,'" in ',Ie,"?",mt,"[",Ie,".",hr,"]:",Gu)}return[ct===hl?Hs:oc,Ct("fail"),Ct("zfail"),Ct("zpass")]});case fl:return xt(function(We){Re.commandType(We,"object",yt,Oe.commandStr);var pt=We.factor|0,Ie=We.units|0;return Re.commandType(pt,"number",yt+".factor",Oe.commandStr),Re.commandType(Ie,"number",yt+".units",Oe.commandStr),[pt,Ie]},function(We,pt,Ie){Re.optional(function(){We.assert(pt,Ie+"&&typeof "+Ie+'==="object"',"invalid "+ct)});var mt=pt.def(Ie,".factor|0"),Ct=pt.def(Ie,".units|0");return[mt,Ct]});case Wa:return xt(function(We){var pt=0;return We==="front"?pt=oc:We==="back"&&(pt=Hs),Re.command(!!pt,yt,Oe.commandStr),pt},function(We,pt,Ie){return Re.optional(function(){We.assert(pt,Ie+'==="front"||'+Ie+'==="back"',"invalid cull.face")}),pt.def(Ie,'==="front"?',oc,":",Hs)});case bs:return xt(function(We){return Re.command(typeof We=="number"&&We>=Kt.lineWidthDims[0]&&We<=Kt.lineWidthDims[1],"invalid line width, must be a positive number between "+Kt.lineWidthDims[0]+" and "+Kt.lineWidthDims[1],Oe.commandStr),We},function(We,pt,Ie){return Re.optional(function(){We.assert(pt,"typeof "+Ie+'==="number"&&'+Ie+">="+Kt.lineWidthDims[0]+"&&"+Ie+"<="+Kt.lineWidthDims[1],"invalid line width")}),Ie});case Ja:return xt(function(We){return Re.commandParameter(We,sc,yt,Oe.commandStr),sc[We]},function(We,pt,Ie){return Re.optional(function(){We.assert(pt,Ie+'==="cw"||'+Ie+'==="ccw"',"invalid frontFace, must be one of cw,ccw")}),pt.def(Ie+'==="cw"?'+mp+":"+Gp)});case Po:return xt(function(We){return Re.command(Va(We)&&We.length===4,"color.mask must be length 4 array",Oe.commandStr),We.map(function(pt){return!!pt})},function(We,pt,Ie){return Re.optional(function(){We.assert(pt,We.shared.isArrayLike+"("+Ie+")&&"+Ie+".length===4","invalid color.mask")}),dt(4,function(mt){return"!!"+Ie+"["+mt+"]"})});case Vs:return xt(function(We){Re.command(typeof We=="object"&&We,yt,Oe.commandStr);var pt="value"in We?We.value:1,Ie=!!We.invert;return Re.command(typeof pt=="number"&&pt>=0&&pt<=1,"sample.coverage.value must be a number between 0 and 1",Oe.commandStr),[pt,Ie]},function(We,pt,Ie){Re.optional(function(){We.assert(pt,Ie+"&&typeof "+Ie+'==="object"',"invalid sample.coverage")});var mt=pt.def('"value" in ',Ie,"?+",Ie,".value:1"),Ct=pt.def("!!",Ie,".invert");return[mt,Ct]})}}),Nt}function mo(de,Oe){var $e=de.static,Gt=de.dynamic,Nt={};return Object.keys($e).forEach(function(ct){var yt=$e[ct],xt;if(typeof yt=="number"||typeof yt=="boolean")xt=Bo(function(){return yt});else if(typeof yt=="function"){var We=yt._reglType;We==="texture2d"||We==="textureCube"?xt=Bo(function(pt){return pt.link(yt)}):We==="framebuffer"||We==="framebufferCube"?(Re.command(yt.color.length>0,'missing color attachment for framebuffer sent to uniform "'+ct+'"',Oe.commandStr),xt=Bo(function(pt){return pt.link(yt.color[0])})):Re.commandRaise('invalid data for uniform "'+ct+'"',Oe.commandStr)}else Va(yt)?xt=Bo(function(pt){var Ie=pt.global.def("[",dt(yt.length,function(mt){return Re.command(typeof yt[mt]=="number"||typeof yt[mt]=="boolean","invalid uniform "+ct,pt.commandStr),yt[mt]}),"]");return Ie}):Re.commandRaise('invalid or missing data for uniform "'+ct+'"',Oe.commandStr);xt.value=yt,Nt[ct]=xt}),Object.keys(Gt).forEach(function(ct){var yt=Gt[ct];Nt[ct]=pu(yt,function(xt,We){return xt.invoke(We,yt)})}),Nt}function Ii(de,Oe){var $e=de.static,Gt=de.dynamic,Nt={};return Object.keys($e).forEach(function(ct){var yt=$e[ct],xt=Ce.id(ct),We=new Pt;if(kh(yt))We.state=Fr,We.buffer=vr.getBuffer(vr.create(yt,dl,!1,!0)),We.type=0;else{var pt=vr.getBuffer(yt);if(pt)We.state=Fr,We.buffer=pt,We.type=0;else if(Re.command(typeof yt=="object"&&yt,"invalid data for attribute "+ct,Oe.commandStr),"constant"in yt){var Ie=yt.constant;We.buffer="null",We.state=hn,typeof Ie=="number"?We.x=Ie:(Re.command(Va(Ie)&&Ie.length>0&&Ie.length<=4,"invalid constant for attribute "+ct,Oe.commandStr),br.forEach(function(On,Sn){Sn=0,'invalid offset for attribute "'+ct+'"',Oe.commandStr);var Ct=yt.stride|0;Re.command(Ct>=0&&Ct<256,'invalid stride for attribute "'+ct+'", must be integer betweeen [0, 255]',Oe.commandStr);var hr=yt.size|0;Re.command(!("size"in yt)||hr>0&&hr<=4,'invalid size for attribute "'+ct+'", must be 1,2,3,4',Oe.commandStr);var Cr=!!yt.normalized,Er=0;"type"in yt&&(Re.commandParameter(yt.type,Ko,"invalid type for attribute "+ct,Oe.commandStr),Er=Ko[yt.type]);var wr=yt.divisor|0;"divisor"in yt&&(Re.command(wr===0||Ur,'cannot specify divisor for attribute "'+ct+'", instancing not supported',Oe.commandStr),Re.command(wr>=0,'invalid divisor for attribute "'+ct+'"',Oe.commandStr)),Re.optional(function(){var On=Oe.commandStr,Sn=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(yt).forEach(function(Tn){Re.command(Sn.indexOf(Tn)>=0,'unknown parameter "'+Tn+'" for attribute pointer "'+ct+'" (valid parameters are '+Sn+")",On)})}),We.buffer=pt,We.state=Fr,We.size=hr,We.normalized=Cr,We.type=Er||pt.dtype,We.offset=mt,We.stride=Ct,We.divisor=wr}}Nt[ct]=Bo(function(On,Sn){var Tn=On.attribCache;if(xt in Tn)return Tn[xt];var $n={isStream:!1};return Object.keys(We).forEach(function(ni){$n[ni]=We[ni]}),We.buffer&&($n.buffer=On.link(We.buffer),$n.type=$n.type||$n.buffer+".dtype"),Tn[xt]=$n,$n})}),Object.keys(Gt).forEach(function(ct){var yt=Gt[ct];function xt(We,pt){var Ie=We.invoke(pt,yt),mt=We.shared,Ct=We.constants,hr=mt.isBufferArgs,Cr=mt.buffer;Re.optional(function(){We.assert(pt,Ie+"&&(typeof "+Ie+'==="object"||typeof '+Ie+'==="function")&&('+hr+"("+Ie+")||"+Cr+".getBuffer("+Ie+")||"+Cr+".getBuffer("+Ie+".buffer)||"+hr+"("+Ie+'.buffer)||("constant" in '+Ie+"&&(typeof "+Ie+'.constant==="number"||'+mt.isArrayLike+"("+Ie+".constant))))",'invalid dynamic attribute "'+ct+'"')});var Er={isStream:pt.def(!1)},wr=new Pt;wr.state=Fr,Object.keys(wr).forEach(function($n){Er[$n]=pt.def(""+wr[$n])});var On=Er.buffer,Sn=Er.type;pt("if(",hr,"(",Ie,")){",Er.isStream,"=true;",On,"=",Cr,".createStream(",dl,",",Ie,");",Sn,"=",On,".dtype;","}else{",On,"=",Cr,".getBuffer(",Ie,");","if(",On,"){",Sn,"=",On,".dtype;",'}else if("constant" in ',Ie,"){",Er.state,"=",hn,";","if(typeof "+Ie+'.constant === "number"){',Er[br[0]],"=",Ie,".constant;",br.slice(1).map(function($n){return Er[$n]}).join("="),"=0;","}else{",br.map(function($n,ni){return Er[$n]+"="+Ie+".constant.length>"+ni+"?"+Ie+".constant["+ni+"]:0;"}).join(""),"}}else{","if(",hr,"(",Ie,".buffer)){",On,"=",Cr,".createStream(",dl,",",Ie,".buffer);","}else{",On,"=",Cr,".getBuffer(",Ie,".buffer);","}",Sn,'="type" in ',Ie,"?",Ct.glTypes,"[",Ie,".type]:",On,".dtype;",Er.normalized,"=!!",Ie,".normalized;");function Tn($n){pt(Er[$n],"=",Ie,".",$n,"|0;")}return Tn("size"),Tn("offset"),Tn("stride"),Tn("divisor"),pt("}}"),pt.exit("if(",Er.isStream,"){",Cr,".destroyStream(",On,");","}"),Er}Nt[ct]=pu(yt,xt)}),Nt}function xo(de,Oe){var $e=de.static,Gt=de.dynamic;if(Wu in $e){var Nt=$e[Wu];return Nt!==null&&Yr.getVAO(Nt)===null&&(Nt=Yr.createVAO(Nt)),Bo(function(yt){return yt.link(Yr.getVAO(Nt))})}else if(Wu in Gt){var ct=Gt[Wu];return pu(ct,function(yt,xt){var We=yt.invoke(xt,ct);return xt.def(yt.shared.vao+".getVAO("+We+")")})}return null}function Aa(de){var Oe=de.static,$e=de.dynamic,Gt={};return Object.keys(Oe).forEach(function(Nt){var ct=Oe[Nt];Gt[Nt]=Bo(function(yt,xt){return typeof ct=="number"||typeof ct=="boolean"?""+ct:yt.link(ct)})}),Object.keys($e).forEach(function(Nt){var ct=$e[Nt];Gt[Nt]=pu(ct,function(yt,xt){return yt.invoke(xt,ct)})}),Gt}function bo(de,Oe,$e,Gt,Nt){var ct=de.static,yt=de.dynamic;Re.optional(function(){var Tn=[Ps,fu,wu,Fi,Jo,hu,oo,Ic,ao,Wu].concat(Ir);function $n(ni){Object.keys(ni).forEach(function(aa){Re.command(Tn.indexOf(aa)>=0,'unknown parameter "'+aa+'"',Nt.commandStr)})}$n(ct),$n(yt)});var xt=si(de,Oe),We=Ke(de,Nt),pt=_i(de,We,Nt),Ie=qi(de,Nt),mt=vo(de,Nt),Ct=qn(de,Nt,xt);function hr(Tn){var $n=pt[Tn];$n&&(mt[Tn]=$n)}hr(Oo),hr(un(pl));var Cr=Object.keys(mt).length>0,Er={framebuffer:We,draw:Ie,shader:Ct,state:mt,dirty:Cr,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Er.profile=Ti(de,Nt),Er.uniforms=mo($e,Nt),Er.drawVAO=Er.scopeVAO=xo(de,Nt),!Er.drawVAO&&Ct.program&&!xt&&Ye.angle_instanced_arrays){var wr=!0,On=Ct.program.attributes.map(function(Tn){var $n=Oe.static[Tn];return wr=wr&&!!$n,$n});if(wr&&On.length>0){var Sn=Yr.getVAO(Yr.createVAO(On));Er.drawVAO=new ls(null,null,null,function(Tn,$n){return Tn.link(Sn)}),Er.useVAO=!0}}return xt?Er.useVAO=!0:Er.attributes=Ii(Oe,Nt),Er.context=Aa(Gt,Nt),Er}function Eo(de,Oe,$e){var Gt=de.shared,Nt=Gt.context,ct=de.scope();Object.keys($e).forEach(function(yt){Oe.save(Nt,"."+yt);var xt=$e[yt];ct(Nt,".",yt,"=",xt.append(de,Oe),";")}),Oe(ct)}function Ga(de,Oe,$e,Gt){var Nt=de.shared,ct=Nt.gl,yt=Nt.framebuffer,xt;cn&&(xt=Oe.def(Nt.extensions,".webgl_draw_buffers"));var We=de.constants,pt=We.drawBuffer,Ie=We.backBuffer,mt;$e?mt=$e.append(de,Oe):mt=Oe.def(yt,".next"),Gt||Oe("if(",mt,"!==",yt,".cur){"),Oe("if(",mt,"){",ct,".bindFramebuffer(",Bc,",",mt,".framebuffer);"),cn&&Oe(xt,".drawBuffersWEBGL(",pt,"[",mt,".colorAttachments.length]);"),Oe("}else{",ct,".bindFramebuffer(",Bc,",null);"),cn&&Oe(xt,".drawBuffersWEBGL(",Ie,");"),Oe("}",yt,".cur=",mt,";"),Gt||Oe("}")}function Fo(de,Oe,$e){var Gt=de.shared,Nt=Gt.gl,ct=de.current,yt=de.next,xt=Gt.current,We=Gt.next,pt=de.cond(xt,".dirty");Ir.forEach(function(Ie){var mt=un(Ie);if(!(mt in $e.state)){var Ct,hr;if(mt in yt){Ct=yt[mt],hr=ct[mt];var Cr=dt(Tr[mt].length,function(wr){return pt.def(Ct,"[",wr,"]")});pt(de.cond(Cr.map(function(wr,On){return wr+"!=="+hr+"["+On+"]"}).join("||")).then(Nt,".",Ar[mt],"(",Cr,");",Cr.map(function(wr,On){return hr+"["+On+"]="+wr}).join(";"),";"))}else{Ct=pt.def(We,".",mt);var Er=de.cond(Ct,"!==",xt,".",mt);pt(Er),mt in fn?Er(de.cond(Ct).then(Nt,".enable(",fn[mt],");").else(Nt,".disable(",fn[mt],");"),xt,".",mt,"=",Ct,";"):Er(Nt,".",Ar[mt],"(",Ct,");",xt,".",mt,"=",Ct,";")}}}),Object.keys($e.state).length===0&&pt(xt,".dirty=false;"),Oe(pt)}function Ts(de,Oe,$e,Gt){var Nt=de.shared,ct=de.current,yt=Nt.current,xt=Nt.gl;Yf(Object.keys($e)).forEach(function(We){var pt=$e[We];if(!(Gt&&!Gt(pt))){var Ie=pt.append(de,Oe);if(fn[We]){var mt=fn[We];As(pt)?Ie?Oe(xt,".enable(",mt,");"):Oe(xt,".disable(",mt,");"):Oe(de.cond(Ie).then(xt,".enable(",mt,");").else(xt,".disable(",mt,");")),Oe(yt,".",We,"=",Ie,";")}else if(Va(Ie)){var Ct=ct[We];Oe(xt,".",Ar[We],"(",Ie,");",Ie.map(function(hr,Cr){return Ct+"["+Cr+"]="+hr}).join(";"),";")}else Oe(xt,".",Ar[We],"(",Ie,");",yt,".",We,"=",Ie,";")}})}function So(de,Oe){Ur&&(de.instancing=Oe.def(de.shared.extensions,".angle_instanced_arrays"))}function gi(de,Oe,$e,Gt,Nt){var ct=de.shared,yt=de.stats,xt=ct.current,We=ct.timer,pt=$e.profile;function Ie(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var mt,Ct;function hr(Tn){mt=Oe.def(),Tn(mt,"=",Ie(),";"),typeof Nt=="string"?Tn(yt,".count+=",Nt,";"):Tn(yt,".count++;"),kr&&(Gt?(Ct=Oe.def(),Tn(Ct,"=",We,".getNumPendingQueries();")):Tn(We,".beginQuery(",yt,");"))}function Cr(Tn){Tn(yt,".cpuTime+=",Ie(),"-",mt,";"),kr&&(Gt?Tn(We,".pushScopeStats(",Ct,",",We,".getNumPendingQueries(),",yt,");"):Tn(We,".endQuery();"))}function Er(Tn){var $n=Oe.def(xt,".profile");Oe(xt,".profile=",Tn,";"),Oe.exit(xt,".profile=",$n,";")}var wr;if(pt){if(As(pt)){pt.enable?(hr(Oe),Cr(Oe.exit),Er("true")):Er("false");return}wr=pt.append(de,Oe),Er(wr)}else wr=Oe.def(xt,".profile");var On=de.block();hr(On),Oe("if(",wr,"){",On,"}");var Sn=de.block();Cr(Sn),Oe.exit("if(",wr,"){",Sn,"}")}function cs(de,Oe,$e,Gt,Nt){var ct=de.shared;function yt(We){switch(We){case jp:case Hp:case vl:return 2;case Dl:case eo:case lf:return 3;case vp:case Wf:case kc:return 4;default:return 1}}function xt(We,pt,Ie){var mt=ct.gl,Ct=Oe.def(We,".location"),hr=Oe.def(ct.attributes,"[",Ct,"]"),Cr=Ie.state,Er=Ie.buffer,wr=[Ie.x,Ie.y,Ie.z,Ie.w],On=["buffer","normalized","offset","stride"];function Sn(){Oe("if(!",hr,".buffer){",mt,".enableVertexAttribArray(",Ct,");}");var $n=Ie.type,ni;if(Ie.size?ni=Oe.def(Ie.size,"||",pt):ni=pt,Oe("if(",hr,".type!==",$n,"||",hr,".size!==",ni,"||",On.map(function(No){return hr+"."+No+"!=="+Ie[No]}).join("||"),"){",mt,".bindBuffer(",dl,",",Er,".buffer);",mt,".vertexAttribPointer(",[Ct,ni,$n,Ie.normalized,Ie.stride,Ie.offset],");",hr,".type=",$n,";",hr,".size=",ni,";",On.map(function(No){return hr+"."+No+"="+Ie[No]+";"}).join(""),"}"),Ur){var aa=Ie.divisor;Oe("if(",hr,".divisor!==",aa,"){",de.instancing,".vertexAttribDivisorANGLE(",[Ct,aa],");",hr,".divisor=",aa,";}")}}function Tn(){Oe("if(",hr,".buffer){",mt,".disableVertexAttribArray(",Ct,");",hr,".buffer=null;","}if(",br.map(function($n,ni){return hr+"."+$n+"!=="+wr[ni]}).join("||"),"){",mt,".vertexAttrib4f(",Ct,",",wr,");",br.map(function($n,ni){return hr+"."+$n+"="+wr[ni]+";"}).join(""),"}")}Cr===Fr?Sn():Cr===hn?Tn():(Oe("if(",Cr,"===",Fr,"){"),Sn(),Oe("}else{"),Tn(),Oe("}"))}Gt.forEach(function(We){var pt=We.name,Ie=$e.attributes[pt],mt;if(Ie){if(!Nt(Ie))return;mt=Ie.append(de,Oe)}else{if(!Nt(Yp))return;var Ct=de.scopeAttrib(pt);Re.optional(function(){de.assert(Oe,Ct+".state","missing attribute "+pt)}),mt={},Object.keys(new Pt).forEach(function(hr){mt[hr]=Oe.def(Ct,".",hr)})}xt(de.link(We),yt(We.info.type),mt)})}function ia(de,Oe,$e,Gt,Nt){for(var ct=de.shared,yt=ct.gl,xt,We=0;We1?Oe(dt($n,function($u){return Er+"["+$u+"]"})):Oe(Er);Oe(");")}}function Xn(de,Oe,$e,Gt){var Nt=de.shared,ct=Nt.gl,yt=Nt.draw,xt=Gt.draw;function We(){var ni=xt.elements,aa,No=Oe;return ni?((ni.contextDep&&Gt.contextDynamic||ni.propDep)&&(No=$e),aa=ni.append(de,No)):aa=No.def(yt,".",Fi),aa&&No("if("+aa+")"+ct+".bindBuffer("+Zp+","+aa+".buffer.buffer);"),aa}function pt(){var ni=xt.count,aa,No=Oe;return ni?((ni.contextDep&&Gt.contextDynamic||ni.propDep)&&(No=$e),aa=ni.append(de,No),Re.optional(function(){ni.MISSING&&de.assert(Oe,"false","missing vertex count"),ni.DYNAMIC&&de.assert(No,aa+">=0","missing vertex count")})):(aa=No.def(yt,".",oo),Re.optional(function(){de.assert(No,aa+">=0","missing vertex count")})),aa}var Ie=We();function mt(ni){var aa=xt[ni];return aa?aa.contextDep&&Gt.contextDynamic||aa.propDep?aa.append(de,$e):aa.append(de,Oe):Oe.def(yt,".",ni)}var Ct=mt(Jo),hr=mt(hu),Cr=pt();if(typeof Cr=="number"){if(Cr===0)return}else $e("if(",Cr,"){"),$e.exit("}");var Er,wr;Ur&&(Er=mt(Ic),wr=de.instancing);var On=Ie+".type",Sn=xt.elements&&As(xt.elements);function Tn(){function ni(){$e(wr,".drawElementsInstancedANGLE(",[Ct,Cr,On,hr+"<<(("+On+"-"+Hr+")>>1)",Er],");")}function aa(){$e(wr,".drawArraysInstancedANGLE(",[Ct,hr,Cr,Er],");")}Ie?Sn?ni():($e("if(",Ie,"){"),ni(),$e("}else{"),aa(),$e("}")):aa()}function $n(){function ni(){$e(ct+".drawElements("+[Ct,Cr,On,hr+"<<(("+On+"-"+Hr+")>>1)"]+");")}function aa(){$e(ct+".drawArrays("+[Ct,hr,Cr]+");")}Ie?Sn?ni():($e("if(",Ie,"){"),ni(),$e("}else{"),aa(),$e("}")):aa()}Ur&&(typeof Er!="number"||Er>=0)?typeof Er=="string"?($e("if(",Er,">0){"),Tn(),$e("}else if(",Er,"<0){"),$n(),$e("}")):Tn():$n()}function Ri(de,Oe,$e,Gt,Nt){var ct=er(),yt=ct.proc("body",Nt);return Re.optional(function(){ct.commandStr=Oe.commandStr,ct.command=ct.link(Oe.commandStr)}),Ur&&(ct.instancing=yt.def(ct.shared.extensions,".angle_instanced_arrays")),de(ct,yt,$e,Gt),ct.compile().body}function Xi(de,Oe,$e,Gt){So(de,Oe),$e.useVAO?$e.drawVAO?Oe(de.shared.vao,".setVAO(",$e.drawVAO.append(de,Oe),");"):Oe(de.shared.vao,".setVAO(",de.shared.vao,".targetVAO);"):(Oe(de.shared.vao,".setVAO(null);"),cs(de,Oe,$e,Gt.attributes,function(){return!0})),ia(de,Oe,$e,Gt.uniforms,function(){return!0}),Xn(de,Oe,Oe,$e)}function Ao(de,Oe){var $e=de.proc("draw",1);So(de,$e),Eo(de,$e,Oe.context),Ga(de,$e,Oe.framebuffer),Fo(de,$e,Oe),Ts(de,$e,Oe.state),gi(de,$e,Oe,!1,!0);var Gt=Oe.shader.progVar.append(de,$e);if($e(de.shared.gl,".useProgram(",Gt,".program);"),Oe.shader.program)Xi(de,$e,Oe,Oe.shader.program);else{$e(de.shared.vao,".setVAO(null);");var Nt=de.global.def("{}"),ct=$e.def(Gt,".id"),yt=$e.def(Nt,"[",ct,"]");$e(de.cond(yt).then(yt,".call(this,a0);").else(yt,"=",Nt,"[",ct,"]=",de.link(function(xt){return Ri(Xi,de,Oe,xt,1)}),"(",Gt,");",yt,".call(this,a0);"))}Object.keys(Oe.state).length>0&&$e(de.shared.current,".dirty=true;")}function gl(de,Oe,$e,Gt){de.batchId="a1",So(de,Oe);function Nt(){return!0}cs(de,Oe,$e,Gt.attributes,Nt),ia(de,Oe,$e,Gt.uniforms,Nt),Xn(de,Oe,Oe,$e)}function He(de,Oe,$e,Gt){So(de,Oe);var Nt=$e.contextDep,ct=Oe.def(),yt="a0",xt="a1",We=Oe.def();de.shared.props=We,de.batchId=ct;var pt=de.scope(),Ie=de.scope();Oe(pt.entry,"for(",ct,"=0;",ct,"<",xt,";++",ct,"){",We,"=",yt,"[",ct,"];",Ie,"}",pt.exit);function mt(On){return On.contextDep&&Nt||On.propDep}function Ct(On){return!mt(On)}if($e.needsContext&&Eo(de,Ie,$e.context),$e.needsFramebuffer&&Ga(de,Ie,$e.framebuffer),Ts(de,Ie,$e.state,mt),$e.profile&&mt($e.profile)&&gi(de,Ie,$e,!1,!0),Gt)$e.useVAO?$e.drawVAO?mt($e.drawVAO)?Ie(de.shared.vao,".setVAO(",$e.drawVAO.append(de,Ie),");"):pt(de.shared.vao,".setVAO(",$e.drawVAO.append(de,pt),");"):pt(de.shared.vao,".setVAO(",de.shared.vao,".targetVAO);"):(pt(de.shared.vao,".setVAO(null);"),cs(de,pt,$e,Gt.attributes,Ct),cs(de,Ie,$e,Gt.attributes,mt)),ia(de,pt,$e,Gt.uniforms,Ct),ia(de,Ie,$e,Gt.uniforms,mt),Xn(de,pt,Ie,$e);else{var hr=de.global.def("{}"),Cr=$e.shader.progVar.append(de,Ie),Er=Ie.def(Cr,".id"),wr=Ie.def(hr,"[",Er,"]");Ie(de.shared.gl,".useProgram(",Cr,".program);","if(!",wr,"){",wr,"=",hr,"[",Er,"]=",de.link(function(On){return Ri(gl,de,$e,On,2)}),"(",Cr,");}",wr,".call(this,a0[",ct,"],",ct,");")}}function rr(de,Oe){var $e=de.proc("batch",2);de.batchId="0",So(de,$e);var Gt=!1,Nt=!0;Object.keys(Oe.context).forEach(function(hr){Gt=Gt||Oe.context[hr].propDep}),Gt||(Eo(de,$e,Oe.context),Nt=!1);var ct=Oe.framebuffer,yt=!1;ct?(ct.propDep?Gt=yt=!0:ct.contextDep&&Gt&&(yt=!0),yt||Ga(de,$e,ct)):Ga(de,$e,null),Oe.state.viewport&&Oe.state.viewport.propDep&&(Gt=!0);function xt(hr){return hr.contextDep&&Gt||hr.propDep}Fo(de,$e,Oe),Ts(de,$e,Oe.state,function(hr){return!xt(hr)}),(!Oe.profile||!xt(Oe.profile))&&gi(de,$e,Oe,!1,"a1"),Oe.contextDep=Gt,Oe.needsContext=Nt,Oe.needsFramebuffer=yt;var We=Oe.shader.progVar;if(We.contextDep&&Gt||We.propDep)He(de,$e,Oe,null);else{var pt=We.append(de,$e);if($e(de.shared.gl,".useProgram(",pt,".program);"),Oe.shader.program)He(de,$e,Oe,Oe.shader.program);else{$e(de.shared.vao,".setVAO(null);");var Ie=de.global.def("{}"),mt=$e.def(pt,".id"),Ct=$e.def(Ie,"[",mt,"]");$e(de.cond(Ct).then(Ct,".call(this,a0,a1);").else(Ct,"=",Ie,"[",mt,"]=",de.link(function(hr){return Ri(He,de,Oe,hr,2)}),"(",pt,");",Ct,".call(this,a0,a1);"))}}Object.keys(Oe.state).length>0&&$e(de.shared.current,".dirty=true;")}function Ht(de,Oe){var $e=de.proc("scope",3);de.batchId="a2";var Gt=de.shared,Nt=Gt.current;Eo(de,$e,Oe.context),Oe.framebuffer&&Oe.framebuffer.append(de,$e),Yf(Object.keys(Oe.state)).forEach(function(yt){var xt=Oe.state[yt],We=xt.append(de,$e);Va(We)?We.forEach(function(pt,Ie){$e.set(de.next[yt],"["+Ie+"]",pt)}):$e.set(Gt.next,"."+yt,We)}),gi(de,$e,Oe,!0,!0),[Fi,hu,oo,Ic,Jo].forEach(function(yt){var xt=Oe.draw[yt];xt&&$e.set(Gt.draw,"."+yt,""+xt.append(de,$e))}),Object.keys(Oe.uniforms).forEach(function(yt){$e.set(Gt.uniforms,"["+Ce.id(yt)+"]",Oe.uniforms[yt].append(de,$e))}),Object.keys(Oe.attributes).forEach(function(yt){var xt=Oe.attributes[yt].append(de,$e),We=de.scopeAttrib(yt);Object.keys(new Pt).forEach(function(pt){$e.set(We,"."+pt,xt[pt])})}),Oe.scopeVAO&&$e.set(Gt.vao,".targetVAO",Oe.scopeVAO.append(de,$e));function ct(yt){var xt=Oe.shader[yt];xt&&$e.set(Gt.shader,"."+yt,xt.append(de,$e))}ct(fu),ct(wu),Object.keys(Oe.state).length>0&&($e(Nt,".dirty=true;"),$e.exit(Nt,".dirty=true;")),$e("a1(",de.shared.context,",a0,",de.batchId,");")}function dn(de){if(!(typeof de!="object"||Va(de))){for(var Oe=Object.keys(de),$e=0;$e=0;--Xn){var Ri=xr[Xn];Ri&&Ri(kr,null,0)}Ye.flush(),Yr&&Yr.update()}function qn(){!_i&&xr.length>0&&(_i=Ln.next(si))}function qi(){_i&&(Ln.cancel(si),_i=null)}function vo(Xn){Xn.preventDefault(),vr=!0,qi(),er.forEach(function(Ri){Ri()})}function mo(Xn){Ye.getError(),vr=!1,Jt.restore(),Ir.restore(),Ur.restore(),fn.restore(),Ar.restore(),un.restore(),cn.restore(),Yr&&Yr.restore(),jn.procs.refresh(),qn(),Ti.forEach(function(Ri){Ri()})}Lr&&(Lr.addEventListener(Qp,vo,!1),Lr.addEventListener(qf,mo,!1));function Ii(){xr.length=0,qi(),Lr&&(Lr.removeEventListener(Qp,vo),Lr.removeEventListener(qf,mo)),Ir.clear(),un.clear(),Ar.clear(),fn.clear(),pn.clear(),Ur.clear(),cn.clear(),Yr&&Yr.clear(),Ke.forEach(function(Xn){Xn()})}function xo(Xn){Re(!!Xn,"invalid args to regl({...})"),Re.type(Xn,"object","invalid args to regl({...})");function Ri(Nt){var ct=U({},Nt);delete ct.uniforms,delete ct.attributes,delete ct.context,delete ct.vao,"stencil"in ct&&ct.stencil.op&&(ct.stencil.opBack=ct.stencil.opFront=ct.stencil.op,delete ct.stencil.op);function yt(xt){if(xt in ct){var We=ct[xt];delete ct[xt],Object.keys(We).forEach(function(pt){ct[xt+"."+pt]=We[pt]})}}return yt("blend"),yt("depth"),yt("cull"),yt("stencil"),yt("polygonOffset"),yt("scissor"),yt("sample"),"vao"in Nt&&(ct.vao=Nt.vao),ct}function Xi(Nt){var ct={},yt={};return Object.keys(Nt).forEach(function(xt){var We=Nt[xt];en.isDynamic(We)?yt[xt]=en.unbox(We,xt):ct[xt]=We}),{dynamic:yt,static:ct}}var Ao=Xi(Xn.context||{}),gl=Xi(Xn.uniforms||{}),He=Xi(Xn.attributes||{}),rr=Xi(Ri(Xn)),Ht={gpuTime:0,cpuTime:0,count:0},dn=jn.compile(rr,He,gl,Ao,Ht),xi=dn.draw,ya=dn.batch,de=dn.scope,Oe=[];function $e(Nt){for(;Oe.length0)return ya.call(this,$e(Nt|0),Nt|0)}else if(Array.isArray(Nt)){if(Nt.length)return ya.call(this,Nt,Nt.length)}else return xi.call(this,Nt)}return U(Gt,{stats:Ht})}var Aa=un.setFBO=xo({framebuffer:en.define.call(null,Jp,"framebuffer")});function bo(Xn,Ri){var Xi=0;jn.procs.poll();var Ao=Ri.color;Ao&&(Ye.clearColor(+Ao[0]||0,+Ao[1]||0,+Ao[2]||0,+Ao[3]||0),Xi|=jd),"depth"in Ri&&(Ye.clearDepth(+Ri.depth),Xi|=Os),"stencil"in Ri&&(Ye.clearStencil(Ri.stencil|0),Xi|=_p),Re(!!Xi,"called regl.clear with no buffer specified"),Ye.clear(Xi)}function Eo(Xn){if(Re(typeof Xn=="object"&&Xn,"regl.clear() takes an object as input"),"framebuffer"in Xn)if(Xn.framebuffer&&Xn.framebuffer_reglType==="framebufferCube")for(var Ri=0;Ri<6;++Ri)Aa(U({framebuffer:Xn.framebuffer.faces[Ri]},Xn),bo);else Aa(Xn,bo);else bo(null,Xn)}function Ga(Xn){Re.type(Xn,"function","regl.frame() callback must be a function"),xr.push(Xn);function Ri(){var Xi=Hd(xr,Xn);Re(Xi>=0,"cannot cancel a frame twice");function Ao(){var gl=Hd(xr,Ao);xr[gl]=xr[xr.length-1],xr.length-=1,xr.length<=0&&qi()}xr[Xi]=Ao}return qn(),{cancel:Ri}}function Fo(){var Xn=an.viewport,Ri=an.scissor_box;Xn[0]=Xn[1]=Ri[0]=Ri[1]=0,kr.viewportWidth=kr.framebufferWidth=kr.drawingBufferWidth=Xn[2]=Ri[2]=Ye.drawingBufferWidth,kr.viewportHeight=kr.framebufferHeight=kr.drawingBufferHeight=Xn[3]=Ri[3]=Ye.drawingBufferHeight}function Ts(){kr.tick+=1,kr.time=gi(),Fo(),jn.procs.poll()}function So(){Fo(),jn.procs.refresh(),Yr&&Yr.update()}function gi(){return(Gi()-Nr)/1e3}So();function cs(Xn,Ri){Re.type(Ri,"function","listener callback must be a function");var Xi;switch(Xn){case"frame":return Ga(Ri);case"lost":Xi=er;break;case"restore":Xi=Ti;break;case"destroy":Xi=Ke;break;default:Re.raise("invalid event, must be one of frame,lost,restore,destroy")}return Xi.push(Ri),{cancel:function(){for(var Ao=0;Ao=0},read:ai,destroy:Ii,_gl:Ye,_refresh:So,poll:function(){Ts(),Yr&&Yr.update()},now:gi,stats:Br});return Ce.onDone(null,ia),ia}return Wd})},48096:function(sr){(function(ne,U){sr.exports=U()})(this,function(){"use strict";function ne(Mt,ft,kt,qe,Dt,dr){if(!(Dt-qe<=kt)){var oe=qe+Dt>>1;U(Mt,ft,oe,qe,Dt,dr%2),ne(Mt,ft,kt,qe,oe-1,dr+1),ne(Mt,ft,kt,oe+1,Dt,dr+1)}}function U(Mt,ft,kt,qe,Dt,dr){for(;Dt>qe;){if(Dt-qe>600){var oe=Dt-qe+1,H=kt-qe+1,re=Math.log(oe),Be=.5*Math.exp(2*re/3),we=.5*Math.sqrt(re*Be*(oe-Be)/oe)*(H-oe/2<0?-1:1),ut=Math.max(qe,Math.floor(kt-H*Be/oe+we)),ie=Math.min(Dt,Math.floor(kt+(oe-H)*Be/oe+we));U(Mt,ft,kt,ut,ie,dr)}var Le=ft[2*kt+dr],Pe=qe,Ge=Dt;for(te(Mt,ft,qe,kt),ft[2*Dt+dr]>Le&&te(Mt,ft,qe,Dt);PeLe;)Ge--}ft[2*qe+dr]===Le?te(Mt,ft,qe,Ge):(Ge++,te(Mt,ft,Ge,Dt)),Ge<=kt&&(qe=Ge+1),kt<=Ge&&(Dt=Ge-1)}}function te(Mt,ft,kt,qe){ye(Mt,kt,qe),ye(ft,2*kt,2*qe),ye(ft,2*kt+1,2*qe+1)}function ye(Mt,ft,kt){var qe=Mt[ft];Mt[ft]=Mt[kt],Mt[kt]=qe}function y(Mt,ft,kt,qe,Dt,dr,oe){for(var H=[0,Mt.length-1,0],re=[],Be,we;H.length;){var ut=H.pop(),ie=H.pop(),Le=H.pop();if(ie-Le<=oe){for(var Pe=Le;Pe<=ie;Pe++)Be=ft[2*Pe],we=ft[2*Pe+1],Be>=kt&&Be<=Dt&&we>=qe&&we<=dr&&re.push(Mt[Pe]);continue}var Ge=Math.floor((Le+ie)/2);Be=ft[2*Ge],we=ft[2*Ge+1],Be>=kt&&Be<=Dt&&we>=qe&&we<=dr&&re.push(Mt[Ge]);var Vt=(ut+1)%2;(ut===0?kt<=Be:qe<=we)&&(H.push(Le),H.push(Ge-1),H.push(Vt)),(ut===0?Dt>=Be:dr>=we)&&(H.push(Ge+1),H.push(ie),H.push(Vt))}return re}function he(Mt,ft,kt,qe,Dt,dr){for(var oe=[0,Mt.length-1,0],H=[],re=Dt*Dt;oe.length;){var Be=oe.pop(),we=oe.pop(),ut=oe.pop();if(we-ut<=dr){for(var ie=ut;ie<=we;ie++)Z(ft[2*ie],ft[2*ie+1],kt,qe)<=re&&H.push(Mt[ie]);continue}var Le=Math.floor((ut+we)/2),Pe=ft[2*Le],Ge=ft[2*Le+1];Z(Pe,Ge,kt,qe)<=re&&H.push(Mt[Le]);var Vt=(Be+1)%2;(Be===0?kt-Dt<=Pe:qe-Dt<=Ge)&&(oe.push(ut),oe.push(Le-1),oe.push(Vt)),(Be===0?kt+Dt>=Pe:qe+Dt>=Ge)&&(oe.push(Le+1),oe.push(we),oe.push(Vt))}return H}function Z(Mt,ft,kt,qe){var Dt=Mt-kt,dr=ft-qe;return Dt*Dt+dr*dr}var pe=function(Mt){return Mt[0]},fe=function(Mt){return Mt[1]},it=function(ft,kt,qe,Dt,dr){kt===void 0&&(kt=pe),qe===void 0&&(qe=fe),Dt===void 0&&(Dt=64),dr===void 0&&(dr=Float64Array),this.nodeSize=Dt,this.points=ft;for(var oe=ft.length<65536?Uint16Array:Uint32Array,H=this.ids=new oe(ft.length),re=this.coords=new dr(ft.length*2),Be=0;Be=Dt;we--){var ut=+Date.now();re=this._cluster(re,we),this.trees[we]=new it(re,gr,fr,oe,Float32Array),qe&&console.log("z%d: %d clusters in %dms",we,re.length,+Date.now()-ut)}return qe&&console.timeEnd("total time"),this},vt.prototype.getClusters=function(ft,kt){var qe=((ft[0]+180)%360+360)%360-180,Dt=Math.max(-90,Math.min(90,ft[1])),dr=ft[2]===180?180:((ft[2]+180)%360+360)%360-180,oe=Math.max(-90,Math.min(90,ft[3]));if(ft[2]-ft[0]>=360)qe=-180,dr=180;else if(qe>dr){var H=this.getClusters([qe,Dt,180,oe],kt),re=this.getClusters([-180,Dt,dr,oe],kt);return H.concat(re)}for(var Be=this.trees[this._limitZoom(kt)],we=Be.range(ar(qe),Zt(oe),ar(dr),Zt(Dt)),ut=[],ie=0,Le=we;iekt&&(Ge+=on.numPoints||1)}if(Ge>Pe&&Ge>=re){for(var Mr=ut.x*Pe,Dn=ut.y*Pe,bn=H&&Pe>1?this._map(ut,!0):null,rn=(we<<5)+(kt+1)+this.points.length,yi=0,ti=Le;yi1)for(var sa=0,ki=Le;sa>5},vt.prototype._getOriginZoom=function(ft){return(ft-this.points.length)%32},vt.prototype._map=function(ft,kt){if(ft.numPoints)return kt?Rr({},ft.properties):ft.properties;var qe=this.points[ft.index].properties,Dt=this.options.map(qe);return kt&&Dt===qe?Rr({},Dt):Dt};function tt(Mt,ft,kt,qe,Dt){return{x:rt(Mt),y:rt(ft),zoom:1/0,id:kt,parentId:-1,numPoints:qe,properties:Dt}}function Ot(Mt,ft){var kt=Mt.geometry.coordinates,qe=kt[0],Dt=kt[1];return{x:rt(ar(qe)),y:rt(Zt(Dt)),zoom:1/0,index:ft,parentId:-1}}function Xt(Mt){return{type:"Feature",id:Mt.id,properties:Yt(Mt),geometry:{type:"Point",coordinates:[bt(Mt.x),St(Mt.y)]}}}function Yt(Mt){var ft=Mt.numPoints,kt=ft>=1e4?Math.round(ft/1e3)+"k":ft>=1e3?Math.round(ft/100)/10+"k":ft;return Rr(Rr({},Mt.properties),{cluster:!0,cluster_id:Mt.id,point_count:ft,point_count_abbreviated:kt})}function ar(Mt){return Mt/360+.5}function Zt(Mt){var ft=Math.sin(Mt*Math.PI/180),kt=.5-.25*Math.log((1+ft)/(1-ft))/Math.PI;return kt<0?0:kt>1?1:kt}function bt(Mt){return(Mt-.5)*360}function St(Mt){var ft=(180-Mt*360)*Math.PI/180;return 360*Math.atan(Math.exp(ft))/Math.PI-90}function Rr(Mt,ft){for(var kt in ft)Mt[kt]=ft[kt];return Mt}function gr(Mt){return Mt.x}function fr(Mt){return Mt.y}return vt})},39918:function(sr,ne,U){var te=U(91157).default;function ye(){"use strict";sr.exports=ye=function(){return he},sr.exports.__esModule=!0,sr.exports.default=sr.exports;var y,he={},Z=Object.prototype,pe=Z.hasOwnProperty,fe=Object.defineProperty||function(ie,Le,Pe){ie[Le]=Pe.value},it=typeof Symbol=="function"?Symbol:{},ce=it.iterator||"@@iterator",rt=it.asyncIterator||"@@asyncIterator",vt=it.toStringTag||"@@toStringTag";function tt(ie,Le,Pe){return Object.defineProperty(ie,Le,{value:Pe,enumerable:!0,configurable:!0,writable:!0}),ie[Le]}try{tt({},"")}catch(ie){tt=function(Pe,Ge,Vt){return Pe[Ge]=Vt}}function Ot(ie,Le,Pe,Ge){var Vt=Le&&Le.prototype instanceof Rr?Le:Rr,Et=Object.create(Vt.prototype),Jr=new we(Ge||[]);return fe(Et,"_invoke",{value:oe(ie,Pe,Jr)}),Et}function Xt(ie,Le,Pe){try{return{type:"normal",arg:ie.call(Le,Pe)}}catch(Ge){return{type:"throw",arg:Ge}}}he.wrap=Ot;var Yt="suspendedStart",ar="suspendedYield",Zt="executing",bt="completed",St={};function Rr(){}function gr(){}function fr(){}var Mt={};tt(Mt,ce,function(){return this});var ft=Object.getPrototypeOf,kt=ft&&ft(ft(ut([])));kt&&kt!==Z&&pe.call(kt,ce)&&(Mt=kt);var qe=fr.prototype=Rr.prototype=Object.create(Mt);function Dt(ie){["next","throw","return"].forEach(function(Le){tt(ie,Le,function(Pe){return this._invoke(Le,Pe)})})}function dr(ie,Le){function Pe(Vt,Et,Jr,on){var Mr=Xt(ie[Vt],ie,Et);if(Mr.type!=="throw"){var Dn=Mr.arg,bn=Dn.value;return bn&&te(bn)=="object"&&pe.call(bn,"__await")?Le.resolve(bn.__await).then(function(rn){Pe("next",rn,Jr,on)},function(rn){Pe("throw",rn,Jr,on)}):Le.resolve(bn).then(function(rn){Dn.value=rn,Jr(Dn)},function(rn){return Pe("throw",rn,Jr,on)})}on(Mr.arg)}var Ge;fe(this,"_invoke",{value:function(Et,Jr){function on(){return new Le(function(Mr,Dn){Pe(Et,Jr,Mr,Dn)})}return Ge=Ge?Ge.then(on,on):on()}})}function oe(ie,Le,Pe){var Ge=Yt;return function(Vt,Et){if(Ge===Zt)throw new Error("Generator is already running");if(Ge===bt){if(Vt==="throw")throw Et;return{value:y,done:!0}}for(Pe.method=Vt,Pe.arg=Et;;){var Jr=Pe.delegate;if(Jr){var on=H(Jr,Pe);if(on){if(on===St)continue;return on}}if(Pe.method==="next")Pe.sent=Pe._sent=Pe.arg;else if(Pe.method==="throw"){if(Ge===Yt)throw Ge=bt,Pe.arg;Pe.dispatchException(Pe.arg)}else Pe.method==="return"&&Pe.abrupt("return",Pe.arg);Ge=Zt;var Mr=Xt(ie,Le,Pe);if(Mr.type==="normal"){if(Ge=Pe.done?bt:ar,Mr.arg===St)continue;return{value:Mr.arg,done:Pe.done}}Mr.type==="throw"&&(Ge=bt,Pe.method="throw",Pe.arg=Mr.arg)}}}function H(ie,Le){var Pe=Le.method,Ge=ie.iterator[Pe];if(Ge===y)return Le.delegate=null,Pe==="throw"&&ie.iterator.return&&(Le.method="return",Le.arg=y,H(ie,Le),Le.method==="throw")||Pe!=="return"&&(Le.method="throw",Le.arg=new TypeError("The iterator does not provide a '"+Pe+"' method")),St;var Vt=Xt(Ge,ie.iterator,Le.arg);if(Vt.type==="throw")return Le.method="throw",Le.arg=Vt.arg,Le.delegate=null,St;var Et=Vt.arg;return Et?Et.done?(Le[ie.resultName]=Et.value,Le.next=ie.nextLoc,Le.method!=="return"&&(Le.method="next",Le.arg=y),Le.delegate=null,St):Et:(Le.method="throw",Le.arg=new TypeError("iterator result is not an object"),Le.delegate=null,St)}function re(ie){var Le={tryLoc:ie[0]};1 in ie&&(Le.catchLoc=ie[1]),2 in ie&&(Le.finallyLoc=ie[2],Le.afterLoc=ie[3]),this.tryEntries.push(Le)}function Be(ie){var Le=ie.completion||{};Le.type="normal",delete Le.arg,ie.completion=Le}function we(ie){this.tryEntries=[{tryLoc:"root"}],ie.forEach(re,this),this.reset(!0)}function ut(ie){if(ie||ie===""){var Le=ie[ce];if(Le)return Le.call(ie);if(typeof ie.next=="function")return ie;if(!isNaN(ie.length)){var Pe=-1,Ge=function Vt(){for(;++Pe=0;--Vt){var Et=this.tryEntries[Vt],Jr=Et.completion;if(Et.tryLoc==="root")return Ge("end");if(Et.tryLoc<=this.prev){var on=pe.call(Et,"catchLoc"),Mr=pe.call(Et,"finallyLoc");if(on&&Mr){if(this.prev=0;--Ge){var Vt=this.tryEntries[Ge];if(Vt.tryLoc<=this.prev&&pe.call(Vt,"finallyLoc")&&this.prev=0;--Pe){var Ge=this.tryEntries[Pe];if(Ge.finallyLoc===Le)return this.complete(Ge.completion,Ge.afterLoc),Be(Ge),St}},catch:function(Le){for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var Ge=this.tryEntries[Pe];if(Ge.tryLoc===Le){var Vt=Ge.completion;if(Vt.type==="throw"){var Et=Vt.arg;Be(Ge)}return Et}}throw new Error("illegal catch attempt")},delegateYield:function(Le,Pe,Ge){return this.delegate={iterator:ut(Le),resultName:Pe,nextLoc:Ge},this.method==="next"&&(this.arg=y),St}},he}sr.exports=ye,sr.exports.__esModule=!0,sr.exports.default=sr.exports},91157:function(sr){function ne(U){"@babel/helpers - typeof";return sr.exports=ne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(te){return typeof te}:function(te){return te&&typeof Symbol=="function"&&te.constructor===Symbol&&te!==Symbol.prototype?"symbol":typeof te},sr.exports.__esModule=!0,sr.exports.default=sr.exports,ne(U)}sr.exports=ne,sr.exports.__esModule=!0,sr.exports.default=sr.exports},22887:function(sr,ne,U){var te=U(39918)();sr.exports=te;try{regeneratorRuntime=te}catch(ye){typeof globalThis=="object"?globalThis.regeneratorRuntime=te:Function("r","regeneratorRuntime = r")(te)}},13351:function(sr,ne,U){var te;(function(ye){(function(y){var he=typeof globalThis=="object"?globalThis:typeof U.g=="object"?U.g:typeof self=="object"?self:typeof this=="object"?this:ce(),Z=pe(ye);typeof he.Reflect!="undefined"&&(Z=pe(he.Reflect,Z)),y(Z,he),typeof he.Reflect=="undefined"&&(he.Reflect=ye);function pe(rt,vt){return function(tt,Ot){Object.defineProperty(rt,tt,{configurable:!0,writable:!0,value:Ot}),vt&&vt(tt,Ot)}}function fe(){try{return Function("return this;")()}catch(rt){}}function it(){try{return(0,eval)("(function() { return this; })()")}catch(rt){}}function ce(){return fe()||it()}})(function(y,he){var Z=Object.prototype.hasOwnProperty,pe=typeof Symbol=="function",fe=pe&&typeof Symbol.toPrimitive!="undefined"?Symbol.toPrimitive:"@@toPrimitive",it=pe&&typeof Symbol.iterator!="undefined"?Symbol.iterator:"@@iterator",ce=typeof Object.create=="function",rt={__proto__:[]}instanceof Array,vt=!ce&&!rt,tt={create:ce?function(){return Gi(Object.create(null))}:rt?function(){return Gi({__proto__:null})}:function(){return Gi({})},has:vt?function(ue,k){return Z.call(ue,k)}:function(ue,k){return k in ue},get:vt?function(ue,k){return Z.call(ue,k)?ue[k]:void 0}:function(ue,k){return ue[k]}},Ot=Object.getPrototypeOf(Function),Xt=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Vr(),Yt=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:en(),ar=typeof WeakMap=="function"?WeakMap:Ln(),Zt=pe?Symbol.for("@reflect-metadata:registry"):void 0,bt=ho(),St=Zo(bt);function Rr(ue,k,z,ae){if(Et(z)){if(!Zi(ue))throw new TypeError;if(!Rn(k))throw new TypeError;return H(ue,k)}else{if(!Zi(ue))throw new TypeError;if(!Mr(k))throw new TypeError;if(!Mr(ae)&&!Et(ae)&&!Jr(ae))throw new TypeError;return Jr(ae)&&(ae=void 0),z=ti(z),re(ue,k,z,ae)}}y("decorate",Rr);function gr(ue,k){function z(ae,Ee){if(!Mr(ae))throw new TypeError;if(!Et(Ee)&&!sa(Ee))throw new TypeError;Le(ue,k,ae,Ee)}return z}y("metadata",gr);function fr(ue,k,z,ae){if(!Mr(z))throw new TypeError;return Et(ae)||(ae=ti(ae)),Le(ue,k,z,ae)}y("defineMetadata",fr);function Mt(ue,k,z){if(!Mr(k))throw new TypeError;return Et(z)||(z=ti(z)),Be(ue,k,z)}y("hasMetadata",Mt);function ft(ue,k,z){if(!Mr(k))throw new TypeError;return Et(z)||(z=ti(z)),we(ue,k,z)}y("hasOwnMetadata",ft);function kt(ue,k,z){if(!Mr(k))throw new TypeError;return Et(z)||(z=ti(z)),ut(ue,k,z)}y("getMetadata",kt);function qe(ue,k,z){if(!Mr(k))throw new TypeError;return Et(z)||(z=ti(z)),ie(ue,k,z)}y("getOwnMetadata",qe);function Dt(ue,k){if(!Mr(ue))throw new TypeError;return Et(k)||(k=ti(k)),Pe(ue,k)}y("getMetadataKeys",Dt);function dr(ue,k){if(!Mr(ue))throw new TypeError;return Et(k)||(k=ti(k)),Ge(ue,k)}y("getOwnMetadataKeys",dr);function oe(ue,k,z){if(!Mr(k))throw new TypeError;if(Et(z)||(z=ti(z)),!Mr(k))throw new TypeError;Et(z)||(z=ti(z));var ae=pr(k,z,!1);return Et(ae)?!1:ae.OrdinaryDeleteMetadata(ue,k,z)}y("deleteMetadata",oe);function H(ue,k){for(var z=ue.length-1;z>=0;--z){var ae=ue[z],Ee=ae(k);if(!Et(Ee)&&!Jr(Ee)){if(!Rn(Ee))throw new TypeError;k=Ee}}return k}function re(ue,k,z,ae){for(var Ee=ue.length-1;Ee>=0;--Ee){var De=ue[Ee],zt=De(k,z,ae);if(!Et(zt)&&!Jr(zt)){if(!Mr(zt))throw new TypeError;ae=zt}}return ae}function Be(ue,k,z){var ae=we(ue,k,z);if(ae)return!0;var Ee=Za(k);return Jr(Ee)?!1:Be(ue,Ee,z)}function we(ue,k,z){var ae=pr(k,z,!1);return Et(ae)?!1:rn(ae.OrdinaryHasOwnMetadata(ue,k,z))}function ut(ue,k,z){var ae=we(ue,k,z);if(ae)return ie(ue,k,z);var Ee=Za(k);if(!Jr(Ee))return ut(ue,Ee,z)}function ie(ue,k,z){var ae=pr(k,z,!1);if(!Et(ae))return ae.OrdinaryGetOwnMetadata(ue,k,z)}function Le(ue,k,z,ae){var Ee=pr(z,ae,!0);Ee.OrdinaryDefineOwnMetadata(ue,k,z,ae)}function Pe(ue,k){var z=Ge(ue,k),ae=Za(ue);if(ae===null)return z;var Ee=Pe(ae,k);if(Ee.length<=0)return z;if(z.length<=0)return Ee;for(var De=new Yt,zt=[],Tt=0,Rt=z;Tt=0&&Rt=this._keys.length?(this._index=-1,this._keys=k,this._values=k):this._index++,{value:dt,done:!1}}return{value:void 0,done:!0}},Tt.prototype.throw=function(Rt){throw this._index>=0&&(this._index=-1,this._keys=k,this._values=k),Rt},Tt.prototype.return=function(Rt){return this._index>=0&&(this._index=-1,this._keys=k,this._values=k),{value:Rt,done:!0}},Tt}(),ae=function(){function Tt(){this._keys=[],this._values=[],this._cacheKey=ue,this._cacheIndex=-2}return Object.defineProperty(Tt.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),Tt.prototype.has=function(Rt){return this._find(Rt,!1)>=0},Tt.prototype.get=function(Rt){var dt=this._find(Rt,!1);return dt>=0?this._values[dt]:void 0},Tt.prototype.set=function(Rt,dt){var N=this._find(Rt,!0);return this._values[N]=dt,this},Tt.prototype.delete=function(Rt){var dt=this._find(Rt,!1);if(dt>=0){for(var N=this._keys.length,B=dt+1;B{var{prefixCls:o,className:a,hoverable:r=!0}=e,l=H(e,["prefixCls","className","hoverable"]);const{getPrefixCls:u}=n.useContext(b.E_),f=u("card",o),T=C()(`${f}-grid`,a,{[`${f}-grid-hoverable`]:r});return n.createElement("div",Object.assign({},l,{className:T}))},c=i(25446),P=i(55985),ee=i(87077),G=i(37324);const K=e=>{const{antCls:o,componentCls:a,headerHeight:r,cardPaddingBase:l,tabsMarginBottom:u}=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:u,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},X=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}}},te=e=>{const{componentCls:o,iconCls:a,actionsLiMargin:r,cardActionsIconSize:l,colorBorderSecondary:u,actionsBg:f}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:f,borderTop:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${u}`,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} ${u}`}}})},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}}),ae=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)}`}}},re=e=>{const{componentCls:o}=e;return{overflow:"hidden",[`${o}-body`]:{userSelect:"none"}}},ne=e=>{const{antCls:o,componentCls:a,cardShadow:r,cardHeadPadding:l,colorBorderSecondary:u,boxShadowTertiary:f,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:f},[`${a}-head`]:K(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`]:X(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`]:te(e),[`${a}-meta`]:be(e)}),[`${a}-bordered`]:{border:`${(0,c.bf)(e.lineWidth)} ${e.lineType} ${u}`,[`${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`]:ae(e),[`${a}-loading`]:re(e),[`${a}-rtl`]:{direction:"rtl"}}},oe=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"}}}}},le=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,ee.I$)("Card",e=>{const o=(0,G.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[ne(o),oe(o)]},le),Q=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 u=`action-${l}`;return n.createElement("li",{style:{width:`${100/a.length}%`},key:u},n.createElement("span",null,r))}))};var J=n.forwardRef((e,o)=>{const{prefixCls:a,className:r,rootClassName:l,style:u,extra:f,headStyle:T={},bodyStyle:p={},title:y,loading:B,bordered:j=!0,size:$,type:I,cover:F,actions:Z,tabList:A,children:D,activeTabKey:Y,defaultActiveTabKey:S,tabBarExtraContent:ce,hoverable:de,tabProps:ge={}}=e,ue=Q(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:q,direction:fe,card:L}=n.useContext(b.E_),k=W=>{var M;(M=e.onTabChange)===null||M===void 0||M.call(e,W)},me=n.useMemo(()=>{let W=!1;return n.Children.forEach(D,M=>{M&&M.type&&M.type===_&&(W=!0)}),W},[D]),m=q("card",a),[N,ye,$e]=w(m),Se=n.createElement(x.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},D),he=Y!==void 0,Oe=Object.assign(Object.assign({},ge),{[he?"activeKey":"defaultActiveKey"]:he?Y:S,tabBarExtraContent:ce});let ve;const U=(0,z.Z)($),xe=!U||U==="default"?"large":U,Ce=A?n.createElement(E.Z,Object.assign({size:xe},Oe,{className:`${m}-head-tabs`,onChange:k,items:A.map(W=>{var{tab:M}=W,je=Q(W,["tab"]);return Object.assign({label:M},je)})})):null;(y||f||Ce)&&(ve=n.createElement("div",{className:`${m}-head`,style:T},n.createElement("div",{className:`${m}-head-wrapper`},y&&n.createElement("div",{className:`${m}-head-title`},y),f&&n.createElement("div",{className:`${m}-extra`},f)),Ce));const Ee=F?n.createElement("div",{className:`${m}-cover`},F):null,Pe=n.createElement("div",{className:`${m}-body`,style:p},B?Se:D),Te=Z&&Z.length?n.createElement(ie,{prefixCls:m,actions:Z}):null,ze=(0,O.Z)(ue,["onTabChange"]),Me=C()(m,L==null?void 0:L.className,{[`${m}-loading`]:B,[`${m}-bordered`]:j,[`${m}-hoverable`]:de,[`${m}-contain-grid`]:me,[`${m}-contain-tabs`]:A&&A.length,[`${m}-${U}`]:U,[`${m}-type-${I}`]:!!I,[`${m}-rtl`]:fe==="rtl"},r,l,ye,$e),Be=Object.assign(Object.assign({},L==null?void 0:L.style),u);return N(n.createElement("div",Object.assign({ref:o},ze,{className:Me,style:Be}),ve,Ee,Pe,Te))}),se=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:u}=e,f=se(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:T}=n.useContext(b.E_),p=T("card",o),y=C()(`${p}-meta`,a),B=r?n.createElement("div",{className:`${p}-meta-avatar`},r):null,j=l?n.createElement("div",{className:`${p}-meta-title`},l):null,$=u?n.createElement("div",{className:`${p}-meta-description`},u):null,I=j||$?n.createElement("div",{className:`${p}-meta-detail`},j,$):null;return n.createElement("div",Object.assign({},f,{className:y}),B,I)};const g=J;g.Grid=_,g.Meta=d;var s=g},59084:function(R,h,i){i.d(h,{Z:function(){return se}});var n=i(50959),v=i(22410),C=i(82187),O=i.n(C),b=i(60811),z=i(17005),x=i(68300),E=i(92576),H=i(25446),V=i(99978),_=i(55985),c=i(37324),P=i(87077);const ee=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,H.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,H.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 V.C(t.colorFillQuaternary).onBackground(t.colorBgContainer).toHexString(),defaultColor:t.colorText});var X=(0,P.I$)("Tag",t=>{const d=G(t);return ee(d)},K),te=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=te(t,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:f}=n.useContext(E.E_),T=I=>{a==null||a(!o),r==null||r(I)},p=u("tag",g),[y,B,j]=X(p),$=O()(p,`${p}-checkable`,{[`${p}-checkable-checked`]:o},f==null?void 0:f.className,e,B,j);return y(n.createElement("span",Object.assign({},l,{ref:d,style:Object.assign(Object.assign({},s),f==null?void 0:f.style),className:$,onClick:T})))}),re=i(61281);const ne=t=>(0,re.Z)(t,(d,g)=>{let{textColor:s,lightBorderColor:e,lightColor:o,darkColor:a}=g;return{[`${t.componentCls}${t.componentCls}-${d}`]:{color:s,background:o,borderColor:e,"&-inverse":{color:t.colorTextLightSolid,background:a,borderColor:a},[`&${t.componentCls}-borderless`]:{borderColor:"transparent"}}}});var oe=(0,P.bk)(["Tag","preset"],t=>{const d=G(t);return ne(d)},K);function le(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.slice(1)}const w=(t,d,g)=>{const s=le(g);return{[`${t.componentCls}${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,P.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),ie=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:u,closeIcon:f,closable:T,bordered:p=!0}=t,y=ie(t,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:B,direction:j,tag:$}=n.useContext(E.E_),[I,F]=n.useState(!0);n.useEffect(()=>{"visible"in y&&F(y.visible)},[y.visible]);const Z=(0,b.o2)(l),A=(0,b.yT)(l),D=Z||A,Y=Object.assign(Object.assign({backgroundColor:l&&!D?l:void 0},$==null?void 0:$.style),o),S=B("tag",g),[ce,de,ge]=X(S),ue=O()(S,$==null?void 0:$.className,{[`${S}-${l}`]:D,[`${S}-has-color`]:l&&!D,[`${S}-hidden`]:!I,[`${S}-rtl`]:j==="rtl",[`${S}-borderless`]:!p},s,e,de,ge),q=N=>{N.stopPropagation(),u==null||u(N),!N.defaultPrevented&&F(!1)},[,fe]=(0,z.Z)(T,f,N=>N===null?n.createElement(v.Z,{className:`${S}-close-icon`,onClick:q}):n.createElement("span",{className:`${S}-close-icon`,onClick:q},N),null,!1),L=typeof y.onClick=="function"||a&&a.type==="a",k=r||null,me=k?n.createElement(n.Fragment,null,k,a&&n.createElement("span",null,a)):a,m=n.createElement("span",Object.assign({},y,{ref:d,className:ue,style:Y}),me,fe,Z&&n.createElement(oe,{key:"preset",prefixCls:S}),A&&n.createElement(Q,{key:"status",prefixCls:S}));return ce(L?n.createElement(x.Z,{component:"Tag"},m):m)},J=n.forwardRef(pe);J.CheckableTag=ae;var se=J}}]); diff --git a/8782.51faed84.async.js b/8782.51faed84.async.js new file mode 100644 index 0000000000..c230a29001 --- /dev/null +++ b/8782.51faed84.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8782],{48782:function(Gi,oi,m){m.d(oi,{Z:function(){return Mi}});var li=m(87132),ai=m(22410),ci=m(82187),A=m.n(ci),G=m(27263),Q=m(35361),S=m(88357),J=m(56929),a=m(50959),U=m(57),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,r=i.style,o=i.active,c=i.status,u=i.iconPrefix,s=i.icon,I=i.wrapperStyle,$=i.stepNumber,x=i.disabled,y=i.description,T=i.title,z=i.subTitle,h=i.progressDot,N=i.stepIcon,H=i.tailContent,d=i.icons,X=i.stepIndex,f=i.onStepClick,w=i.onClick,P=i.render,Z=(0,J.Z)(i,si),q=!!f&&!x,b={};q&&(b.role="button",b.tabIndex=0,b.onClick=function(v){w==null||w(v),f(X)},b.onKeyDown=function(v){var p=v.which;(p===U.Z.ENTER||p===U.Z.SPACE)&&f(X)});var L=function(){var p,g,E=A()("".concat(n,"-icon"),"".concat(u,"icon"),(p={},(0,S.Z)(p,"".concat(u,"icon-").concat(s),s&&_(s)),(0,S.Z)(p,"".concat(u,"icon-check"),!s&&c==="finish"&&(d&&!d.finish||!d)),(0,S.Z)(p,"".concat(u,"icon-cross"),!s&&c==="error"&&(d&&!d.error||!d)),p)),R=a.createElement("span",{className:"".concat(n,"-icon-dot")});return h?typeof h=="function"?g=a.createElement("span",{className:"".concat(n,"-icon")},h(R,{index:$-1,status:c,title:T,description:y})):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:E}):g=a.createElement("span",{className:"".concat(n,"-icon")},$),N&&(g=N({index:$-1,status:c,title:T,description:y,node:g})),g},W=c||"wait",j=A()("".concat(n,"-item"),"".concat(n,"-item-").concat(W),t,(e={},(0,S.Z)(e,"".concat(n,"-item-custom"),s),(0,S.Z)(e,"".concat(n,"-item-active"),o),(0,S.Z)(e,"".concat(n,"-item-disabled"),x===!0),e)),M=(0,Q.Z)({},r),D=a.createElement("div",(0,G.Z)({},Z,{className:j,style:M}),a.createElement("div",(0,G.Z)({onClick:w},b,{className:"".concat(n,"-item-container")}),a.createElement("div",{className:"".concat(n,"-item-tail")},H),a.createElement("div",{className:"".concat(n,"-item-icon")},L()),a.createElement("div",{className:"".concat(n,"-item-content")},a.createElement("div",{className:"".concat(n,"-item-title")},T,z&&a.createElement("div",{title:typeof z=="string"?z:void 0,className:"".concat(n,"-item-subtitle")},z)),y&&a.createElement("div",{className:"".concat(n,"-item-description")},y))));return P&&(D=P(D)||null),D}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,r=i.style,o=r===void 0?{}:r,c=i.className,u=i.children,s=i.direction,I=s===void 0?"horizontal":s,$=i.type,x=$===void 0?"default":$,y=i.labelPlacement,T=y===void 0?"horizontal":y,z=i.iconPrefix,h=z===void 0?"rc":z,N=i.status,H=N===void 0?"process":N,d=i.size,X=i.current,f=X===void 0?0:X,w=i.progressDot,P=w===void 0?!1:w,Z=i.stepIcon,q=i.initial,b=q===void 0?0:q,L=i.icons,W=i.onChange,j=i.itemRender,M=i.items,D=M===void 0?[]:M,v=(0,J.Z)(i,mi),p=x==="navigation",g=x==="inline",E=g||P,R=g?"horizontal":I,ni=g?void 0:d,Bi=E?"vertical":T,Zi=A()(n,"".concat(n,"-").concat(R),c,(e={},(0,S.Z)(e,"".concat(n,"-").concat(ni),ni),(0,S.Z)(e,"".concat(n,"-label-").concat(Bi),R==="horizontal"),(0,S.Z)(e,"".concat(n,"-dot"),!!E),(0,S.Z)(e,"".concat(n,"-navigation"),p),(0,S.Z)(e,"".concat(n,"-inline"),g),e)),Li=function(F){W&&f!==F&&W(F)},Ri=function(F,ri){var C=(0,Q.Z)({},F),B=b+ri;return H==="error"&&ri===f-1&&(C.className="".concat(n,"-next-error")),C.status||(B===f?C.status=H:B{const{componentCls:e,customIconTop:t,customIconSize:n,customIconFontSize:r}=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:r,lineHeight:`${(0,l.bf)(r)}`}}},[`&:not(${e}-vertical)`]:{[`${e}-item-custom`]:{[`${e}-item-icon`]:{width:"auto",background:"none"}}}}},Ci=i=>{const{componentCls:e,inlineDotSize:t,inlineTitleColor:n,inlineTailColor:r}=i,o=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)(o)} ${(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(o).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:i.lineWidth,borderRadius:0,marginInlineStart:0,background:r}},[`&: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} ${r}`}},c),"&-finish":Object.assign({[`${e}-item-tail::after`]:{backgroundColor:r},[`${e}-item-icon ${e}-icon ${e}-icon-dot`]:{backgroundColor:r,border:`${(0,l.bf)(i.lineWidth)} ${i.lineType} ${r}`}},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:r}=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(r).div(2).add(i.controlHeightLG).equal()}}}}}},Ii=i=>{const{componentCls:e,navContentMaxWidth:t,navArrowColor:n,stepsNavActiveColor:r,motionDurationSlow:o}=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 ${o}`,[`${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:r,transition:`width ${o}, inset-inline-start ${o}`,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:r,dotSize:o,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:o,height:o,marginInlineStart:i.calc(i.descriptionMaxWidth).sub(o).div(2).equal(),paddingInlineEnd:0,lineHeight:`${(0,l.bf)(o)}`,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(o).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(o).sub(r).div(2).equal(),width:r,height:r,lineHeight:`${(0,l.bf)(r)}`,background:"none",marginInlineStart:i.calc(i.descriptionMaxWidth).sub(r).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(o).div(2).equal(),marginInlineStart:0,background:"none"},[`${e}-item-process ${e}-item-icon`]:{marginTop:i.calc(i.controlHeight).sub(r).div(2).equal(),top:0,insetInlineStart:i.calc(o).sub(r).div(2).equal(),marginInlineStart:0},[`${e}-item > ${e}-item-container > ${e}-item-tail`]:{top:i.calc(i.controlHeight).sub(o).div(2).equal(),insetInlineStart:0,margin:0,padding:`${(0,l.bf)(i.calc(o).add(i.paddingXS).equal())} 0 ${(0,l.bf)(i.paddingXS)}`,"&::after":{marginInlineStart:i.calc(o).sub(i.lineWidth).div(2).equal()}},[`&${e}-small`]:{[`${e}-item-icon`]:{marginTop:i.calc(i.controlHeightSM).sub(o).div(2).equal()},[`${e}-item-process ${e}-item-icon`]:{marginTop:i.calc(i.controlHeightSM).sub(r).div(2).equal()},[`${e}-item > ${e}-item-container > ${e}-item-tail`]:{top:i.calc(i.controlHeightSM).sub(o).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:r,colorTextDescription:o}=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:r,lineHeight:`${(0,l.bf)(t)}`,"&::after":{top:i.calc(t).div(2).equal()}},[`${e}-item-description`]:{color:o,fontSize:r},[`${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)}`}}}}},O;(function(i){i.wait="wait",i.process="process",i.finish="finish",i.error="error"})(O||(O={}));const K=(i,e)=>{const t=`${e.componentCls}-item`,n=`${i}IconColor`,r=`${i}TitleColor`,o=`${i}DescriptionColor`,c=`${i}TailColor`,u=`${i}IconBgColor`,s=`${i}IconBorderColor`,I=`${i}DotColor`;return{[`${t}-${i} ${t}-icon`]:{backgroundColor:e[u],borderColor:e[s],[`> ${e.componentCls}-icon`]:{color:e[n],[`${e.componentCls}-icon-dot`]:{background:e[I]}}},[`${t}-${i}${t}-custom ${t}-icon`]:{[`> ${e.componentCls}-icon`]:{color:e[I]}},[`${t}-${i} > ${t}-container > ${t}-content > ${t}-title`]:{color:e[r],"&::after":{backgroundColor:e[c]}},[`${t}-${i} > ${t}-container > ${t}-content > ${t}-description`]:{color:e[o]},[`${t}-${i} > ${t}-container > ${t}-tail::after`]:{backgroundColor:e[c]}}},Hi=i=>{const{componentCls:e,motionDurationSlow:t}=i,n=`${e}-item`,r=`${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"]:{[r]:Object.assign({},(0,V.oN)(i))}},[`${r}, ${n}-content`]:{display:"inline-block",verticalAlign:"top"},[r]:{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(O.wait,i)),K(O.process,i)),{[`${n}-process > ${n}-container > ${n}-title`]:{fontWeight:i.fontWeightStrong}}),K(O.finish,i)),K(O.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:r,colorPrimary:o,colorTextDescription:c,colorTextQuaternary:u,colorError:s,colorBorderSecondary:I,colorSplit:$}=i,x=(0,bi.TS)(i,{processIconColor:n,processTitleColor:r,processDescriptionColor:r,processIconBgColor:o,processIconBorderColor:o,processDotColor:o,processTailColor:$,waitTitleColor:c,waitDescriptionColor:c,waitTailColor:$,waitDotColor:e,finishIconColor:o,finishTitleColor:r,finishDescriptionColor:c,finishTailColor:o,finishDotColor:o,errorIconColor:n,errorTitleColor:s,errorDescriptionColor:s,errorTailColor:$,errorIconBgColor:s,errorIconBorderColor:s,errorDotColor:s,stepsNavActiveColor:o,stepsProgressSize:t,inlineDotSize:6,inlineTitleColor:u,inlineTailColor:I});return[Pi(x)]},Wi),Ei=m(13763);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:r}=n;return Object.assign({},r)}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 r=0,n=Object.getOwnPropertySymbols(i);r{const{percent:e,size:t,className:n,rootClassName:r,direction:o,items:c,responsive:u=!0,current:s=0,children:I,style:$}=i,x=ji(i,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:y}=(0,$i.Z)(u),{getPrefixCls:T,direction:z,steps:h}=a.useContext(pi.E_),N=a.useMemo(()=>u&&y?"vertical":o,[y,o]),H=(0,ui.Z)(t),d=T("steps",i.prefixCls),[X,f,w]=Di(d),P=i.type==="inline",Z=T("",i.iconPrefix),q=qi(c,I),b=P?void 0:e,L=Object.assign(Object.assign({},h==null?void 0:h.style),$),W=A()(h==null?void 0:h.className,{[`${d}-rtl`]:z==="rtl",[`${d}-with-progress`]:b!==void 0},n,r,f,w),j={finish:a.createElement(li.Z,{className:`${d}-finish-icon`}),error:a.createElement(ai.Z,{className:`${d}-error-icon`})},M=v=>{let{node:p,status:g}=v;if(g==="process"&&b!==void 0){const E=H==="small"?32:40;return a.createElement("div",{className:`${d}-progress-icon`},a.createElement(hi.Z,{type:"circle",percent:b,size:E,strokeWidth:4,format:()=>null}),p)}return p},D=(v,p)=>v.description?a.createElement(Si.Z,{title:v.description},p):p;return X(a.createElement(ei,Object.assign({icons:j},x,{style:L,current:s,size:H,items:q,itemRender:P?D:void 0,stepIcon:M,direction:N,prefixCls:d,iconPrefix:Z,className:W})))};ti.Step=ei.Step;var Mi=ti}}]); diff --git a/8912.7a51fc1f.async.js b/8912.7a51fc1f.async.js deleted file mode 100644 index 41abb2487d..0000000000 --- a/8912.7a51fc1f.async.js +++ /dev/null @@ -1,10 +0,0 @@ -"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/9146.1c9ee707.async.js b/9146.1c9ee707.async.js new file mode 100644 index 0000000000..c5f1a4cbda --- /dev/null +++ b/9146.1c9ee707.async.js @@ -0,0 +1,8 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9146],{9146:function(Se,D,C){C.d(D,{Z:function(){return fe}});var G=C(82187),m=C.n(G),i=C(50959),v=C(92576),P=C(87017),j=e=>{const{prefixCls:t,className:s,style:n,size:a,shape:r}=e,c=m()({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),o=m()({[`${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:m()(t,c,o,s),style:Object.assign(Object.assign({},l),n)})},T=C(25446),Z=C(87077),W=C(37324);const X=new T.E4("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),x=e=>({height:e,lineHeight:(0,T.bf)(e)}),f=e=>Object.assign({width:e},x(e)),J=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:X,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),I=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},x(e)),K=e=>{const{skeletonAvatarCls:t,gradientFromColor:s,controlHeight:n,controlHeightLG:a,controlHeightSM:r}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:s},f(n)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},f(a)),[`${t}${t}-sm`]:Object.assign({},f(r))}},Q=e=>{const{controlHeight:t,borderRadiusSM:s,skeletonInputCls:n,controlHeightLG:a,controlHeightSM:r,gradientFromColor:c,calc:o}=e;return{[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:s},I(t,o)),[`${n}-lg`]:Object.assign({},I(a,o)),[`${n}-sm`]:Object.assign({},I(r,o))}},L=e=>Object.assign({width:e},x(e)),U=e=>{const{skeletonImageCls:t,imageSizeBase:s,gradientFromColor:n,borderRadiusSM:a,calc:r}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:n,borderRadius:a},L(r(s).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},L(s)),{maxWidth:r(s).mul(4).equal(),maxHeight:r(s).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},z=(e,t,s)=>{const{skeletonButtonCls:n}=e;return{[`${s}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${s}${n}-round`]:{borderRadius:t}}},B=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},x(e)),Y=e=>{const{borderRadiusSM:t,skeletonButtonCls:s,controlHeight:n,controlHeightLG:a,controlHeightSM:r,gradientFromColor:c,calc:o}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${s}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c,borderRadius:t,width:o(n).mul(2).equal(),minWidth:o(n).mul(2).equal()},B(n,o))},z(e,n,s)),{[`${s}-lg`]:Object.assign({},B(a,o))}),z(e,a,`${s}-lg`)),{[`${s}-sm`]:Object.assign({},B(r,o))}),z(e,r,`${s}-sm`))},_=e=>{const{componentCls:t,skeletonAvatarCls:s,skeletonTitleCls:n,skeletonParagraphCls:a,skeletonButtonCls:r,skeletonInputCls:c,skeletonImageCls:o,controlHeight:l,controlHeightLG:g,controlHeightSM:u,gradientFromColor:d,padding:p,marginSM:$,borderRadius:b,titleHeight:h,blockRadius:E,paragraphLiHeight:A,controlHeightXS:M,paragraphMarginTop:O}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[`${s}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},f(l)),[`${s}-circle`]:{borderRadius:"50%"},[`${s}-lg`]:Object.assign({},f(g)),[`${s}-sm`]:Object.assign({},f(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${n}`]:{width:"100%",height:h,background:d,borderRadius:E,[`+ ${a}`]:{marginBlockStart:u}},[`${a}`]:{padding:0,"> li":{width:"100%",height:A,listStyle:"none",background:d,borderRadius:E,"+ li":{marginBlockStart:M}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${n}, ${a} > li`]:{borderRadius:b}}},[`${t}-with-avatar ${t}-content`]:{[`${n}`]:{marginBlockStart:$,[`+ ${a}`]:{marginBlockStart:O}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Y(e)),K(e)),Q(e)),U(e)),[`${t}${t}-block`]:{width:"100%",[`${r}`]:{width:"100%"},[`${c}`]:{width:"100%"}},[`${t}${t}-active`]:{[` + ${n}, + ${a} > li, + ${s}, + ${r}, + ${c}, + ${o} + `]:Object.assign({},J(e))}}},ee=e=>{const{colorFillContent:t,colorFill:s}=e,n=t,a=s;return{color:n,colorGradientEnd:a,gradientFromColor:n,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}};var k=(0,Z.I$)("Skeleton",e=>{const{componentCls:t,calc:s}=e,n=(0,W.TS)(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:s(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[_(n)]},ee,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),te=e=>{const{prefixCls:t,className:s,rootClassName:n,active:a,shape:r="circle",size:c="default"}=e,{getPrefixCls:o}=i.useContext(v.E_),l=o("skeleton",t),[g,u,d]=k(l),p=(0,P.Z)(e,["prefixCls","className"]),$=m()(l,`${l}-element`,{[`${l}-active`]:a},s,n,u,d);return g(i.createElement("div",{className:$},i.createElement(j,Object.assign({prefixCls:`${l}-avatar`,shape:r,size:c},p))))},se=e=>{const{prefixCls:t,className:s,rootClassName:n,active:a,block:r=!1,size:c="default"}=e,{getPrefixCls:o}=i.useContext(v.E_),l=o("skeleton",t),[g,u,d]=k(l),p=(0,P.Z)(e,["prefixCls"]),$=m()(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:r},s,n,u,d);return g(i.createElement("div",{className:$},i.createElement(j,Object.assign({prefixCls:`${l}-button`,size:c},p))))};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 ae=e=>{const{prefixCls:t,className:s,rootClassName:n,style:a,active:r}=e,{getPrefixCls:c}=i.useContext(v.E_),o=c("skeleton",t),[l,g,u]=k(o),d=m()(o,`${o}-element`,{[`${o}-active`]:r},s,n,g,u);return l(i.createElement("div",{className:d},i.createElement("div",{className:m()(`${o}-image`,s),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`})))))},le=e=>{const{prefixCls:t,className:s,rootClassName:n,active:a,block:r,size:c="default"}=e,{getPrefixCls:o}=i.useContext(v.E_),l=o("skeleton",t),[g,u,d]=k(l),p=(0,P.Z)(e,["prefixCls"]),$=m()(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:r},s,n,u,d);return g(i.createElement("div",{className:$},i.createElement(j,Object.assign({prefixCls:`${l}-input`,size:c},p))))},oe=C(27263),ie={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"},re=ie,ce=C(38782),ge=function(t,s){return i.createElement(ce.Z,(0,oe.Z)({},t,{ref:s,icon:re}))},de=i.forwardRef(ge),ue=e=>{const{prefixCls:t,className:s,rootClassName:n,style:a,active:r,children:c}=e,{getPrefixCls:o}=i.useContext(v.E_),l=o("skeleton",t),[g,u,d]=k(l),p=m()(l,`${l}-element`,{[`${l}-active`]:r},u,s,n,d),$=c!=null?c:i.createElement(de,null);return g(i.createElement("div",{className:p},i.createElement("div",{className:m()(`${l}-image`,s),style:a},$)))},me=C(30360),he=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:s,className:n,style:a,rows:r}=e,c=(0,me.Z)(Array(r)).map((o,l)=>i.createElement("li",{key:l,style:{width:t(l)}}));return i.createElement("ul",{className:m()(s,n),style:a},c)},Ce=e=>{let{prefixCls:t,className:s,width:n,style:a}=e;return i.createElement("h3",{className:m()(t,s),style:Object.assign({width:n},a)})};function H(e){return e&&typeof e=="object"?e:{}}function pe(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function $e(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function be(e,t){const s={};return(!e||!t)&&(s.width="61%"),!e&&t?s.rows=3:s.rows=2,s}const S=e=>{const{prefixCls:t,loading:s,className:n,rootClassName:a,style:r,children:c,avatar:o=!1,title:l=!0,paragraph:g=!0,active:u,round:d}=e,{getPrefixCls:p,direction:$,skeleton:b}=i.useContext(v.E_),h=p("skeleton",t),[E,A,M]=k(h);if(s||!("loading"in e)){const O=!!o,N=!!l,y=!!g;let V;if(O){const w=Object.assign(Object.assign({prefixCls:`${h}-avatar`},pe(N,y)),H(o));V=i.createElement("div",{className:`${h}-header`},i.createElement(j,Object.assign({},w)))}let F;if(N||y){let w;if(N){const R=Object.assign(Object.assign({prefixCls:`${h}-title`},$e(O,y)),H(l));w=i.createElement(Ce,Object.assign({},R))}let q;if(y){const R=Object.assign(Object.assign({prefixCls:`${h}-paragraph`},be(O,N)),H(g));q=i.createElement(he,Object.assign({},R))}F=i.createElement("div",{className:`${h}-content`},w,q)}const ke=m()(h,{[`${h}-with-avatar`]:O,[`${h}-active`]:u,[`${h}-rtl`]:$==="rtl",[`${h}-round`]:d},b==null?void 0:b.className,n,a,A,M);return E(i.createElement("div",{className:ke,style:Object.assign(Object.assign({},b==null?void 0:b.style),r)},V,F))}return typeof c!="undefined"?c:null};S.Button=se,S.Avatar=te,S.Input=le,S.Image=ae,S.Node=ue;var ve=S,fe=ve}}]); diff --git a/9148.735e7fde.async.js b/9148.735e7fde.async.js new file mode 100644 index 0000000000..39b0c747b8 --- /dev/null +++ b/9148.735e7fde.async.js @@ -0,0 +1,3 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9148],{52403:function(pr,Bn,c){var X=c(35361),J=c(30360),Ve=c(56929),te=c(81447),v=c(10994),Rn=c(21713),l=c(13763),G=c(50959),Ge=c(33359),cn=c(81408),ln=c(11527),Dn=["children","value","valuePropName","onChange","fieldProps","space","type","transform","convertValue","lightProps"],Me=["children","space","valuePropName"],ye={space:v.Z,group:Rn.Z.Group};function ve(Ze){var Ue=arguments.length<=1?void 0:arguments[1];return Ue&&Ue.target&&Ze in Ue.target?Ue.target[Ze]:Ue}var en=function(Ue){var Un=Ue.children,i=Ue.value,de=i===void 0?[]:i,nn=Ue.valuePropName,rn=Ue.onChange,ee=Ue.fieldProps,An=Ue.space,Ke=Ue.type,$n=Ke===void 0?"space":Ke,Wn=Ue.transform,jn=Ue.convertValue,Nn=Ue.lightProps,tn=(0,Ve.Z)(Ue,Dn),Jn=(0,te.J)(function(un,In){var wn,bn=(0,J.Z)(de);bn[In]=ve(nn||"value",un),rn==null||rn(bn),ee==null||(wn=ee.onChange)===null||wn===void 0||wn.call(ee,bn)}),Yn=-1,hr=(0,l.Z)(Un).map(function(un){if(G.isValidElement(un)){var In,wn,bn;Yn+=1;var on=Yn,Tr=(un==null||(In=un.type)===null||In===void 0?void 0:In.displayName)==="ProFormComponent"||(un==null||(wn=un.props)===null||wn===void 0?void 0:wn.readonly),lr=Tr?(0,X.Z)((0,X.Z)({key:on,ignoreFormItem:!0},un.props||{}),{},{fieldProps:(0,X.Z)((0,X.Z)({},un==null||(bn=un.props)===null||bn===void 0?void 0:bn.fieldProps),{},{onChange:function(){Jn(arguments.length<=0?void 0:arguments[0],on)}}),value:de==null?void 0:de[on],onChange:void 0}):(0,X.Z)((0,X.Z)({key:on},un.props||{}),{},{value:de==null?void 0:de[on],onChange:function(br){var rr,Hn;Jn(br,on),(rr=(Hn=un.props).onChange)===null||rr===void 0||rr.call(Hn,br)}});return G.cloneElement(un,lr)}return un}),yr=ye[$n],Cr=(0,cn.zx)(tn),tr=Cr.RowWrapper,qn=(0,G.useMemo)(function(){return(0,X.Z)({},$n==="group"?{compact:!0}:{})},[$n]),ar=(0,G.useCallback)(function(un){var In=un.children;return(0,ln.jsx)(yr,(0,X.Z)((0,X.Z)((0,X.Z)({},qn),An),{},{align:"start",wrap:!0,children:In}))},[yr,An,qn]);return(0,ln.jsx)(tr,{Wrapper:ar,children:hr})},Ye=G.forwardRef(function(Ze,Ue){var Un=Ze.children,i=Ze.space,de=Ze.valuePropName,nn=(0,Ve.Z)(Ze,Me);return(0,G.useImperativeHandle)(Ue,function(){return{}}),(0,ln.jsx)(en,(0,X.Z)((0,X.Z)((0,X.Z)({space:i,valuePropName:de},nn.fieldProps),{},{onChange:void 0},nn),{},{children:Un}))}),d=(0,Ge.G)(Ye);Bn.Z=d},6457:function(pr,Bn,c){var X=c(16590);Bn.ZP=X.A},62217:function(pr,Bn,c){c.d(Bn,{Y:function(){return d}});var X=c(11642),J=c(73356),Ve=c(35361),te=c(959),v=c(56929),Rn=c(11130),l=c(38751),G=c(88574),Ge=c(72266),cn=c.n(Ge),ln=c(65589),Dn=c(12868),Me=c(50959),ye=c(10422),ve=c(22332),en=c(11527),Ye=["children","trigger","onVisibleChange","onOpenChange","modalProps","onFinish","submitTimeout","title","width","visible","open"];function d(Ze){var Ue,Un,i=Ze.children,de=Ze.trigger,nn=Ze.onVisibleChange,rn=Ze.onOpenChange,ee=Ze.modalProps,An=Ze.onFinish,Ke=Ze.submitTimeout,$n=Ze.title,Wn=Ze.width,jn=Ze.visible,Nn=Ze.open,tn=(0,v.Z)(Ze,Ye);(0,Dn.ET)(!tn.footer||!(ee!=null&&ee.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 Jn=(0,Me.useContext)(l.ZP.ConfigContext),Yn=(0,Me.useState)([]),hr=(0,te.Z)(Yn,2),yr=hr[1],Cr=(0,Me.useState)(!1),tr=(0,te.Z)(Cr,2),qn=tr[0],ar=tr[1],un=(0,ln.Z)(!!jn,{value:Nn||jn,onChange:rn||nn}),In=(0,te.Z)(un,2),wn=In[0],bn=In[1],on=(0,Me.useRef)(null),Tr=(0,Me.useCallback)(function(vn){on.current===null&&vn&&yr([]),on.current=vn},[]),lr=(0,Me.useRef)(),Er=(0,Me.useCallback)(function(){var vn,ze,Ce,sn=(vn=(ze=tn.form)!==null&&ze!==void 0?ze:(Ce=tn.formRef)===null||Ce===void 0?void 0:Ce.current)!==null&&vn!==void 0?vn:lr.current;sn&&ee!==null&&ee!==void 0&&ee.destroyOnClose&&sn.resetFields()},[ee==null?void 0:ee.destroyOnClose,tn.form,tn.formRef]);(0,Me.useImperativeHandle)(tn.formRef,function(){return lr.current},[lr.current]),(0,Me.useEffect)(function(){wn&&(Nn||jn)&&(rn==null||rn(!0),nn==null||nn(!0))},[jn,Nn,wn]);var br=(0,Me.useMemo)(function(){return de?Me.cloneElement(de,(0,Ve.Z)((0,Ve.Z)({key:"trigger"},de.props),{},{onClick:function(){var vn=(0,J.Z)((0,X.Z)().mark(function Ce(sn){var kn,fn;return(0,X.Z)().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:bn(!wn),(kn=de.props)===null||kn===void 0||(fn=kn.onClick)===null||fn===void 0||fn.call(kn,sn);case 2:case"end":return je.stop()}},Ce)}));function ze(Ce){return vn.apply(this,arguments)}return ze}()})):null},[bn,de,wn]),rr=(0,Me.useMemo)(function(){var vn,ze,Ce,sn,kn,fn;return tn.submitter===!1?!1:cn()({searchConfig:{submitText:(vn=(ze=ee==null?void 0:ee.okText)!==null&&ze!==void 0?ze:(Ce=Jn.locale)===null||Ce===void 0||(Ce=Ce.Modal)===null||Ce===void 0?void 0:Ce.okText)!==null&&vn!==void 0?vn:"\u786E\u8BA4",resetText:(sn=(kn=ee==null?void 0:ee.cancelText)!==null&&kn!==void 0?kn:(fn=Jn.locale)===null||fn===void 0||(fn=fn.Modal)===null||fn===void 0?void 0:fn.cancelText)!==null&&sn!==void 0?sn:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:Ke?qn:void 0,onClick:function(je){var Zr;bn(!1),ee==null||(Zr=ee.onCancel)===null||Zr===void 0||Zr.call(ee,je)}}},tn.submitter)},[(Ue=Jn.locale)===null||Ue===void 0||(Ue=Ue.Modal)===null||Ue===void 0?void 0:Ue.cancelText,(Un=Jn.locale)===null||Un===void 0||(Un=Un.Modal)===null||Un===void 0?void 0:Un.okText,ee,tn.submitter,bn,qn,Ke]),Hn=(0,Me.useCallback)(function(vn,ze){return(0,en.jsxs)(en.Fragment,{children:[vn,on.current&&ze?(0,en.jsx)(Me.Fragment,{children:(0,ye.createPortal)(ze,on.current)},"submitter"):ze]})},[]),Lr=(0,Me.useCallback)(function(){var vn=(0,J.Z)((0,X.Z)().mark(function ze(Ce){var sn,kn,fn;return(0,X.Z)().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return sn=An==null?void 0:An(Ce),Ke&&sn instanceof Promise&&(ar(!0),kn=setTimeout(function(){return ar(!1)},Ke),sn.finally(function(){clearTimeout(kn),ar(!1)})),je.next=4,sn;case 4:return fn=je.sent,fn&&bn(!1),je.abrupt("return",fn);case 7:case"end":return je.stop()}},ze)}));return function(ze){return vn.apply(this,arguments)}}(),[An,bn,Ke]),Kr=(0,Rn.X)(wn);return(0,en.jsxs)(en.Fragment,{children:[(0,en.jsx)(G.Z,(0,Ve.Z)((0,Ve.Z)((0,Ve.Z)({title:$n,width:Wn||800},ee),Kr),{},{onCancel:function(ze){var Ce;Ke&&qn||(bn(!1),ee==null||(Ce=ee.onCancel)===null||Ce===void 0||Ce.call(ee,ze))},afterClose:function(){var ze;Er(),bn(!1),ee==null||(ze=ee.afterClose)===null||ze===void 0||ze.call(ee)},footer:tn.submitter!==!1?(0,en.jsx)("div",{ref:Tr,style:{display:"flex",justifyContent:"flex-end"}}):null,children:(0,en.jsx)(ve.I,(0,Ve.Z)((0,Ve.Z)({formComponentType:"ModalForm",layout:"vertical"},tn),{},{onInit:function(ze,Ce){var sn;tn.formRef&&(tn.formRef.current=Ce),tn==null||(sn=tn.onInit)===null||sn===void 0||sn.call(tn,ze,Ce),lr.current=Ce},formRef:lr,submitter:rr,onFinish:function(){var vn=(0,J.Z)((0,X.Z)().mark(function ze(Ce){var sn;return(0,X.Z)().wrap(function(fn){for(;;)switch(fn.prev=fn.next){case 0:return fn.next=2,Lr(Ce);case 2:return sn=fn.sent,fn.abrupt("return",sn);case 4:case"end":return fn.stop()}},ze)}));return function(ze){return vn.apply(this,arguments)}}(),contentRender:Hn,children:i}))})),br]})}},99148:function(pr,Bn,c){c.d(Bn,{Z:function(){return eo}});var X=c(11642),J=c(73356),Ve=c(97382),te=c(959),v=c(88357),Rn=c(30360),l=c(35361),G=c(56929),Ge=c(25671),cn=c(54070),ln=c(38751),Dn=c(48578),Me=c(40622),ye=c(82187),ve=c.n(ye),en=c(71770),Ye=c(65589),d=c(50959),Ze=c(34829),Ue=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 Un(r){return(0,Ze.Xj)("ProCardActions",function(e){var t=(0,l.Z)((0,l.Z)({},e),{},{componentCls:".".concat(r),cardActionIconSize:16});return[Ue(t)]})}var i=c(11527),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(48966),ee=c(61323),An=c(25446),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(71503),Jn=c(13763),Yn=c(12868),hr=c(14224),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,Ve.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}),gn=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||gn)&&(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"),gn),a)),style:f,onClick:function(){gn&&Zn(!Fn)},children:[(0,i.jsxs)("div",{className:"".concat(L,"-title ").concat(_n).trim(),children:[gn,(0,i.jsx)(cn.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}))},vn=Kr,ze=function(e){return(0,i.jsx)(rr,(0,l.Z)({bodyStyle:{padding:0}},e))},Ce=rr;Ce.isProCard=!0,Ce.Divider=vn,Ce.TabPane=un,Ce.Group=ze;var sn=Ce,kn=sn,fn=c(81408),jr=c(6457),je=c(99192),Zr=c(2223),m=c(65199),A=c(64567),me=c(28491),q=c(16458),Se=c(92307),Pn=function(e){return e!=null};function pn(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,Ve.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 He(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,Ve.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(10994),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 $e=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?$e: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(97086),Qn=c(5952),Vn=c(1378),mn=c(90242),Oe=c(14553),or=c(24303);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(98339),cr=c(81447),vr=c(75442),Ie=c(72684),z=c(26935),oe=c(11130),ge=c(81283),ie=c(72266),Je=c.n(ie),We=c(10422),we=c(22332),Ae=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[Ae(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,We.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(27263),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(38782),Pt=function(e,t){return d.createElement(xr.Z,(0,fr.Z)({},e,{ref:t,icon:ir}))},Tt=d.forwardRef(Pt),Et=c(79189),It=c(69050),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(62217),$r=c(16590),ot=c(96034),it=c(34682),Yr=c(85824),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(20062),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(75657),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(32923),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(8376),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(74315),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(52403),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(45057),Ja=c(21713),Ya=c(68865),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(92965),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(28976),wl=c(90190),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,Ve.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,We.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,We.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,Ve.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(66286),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(78974),Dl=c(81954),nt=c(85108),Al=c(86047),zl=c(94683),rt=c(42247),$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)(fn._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,Ve.Z)(h)==="object"?h:{defaultCurrent:1,defaultPageSize:20,pageSize:20,current:1},gn=(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 hn,ur;return(0,X.Z)().wrap(function(gr){for(;;)switch(gr.prev=gr.next){case 0:return hn=(0,l.Z)((0,l.Z)((0,l.Z)({},Le||{}),_n),o),delete hn._timestamp,gr.next=4,a(hn,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,hn;!h||!zn||(h==null||(Le=h.onChange)===null||Le===void 0||Le.call(h,Q.current,Q.pageSize),h==null||(hn=h.onShowSizeChange)===null||hn===void 0||hn.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 hn=Xn(Le,-1);return En.current.set(hn,Le),hn});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(hn){var ur=hn.pageSize,Sr=hn.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),pn(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]),gn.setPrefixName(e.name);var mr=(0,d.useCallback)(function(){g&&g.onChange&&g.onChange([],[],{type:"none"}),L([])},[g,L]);gn.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,hn;(Le=e.editable)===null||Le===void 0||(hn=Le.onValuesChange)===null||hn===void 0||hn.call(Le,void 0,Q),pe.setDataSource(Q)}})),Fr=Ze.Ow===null||Ze.Ow===void 0?void 0:Ze.Ow.useToken(),tt=Fr.token;He(Zn,pe,{fullScreen:function(){var Q;if(!(!((Q=gn.rootDomRef)!==null&&Q!==void 0&&Q.current)||!document.fullscreenEnabled))if(document.fullscreenElement)document.exitFullscreen();else{var Le;(Le=gn.rootDomRef)===null||Le===void 0||Le.current.requestFullscreen()}},onCleanSelected:function(){mr()},resetAll:function(){var Q;mr(),Mr({}),Ar({}),gn.setKeyWords(void 0),pe.setPageInfo({current:1}),ae==null||(Q=ae.current)===null||Q===void 0||Q.resetFields(),wr({})},editableUtils:nr}),gn.setAction(Zn.current);var Pr=(0,d.useMemo)(function(){var H;return Ct({columns:T,counter:gn,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(gn.columnsMap))},[T,gn==null?void 0:gn.sortKeyColumns,gn==null?void 0:gn.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)});gn.setSortKeyColumns(H)}},[Pr],["render","renderFormItem"],100),(0,me.KW)(function(){var H=pe.pageInfo,Q=h||{},Le=Q.current,hn=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&&(hn||Sr)&&(Sr!==(H==null?void 0:H.pageSize)||hn!==(H==null?void 0:H.current))&&pe.setPageInfo({pageSize:Sr||H.pageSize,current:hn||H.current})},[h&&h.pageSize,h&&h.current]);var no=(0,l.Z)((0,l.Z)({selectedRowKeys:Sn},g),{},{onChange:function(Q,Le,hn){g&&g.onChange&&g.onChange(Q,Le,hn),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,hn=M.search===!0?{}:M.search,ur=hn.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,gn.keyWords);if(gr!==!1){wr((0,l.Z)((0,l.Z)({},H),{},(0,v.Z)({},Sr,gn.keyWords)));return}}wr(H)},[gn.keyWords,M,wr]),bt=(0,d.useMemo)(function(){if((0,Ve.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:gn.tableSize,onSizeChange:gn.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},16458:function(pr,Bn,c){c.d(Bn,{S:function(){return cn}});var X=c(5952),J=c(97086),Ve=c(1378),te=c(90242),v=c(14553),Rn=c(88357),l=c(75130),G=c(50959),Ge=c(11527),cn=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)(Ue,(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}))}},78974:function(pr,Bn,c){c.d(Bn,{X:function(){return Rn}});var X=c(15922),J=c(50959),Ve=c(11527),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,cn){if(Ge.copyable||Ge.ellipsis){var ln=Ge.copyable&&cn?{text:cn,tooltips:["",""]}:void 0,Dn=te(Ge),Me=v(Ge)&&cn?{tooltip:(Ge==null?void 0:Ge.tooltip)!==!1&&Dn?(0,Ve.jsx)("div",{className:"pro-table-tooltip-text",children:G}):cn}:!1;return(0,Ve.jsx)(X.Z.Text,{style:{width:"100%",margin:0,padding:0},title:"",copyable:ln,ellipsis:Me,children:G})}return G}},42247:function(pr,Bn,c){c.d(Bn,{w:function(){return J}});var X=c(75442),J=function(te,v,Rn){return v===void 0?te:(0,X.h)(te,v,Rn)}},2223: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(30360),J=c(11642),Ve=c(82435),te=c(73356),v=c(959),Rn=c(88357),l=c(56929),G=c(35361),Ge=c(97382),cn=c(58516),ln=c(99192),Dn=c(39617),Me=c(26935),ye=c(50959),ve=c(39388),en=c(82187),Ye=c.n(en),d=c(65589),Ze=c(57),Ue=c(87017),Un=c(37865),i=c(92576),de=c(23835),nn=c(49970),rn=c(20873),ee=c(86865),An=c(38269),Ke=c(91886),$n=c(32698),Wn=c(6835),jn=c(87077);const Nn=m=>{const{componentCls:A,iconCls:me,antCls:q,zIndexPopup:Se,colorText:Pn,colorWarning:pn,marginXXS:He,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:pn,fontSize:Ne,lineHeight:1,marginInlineEnd:Qe},[`${A}-title`]:{fontWeight:yn,color:dn,"&:only-child":{fontWeight:"normal"}},[`${A}-description`]:{marginTop:He,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:pn,okText:He,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),pn||(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},He||(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:pn}=ye.useContext(i.E_),He=pn("popconfirm",A),[Qe]=Jn(He);return Qe(ye.createElement(Wn.ZP,{placement:me,className:Ye()(He,q),style:Se,content:ye.createElement(hr,Object.assign({prefixCls:He},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:pn="click",okType:He="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=(mn,Oe)=>{qe(mn,!0),On==null||On(mn),dn==null||dn(mn,Oe)},De=mn=>{le(!1,mn)},Xe=mn=>{var Oe;return(Oe=m.onConfirm)===null||Oe===void 0?void 0:Oe.call(void 0,mn)},$e=mn=>{var Oe;le(!1,mn),(Oe=m.onCancel)===null||Oe===void 0||Oe.call(void 0,mn)},Ln=mn=>{mn.keyCode===Ze.Z.ESC&&ne&&le(!1,mn)},Mn=mn=>{const{disabled:Oe=!1}=m;Oe||le(mn)},dr=an("popconfirm",Se),Qn=Ye()(dr,yn),[Vn]=Jn(dr);return Vn(ye.createElement(de.Z,Object.assign({},(0,Ue.Z)(Tn,["title"]),{trigger:pn,placement:Pn,onOpenChange:Mn,open:ne,ref:A,overlayClassName:Qn,content:ye.createElement(hr,Object.assign({okType:He,icon:Qe},m,{prefixCls:dr,close:De,onConfirm:Xe,onCancel:$e})),"data-popover-inject":!0}),(0,Un.Tm)(Ne,{onKeyDown:mn=>{var Oe,or;ye.isValidElement(Ne)&&((or=Ne==null?void 0:(Oe=Ne.props).onKeyDown)===null||or===void 0||or.call(Oe,mn)),Ln(mn)}})))});qn._InternalPanelDoNotUseOrYouWillBeFired=Cr;var ar=qn,un=c(6053),In=c(85108),wn=c(6169),bn=c(12868),on=c(81447),Tr=c(90190),lr=c(42213),Er=c(28491),br=c(28976),rr=c(48232),Hn=c(11527),Lr=["map_row_parentKey"],Kr=["map_row_parentKey","map_row_key"],vn=["map_row_key"],ze=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,pn=m.childrenColumnName,He=pn===void 0?"children":pn,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"&&He in ne&&yn(ne[He]||[],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 $e=Xe.map_row_parentKey,Ln=(0,l.Z)(Xe,Lr);if(an.has($e)||an.set($e,[]),De){var Mn;(Mn=an.get($e))===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,$e=le.map_row_key,Ln=(0,l.Z)(le,Kr);an.has($e)&&(Ln[He]=an.get($e)),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,vn);if(De&&an.has(De)){var $e=(0,G.Z)((0,G.Z)({},Xe),{},(0,Rn.Z)({},He,an.get(De)));ne.push($e);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,pn=m.newLineConfig,He=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,$e,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=He==="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 $e=(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,Ve.Z)(me),Mn=Ln.slice(1),dr=(0,In.Z)($e,Mn),(0,wn.Z)($e,Mn,dr)),Qn=De?(0,wn.Z)({},Xe,$e):$e,Oe.next=11,q==null?void 0:q(me,(0,rr.T)({},Se,Qn),Se,pn);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($e){for(;;)switch($e.prev=$e.next){case 0:return De.stopPropagation(),De.preventDefault(),$e.prev=2,$e.next=5,ne();case 5:$e.next=9;break;case 7:$e.prev=7,$e.t0=$e.catch(2);case 9:case"end":return $e.stop()}},le,null,[[2,7]])}));return function(le){return qe.apply(this,arguments)}}(),children:[Tn?(0,Hn.jsx)(cn.Z,{style:{marginInlineEnd:8}}):null,Pn||"\u4FDD\u5B58"]},"save")}var fn=function(A){var me=A.recordKey,q=A.onDelete,Se=A.row,Pn=A.children,pn=A.deletePopconfirmMessage,He=(0,d.Z)(function(){return!1}),Qe=(0,v.Z)(He,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:pn,onConfirm:function(){return dn()},children:(0,Hn.jsxs)("a",{children:[Ne?(0,Hn.jsx)(cn.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,pn=A.onCancel,He=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,$e;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,pn==null?void 0:pn(me,Xe,Qe,Se);case 8:return $e=Mn.sent,Mn.next=11,He(me);case 11:return dn.setFieldsValue((0,Rn.Z)({},"".concat(me),qe?(0,In.Z)(Qe,le):Qe)),Mn.abrupt("return",$e);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,pn=(0,ye.forwardRef)(kn),He=(0,ye.createRef)();return{save:(0,Hn.jsx)(pn,(0,G.Z)((0,G.Z)({},A),{},{row:m,ref:He,children:Se}),"save"+me),saveRef:He,delete:(q==null?void 0:q.options.recordKey)!==me?(0,Hn.jsx)(fn,(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(We,we){var Ae,Ee=Je==null?we.toString():Je+"_"+we.toString();z.set(Ee,Ce(m.getRowKey(We,-1))),z.set((Ae=Ce(m.getRowKey(We,-1)))===null||Ae===void 0?void 0:Ae.toString(),Ee),m.childrenColumnName&&We[m.childrenColumnName]&&ge(We[m.childrenColumnName],Ee)})};return oe(m.dataSource),z},pn=(0,ye.useMemo)(function(){return Pn()},[]),He=(0,ye.useRef)(pn),Qe=(0,ye.useRef)(void 0);(0,Er.Au)(function(){He.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),We=(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()}),Ae=(De==null?void 0:De.map(function(Kn){return Kn==null?void 0:Kn.toString()}))||[],Ee=m.tableName&&!!(Ae!=null&&Ae.includes(We))||!!(Ae!=null&&Ae.includes(Je));return{recordKey:We,isEditable:m.tableName&&(we==null?void 0:we.includes(We))||(we==null?void 0:we.includes(Je)),preIsEditable:Ee}}),$e=(0,on.J)(function(Ie){return le.size>0&&Ne==="single"&&m.onlyOneLineEditorAlertMessage!==!1?(ze(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=He.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 ze(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 We,we,Ae,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||(We=m.onSave)===null||We===void 0?void 0:We.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((Ae=Cn==null?void 0:Cn.parentKey)!==null&&Ae!==void 0?Ae:""))===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,We;return(0,J.Z)().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Je={data:m.dataSource,getRowKey:m.getRowKey,row:ge,key:oe,childrenColumnName:m.childrenColumnName||"children"},Ae.next=3,m==null||(ie=m.onDelete)===null||ie===void 0?void 0:ie.call(m,oe,ge);case 3:return We=Ae.sent,Ae.next=6,Ln(oe,!1);case 6:return m.setDataSource(sn(Je,"delete")),Ae.abrupt("return",We);case 8:case"end":return Ae.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 We,we;return(0,J.Z)().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return Ee.next=2,m==null||(We=m.onCancel)===null||We===void 0?void 0:We.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:mn,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(He.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:$e,cancelEditable:Ln,addEditRecord:mn,saveEditable:Vn,newLineRecord:q,preEditableKeys:De,onValuesChange:dr,getRealIndex:m.getRealIndex}}},48578:function(pr,Bn,c){var X=c(63671);function J(){return(0,X.Z)()}Bn.ZP={useBreakpoint:J}}}]); diff --git a/9217.0e815c5b.async.js b/9217.0e815c5b.async.js deleted file mode 100644 index 84930d88cc..0000000000 --- a/9217.0e815c5b.async.js +++ /dev/null @@ -1,108 +0,0 @@ -!(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/9262.f0286eaa.async.js b/9262.f0286eaa.async.js new file mode 100644 index 0000000000..f6e00a3684 --- /dev/null +++ b/9262.f0286eaa.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9262],{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);++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},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||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},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 y=c.call(g,"constructor")&&g.constructor;return typeof y=="function"&&y instanceof y&&f.call(y)==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/9295.2fcd0b6c.async.js b/9295.2fcd0b6c.async.js deleted file mode 100644 index f22c61854e..0000000000 --- a/9295.2fcd0b6c.async.js +++ /dev/null @@ -1,17 +0,0 @@ -"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/9328.876be29a.async.js b/9328.876be29a.async.js new file mode 100644 index 0000000000..0323803077 --- /dev/null +++ b/9328.876be29a.async.js @@ -0,0 +1,21 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9328],{19485:function(se,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},9455:function(se,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},63374:function(se,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},34700:function(se,I,t){t.d(I,{Z:function(){return L}});var n=t(35361),v=t(50959),Z={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"},w=Z,P=t(69164),h=function(E,D){return v.createElement(P.Z,(0,n.Z)((0,n.Z)({},E),{},{ref:D,icon:w}))};h.displayName="AlipayOutlined";var L=v.forwardRef(h)},10587:function(se,I,t){t.d(I,{Z:function(){return L}});var n=t(35361),v=t(50959),Z={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"},w=Z,P=t(69164),h=function(E,D){return v.createElement(P.Z,(0,n.Z)((0,n.Z)({},E),{},{ref:D,icon:w}))};h.displayName="DingdingOutlined";var L=v.forwardRef(h)},62624:function(se,I,t){t.d(I,{Z:function(){return L}});var n=t(35361),v=t(50959),Z={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"},w=Z,P=t(69164),h=function(E,D){return v.createElement(P.Z,(0,n.Z)((0,n.Z)({},E),{},{ref:D,icon:w}))};h.displayName="TaobaoOutlined";var L=v.forwardRef(h)},68968:function(se,I,t){t.d(I,{Z:function(){return L}});var n=t(35361),v=t(50959),Z={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"},w=Z,P=t(69164),h=function(E,D){return v.createElement(P.Z,(0,n.Z)((0,n.Z)({},E),{},{ref:D,icon:w}))};h.displayName="UploadOutlined";var L=v.forwardRef(h)},48491:function(se,I,t){var n=t(27263),v=t(50959),Z=t(63374),w=t(38782),P=function(L,B){return v.createElement(w.Z,(0,n.Z)({},L,{ref:B,icon:Z.Z}))};I.Z=v.forwardRef(P)},52403:function(se,I,t){var n=t(35361),v=t(30360),Z=t(56929),w=t(81447),P=t(10994),h=t(21713),L=t(13763),B=t(50959),E=t(33359),D=t(81408),ee=t(11527),M=["children","value","valuePropName","onChange","fieldProps","space","type","transform","convertValue","lightProps"],k=["children","space","valuePropName"],V={space:P.Z,group:h.Z.Group};function z(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 G=d.children,U=d.value,H=U===void 0?[]:U,T=d.valuePropName,x=d.onChange,O=d.fieldProps,R=d.space,X=d.type,y=X===void 0?"space":X,Be=d.transform,Re=d.convertValue,Ze=d.lightProps,ze=(0,Z.Z)(d,M),He=(0,w.J)(function(N,Oe){var Pe,ne=(0,v.Z)(H);ne[Oe]=z(T||"value",N),x==null||x(ne),O==null||(Pe=O.onChange)===null||Pe===void 0||Pe.call(O,ne)}),Ke=-1,Te=(0,L.Z)(G).map(function(N){if(B.isValidElement(N)){var Oe,Pe,ne;Ke+=1;var W=Ke,rt=(N==null||(Oe=N.type)===null||Oe===void 0?void 0:Oe.displayName)==="ProFormComponent"||(N==null||(Pe=N.props)===null||Pe===void 0?void 0:Pe.readonly),dt=rt?(0,n.Z)((0,n.Z)({key:W,ignoreFormItem:!0},N.props||{}),{},{fieldProps:(0,n.Z)((0,n.Z)({},N==null||(ne=N.props)===null||ne===void 0?void 0:ne.fieldProps),{},{onChange:function(){He(arguments.length<=0?void 0:arguments[0],W)}}),value:H==null?void 0:H[W],onChange:void 0}):(0,n.Z)((0,n.Z)({key:W},N.props||{}),{},{value:H==null?void 0:H[W],onChange:function(Le){var Xe,Je;He(Le,W),(Xe=(Je=N.props).onChange)===null||Xe===void 0||Xe.call(Je,Le)}});return B.cloneElement(N,dt)}return N}),Ve=V[y],je=(0,D.zx)(ze),tt=je.RowWrapper,Ge=(0,B.useMemo)(function(){return(0,n.Z)({},y==="group"?{compact:!0}:{})},[y]),nt=(0,B.useCallback)(function(N){var Oe=N.children;return(0,ee.jsx)(Ve,(0,n.Z)((0,n.Z)((0,n.Z)({},Ge),R),{},{align:"start",wrap:!0,children:Oe}))},[Ve,R,Ge]);return(0,ee.jsx)(tt,{Wrapper:nt,children:Te})},ie=B.forwardRef(function(m,d){var G=m.children,U=m.space,H=m.valuePropName,T=(0,Z.Z)(m,k);return(0,B.useImperativeHandle)(d,function(){return{}}),(0,ee.jsx)(F,(0,n.Z)((0,n.Z)((0,n.Z)({space:U,valuePropName:H},T.fieldProps),{},{onChange:void 0},T),{},{children:G}))}),J=(0,E.G)(ie);I.Z=J},34635:function(se,I,t){var n=t(35361),v=t(56929),Z=t(75442),w=t(50959),P=t(86047),h=t(8376),L=t(11527),B=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],E=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],D=function(F,ie){var J=F.fieldProps,m=F.children,d=F.params,G=F.proFieldProps,U=F.mode,H=F.valueEnum,T=F.request,x=F.showSearch,O=F.options,R=(0,v.Z)(F,B),X=(0,w.useContext)(P.Z);return(0,L.jsx)(h.Z,(0,n.Z)((0,n.Z)({valueEnum:(0,Z.h)(H),request:T,params:d,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,n.Z)({options:O,mode:U,showSearch:x,getPopupContainer:X.getPopupContainer},J),ref:ie,proFieldProps:G},R),{},{children:m}))},ee=w.forwardRef(function(z,F){var ie=z.fieldProps,J=z.children,m=z.params,d=z.proFieldProps,G=z.mode,U=z.valueEnum,H=z.request,T=z.options,x=(0,v.Z)(z,E),O=(0,n.Z)({options:T,mode:G||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},ie),R=(0,w.useContext)(P.Z);return(0,L.jsx)(h.Z,(0,n.Z)((0,n.Z)({valueEnum:(0,Z.h)(U),request:H,params:m,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,n.Z)({getPopupContainer:R.getPopupContainer},O),ref:F,proFieldProps:d},x),{},{children:J}))}),M=w.forwardRef(D),k=ee,V=M;V.SearchSelect=k,V.displayName="ProFormComponent",I.Z=V},44896:function(se,I,t){var n=t(959),v=t(35361),Z=t(56929),w=t(65589),P=t(26935),h=t(23835),L=t(71770),B=t(50959),E=t(8376),D=t(11527),ee=["fieldProps","proFieldProps"],M=["fieldProps","proFieldProps"],k="text",V=function(m){var d=m.fieldProps,G=m.proFieldProps,U=(0,Z.Z)(m,ee);return(0,D.jsx)(E.Z,(0,v.Z)({valueType:k,fieldProps:d,filedConfig:{valueType:k},proFieldProps:G},U))},z=function(m){var d=(0,w.Z)(m.open||!1,{value:m.open,onChange:m.onOpenChange}),G=(0,n.Z)(d,2),U=G[0],H=G[1];return(0,D.jsx)(P.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(x){var O,R=x.getFieldValue(m.name||[]);return(0,D.jsx)(h.Z,(0,v.Z)((0,v.Z)({getPopupContainer:function(y){return y&&y.parentNode?y.parentNode:y},onOpenChange:H,content:(0,D.jsxs)("div",{style:{padding:"4px 0"},children:[(O=m.statusRender)===null||O===void 0?void 0:O.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:U,children:m.children}))}})},F=function(m){var d=m.fieldProps,G=m.proFieldProps,U=(0,Z.Z)(m,M),H=(0,B.useState)(!1),T=(0,n.Z)(H,2),x=T[0],O=T[1];return d!=null&&d.statusRender&&U.name?(0,D.jsx)(z,{name:U.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:O,children:(0,D.jsx)(E.Z,(0,v.Z)({valueType:"password",fieldProps:(0,v.Z)((0,v.Z)({},(0,L.Z)(d,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(X){var y;d==null||(y=d.onBlur)===null||y===void 0||y.call(d,X),O(!1)},onClick:function(X){var y;d==null||(y=d.onClick)===null||y===void 0||y.call(d,X),O(!0)}}),proFieldProps:G,filedConfig:{valueType:k}},U))}):(0,D.jsx)(E.Z,(0,v.Z)({valueType:"password",fieldProps:d,proFieldProps:G,filedConfig:{valueType:k}},U))},ie=V;ie.Password=F,ie.displayName="ProFormComponent",I.Z=ie},19805:function(se,I,t){var n=t(35361),v=t(56929),Z=t(50959),w=t(8376),P=t(11527),h=["fieldProps","proFieldProps"],L=function(E,D){var ee=E.fieldProps,M=E.proFieldProps,k=(0,v.Z)(E,h);return(0,P.jsx)(w.Z,(0,n.Z)({ref:D,valueType:"textarea",fieldProps:ee,proFieldProps:M},k))};I.Z=Z.forwardRef(L)},16590:function(se,I,t){t.d(I,{A:function(){return T}});var n=t(35361),v=t(26935),Z=t(50959),w=t(22332),P=t(54856),h=t(88357),L=t(959),B=t(25671),E=t(65589),D=t(54070),ee=t(38751),M=t(10994),k=t(82187),V=t.n(k),z=t(86047),F=t(81408),ie=t(34829),J=function(O){var R;return(0,h.Z)({},O.componentCls,{"&-title":{marginBlockEnd:O.marginXL,fontWeight:"bold"},"&-container":(0,h.Z)({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(O.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":(R={display:"block",width:"100%"},(0,h.Z)(R,"".concat(O.componentCls,"-title"),{width:"100%",margin:"8px 0"}),(0,h.Z)(R,"".concat(O.componentCls,"-container"),{paddingInlineStart:16}),(0,h.Z)(R,"".concat(O.antCls,"-space-item,").concat(O.antCls,"-form-item"),{width:"100%"}),(0,h.Z)(R,"".concat(O.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,ie.Xj)("ProFormGroup",function(O){var R=(0,n.Z)((0,n.Z)({},O),{},{componentCls:".".concat(x)});return[J(R)]})}var d=t(11527),G=Z.forwardRef(function(x,O){var R=Z.useContext(z.Z),X=R.groupProps,y=(0,n.Z)((0,n.Z)({},X),x),Be=y.children,Re=y.collapsible,Ze=y.defaultCollapsed,ze=y.style,He=y.labelLayout,Ke=y.title,Te=Ke===void 0?x.label:Ke,Ve=y.tooltip,je=y.align,tt=je===void 0?"start":je,Ge=y.direction,nt=y.size,N=nt===void 0?32:nt,Oe=y.titleStyle,Pe=y.titleRender,ne=y.spaceProps,W=y.extra,rt=y.autoFocus,dt=(0,E.Z)(function(){return Ze||!1},{value:x.collapsed,onChange:x.onCollapse}),ut=(0,L.Z)(dt,2),Le=ut[0],Xe=ut[1],Je=(0,Z.useContext)(ee.ZP.ConfigContext),ht=Je.getPrefixCls,St=(0,F.zx)(x),$t=St.ColWrapper,pt=St.RowWrapper,Ue=ht("pro-form-group"),yt=m(Ue),At=yt.wrapSSR,ot=yt.hashId,Ct=Re&&(0,d.jsx)(B.Z,{style:{marginInlineEnd:8},rotate:Le?void 0:90}),Pt=(0,d.jsx)(D.G,{label:Ct?(0,d.jsxs)("div",{children:[Ct,Te]}):Te,tooltip:Ve}),Et=(0,Z.useCallback)(function(xe){var Qe=xe.children;return(0,d.jsx)(M.Z,(0,n.Z)((0,n.Z)({},ne),{},{className:V()("".concat(Ue,"-container ").concat(ot),ne==null?void 0:ne.className),size:N,align:tt,direction:Ge,style:(0,n.Z)({rowGap:0},ne==null?void 0:ne.style),children:Qe}))},[tt,Ue,Ge,ot,N,ne]),Ot=Pe?Pe(Pt,x):Pt,It=(0,Z.useMemo)(function(){var xe=[],Qe=Z.Children.toArray(Be).map(function(be,Mt){var vt;return Z.isValidElement(be)&&be!==null&&be!==void 0&&(vt=be.props)!==null&&vt!==void 0&&vt.hidden?(xe.push(be),null):Mt===0&&Z.isValidElement(be)&&rt?Z.cloneElement(be,(0,n.Z)((0,n.Z)({},be.props),{},{autoFocus:rt})):be});return[(0,d.jsx)(pt,{Wrapper:Et,children:Qe},"children"),xe.length>0?(0,d.jsx)("div",{style:{display:"none"},children:xe}):null]},[Be,pt,Et,rt]),Ye=(0,L.Z)(It,2),wt=Ye[0],Dt=Ye[1];return At((0,d.jsx)($t,{children:(0,d.jsxs)("div",{className:V()(Ue,ot,(0,h.Z)({},"".concat(Ue,"-twoLine"),He==="twoLine")),style:ze,ref:O,children:[Dt,(Te||Ve||W)&&(0,d.jsx)("div",{className:"".concat(Ue,"-title ").concat(ot).trim(),style:Oe,onClick:function(){Xe(!Le)},children:W?(0,d.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[Ot,(0,d.jsx)("span",{onClick:function(Qe){return Qe.stopPropagation()},children:W})]}):Ot}),(0,d.jsx)("div",{style:{display:Re&&Le?"none":void 0},children:wt})]})}))});G.displayName="ProForm-Group";var U=G,H=t(76001);function T(x){return(0,d.jsx)(w.I,(0,n.Z)({layout:"vertical",submitter:{render:function(R,X){return X.reverse()}},contentRender:function(R,X){return(0,d.jsxs)(d.Fragment,{children:[R,X]})}},x))}T.Group=U,T.useForm=v.Z.useForm,T.Item=H.Z,T.useWatch=v.Z.useWatch,T.ErrorList=v.Z.ErrorList,T.Provider=v.Z.Provider,T.useFormInstance=v.Z.useFormInstance,T.EditOrReadOnlyContext=P.A},46268:function(se,I,t){t.d(I,{f:function(){return M}});var n=t(88357),v=t(38751),Z=t(82187),w=t.n(Z),P=t(50959),h=t(84341),L=t(35361),B=t(34829),E=function(V){return(0,n.Z)({},V.componentCls,{width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}})};function D(k){return(0,B.Xj)("ProLayoutGridContent",function(V){var z=(0,L.Z)((0,L.Z)({},V),{},{componentCls:".".concat(k)});return[E(z)]})}var ee=t(11527),M=function(V){var z=(0,P.useContext)(h.X),F=V.children,ie=V.contentWidth,J=V.className,m=V.style,d=(0,P.useContext)(v.ZP.ConfigContext),G=d.getPrefixCls,U=V.prefixCls||G("pro"),H=ie||z.contentWidth,T="".concat(U,"-grid-content"),x=D(T),O=x.wrapSSR,R=x.hashId,X=H==="Fixed"&&z.layout==="top";return O((0,ee.jsx)("div",{className:w()(T,R,J,(0,n.Z)({},"".concat(T,"-wide"),X)),style:m,children:(0,ee.jsx)("div",{className:"".concat(U,"-grid-content-children ").concat(R).trim(),children:F})}))}},84341:function(se,I,t){t.d(I,{X:function(){return v}});var n=t(50959),v=(0,n.createContext)({})},54070:function(se,I,t){t.d(I,{G:function(){return ie}});var n=t(35361),v=t(88357),Z=t(27263),w=t(50959),P=t(9455),h=t(38782),L=function(m,d){return w.createElement(h.Z,(0,Z.Z)({},m,{ref:d,icon:P.Z}))},B=w.forwardRef(L),E=t(38751),D=t(27850),ee=t(82187),M=t.n(ee),k=t(34829),V=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 z(J){return(0,k.Xj)("LabelIconTip",function(m){var d=(0,n.Z)((0,n.Z)({},m),{},{componentCls:".".concat(J)});return[V(d)]})}var F=t(11527),ie=w.memo(function(J){var m=J.label,d=J.tooltip,G=J.ellipsis,U=J.subTitle,H=(0,w.useContext)(E.ZP.ConfigContext),T=H.getPrefixCls,x=T("pro-core-label-tip"),O=z(x),R=O.wrapSSR,X=O.hashId;if(!d&&!U)return(0,F.jsx)(F.Fragment,{children:m});var y=typeof d=="string"||w.isValidElement(d)?{title:d}:d,Be=(y==null?void 0:y.icon)||(0,F.jsx)(B,{});return R((0,F.jsxs)("div",{className:M()(x,X),onMouseDown:function(Ze){return Ze.stopPropagation()},onMouseLeave:function(Ze){return Ze.stopPropagation()},onMouseMove:function(Ze){return Ze.stopPropagation()},children:[(0,F.jsx)("div",{className:M()("".concat(x,"-title"),X,(0,v.Z)({},"".concat(x,"-title-ellipsis"),G)),children:m}),U&&(0,F.jsx)("div",{className:"".concat(x,"-subtitle ").concat(X).trim(),children:U}),d&&(0,F.jsx)(D.Z,(0,n.Z)((0,n.Z)({},y),{},{children:(0,F.jsx)("span",{className:"".concat(x,"-icon ").concat(X).trim(),children:Be})}))]}))})},32895:function(se,I,t){t.d(I,{Z:function(){return hn}});var n=t(50959),v=t(30360),Z=t(10422),w=t(82187),P=t.n(w),h=t(27263),L=t(5952),B=t(97086),E=t(1378),D=t(90242),ee=t(14553),M=t(88357),k=t(35361),V=t(56929),z=t(11642),F=t(97382),ie=t(73356),J=t(68924),m=t(12868),d=function(e,r){if(e&&r){var a=Array.isArray(r)?r:r.split(","),i=e.name||"",c=e.type||"",l=c.replace(/\/.*$/,"");return a.some(function(s){var o=s.trim();if(/^\*(\/\*)?$/.test(s))return!0;if(o.charAt(0)==="."){var p=i.toLowerCase(),u=o.toLowerCase(),f=[u];return(u===".jpg"||u===".jpeg")&&(f=[".jpg",".jpeg"]),f.some(function(S){return p.endsWith(S)})}return/\/\*$/.test(o)?l===o.replace(/\/.*$/,""):c===o?!0:/^\w+$/.test(o)?((0,m.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(o,"'.Skip for check.")),!0):!1})}return!0};function G(e,r){var a="cannot ".concat(e.method," ").concat(e.action," ").concat(r.status,"'"),i=new Error(a);return i.status=r.status,i.method=e.method,i.url=e.action,i}function U(e){var r=e.responseText||e.response;if(!r)return r;try{return JSON.parse(r)}catch(a){return r}}function H(e){var r=new XMLHttpRequest;e.onProgress&&r.upload&&(r.upload.onprogress=function(l){l.total>0&&(l.percent=l.loaded/l.total*100),e.onProgress(l)});var a=new FormData;e.data&&Object.keys(e.data).forEach(function(c){var l=e.data[c];if(Array.isArray(l)){l.forEach(function(s){a.append("".concat(c,"[]"),s)});return}a.append(c,l)}),e.file instanceof Blob?a.append(e.filename,e.file,e.file.name):a.append(e.filename,e.file),r.onerror=function(l){e.onError(l)},r.onload=function(){return r.status<200||r.status>=300?e.onError(G(e,r),U(r)):e.onSuccess(U(r),r)},r.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in r&&(r.withCredentials=!0);var i=e.headers||{};return i["X-Requested-With"]!==null&&r.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(i).forEach(function(c){i[c]!==null&&r.setRequestHeader(c,i[c])}),r.send(a),{abort:function(){r.abort()}}}function T(e,r){var a=e.createReader(),i=[];function c(){a.readEntries(function(l){var s=Array.prototype.slice.apply(l);i=i.concat(s);var o=!s.length;o?r(i):c()})}c()}var x=function(r,a,i){var c=function l(s,o){s&&(s.path=o||"",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}})),a([p]))}):s.isDirectory&&T(s,function(p){p.forEach(function(u){l(u,"".concat(o).concat(s.name,"/"))})}))};r.forEach(function(l){c(l.webkitGetAsEntry())})},O=x,R=+new Date,X=0;function y(){return"rc-upload-".concat(R,"-").concat(++X)}var Be=["component","prefixCls","className","classNames","disabled","id","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Re=function(e){(0,D.Z)(a,e);var r=(0,ee.Z)(a);function a(){var i;(0,L.Z)(this,a);for(var c=arguments.length,l=new Array(c),s=0;s{const{componentCls:r,iconCls:a}=e;return{[`${r}-wrapper`]:{[`${r}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${(0,W.bf)(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[r]:{padding:e.padding},[`${r}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${(0,W.bf)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${r}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` + &:not(${r}-disabled):hover, + &-hover:not(${r}-disabled) + `]:{borderColor:e.colorPrimaryHover},[`p${r}-drag-icon`]:{marginBottom:e.margin,[a]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${r}-text`]:{margin:`0 0 ${(0,W.bf)(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${r}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${r}-disabled`]:{[`p${r}-drag-icon ${a}, + p${r}-text, + p${r}-hint + `]:{color:e.colorTextDisabled}}}}}},Le=e=>{const{componentCls:r,antCls:a,iconCls:i,fontSize:c,lineHeight:l,calc:s}=e,o=`${r}-list-item`,p=`${o}-actions`,u=`${o}-action`,f=e.fontHeightSM;return{[`${r}-wrapper`]:{[`${r}-list`]:Object.assign(Object.assign({},(0,N.dF)()),{lineHeight:e.lineHeight,[o]:{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},[`${o}-name`]:Object.assign(Object.assign({},N.vS),{padding:`0 ${(0,W.bf)(e.paddingXS)}`,lineHeight:l,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[p]:{[u]:{opacity:0},[i]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` + ${u}:focus-visible, + &.picture ${u} + `]:{opacity:1},[`${u}${a}-btn`]:{height:f,border:0,lineHeight:1}},[`${r}-icon ${i}`]:{color:e.colorTextDescription,fontSize:c},[`${o}-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}}},[`${o}:hover ${u}`]:{opacity:1},[`${o}-error`]:{color:e.colorError,[`${o}-name, ${r}-icon ${i}`]:{color:e.colorError},[p]:{[`${i}, ${i}:hover`]:{color:e.colorError},[u]:{opacity:1}}},[`${r}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Xe=t(36381);const Je=new W.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),ht=new W.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var $t=e=>{const{componentCls:r}=e,a=`${r}-animate-inline`;return[{[`${r}-wrapper`]:{[`${a}-appear, ${a}-enter, ${a}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${a}-appear, ${a}-enter`]:{animationName:Je},[`${a}-leave`]:{animationName:ht}}},{[`${r}-wrapper`]:(0,Xe.J$)(e)},Je,ht]},pt=t(22601);const Ue=e=>{const{componentCls:r,iconCls:a,uploadThumbnailSize:i,uploadProgressOffset:c,calc:l}=e,s=`${r}-list`,o=`${s}-item`;return{[`${r}-wrapper`]:{[` + ${s}${s}-picture, + ${s}${s}-picture-card, + ${s}${s}-picture-circle + `]:{[o]:{position:"relative",height:l(i).add(l(e.lineWidth).mul(2)).add(l(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${(0,W.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${o}-thumbnail`]:Object.assign(Object.assign({},N.vS),{width:i,height:i,lineHeight:(0,W.bf)(l(i).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[a]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${o}-progress`]:{bottom:c,width:`calc(100% - ${(0,W.bf)(l(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:l(i).add(e.paddingXS).equal()}},[`${o}-error`]:{borderColor:e.colorError,[`${o}-thumbnail ${a}`]:{[`svg path[fill='${pt.blue[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${pt.blue.primary}']`]:{fill:e.colorError}}},[`${o}-uploading`]:{borderStyle:"dashed",[`${o}-name`]:{marginBottom:c}}},[`${s}${s}-picture-circle ${o}`]:{[`&, &::before, ${o}-thumbnail`]:{borderRadius:"50%"}}}}},yt=e=>{const{componentCls:r,iconCls:a,fontSizeLG:i,colorTextLightSolid:c,calc:l}=e,s=`${r}-list`,o=`${s}-item`,p=e.uploadPicCardSize;return{[` + ${r}-wrapper${r}-picture-card-wrapper, + ${r}-wrapper${r}-picture-circle-wrapper + `]:Object.assign(Object.assign({},(0,N.dF)()),{display:"inline-block",width:"100%",[`${r}${r}-select`]:{width:p,height:p,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${(0,W.bf)(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${r}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${r}-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,W.bf)(e.marginXS)}`,marginInline:`0 ${(0,W.bf)(e.marginXS)}`,verticalAlign:"top"},"&::after":{display:"none"},[o]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,W.bf)(l(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,W.bf)(l(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${o}:hover`]:{[`&::before, ${o}-actions`]:{opacity:1}},[`${o}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` + ${a}-eye, + ${a}-download, + ${a}-delete + `]:{zIndex:10,width:i,margin:`0 ${(0,W.bf)(e.marginXXS)}`,fontSize:i,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:c,"&:hover":{color:c},svg:{verticalAlign:"baseline"}}},[`${o}-thumbnail, ${o}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${o}-name`]:{display:"none",textAlign:"center"},[`${o}-file + ${o}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${(0,W.bf)(l(e.paddingXS).mul(2).equal())})`},[`${o}-uploading`]:{[`&${o}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${a}-eye, ${a}-download, ${a}-delete`]:{display:"none"}},[`${o}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${(0,W.bf)(l(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${r}-wrapper${r}-picture-circle-wrapper`]:{[`${r}${r}-select`]:{borderRadius:"50%"}}}};var ot=e=>{const{componentCls:r}=e;return{[`${r}-rtl`]:{direction:"rtl"}}};const Ct=e=>{const{componentCls:r,colorTextDisabled:a}=e;return{[`${r}-wrapper`]:Object.assign(Object.assign({},(0,N.Wf)(e)),{[r]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${r}-select`]:{display:"inline-block"},[`${r}-disabled`]:{color:a,cursor:"not-allowed"}})}},Pt=e=>({actionsColor:e.colorTextDescription});var Et=(0,Pe.I$)("Upload",e=>{const{fontSizeHeading3:r,fontHeight:a,lineWidth:i,controlHeightLG:c,calc:l}=e,s=(0,ne.TS)(e,{uploadThumbnailSize:l(r).mul(2).equal(),uploadProgressOffset:l(l(a).div(2)).add(i).equal(),uploadPicCardSize:l(c).mul(2.55).equal()});return[Ct(s),dt(s),Ue(s),yt(s),Le(s),$t(s),ot(s),(0,Oe.Z)(s)]},Pt),Ot={icon:function(r,a){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:a}},{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:r}}]}},name:"file",theme:"twotone"},It=Ot,Ye=t(38782),wt=function(r,a){return n.createElement(Ye.Z,(0,h.Z)({},r,{ref:a,icon:It}))},Dt=n.forwardRef(wt),xe=t(58516),Qe={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"},be=Qe,Mt=function(r,a){return n.createElement(Ye.Z,(0,h.Z)({},r,{ref:a,icon:be}))},vt=n.forwardRef(Mt),Gt={icon:function(r,a){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:r}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:a}},{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:a}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:a}},{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:r}}]}},name:"picture",theme:"twotone"},Xt=Gt,Jt=function(r,a){return n.createElement(Ye.Z,(0,h.Z)({},r,{ref:a,icon:Xt}))},Yt=n.forwardRef(Jt),Ft=t(10091),Qt=t(97950),qt=t(48141),bt=t(37865),Nt=t(86865);function Zt(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,r){const a=(0,v.Z)(r),i=a.findIndex(c=>{let{uid:l}=c;return l===e.uid});return i===-1?a.push(e):a[i]=e,a}function Rt(e,r){const a=e.uid!==void 0?"uid":"name";return r.filter(i=>i[a]===e[a])[0]}function kt(e,r){const a=e.uid!==void 0?"uid":"name",i=r.filter(c=>c[a]!==e[a]);return i.length===r.length?null:i}const _t=function(){const r=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),i=r[r.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(i)||[""])[0]},Wt=e=>e.indexOf("image/")===0,en=e=>{if(e.type&&!e.thumbUrl)return Wt(e.type);const r=e.thumbUrl||e.url||"",a=_t(r);return/^data:image\//.test(r)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(a)?!0:!(/^data:/.test(r)||a)},Ae=200;function tn(e){return new Promise(r=>{if(!e.type||!Wt(e.type)){r("");return}const a=document.createElement("canvas");a.width=Ae,a.height=Ae,a.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ae}px; height: ${Ae}px; z-index: 9999; display: none;`,document.body.appendChild(a);const i=a.getContext("2d"),c=new Image;if(c.onload=()=>{const{width:l,height:s}=c;let o=Ae,p=Ae,u=0,f=0;l>s?(p=s*(Ae/l),f=-(p-o)/2):(o=l*(Ae/s),u=-(o-p)/2),i.drawImage(c,u,f,o,p);const S=a.toDataURL();document.body.removeChild(a),window.URL.revokeObjectURL(c.src),r(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&&r(l.result)},l.readAsDataURL(e)}else c.src=window.URL.createObjectURL(e)})}var nn=t(22717),rn=t(19485),on=function(r,a){return n.createElement(Ye.Z,(0,h.Z)({},r,{ref:a,icon:rn.Z}))},an=n.forwardRef(on),ln=t(96527),sn=t(24156),cn=t(27850),dn=n.forwardRef((e,r)=>{let{prefixCls:a,className:i,style:c,locale:l,listType:s,file:o,items:p,progress:u,iconRender:f,actionIconRender:S,itemRender:j,isImgUrl:Y,showPreviewIcon:ce,showRemoveIcon:ge,showDownloadIcon:he,previewIcon:re,removeIcon:de,downloadIcon:ue,onPreview:oe,onDownload:b,onClose:pe}=e;var _,Se;const{status:$e}=o,[ve,Ne]=n.useState($e);n.useEffect(()=>{$e!=="removed"&&Ne($e)},[$e]);const[qe,at]=n.useState(!1);n.useEffect(()=>{const le=setTimeout(()=>{at(!0)},300);return()=>{clearTimeout(le)}},[]);const De=f(o);let We=n.createElement("div",{className:`${a}-icon`},De);if(s==="picture"||s==="picture-card"||s==="picture-circle")if(ve==="uploading"||!o.thumbUrl&&!o.url){const le=P()(`${a}-list-item-thumbnail`,{[`${a}-list-item-file`]:ve!=="uploading"});We=n.createElement("div",{className:le},De)}else{const le=Y!=null&&Y(o)?n.createElement("img",{src:o.thumbUrl||o.url,alt:o.name,className:`${a}-list-item-image`,crossOrigin:o.crossOrigin}):De,st=P()(`${a}-list-item-thumbnail`,{[`${a}-list-item-file`]:Y&&!Y(o)});We=n.createElement("a",{className:st,onClick:we=>oe(o,we),href:o.url||o.thumbUrl,target:"_blank",rel:"noopener noreferrer"},le)}const ye=P()(`${a}-list-item`,`${a}-list-item-${ve}`),te=typeof o.linkProps=="string"?JSON.parse(o.linkProps):o.linkProps,it=ge?S((typeof de=="function"?de(o):de)||n.createElement(nn.Z,null),()=>pe(o),a,l.removeFile,!0):null,lt=he&&ve==="done"?S((typeof ue=="function"?ue(o):ue)||n.createElement(an,null),()=>b(o),a,l.downloadFile):null,ft=s!=="picture-card"&&s!=="picture-circle"&&n.createElement("span",{key:"download-delete",className:P()(`${a}-list-item-actions`,{picture:s==="picture"})},lt,it),Ee=P()(`${a}-list-item-name`),Me=o.url?[n.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Ee,title:o.name},te,{href:o.url,onClick:le=>oe(o,le)}),o.name),ft]:[n.createElement("span",{key:"view",className:Ee,onClick:le=>oe(o,le),title:o.name},o.name),ft],g=ce&&(o.url||o.thumbUrl)?n.createElement("a",{href:o.url||o.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:le=>oe(o,le),title:l.previewFile},typeof re=="function"?re(o):re||n.createElement(ln.Z,null)):null,q=(s==="picture-card"||s==="picture-circle")&&ve!=="uploading"&&n.createElement("span",{className:`${a}-list-item-actions`},g,ve==="done"&<,it),{getPrefixCls:Ce}=n.useContext(je.E_),me=Ce(),Fe=n.createElement("div",{className:ye},We,Me,q,qe&&n.createElement(Ft.ZP,{motionName:`${me}-fade`,visible:ve==="uploading",motionDeadline:2e3},le=>{let{className:st}=le;const we="percent"in o?n.createElement(sn.Z,Object.assign({},u,{type:"line",percent:o.percent,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"]})):null;return n.createElement("div",{className:P()(`${a}-list-item-progress`,st)},we)})),ke=o.response&&typeof o.response=="string"?o.response:((_=o.error)===null||_===void 0?void 0:_.statusText)||((Se=o.error)===null||Se===void 0?void 0:Se.message)||l.uploadError,Ie=ve==="error"?n.createElement(cn.Z,{title:ke,getPopupContainer:le=>le.parentNode},Fe):Fe;return n.createElement("div",{className:P()(`${a}-list-item-container`,i),style:c,ref:r},j?j(Ie,o,p,{download:b.bind(null,o),preview:oe.bind(null,o),remove:pe.bind(null,o)}):Ie)});const un=(e,r)=>{const{listType:a="text",previewFile:i=tn,onPreview:c,onDownload:l,onRemove:s,locale:o,iconRender:p,isImageUrl:u=en,prefixCls:f,items:S=[],showPreviewIcon:j=!0,showRemoveIcon:Y=!0,showDownloadIcon:ce=!1,removeIcon:ge,previewIcon:he,downloadIcon:re,progress:de={size:[-1,2],showInfo:!1},appendAction:ue,appendActionVisible:oe=!0,itemRender:b,disabled:pe}=e,_=(0,Qt.Z)(),[Se,$e]=n.useState(!1);n.useEffect(()=>{a!=="picture"&&a!=="picture-card"&&a!=="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(q=>{g.thumbUrl=q||"",_()}))})},[a,S,i]),n.useEffect(()=>{$e(!0)},[]);const ve=(g,q)=>{if(c)return q==null||q.preventDefault(),c(g)},Ne=g=>{typeof l=="function"?l(g):g.url&&window.open(g.url)},qe=g=>{s==null||s(g)},at=g=>{if(p)return p(g,a);const q=g.status==="uploading",Ce=u&&u(g)?n.createElement(Yt,null):n.createElement(Dt,null);let me=q?n.createElement(xe.Z,null):n.createElement(vt,null);return a==="picture"?me=q?n.createElement(xe.Z,null):Ce:(a==="picture-card"||a==="picture-circle")&&(me=q?o.uploading:Ce),me},De=(g,q,Ce,me,Fe)=>{const ke={type:"text",size:"small",title:me,onClick:Ie=>{q(),(0,bt.l$)(g)&&g.props.onClick&&g.props.onClick(Ie)},className:`${Ce}-list-item-action`};if(Fe&&(ke.disabled=pe),(0,bt.l$)(g)){const Ie=(0,bt.Tm)(g,Object.assign(Object.assign({},g.props),{onClick:()=>{}}));return n.createElement(Nt.ZP,Object.assign({},ke,{icon:Ie}))}return n.createElement(Nt.ZP,Object.assign({},ke),n.createElement("span",null,g))};n.useImperativeHandle(r,()=>({handlePreview:ve,handleDownload:Ne}));const{getPrefixCls:We}=n.useContext(je.E_),ye=We("upload",f),te=We(),it=P()(`${ye}-list`,`${ye}-list-${a}`),lt=(0,v.Z)(S.map(g=>({key:g.uid,file:g})));let Ee={motionDeadline:2e3,motionName:`${ye}-${a==="picture-card"||a==="picture-circle"?"animate-inline":"animate"}`,keys:lt,motionAppear:Se};const Me=n.useMemo(()=>{const g=Object.assign({},(0,qt.Z)(te));return delete g.onAppearEnd,delete g.onEnterEnd,delete g.onLeaveEnd,g},[te]);return a!=="picture-card"&&a!=="picture-circle"&&(Ee=Object.assign(Object.assign({},Me),Ee)),n.createElement("div",{className:it},n.createElement(Ft.V4,Object.assign({},Ee,{component:!1}),g=>{let{key:q,file:Ce,className:me,style:Fe}=g;return n.createElement(dn,{key:q,locale:o,prefixCls:ye,className:me,style:Fe,file:Ce,items:S,progress:de,listType:a,isImgUrl:u,showPreviewIcon:j,showRemoveIcon:Y,showDownloadIcon:ce,removeIcon:ge,previewIcon:he,downloadIcon:re,iconRender:at,actionIconRender:De,itemRender:b,onPreview:ve,onDownload:Ne,onClose:qe})}),ue&&n.createElement(Ft.ZP,Object.assign({},Ee,{visible:oe,forceRender:!0}),g=>{let{className:q,style:Ce}=g;return(0,bt.Tm)(ue,me=>({className:P()(me.className,q),style:Object.assign(Object.assign(Object.assign({},Ce),{pointerEvents:q?"none":void 0}),me.style)}))}))};var pn=n.forwardRef(un),vn=function(e,r,a,i){function c(l){return l instanceof a?l:new a(function(s){s(l)})}return new(a||(a=Promise))(function(l,s){function o(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(o,p)}u((i=i.apply(e,r||[])).next())})};const mt=`__LIST_IGNORE_${Date.now()}__`,mn=(e,r)=>{const{fileList:a,defaultFileList:i,onRemove:c,showUploadList:l=!0,listType:s="text",onPreview:o,onDownload:p,onChange:u,onDrop:f,previewFile:S,disabled:j,locale:Y,iconRender:ce,isImageUrl:ge,progress:he,prefixCls:re,className:de,type:ue="select",children:oe,style:b,itemRender:pe,maxCount:_,data:Se={},multiple:$e=!1,hasControlInside:ve=!0,action:Ne="",accept:qe="",supportServerRender:at=!0,rootClassName:De}=e,We=n.useContext(tt.Z),ye=j!=null?j:We,[te,it]=(0,Ve.Z)(i||[],{value:a,postState:C=>C!=null?C:[]}),[lt,ft]=n.useState("drop"),Ee=n.useRef(null);n.useMemo(()=>{const C=Date.now();(a||[]).forEach((A,Q)=>{!A.uid&&!Object.isFrozen(A)&&(A.uid=`__AUTO__${C}_${Q}__`)})},[a]);const Me=(C,A,Q)=>{let $=(0,v.Z)(A),K=!1;_===1?$=$.slice(-1):_&&(K=$.length>_,$=$.slice(0,_)),(0,Z.flushSync)(()=>{it($)});const fe={file:C,fileList:$};Q&&(fe.event=Q),(!K||$.some(_e=>_e.uid===C.uid))&&(0,Z.flushSync)(()=>{u==null||u(fe)})},g=(C,A)=>vn(void 0,void 0,void 0,function*(){const{beforeUpload:Q,transformFile:$}=e;let K=C;if(Q){const fe=yield Q(C,A);if(fe===!1)return!1;if(delete C[mt],fe===mt)return Object.defineProperty(C,mt,{value:!0,configurable:!0}),!1;typeof fe=="object"&&fe&&(K=fe)}return $&&(K=yield $(K)),K}),q=C=>{const A=C.filter(K=>!K.file[mt]);if(!A.length)return;const Q=A.map(K=>Zt(K.file));let $=(0,v.Z)(te);Q.forEach(K=>{$=xt(K,$)}),Q.forEach((K,fe)=>{let _e=K;if(A[fe].parsedFile)K.status="uploading";else{const{originFileObj:ct}=K;let et;try{et=new File([ct],ct.name,{type:ct.type})}catch(Rn){et=new Blob([ct],{type:ct.type}),et.name=ct.name,et.lastModifiedDate=new Date,et.lastModified=new Date().getTime()}et.uid=K.uid,_e=et}Me(_e,$)})},Ce=(C,A,Q)=>{try{typeof C=="string"&&(C=JSON.parse(C))}catch(fe){}if(!Rt(A,te))return;const $=Zt(A);$.status="done",$.percent=100,$.response=C,$.xhr=Q;const K=xt($,te);Me($,K)},me=(C,A)=>{if(!Rt(A,te))return;const Q=Zt(A);Q.status="uploading",Q.percent=C.percent;const $=xt(Q,te);Me(Q,$,C)},Fe=(C,A,Q)=>{if(!Rt(Q,te))return;const $=Zt(Q);$.error=C,$.response=A,$.status="error";const K=xt($,te);Me($,K)},ke=C=>{let A;Promise.resolve(typeof c=="function"?c(C):c).then(Q=>{var $;if(Q===!1)return;const K=kt(C,te);K&&(A=Object.assign(Object.assign({},C),{status:"removed"}),te==null||te.forEach(fe=>{const _e=A.uid!==void 0?"uid":"name";fe[_e]===A[_e]&&!Object.isFrozen(fe)&&(fe.status="removed")}),($=Ee.current)===null||$===void 0||$.abort(A),Me(A,K))})},Ie=C=>{ft(C.type),C.type==="drop"&&(f==null||f(C))};n.useImperativeHandle(r,()=>({onBatchStart:q,onSuccess:Ce,onProgress:me,onError:Fe,fileList:te,upload:Ee.current}));const{getPrefixCls:le,direction:st,upload:we}=n.useContext(je.E_),ae=le("upload",re),gt=Object.assign(Object.assign({onBatchStart:q,onError:Fe,onProgress:me,onSuccess:Ce},e),{data:Se,multiple:$e,action:Ne,accept:qe,supportServerRender:at,prefixCls:ae,disabled:ye,beforeUpload:g,onChange:void 0,hasControlInside:ve});delete gt.className,delete gt.style,(!oe||ye)&&delete gt.id;const zt=`${ae}-wrapper`,[jt,Ht,yn]=Et(ae,zt),[Cn]=(0,Ge.Z)("Upload",nt.Z.Upload),{showRemoveIcon:Kt,showPreviewIcon:Pn,showDownloadIcon:En,removeIcon:On,previewIcon:bn,downloadIcon:Zn}=typeof l=="boolean"?{}:l,xn=typeof Kt=="undefined"?!ye:!!Kt,Lt=(C,A)=>l?n.createElement(pn,{prefixCls:ae,listType:s,items:te,previewFile:S,onPreview:o,onDownload:p,onRemove:ke,showRemoveIcon:xn,showPreviewIcon:Pn,showDownloadIcon:En,removeIcon:On,previewIcon:bn,downloadIcon:Zn,iconRender:ce,locale:Object.assign(Object.assign({},Cn),Y),isImageUrl:ge,progress:he,appendAction:C,appendActionVisible:A,itemRender:pe,disabled:ye}):C,Ut=P()(zt,de,De,Ht,yn,we==null?void 0:we.className,{[`${ae}-rtl`]:st==="rtl",[`${ae}-picture-card-wrapper`]:s==="picture-card",[`${ae}-picture-circle-wrapper`]:s==="picture-circle"}),Sn=Object.assign(Object.assign({},we==null?void 0:we.style),b);if(ue==="drag"){const C=P()(Ht,ae,`${ae}-drag`,{[`${ae}-drag-uploading`]:te.some(A=>A.status==="uploading"),[`${ae}-drag-hover`]:lt==="dragover",[`${ae}-disabled`]:ye,[`${ae}-rtl`]:st==="rtl"});return jt(n.createElement("span",{className:Ut},n.createElement("div",{className:C,style:Sn,onDrop:Ie,onDragOver:Ie,onDragLeave:Ie},n.createElement(Te,Object.assign({},gt,{ref:Ee,className:`${ae}-btn`}),n.createElement("div",{className:`${ae}-drag-container`},oe))),Lt()))}const $n=P()(ae,`${ae}-select`,{[`${ae}-disabled`]:ye}),Vt=(C=>n.createElement("div",{className:$n,style:C},n.createElement(Te,Object.assign({},gt,{ref:Ee}))))(oe?void 0:{display:"none"});return jt(s==="picture-card"||s==="picture-circle"?n.createElement("span",{className:Ut},Lt(Vt,!!oe)):n.createElement("span",{className:Ut},Vt,Lt()))};var Bt=n.forwardRef(mn),fn=function(e,r){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(a[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,i=Object.getOwnPropertySymbols(e);c{var{style:a,height:i,hasControlInside:c=!1}=e,l=fn(e,["style","height","hasControlInside"]);return n.createElement(Bt,Object.assign({ref:r,hasControlInside:c},l,{type:"drag",style:Object.assign(Object.assign({},a),{height:i})}))});const Tt=Bt;Tt.Dragger=gn,Tt.LIST_IGNORE=mt;var hn=Tt}}]); diff --git a/9336.14d62ef2.async.js b/9336.14d62ef2.async.js deleted file mode 100644 index d79add8dd8..0000000000 --- a/9336.14d62ef2.async.js +++ /dev/null @@ -1,58 +0,0 @@ -(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/9555.00867e63.async.js b/9555.00867e63.async.js new file mode 100644 index 0000000000..76ede61ae7 --- /dev/null +++ b/9555.00867e63.async.js @@ -0,0 +1,107 @@ +var wr=Math.pow;(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9555],{75788:function(Ye,Ve,mt){"use strict";mt.d(Ve,{P:function(){return Mut}});var kt={};mt.r(kt),mt.d(kt,{area:function(){return TW},bottom:function(){return Fa},bottomLeft:function(){return Fa},bottomRight:function(){return Fa},inside:function(){return Fa},left:function(){return Fa},outside:function(){return kW},right:function(){return Fa},spider:function(){return LW},surround:function(){return IW},top:function(){return Fa},topLeft:function(){return Fa},topRight:function(){return Fa}});var Rt={};mt.r(Rt),mt.d(Rt,{interpolateBlues:function(){return YH},interpolateBrBG:function(){return wH},interpolateBuGn:function(){return RH},interpolateBuPu:function(){return LH},interpolateCividis:function(){return ZH},interpolateCool:function(){return nY},interpolateCubehelixDefault:function(){return tY},interpolateGnBu:function(){return NH},interpolateGreens:function(){return VH},interpolateGreys:function(){return $H},interpolateInferno:function(){return uY},interpolateMagma:function(){return lY},interpolateOrRd:function(){return IH},interpolateOranges:function(){return qH},interpolatePRGn:function(){return SH},interpolatePiYG:function(){return MH},interpolatePlasma:function(){return fY},interpolatePuBu:function(){return DH},interpolatePuBuGn:function(){return jH},interpolatePuOr:function(){return EH},interpolatePuRd:function(){return FH},interpolatePurples:function(){return XH},interpolateRainbow:function(){return rY},interpolateRdBu:function(){return AH},interpolateRdGy:function(){return TH},interpolateRdPu:function(){return BH},interpolateRdYlBu:function(){return PH},interpolateRdYlGn:function(){return CH},interpolateReds:function(){return UH},interpolateSinebow:function(){return oY},interpolateSpectral:function(){return kH},interpolateTurbo:function(){return sY},interpolateViridis:function(){return cY},interpolateWarm:function(){return eY},interpolateYlGn:function(){return GH},interpolateYlGnBu:function(){return zH},interpolateYlOrBr:function(){return WH},interpolateYlOrRd:function(){return HH},schemeAccent:function(){return KW},schemeBlues:function(){return Bw},schemeBrBG:function(){return mw},schemeBuGn:function(){return Aw},schemeBuPu:function(){return Tw},schemeCategory10:function(){return ZW},schemeDark2:function(){return QW},schemeGnBu:function(){return Pw},schemeGreens:function(){return zw},schemeGreys:function(){return Gw},schemeOrRd:function(){return Cw},schemeOranges:function(){return Yw},schemePRGn:function(){return bw},schemePaired:function(){return JW},schemePastel1:function(){return tH},schemePastel2:function(){return eH},schemePiYG:function(){return xw},schemePuBu:function(){return Rw},schemePuBuGn:function(){return kw},schemePuOr:function(){return _w},schemePuRd:function(){return Lw},schemePurples:function(){return Ww},schemeRdBu:function(){return Ow},schemeRdGy:function(){return ww},schemeRdPu:function(){return Nw},schemeRdYlBu:function(){return Sw},schemeRdYlGn:function(){return Mw},schemeReds:function(){return Hw},schemeSet1:function(){return nH},schemeSet2:function(){return rH},schemeSet3:function(){return iH},schemeSpectral:function(){return Ew},schemeTableau10:function(){return aH},schemeYlGn:function(){return jw},schemeYlGnBu:function(){return Iw},schemeYlOrBr:function(){return Dw},schemeYlOrRd:function(){return Fw}});var be={};mt.r(be),mt.d(be,{geoAlbers:function(){return Jk},geoAlbersUsa:function(){return ktt},geoAzimuthalEqualArea:function(){return Rtt},geoAzimuthalEqualAreaRaw:function(){return Mm},geoAzimuthalEquidistant:function(){return Ltt},geoAzimuthalEquidistantRaw:function(){return Em},geoConicConformal:function(){return Itt},geoConicConformalRaw:function(){return n5},geoConicEqualArea:function(){return Wh},geoConicEqualAreaRaw:function(){return Qk},geoConicEquidistant:function(){return Dtt},geoConicEquidistantRaw:function(){return r5},geoEqualEarth:function(){return Btt},geoEqualEarthRaw:function(){return Am},geoEquirectangular:function(){return jtt},geoEquirectangularRaw:function(){return _u},geoGnomonic:function(){return ztt},geoGnomonicRaw:function(){return Tm},geoIdentity:function(){return Gtt},geoMercator:function(){return Ntt},geoMercatorRaw:function(){return xu},geoNaturalEarth1:function(){return Wtt},geoNaturalEarth1Raw:function(){return Pm},geoOrthographic:function(){return Htt},geoOrthographicRaw:function(){return Cm},geoProjection:function(){return Oa},geoProjectionMutator:function(){return wm},geoStereographic:function(){return Ytt},geoStereographicRaw:function(){return km},geoTransverseMercator:function(){return Vtt},geoTransverseMercatorRaw:function(){return Rm}});var We={};mt.r(We),mt.d(We,{frequency:function(){return Xnt},id:function(){return Unt},name:function(){return qnt},weight:function(){return $nt}});var te=mt(50959),ve=mt(10422),re=mt.t(ve,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 Je(t,e){ie(t,e)}function $e(t,e){}function Ze(t,e){if(Lt){ke(t,e);return}Je(t,e)}function un(t){return dt(this,void 0,void 0,function(){return he(this,function(e){return[2,Promise.resolve().then(function(){var n;(n=t[Se])===null||n===void 0||n.unmount(),delete t[Se]})]})})}function Xe(t){jt(t)}function ze(t){}function ln(t){return dt(this,void 0,void 0,function(){return he(this,function(e){return Lt!==void 0?[2,un(t)]:(Xe(t),[2])})})}var Oe=new Map;Oe.set("tooltip",document.createElement("div"));var Me=function(t,e){e===void 0&&(e=!1);var n=null;if(e)n=Oe.get("tooltip");else if(n=document.createElement("div"),t!=null&&t.key){var r=Oe.get(t.key);r?n=r:Oe.set(t.key,n)}return Ze(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)},Fn=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())},Jn=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)}}(),fn=function(t){Jn(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=typeof global=="object"&&global&&global.Object===Object&&global,vt=yn,Yt=typeof self=="object"&&self&&self.Object===Object&&self,et=vt||Yt||Function("return this")(),at=et,Ot=at.Symbol,gt=Ot,$t=Object.prototype,Ft=$t.hasOwnProperty,ae=$t.toString,X=gt?gt.toStringTag:void 0;function lt(t){var e=Ft.call(t,X),n=t[X];try{t[X]=void 0;var r=!0}catch(a){}var i=ae.call(t);return r&&(e?t[X]=n:delete t[X]),i}var ht=lt,Ut=Object.prototype,Q=Ut.toString;function st(t){return Q.call(t)}var xt=st,H="[object Null]",K="[object Undefined]",ut=gt?gt.toStringTag:void 0;function x(t){return t==null?t===void 0?K:H:ut&&ut in Object(t)?ht(t):xt(t)}var T=x;function W(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var $=W,J="[object AsyncFunction]",ct="[object Function]",yt="[object GeneratorFunction]",St="[object Proxy]";function Et(t){if(!$(t))return!1;var e=T(t);return e==ct||e==yt||e==J||e==St}var _t=Et,zt=function(t){var e=/react|\.jsx|children:\[\(/i;return e.test(t)},Ht=Array.isArray,Ct=Ht;function Wt(){this.__data__=[],this.size=0}var Qt=Wt;function fe(t,e){return t===e||t!==t&&e!==e}var It=fe;function we(t,e){for(var n=t.length;n--;)if(It(t[n][0],e))return n;return-1}var qe=we,Ae=Array.prototype,Ie=Ae.splice;function Le(t){var e=this.__data__,n=qe(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Ie.call(e,n,1),--this.size,!0}var je=Le;function $n(t){var e=this.__data__,n=qe(e,t);return n<0?void 0:e[n][1]}var Xn=$n;function Un(t){return qe(this.__data__,t)>-1}var qn=Un;function or(t,e){var n=this.__data__,r=qe(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var sr=or;function Bn(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&wR?new S1:void 0;for(a.set(t,e),a.set(e,t);++f-1&&t%1==0&&t-1&&t%1==0&&t<=pL}var kp=vL,gL="[object Arguments]",yL="[object Array]",mL="[object Boolean]",bL="[object Date]",xL="[object Error]",_L="[object Function]",OL="[object Map]",wL="[object Number]",SL="[object Object]",ML="[object RegExp]",EL="[object Set]",AL="[object String]",TL="[object WeakMap]",PL="[object ArrayBuffer]",CL="[object DataView]",kL="[object Float32Array]",RL="[object Float64Array]",LL="[object Int8Array]",NL="[object Int16Array]",IL="[object Int32Array]",jL="[object Uint8Array]",DL="[object Uint8ClampedArray]",FL="[object Uint16Array]",BL="[object Uint32Array]",Zn={};Zn[kL]=Zn[RL]=Zn[LL]=Zn[NL]=Zn[IL]=Zn[jL]=Zn[DL]=Zn[FL]=Zn[BL]=!0,Zn[gL]=Zn[yL]=Zn[PL]=Zn[mL]=Zn[CL]=Zn[bL]=Zn[xL]=Zn[_L]=Zn[OL]=Zn[wL]=Zn[SL]=Zn[ML]=Zn[EL]=Zn[AL]=Zn[TL]=!1;function zL(t){return ci(t)&&kp(t.length)&&!!Zn[T(t)]}var GL=zL;function WL(t){return function(e){return t(e)}}var Rp=WL,j1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Hc=j1&&typeof module=="object"&&module&&!module.nodeType&&module,HL=Hc&&Hc.exports===j1,Lp=HL&&vt.process,YL=function(){try{var t=Hc&&Hc.require&&Hc.require("util").types;return t||Lp&&Lp.binding&&Lp.binding("util")}catch(e){}}(),Rs=YL,D1=Rs&&Rs.isTypedArray,VL=D1?Rp(D1):GL,Np=VL,$L=Object.prototype,XL=$L.hasOwnProperty;function UL(t,e){var n=Ct(t),r=!n&&Gc(t),i=!n&&!r&&Wc(t),a=!n&&!r&&!i&&Np(t),o=n||r||i||a,s=o?JR(t.length,String):[],c=s.length;for(var l in t)(e||XL.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 F1=UL,qL=Object.prototype;function ZL(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||qL;return t===n}var $u=ZL;function KL(t,e){return function(n){return t(e(n))}}var B1=KL,QL=B1(Object.keys,Object),JL=QL,tN=Object.prototype,eN=tN.hasOwnProperty;function nN(t){if(!$u(t))return JL(t);var e=[];for(var n in Object(t))eN.call(t,n)&&n!="constructor"&&e.push(n);return e}var rN=nN;function iN(t){return t!=null&&kp(t.length)&&!_t(t)}var Za=iN;function aN(t){return Za(t)?F1(t):rN(t)}var Go=aN;function oN(t){return T1(t,Go,Cp)}var Ip=oN,sN=1,cN=Object.prototype,lN=cN.hasOwnProperty;function uN(t,e,n,r,i,a){var o=n&sN,s=Ip(t),c=s.length,l=Ip(e),u=l.length;if(c!=u&&!o)return!1;for(var f=c;f--;){var d=s[f];if(!(o?d in e:lN.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 sft(t,e){var n=ej(t,e);return Math.acos(2*n*n-1)}function Qa(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 cft(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 lft(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 uft(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 fft(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 KI(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 QI(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 dft(t,e,n){return QI(t,e),tj(t,t,n),KI(t,t),t}function Zp(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>js.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 hft(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 Kp(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 pft(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function JI(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 tf(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 vft(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}var gft=cr.d9,Qp=cr.al,ef=cr.JG,yft=cr.t8,mft=cr.IH,xb=Qa,tj=cr.bA,ej=cr.AK,bft=cr.t7,xft=cr.kE,_ft=null,Oft=cr.we,wft=null,nf=cr.Fv,Sft=cr.I6,Mft=cr.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),Ka(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,nf(r,r))}}(),Aft=function(){var t=br(),e=br();return function(n,r,i,a,o,s){return Zp(t,r,o,s),Zp(e,i,a,s),Zp(n,t,e,2*s*(1-s)),n}}(),Tft=function(){var t=bb();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],nf(e,JI(e,t))}}(),Uc=mt(38015),xr=mt(39696);function li(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var ye=mt(58622),rf=mt(98104),er=function(t){return(0,rf.Z)(t,"String")},lr=mt(39083),qc={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function _b(t){return Array.isArray(t)&&t.every(function(e){var n=e[0].toLowerCase();return qc[n]===e.length-1&&"achlmqstvz".includes(n)})}function Ob(t){return _b(t)&&t.every(function(e){var n=e[0];return n===n.toUpperCase()})}function wb(t){return Ob(t)&&t.every(function(e){var n=e[0];return"ACLMQZ".includes(n)})}var Sb={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null};function Mb(t){for(var e=t.pathValue[t.segmentStart],n=e.toLowerCase(),r=t.data;r.length>=qc[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,qc[n]))),!!qc[n]););}function nj(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 rj(t){return t>=48&&t<=57||t===43||t===45||t===46}function Ds(t){return t>=48&&t<=57}function ij(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)),!Ds(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 af(t){for(var e=t.pathValue,n=t.max;t.index0;o-=1){if(sj(i)&&(o===3||o===4)?nj(t):ij(t),t.err.length)return;t.data.push(t.param),af(t),t.index=t.max||!rj(n.charCodeAt(t.index)))break}Mb(t)}var lj=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 uj(t){if(_b(t))return[].concat(t);var e=new lj(t);for(af(e);e.index=a)o={x:n,y:r};else{var s=Ja([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 Eb(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 hj(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 Jp(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)},D={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=Eb({x:1,y:0},N),R={x:(-O.x-C.x)/v,y:(-O.y-C.y)/g},I=Eb(N,R);!o&&I>0?I-=2*p:o&&I<0&&(I+=2*p),I%=2*p;var F=k+I*l,B=v*d(F),z=g*f(F),Y={x:d(m)*B-f(m)*z+D.x,y:f(m)*B+d(m)*z+D.y};return Y}function pj(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=hj(t,e,n,r,i,a,o,s,c,E),b=f.x,_=f.y,h&&P.push({x:b,y:_}),v&&(O+=li(M,[b,_])),M=[b,_],m&&O>=l&&l>w[2]){var D=(O-l)/(O-w[2]);A={x:M[0]*(1-D)+w[0]*D,y:M[1]*(1-D)+w[1]*D}}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 vj(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 Ab(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=vj(t,e,n,r,i,a,o,s,M),m=u.x,b=u.y,d&&A.push({x:m,y:b}),p&&(_+=li(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(D){return D.x})),y:Math.min.apply(null,A.map(function(D){return D.y}))},max:{x:Math.max.apply(null,A.map(function(D){return D.x})),y:Math.max.apply(null,A.map(function(D){return D.y}))}}}function gj(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 yj(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=gj(t,e,n,r,i,a,O),g=c.x,y=c.y,u&&M.push({x:g,y}),d&&(m+=li(_,[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 Tb(t,e,n){for(var r,i,a,o,s,c,l=of(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,D=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 mj(t,e){return Tb(t,void 0,(0,S.pi)((0,S.pi)({},e),{bbox:!1,length:!0})).length}var jr=function(t){return Array.isArray?Array.isArray(t):(0,rf.Z)(t,"Array")},sf=function(t){if(jr(t))return t.reduce(function(e,n){return Math.min(e,n)},t[0])},cf=function(t){if(jr(t))return t.reduce(function(e,n){return Math.max(e,n)},t[0])},bj=1e-5;function Zc(t,e,n){return n===void 0&&(n=bj),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 Oj(t){return wb(t)&&t.every(function(e){var n=e[0];return"MC".includes(n)})}function lf(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 t0(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=lf(u,f,-y),u=b.x,f=b.y,b=lf(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,D=h*h,N=(a===o?-1:1)*Math.sqrt(Math.abs((C*D-C*A*A-D*E*E)/(C*A*A+D*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,I=p,F=v;O=_+g*(o&&O>_?1:-1),p=w+d*Math.cos(O),v=M+h*Math.sin(O),m=t0(p,v,d,h,i,0,o,I,F,[O,R,w,M])}k=O-_;var B=Math.cos(_),z=Math.sin(_),Y=Math.cos(O),U=Math.sin(O),tt=Math.tan(k/4),rt=4/3*d*tt,wt=4/3*h*tt,Bt=[u,f],Xt=[u+rt*z,f-wt*B],Tt=[p+rt*U,v-wt*Y],Pt=[p,v];if(Xt[0]=2*Bt[0]-Xt[0],Xt[1]=2*Bt[1]-Xt[1],l)return Xt.concat(Tt,Pt,m);m=Xt.concat(Tt,Pt,m);for(var ce=[],le=0,_e=m.length;le<_e;le+=1)ce[le]=le%2?lf(m[le-1],m[le],y).y:lf(m[le],m[le+1],y).x;return ce}function wj(t,e,n,r,i,a){var o=.3333333333333333,s=2/3;return[o*t+s*n,o*e+s*r,o*i+s*n,o*a+s*r,i,a]}var Cb=function(t,e,n,r){var i=.5,a=Ja([t,e],[n,r],i);return(0,S.ev)((0,S.ev)([],a,!0),[n,r,n,r],!1)};function Sj(t,e){var n=t[0],r=t.slice(1).map(Number),i=r[0],a=r[1],o,s=e.x1,c=e.y1,l=e.x,u=e.y;switch("TQ".includes(n)||(e.qx=null,e.qy=null),n){case"M":return e.x=i,e.y=a,t;case"A":return o=[s,c].concat(r),["C"].concat(t0(o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7],o[8],o[9]));case"Q":return e.qx=i,e.qy=a,o=[s,c].concat(r),["C"].concat(wj(o[0],o[1],o[2],o[3],o[4],o[5]));case"L":return["C"].concat(Cb(s,c,i,a));case"Z":return s===l&&c===u?["C",s,c,l,u,l,u]:["C"].concat(Cb(s,c,l,u));default:}return t}function e0(t,e){if(e===void 0&&(e=!1),Oj(t)){var n=[].concat(t);return e?[n,[]]:n}for(var r=of(t),i=(0,S.pi)({},Sb),a=[],o="",s=r.length,c,l,u=[],f=0;f=d[y],h[y]-=p?1:0,p?m.ss:[m.s]}).flat()});return v[0].length===v[1].length?v:Rb(v[0],v[1],f)}function Ej(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 Aj(t){var e=0,n=0,r=0;return e0(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=Ej(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 Lb(t){return Aj(t)>=0}function Tj(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 Pj(t){return t.map(function(e){return Array.isArray(e)?[].concat(e):e})}function Cj(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 kj(t,e){var n=t.length-1,r=[],i=0,a=0,o=Cj(t);return o.forEach(function(s,c){t.slice(1).forEach(function(l,u){a+=li(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 Rj=function(t){return(0,rf.Z)(t,"Boolean")},Nb=Rj,Yo=function(t){var e=typeof t;return t!==null&&e==="object"||e==="function"},Lj=function(t){return t===void 0},nr=Lj;function Nj(t,e,n){return Tb(t,e,(0,S.pi)((0,S.pi)({},n),{bbox:!1,length:!0})).point}var Ij=mt(52617);function Wr(t,e,n,r){var i=t-n,a=e-r;return Math.sqrt(i*i+a*a)}function uf(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 Ib(t){return(t+Math.PI*2)%(Math.PI*2)}function jb(t,e){var n=Math.abs(t);return e>0?n:n*-1}function jj(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+jb(v,c),y:e+jb(g,l)}}function Dj(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 Fj(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 Bj(t,e,n){return Math.atan(-e/t*Math.tan(n))}function zj(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function Gj(t,e,n,r,i,a){return n*Math.cos(i)*Math.cos(a)-r*Math.sin(i)*Math.sin(a)+t}function Wj(t,e,n,r,i,a){return n*Math.sin(i)*Math.cos(a)+r*Math.cos(i)*Math.sin(a)+e}function Hj(t,e,n,r){var i=Math.atan2(r*t,n*e);return(i+Math.PI*2)%(Math.PI*2)}function Db(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function Fb(t,e,n){var r=Math.cos(n),i=Math.sin(n);return[t*r-e*i,t*i+e*r]}function Yj(t,e,n,r,i,a,o){for(var s=Bj(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=zj(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 Pft(t,e,n,r,i,a,o,s,c){var l=Fb(s-t,c-e,-i),u=__read(l,2),f=u[0],d=u[1],h=jj(0,0,n,r,f,d),p=Hj(n,r,h.x,h.y);po&&(h=Db(n,r,o));var v=Fb(h.x,h.y,i);return{x:v[0]+t,y:v[1]+e}}function Cft(t,e,n,r,i,a,o,s){var c=(o-a)*s+a,l=Dj(t,e,n,r,i,a,o,c),u=Fj(t,e,n,r,i,a,o,c);return Ib(Math.atan2(u,l))}var Vj=1e-4;function Bb(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=Wr(c[0],c[1],p[0],p[1]);v=0&&vs?Wr(n,r,i,a):Gb(t,e,n,r,i,a)}function Gb(t,e,n,r,i,a){var o=[n-t,r-e];if(Uc.I6(o,[0,0]))return Math.sqrt((i-t)*(i-t)+(a-e)*(a-e));var s=[-o[1],o[0]];Uc.Fv(s,s);var c=[i-t,a-e];return Math.abs(Uc.AK(c,s))}function Rft(t,e,n,r){return Math.atan2(r-e,n-t)}function Vo(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 Wb(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 Hb(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(Zc(i,0))Zc(a,0)||(c=-o/a,c>=0&&c<=1&&s.push(c));else{var f=a*a-4*i*o;Zc(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 Uj(t,e,n,r,i,a,o,s,c){var l=Vo(t,n,i,o,c),u=Vo(e,r,a,s,c),f=ia(t,e,n,r,c),d=ia(n,r,i,a,c),h=ia(i,a,o,s,c),p=ia(f.x,f.y,d.x,d.y,c),v=ia(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 n0(t,e,n,r,i,a,o,s,c){if(c===0)return $j([t,n,i,o],[e,r,a,s]);var l=Uj(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 n0.apply(void 0,__spreadArray([],__read(u),!1))+n0.apply(void 0,__spreadArray([],__read(f),!1))}function qj(t,e,n,r,i,a,o,s){for(var c=[t,o],l=[e,s],u=Hb(t,n,i,o),f=Hb(e,r,a,s),d=0;d1||e<0||t.length<2)return null;var n=Vb(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=ia(l[0],l[1],u[0],u[1],d);break}a+=f}return o}function Ub(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=Vb(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 qb(t,e,n){for(var r=1/0,i=0;i=0?[i]:[]}function Jj(t,e,n,r,i,a,o){var s=Kc(t,n,i,o),c=Kc(e,r,a,o),l=ia(t,e,n,r,o),u=ia(n,r,i,a,o);return[[t,e,l.x,l.y,s,c],[s,c,u.x,u.y,i,a]]}function r0(t,e,n,r,i,a,o){if(o===0)return(Wr(t,e,n,r)+Wr(n,r,i,a)+Wr(t,e,i,a))/2;var s=Jj(t,e,n,r,i,a,.5),c=s[0],l=s[1];return c.push(o-1),l.push(o-1),r0.apply(void 0,__spreadArray([],__read(c),!1))+r0.apply(void 0,__spreadArray([],__read(l),!1))}function t8(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(Kc(t,n,i,o)),s!==void 0&&l.push(Kc(e,r,a,s)),uf(c,l)}function Yft(t,e,n,r,i,a){return r0(t,e,n,r,i,a,3)}function e8(t,e,n,r,i,a,o,s){return Bb([t,n,i],[e,r,a],o,s,Kc)}function n8(t,e,n,r,i,a,o,s){var c=e8(t,e,n,r,i,a,o,s);return Wr(c.x,c.y,o,s)}var r8=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof mt.g!="undefined"?mt.g:typeof self!="undefined"?self:{},Kb={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(r8,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,D=Math.log(P),N=.5*Math.exp(2*D/3),k=.5*Math.sqrt(D*N*(P-N)/P)*(C-P/2<0?-1:1),R=Math.max(M,Math.floor(w-C*N/P+k)),I=Math.min(E,Math.floor(w+(P-C)*N/P+k));r(O,w,R,I,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),D=b(E.children.splice(C,E.children.length-C));D.height=E.height,D.leaf=E.leaf,c(E,this.toBBox),c(D,this.toBBox),M?w[M-1].children.push(D):this._splitRoot(E,D)},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,D=M;D<=E-M;D++){var N=l(w,0,D,this.toBBox),k=l(w,D,E,this.toBBox),R=g(N,k),I=h(N)+h(k);R=M;I--){var F=w.children[I];u(D,w.leaf?P(F):F),N+=p(D)}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})})(Kb);var i8=Kb.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 Fs;(function(t){t[t.ZERO=0]="ZERO",t[t.NEGATIVE_ONE=1]="NEGATIVE_ONE"})(Fs||(Fs={}));var to=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}(),a8=function(){function t(e){this.clipSpaceNearZ=Fs.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 Bs(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function i0(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function df(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function Qb(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function o8(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 s8(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 zs(t){return t===void 0?0:t>360||t<-360?t%360:t}function ti(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 rr(t){return t*(Math.PI/180)}function ki(t){return t*(180/Math.PI)}function Vft(t){return t=t%400,t<0&&(t+=400),t/400*360}function $ft(t){return t/360}function c8(t){return 360*t}function l8(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 u8(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 a0(t,e){return e.length===16?u8(t,e):l8(t,e)}function f8(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 d8(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 Jb(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&&(eGe[1][2]&&(a[0]=-a[0]),Ge[0][2]>Ge[2][0]&&(a[1]=-a[1]),Ge[1][0]>Ge[0][1]&&(a[2]=-a[2]),!0}function p8(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 v8(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 o0(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 Sr=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){Bs(this.center,e),Bs(this.halfExtents,n),i0(this.min,this.center,this.halfExtents),df(this.max,this.center,this.halfExtents)},t.prototype.setMinMax=function(e,n){df(this.center,n,e),Qb(this.center,this.center,.5),i0(this.halfExtents,n,e),Qb(this.halfExtents,this.halfExtents,.5),Bs(this.min,e),Bs(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,D=b-M,N=b+M;Ef&&(f=A),Ph&&(h=C),Dv&&(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],i0(this.min,r,i),df(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=o8([0,0,0],this.getMin(),e.getMin()),i=s8([0,0,0],this.getMax(),e.getMax());return n.setMinMax(r,i),n},t.prototype.getNegativeFarPoint=function(e){return e.pnVertexFlag===273?Bs([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?Bs([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}(),g8=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}(),eo;(function(t){t[t.OUTSIDE=4294967295]="OUTSIDE",t[t.INSIDE=0]="INSIDE",t[t.INDETERMINATE=2147483647]="INDETERMINATE"})(eo||(eo={}));var y8=function(){function t(e){if(this.planes=[],e)this.planes=e;else for(var n=0;n<6;n++)this.planes.push(new g8)}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}(),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}(),$o=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}(),Pn="Method not implemented.",Gs="Use document.documentElement instead.",m8="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 Jc;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.ROTATIONAL=1]="ROTATIONAL",t[t.TRANSLATIONAL=2]="TRANSLATIONAL",t[t.CINEMATIC=3]="CINEMATIC"})(Jc||(Jc={}));var ui;(function(t){t[t.ORTHOGRAPHIC=0]="ORTHOGRAPHIC",t[t.PERSPECTIVE=1]="PERSPECTIVE"})(ui||(ui={}));var ex={UPDATED:"updated"},nx=2e-4,rx=function(){function t(){this.clipSpaceNearZ=Fs.NEGATIVE_ONE,this.eventEmitter=new qp.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=wn.EXPLORING,this.trackingMode=Jc.DEFAULT,this.projectionMode=ui.PERSPECTIVE,this.frustum=new y8,this.orthoMatrix=qt.create()}return t.prototype.isOrtho=function(){return this.projectionMode===ui.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 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===ui.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===ui.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===ui.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===ui.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===ui.ORTHOGRAPHIC?this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far):this.projectionMode===ui.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=ui.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 d8(this.projectionMatrix,l,l+c,o,o-s,e,this.far,this.clipSpaceNearZ===Fs.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=ui.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===Fs.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=ti(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=ti(e,n,r),this.trackingMode===Jc.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=ki(Math.asin(n/o)),c=90+ki(Math.atan2(r,e)),l=qt.create();qt.rotateY(l,l,rr(c)),qt.rotateX(l,l,rr(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=ne.kEms&&e=no.kUnitType&&this.getType()<=no.kClampType},t}(),S8=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 no.kColorType},e.prototype.to=function(n){return this},e}(hf),oa;(function(t){t[t.Constant=0]="Constant",t[t.LinearGradient=1]="LinearGradient",t[t.RadialGradient=2]="RadialGradient"})(oa||(oa={}));var pf=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 no.kColorType},e}(hf),fi=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 no.kKeywordType},e.prototype.buildCSSText=function(n,r,i){return i+this.value},e}(hf),M8=Hr(function(t){return t===void 0&&(t=""),t.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})}),ox=function(t){return t.split("").map(function(e,n){return e.toUpperCase()===e?"".concat(n!==0?"-":"").concat(e.toLowerCase()):e}).join("")};function E8(t){if(!t)throw new Error}function Ws(t){return typeof t=="function"}function A8(t){return typeof t=="symbol"}var Xft=function(t){return Object.fromEntries(Object.entries(t).filter(function(e){var n=__read(e,2),r=n[1];return r!==void 0}))},T8={d:{alias:"path"},strokeDasharray:{alias:"lineDash"},strokeWidth:{alias:"lineWidth"},textAnchor:{alias:"textAlign"},src:{alias:"img"}},u0=Hr(function(t){var e=M8(t),n=T8[e];return e=(n==null?void 0:n.alias)||e,e}),P8=function(t,e){e===void 0&&(e="");var n="";return Number.isFinite(t)?(E8(Number.isNaN(t)),n="NaN"):t>0?n="infinity":n="-infinity",n+=e},f0=function(t){return w8(O8(t))},Cn=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=_8(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 no.kUnitType},e.prototype.convertTo=function(n){if(this.unit===n)return new e(this.value,this.unit);var r=f0(this.unit);if(r!==f0(n)||r===ne.kUnknown)return null;var i=ax(this.unit)/ax(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=l0(this.unit);if(cs){var u=l0(this.unit);!Number.isFinite(c)||Number.isNaN(c)?a=P8(c,u):a=c+(u||"")}else a="".concat(c).concat(l)}}return i+=a,i},e}(hf),Cr=new Cn(0,"px");new Cn(1,"px");var Ta=new Cn(0,"deg"),d0=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}(S8),In=new fi("unset"),C8=new fi("initial"),k8=new fi("inherit"),h0={"":In,unset:In,initial:C8,inherit:k8},p0=function(t){return h0[t]||(h0[t]=new fi(t)),h0[t]},v0=new d0(0,0,0,0,!0),sx=new d0(0,0,0,0),R8=Hr(function(t,e,n,r){return new d0(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=ne.kNumber),new Cn(t,e)},vf=new Cn(50,"%"),g0;(function(t){t[t.Standard=0]="Standard"})(g0||(g0={}));var Hs;(function(t){t[t.ADDED=0]="ADDED",t[t.REMOVED=1]="REMOVED",t[t.Z_INDEX_CHANGED=2]="Z_INDEX_CHANGED"})(Hs||(Hs={}));var cx={absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new $o(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 L8(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 N8=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 U=z();return U&&(R(t.comma)||n("Missing comma before color stops")),{type:F,orientation:U,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)||D()||N()}function D(){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&&I(B[0].length);var z=F.exec(e);return z&&I(z[0].length),z}function I(F){e=e.substring(F)}return function(F){return e=F,r()}}();function I8(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 j8(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(li([0,0],[a,o]),li([0,e],[a,o]),li([t,e],[a,o]),li([t,0],[a,o]));return i&&(i instanceof Cn?s=i.value:i instanceof fi&&(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(li([0,0],[a,o]),li([0,e],[a,o]),li([t,e],[a,o]),li([t,0],[a,o]))))),{x:a,y:o,r:s}}var D8=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,F8=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,B8=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,lx=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function z8(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=N8(t);return n.map(function(s){var c=s.type,l=s.orientation,u=s.colorStops;z8(u);var f=u.map(function(b){return{offset:ir(Number(b.length.value),"%"),color:L8(b)}});if(c==="linear-gradient")return new pf(oa.LinearGradient,{angle:l?W8(l):Ta,steps:f});if(c==="radial-gradient"&&(l||(l=[{type:"shape",value:"circle"}]),l[0].type==="shape"&&l[0].value==="circle")){var d=H8(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=p0(m):v=ir(m,y)}return new pf(oa.RadialGradient,{cx:h,cy:p,size:v,steps:f})}})}var r=t[0];if(t[1]==="("||t[2]==="("){if(r==="l"){var i=D8.exec(t);if(i){var a=((e=i[2].match(lx))===null||e===void 0?void 0:e.map(function(s){return s.split(":")}))||[];return[new pf(oa.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=V8(t);if(o)if(er(o))t=o;else return[new pf(oa.RadialGradient,o)]}else if(r==="p")return $8(t)}});function V8(t){var e,n=F8.exec(t);if(n){var r=((e=n[4].match(lx))===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 $8(t){var e=B8.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 Uft(t){return!!t.type&&!!t.value}function tl(t){return t&&!!t.image}function gf(t){return t&&!(0,ye.Z)(t.r)&&!(0,ye.Z)(t.g)&&!(0,ye.Z)(t.b)}var Pa=Hr(function(t){if(tl(t))return(0,S.pi)({repetition:"repeat"},t);if((0,ye.Z)(t)&&(t=""),t==="transparent")return sx;t==="currentColor"&&(t="black");var e=Y8(t);if(e)return e;var n=Ij.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),R8.apply(void 0,(0,S.ev)([],(0,S.CR)(r),!1))});function X8(t,e){if(!(!gf(t)||!gf(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,lr.Z)(r[i],0,255));return r[3]=(0,lr.Z)(r[3],0,1),"rgba(".concat(r.join(","),")")}]}function el(t,e){if((0,ye.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 U8=Hr(function(t){return el(new RegExp("px","g"),t)});Hr(function(t){return el(new RegExp("%","g"),t)});var Ys=function(t){return(0,xr.Z)(t)||isFinite(Number(t))?ir(Number(t)||0,"px"):el(new RegExp("px|%|em|rem","g"),t)},ux=Hr(function(t){return el(new RegExp("deg|rad|grad|turn","g"),t)});function q8(t,e,n,r,i){i===void 0&&(i=0);var a="",o=t.value||0,s=e.value||0,c=f0(t.unit),l=t.convertTo(c),u=e.convertTo(c);return l&&u?(o=l.value,s=u.value,a=l0(t.unit)):(Cn.isLength(t.unit)||Cn.isLength(e.unit))&&(o=Si(t,i,n),s=Si(e,i,n),a="px"),[o,s,function(f){return r&&(f=Math.max(f,0)),f+a}]}function wi(t){var e=0;return t.unit===ne.kDegrees?e=t.value:t.unit===ne.kRadians?e=ki(Number(t.value)):t.unit===ne.kTurns&&(e=c8(Number(t.value))),e}function y0(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 fx(t){return er(t)?t.split(" ").map(function(e){return Ys(e)}):t.map(function(e){return Ys(e.toString())})}function Si(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 Z8=function(t){return el(/deg|rad|grad|turn|px|%/g,t)},K8=["blur","brightness","drop-shadow","contrast","grayscale","sepia","saturate","hue-rotate","invert"];function dx(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,K8.indexOf(r[1])>-1&&n.push({name:r[1],params:r[2].split(" ").map(function(a){return Z8(a)||Pa(a)})}),e.lastIndex===t.length)return n}return[]}function hx(t){return t.toString()}var Xo=Hr(function(t){return typeof t=="number"?ir(t):/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t)?ir(Number(t)):ir(0)});Hr(function(t){return er(t)?t.split(" ").map(Xo):t.map(Xo)});function m0(t,e){return[t,e,hx]}function b0(t,e){return function(n,r){return[n,r,function(i){return hx((0,lr.Z)(i,t,e))}]}}function px(t,e){if(t.length===e.length)return[t,e,function(n){return n}]}function x0(t){return t.parsedStyle.path.totalLength===0&&(t.parsedStyle.path.totalLength=mj(t.parsedStyle.path.absolutePath)),t.parsedStyle.path.totalLength}function Q8(t){for(var e=0;e0&&n.push(r),{polygons:e,polylines:n}}function yf(t,e){return t[0]===e[0]&&t[1]===e[1]}function e6(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 vx(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}var gx=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},yx=function(t,e,n,r,i,a,o,s){e=Math.abs(e),n=Math.abs(n),r=Pb(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},_=gx({x:1,y:0},b),O={x:(-f.x-y.x)/e,y:(-f.y-y.y)/n},w=gx(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 n6(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=bx([1,0],_),M=bx(_,O);return _0(_,O)<=-1&&(M=Math.PI),_0(_,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:yf(t,[l,u])?0:n,ry:yf(t,[l,u])?0:r,startAngle:w,endAngle:w+M,xRotation:i,arcFlag:a,sweepFlag:o}}function i6(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 a6(t,e,n,r){return[["M",t,e],["L",n,r]]}function xx(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 o6(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 s6(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 O0(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=a6(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=xx(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=xx(O,M,g,m);break}case bt.POLYLINE:case bt.POLYGON:var P=t.parsedStyle.points;n=o6(P.points,t.nodeName===bt.POLYGON);break;case bt.RECT:var C=t.parsedStyle,D=C.width,N=D===void 0?0:D,k=C.height,R=k===void 0?0:k,I=C.x,F=I===void 0?0:I,B=C.y,z=B===void 0?0:B,Y=C.radius,U=Y&&Y.some(function(rt){return rt!==0});n=s6(N,R,F,z,U&&Y.map(function(rt){return(0,lr.Z)(rt,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 i6(n,t,e)}function qft(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 _x=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=of(t)}catch(d){e=of(""),console.error("[g]: Invalid SVG Path definition: ".concat(t))}Q8(e);var n=J8(e),r=t6(e),i=r.polygons,a=r.polylines,o=n6(e),s=e6(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}}},c6=Hr(_x);function w0(t){return er(t)?c6(t):_x(t)}function l6(t,e,n){var r=t.curve,i=e.curve;(!r||r.length===0)&&(r=e0(t.absolutePath,!1),t.curve=r),(!i||i.length===0)&&(i=e0(e.absolutePath,!1),e.curve=i);var a=[r,i];r.length!==i.length&&(a=Rb(r,i));var o=Lb(a[0])!==Lb(a[1])?Tj(a[0]):Pj(a[0]);return[o,kj(a[1],o),function(s){return s}]}function Ox(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=Qj(n);n.forEach(function(u,f){n[f+1]&&(a=[0,0],a[0]=i/s,o=zb(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 u6(t,e){return[t.points,e.points,function(n){return n}]}var ur=null;function di(t){return function(e){var n=0;return t.map(function(r){return r===ur?e[n++]:r})}}function Uo(t){return t}var S0={matrix:["NNNNNN",[ur,ur,0,0,ur,ur,0,0,0,0,1,0,ur,ur,0,1],Uo],matrix3d:["NNNNNNNNNNNNNNNN",Uo],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",di([ur,ur,new Cn(1)]),Uo],scalex:["N",di([ur,new Cn(1),new Cn(1)]),di([ur,new Cn(1)])],scaley:["N",di([new Cn(1),ur,new Cn(1)]),di([new Cn(1),ur])],scalez:["N",di([new Cn(1),new Cn(1),ur])],scale3d:["NNN",Uo],skew:["Aa",null,Uo],skewx:["A",null,di([ur,Ta])],skewy:["A",null,di([Ta,ur])],translate:["Tt",di([ur,ur,Cr]),Uo],translatex:["T",di([ur,Cr,Cr]),di([ur,Cr])],translatey:["T",di([Cr,ur,Cr]),di([Cr,ur])],translatez:["L",di([Cr,Cr,ur])],translate3d:["TTL",Uo]};function xf(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=S0[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=y0(n.anchor,2)),n.transform&&(e.parsedStyle.transform=xf(n.transform)),n.transformOrigin&&(e.parsedStyle.transformOrigin=Sx(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=ro[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=ro[e],a=n;if((n===""||(0,ye.Z)(n))&&(n="unset"),n==="unset"||n==="initial"||n==="inherit")a=p0(n);else if(i){var o=i.k,s=i.syntax,c=s&&this.getPropertySyntax(s);o&&o.indexOf(n)>-1?a=p0(n):c&&c.parser&&(a=c.parser(n,r))}return a},t.prototype.computeProperty=function(e,n,r){var i=ro[e],a=r.id==="g-root",o=n;if(i){var s=i.syntax,c=i.inh,l=i.d;if(n instanceof fi){var u=n.value;if(u==="unset"&&(c&&!a?u="inherit":u="initial"),u==="initial")(0,ye.Z)(l)||(n=this.parseProperty(e,Ws(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 fi?o=n.value:o=n}return o},t.prototype.postProcessProperty=function(e,n,r){var i=ro[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=Vs.get(e);r||(Vs.set(e,[]),r=Vs.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&&x6(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=Vs.get(e);if(n&&n.length){var r={};n.forEach(function(i){r[i]=e.attributes[i]}),this.processProperties(e,r),Vs.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 Sr),i.renderBounds||(i.renderBounds=new Sr);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 D=[(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(D,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(D,y),M&&w&&w!=="inner"){var I=i.renderBounds,F=I.min,B=I.max,z=a,Y=z.shadowBlur,U=z.shadowOffsetX,tt=z.shadowOffsetY,rt=Y||0,wt=U||0,Bt=tt||0,Xt=F[0]-rt+wt,Tt=B[0]+rt+wt,Pt=F[1]-rt+Bt,ce=B[1]+rt+Bt;F[0]=Math.min(F[0],Xt),B[0]=Math.max(B[0],Tt),F[1]=Math.min(F[1],Pt),B[1]=Math.max(B[1],ce),i.renderBounds.setMinMax(F,B)}A.forEach(function(Qe){var dn=Qe.name,xn=Qe.params;if(dn==="blur"){var Vn=xn[0].value;i.renderBounds.update(i.renderBounds.center,df(i.renderBounds.halfExtents,i.renderBounds.halfExtents,[Vn,Vn,0]))}else if(dn==="drop-shadow"){var mr=xn[0].value,bi=xn[1].value,qa=xn[2].value,As=i.renderBounds,oi=As.min,$i=As.max,pn=oi[0]-qa+mr,_n=$i[0]+qa+mr,ar=oi[1]-qa+bi,An=$i[1]+qa+bi;oi[0]=Math.min(oi[0],pn),$i[0]=Math.max($i[0],_n),oi[1]=Math.min(oi[1],ar),$i[1]=Math.max($i[1],An),i.renderBounds.setMinMax(oi,$i)}}),C=a.anchor;var le=s<0,_e=c<0,He=(le?-1:1)*(P?Si(P[0],0,e):0),Be=(_e?-1:1)*(P?Si(P[1],1,e):0);He=He-(le?-1:1)*(C&&C[0]||0)*i.contentBounds.halfExtents[0]*2,Be=Be-(_e?-1:1)*(C&&C[1]||0)*i.contentBounds.halfExtents[1]*2,e.setOrigin(He,Be),this.runtime.sceneGraphService.dirtifyToRoot(e)}},t.prototype.isPropertyInheritable=function(e){var n=ro[e];return n?n.inh:!1},t}(),O6=function(){function t(){this.parser=ux,this.parserWithCSSDisabled=null,this.mixer=m0}return t.prototype.calculator=function(e,n,r,i){return wi(r)},t}(),w6=function(){function t(){}return t.prototype.calculator=function(e,n,r,i,a){return r instanceof fi&&(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}(),S6=function(){function t(){this.parser=Pa,this.parserWithCSSDisabled=Pa,this.mixer=X8}return t.prototype.calculator=function(e,n,r,i){return r instanceof fi?r.value==="none"?v0:sx:r},t}(),M6=function(){function t(){this.parser=dx}return t.prototype.calculator=function(e,n,r){return r instanceof fi?[]:r},t}();function Ax(t){var e=t.parsedStyle.fontSize;return(0,ye.Z)(e)?null:e}var P0=function(){function t(){this.parser=Ys,this.parserWithCSSDisabled=null,this.mixer=m0}return t.prototype.calculator=function(e,n,r,i,a){var o;if((0,xr.Z)(r))return r;if(Cn.isRelativeUnit(r.unit)){var s=a.styleValueRegistry;if(r.unit===ne.kPercentage)return 0;if(r.unit===ne.kEms){if(i.parentNode){var c=Ax(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=Ax(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}(),E6=function(){function t(){this.mixer=px}return t.prototype.parser=function(e){var n=fx((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}(),A6=function(){function t(){this.mixer=px}return t.prototype.parser=function(e){var n=fx((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}(),nl=qt.create();function C0(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||[Ta];e.rotateLocal(0,0,wi(l[0]))}else if(a==="rotatex"){var l=o||[Ta];e.rotateLocal(wi(l[0]),0,0)}else if(a==="rotatey"){var l=o||[Ta];e.rotateLocal(0,wi(l[0]),0)}else if(a==="rotatez"){var l=o||[Ta];e.rotateLocal(0,0,wi(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(qt.set(nl,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)([nl],(0,S.CR)(o.map(function(m){return m.value})),!1)),nl[12]+=n,nl[13]+=r,e.setLocalTransform(nl))}),e.getLocalTransform()}var T6=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)C0(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}(P0),P6=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){r instanceof fi&&(r=null);var a=r==null?void 0:r.cloneNode(!0);return a&&(a.style.isMarker=!0),a},t}(),C6=function(){function t(){this.mixer=m0,this.parser=Xo,this.parserWithCSSDisabled=null}return t.prototype.calculator=function(e,n,r){return r.value},t}(),k6=function(){function t(){this.parser=Xo,this.parserWithCSSDisabled=null,this.mixer=b0(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}(),R6=function(){function t(){this.parser=Xo,this.parserWithCSSDisabled=null,this.mixer=b0(0,1)}return t.prototype.calculator=function(e,n,r){return r.value},t}(),L6=function(){function t(){this.parser=w0,this.parserWithCSSDisabled=w0,this.mixer=l6}return t.prototype.calculator=function(e,n,r){return r instanceof fi&&r.value==="unset"?{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new $o(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}(),N6=function(){function t(){this.parser=Ox,this.mixer=u6}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}(),I6=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=b0(0,1/0),n}return e}(P0),j6=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){return r instanceof fi?r.value==="unset"?"":r.value:"".concat(r)},t.prototype.postProcessor=function(e){e.nodeValue="".concat(e.parsedStyle.text)||""},t}(),D6=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}(),k0={},F6=0;function B6(t,e){if(t){var n=typeof t=="string"?t:t.id||F6++;k0[n]&&k0[n].destroy(),k0[n]=e}}var rl=typeof window!="undefined"&&typeof window.document!="undefined";function z6(t){return!!t.getAttribute}function G6(t,e){for(var n=0,r=t.length;n>>1;Tx(t[i],e)<0?n=i+1:r=i}return n}function Tx(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 Px(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 Cx="px";function W6(t,e,n){rl&&t.style&&(t.style.width=e+Cx,t.style.height=n+Cx)}function kx(t,e){if(rl)return document.defaultView.getComputedStyle(t,null).getPropertyValue(e)}function H6(t){var e=kx(t,"width");return e==="auto"?t.offsetWidth:parseFloat(e)}function Y6(t){var e=kx(t,"height");return e==="auto"?t.offsetHeight:parseFloat(e)}var V6=1,$6={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"},R0=typeof performance=="object"&&performance.now?performance:Date;function qo(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 X6=1,U6=function(){return X6++},sa=typeof self=="object"&&self.self==self?self:typeof mt.g=="object"&&mt.g.global==mt.g?mt.g:{},q6=Date.now(),Z6=function(){return sa.performance&&typeof sa.performance.now=="function"?sa.performance.now():Date.now()-q6},il={},Rx=Date.now(),K6=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");var e=Date.now(),n=e-Rx,r=n>16?0:16-n,i=U6();return il[i]=t,Object.keys(il).length>1||setTimeout(function(){Rx=e;var a=il;il={},Object.keys(a).forEach(function(o){return a[o](Z6())})},r),i},Q6=function(t){delete il[t]},J6=["","webkit","moz","ms","o"],Lx=function(t){return typeof t!="string"?K6:t===""?sa.requestAnimationFrame:sa[t+"RequestAnimationFrame"]},tD=function(t){return typeof t!="string"?Q6:t===""?sa.cancelAnimationFrame:sa[t+"CancelAnimationFrame"]||sa[t+"CancelRequestAnimationFrame"]},eD=function(t,e){for(var n=0;t[n]!==void 0;){if(e(t[n]))return t[n];n=n+1}},Nx=eD(J6,function(t){return!!Lx(t)}),Ix=Lx(Nx),jx=tD(Nx);sa.requestAnimationFrame=Ix,sa.cancelAnimationFrame=jx;var nD=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();!aD.test(l)&&iD.indexOf(l)<0&&(l='"'.concat(l,'"')),s[c]=l}return"".concat(r," ").concat(i," ").concat(a," ").concat(o," ").concat(s.join(","))}var sD=function(){function t(){this.parser=xf,this.parserWithCSSDisabled=xf,this.mixer=b6}return t.prototype.calculator=function(e,n,r,i){return r instanceof fi?[]:r},t.prototype.postProcessor=function(e){var n=e.parsedStyle.transform;C0(n,e)},t}(),cD=function(){function t(){this.parser=Sx}return t}(),lD=function(){function t(){this.parser=Xo}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=Hs.Z_INDEX_CHANGED)}},t}(),uD=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}(),fD=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}(),dD=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}(),hD=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}(),pD=function(){function t(){}return t.prototype.update=function(e){if(e.points&&jr(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}(),vD=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}(),gD=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 yD(t){return!!t.type}var _f=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(Pn)},t}(),Dx=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 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(Pn)},e}(_f),N0=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}(Dx),I0=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}(Dx),Rn=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}(_f),Fx=":",Bx=function(){function t(){this.emitter=new qp.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=Nb(r)&&r||Yo(r)&&r.capture,a=Yo(r)&&r.once,o=Ws(n)?void 0:n,s=!1,c="";if(e.indexOf(Fx)>-1){var l=(0,S.CR)(e.split(Fx),2),u=l[0],f=l[1];e=f,c=u,s=!0}if(e=i?"".concat(e,"capture"):e,n=Ws(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(Pn)},e.prototype.lookupNamespaceURI=function(n){throw new Error(Pn)},e.prototype.lookupPrefix=function(n){throw new Error(Pn)},e.prototype.normalize=function(){throw new Error(Pn)},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}(Bx),mD=2048,bD=function(){function t(e,n){var r=this;this.globalRuntime=e,this.context=n,this.emitter=new qp.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=R0.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=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 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=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 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.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(N0);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(I0);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(I0);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(N0);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=R0.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=z6(n)&&n.getAttribute("cursor");if(r)return r;n=kr.isNode(n)&&n.parentNode}},t}(),xD=function(){function t(){}return t.prototype.getOrCreateCanvas=function(e,n){if(this.canvas)return this.canvas;if(e||Mt.offscreenCanvas)this.canvas=e||Mt.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}(),io;(function(t){t[t.CAMERA_CHANGED=0]="CAMERA_CHANGED",t[t.DISPLAY_OBJECT_CHANGED=1]="DISPLAY_OBJECT_CHANGED",t[t.NONE=2]="NONE"})(io||(io={}));var _D=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 ei,initAsync:new nD,dirtycheck:new L0,cull:new L0,beginFrame:new ei,beforeRender:new ei,render:new ei,afterRender:new ei,endFrame:new ei,destroy:new ei,pick:new rD,pickSync:new L0,pointerDown:new ei,pointerUp:new ei,pointerMove:new ei,pointerOut:new ei,pointerOver:new ei,pointerWheel:new ei,pointerCancel:new ei,click:new ei}}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(io.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(io.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!==Hs.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=G6(n.sorted,r);n.sorted.splice(o,0,r)}}):n.sorted=e.childNodes.slice().sort(Tx)},t.prototype.destroy=function(){this.inited=!1,this.hooks.destroy.call(),this.globalRuntime.sceneGraphService.clearPendingEvents()},t.prototype.dirtify=function(){this.context.renderingContext.renderReasons.add(io.DISPLAY_OBJECT_CHANGED)},t}(),OD=/\[\s*(.*)=(.*)\s*\]/,wD=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(OD),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}(),ao=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}(_f),Re;(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"})(Re||(Re={}));function zx(t){var e=t.renderable;e&&(e.renderBoundsDirty=!0,e.boundsDirty=!0)}var SD=new ao(Re.REPARENT,null,"","","",0,"",""),MD=function(){function t(e){var n=this;this.runtime=e,this.pendingEvents=[],this.boundsChangedEvent=new Rn(Re.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();tf(l,a[0],a[1],a[2]);var u=n.getRotation(i),f=n.getRotation(i.parentNode);ef(r,f),Kp(r,r),Qa(l,r,l),Qa(c.localRotation,l,u),nf(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;tf(r,a[0],a[1],a[2]),xb(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{tf(c.localRotation,a[0],a[1],a[2]);var l=n.getRotation(i.parentNode);ef(r,Kp(br(),l)),xb(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=Qp(a,o,s,c)),i.parentNode===null||!i.parentNode.transformable)n.setLocalRotation(i,a);else{var u=n.getRotation(i.parentNode);ef(r,u),Kp(r,r),Qa(l.localRotation,r,a),nf(l.localRotation,l.localRotation),n.dirtifyLocal(i,l)}}},this.displayObjectDependencyMap=new WeakMap,this.calcLocalTransform=function(){var r=qt.create(),i=ot.create(),a=Qp(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=Hs.ADDED);var c=e.transformable;c&&this.dirtifyWorld(e,c),c.frozen&&this.unfreezeParentToRoot(e),o&&e.dispatchEvent(SD)},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=Hs.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;tf(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=Qp(n,r,i,a));var o=e.transformable;ef(o.localRotation,n),this.dirtifyLocal(e,o)},t.prototype.setLocalSkew=function(e,n,r){typeof n=="number"&&(n=Uc.al(n,r));var i=e.transformable;Uc.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;)zx(r),r=r.parentNode;n&&e.forEach(function(i){zx(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 ao(Re.ATTR_MODIFIED,a,n,n,i,ao.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(Sr.isEmpty(i))return null;var a=r||new Sr;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 Sr},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 Sr,o.update(f.center,f.halfExtents)))}),n){var c=Px(e);if(c){var l=c.parsedStyle.clipPath.getBounds(n);o?l&&(o=l.intersection(o)):o=l}}return o||(o=new Sr),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(!Sr.isEmpty(r)){var i=new Sr;return i.setFromTransformedAABB(r,n),i}}return this.getBounds(e)},t.prototype.getBoundingClientRect=function(e){var n,r,i,a=this.getGeometryBounds(e);Sr.isEmpty(a)||(i=new Sr,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 $o(c+((o==null?void 0:o.left)||0),l+((o==null?void 0:o.top)||0),f-c,d-l)}return new $o((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,D=P,N=0;Nd){D=N;break}C+=k}p[v]=(p[v]||"").slice(0,D)+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:Zo.BreakingSpaces.indexOf(e.charCodeAt(0))>=0},t.prototype.isNewline=function(e){return typeof e!="string"?!1:Zo.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&&Gx.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(!Gx.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}(),Mt={},DD=function(){var t,e=new vD,n=new pD;return t={},t[bt.CIRCLE]=new uD,t[bt.ELLIPSE]=new fD,t[bt.RECT]=e,t[bt.IMAGE]=e,t[bt.GROUP]=e,t[bt.LINE]=new dD,t[bt.TEXT]=new gD(Mt),t[bt.POLYLINE]=n,t[bt.POLYGON]=n,t[bt.PATH]=new hD,t[bt.HTML]=null,t[bt.MESH]=null,t}(),FD=function(){var t,e=new S6,n=new P0;return t={},t[oe.PERCENTAGE]=null,t[oe.NUMBER]=new C6,t[oe.ANGLE]=new O6,t[oe.DEFINED_PATH]=new w6,t[oe.PAINT]=e,t[oe.COLOR]=e,t[oe.FILTER]=new M6,t[oe.LENGTH]=n,t[oe.LENGTH_PERCENTAGE]=n,t[oe.LENGTH_PERCENTAGE_12]=new E6,t[oe.LENGTH_PERCENTAGE_14]=new A6,t[oe.COORDINATE]=new T6,t[oe.OFFSET_DISTANCE]=new k6,t[oe.OPACITY_VALUE]=new R6,t[oe.PATH]=new L6,t[oe.LIST_OF_POINTS]=new N6,t[oe.SHADOW_BLUR]=new I6,t[oe.TEXT]=new j6,t[oe.TEXT_TRANSFORM]=new D6,t[oe.TRANSFORM]=new sD,t[oe.TRANSFORM_ORIGIN]=new cD,t[oe.Z_INDEX]=new lD,t[oe.MARKER]=new P6,t}(),BD=function(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof mt.g!="undefined"?mt.g:{}};Mt.CameraContribution=rx,Mt.AnimationTimeline=null,Mt.EasingFunction=null,Mt.offscreenCanvasCreator=new xD,Mt.sceneGraphSelector=new wD,Mt.sceneGraphService=new MD(Mt),Mt.textService=new jD(Mt),Mt.geometryUpdaterFactory=DD,Mt.CSSPropertySyntaxFactory=FD,Mt.styleValueRegistry=new _6(Mt),Mt.layoutRegistry=null,Mt.globalThis=BD(),Mt.enableCSSParsing=!0,Mt.enableDataset=!1,Mt.enableStyleSyntax=!0;var Wx=0;function Zft(){Wx=0}var Hx=new ao(Re.INSERTED,null,"","","",0,"",""),Yx=new ao(Re.REMOVED,null,"","","",0,"",""),zD=new Rn(Re.DESTROY),GD=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=Wx++,n.renderable={bounds:void 0,boundsDirty:!0,renderBounds:void 0,renderBoundsDirty:!0,dirtyRenderBounds:void 0,dirty:!1},n.cullable={strategy:g0.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=Mt.enableCSSParsing?{anchor:In,opacity:In,fillOpacity:In,strokeOpacity:In,fill:In,stroke:In,transform:In,transformOrigin:In,visibility:In,pointerEvents:In,lineWidth:In,lineCap:In,lineJoin:In,increasedLineWidthForHitTesting:In,fontSize:In,fontFamily:In,fontStyle:In,fontWeight:In,fontVariant:In,textAlign:In,textBaseline:In,textTransform:In,zIndex:In,filter:In,shadowType:In}: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(Pn)},e.prototype.appendChild=function(n,r){var i;if(n.destroyed)throw new Error(m8);return Mt.sceneGraphService.attach(n,this,r),!((i=this.ownerDocument)===null||i===void 0)&&i.defaultView&&this.ownerDocument.defaultView.mountChildren(n),Hx.relatedNode=this,n.dispatchEvent(Hx),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 Yx.relatedNode=this,n.dispatchEvent(Yx),!((r=n.ownerDocument)===null||r===void 0)&&r.defaultView&&n.ownerDocument.defaultView.unmountChildren(n),Mt.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 Mt.sceneGraphService.matches(n,this)},e.prototype.getElementById=function(n){return Mt.sceneGraphService.querySelector("#".concat(n),this)},e.prototype.getElementsByName=function(n){return Mt.sceneGraphService.querySelectorAll('[name="'.concat(n,'"]'),this)},e.prototype.getElementsByClassName=function(n){return Mt.sceneGraphService.querySelectorAll(".".concat(n),this)},e.prototype.getElementsByTagName=function(n){return Mt.sceneGraphService.querySelectorAll(n,this)},e.prototype.querySelector=function(n){return Mt.sceneGraphService.querySelector(n,this)},e.prototype.querySelectorAll=function(n){return Mt.sceneGraphService.querySelectorAll(n,this)},e.prototype.closest=function(n){var r=this;do{if(Mt.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}(Yr),sl=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:Mt.enableCSSParsing?(0,S.pi)({points:"",miterLimit:"",isClosed:!0},i):(0,S.pi)({},i),initialParsedStyle:Mt.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}(Yr),F0=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:Mt.enableCSSParsing?(0,S.pi)({points:"",miterLimit:"",isClosed:!1},r):(0,S.pi)({},r),initialParsedStyle:Mt.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=ia(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 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}(sl),Ko=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:Mt.enableCSSParsing?(0,S.pi)({x:"",y:"",width:"",height:"",radius:""},r):(0,S.pi)({},r)},i))||this}return e}(Yr),ca=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:Mt.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:Mt.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}(Yr),$D=function(){function t(){this.registry={},this.define(bt.CIRCLE,al),this.define(bt.ELLIPSE,j0),this.define(bt.RECT,Ko),this.define(bt.IMAGE,D0),this.define(bt.LINE,ol),this.define(bt.GROUP,Dr),this.define(bt.PATH,ni),this.define(bt.POLYGON,sl),this.define(bt.POLYLINE,F0),this.define(bt.TEXT,ca),this.define(bt.HTML,wf)}return t.prototype.define=function(e,n){this.registry[e]=n},t.prototype.get=function(e){return this.registry[e]},t}(),XD=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 Mt.AnimationTimeline(n)}catch(i){}var r={};return T0.forEach(function(i){var a=i.n,o=i.inh,s=i.d;o&&s&&(r[a]=Ws(s)?s(bt.GROUP):s)}),n.documentElement=new Dr({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"?ca:Dr);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(Pn)},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(Gs)},e.prototype.insertBefore=function(n,r){throw new Error(Gs)},e.prototype.removeChild=function(n,r){throw new Error(Gs)},e.prototype.replaceChild=function(n,r,i){throw new Error(Gs)},e.prototype.append=function(){throw new Error(Gs)},e.prototype.prepend=function(){throw new Error(Gs)},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),UD=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 Rn(Re.CULLED)),null)}return o}),r.hooks.afterRender.tap(t.tag,function(o){o.cullable.visibilityPlaneMask=-1})},t.tag="Culling",t}(),qD=function(){function t(){var e=this;this.autoPreventDefault=!1,this.rootPointerEvent=new N0(null),this.rootWheelEvent=new I0(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 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=$6[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=R0.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||H6(a)||a.width/C,P=c||Y6(a)||a.height/C),o&&(Mt.offscreenCanvas=o),r.devicePixelRatio=C,r.requestAnimationFrame=p!=null?p:Ix.bind(Mt.globalThis),r.cancelAnimationFrame=v!=null?v:jx.bind(Mt.globalThis),r.supportsTouchEvents=m!=null?m:"ontouchstart"in Mt.globalThis,r.supportsPointerEvents=y!=null?y:!!Mt.globalThis.PointerEvent,r.isTouchEvent=M!=null?M:function(D){return r.supportsTouchEvents&&D instanceof Mt.globalThis.TouchEvent},r.isMouseEvent=E!=null?E:function(D){return!Mt.globalThis.MouseEvent||D instanceof Mt.globalThis.MouseEvent&&(!r.supportsPointerEvents||!(D instanceof Mt.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 Mt.CameraContribution;o.clipSpaceNearZ=i,o.setType(wn.EXPLORING,Jc.DEFAULT).setPosition(n/2,r/2,Ux).setFocalPoint(n/2,r/2,0).setOrthographic(n/-2,n/2,r/2,r/-2,JD,t9),o.canvas=this,o.eventEmitter.on(ex.UPDATED,function(){a.context.renderingContext.renderReasons.add(io.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 Rn(hi.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 Rn(hi.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,Ux).setFocalPoint(n/2,r/2,0),o===ui.ORTHOGRAPHIC?a.setOrthographic(n/-2,n/2,r/2,r/-2,a.getNear(),a.getFar()):a.setAspect(n/r),this.dispatchEvent(new Rn(hi.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(e9);var r=this.getRenderingService();r.render(this.getConfig(),function(){n.dispatchEvent(n9)}),this.dispatchEvent(r9)},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 i8,this.context.renderingPlugins=[],this.context.renderingPlugins.push(new qD,new QD,new UD([new KD])),this.loadRendererContainerModule(n),this.context.contextService=new this.context.ContextService((0,S.pi)((0,S.pi)({},Mt),this.context)),this.context.renderingService=new _D(Mt,this.context),this.context.eventService=new bD(Mt,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 Rn(hi.READY))}):a.dispatchEvent(new Rn(hi.READY)),a.readyPromise&&a.resolveReadyPromise()):a.dispatchEvent(new Rn(hi.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(Mt)})},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(Mt)}),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(z0):(z0.target=n,this.dispatchEvent(z0,!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(B0):(B0.target=n,this.dispatchEvent(B0,!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}(Bx),i9=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=zs(r),this.relAzimuth=zs(n),this.relRoll=zs(i),this.elevation+=this.relElevation,this.azimuth+=this.relAzimuth,this.roll+=this.relRoll,this.type===wn.EXPLORING){var a=Ka(br(),[1,0,0],rr((this.rotateWorld?1:-1)*this.relElevation)),o=Ka(br(),[0,1,0],rr((this.rotateWorld?1:-1)*this.relAzimuth)),s=Ka(br(),[0,0,1],rr(this.relRoll)),c=Qa(br(),o,a);c=Qa(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===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=ti(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===wn.ORBITING||this.type===wn.EXPLORING?this._getDistance():this.type===wn.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 Mt.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=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||Mt.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 D=w(C/u),N=ot.create(),k=ot.create(),R=1,I=0;ot.lerp(N,i.focalPoint,b,D),ot.lerp(k,i.position,m,D),I=i.roll*(1-D)+O*D,R=i.zoom*(1-D)+_*D,i.setFocalPoint(N),i.setPosition(k),i.setRoll(I),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=u9(i,e);if(a){n[r-1]=a;return}}else d9(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(Re.ATTR_MODIFIED,this,!0),n.childList&&e.addEventListener(Re.INSERTED,this,!0),(n.childList||n.subtree)&&e.addEventListener(Re.REMOVED,this,!0)},t.prototype.removeListeners=function(){this.removeListeners_(this.target)},t.prototype.removeListeners_=function(e){var n=this.options;n.attributes&&e.removeEventListener(Re.ATTR_MODIFIED,this,!0),n.childList&&e.removeEventListener(Re.INSERTED,this,!0),(n.childList||n.subtree)&&e.removeEventListener(Re.REMOVED,this,!0)},t.prototype.removeTransientObservers=function(){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach(function(n){this.removeListeners_(n);for(var r=$s.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 Y0(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(Pn)},t.prototype.addEventListener=function(e,n,r){throw new Error(Pn)},t.prototype.removeEventListener=function(e,n,r){throw new Error(Pn)},t.prototype.dispatchEvent=function(e){throw new Error(Pn)},t.prototype.commitStyles=function(){throw new Error(Pn)},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 Y0(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 Y0(null,this,this.currentTime,e);this.onframe(i)}this._finishedFlag=!1}},t}(),v9=4,g9=.001,y9=1e-7,m9=10,cl=11,Mf=1/(cl-1),b9=typeof Float32Array=="function",Jx=function(t,e){return 1-3*e+3*t},t_=function(t,e){return 3*e-6*t},e_=function(t){return 3*t},Ef=function(t,e,n){return((Jx(e,n)*t+t_(e,n))*t+e_(e))*t},n_=function(t,e,n){return 3*Jx(e,n)*t*t+2*t_(e,n)*t+e_(e)},x9=function(t,e,n,r,i){var a,o,s=0;do o=e+(n-e)/2,a=Ef(o,r,i)-t,a>0?n=o:e=o;while(Math.abs(a)>y9&&++s=g9?_9(s,d,t,n):h===0?d:x9(s,c,c+Mf,t,n)};return function(s){return s===0||s===1?s:Ef(o(s),e,r)}},O9=function(t){return t=t.replace(/([A-Z])/g,function(e){return"-".concat(e.toLowerCase())}),t.charAt(0)==="-"?t.substring(1):t},Af=function(t){return Math.pow(t,2)},Tf=function(t){return Math.pow(t,3)},Pf=function(t){return Math.pow(t,4)},Cf=function(t){return Math.pow(t,5)},kf=function(t){return Math.pow(t,6)},Rf=function(t){return 1-Math.cos(t*Math.PI/2)},Lf=function(t){return 1-Math.sqrt(1-t*t)},Nf=function(t){return t*t*(3*t-2)},If=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)},jf=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,lr.Z)(Number(i),1,10),c=(0,lr.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)},ll=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,lr.Z)(a,.1,1e3),s=(0,lr.Z)(s,.1,1e3),l=(0,lr.Z)(l,.1,1e3),f=(0,lr.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},$0=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,lr.Z)(t,0,1)*i)/i},r_=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 V0(r,i,a,o)(t)},Df=V0(.42,0,1,1),Ri=function(t){return function(e,n,r){return n===void 0&&(n=[]),1-t(1-e,n,r)}},Li=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}},Ni=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}},i_={steps:$0,"step-start":function(t){return $0(t,[1,"start"])},"step-end":function(t){return $0(t,[1,"end"])},linear:function(t){return t},"cubic-bezier":r_,ease:function(t){return r_(t,[.25,.1,.25,1])},in:Df,out:Ri(Df),"in-out":Li(Df),"out-in":Ni(Df),"in-quad":Af,"out-quad":Ri(Af),"in-out-quad":Li(Af),"out-in-quad":Ni(Af),"in-cubic":Tf,"out-cubic":Ri(Tf),"in-out-cubic":Li(Tf),"out-in-cubic":Ni(Tf),"in-quart":Pf,"out-quart":Ri(Pf),"in-out-quart":Li(Pf),"out-in-quart":Ni(Pf),"in-quint":Cf,"out-quint":Ri(Cf),"in-out-quint":Li(Cf),"out-in-quint":Ni(Cf),"in-expo":kf,"out-expo":Ri(kf),"in-out-expo":Li(kf),"out-in-expo":Ni(kf),"in-sine":Rf,"out-sine":Ri(Rf),"in-out-sine":Li(Rf),"out-in-sine":Ni(Rf),"in-circ":Lf,"out-circ":Ri(Lf),"in-out-circ":Li(Lf),"out-in-circ":Ni(Lf),"in-back":Nf,"out-back":Ri(Nf),"in-out-back":Li(Nf),"out-in-back":Ni(Nf),"in-bounce":If,"out-bounce":Ri(If),"in-out-bounce":Li(If),"out-in-bounce":Ni(If),"in-elastic":jf,"out-elastic":Ri(jf),"in-out-elastic":Li(jf),"out-in-elastic":Ni(jf),spring:ll,"spring-in":ll,"spring-out":Ri(ll),"spring-in-out":Li(ll),"spring-out-in":Ni(ll)},w9=function(t){return O9(t).replace(/^ease-/,"").replace(/(\(|\s).+/,"").toLowerCase().trim()},S9=function(t){return i_[w9(t)]||i_.linear},M9=function(t){return t},E9=1,A9=.5,a_=0;function o_(t,e){return function(n){if(n>=1)return 1;var r=1/t;return n+=e*r,n-n%r}}var Ff="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",T9=new RegExp("cubic-bezier\\("+Ff+","+Ff+","+Ff+","+Ff+"\\)"),P9=/steps\(\s*(\d+)\s*\)/,C9=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/;function X0(t){var e=T9.exec(t);if(e)return V0.apply(void 0,(0,S.ev)([],(0,S.CR)(e.slice(1).map(Number)),!1));var n=P9.exec(t);if(n)return o_(Number(n[1]),a_);var r=C9.exec(t);return r?o_(Number(r[1]),{start:E9,middle:A9,end:a_}[r[2]]):S9(t)}function k9(t){return Math.abs(R9(t)/(t.playbackRate||1))}function R9(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 s_=0,U0=1,Bf=2,c_=3;function L9(t,e,n){if(e===null)return s_;var r=n.endTime;return e=Math.min(n.delay+t+n.endDelay,r)?Bf:c_}function N9(t,e,n,r,i){switch(r){case U0:return e==="backwards"||e==="both"?0:null;case c_:return n-i;case Bf:return e==="forwards"||e==="both"?t:null;case s_:return null}}function I9(t,e,n,r,i){var a=i;return t===0?e!==U0&&(a+=n):a+=r/t,a}function j9(t,e,n,r,i,a){var o=t===1/0?e%1:t%1;return o===0&&n===Bf&&r!==0&&(i!==0||a===0)&&(o=1),o}function D9(t,e,n,r){return t===Bf&&e===1/0?1/0:n===1?Math.floor(r)-1:Math.floor(r)}function F9(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 B9(t,e,n){var r=L9(t,e,n),i=N9(t,n.fill,e,r,n.delay);if(i===null)return null;var a=n.duration==="auto"?0:n.duration,o=I9(a,r,n.iterations,i,n.iterationStart),s=j9(o,n.iterationStart,r,n.iterations,i,a),c=D9(r,n.iterations,s,o),l=F9(n.direction,c,s);return n.currentIteration=c,n.progress=l,n.easingFunction(l)}function z9(t,e,n){var r=G9(t,e),i=W9(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 e7(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 n7(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,wt=F>B?1:F/B,Bt=F>B?B/F:1;t.translate(R-r,I-a),t.rotate(U),t.scale(wt,Bt),t.arc(0,0,rt,z,Y,!!(1-tt)),t.scale(1/wt,1/Bt),t.rotate(-U),t.translate(-(R-r),-(I-a))}N&&t.lineTo(A[6]-r+v,A[7]-a+g);break}case"Z":t.closePath();break}}}function r7(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,lr.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 o7=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]=J9,n[bt.ELLIPSE]=t7,n[bt.RECT]=a7,n[bt.LINE]=e7,n[bt.POLYLINE]=i7,n[bt.POLYGON]=r7,n[bt.PATH]=n7,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}(to),s7=ot.create(),c7=ot.create(),l7=ot.create(),u7=qt.create(),f7=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(u7,i),c=ot.transformMat4(c7,ot.set(l7,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=ot.set(s7,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=Px(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 d7(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=Wr(i,i,e.x,e.y),d=(0,S.CR)(qo(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 Gf(t,e,n,r){return t/(n*n)+e/(r*r)}function h7(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)(qo(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?Gf(y,m,i+g,a+g)<=1:p?Gf(y,m,i,a)<=1:v?Gf(y,m,i-g,a-g)>=1&&Gf(y,m,i+g,a+g)<=1:!1}function Qo(t,e,n,r,i,a){return i>=t&&i<=t+n&&a>=e&&a<=e+r}function p7(t,e,n,r,i,a,o){var s=i/2;return Qo(t-s,e-s,n,i,a,o)||Qo(t+n-s,e-s,i,r,a,o)||Qo(t+s,e+r-s,n,i,a,o)||Qo(t-s,e+s,i,r,a,o)}function Wf(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 Wr(l.x,l.y,o,s)<=a/2}function oo(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?Gb(t,e,n,r,a,o)<=i/2:!1}function b_(t,e,n,r,i){var a=t.length;if(a<2)return!1;for(var o=0;o0!=Q0(s[1]-n)>0&&Q0(e-(n-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(r=!r)}return r}function __(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(U){var tt=U.minX,rt=U.minY,wt=U.maxX,Bt=U.maxY,Xt=new Sr;return Xt.setMinMax([tt,rt,0],[wt,Bt,0]),Xt})),!1));if(r.removedRBushNodeAABBs=[],Sr.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]),D=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),I=Math.floor(D),F=Math.ceil(N-C),B=Math.ceil(k-D);v.save(),r.clearRect(v,R,I,F,B,i.background),v.beginPath(),v.rect(R,I,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 Rn(hi.DIRTY_RECTANGLE,{dirtyRect:{x:R,y:I,width:F,height:B}}));var Y=r.searchDirtyObjects(y);Y.sort(function(U,tt){return U.sortable.renderOrder-tt.sortable.renderOrder}).forEach(function(U){U&&U.isVisible()&&!U.isCulled()&&r.renderDisplayObject(U,v,r.context,r.restoreStack,n)}),v.restore(),r.renderQueue.forEach(function(U){r.saveDirtyAABB(U)}),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!==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 Sr;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 Sr);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",D=w&&A&&(P===bt.PATH||P===bt.LINE||P===bt.POLYLINE||M||C);O&&(e.globalAlpha=l*u,D||Hf(r,e,A),this.fill(e,r,s,c,i,a,o),D||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),D&&(C&&(e.globalCompositeOperation="source-atop"),Hf(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()}):(tl(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()}):(tl(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===oa.LinearGradient||e.type===oa.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 Hf(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 A7=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,ye.Z)(s)&&c>0;Hf(r,e,d);try{e.drawImage(l,0,0,u,f)}catch(h){}}},t}(),T7=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,D=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 I=!(0,ye.Z)(w)&&M>0;Hf(r,e,I);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,W6(this.$canvas,e,n)),this.renderingContext.renderReasons.add(io.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}(),B7=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=F7},e.prototype.destroy=function(){delete this.context.ContextService},e}(to),O_=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n)||this;return r.registerPlugin(new B7),r.registerPlugin(new D7),r.registerPlugin(new o7),r.registerPlugin(new P7),r.registerPlugin(new k7),r.registerPlugin(new M7),r.registerPlugin(new N7),r}return e}(a8),z7=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=li([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}(),w_=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 z7((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}(to);function G7(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 S_=G7,W7=function(t){return typeof t=="object"&&t!==null},J0=W7,H7=function(t){if(!J0(t)||!(0,rf.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},co=H7,Y7=5;function V7(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 M_(t,e,n,r){n=n||0,r=r||Y7;for(var i in e)if(V7(e,i)){var a=e[i];a!==null&&co(a)?(co(t[i])||(t[i]={}),ni.pop().map(([a,o])=>[...i,a,o]));return t}function cdt(t,...e){return P_(Yf(t,...e),e)}function ldt(t,e,...n){return P_(nv(t,e,...n),n)}function ev(t,e,...n){return Xs(t,ul,e,n)}function nv(t,e,...n){return Xs(t,Array.from,e,n)}function udt(t,...e){return Xs(t,identity,C_,e)}function fdt(t,...e){return Xs(t,Array.from,C_,e)}function C_(t){if(t.length!==1)throw new Error("duplicate key");return t[0]}function Xs(t,e,n,r){return function i(a,o){if(o>=r.length)return n(a);const s=new X7,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 k_=function(t){return(0,ye.Z)(t)?"":t.toString()},U7=function(t){var e=k_(t);return e.charAt(0).toLowerCase()+e.substring(1)},R_=U7,q7=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 Jo(t){return t}function rv(t){return t.reduce((e,n)=>(r,...i)=>n(e(r,...i),...i),Jo)}function Z7(t){return t.reduce((e,n)=>r=>q7(this,void 0,void 0,function*(){const i=yield e(r);return n(i)}),Jo)}function iv(t){return t.replace(/( |^)[a-z]/g,e=>e.toUpperCase())}function Us(t=""){throw new Error(t)}function av(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 Ln(t){return t!=null&&!Number.isNaN(t)}function ddt(t,e){return t+(e-t)*Math.random()}function K7(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 Q7(t,e){const{transform:n}=t.style,i=(a=>a==="none"||a===void 0)(n)?"":n;t.style.transform=`${i} ${e}`.trimStart()}function se(t,e){return L_(t,e)||{}}function L_(t,e){const n=Object.entries(t||{}).filter(([r])=>r.startsWith(e)).map(([r,i])=>[R_(r.replace(e,"").trim()),i]).filter(([r])=>!!r);return n.length===0?null:Object.fromEntries(n)}function hdt(t,e){return Object.fromEntries(Object.entries(t).map(([n,r])=>[`${e}${upperFirst(n)}`,r]))}function J7(t,e){return Object.fromEntries(Object.entries(t).filter(([n])=>e.find(r=>n.startsWith(r))))}function ov(t,...e){return Object.fromEntries(Object.entries(t).filter(([n])=>e.every(r=>!n.startsWith(r))))}function N_(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 fl(t){return typeof t=="object"&&!(t instanceof Date)&&t!==null&&!Array.isArray(t)}function La(t){return t===null||t===!1}function I_(t,e,n=5,r=0){if(!(r>=n)){for(const i of Object.keys(e)){const a=e[i];!co(a)||!co(t[i])?t[i]=a:I_(t[i],a,n,r+1)}return t}}function Ne(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:Dr,rect:Ko,circle:al,path:ni,text:ca,ellipse:j0,image:D0,line:ol,polygon:sl,polyline:F0,html:wf};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 tF=function(t){var e=k_(t);return e.charAt(0).toUpperCase()+e.substring(1)},lo=tF;function eF(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Vf(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 nF(t){return t=Vf(Math.abs(t)),t?t[1]:NaN}function rF(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 iF(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var aF=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function sv(t){if(!(e=aF.exec(t)))throw new Error("invalid format: "+t);var e;return new cv({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]})}sv.prototype=cv.prototype;function cv(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+""}cv.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 oF(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 j_;function sF(t,e){var n=Vf(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(j_=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")+Vf(t,Math.max(0,e+a-1))[0]}function D_(t,e){var n=Vf(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 F_={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:eF,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)=>D_(t*100,e),r:D_,s:sF,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function B_(t){return t}var z_=Array.prototype.map,G_=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function cF(t){var e=t.grouping===void 0||t.thousands===void 0?B_:rF(z_.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?B_:iF(z_.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=sv(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"):F_[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=F_[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 D=w,N=M,k,R,I;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=oF(C)),F&&+C==0&&p!=="+"&&(F=!1),D=(F?p==="("?p:s:p==="-"||p==="("?"":p)+D,N=(O==="s"?G_[8+j_/3]:"")+N+(F&&p==="("?")":""),A){for(k=-1,R=C.length;++kI||I>57){N=(I===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=D.length+C.length+N.length,z=B>1)+D+C+N+z.slice(B);break;default:C=z+D+C+N;break}return a(C)}return P.toString=function(){return f+""},P}function u(f,d){var h=l((f=sv(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(nF(d)/3)))*3,v=Math.pow(10,-p),g=G_[8+p/3];return function(y){return h(v*y)+g}}return{format:l,formatPrefix:u}}var $f,uo,lF;uF({thousands:",",grouping:[3],currency:["$",""]});function uF(t){return $f=cF(t),uo=$f.format,lF=$f.formatPrefix,$f}function fo(t,e){return Object.entries(t).reduce((n,[r,i])=>(n[r]=e(i,r,t),n),{})}function ts(t){return t.map((e,n)=>n)}function pdt(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 Y_(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 hF(t){if(t.length===1)return[t];const e=[];for(let n=1;n<=t.length;n++)e.push(...Y_(t,n));return e}var pF=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)},dl=pF,lv=function(t,e){if(t===e)return!0;if(!t||!e||er(t)||er(e))return!1;if(dl(t)||dl(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}function gdt(t){return t*Math.PI/180}function ydt(t){return t*180/Math.PI}function vF(t,e){return t=t%(2*Math.PI),e=e%(2*Math.PI),t<0&&(t=2*Math.PI+t),e<0&&(e=2*Math.PI+e),t>=e&&(e=e+2*Math.PI),{startAngle:t,endAngle:e}}const $_=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1},n=Object.assign(Object.assign({},e),t);return Object.assign(Object.assign({},n),vF(n.startAngle,n.endAngle))},hl=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=$_(t);return[["translate",0,.5],["reflect.y"],["translate",0,-.5],["polar",e,n,r,i]]};hl.props={};const X_=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)},uv=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=X_(t);return[["transpose"],["translate",.5,.5],["reflect"],["translate",-.5,-.5],...hl({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};uv.props={};function Xf(t,e,n){return Math.max(e,Math.min(t,n))}function Uf(t,e=10){return typeof t!="number"||Math.abs(t)<1e-15?t:parseFloat(t.toFixed(e))}const gF=[["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 U_=mt(16290);function Gn(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 pl(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="reflect")&&e.some(([n])=>n.startsWith("transpose"))}function q_(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="helix")}function vl(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="parallel")}function Z_(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="fisheye")}function yF(t){return vl(t)&&Nn(t)}function qs(t){return q_(t)||Nn(t)}function K_(t){return Nn(t)&&Gn(t)}function mdt(t){return Nn(t)||vl(t)||pl(t)||K_(t)}function mF(t){if(qs(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 qf(t){const{transformations:e}=t.getOptions(),[,,,n,r]=e.find(i=>i[0]==="polar");return[+n,+r]}function fv(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 bF(t,e){const{transformations:n}=t.getOptions(),[,...r]=n.find(i=>i[0]===e);return r}function Q_(t,e){e(t),t.children&&t.children.forEach(function(n){n&&Q_(n,e)})}function gl(t){Zf(t,!0)}function ho(t){Zf(t,!1)}function Zf(t,e){var n=e?"visible":"hidden";Q_(t,function(r){r.attr("visibility",n)})}function xF(t){return typeof t=="boolean"?!1:"enter"in t&&"update"in t&&"exit"in t}function J_(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 xF(t)?t[r]===!1?[r,!1]:[r,(0,S.pi)((0,S.pi)({},t[r]),n)]:[r,n]}))}function Zs(t,e){t?t.finished.then(e):e()}function _F(t,e){t.length===0?e():Promise.all(t.map(function(n){return n==null?void 0:n.finished})).then(e)}function t2(t,e){"update"in t?t.update(e):t.attr(e)}function e2(t,e,n){if(e.length===0)return null;if(!n){var r=e.slice(-1)[0];return t2(t,{style:r}),null}return t.animate(e,n)}function OF(t,e){return!(t.nodeName!=="text"||e.nodeName!=="text"||t.attributes.text!==e.attributes.text)}function wF(t,e,n,r){if(r===void 0&&(r="destroy"),OF(t,e))return t.remove(),[null];var i=function(){r==="destroy"?t.destroy():r==="hide"&&ho(t),e.isVisible()&&gl(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 D=(0,S.CR)(C.getLocalPosition(),2),N=D[0],k=D[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 Zs(P,i),[A,P]}function qi(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?e2(t,[r,i],(0,S.pi)({fill:"both"},n)):(t2(t,i),null)}var SF=5,n2=function(t,e,n,r){n===void 0&&(n=0),r===void 0&&(r=SF),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?co(s)?(co(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(Kf(o,"show")&&Kf(o2(o,"show"),e)!==n)o===IF(e,"show")?r[o]=s:r[o.replace(new RegExp(vv(e)),"")]=s;else if(!Kf(o,"show")&&Kf(o,e)!==n){var c=o2(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(vv(a))]=o,n},{})}function ja(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 Di(t,e){return vi(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),qi(t,{opacity:0},e)}var DF=["$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 FF(t){return DF.includes(t)}function s2(t){var e={};for(var n in t)FF(n)&&(e[n]=t[n]);return e}var Qs=ji({lineGroup:"line-group",line:"line",regionGroup:"region-group",region:"region"},"grid");function c2(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 BF(t,e,n){var r=e.connect,i=r===void 0?"line":r,a=e.center;if(i==="line")return c2(t);if(!a)return[];var o=ml(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 gv(t,e,n){return e.type==="surround"?BF(t,e,n):c2(t)}function zF(t,e,n){var r=n.type,i=n.connect,a=n.center,o=n.closed,s=o?[["Z"]]:[],c=(0,S.CR)([gv(t,n),gv(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)([ml(h,a),ml(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 GF(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:gv(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=Di(s2((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=Di(s2((0,S.pi)({path:c.path},r)),[c,l,o]);return qi(this,u,i.update)})},function(s){return s.transition(function(){var c=this,l=Qf(this,i.exit);return Zs(l,function(){return c.remove()}),l})}).transitions()}function WF(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 KF(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 QF(t,e,n,r){var i=e.startAngle,a=e.endAngle,o=e.center,s=e.radius;return t.selectAll(Tn.line.class).data([{path:v2.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",Tn.line.name).styles(e).styles({path:function(l){return l.path}})},function(c){return c.transition(function(){var l=this,u=UF(this,KF(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=Fi(l.attributes,"__keyframe_data__");l.style.path=v2.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 JF(t,e){var n=e.truncRange,r=e.truncShape,i=e.lineExtension}function tB(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 g2(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 eB(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?tB(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(Tn.line.class).data(B,function(z,Y){return Y}).join(function(z){return z.append("line").attr("className",function(Y){return"".concat(Tn.line.name," ").concat(Y.className)}).styles(n).transition(function(Y){return qi(this,g2(Y.line),!1)})},function(z){return z.styles(n).transition(function(Y){var U=Y.line;return qi(this,g2(U),r.update)})},function(z){return z.remove()}).transitions()};if(!i||!s)return O([{line:[[f+y,d+m],[p+b,v+_]],className:Tn.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),D=C[0],N=C[1],k=(0,S.CR)([f+A*E,d+P*E],2),R=k[0],I=k[1],F=O([{line:[[f+y,d+m],[D,N]],className:Tn.lineFirst.name},{line:[[R,I],[p+b,v+_]],className:Tn.lineSecond.name}]);return JF(t,e),F}function nB(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(Tn.line.class):a?l=t.select(Tn.lineSecond.class):l=t.select(Tn.line.class),!i||!o||n.type==="arc"&&p2(n.startAngle,n.endAngle)){var u=l.node();u&&(u.style.markerEnd=void 0);return}var f=rs(o);f.attr(r),mv(f,c,!0),l.style("markerEnd",f).style("markerEndOffset",-s)}function rB(t,e,n){var r=e.type,i,a=en(e,"line");return r==="linear"?i=eB(t,e,l2(a,"arrow"),n):i=QF(t,e,l2(a,"arrow"),n),nB(t,r,e,a),i}function iB(t,e){return xv(t,e.gridDirection,e)}function y2(t){var e=t.type,n=t.gridCenter;return e==="linear"?n:n||t.center}function aB(t,e){var n=e.gridLength;return t.map(function(r,i){var a=r.value,o=(0,S.CR)(td(a,e),2),s=o[0],c=o[1],l=(0,S.CR)(Ia(iB(a,e),n),2),u=l[0],f=l[1];return{id:i,points:[[s,c],[s+u,c+f]]}})}function oB(t,e){var n=e.gridControlAngles,r=y2(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)(td(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=Ks(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 sB(t,e,n,r){var i=en(n,"grid"),a=i.type,o=i.areaFill,s=y2(n),c=bv(e,n.gridFilter),l=a==="segment"?aB(c,n):oB(c,n),u=(0,S.pi)((0,S.pi)({},i),{center:s,areaFill:vi(o)?c.map(function(f,d){return Di(o,[f,d,c])}):o,animate:r,data:l});return t.selectAll(Tn.grid.class).data([1]).join(function(f){return f.append(function(){return new YF({style:u})}).attr("className",Tn.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 cB=function(t,e,n){if(n===void 0&&(n=128),!vi(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 w2(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 O2(e,r)})}var Sdt={lineToLine:O2,intersectBoxLine:w2,getBounds:rd};function gB(t,e,n){var r,i,a=rd(t,n).flat(1),o=rd(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(w2(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 yB(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)(Br(e),4),p=h[0],v=h[1],g=h[2],y=h[3];return new Sv(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)(h2(t)?[-e,0,e,0]:[0,e,0,-e],4),A=E[0],P=E[1],C=E[2],D=E[3],N=bl(0,t),k=Ia(N,i),R=new Sv(b,_,w,M);return R.x1+=D,R.y1+=A,R.x2+=P+k[0],R.y2+=C+k[1],R}function id(t,e,n){var r,i,a=e.crossPadding,o=new Set,s=null,c=yB(e,a),l=function(p){return c?vB(c,p):!0},u=function(p,v){return p?!gB(p,v,Br(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 Ev(t,e){return e===void 0&&(e={}),(0,ye.Z)(t)?0:typeof t=="number"?t:Math.floor(lB(t,e))}function mB(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=m2(r.getTextShape(t[0])),p=Ev(u,h),v=o?Ev(o,h):p,g=Ev(c,h);((0,ye.Z)(g)||g===1/0)&&(g=Math.max.apply(null,t.map(function(k){return Mv(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=id(t,n,d),y.length<1)return{value:void 0}},D=g;D>v+p;D-=p){var N=C(D);if(typeof N=="object")return N.value}}}function Mdt(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 S2(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 Edt(t,e){var n=select(t).append("text").node();return n.attr(__assign(__assign({},e),{visibility:"hidden"})),n}function bB(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 Adt(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 xB(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 _B={parity:function(t,e){var n=e.seq,r=n===void 0?2:n;return t.filter(function(i,a){return a%r?(ho(i),!1):!0})}},OB=function(t){return t.filter(_2)};function wB(t,e,n,r){var i=t.length,a=e.keepHeader,o=e.keepTail;if(!(i<=1||i===2&&a&&o)){var s=_B.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 Mv(b).width})),!1));if(n.type==="linear"&&(d2(n)||h2(n))){var h=S2(t[0]).left,p=S2(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 AB=new Map([["hide",wB],["rotate",SB],["ellipsis",mB],["wrap",EB]]);function TB(t,e,n){return e.labelOverlap.length<1?!1:n==="hide"?!EF(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 PB(t,e,n){var r=e.labelOverlap,i=r===void 0?[]:r;i.length&&i.forEach(function(a){var o=a.type,s=AB.get(o);TB(t,e,o)&&(s==null||s(t,a,e,n))})}function CB(){for(var t=[],e=0;e=this.left&&e<=this.right&&n>=this.top&&n<=this.bottom},t}();function Tdt(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 Wn(r,i,c,l)}var L2=ji({text:"text"},"title");function ad(t){return/\S+-\S+/g.test(t)?t.split("-").map(function(e){return e[0]}):t.length>2?[t[0]]:t.split("")}function GB(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=ad(r),u=(0,S.CR)(Br(o?i:0),4),f=u[0],d=u[1],h=u[2],p=u[3],v=(0,S.CR)(Br(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 Wn(s.x,s.y,c.width+s.width+O+E,Math.max(c.height+A,s.height));if(l[0]==="t")return new Wn(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],D=P[1];return new Wn(c.x,c.y,C+s.width+O+E,D+s.height+w+A)}function WB(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 HB(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=ad(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 N2=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(L2.text.class);if(!l)return new Wn(0,0,+i,+a);var u=l.getBBox(),f=u.width,d=u.height,h=(0,S.CR)(Br(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=ad(o);if(M.includes("i"))return new Wn(b,_,O,w);M.forEach(function(I,F){var B,z,Y,U;I==="t"&&(B=(0,S.CR)(F===0?[d+g,+a-d-g]:[0,+a],2),_=B[0],w=B[1]),I==="r"&&(z=(0,S.CR)([+i-f-y],1),O=z[0]),I==="b"&&(Y=(0,S.CR)([+a-d-p],1),w=Y[0]),I==="l"&&(U=(0,S.CR)(F===0?[f+v,+i-f-v]:[0,+i],2),b=U[0],O=U[1])});var E=(0,S.CR)(Br(c),4),A=E[0],P=E[1],C=E[2],D=E[3],N=(0,S.CR)([D+P,A+C],2),k=N[0],R=N[1];return new Wn(b+D,_+A,O-k,w-R)},e.prototype.getBBox=function(){return this.title?this.title.getBBox():new Wn(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)(ja(l),1),f=u[0],d=HB(n),h=d.x,p=d.y,v=d.textAlign,g=d.textBaseline;pi(!!l.text,Ue(r),function(y){i.title=y.maybeAppendByClassName(L2.text,"text").styles(f).call(WB,{x:h,y:p,textAlign:v,textBaseline:g}).node()})},e}(Rr);function YB(t,e,n){var r=n.titlePosition,i=r===void 0?"lb":r,a=n.titleSpacing,o=ad(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)(Br(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),D=C[0],N=C[1],k=i2([-N[0]+D[0],-N[1]+D[1]]),R=(0,S.CR)(Ia(k,O),2),I=R[0],F=R[1];return{x:D[0]+I,y:D[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 VB(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 I2(t,e,n,r,i){var a=en(r,"title"),o=(0,S.CR)(ja(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||VB(t.node(),s.direction,s.position);nd(t.node(),f);var d=YB(Ue(n._offscreen||n.querySelector(Tn.mainGroup.class)),e,r),h=d.x,p=d.y,v=qi(e.node(),{x:h,y:p},i);return nd(t.node(),f),v}function $B(t,e,n,r){var i=n.titleText;return t.selectAll(Tn.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 rs(i)}).attr("className",Tn.title.name).transition(function(){return I2(Ue(this),t,e,n,r.enter)})},function(a){return a.transition(function(){return I2(Ue(this),t,e,n,r.update)})},function(a){return a.remove()}).transitions()}function j2(t,e,n,r){var i=t.showLine,a=t.showTick,o=t.showLabel,s=e.maybeAppendByClassName(Tn.lineGroup,"g"),c=pi(i,s,function(h){return rB(h,t,r)})||[],l=e.maybeAppendByClassName(Tn.tickGroup,"g"),u=pi(a,l,function(h){return zB(h,n,t,r)})||[],f=e.maybeAppendByClassName(Tn.labelGroup,"g"),d=pi(o,f,function(h){return IB(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 Tv=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,hv)||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=TF(s,f).filter(function(O){var w=O.value;return!(d&&w>d[0]&&w-1;)ez.call(t,a,1);return t},Vdt=null,rz=Array.prototype.splice,$dt=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,rz.call(e,o,1))}return e},Xdt=null,Udt=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},qdt=null,Zdt=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},Sht=null,Mht=function(t,e){if(isArray(t)){for(var n,r=-1/0,i=0;ir&&(n=a,r=o)}return n}},Eht=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},upt=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}(),fpt=null;class wl{constructor(e){this.options=Y2({},this.getDefaultOptions()),this.update(e)}getOptions(){return this.options}update(e={}){this.options=Y2({},this.options,e),this.rescale(e)}rescale(e){}}function cd(t,e){return e-t?n=>(n-t)/(e-t):n=>.5}function tc(t,...e){return e.reduce((n,r)=>i=>n(r(i)),t)}function Cv(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 Ez=mt(2489),Az=mt.n(Ez);function kv(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 Tz(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=kv(o,a,e+1/3),c=kv(o,a,e),l=kv(o,a,e-1/3);return[s*255,c*255,l*255,i]}function q2(t){const e=Az().get(t);if(!e)return null;const{model:n,value:r}=e;return n==="rgb"?r:n==="hsl"?Tz(r):null}const ec=(t,e)=>n=>t*(1-n)+e*n,Pz=(t,e)=>{const n=q2(t),r=q2(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})`}},Sl=(t,e)=>typeof t=="number"&&typeof e=="number"?ec(t,e):typeof t=="string"&&typeof e=="string"?Pz(t,e):()=>t,Cz=(t,e)=>{const n=ec(t,e);return r=>Math.round(n(r))};function ld(t){return!gz(t)&&!hz(t)&&!Number.isNaN(t)}const Rv=Math.sqrt(50),Lv=Math.sqrt(10),Nv=Math.sqrt(2);function ud(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>=Rv?10:a>=Lv?5:a>=Nv?2:1)*wr(10,i):-wr(10,-i)/(a>=Rv?10:a>=Lv?5:a>=Nv?2:1)}function Z2(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>=Rv?i*=10:a>=Lv?i*=5:a>=Nv&&(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=ud(o,s,n)):c<0&&(o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c,c=ud(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 kz(t,e){const n=ee?t:e;return i=>Math.min(Math.max(n,i),r)}const Rz=(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=Cv(t,l,1,r)-1,f=i[u],d=a[u];return tc(d,f)(l)}},Q2=(t,e,n,r)=>(Math.min(t.length,e.length)>2?Lz:Rz)(t,e,r?Cz:n);class fd extends wl{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:ec,tickCount:5}}map(e){return ld(e)?this.output(e):this.options.unknown}invert(e){return ld(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 K2}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?kz(i[0],i[a-1]):is}composeOutput(e,n){const{domain:r,range:i,round:a,interpolate:o}=this.options,s=Q2(r.map(e),i,o,a);this.output=tc(s,n,e)}composeInput(e,n,r){const{domain:i,range:a}=this.options,o=Q2(a,i.map(e),ec);this.input=tc(n,r,o)}}const as=(t,e,n)=>{let r,i,a=t,o=e;if(a===o&&n>0)return[a];let s=ud(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 Wn(e,n,r-e,i-n)}var jz=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,I=N.height,F=(0,S.CR)([b,_],2),B=F[0],z=F[1];return k=(0,S.CR)([b+R*y[0],_+I*y[1]],2),b=k[0],_=k[1],new Wn(B,z,R,I)}),w=eO(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,I=Wn.fromRect(N);return I.x=v?k+M[u]:k,I.y=v?R:R+M[u],I}),A=eO(E),P=function(N){var k=(0,S.CR)(v?["height",i]:["width",r],2),R=k[0],I=k[1];switch(p){case"flex-start":return 0;case"flex-end":return I-N[R];case"center":return I/2-N[R]/2;default:return 0}},C=E.map(function(N){var k=N.x,R=N.y,I=Wn.fromRect(N);return I.x=v?k:k+P(I),I.y=v?R+P(I):R,I}),D=C.map(function(N){var k,R,I=Wn.fromRect(N);return I.x+=(k=t.x)!==null&&k!==void 0?k:0,I.y+=(R=t.y)!==null&&R!==void 0?R:0,I});return D},Dz=function(t,e,n){return[]},Fz=function(t,e,n){if(e.length===0)return[];var r={flex:jz,grid:Dz},i=n.display in r?r[n.display]:null;return(i==null?void 0:i.call(null,t,e,n))||[]},Bz=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n)||this;r.layoutEvents=[Re.BOUNDS_CHANGED,Re.INSERTED,Re.REMOVED],r.$margin=Br(0),r.$padding=Br(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=Br(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this.$padding},set:function(n){this.$padding=Br(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 Wn(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 Wn(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=Fz(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}(Dr),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);ir.getOptions().name===e))===null||n===void 0?void 0:n[0]}function Hz(t){return t==="horizontal"||t===0}function Yz(t){return t==="vertical"||t===-Math.PI/2}function aO(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 Vz(t){return t.find(e=>e.getOptions().domain.length>0).getOptions().domain}function hd(t){const e=["arrow","crosshairs","grid","handle","handleLabel","indicator","label","line","tick","tip","title","trunc"],{style:n}=t,r=zz(t,["style"]),i={};return Object.entries(r).forEach(([a,o])=>{e.includes(a)?i[`show${lo(a)}`]=o:i[a]=o}),Object.assign(Object.assign({},i),n)}var oO=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(!Z_(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 Xz(t,e,n){if(t.getTicks)return t.getTicks();if(!n)return e;const[r,i]=Da(e,o=>+o),{tickCount:a}=t.getOptions();return n(r,i,a)}function Uz(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 Vr({domain:[0,1],range:[l/f,1-u/f]});return h=>d.map(h)}function lO(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=Xz(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=Uz(o,s),p=$z(o,s),v=y=>["top","bottom","center","outer"].includes(y),g=y=>["left","right"].includes(y);return Nn(s)||Gn(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:pl(s)&&o==="center"||Gn(s)&&((O=t.getTicks)===null||O===void 0?void 0:O.call(t))&&v(o)||Gn(s)&&g(o)?1-M:M,label:f(d(Uf(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(Uf(y),m,b)),id:String(m)}})}function qz(t,e,n="xy"){const[r,i,a]=cO(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 Zz(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 Kz(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]=fv(i),[h,p]=cO(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 Qz(t,e,n){return K_(e)||vl(e)?!1:t===void 0?!!n.getTicks:t}function Jz(t){const{depth:e}=t.getOptions();return e?{tickIsBillboard:!0,lineIsBillboard:!0,labelIsBillboard:!0,titleIsBillboard:!0,gridIsBillboard:!0}:{}}function tG(t,e,n,r,i){const{x:a,y:o,width:s,height:c}=n;if(t==="bottom")return{startPos:[a,o],endPos:[a+s,o]};if(t==="left")return{startPos:[a+s,o+c],endPos:[a+s,o]};if(t==="right")return{startPos:[a,o+c],endPos:[a,o]};if(t==="top")return{startPos:[a,o+c],endPos:[a+s,o+c]};if(t==="center"){if(e==="vertical")return{startPos:[a,o],endPos:[a,o+c]};if(e==="horizontal")return{startPos:[a,o],endPos:[a+s,o]};if(typeof e=="number"){const[l,u]=r.getCenter(),[f,d]=qf(r),[h,p]=fv(r),v=Math.min(s,c)/2,{insetLeft:g,insetTop:y}=r.getOptions(),m=f*v,b=d*v,[_,O]=[l+a-g,u+o-y],[w,M]=[Math.cos(e),Math.sin(e)],E=[_+b*w,O+b*M],A=[_+m*w,O+m*M],P=()=>{const{domain:D}=i.getOptions();return D.length},C=Nn(r)&&i?P():3;return{startPos:E,endPos:A,gridClosed:Math.abs(p-h-360)<1e-6,gridCenter:[_,O],gridControlAngles:new Array(C).fill(0).map((D,N,k)=>(p-h)/C*N)}}}return{}}const eG=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=oO(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=lO(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]=qf(y),A=Kz(r,b,M,E,y),{axis:P,axisArc:C={}}=m,D=hd(Nt({},P,C,A,Object.assign(Object.assign({type:"arc",data:w,titleText:dd(d),grid:h},p),l)));return new Tv({style:tO(D,["transform"])})}};function nG(t,e,n,r,i,a){const o=n.axis,s=["top","right","bottom","left"].includes(i)?n[`axis${iv(i)}`]:n.axisLinear,c=t.getOptions().name,l=n[`axis${lo(c)}`]||{};return Object.assign({},o,s,l)}function rG(t,e,n,r,i,a){const o=nG(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:Yz(a)?10:0,tick:r==="center"?!1:void 0}):o}const iG=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=oO(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,[w]=y,{domain:M,xScale:E}=w.getOptions(),A=rG(w,b,_,e,s,a),P=Object.assign(Object.assign(Object.assign({},A),l),g),C=qz(o||s,b,t.plane),D=tG(s,a,O,b,E),N=Jz(b),k=lO(w,M,f,r,d,h,s,b),R=v?k.map((B,z)=>{const Y=v.get(z);return!Y||Y[0]!==B.label?B:Object.assign(Object.assign({},B),{bbox:Y[1]})}):k,I=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},P),{type:"linear",data:R,crossSize:c,titleText:dd(u),labelOverlap:Zz(p,P),grid:Qz(P.grid,b,w),gridLength:C,line:!0,indexBBox:v}),P.line?null:{lineOpacity:0}),D),N),n);return I.labelOverlap.find(B=>B.type==="hide")&&(I.crossSize=!1),new Tv({className:"axis",style:hd(I)})}},uO=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"?uo(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)}},po=uO(iG),fO=uO(eG);po.props={defaultPosition:"center",defaultSize:45,defaultOrder:0,defaultCrossPadding:[12,12],defaultPadding:[12,12]},fO.props={defaultPosition:"outer",defaultOrientation:"vertical",defaultSize:45,defaultOrder:0,defaultCrossPadding:[12,12],defaultPadding:[12,12]};var aG=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 dO=t=>{const{important:e={}}=t,n=aG(t,["important"]);return r=>{const{theme:i,coordinate:a,scales:o}=r;return po(Object.assign(Object.assign(Object.assign({},n),oG(t.orientation)),{important:Object.assign(Object.assign({},sG(t,i,a,o)),e)}))(r)}};dO.props=Object.assign(Object.assign({},po.props),{defaultPosition:"center"});function pd(t,e){return+t.toPrecision(e)}function dpt(t){return t.toLocaleString()}function hpt(t){return t.toExponential()}function ppt(t,e){return e===void 0&&(e=0),Math.abs(t)<1e3?String(t):"".concat(pd(t/1e3,e).toLocaleString(),"K")}var vpt=function(t,e,n){return t<0&&Number.isFinite(t)?e:n},gpt=function(t,e,n){return t>0&&Number.isFinite(t)?e:n},ypt=function(t,e){return t*e},mpt=function(t,e){return t/2+(e||0)/2};function vd(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 cG={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},jv=ji({background:"background",labelGroup:"label-group",label:"label"},"indicator"),lG=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n,cG)||this;return r.point=[0,0],r.group=r.appendChild(new Dr({})),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)(Br(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 Wn(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(jv.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)(ja(a),2),s=o[0],c=o[1],l=s.text,u=(0,S._T)(s,["text"]);if(this.label=Ue(this.group).maybeAppendByClassName(jv.labelGroup,"g").styles(c),!!i){var f=this.label.maybeAppendByClassName(jv.label,function(){return rs(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=bB.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],D=M[4];return a?(this.point=[P,l-w],[["L",E,l],["L",A,l],["L",P,l-w],["L",C,l],["L",D,l]]):(this.point=[c+w,P],[["L",c,E],["L",c,A],["L",c+w,P],["L",c,C],["L",c,D]])},e.prototype.applyVisibility=function(){var n=this.attributes.visibility;n==="hidden"?ho(this):gl(this)},e.prototype.bindEvents=function(){this.label.on(Re.BOUNDS_CHANGED,this.renderBackground)},e.prototype.render=function(){this.renderLabel(),this.renderBackground(),this.adjustLayout(),this.applyVisibility()},e}(Rr),hO={fill:"#fff",lineWidth:1,radius:2,size:10,stroke:"#bfbfbf",strokeOpacity:1,zIndex:0},pO={fill:"#000",fillOpacity:.45,fontSize:12,textAlign:"center",textBaseline:"middle",zIndex:1},vO={orientation:"horizontal",showLabel:!0,type:"start"},fa=ji({foreground:"foreground",handle:"handle",selection:"selection",sparkline:"sparkline",sparklineGroup:"sparkline-group",track:"track",brushArea:"brush-area"},"slider"),vo=ji({labelGroup:"label-group",label:"label",iconGroup:"icon-group",icon:"icon",iconRect:"icon-rect",iconLine:"icon-line"},"handle"),uG=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(vo.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(vo.iconLine,"-1"),"line").styles((0,S.pi)({x1:h,x2:h,y1:v,y2:g},l)),d.maybeAppendByClassName("".concat(vo.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),gO=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,vO)||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)(ja(s,[]),2),l=c[0],u=c[1],f=Ue(n).maybeAppendByClassName(vo.labelGroup,"g").styles(u),d=(0,S.pi)((0,S.pi)({},pO),l),h=d.text,p=(0,S._T)(d,["text"]);pi(!!i,f,function(v){r.label=v.maybeAppendByClassName(vo.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},hO),en(this.attributes,"icon")),s=this.attributes.iconShape,c=s===void 0?function(){return new uG({style:o})}:s,l=Ue(n).maybeAppendByClassName(vo.iconGroup,"g");l.selectAll(vo.icon.class).data([c]).join(function(u){return u.append(typeof c=="string"?c:function(){return c(a)}).attr("className",vo.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),yO=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"]]},fG=yO,dG=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"]]},hG=function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},pG=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"]]},vG=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"]]},gG=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"]]},yG=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"]]},mO=function(t,e,n){return[["M",t,e+n],["L",t,e-n]]},mG=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]]},bG=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]]},xG=function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},_G=function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},bO=function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},OG=bO,wG=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]]},SG=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]]},EG=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 AG(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 TG=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e],["L",t-n,e+n],["Z"]]};function PG(t){var e="default";if(Yo(t)&&t instanceof Image)e="image";else if(vi(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 CG(t){var e=PG(t);return["base64","url","image"].includes(e)?"image":t&&e==="symbol"?"path":null}var kn=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=CG(i);pi(!!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=vi(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);kn.registerSymbol("cross",mG),kn.registerSymbol("hyphen",_G),kn.registerSymbol("line",mO),kn.registerSymbol("plus",xG),kn.registerSymbol("tick",bG),kn.registerSymbol("circle",yO),kn.registerSymbol("point",fG),kn.registerSymbol("bowtie",yG),kn.registerSymbol("hexagon",gG),kn.registerSymbol("square",dG),kn.registerSymbol("diamond",hG),kn.registerSymbol("triangle",pG),kn.registerSymbol("triangle-down",vG),kn.registerSymbol("line",mO),kn.registerSymbol("dot",bO),kn.registerSymbol("dash",OG),kn.registerSymbol("smooth",wG),kn.registerSymbol("hv",SG),kn.registerSymbol("vh",MG),kn.registerSymbol("hvh",EG),kn.registerSymbol("vhv",AG);function kG(t,e,n){var r=Math.round((t-n)/e);return n+r*e}function RG(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 xO=1.4,_O=.4;function LG(t,e,n){var r=n,i=r*xO,a=r/2,o=r/6,s=t+i*_O;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 NG(t,e,n){var r=n,i=r*xO,a=r/2,o=r/6,s=e+i*_O;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]]}kn.registerSymbol("hiddenHandle",RG),kn.registerSymbol("verticalHandle",LG),kn.registerSymbol("horizontalHandle",NG);var bpt=function(t,e,n){return t===void 0&&(t="horizontal"),t==="horizontal"?e:n};function IG(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 Ml=ji({markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label"},"handle"),OO={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},jG=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,OO)||this}return e.prototype.render=function(n,r){var i=Ue(r).maybeAppendByClassName(Ml.markerGroup,"g");this.renderMarker(i);var a=Ue(r).maybeAppendByClassName(Ml.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;pi(!!s,n,function(c){var l=en(r.attributes,"marker"),u=(0,S.pi)({symbol:s},l);r.marker=c.maybeAppendByClassName(Ml.marker,function(){return new kn({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;pi(a,n,function(u){var f,d=en(r.attributes,"label"),h=d.text,p=(0,S._T)(d,["text"]),v=((f=u.select(Ml.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(Ml.label,"text").styles((0,S.pi)((0,S.pi)({},p),{x:O,y:w,text:l(h).toString(),textAlign:M,textBaseline:E}))})},e}(Rr),wO={showTitle:!0,padding:0,orientation:"horizontal",backgroundFill:"transparent",titleText:"",titleSpacing:4,titlePosition:"top-left",titleFill:"#2C3542",titleFontWeight:"bold",titleFontFamily:"sans-serif",titleFontSize:12},DG=Na({},wO,{}),FG=Na({},wO,la(OO,"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"}),BG=.01,xpt=.5,Lr=ji({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 zG(t,e){for(var n=1;n=r&&e<=i)return[r,i]}return[e,e]}function GG(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 El=ji({trackGroup:"background-group",track:"background",selectionGroup:"ribbon-group",selection:"ribbon",clipPath:"clip-path"},"ribbon");function MO(t){var e=t.orientation,n=t.size,r=t.length;return da(e,[r,n],[n,r])}function EO(t){var e=t.type,n=(0,S.CR)(MO(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 WG(t){return EO(t)}function HG(t){var e=t.orientation,n=t.color,r=t.block,i=t.partition,a;if(vi(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 Pa(l).toString()});return s?s===1?c[0]:r?GG(i,c,e):c.reduce(function(l,u,f){return l+=" ".concat(f/(s-1),":").concat(u)},"l(".concat(da(e,"0","270"),")")):""}function YG(t){var e=t.orientation,n=t.range;if(!n)return[];var r=(0,S.CR)(MO(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 VG(t,e){var n=en(e,"track");t.maybeAppendByClassName(El.track,"path").styles((0,S.pi)({path:EO(e)},n))}function $G(t,e){var n=en(e,"selection"),r=HG(e),i=t.maybeAppendByClassName(El.selection,"path").styles((0,S.pi)({path:WG(e),fill:r},n)),a=i.maybeAppendByClassName(El.clipPath,"path").styles({path:YG(e)}).node();i.style("clip-path",a)}var XG=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(El.trackGroup,"g");VG(i,n);var a=Ue(r).maybeAppendByClassName(El.selectionGroup,"g");$G(a,n)},e}(Rr);function UG(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 qG=function(t){(0,S.ZT)(e,t);function e(n){var r=t.call(this,n,FG)||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=SO(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 Wn(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(Lr.contentGroup,"g").styles({x:s,y:c}),u=l.maybeAppendByClassName(Lr.labelGroup,"g").styles({zIndex:1});pi(!!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]}:UG(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 N2({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 Wn(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 Wn(0,0,0,0);if(this.cacheLabelBBox)return this.cacheLabelBBox;var i=((n=this.label.querySelector(Tn.labelGroup.class))===null||n===void 0?void 0:n.children.slice(-1)[0]).getBBox(),a=i.width,o=i.height;return this.cacheLabelBBox=new Wn(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],D=P[1];return new Wn(C,D,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=Na({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 XG({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"?jG:gO,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 Wn(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 Wn(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 lG({})}).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 tW(t,e,n){const r=U2(e),i=$2(e,t),a=1;return 1-i/(r-1)-n+a}function eW(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 nW(t,e){return t>=e?2-(t-1)/(e-1):1}function rW(t,e,n,r){const i=e-t;return 1-.5*(wr(e-r,2)+wr(t-n,2))/wr(.1*i,2)}function iW(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 aW(){return 1}const Dv=(t,e,n=5,r=!0,i=ZG,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||D<=t&&N>=e)&&(s.lmin=D,s.lmax=N,s.lstep=k,s.score=z)}}_+=1}y+=1}}c+=1}const l=Tl(s.lmax),u=Tl(s.lmin),f=Tl(s.lstep),d=Math.floor(QG((l-u)/f))+1,h=new Array(d);h[0]=Tl(u);for(let p=1;pa-o);const i=[];for(let a=1;a({value:e/t,label:String(e)})}function dW(t,e,n,r,i){const a=e.thresholds,o=fW(r);return Object.assign(Object.assign({},t),{color:i,data:[n,...a,r].map(o)})}function hW(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 Al)));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 gW(t,e,n,r,i,a){const o=ua(t,"color"),s=uW(n,r,i);if(o instanceof nc){const{range:u}=o.getOptions(),[f,d]=Fv(o);return o instanceof gd||o instanceof yd?dW(s,o,f,d,u):hW(s,o,u)}const c=ua(t,"size"),l=ua(t,"opacity");return vW(s,o,c,l,e,a)}const go=t=>{const{labelFormatter:e,layout:n,order:r,orientation:i,position:a,size:o,title:s,style:c,crossPadding:l,padding:u}=t,f=cW(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=rO(a,n),{legendContinuous:w={}}=p,M=hd(Object.assign({},w,Object.assign(Object.assign({titleText:dd(s),labelAlign:"value",labelFormatter:typeof e=="string"?A=>uo(e)(A.label):e},gW(d,v,h,t,go,p)),c),f)),E=new iO({style:Object.assign(Object.assign({x:y,y:m,width:b,height:_},O),{subOptions:M})});return E.appendChild(new qG({className:"legend-continuous",style:M})),E}};go.props={defaultPosition:"top",defaultOrientation:"vertical",defaultOrder:1,defaultSize:60,defaultLength:200,defaultLegendSize:60,defaultPadding:[20,10],defaultCrossPadding:[12,12]};const TO=t=>(...e)=>go(Object.assign({},{block:!0},t))(...e);TO.props=Object.assign(Object.assign({},go.props),{defaultPosition:"top",defaultOrientation:"horizontal"});const Bv=t=>e=>{const{scales:n}=e,r=ua(n,"size");return go(Object.assign({},{type:"size",data:r.getTicks().map((i,a)=>({value:i,label:String(i)}))},t))(e)};Bv.props=Object.assign(Object.assign({},go.props),{defaultPosition:"top",defaultOrientation:"horizontal"});const PO=t=>Bv(Object.assign({},{block:!0},t));PO.props=Object.assign(Object.assign({},go.props),{defaultPosition:"top",defaultOrientation:"horizontal"});var yW=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:D,frame:N,labelTransform:k,parentKey:R,clip:I,viewStyle:F,title:B}=e,z=yW(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:D,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:I,style:F},!t&&{title:B}),{marks:[Object.assign(Object.assign(Object.assign({},z),{key:`${D}-0`,data:_}),t&&{title:B})]})]};CO.props={};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);iNt({},t(e,...n),e)}function ic(t){return(e,...n)=>Nt({},e,t(e,...n))}function zv(t,e){if(!t)return e;if(Array.isArray(t))return t;const{value:n=e}=t,r=mW(t,["value"]);return Object.assign(Object.assign({},r),{value:n})}var Gv=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=Gv(t,["children"]);if(!Array.isArray(e))return[];const{data:r,scale:i={},axis:a={},legend:o={},encode:s={},transform:c=[]}=n,l=Gv(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=Gv(f,["data","scale","axis","legend","encode","transform"]);return Object.assign({data:zv(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"})]};kO.props={};function fr([t,e],[n,r]){return[t-n,e-r]}function md([t,e],[n,r]){return[t+n,e+r]}function Qn([t,e],[n,r]){return Math.sqrt(Math.pow(t-n,2)+Math.pow(e-r,2))}function Bi([t,e]){return Math.atan2(e,t)}function ac([t,e]){return Bi([t,e])+Math.PI/2}function RO(t,e){const n=Bi(t),r=Bi(e);return nr===0?t.moveTo(n[0],n[1]):t.lineTo(n[0],n[1])),t.closePath(),t}function xW(t,e,n){const{arrowSize:r}=n,i=typeof r=="string"?+parseFloat(r)/100*Qn(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 Pl(t,e,n,r,i){const a=Bi(fr(r,e))+Math.PI,o=Bi(fr(r,n))+Math.PI;return t.arc(r[0],r[1],i,a,o,o-a<0),t}function NO(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=ts(s),[u,f]=Da(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 bd(t){const[e,n,r,i]=t;return[i,e,n,r]}function os(t,e,n){const[r,i,,a]=Gn(t)?bd(e):e,[o,s]=n,c=t.getCenter(),l=ac(fr(r,c)),u=ac(fr(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:Qn(a,c),outerRadius:Qn(r,c)}}function Opt(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 IO(t){const{colorAttribute:e,opacityAttribute:n=e}=t;return`${n}Opacity`}function jO(t,e){if(!Nn(t))return"";const n=t.getCenter(),{transform:r}=e;return`translate(${n[0]}, ${n[1]}) ${r||""}`}function DO(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 FO(t){return t.replace(/-(\w)/g,function(e,n){return n.toUpperCase()})}function _W(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}var wpt=Array.prototype.slice;function BO(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Hn(t){return function(){return t}}function zO(t){this._context=t}zO.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 Cl(t){return new zO(t)}const Hv=Math.PI,Yv=2*Hv,ss=1e-6,OW=Yv-ss;function GO(t){this._+=t[0];for(let e=1,n=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return GO;const n=wr(10,e);return function(r){this._+=r[0];for(let i=1,a=r.length;iss)if(!(Math.abs(f*c-l*u)>ss)||!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((Hv-Math.acos((v+d-g)/(2*y*m)))/2),_=b/m,O=b/y;Math.abs(_-1)>ss&&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)>ss||Math.abs(this._y1-u)>ss)&&this._append`L${l},${u}`,r&&(d<0&&(d=d%Yv+Yv),d>OW?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>ss&&this._append`A${r},${r},0,${+(d>=Hv)},${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 zi(){return new xd}zi.prototype=xd.prototype;function Spt(t=3){return new xd(+t)}function Vv(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 xd(e)}function WO(t){return t[0]}function HO(t){return t[1]}function yo(t,e){var n=Hn(!0),r=null,i=Cl,a=null,o=Vv(s);t=typeof t=="function"?t:t===void 0?WO:Hn(t),e=typeof e=="function"?e:e===void 0?HO:Hn(e);function s(c){var l,u=(c=BO(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 EW=(t,e,n)=>{const r=Qn(t,e),i=Qn(e,n),a=Qn(n,t);return(Math.pow(r,2)+Math.pow(i,2)-Math.pow(a,2))/(2*r*i)};function AW(t,e,n,r){const[[i,a],[o,s]]=e,[c,l]=SW(t);if(i===o&&a===s)return yo()([[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(EW(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=$v(e,["className","class","transform","rotate","labelTransform","labelTransformOrigin","x","y","x0","y0","text","background","connector","startMarker","endMarker","coordCenter","innerHTML"]);if([c,l,u,f].some(I=>!(0,xr.Z)(I))){t.children.forEach(I=>I.remove());return}const _=se(b,"background"),{padding:O}=_,w=$v(_,["padding"]),M=se(b,"connector"),{points:E=[]}=M,A=$v(M,["points"]),P=[[+u,+f],[+c,+l]];let C;m?C=Ne(t).maybeAppend("html","html",n).style("zIndex",0).style("innerHTML",m).call(Ee,Object.assign({transform:o,transformOrigin:s},b)).node():C=Ne(t).maybeAppend("text","text").style("zIndex",0).style("text",d).call(Ee,Object.assign({textBaseline:"middle",transform:o,transformOrigin:s},b)).node();const D=Ne(t).maybeAppend("background","rect").style("zIndex",-1).call(Ee,MW(C,O)).call(Ee,h?w:{}).node(),N=AW(D,P,E,y),k=v&&new kn({id:"startMarker",style:Object.assign({x:0,y:0},se(b,"startMarker"))}),R=g&&new kn({id:"endMarker",style:Object.assign({x:0,y:0},se(b,"endMarker"))});Ne(t).maybeAppend("connector","path").style("zIndex",0).style("path",N).style("markerStart",k).style("markerEnd",R).call(Ee,p?A:{})});function sc(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 TW(t,e,n,r){const i=e.length/2,a=e.slice(0,i),o=e.slice(i);let s=sc(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=Bi(fr(f,u))/Math.PI*180;return{x:l[0],y:l[1],transform:`rotate(${d})`,textAlign:"center",textBaseline:"middle"}}function VO(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=N_(n.x,l),g=N_(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 $O(t,e,n,r){const{y:i,y1:a,autoRotate:o,rotateToAlignArc:s}=n,c=r.getCenter(),l=os(r,e,[i,a]),{innerRadius:u,outerRadius:f,startAngle:d,endAngle:h}=l,p=t==="inside"?(d+h)/2:h,v=Xv(p,o,s),g=(()=>{const[y,m]=e,b=u+(f-u)*.5,[_,O]=t==="inside"?kl(c,p,b):LO(y,m);return{x:_,y:O}})();return Object.assign(Object.assign({},g),{textAlign:t==="inside"?"center":"start",textBaseline:"middle",rotate:v})}function kl(t,e,n){return[t[0]+Math.sin(e)*n,t[1]-Math.cos(e)*n]}function Xv(t,e,n){if(!e)return 0;const r=n?0:Math.sin(t)<0?90:-90;return t/Math.PI*180+r}function PW(t,e,n,r){const{y:i,y1:a,autoRotate:o,rotateToAlignArc:s,radius:c=.5,offset:l=0}=n,u=os(r,e,[i,a]),{startAngle:f,endAngle:d}=u,h=r.getCenter(),p=(f+d)/2,g={textAlign:"center",textBaseline:"middle",rotate:Xv(p,o,s)},{innerRadius:y,outerRadius:m}=u,_=y+(m-y)*c+l,[O,w]=kl(h,p,_);return Object.assign({x:O,y:w},g)}function XO(t){return t===void 0?null:t}function UO(t,e,n,r){const{bounds:i}=n,[a]=i;return{x:XO(a[0]),y:XO(a[1])}}function Fa(t,e,n,r){const{bounds:i}=n;return i.length===1?UO(t,e,n,r):(pl(r)?$O:qs(r)?PW:VO)(t,e,n,r)}function CW(t,e,n,r,i){const[a,o]=kl(t,e,n),[s,c]=kl(t,e,r),l=Math.sin(e)>0?1:-1;return[[a,o],[s,c],[s+l*i,c]]}function qO(t,e,n){const r=os(n,t,[e.y,e.y1]),{innerRadius:i,outerRadius:a}=r;return i+(a-i)}function ZO(t,e,n){const r=os(n,t,[e.y,e.y1]),{startAngle:i,endAngle:a}=r;return(i+a)/2}function Uv(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=ZO(e,n,r),h=Math.sin(d)>0?1:-1,p=Xv(d,i,a),v={textAlign:h>0||pl(r)?"start":"end",textBaseline:"middle",rotate:p},g=qO(e,n,r),y=g+(s?c:o),[[m,b],[_,O],[w,M]]=CW(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 kW(t,e,n,r){const{bounds:i}=n;return i.length===1?UO(t,e,n,r):(pl(r)?$O:qs(r)?Uv:VO)(t,e,n,r)}var RW=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 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);i0?1:-1,[v,g]=kl(u,h,d);return s.x=v+(a+o)*p,s.y=g,s}var KO=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=KO(o,["text","x","y","transform","transformOrigin","className"]),p=DW(a,o,n,r,t),{rotate:v=0,transform:g=""}=p,y=KO(p,["rotate","transform"]);return Ne(new YO).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()}};QO.props={defaultMarker:"point"};function JO(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 qv(t,e){if(e(t))return t;let n=t.parent;for(;n&&!e(n);)n=n.parent;return n}function FW(t){return qv(t,e=>e.className==="component")}function BW(t){return qv(t,e=>e.className==="element")}function zW(t){return qv(t,e=>e.className==="label")}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=BW(a),c=FW(a),l=zW(a),u=s||c||l;if(!u)return;const{className:f,markType:d}=u,h=Object.assign(Object.assign({},i),{nativeEvent:!0});f==="element"?(h.data={data:JO(u,e)},n.emit(`element:${t}`,h),n.emit(`${d}:${t}`,h)):f==="label"?(h.data={data:u.attributes.datum},n.emit(`label:${t}`,h),n.emit(`${o}:${t}`,h)):(n.emit(`component:${t}`,h),n.emit(`${o}:${t}`,h))}}function tw(){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)}}}tw.props={reapplyWhenUpdate:!0};function GW(){return{"component.axisRadar":dO,"component.axisLinear":po,"component.axisArc":fO,"component.legendContinuousBlock":TO,"component.legendContinuousBlockSize":PO,"component.legendContinuousSize":Bv,"interaction.event":tw,"composition.mark":CO,"composition.view":kO,"shape.label.label":QO}}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);i{if(typeof a!="string")return a;const o=`${t}.${a}`;return n[o]||Us(`Unknown Component: ${o}`)};return[(a,o)=>{const{type:s}=a,c=WW(a,["type"]);s||Us("Plot type is required!");const l=r(s);return l==null?void 0:l(c,o)},r]}function ew(t){const{canvas:e,group:n}=t;return(e==null?void 0:e.document)||(n==null?void 0:n.ownerDocument)||Us("Cannot find library document")}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);in.type===e)}function cs(t){return Zi(t,"polar").length>0}function YW(t){return Zi(t,"helix").length>0}function cc(t){return Zi(t,"transpose").length%2===1}function VW(t){return Zi(t,"parallel").length>0}function iw(t){return Zi(t,"theta").length>0}function $W(t){return Zi(t,"reflect").length>0}function Rl(t){return Zi(t,"radial").length>0}function XW(t){return Zi(t,"radar").length>0}function UW(t){return Zi(t,"reflectY").length>0}function qW(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?Od(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Od(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=sH.exec(t))?new $r(e[1],e[2],e[3],1):(e=cH.exec(t))?new $r(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=lH.exec(t))?Od(e[1],e[2],e[3],e[4]):(e=uH.exec(t))?Od(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=fH.exec(t))?dw(e[1],e[2]/100,e[3]/100,1):(e=dH.exec(t))?dw(e[1],e[2]/100,e[3]/100,e[4]):aw.hasOwnProperty(t)?cw(aw[t]):t==="transparent"?new $r(NaN,NaN,NaN,0):null}function cw(t){return new $r(t>>16&255,t>>8&255,t&255,1)}function Od(t,e,n,r){return r<=0&&(t=e=n=NaN),new $r(t,e,n,r)}function lw(t){return t instanceof lc||(t=Kv(t)),t?(t=t.rgb(),new $r(t.r,t.g,t.b,t.opacity)):new $r}function Nl(t,e,n,r){return arguments.length===1?lw(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}_d($r,Nl,Zv(lc,{brighter:function(e){return e=e==null?uc:Math.pow(uc,e),new $r(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?ls:Math.pow(ls,e),new $r(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},clamp:function(){return new $r(us(this.r),us(this.g),us(this.b),wd(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:uw,formatHex:uw,formatHex8:vH,formatRgb:fw,toString:fw}));function uw(){return"#".concat(fs(this.r)).concat(fs(this.g)).concat(fs(this.b))}function vH(){return"#".concat(fs(this.r)).concat(fs(this.g)).concat(fs(this.b)).concat(fs((isNaN(this.opacity)?1:this.opacity)*255))}function fw(){var t=wd(this.opacity);return"".concat(t===1?"rgb(":"rgba(").concat(us(this.r),", ").concat(us(this.g),", ").concat(us(this.b)).concat(t===1?")":", ".concat(t,")"))}function wd(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function us(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function fs(t){return t=us(t),(t<16?"0":"")+t.toString(16)}function dw(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ki(t,e,n,r)}function hw(t){if(t instanceof Ki)return new Ki(t.h,t.s,t.l,t.opacity);if(t instanceof lc||(t=Kv(t)),!t)return new Ki;if(t instanceof Ki)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 Ki(o,s,c,t.opacity)}function gH(t,e,n,r){return arguments.length===1?hw(t):new Ki(t,e,n,r==null?1:r)}function Ki(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}_d(Ki,gH,Zv(lc,{brighter:function(e){return e=e==null?uc:Math.pow(uc,e),new Ki(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?ls:Math.pow(ls,e),new Ki(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(Qv(e>=240?e-240:e+120,a,i),Qv(e,a,i),Qv(e<120?e+240:e-120,a,i),this.opacity)},clamp:function(){return new Ki(pw(this.h),Sd(this.s),Sd(this.l),wd(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=wd(this.opacity);return"".concat(e===1?"hsl(":"hsla(").concat(pw(this.h),", ").concat(Sd(this.s)*100,"%, ").concat(Sd(this.l)*100,"%").concat(e===1?")":", ".concat(e,")"))}}));function pw(t){return t=(t||0)%360,t<0?t+360:t}function Sd(t){return Math.max(0,Math.min(1,t||0))}function Qv(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 vw(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 yH(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):Jv(isNaN(t)?e:t)}function _H(t){return(t=+t)==1?dc:function(e,n){return n-e?bH(e,n,t):Jv(isNaN(e)?n:e)}}function dc(t,e){var n=e-t;return n?gw(t,n):Jv(isNaN(t)?e:t)}var Mpt=function t(e){var n=_H(e);function r(i,a){var o=n((i=Nl(i)).r,(a=Nl(a)).r),s=n(i.g,a.g),c=n(i.b,a.b),l=dc(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 yw(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;oOH(t[t.length-1]),mw=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(nn),wH=jn(mw),bw=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(nn),SH=jn(bw),xw=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(nn),MH=jn(xw),_w=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(nn),EH=jn(_w),Ow=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(nn),AH=jn(Ow),ww=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(nn),TH=jn(ww),Sw=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(nn),PH=jn(Sw),Mw=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(nn),CH=jn(Mw),Ew=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(nn),kH=jn(Ew),Aw=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(nn),RH=jn(Aw),Tw=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(nn),LH=jn(Tw),Pw=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(nn),NH=jn(Pw),Cw=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(nn),IH=jn(Cw),kw=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(nn),jH=jn(kw),Rw=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(nn),DH=jn(Rw),Lw=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(nn),FH=jn(Lw),Nw=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(nn),BH=jn(Nw),Iw=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(nn),zH=jn(Iw),jw=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(nn),GH=jn(jw),Dw=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(nn),WH=jn(Dw),Fw=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(nn),HH=jn(Fw),Bw=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(nn),YH=jn(Bw),zw=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(nn),VH=jn(zw),Gw=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(nn),$H=jn(Gw),Ww=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(nn),XH=jn(Ww),Hw=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(nn),UH=jn(Hw),Yw=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(nn),qH=jn(Yw);function ZH(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 KH=Math.PI/180,QH=180/Math.PI,Vw=-.14861,tg=1.78277,eg=-.29227,Md=-.90649,Il=1.97294,$w=Il*Md,Xw=Il*tg,Uw=tg*eg-Md*Vw;function JH(t){if(t instanceof ds)return new ds(t.h,t.s,t.l,t.opacity);t instanceof $r||(t=lw(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(Uw*r+$w*e-Xw*n)/(Uw+$w-Xw),a=r-i,o=(Il*(n-i)-eg*a)/Md,s=Math.sqrt(o*o+a*a)/(Il*i*(1-i)),c=s?Math.atan2(o,a)*QH-120:NaN;return new ds(c<0?c+360:c,s,i,t.opacity)}function pa(t,e,n,r){return arguments.length===1?JH(t):new ds(t,e,n,r==null?1:r)}function ds(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}_d(ds,pa,Zv(lc,{brighter:function(e){return e=e==null?uc:Math.pow(uc,e),new ds(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?ls:Math.pow(ls,e),new ds(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*KH,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*(Vw*i+tg*a)),255*(n+r*(eg*i+Md*a)),255*(n+r*(Il*i)),this.opacity)}}));function qw(t){return function e(n){n=+n;function r(i,a){var o=t((i=pa(i)).h,(a=pa(a)).h),s=dc(i.s,a.s),c=dc(i.l,a.l),l=dc(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 Apt=qw(xH),ng=qw(dc),tY=ng(pa(300,.5,0),pa(-240,.5,1)),eY=ng(pa(-100,.75,.35),pa(80,1.5,.8)),nY=ng(pa(260,.75,.35),pa(80,1.5,.8)),Ed=pa();function rY(t){(t<0||t>1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return Ed.h=360*t-100,Ed.s=1.5-1.5*e,Ed.l=.8-.9*e,Ed+""}var Ad=Nl(),iY=Math.PI/3,aY=Math.PI*2/3;function oY(t){var e;return t=(.5-t)*Math.PI,Ad.r=255*(e=Math.sin(t))*e,Ad.g=255*(e=Math.sin(t+iY))*e,Ad.b=255*(e=Math.sin(t+aY))*e,Ad+""}function sY(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 Td(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var cY=Td(nn("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),lY=Td(nn("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),uY=Td(nn("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),fY=Td(nn("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function dY(t,e,n,r,i,a){const{guide:o={}}=n,s=_Y(t,e,n);if(typeof s!="string")return n;const c=OY(s,t,e,n),l=mY(s,c,n);return Object.assign(Object.assign(Object.assign({},n),SY(s,t,e,n,r)),{domain:l,range:wY(s,t,e,n,l,i,a),expectedDomain:c,guide:o,name:t,type:s})}function hY(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 pY(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=yY(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:tO(s,i)});a.push(h)}}}return a}function vY(t){if(!t||!Array.isArray(t))return[Jo,Jo];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 Zw(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 Kw(t,e){const[n]=Yn("scale",e),{relations:r}=t,[i]=vY(r),a=n(t);return i(a)}function gY(t){const e=t.flatMap(n=>Array.from(n.values())).flatMap(n=>n.channels.map(r=>r.scale));Qw(e,"x"),Qw(e,"y")}function yY(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 Qw(t,e){const n=t.filter(({name:a,facet:o=!0})=>o&&a===e),r=n.flatMap(a=>a.domain),i=n.every(Jw)?Da(r):n.every(tS)?Array.from(new Set(r)):null;if(i!==null)for(const a of n)a.domain=i}function mY(t,e,n){const{ratio:r}=n;return r==null?e:Jw({type:t})?bY(e,r,t):tS({type:t})?xY(e,r):e}function bY(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 xY(t,e){const n=Math.round(t.length*e);return t.slice(0,n)}function Jw(t){const{type:e}=t;return typeof e!="string"?!1:["linear","log","pow","time"].includes(e)}function tS(t){const{type:e}=t;return typeof e!="string"?!1:["band","point","ordinal"].includes(e)}function _Y(t,e,n){const{type:r,domain:i,range:a,quantitative:o,ordinal:s}=n;return r!==void 0?r:IY(e)?"identity":typeof a=="string"?"linear":(i||a||[]).length>2?rg(t,s):i!==void 0?aS([i])?rg(t,s):oS(e)?"time":nS(t,a,o):aS(e)?rg(t,s):oS(e)?"time":nS(t,a,o)}function OY(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 rS(kY(n,r),r);case"band":case"ordinal":case"point":return iS(n);case"quantile":return RY(n);case"sequential":return rS(LY(n),r);default:return[]}}function wY(t,e,n,r,i,a,o){const{range:s}=r;if(typeof s=="string")return MY(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=eS(n,r,i,a,o),[f,d]=NY(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 eS(n,r,i,a,o);case"sequential":return;case"constant":return[n[0][0]];default:return[]}}function SY(t,e,n,r,i){switch(t){case"linear":case"time":case"log":case"pow":case"sqrt":return TY(i,r);case"band":case"point":return PY(t,e,i,r);case"sequential":return AY(r);default:return r}}function eS(t,e,n,r,i){const[a]=Yn("palette",i),{category10:o,category20:s}=r,c=dF(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=EY(l,n,u);if(d)return d;throw new Error(`Unknown Component: ${l} `)}}function MY(t){return t.split("-")}function EY(t,e,n=r=>r){if(!t)return null;const r=lo(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 AY(t){const{palette:e="ylGnBu",offset:n}=t,r=lo(e),i=Rt[`interpolate${r}`];if(!i)throw new Error(`Unknown palette: ${r}`);return{interpolator:n?a=>i(n(a)):i}}function TY(t,e){const{interpolate:n=Sl,nice:r=!1,tickCount:i=5}=e;return Object.assign(Object.assign({},e),{interpolate:n,nice:r,tickCount:i})}function PY(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=CY(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 CY(t,e,n){return e==="enterDelay"||e==="enterDuration"||e==="size"?0:t==="band"?iw(n)?0:.1:t==="point"?.5:0}function rg(t,e){return e||(jY(t)?"point":"ordinal")}function nS(t,e,n){return n||(t!=="color"||e?"linear":"sequential")}function rS(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 kY(t,e){const{zero:n=!1}=e;let r=1/0,i=-1/0;for(const a of t)for(const o of a)Ln(o)&&(r=Math.min(r,+o),i=Math.max(i,+o));return r===1/0?[]:n?[Math.min(0,r),i]:[r,i]}function iS(t){return Array.from(new Set(t.flat()))}function RY(t){return iS(t).sort()}function LY(t){let e=1/0,n=-1/0;for(const r of t)for(const i of r)Ln(i)&&(e=Math.min(e,+i),n=Math.max(n,+i));return e===1/0?[]:[e<0?-n:e,n]}function NY(t,e){return t==="enterDelay"?[0,1e3]:t=="enterDuration"?[300,1e3]:t.startsWith("y")||t.startsWith("position")?[1,0]:t==="color"?[fF(e),W_(e)]:t==="opacity"?[0,1]:t==="size"?[1,10]:[0,1]}function aS(t){return ig(t,e=>{const n=typeof e;return n==="string"||n==="boolean"})}function oS(t){return ig(t,e=>e instanceof Date)}function IY(t){return ig(t,fl)}function ig(t,e){for(const n of t)if(n.some(e))return!0;return!1}function jY(t){return t.startsWith("x")||t.startsWith("y")||t.startsWith("position")||t.startsWith("size")}function DY(t){return t.startsWith("x")||t.startsWith("y")||t.startsWith("position")||t==="enterDelay"||t==="enterDuration"||t==="updateDelay"||t==="updateDuration"||t==="exitDelay"||t==="exitDuration"}function FY(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 BY={linear:"linear",identity:"identity",log:"log",pow:"pow",sqrt:"sqrt",sequential:"sequential"},zY={threshold:"threshold",quantize:"quantize",quantile:"quantile"},GY={ordinal:"ordinal",band:"band",point:"point"},WY={constant:"constant"};var mo=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=JY(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 UY(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]=KY(u,h,v,A,f,o,r);if(!P&&!C)continue;const D=P==="left"||P==="right",N=D?b[1]:b[0],k=D?_[1]:_[0],{size:R,order:I=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:I,crossPadding:z,size:R,type:u,scales:f}))}}),s}function sS(t,e,n,r,i){const[a]=Yn("component",r),{scaleInstances:o,scale:s,bbox:c}=t,l=mo(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 YY(t){return t.map(e=>{const n=Nt(e,e.style);return delete n.style,n})}function Tpt(t){return t.flatMap(e=>e.type=="group"?e.children:e)}function cS(t,e){const n=["left","right","bottom","top"];return Yf(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=Ii(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 VY(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=Yf(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=hF(d).sort((v,g)=>g.length-v.length).map(v=>({combination:v,option:v.map(g=>[g.name,$Y(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 gF)for(const{option:y,combination:m}of p)if(g.some(b=>V_(u(b),u(y))))return[v,m];return null}).filter(Ln)}function $Y(t){const{type:e}=t;return typeof e!="string"?null:e in BY?"continuous":e in GY?"discrete":e in zY?"distribution":e in WY?"constant":null}function XY(t,e){return t.map(n=>{const{name:r}=n;if(YW(e)||iw(e)||cc(e)&&(cs(e)||Rl(e)))return null;if(r.startsWith("x"))return cs(e)?["axisArc",[n]]:Rl(e)?["axisLinear",[n]]:[cc(e)?"axisY":"axisX",[n]];if(r.startsWith("y"))return cs(e)?["axisLinear",[n]]:Rl(e)?["axisArc",[n]]:[cc(e)?"axisX":"axisY",[n]];if(r.startsWith("z"))return["axisZ",[n]];if(r.startsWith("position")){if(XW(e))return["axisRadar",[n]];if(!cs(e))return["axisY",[n]]}return null}).filter(Ln)}function UY(t,e){const n=t.filter(r=>FY(r));return[...VY(n,e),...XY(n,e)]}function ag(t){const e=Zi(t,"polar");if(e.length){const r=e[e.length-1],{startAngle:i,endAngle:a}=$_(r);return[i,a]}const n=Zi(t,"radial");if(n.length){const r=n[n.length-1],{startAngle:i,endAngle:a}=X_(r);return[i,a]}return[-Math.PI/2,Math.PI/2*3]}function qY(t){const e=/position(\d*)/g.exec(t);return e?+e[1]:null}function ZY(t,e,n,r,i){const{name:a}=n[0];if(t==="axisRadar"){const o=r.filter(f=>f.name.startsWith("position")),s=qY(a);if(a===o.slice(-1)[0].name||s===null)return[null,null];const[c,l]=ag(i);return["center",(l-c)/(o.length-1)*s+c]}if(t==="axisY"&&VW(i))return cc(i)?["center","horizontal"]:["center","vertical"];if(t==="axisLinear"){const[o]=ag(i);return["center",o]}return t==="axisArc"?e[0]==="inner"?["inner",null]:["outer",null]:cs(i)?["center",null]:Rl(i)?["center",null]:t==="axisX"&&$W(i)||t==="axisX"&&UW(i)?["top",null]:e}function KY(t,e,n,r,i,a,o){const[s]=ag(o),c=[r.position||e,s!=null?s:n];return typeof t=="string"&&t.startsWith("axis")?ZY(t,c,i,a,o):typeof t=="string"&&t.startsWith("legend")&&cs(o)&&r.position==="center"?["center","vertical"]:c}function QY(t,e,n=[]){return t==="x"?cc(n)?`${e}Y`:`${e}X`:t==="y"?cc(n)?`${e}X`:`${e}Y`:null}function JY(t,e,n){const[,r]=Yn("component",n),{coordinates:i}=t;function a(o,s,c,l){const u=QY(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 lS(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")?iV:c.startsWith("group")?tV:c.startsWith("legendContinuous")?aV:c==="legendCategory"?oV:c.startsWith("slider")?rV:c==="title"?nV:c.startsWith("scrollbar")?eV:()=>{})()(t,e,n,r,i,a)}function tV(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=>lS(l,e,n,r,i,a));const c=Mn(o,l=>l.size);t.size=c,o.forEach(l=>l.size=c)}function eV(t,e,n,r,i,a){const{trackSize:o=6}=Nt({},i.scrollbar,t);t.size=o}function nV(t,e,n,r,i,a){const o=Nt({},i.title,t),{title:s,subtitle:c,spacing:l=0}=o,u=mo(o,["title","subtitle","spacing"]);if(s){const f=se(u,"title"),d=Rd(s,f);t.size=d.height}if(c){const f=se(u,"subtitle"),d=Rd(c,f);t.size+=l+d.height}}function rV(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 iV(t,e,n,r,i,a){t.transform=t.transform||[{type:"hide"}];const o=r==="left"||r==="right",s=uS(t,r,i),{tickLength:c=0,labelSpacing:l=0,titleSpacing:u=0,labelAutoRotate:f}=s,d=mo(s,["tickLength","labelSpacing","titleSpacing","labelAutoRotate"]),h=Pd(t,a),p=Cd(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;lV(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=kd(d);g&&(o?t.size+=u+g.width:t.size+=u+g.height)}function aV(t,e,n,r,i,a){const s=(()=>{const{legendContinuous:_}=i;return Nt({},_,t)})(),{labelSpacing:c=0,titleSpacing:l=0}=s,u=mo(s,["labelSpacing","titleSpacing"]),f=r==="left"||r==="right",d=se(u,"ribbon"),{size:h}=d,p=se(u,"handleIcon"),{size:v}=p,g=Math.max(h,v*2.4);t.size=g;const y=Pd(t,a),m=Cd(u,y);if(m){const _=f?"width":"height",O=Mn(m,w=>w[_]);t.size+=O+c}const b=kd(u);b&&(f?t.size=Math.max(t.size,b.width):t.size+=l+b.height)}function oV(t,e,n,r,i,a){const s=(()=>{const{legendCategory:k}=i,{title:R}=t,[I,F]=Array.isArray(R)?[R,void 0]:[void 0,R];return Nt({title:I},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=mo(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=kd(v),M=Pd(t,a),E=Cd(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,I=1,F=0,B=-1/0,z=-1/0;const Y=w?w.height:0,U=O-Y;for(const{width:tt}of E){const rt=P(tt,d);k=Math.max(k,rt),R+A>U?(I++,B=Math.max(B,F),z=Math.max(z,R),F=1,R=A):(R+=A,F++)}I<=1&&(B=F,z=R),t.size=k*b(I),t.length=z+Y,Nt(t,{cols:b(I),gridRow:B})})():typeof g=="number"?(()=>{const k=Math.ceil(E.length/g),R=Mn(E,I=>P(I.width))*g;t.size=A*m(k)-f,t.length=Math.min(R,O)})():(()=>{let k=1,R=0,I=-1/0;for(const{width:F}of E){const B=P(F,d);R+B>O?(I=Math.max(I,R),R=B,k++):R+=B}k===1&&(I=R),t.size=A*m(k)-f,t.length=I})(),w&&(_?t.size=Math.max(t.size,w.width):t.size+=u+w.height)}function Pd(t,e){const[n]=Yn("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 Cd(t,e,n="label"){const{labelFormatter:r,tickFilter:i,label:a=!0}=t,o=mo(t,["labelFormatter","tickFilter","label"]);if(!a)return null;const s=sV(e,r,i),c=se(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 Rd(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 kd(t){const e=l=>l===!1||l===null,{title:n}=t,r=mo(t,["title"]);if(e(n)||n===void 0)return null;const i=se(r,"title"),{direction:a,transform:o}=i,s=Array.isArray(n)?n.join(","):n;return typeof s!="string"?null:Rd(s,Object.assign(Object.assign({},i),{transform:o||(a==="vertical"?"rotate(-90)":"")}))}function uS(t,e,n){const{title:r}=t,[i,a]=Array.isArray(r)?[r,void 0]:[void 0,r],{axis:o,[`axis${iv(e)}`]:s}=n;return Nt({title:i},o,s,Object.assign(Object.assign({},t),{title:a}))}function fS(t,e){const n=t.getTicks?t.getTicks():t.getOptions().domain;return e?n.filter(e):n}function sV(t,e,n){const i=fS(t,n).map(o=>typeof o=="number"?Uf(o):o),a=e?typeof e=="string"?uo(e):e:t.getFormatter?t.getFormatter():o=>`${o}`;return i.map(a)}function cV(t,e){return t.getBandWidth?t.getBandWidth(e)/2:0}function lV(t,e,n,r,i){if(Ii(e,h=>h.width)>n)return!0;const o=t.clone();o.update({range:[0,n]});const s=fS(t,i),c=s.map(h=>o.map(h)+cV(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 Rd(t,e){const n=uV(t),{filter:r}=e,i=mo(e,["filter"]);return n.attr(Object.assign(Object.assign({},i),{visibility:"none"})),n.getBBox()}function uV(t){return t instanceof Yr?t:new ca({style:{text:`${t}`}})}function Mi(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 dr(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function fV(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 dV(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}=pV(t,e,n,r),C=1/4,D=(le,_e,He,Be,Qe)=>{const{marks:dn}=e;if(dn.length===0)return[Be,Qe];if(le-Be-Qe-le*C>0)return[Be,Qe];const mr=le*(1-C);return[_e==="auto"?mr*Be/(Be+Qe):Be,He==="auto"?mr*Qe/(Be+Qe):Qe]},N=le=>le==="auto"?20:le!=null?le:20,k=N(P),R=N(M),I=dS(t,s-k-R,[k+_,R+b],["left","right"],e,n,r),{paddingLeft:F,paddingRight:B}=I,z=o-m-O,[Y,U]=D(z,E,A,F,B),tt=z-Y-U,rt=dS(t,tt,[Y+m,U+O],["bottom","top"],e,n,r),{paddingTop:wt,paddingBottom:Bt}=rt,Xt=s-b-_,[Tt,Pt]=D(Xt,M,P,Bt,wt),ce=Xt-Tt-Pt;return{width:o,height:s,depth:c,insetLeft:h,insetTop:p,insetBottom:v,insetRight:g,innerWidth:tt,innerHeight:ce,paddingLeft:Y,paddingRight:U,paddingTop:Pt,paddingBottom:Tt,marginLeft:m,marginBottom:b,marginTop:_,marginRight:O,x:l,y:u,z:f}}function hV(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 pV(t,e,n,r){const{coordinates:i}=e;if(!cs(i)&&!Rl(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 uS(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],_=Pd(y,r);return Cd(b,_)}).filter(Ln),l=Mn(c,y=>y.height)+s,u=a.flatMap((y,m)=>{const b=o[m];return kd(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 dS(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${iv(FO(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):(lS(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=Mi(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=cS(g,A);P.forEach(_);const C=P.reduce((D,{size:N,crossPadding:k=12})=>D+N+k,0);h[v]=C}}return h}function vV(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:og({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:og({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:og({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,D]=H_(M,N=>typeof N.type!="string"?!1:!!(A==="center"||N.type.startsWith("axis")&&["inner","outer"].includes(A)));C.length&&gV(C,e,P,A),D.length&&MV(M,e,P)}}function og({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,dr,o,_],right:[t-m,y,m,u,"horizontal",!1,dr],bottom:[g,e-b,f,b,"vertical",!1,dr,o,_],left:[0,y,g,u,"horizontal",!0,dr],"top-left":[g,0,f,y,"vertical",!0,dr],"top-right":[g,0,f,y,"vertical",!0,dr],"bottom-left":[g,e-b,f,b,"vertical",!1,dr],"bottom-right":[g,e-b,f,b,"vertical",!1,dr],center:O,inner:O,outer:O}}function gV(t,e,n,r){const[i,a]=H_(t,o=>!!(typeof o.type=="string"&&o.type.startsWith("axis")));yV(i,e,n,r),EV(a,e,n)}function yV(t,e,n,r){r==="center"?yF(e)?SV(t,e,n,r):Nn(e)?xV(t,e,n):vl(e)&&_V(t,e,n,t[0].orientation):r==="inner"?mV(t,e,n):r==="outer"&&bV(t,e,n)}function mV(t,e,n){const[r,i,,a]=n,[o,s]=e.getCenter(),[c]=qf(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,D=P[m],N=D/C.length,k=C.reduce((z,Y)=>{var U;const tt=(U=Y.layout)===null||U===void 0?void 0:U.justifyContent;return tt||z},"flex-start"),R=C.map((z,Y)=>{const{length:U=N,padding:tt=0}=z;return U+(Y===C.length-1?0:tt)}),I=Ii(R),F=D-I,B=k==="flex-start"?0:k==="center"?F/2:F;for(let z=0,Y=P[p]+B;zFV(o)?o:{type:BV(i,o),value:o});return[t,Object.assign(Object.assign({},e),{encode:a})]}function kV(t,e,n){const{encode:r}=e;if(!r)return[t,e];const i=fo(r,(a,o)=>{const{type:s}=a;return s!=="constant"||DY(o)?a:Object.assign(Object.assign({},a),{constant:!0})});return[t,Object.assign(Object.assign({},e),{encode:i})]}function RV(t,e,n){const{encode:r,data:i}=e;if(!r)return[t,e];const{library:a}=n,o=YV(a),s=fo(r,c=>o(i,c));return[t,Object.assign(Object.assign({},e),{encode:s})]}function LV(t,e,n){const{tooltip:r={}}=e;return La(r)?[t,e]:Array.isArray(r)?[t,Object.assign(Object.assign({},e),{tooltip:{items:r}})]:fl(r)&&hS(r)?[t,Object.assign(Object.assign({},e),{tooltip:r})]:[t,Object.assign(Object.assign({},e),{tooltip:{items:[r]}})]}function NV(t,e,n){const{data:r,encode:i,tooltip:a={}}=e;if(La(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(fl(f)){const{field:d,channel:h,color:p,name:v=d,valueFormatter:g=w=>w}=f,y=typeof g=="string"?uo(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);fl(p)?d[h]=p:d[h]={value:p}}return d}return f},{title:s,items:c=[]}=a,l=hc(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 IV(t,e,n){const{encode:r}=e,i=hc(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=hc(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 jV(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 DV(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 FV(t){if(typeof t!="object"||t instanceof Date||t===null)return!1;const{type:e}=t;return Ln(e)}function BV(t,e){return typeof e=="function"?"transform":typeof e=="string"&&zV(t,e)?"field":"constant"}function zV(t,e){return Array.isArray(t)?t.some(n=>n[e]!==void 0):!1}function GV(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=hc(t,["type"]);return Object.assign(Object.assign({},n),{type:e})}var vS=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())})},WV=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);iLn(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:D=g||O,type:N=A?"constant":E?"identity":v}=P,k=WV(P,["independent","key","type"]),R=N==="constant",I=R?void 0:y;return{name:O,values:w,scaleKey:C||R?Symbol("independent"):D,scale:Object.assign(Object.assign({type:N,range:I},k),{quantitative:m,ordinal:b})}})});return[a,Object.assign(Object.assign({},e),{index:i,channels:d,tooltip:l})]})}function YV(t){const[e]=Yn("encode",t);return(n,r)=>r===void 0||n===void 0?null:Object.assign(Object.assign({},r),{type:"column",value:e(r)(n),field:$V(r)})}function VV(t,e,n){return vS(this,void 0,void 0,function*(){const{library:r}=n,[i]=Yn("transform",r),{preInference:a=[],postInference:o=[]}=e,{transform:s=[]}=t,c=[TV,pS,PV,CV,kV,RV,IV,DV,jV,LV,...a.map(i),...s.map(i),...o.map(i),NV];let l=[],u=t;for(const f of c)[l,u]=yield f(l,u,n);return[l,u]})}function $V(t){const{type:e,value:n}=t;return e==="field"&&typeof n=="string"?n:null}var Ba=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())})},bo=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(Ln)),l=new Set(Object.keys(n).map(k=>{var R;return(R=/component\.(.*)/.exec(k))===null||R===void 0?void 0:R[1]}).filter(Ln)),u=k=>{const{type:R}=k;if(typeof R=="function"){const{props:I={}}=R,{composite:F=!0}=I;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),[I,F]=R?bS(R,k,n):yield yS(k,n);g.set(I,k),v.push(I);const B=F.flatMap(p).map(z=>rw(z,n));if(m.push(...B),B.every(d)){const z=yield Promise.all(B.map(Y=>mS(Y,n)));gY(z);for(let Y=0;Yk.key).join(k=>k.append("g").attr("className",Z0).attr("id",R=>R.key).call(gS).each(function(R,I,F){ug(R,Ne(F),w,n,r),_.set(R,F)}),k=>k.call(gS).each(function(R,I,F){ug(R,Ne(F),w,n,r),O.set(R,F)}),k=>k.each(function(R,I,F){const B=F.nameInteraction.values();for(const z of B)z.destroy()}).remove());const M=k=>Array.from(k.entries()).map(([R,I])=>{const F=new Map,B=(U,tt=rt=>rt)=>F.set(U,tt),z=g.get(R),Y=UV(Ne(I),z,n,r);return{view:R,container:I,options:z,setState:B,update:U=>Ba(this,void 0,void 0,function*(){const rt=rv(Array.from(F.values()))(z);return yield Y(rt,U)})}}),E=M(_);for(const k of E){const{options:R}=k,I=new Map;k.container.nameInteraction=I;for(const F of Ld(R)){const[B,z]=F;if(z){const U=lg(k.view,B,z,s)(k,E,r.emitter);I.set(B,{destroy:U})}}}const A=M(O);for(const k of A){const{options:R,container:I}=k,F=I.nameInteraction;for(const B of Ld(R)){const[z,Y]=B,U=F.get(z);if(U&&((i=U.destroy)===null||i===void 0||i.call(U)),Y){const rt=lg(k.view,z,Y,s)(k,A,r.emitter);F.set(z,{destroy:rt})}}}const{width:P,height:C}=t,D=[];for(const k of b){const R=new Promise(I=>Ba(this,void 0,void 0,function*(){for(const F of k){const B=Object.assign({width:P,height:C},F);yield cg(B,e,n,r)}I()}));D.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(Ln).map(l$).map(k=>k.finished);return Promise.all([...N,...D])})}function gS(t){t.style("transform",e=>`translate(${e.layout.x}, ${e.layout.y})`)}function XV(t){const[,e]=Yn("interaction",t);return n=>{const[r,i]=n;try{return[r,e(r)]}catch(a){return[r,i.type]}}}function UV(t,e,n,r){const i=XV(n),a=c=>c[1]&&c[1].props&&c[1].props.reapplyWhenUpdate,s=Ld(e).map(i).filter(a).map(c=>c[0]);return(c,l)=>Ba(this,void 0,void 0,function*(){const u=[],[f,d]=yield yS(c,n);ug(f,t,u,n,r);for(const h of s.filter(p=>p!==l))qV(h,t,c,f,n,r);for(const h of d)cg(h,t,n,r);return{options:c,view:f}})}function qV(t,e,n,r,i,a){var o;const[s]=Yn("interaction",i),l=e.node().nameInteraction,u=Ld(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=lg(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 yS(t,e){return Ba(this,void 0,void 0,function*(){const n=yield KV(t,e),r=ZV(n);t.interaction=r.interaction,t.coordinate=r.coordinate,t.marks=[...r.marks,...r.components];const i=rw(r,e),a=yield mS(i,e);return bS(a,i,e)})}function ZV(t){const{coordinate:e={},interaction:n={},style:r={},marks:i}=t,a=bo(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 KV(t,e){return Ba(this,void 0,void 0,function*(){const[n,r]=Yn("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(Ln)),{marks:a}=t,o=[],s=[],c=[...a],{width:l,height:u}=hV(t),f={options:t,width:l,height:u};for(;c.length;){const[d]=c.splice(0,1),h=yield wS(d,e),{type:p=Us("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 mS(t,e){return Ba(this,void 0,void 0,function*(){const[n]=Yn("theme",e),[,r]=Yn("mark",e),{theme:i,marks:a,coordinates:o=[]}=t,s=n(OS(i)),c=new Map;for(const u of a){const{type:f}=u,{props:d={}}=r(f),h=yield HV(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:_})=>Nt(b,_),{}),{scaleKey:d}=u[0],{values:h}=u[0],p=Array.from(new Set(h.map(b=>b.field).filter(Ln))),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({},dY(g,y,v,o,s,e)),{key:d});u.forEach(b=>b.scale=m)}return c})}function lg(t,e,n,r){const i=t.theme,a=typeof e=="string"?i[e]||{}:{};return r(Nt(a,Object.assign({type:e},n)))}function bS(t,e,n){const[r]=Yn("mark",n),[i]=Yn("theme",n),[a]=Yn("labelTransform",n),{key:o,frame:s=!1,theme:c,clip:l,style:u={},labelTransform:f=[]}=e,d=i(OS(c)),h=Array.from(t.values()),p=pY(h,e),v=YY(HY(h$(Array.from(p),h,t),e,n)),g=dV(v,e,d,n),y=HW(g,e,n),m=s?Nt({mainLineWidth:1,mainStroke:"#000"},u):u;vV(cS(v),y,g),fV(v);const b={};for(const w of v){const{scales:M=[]}=w,E=[];for(const A of M){const{name:P}=A,C=Kw(A,n);E.push(C),P==="y"&&C.update(Object.assign(Object.assign({},C.getOptions()),{xScale:b.x})),Zw(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:D,channels:N,tooltip:k}=M,R=Object.fromEntries(N.map(({name:Pt,scale:ce})=>[Pt,ce])),I=fo(R,Pt=>Kw(Pt,n));Zw(b,I);const F=hY(N,I),B=r(w),[z,Y,U]=t$(B(D,I,F,y)),tt=A||z.length,rt=P?P(Y,tt,g):[],wt=Pt=>{var ce,le;return(le=(ce=k.title)===null||ce===void 0?void 0:ce[Pt])===null||le===void 0?void 0:le.value},Bt=Pt=>k.items.map(ce=>ce[Pt]),Xt=z.map((Pt,ce)=>{const le=Object.assign({points:Y[ce],transform:rt[ce],index:Pt,markKey:C,viewKey:o},k&&{title:wt(Pt),items:Bt(Pt)});for(const[_e,He]of Object.entries(F))le[_e]=He[Pt],U&&(le[`series${lo(_e)}`]=U[ce].map(Be=>He[Be]));return U&&(le.seriesIndex=U[ce]),U&&k&&(le.seriesItems=U[ce].map(_e=>Bt(_e)),le.seriesTitle=U[ce].map(_e=>wt(_e))),le});M.data=Xt,M.index=z;const Tt=E==null?void 0:E(Xt,I,g);_.push(...Tt||[])}return[{layout:g,theme:d,coordinate:y,markState:t,key:o,clip:l,scale:b,style:m,components:v,labelTransform:rv(f.map(a))},_]}function ug(t,e,n,r,i){return Ba(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=bo(s,["x","y","width","height"]),b=["view","plot","main","content"],_=b.map((B,z)=>z),O=["a","margin","padding","inset"],w=b.map(B=>L_(Object.assign({},o.view,f),B)),M=O.map(B=>se(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,U){p$(Ne(U),w[z])});let A=0,P=0,C=g,D=y;const N=_.map(B=>{const z=M[B],{left:Y=0,top:U=0,bottom:tt=0,right:rt=0}=z;return A+=Y,P+=U,C-=Y+rt,D-=U+tt,{x:A,y:P,width:C,height:D}});e.selectAll(ya(g_)).data(_.filter(B=>Ln(w[B])),B=>b[B]).join(B=>B.append("rect").attr("className",g_).style("zIndex",-2).call(E),B=>B.call(E),B=>B.remove());const k=i$(c),R=k?{duration:k[1]}:!1;for(const[,B]of Yf(a,z=>`${z.type}-${z.position}`))B.forEach((z,Y)=>z.index=Y);const I=e.selectAll(ya(v_)).data(a,B=>`${B.type}-${B.position}-${B.index}`).join(B=>B.append("g").style("zIndex",({zIndex:z})=>z||-1).attr("className",v_).append(z=>sS(Nt({animate:R,scale:h},z),l,o,r,c)),B=>B.transition(function(z,Y,U){const{preserve:tt=!1}=z;if(tt)return;const rt=sS(Nt({animate:R,scale:h},z),l,o,r,c),{attributes:wt}=rt,[Bt]=U.childNodes;return Bt.update(wt,!1)})).transitions();n.push(...I.flat().filter(Ln));const F=e.selectAll(ya(zf)).data([s],()=>u).join(B=>B.append("rect").style("zIndex",0).style("fill","transparent").attr("className",zf).call(SS).call(ES,Array.from(c.keys())).call(AS,d),B=>B.call(ES,Array.from(c.keys())).call(z=>k?d$(z,k):SS(z)).call(AS,d)).transitions();n.push(...F.flat());for(const[B,z]of c.entries()){const{data:Y}=z,{key:U,class:tt,type:rt}=B,wt=e.select(`#${U}`),Bt=s$(B,z,t,r,i),Xt=c$(B,z,t,r),Tt=u$(B,z,t,r),Pt=f$(B,z,t,r),ce=a$(e,wt,tt,"element"),le=wt.selectAll(ya(Ra)).selectFacetAll(ce).data(Y,_e=>_e.key,_e=>_e.groupKey).join(_e=>_e.append(Bt).attr("className",Ra).attr("markType",rt).transition(function(He,Be,Qe){return Xt(He,[Qe])}),_e=>_e.call(He=>{const Be=He.parent(),Qe=K7(dn=>{const[xn,Vn]=dn.getBounds().min;return[xn,Vn]});He.transition(function(dn,xn,Vn){o$(Vn,Be,Qe);const mr=Bt(dn,xn),bi=Tt(dn,[Vn],[mr]);return bi!==null||(Vn.nodeName===mr.nodeName&&mr.nodeName!=="g"?av(Vn,mr):(Vn.parentNode.replaceChild(mr,Vn),mr.className=Ra,mr.markType=rt,mr.__data__=Vn.__data__)),bi}).attr("markType",rt).attr("className",Ra)}),_e=>_e.each(function(He,Be,Qe){Qe.__removed__=!0}).transition(function(He,Be,Qe){return Pt(He,[Qe])}).remove(),_e=>_e.append(Bt).attr("className",Ra).attr("markType",rt).transition(function(He,Be,Qe){const{__fromElements__:dn}=Qe,xn=Tt(He,dn,[Qe]);return new _r(dn,null,Qe.parentNode).transition(xn).remove(),xn}),_e=>_e.transition(function(He,Be,Qe){const xn=new _r([],Qe.__toData__,Qe.parentNode).append(Bt).attr("className",Ra).attr("markType",rt).nodes();return Tt(He,[Qe],xn)}).remove()).transitions();n.push(...le.flat())}QV(t,e,n,r,i)})}function QV(t,e,n,r,i){const[a]=Yn("labelTransform",r),{markState:o,labelTransform:s}=t,c=e.select(ya(q0)).node(),l=new Map,u=new Map,f=Array.from(o.entries()).flatMap(([v,g])=>{const{labels:y=[],key:m}=v,b=r$(v,g,t,r,i),_=e.select(`#${m}`).selectAll(ya(Ra)).nodes().filter(O=>!O.__removed__);return y.flatMap((O,w)=>{const{transform:M=[]}=O,E=bo(O,["transform"]);return _.flatMap(A=>{const P=JV(E,w,A);return P.forEach(C=>{l.set(C,b),u.set(C,O)}),P})})}),d=Ne(c).selectAll(ya(K0)).data(f,v=>v.key).join(v=>v.append(g=>l.get(g)(g)).attr("className",K0),v=>v.each(function(g,y,m){const _=l.get(g)(g);av(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;rv(y.map(a))(g,p)}s&&s(d,p)}function JV(t,e,n){const{seriesIndex:r,seriesKey:i,points:a,key:o,index:s}=n.__data__,c=n$(n);if(!r)return[Object.assign(Object.assign({},t),{key:`${o}-${e}`,bounds:c,index:s,points:a,dependentElement:n})];const l=e$(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 t$([t,e,n]){if(n)return[t,e,n];const r=[],i=[];for(let a=0;aLn(c)&&Ln(l))&&(r.push(o),i.push(s))}return[r,i]}function e$(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 n$(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 r$(t,e,n,r,i){const[a]=Yn("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:ew(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=bo(h,["formatter","transform","style","render"]),w=fo(Object.assign(Object.assign({},O),b),R=>xS(R,g,p,o)),{shape:M=c,text:E}=w,A=bo(w,["shape","text"]),P=typeof y=="string"?uo(y):y,C=Object.assign(Object.assign({},A),{text:P(E,g,p,o),datum:g}),D=Object.assign({type:`label.${M}`,render:_},A),N=a(D,d),k=_S(u,"label",M,"label");return N(v,C,k,l)}}function xS(t,e,n,r){return typeof t=="function"?t(e,n,r):typeof t!="string"?t:e[t]!==void 0?e[t]:t}function i$(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:D=g}=b;(_===void 0||_)&&(e=Math.max(e,O+w),n=Math.min(n,w)),(D===void 0||D)&&(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 a$(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 o$(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})`;Q7(t,l),e.append(t)}function s$(t,e,n,r,i){const[a]=Yn("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:ew(i),coordinate:d,theme:f});return g=>{const{shape:y=s}=p,{shape:m=y,points:b,seriesIndex:_,index:O}=g,w=bo(g,["shape","points","seriesIndex","index"]),M=Object.assign(Object.assign({},w),{index:O}),E=_?_.map(N=>o[N]):o[O],A=_||O,P=fo(p,N=>xS(N,E,A,o)),C=l[m]?l[m](P,v):a(Object.assign(Object.assign({},P),{type:MS(t,m)}),v),D=_S(f,h,m,s);return C(b,M,D,u)}}function _S(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 fg(t,e,n,r,i){var a,o;const[,s]=Yn("shape",i),[c]=Yn("animation",i),{defaultShape:l,shape:u}=n,{theme:f,coordinate:d}=r,p=`default${lo(t)}Animation`,{[p]:v}=((a=u[l])===null||a===void 0?void 0:a.props)||s(MS(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 c$(t,e,n,r){return fg("enter",t,e,n,r)}function l$(t){return t.finished.then(()=>{t.cancel()}),t}function u$(t,e,n,r){return fg("update",t,e,n,r)}function f$(t,e,n,r){return fg("exit",t,e,n,r)}function OS(t={}){if(typeof t=="string")return{type:t};const{type:e="light"}=t,n=bo(t,["type"]);return Object.assign(Object.assign({},n),{type:e})}function Ld(t){const e={event:!0,tooltip:!0,sliderFilter:!0,legendFilter:!0,scrollbarFilter:!0},{interaction:n={}}=t;return Object.entries(Nt(e,n)).reverse()}function wS(t,e){return Ba(this,void 0,void 0,function*(){const n={library:e},{data:r}=t,i=bo(t,["data"]);if(r==null)return t;const[,{data:a}]=yield pS([],{data:r},n);return Object.assign({data:a},i)})}function SS(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 d$(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 MS(t,e){const{type:n}=t;return typeof e=="string"?`${n}.${e}`:e}function ES(t,e){const n=a=>a.class!==void 0?`${a.class}`:"";t.nodes().length===0||(t.selectAll(ya(p_)).data(e,a=>a.key).join(a=>a.append("g").attr("className",p_).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(q0)).node())||t.append("g").attr("className",q0).style("zIndex",0)}function ya(...t){return t.map(e=>`.${e}`).join("")}function AS(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 Ko({style:{x:i+a,y:r+o,width:s,height:c}})})}function h$(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 p$(t,e){for(const[n,r]of Object.entries(e))t.style(n,r)}function TS(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=TS(t),{canvas:c=v$(i,a),emitter:l=new Up,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=Ne(c.document.documentElement);return c.ready.then(()=>cg(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)}),m$(c.getConfig().container)}function Ppt(t,e={},n=()=>{},r=i=>{throw i}){var i;const{width:a=640,height:o=480}=t,s=TS(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 PS(t,e={},n=!1){const{canvas:r,emitter:i}=e;r&&(y$(r),n?r.destroy():r.destroyChildren()),i.off()}function y$(t){const e=t.getRoot().querySelectorAll(`.${Z0}`);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 m$(t){return typeof t=="string"?document.getElementById(t):t}const pc=t=>t?parseInt(t):0;function b$(t){const e=getComputedStyle(t),n=t.clientWidth||pc(e.width),r=t.clientHeight||pc(e.height),i=pc(e.paddingLeft)+pc(e.paddingRight),a=pc(e.paddingTop)+pc(e.paddingBottom);return{width:n-i,height:r-a}}function Cpt(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 dg(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 hg{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 dg(this,i=>{e===i.attr("key")&&(n=i)}),n}getNodesByType(e){const n=[];return dg(this,i=>{e===i.type&&n.push(i)}),n}getNodeByType(e){let n=null;return dg(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 CS=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 L$={visibility:"visible",opacity:1,fillOpacity:1,strokeOpacity:1};function N$(t,e){var n;return(n=t.style[e])!==null&&n!==void 0?n:L$[e]}function gg(t,e,n,r){t.style[e]=n,r&&t.children.forEach(i=>gg(i,e,n,r))}function yg(t){gg(t,"visibility","hidden",!0)}function mg(t){gg(t,"visibility","visible",!0)}function I$(t,e,{key:n=e}){t.prototype[e]=function(r){return arguments.length===0?this.attr(n):this.attr(n,r)}}function j$(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 D$(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 F$(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(fl(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 B$(t,e,{ctor:n}){t.prototype[e]=function(r){const i=this.append(n);return e==="mark"&&(i.type=r),i}}function z$(t,e,{ctor:n}){t.prototype[e]=function(){return this.type=null,this.append(n)}}function Nd(t){return e=>{for(const[n,r]of Object.entries(t)){const{type:i}=r;i==="value"?I$(e,n,r):i==="array"?j$(e,n,r):i==="object"?D$(e,n,r):i==="node"?B$(e,n,r):i==="container"?z$(e,n,r):i==="mix"&&F$(e,n,r)}return e}}function jS(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,{type:"node",ctor:n}]))}const DS={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"}},G$=Object.assign(Object.assign({},DS),{tooltip:{type:"mix"},viewStyle:{type:"object"}}),W$=Object.assign(Object.assign({},DS),{labelTransform:{type:"array"}});var H$=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 Id=class extends hg{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()&&mg(e)}hide(){const e=this.getGroup();e&&e.isVisible()&&yg(e)}};Id=H$([Nd(W$)],Id);var Y$=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 bg=class extends hg{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}};bg=Y$([Nd(G$)],bg);var V$=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},$$=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 O_,this._plugins=a||[],this._container=x$(n),this._emitter=new Up,this._context={library:Object.assign(Object.assign({},o),y_),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)=>g$(this._computedOptions(),this._context,this._createResolve(a),this._createReject(o))),[n,r,i]=R$();return e.then(r).catch(i).then(()=>this._renderTrailing()),n}options(e){if(arguments.length===0)return w$(this);const{type:n}=e;return n&&(this._previousDefinedType=n),k$(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(),PS(e,this._context,!1),this.emit(Sn.AFTER_CLEAR)}destroy(){const e=this.options();this.emit(Sn.BEFORE_DESTROY),this._unbindAutoFit(),this._reset(),PS(e,this._context,!0),this._container[kS]&&_$(this._container),this.emit(Sn.AFTER_DESTROY)}forceFit(){this.options.autoFit=!0;const{width:e,height:n}=vg(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 bg{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 Id{constructor(){super({},o)}};return s=V$([Nd(jS(this._marks))],s),[o,s]}));for(const a of Object.values(this._compositions))Nd(jS(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=X$}=e,{width:r,height:i,depth:a}=vg(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}=vg(this.options(),this._container);this._plugins.push(new w_),this._plugins.forEach(r=>this._renderer.registerPlugin(r)),this._context.canvas=new qx({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 q$(t,e){class n extends t{constructor(i){super(Object.assign(Object.assign({},i),{lib:e}))}}return n}Mt.enableCSSParsing=!1;var Z$=Object.prototype.hasOwnProperty,FS=function(t,e){if(t===null||!co(t))return{};var n={};return Iv(e,function(r){Z$.call(t,r)&&(n[r]=t[r])}),n};function BS(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 jl(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 tX(){return this.eachAfter(J$)}var xg=mt(335);function eX(t,e){var n=-1,r=xg(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 nX(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 rX(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 oX(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function sX(t){for(var e=this,n=cX(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 cX(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 lX(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function uX(){return Array.from(this)}function fX(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function dX(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}var zS=mt(90228),hX=zS().mark(GS);function GS(){var t,e,n,r,i,a;return zS().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 gc(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(WS)}function pX(){return vc(this).eachBefore(yX)}function vX(t){return t.children}function gX(t){return Array.isArray(t)?t[1]:null}function yX(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function WS(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function gc(t){this.data=t,this.depth=this.height=0,this.parent=null}gc.prototype=vc.prototype=Q$({constructor:gc,count:tX,each:eX,eachAfter:rX,eachBefore:nX,find:iX,sum:aX,sort:oX,path:sX,ancestors:lX,descendants:uX,leaves:fX,links:dX,copy:pX},Symbol.iterator,GS);var mX=function(t,e){if(!dl(t))return t;for(var n=[],r=0;re.value-t.value,as:["x","y"],ignoreParentValue:!0},wX="nodeIndex",Dl="childNodeCount",SX="nodeAncestor",Og="Invalid field: it must be a string!";function MX(t,e){const{field:n,fields:r}=t;if(er(n))return n;if(jr(n))return console.warn(Og),n[0];if(console.warn(`${Og} will try to get fields instead.`),er(r))return r;if(jr(r)&&r.length)return r[0];if(e)return e;throw new TypeError(Og)}function EX(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=bX((((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 AX(t,e){e=xX({},OX,e);const n=e.as;if(!jr(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=MX(e)}catch(c){console.warn(c)}const a=(c=>K$().size(e.size).round(e.round).padding(e.padding)(vc(c).sum(l=>_X(l.children)?e.ignoreParentValue?0:l[r]-J2(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]})}),EX(a)}var TX=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({},FS(c.data,[i])),{[HS]:h,[jd]:v.data.name}),c);r&&r!==jd&&(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 YS={id:yc,encode:{x:"x",y:"y",key:HS,color:jd,value:"value"},axis:{x:!1,y:!1},style:{[wg]:yc,stroke:"#fff",lineWidth:.5,fillOpacity:"fillOpacity",[Dl]:Dl,depth:"depth"},state:{active:{zIndex:2,stroke:"#000"},inactive:{zIndex:1,stroke:"#fff"}},legend:!1,interaction:{drillDown:!0},coordinate:{type:"polar",innerRadius:.2}},VS=t=>{const{encode:e,data:n=[],legend:r}=t,i=TX(t,["encode","data","legend"]),a=Object.assign(Object.assign({},i.coordinate),{innerRadius:Math.max(Fi(i,["coordinate","innerRadius"],.2),1e-5)}),o=Object.assign(Object.assign({},YS.encode),e),{value:s}=o,c=PX({encode:o,data:n});return[Nt({},YS,Object.assign(Object.assign({type:"rect",data:c,encode:o,tooltip:{title:"path",items:[l=>({name:s,value:l[s]})]}},i),{coordinate:a}))]};VS.props={};var CX=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return Iv(t,function(n,r){vi(t)&&r==="prototype"||e.push(r)}),e},kX=CX,RX=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 LX=t=>t.querySelectorAll(".element").filter(e=>Fi(e,["style",wg])===yc);function NX(t){return Ne(t).select(`.${zf}`).node()}const IX={rootText:"root",style:{fill:"rgba(0, 0, 0, 0.85)",fontSize:12,y:1},active:{fill:"rgba(0, 0, 0, 0.5)"}};function jX(t={}){const{breadCrumb:e={},fixedColor:n=!0}=t,r=Nt({},IX,e);return i=>{const{update:a,setState:o,container:s,view:c,options:l}=i,u=NX(s),f=l.marks.find(({id:m})=>m===yc),{state:d}=f,h=new Dr;u.appendChild(h);const p=(m,b)=>RX(this,void 0,void 0,function*(){if(h.removeChildren(),m){const _=new ca({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,D)=>{const N=new ca({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 ca({name:O.replace(/\s\/\s$/,""),style:Object.assign(Object.assign({text:C,x:E,depth:D+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,D)=>{if(D===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,Fi(C,["style","depth"]))})})}o("drillDown",_=>{const{marks:O}=_,w=O.map(M=>{if(M.id!==yc&&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 D=C.path;return n&&(C[jd]=D.split(" / ")[b]),m?new RegExp(`^${m}.+`).test(D):!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(Fi(b,["style",wg])!==yc||Fi(b,["markType"])!=="rect"||!Fi(b,["style",Dl]))return;const _=Fi(b,["__data__","key"]),O=Fi(b,["style","depth"]);b.style.cursor="pointer",p(_,O)};u.addEventListener("click",v);const g=kX(Object.assign(Object.assign({},d.active),d.inactive)),y=()=>{LX(u).forEach(b=>{const _=Fi(b,["style",Dl]);if(Fi(b,["style","cursor"])!=="pointer"&&_){b.style.cursor="pointer";const w=FS(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)}}}Mt.enableCSSParsing=!1;function DX(){return{"interaction.drillDown":jX,"mark.sunburst":VS}}const $S=()=>[["cartesian"]];$S.props={};const Sg=()=>[["transpose"],["translate",.5,.5],["reflect.x"],["translate",-.5,-.5]];Sg.props={transform:!0};const FX=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)},XS=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=FX(t);return[...Sg(),...hl({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};XS.props={};const Mg=()=>[["parallel",0,1,0,1]];Mg.props={};const US=({focusX:t=0,focusY:e=0,distortionX:n=2,distortionY:r=2,visual:i=!1})=>[["fisheye",t,e,n,r,i]];US.props={transform:!0};const qS=t=>{const{startAngle:e=-Math.PI/2,endAngle:n=Math.PI*3/2,innerRadius:r=0,outerRadius:i=1}=t;return[...Mg(),...hl({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};qS.props={};const ZS=({value:t})=>e=>e.map(()=>t);ZS.props={};const KS=({value:t})=>e=>e.map(n=>n[t]);KS.props={};const QS=({value:t})=>e=>e.map(t);QS.props={};const JS=({value:t})=>()=>t;JS.props={};function Dn(t,e){if(t!==null)return{type:"column",value:t,field:e}}function Dd(t,e){const n=Dn(t,e);return Object.assign(Object.assign({},n),{inferred:!0})}function Fd(t,e){if(t!==null)return{type:"column",value:t,field:e,visual:!0}}function BX(t,e){const n=Dn(t,e);return Object.assign(Object.assign({},n),{constant:!1})}function xo(t,e){const n=[];for(const r of t)n[r]=e;return n}function cn(t,e){const n=t[e];if(!n)return[null,null];const{value:r,field:i=null}=n;return[r,i]}function Fl(t,...e){for(const n of e)if(typeof n=="string"){const[r,i]=cn(t,n);if(r!==null)return[r,i]}else return[n,null];return[null,null]}function Bl(t){return t instanceof Date?!1:typeof t=="object"}const zl=()=>(t,e)=>{const{encode:n}=e,{y1:r}=n;return r!==void 0?[t,e]:[t,Nt({},e,{encode:{y1:Dd(xo(t,0))}})]};zl.props={};const hs=()=>(t,e)=>{const{encode:n}=e,{x:r}=n;return r!==void 0?[t,e]:[t,Nt({},e,{encode:{x:Dd(xo(t,0))},scale:{x:{guide:null}}})]};hs.props={};const tM=Math.abs,Xr=Math.atan2,ps=Math.cos,zX=Math.max,Eg=Math.min,ma=Math.sin,mc=Math.sqrt,Ur=1e-12,Gl=Math.PI,Bd=Gl/2,GX=2*Gl;function WX(t){return t>1?0:t<-1?Gl:Math.acos(t)}function eM(t){return t>=1?Bd:t<=-1?-Bd:Math.asin(t)}function HX(t){return t.innerRadius}function YX(t){return t.outerRadius}function VX(t){return t.startAngle}function $X(t){return t.endAngle}function XX(t){return t&&t.padAngle}function UX(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 Gd(){var t=HX,e=YX,n=Hn(0),r=null,i=VX,a=$X,o=XX,s=null,c=Vv(l);function l(){var u,f,d=+t.apply(this,arguments),h=+e.apply(this,arguments),p=i.apply(this,arguments)-Bd,v=a.apply(this,arguments)-Bd,g=tM(v-p),y=v>p;if(s||(s=u=c()),hUr))s.moveTo(0,0);else if(g>GX-Ur)s.moveTo(h*ps(p),h*ma(p)),s.arc(0,0,h,p,v,!y),d>Ur&&(s.moveTo(d*ps(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>Ur&&(r?+r.apply(this,arguments):mc(d*d+h*h)),P=Eg(tM(h-d)/2,+n.apply(this,arguments)),C=P,D=P,N,k;if(A>Ur){var R=eM(A/d*ma(E)),I=eM(A/h*ma(E));(w-=R*2)>Ur?(R*=y?1:-1,_+=R,O-=R):(w=0,_=O=(p+v)/2),(M-=I*2)>Ur?(I*=y?1:-1,m+=I,b-=I):(M=0,m=b=(p+v)/2)}var F=h*ps(m),B=h*ma(m),z=d*ps(O),Y=d*ma(O);if(P>Ur){var U=h*ps(b),tt=h*ma(b),rt=d*ps(_),wt=d*ma(_),Bt;if(gUr?D>Ur?(N=zd(rt,wt,F,B,h,D,y),k=zd(U,tt,z,Y,h,D,y),s.moveTo(N.cx+N.x01,N.cy+N.y01),DUr)||!(w>Ur)?s.lineTo(z,Y):C>Ur?(N=zd(z,Y,U,tt,d,-C,y),k=zd(F,B,rt,wt,d,-C,y),s.lineTo(N.cx+N.x01,N.cy+N.y01),C0?C:C+N,I=k>0?D:D+k,F=Math.abs(N),B=Math.abs(k),z=R+s,Y=I+c,U=F-(s+l),tt=B-(c+u),rt=E?Xf(U,y,1/0):Xf(U,v,g),wt=E?Xf(tt,v,g):Xf(tt,y,1/0),Bt=E?z:z-(rt-U)/2,Xt=E?Y-(wt-tt)/2:Y-(wt-tt);return Ne(t.createElement("rect",{})).style("x",Bt).style("y",Xt).style("width",rt).style("height",wt).style("radius",[h,p,d,f]).call(Ee,m).node()}const{y:b,y1:_}=n,O=r.getCenter(),w=os(r,e,[b,_]),M=Gd().cornerRadius(o).padAngle(a*Math.PI/180);return Ne(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 Wl=(t,e)=>{const{colorAttribute:n,opacityAttribute:r="fill",first:i=!0,last:a=!0}=t,o=Wd(t,["colorAttribute","opacityAttribute","first","last"]),{coordinate:s,document:c}=e;return(l,u,f)=>{const{color:d,radius:h=0}=f,p=Wd(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:D=0,insetLeft:N=D,insetRight:k=D,insetBottom:R=D,insetTop:I=D,minWidth:F,maxWidth:B,minHeight:z}=o,Y=Wd(o,["stroke","radius","radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft","innerRadius","innerRadiusTopLeft","innerRadiusTopRight","innerRadiusBottomRight","innerRadiusBottomLeft","lineWidth","inset","insetLeft","insetRight","insetBottom","insetTop","minWidth","maxWidth","minHeight"]),{color:U=d,opacity:tt}=u,rt=[i?m:M,i?b:E,a?_:A,a?O:P],wt=["radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft"];Gn(s)&&wt.push(wt.shift());const Bt=Object.assign(Object.assign({radius:y},Object.fromEntries(wt.map((Xt,Tt)=>[Xt,rt[Tt]]))),{inset:D,insetLeft:N,insetRight:k,insetBottom:R,insetTop:I,minWidth:F,maxWidth:B,minHeight:z});return Ne(nM(c,l,u,s,Bt)).call(Ee,p).style("fill","transparent").style(n,U).style(IO(t),tt).style("lineWidth",C).style("stroke",g===void 0?U:g).call(Ee,Y).node()}};Wl.props={defaultEnterAnimation:"scaleInY",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const vs=(t,e)=>Wl(Object.assign({colorAttribute:"fill"},t),e);vs.props=Object.assign(Object.assign({},Wl.props),{defaultMarker:"square"});const Hd=(t,e)=>Wl(Object.assign({colorAttribute:"stroke"},t),e);Hd.props=Object.assign(Object.assign({},Wl.props),{defaultMarker:"hollowSquare"});function bc(){}function rM(t){this._context=t}rM.prototype={areaStart:bc,areaEnd:bc,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 Ag(t){return new rM(t)}var iM=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=qX}=t,r=iM(t,["adjustPoints"]),{coordinate:i,document:a}=e;return(o,s,c,l)=>{const{index:u}=s,{color:f}=c,d=iM(c,["color"]),h=l[u+1],p=n(o,h,i),v=!!Gn(i),[g,y,m,b]=v?bd(p):p,{color:_=f,opacity:O}=s,w=yo().curve(Ag)([g,y,m,b]);return Ne(a.createElement("path",{})).call(Ee,d).style("path",w).style("fill",_).style("fillOpacity",O).call(Ee,r).node()}};Tg.props={defaultMarker:"square"};function ZX(t,e,n){const[r,i,a,o]=t;if(Gn(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 aM=(t,e)=>Tg(Object.assign({adjustPoints:ZX},t),e);aM.props={defaultMarker:"square"};function Yd(t){return t==null?null:oM(t)}function oM(t){if(typeof t!="function")throw new Error;return t}var KX={depth:-1},sM={},Pg={};function QX(t){return t.id}function JX(t){return t.parentId}function Cg(){var t=QX,e=JX,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 tU(n(E,A,i))}),m=y.map(cM),b=new Set(y).add(""),_=xg(m),O;try{for(_.s();!(O=_.n()).done;){var w=O.value;b.has(w)||(b.add(w),y.push(w),m.push(cM(w)),a.push(Pg))}}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===Pg);--M)h.data=null}if(f.parent=KX,f.eachBefore(function(E){E.depth=E.parent.depth+1,--c}).eachBefore(WS),f.parent=null,c>0)throw new Error("cycle");return f}return r.id=function(i){return arguments.length?(t=Yd(i),r):t},r.parentId=function(i){return arguments.length?(e=Yd(i),r):e},r.path=function(i){return arguments.length?(n=Yd(i),r):n},r}function tU(t){t="".concat(t);var e=t.length;return kg(t,e-1)&&!kg(t,e-2)&&(t=t.slice(0,-1)),t[0]==="/"?t:"/".concat(t)}function cM(t){var e=t.length;if(e<2)return"";for(;--e>1&&!kg(t,e););return t.slice(0,e)}function kg(t,e){if(t[e]==="/"){for(var n=0;e>0&&t[--e]==="\\";)++n;if(!(n&1))return!0}return!1}function Hl(t){return Math.abs(t)>10?String(t):t.toString().padStart(2,"0")}function eU(t){const e=t.getFullYear(),n=Hl(t.getMonth()+1),r=Hl(t.getDate()),i=`${e}-${n}-${r}`,a=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return a||o||s?`${i} ${Hl(a)}:${Hl(o)}:${Hl(s)}`:i}const Vd=(t={})=>{const{channel:e="x"}=t;return(n,r)=>{const{encode:i}=r,{tooltip:a}=r;if(La(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=>cn(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?eU(u[l]):u[l]).join(", ")};return[n,Nt({},r,{tooltip:{title:c}})]}};Vd.props={};const $d=t=>{const{channel:e}=t;return(n,r)=>{const{encode:i,tooltip:a}=r;if(La(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}})]}};$d.props={};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(t,e)=>{const{encode:n}=e,{key:r}=n,i=nU(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:Dn(o)}})]};lM.props={};function uM(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 ri(t={}){return[...uM(t),{name:"title",scale:"identity"}]}function Rpt(){return[{type:MaybeTitle,channel:"color"},{type:MaybeTooltip,channel:["x","y","z"]}]}function _o(){return[{type:Vd,channel:"color"},{type:$d,channel:["x","y"]}]}function xc(){return[{type:Vd,channel:"x"},{type:$d,channel:["y"]}]}function rU(){return[{type:Vd,channel:"color"},{type:$d,channel:["position"]}]}function _c(t={}){return uM(t)}function gr(){return[{type:lM}]}function Or(){return[]}function Rg(t,e){return t.getBandWidth(t.invert(e))}function gs(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?Rg(o,r[g]):0,m=h?Rg(s,i[g]):0,_=p&&a?(()=>(Rg(c,a[g])/2+ +a[g])*y)():0,[O,w]=v;return[O+u*y+_,w+f*m]}}function Xd(t){return parseFloat(t)/100}function Lg(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"?Xd(u)*o:+u,h=typeof f=="string"?Xd(f)*s:+f;return[[d,h]]});return[t,c]}function ba(t){return typeof t=="function"?t:e=>e[t]}function Ng(t,e){return Array.from(t,ba(e))}function Ig(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=Ng(a,n),c=Ng(a,r),l=Ng(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 iU(t,e){return Array.isArray(t)?typeof e=="function"?Cg().path(e)(t):Cg()(t):vc(t)}function fM(t,e){return t.getBandWidth(t.invert(e))}const dM={rect:vs,hollow:Hd,funnel:Tg,pyramid:aM},hM=()=>(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=fM(l,i[v]),y=u?fM(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]};hM.props={defaultShape:"rect",defaultLabelShape:"label",composite:!1,shape:dM,channels:[...ri({shapes:Object.keys(dM)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"},{name:"size"}],preInference:[...gr(),{type:zl},{type:hs}],postInference:[...Or(),...xc()],interaction:{shareTooltip:!0}};const pM={rect:vs,hollow:Hd},vM=()=>(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]};vM.props={defaultShape:"rect",defaultLabelShape:"label",composite:!1,shape:pM,channels:[...ri({shapes:Object.keys(pM)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...gr(),{type:zl}],postInference:[...Or(),...xc()],interaction:{shareTooltip:!0}};var gM=jg(Cl);function yM(t){this._curve=t}yM.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 jg(t){function e(n){return new yM(t(n))}return e._curve=t,e}function Yl(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(jg(n)):e()._curve},t}function aU(){return Yl(yo().curve(gM))}var mM=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;Ne(t).maybeAppend("line",()=>a.createElement("path",{})).style("d",e).call(Ee,r),Ne(t).maybeAppend("line1",()=>a.createElement("path",{})).style("d",n).call(Ee,i)});function sU(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 Gi=(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=mM(t,["curve","gradient","gradientColor","defined","connect"]),{coordinate:c,document:l}=e;return(u,f,d)=>{const{color:h,lineWidth:p}=d,v=mM(d,["color","lineWidth"]),{color:g=h,size:y=p,seriesColor:m,seriesX:b,seriesY:_}=f,O=jO(c,f),w=Gn(c),M=r&&m?NO(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=I=>aU().angle((F,B)=>ac(fr(I[B],R))).radius((F,B)=>Qn(I[B],R)).defined(([F,B])=>a(F)&&a(B)).curve(n)(I)}else A=yo().x(R=>R[0]).y(R=>R[1]).defined(([R,I])=>a(R)&&a(I)).curve(n);const[P,C]=sU(u,a),D=se(E,"connect"),N=!!C.length;if(!N||o&&!Object.keys(D).length)return Ne(l.createElement("path",{})).style("d",A(P)||[]).call(Ee,E).node();if(N&&!o)return Ne(l.createElement("path",{})).style("d",A(u)).call(Ee,E).node();const k=R=>R.map(A).join(",");return Ne(new oU).style("style1",Object.assign(Object.assign({},E),D)).style("style2",E).style("d1",k(C)).style("d2",A(u)).node()}};Gi.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const bM=(t,e)=>{const{coordinate:n}=e;return(...r)=>{const i=Nn(n)?Ag:Cl;return Gi(Object.assign({curve:i},t),e)(...r)}};bM.props=Object.assign(Object.assign({},Gi.props),{defaultMarker:"line"});function Dg(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 Fg(t,e){this._context=t,this._k=(1-e)/6}Fg.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:Dg(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:Dg(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 Lpt=function t(e){function n(r){return new Fg(r,e)}return n.tension=function(r){return t(+r)},n}(0);function Bg(t,e){this._context=t,this._k=(1-e)/6}Bg.prototype={areaStart:bc,areaEnd:bc,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:Dg(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 Npt=function t(e){function n(r){return new Bg(r,e)}return n.tension=function(r){return t(+r)},n}(0);function xM(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Ur){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>Ur){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 _M(t,e){this._context=t,this._alpha=e}_M.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:xM(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 Ipt=function t(e){function n(r){return e?new _M(r,e):new Fg(r,0)}return n.alpha=function(r){return t(+r)},n}(.5);function OM(t,e){this._context=t,this._alpha=e}OM.prototype={areaStart:bc,areaEnd:bc,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:xM(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 wM=function t(e){function n(r){return e?new OM(r,e):new Bg(r,0)}return n.alpha=function(r){return t(+r)},n}(.5);function SM(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(SM(a)+SM(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function EM(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function zg(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 Ud(t){this._context=t}Ud.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:zg(this,this._t0,EM(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,zg(this,EM(this,n=MM(this,t,e)),n);break;default:zg(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 AM(t){this._context=new TM(t)}(AM.prototype=Object.create(Ud.prototype)).point=function(t,e){Ud.prototype.point.call(this,e,t)};function TM(t){this._context=t}TM.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 PM(t){return new Ud(t)}function CM(t){return new AM(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{const n=cU(t,[]),{coordinate:r}=e;return(...i)=>{const a=Nn(r)?wM:Gn(r)?CM:PM;return Gi(Object.assign({curve:a},n),e)(...i)}};kM.props=Object.assign(Object.assign({},Gi.props),{defaultMarker:"smooth"});function qd(t,e){this._context=t,this._t=e}qd.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 RM(t){return new qd(t,.5)}function LM(t){return new qd(t,0)}function NM(t){return new qd(t,1)}const IM=(t,e)=>Gi(Object.assign({curve:NM},t),e);IM.props=Object.assign(Object.assign({},Gi.props),{defaultMarker:"hv"});const jM=(t,e)=>Gi(Object.assign({curve:LM},t),e);jM.props=Object.assign(Object.assign({},Gi.props),{defaultMarker:"vh"});const DM=(t,e)=>Gi(Object.assign({curve:RM},t),e);DM.props=Object.assign(Object.assign({},Gi.props),{defaultMarker:"hvh"});var lU=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=lU(a,["color"]),u=zi();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:Fd(xo(t,void 0))}})]};BM.props={};const Gg=()=>(t,e)=>{const{encode:n}=e,{series:r,color:i}=n;if(r!==void 0||i===void 0)return[t,e];const[a,o]=cn(n,"color");return[t,Nt({},e,{encode:{series:Dn(a,o)}})]};Gg.props={};const zM={line:bM,smooth:kM,hv:IM,vh:jM,hvh:DM,trail:FM},fU=(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]},dU=(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)=>(vl(r)?dU:fU)(t,e,n,r);GM.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:zM,channels:[...ri({shapes:Object.keys(zM)}),{name:"x"},{name:"y"},{name:"position",independent:!0},{name:"size"},{name:"series",scale:"band"}],preInference:[...gr(),{type:BM},{type:Gg}],postInference:[...Or(),...xc(),...rU()],interaction:{shareTooltip:!0,seriesTooltip:!0,crosshairs:!0}};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);i[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]];Wg.style=["fill"];const WM=Wg.bind(void 0);WM.style=["stroke","lineWidth"];const Zd=(t,e,n)=>[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]];Zd.style=["fill"];const HM=Zd.bind(void 0);HM.style=["fill"];const YM=Zd.bind(void 0);YM.style=["stroke","lineWidth"];const Hg=(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"]]};Hg.style=["fill"];const VM=Hg.bind(void 0);VM.style=["stroke","lineWidth"];const Yg=(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"]]};Yg.style=["fill"];const $M=Yg.bind(void 0);$M.style=["stroke","lineWidth"];const Vg=(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"]]};Vg.style=["fill"];const XM=Vg.bind(void 0);XM.style=["stroke","lineWidth"];const $g=(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"]]};$g.style=["fill"];const UM=$g.bind(void 0);UM.style=["stroke","lineWidth"];const Xg=(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"]]};Xg.style=["fill"];const qM=Xg.bind(void 0);qM.style=["stroke","lineWidth"];const ZM=(t,e,n)=>[["M",t,e+n],["L",t,e-n]];ZM.style=["stroke","lineWidth"];const KM=(t,e,n)=>[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]];KM.style=["stroke","lineWidth"];const QM=(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]];QM.style=["stroke","lineWidth"];const JM=(t,e,n)=>[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]];JM.style=["stroke","lineWidth"];const tE=(t,e,n)=>[["M",t-n,e],["L",t+n,e]];tE.style=["stroke","lineWidth"];const Ug=(t,e,n)=>[["M",t-n,e],["L",t+n,e]];Ug.style=["stroke","lineWidth"];const eE=Ug.bind(void 0);eE.style=["stroke","lineWidth"];const nE=(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]];nE.style=["stroke","lineWidth"];const rE=(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]];rE.style=["stroke","lineWidth"];const iE=(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]];iE.style=["stroke","lineWidth"];const aE=(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]];aE.style=["stroke","lineWidth"];const oE=(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]];oE.style=["stroke","lineWidth"];const Oc=new Map([["bowtie",Xg],["cross",KM],["dash",eE],["diamond",Hg],["dot",Ug],["hexagon",$g],["hollowBowtie",qM],["hollowDiamond",VM],["hollowHexagon",UM],["hollowPoint",WM],["hollowSquare",YM],["hollowTriangle",$M],["hollowTriangleDown",XM],["hv",rE],["hvh",aE],["hyphen",tE],["line",ZM],["plus",JM],["point",Wg],["rect",HM],["smooth",nE],["square",Zd],["tick",QM],["triangleDown",Vg],["triangle",Yg],["vh",iE],["vhv",oE]]);function pU(t,e){var{d:n,fill:r,strokeWidth:i,path:a,stroke:o,lineWidth:s,color:c}=e,l=hU(e,["d","fill","strokeWidth","path","stroke","lineWidth","color"]);const u=Oc.get(t)||Oc.get("point");return(...f)=>new ni({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 jpt(t,e){Oc.set(t,e)}function Dpt(t){Oc.delete(t)}var vU=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=vU(t,["colorAttribute","symbol","mode"]),o=Oc.get(r)||Oc.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]=DO(l),O=gU(i,l,u,s)||a.r||f.r;return Ne(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(IO(t),y).style(n,v).call(Ee,a).node()}};an.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const sE=(t,e)=>an(Object.assign({colorAttribute:"stroke",symbol:"point"},t),e);sE.props=Object.assign({defaultMarker:"hollowPoint"},an.props);const cE=(t,e)=>an(Object.assign({colorAttribute:"stroke",symbol:"diamond"},t),e);cE.props=Object.assign({defaultMarker:"hollowDiamond"},an.props);const lE=(t,e)=>an(Object.assign({colorAttribute:"stroke",symbol:"hexagon"},t),e);lE.props=Object.assign({defaultMarker:"hollowHexagon"},an.props);const uE=(t,e)=>an(Object.assign({colorAttribute:"stroke",symbol:"square"},t),e);uE.props=Object.assign({defaultMarker:"hollowSquare"},an.props);const fE=(t,e)=>an(Object.assign({colorAttribute:"stroke",symbol:"triangle-down"},t),e);fE.props=Object.assign({defaultMarker:"hollowTriangleDown"},an.props);const dE=(t,e)=>an(Object.assign({colorAttribute:"stroke",symbol:"triangle"},t),e);dE.props=Object.assign({defaultMarker:"hollowTriangle"},an.props);const hE=(t,e)=>an(Object.assign({colorAttribute:"stroke",symbol:"bowtie"},t),e);hE.props=Object.assign({defaultMarker:"hollowBowtie"},an.props);const pE=(t,e)=>an(Object.assign({colorAttribute:"fill",symbol:"point"},t),e);pE.props=Object.assign({defaultMarker:"point"},an.props);const vE=(t,e)=>an(Object.assign({colorAttribute:"stroke",symbol:"plus"},t),e);vE.props=Object.assign({defaultMarker:"plus"},an.props);const gE=(t,e)=>an(Object.assign({colorAttribute:"fill",symbol:"diamond"},t),e);gE.props=Object.assign({defaultMarker:"diamond"},an.props);const yE=(t,e)=>an(Object.assign({colorAttribute:"fill",symbol:"square"},t),e);yE.props=Object.assign({defaultMarker:"square"},an.props);const mE=(t,e)=>an(Object.assign({colorAttribute:"fill",symbol:"triangle"},t),e);mE.props=Object.assign({defaultMarker:"triangle"},an.props);const bE=(t,e)=>an(Object.assign({colorAttribute:"fill",symbol:"hexagon"},t),e);bE.props=Object.assign({defaultMarker:"hexagon"},an.props);const xE=(t,e)=>an(Object.assign({colorAttribute:"stroke",symbol:"cross"},t),e);xE.props=Object.assign({defaultMarker:"cross"},an.props);const _E=(t,e)=>an(Object.assign({colorAttribute:"fill",symbol:"bowtie"},t),e);_E.props=Object.assign({defaultMarker:"bowtie"},an.props);const OE=(t,e)=>an(Object.assign({colorAttribute:"stroke",symbol:"hyphen"},t),e);OE.props=Object.assign({defaultMarker:"hyphen"},an.props);const wE=(t,e)=>an(Object.assign({colorAttribute:"stroke",symbol:"line"},t),e);wE.props=Object.assign({defaultMarker:"line"},an.props);const SE=(t,e)=>an(Object.assign({colorAttribute:"stroke",symbol:"tick"},t),e);SE.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 Kd=()=>(t,e)=>{const{encode:n}=e,{y:r}=n;return r!==void 0?[t,e]:[t,Nt({},e,{encode:{y:Dd(xo(t,0))},scale:{y:{guide:null}}})]};Kd.props={};const EE=()=>(t,e)=>{const{encode:n}=e,{size:r}=n;return r!==void 0?[t,e]:[t,Nt({},e,{encode:{size:Fd(xo(t,3))}})]};EE.props={};const AE={hollow:sE,hollowDiamond:cE,hollowHexagon:lE,hollowSquare:uE,hollowTriangleDown:fE,hollowTriangle:dE,hollowBowtie:hE,point:pE,plus:vE,diamond:gE,square:yE,triangle:mE,hexagon:bE,cross:xE,bowtie:_E,hyphen:OE,line:wE,tick:SE,triangleDown:ME},TE=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=gs(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]};TE.props={defaultShape:"hollow",defaultLabelShape:"label",composite:!1,shape:AE,channels:[...ri({shapes:Object.keys(AE)}),{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:hs},{type:Kd}],postInference:[...Or(),{type:EE},..._o()]};const PE=(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 Ne(new YO).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()}};PE.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var qg=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=qg(e,["class","x","y"]),o=se(a,"marker"),{size:s=24}=o,c=()=>yU(s/2),l=Ne(t).maybeAppend("marker",()=>new kn({})).call(d=>d.node().update(Object.assign({symbol:c},o))).node(),[u,f]=mU(l);Ne(t).maybeAppend("text","text").style("x",u).style("y",f).call(Ee,a)}),CE=(t,e)=>{const n=qg(t,[]);return(r,i,a)=>{const{color:o}=a,s=qg(a,["color"]),{color:c=o,text:l=""}=i,u={text:String(l),stroke:c,fill:c},[[f,d]]=r;return Ne(new bU).call(Ee,s).style("x",f).style("y",d).call(Ee,u).call(Ee,n).node()}};CE.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const Qd=()=>(t,e)=>{const{data:n}=e;if(!Array.isArray(n)||n.some(Bl))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:Dn(i),y:Dn(a)}})]};Qd.props={};var kE=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=kE(e,["data","style"]),{x:a,y:o}=r,s=kE(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:Dn([c]),y:Dn([l])},scale:{x:{type:"identity",independent:!0,guide:null},y:{type:"identity",independent:!0,guide:null}},style:s})]};Jd.props={};const RE={text:PE,badge:CE},LE=t=>{const{cartesian:e=!1}=t;return e?Lg:(n,r,i,a)=>{const{x:o,y:s}=i,c=gs(r,i,t),l=Array.from(n,u=>{const f=[+o[u],+s[u]];return[a.map(c(f,u))]});return[n,l]}};LE.props={defaultShape:"text",defaultLabelShape:"label",composite:!1,shape:RE,channels:[...ri({shapes:Object.keys(RE)}),{name:"x",required:!0},{name:"y",required:!0},{name:"text",scale:"identity"},{name:"fontSize"},{name:"rotate"}],preInference:[...gr(),{type:Qd},{type:Jd}],postInference:[...Or(),..._o()]};const Zg=()=>(t,e)=>[t,Nt({scale:{x:{padding:0},y:{padding:0}}},e)];Zg.props={};const NE={cell:vs,hollow:Hd},IE=()=>(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]};IE.props={defaultShape:"cell",defaultLabelShape:"label",shape:NE,composite:!1,channels:[...ri({shapes:Object.keys(NE)}),{name:"x",required:!0,scale:"band"},{name:"y",required:!0,scale:"band"}],preInference:[...gr(),{type:hs},{type:Kd},{type:Zg}],postInference:[...Or(),..._o()]};function Kg(t,e,n){var r=null,i=Hn(!0),a=null,o=Cl,s=null,c=Vv(l);t=typeof t=="function"?t:t===void 0?WO:Hn(+t),e=typeof e=="function"?e:Hn(e===void 0?0:+e),n=typeof n=="function"?n:n===void 0?HO:Hn(+n);function l(f){var d,h,p,v=(f=BO(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 yo().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(t=typeof f=="function"?f:Hn(+f),r=null,l):t},l.x0=function(f){return arguments.length?(t=typeof f=="function"?f:Hn(+f),l):t},l.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Hn(+f),l):r},l.y=function(f){return arguments.length?(e=typeof f=="function"?f:Hn(+f),n=null,l):e},l.y0=function(f){return arguments.length?(e=typeof f=="function"?f:Hn(+f),l):e},l.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Hn(+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:Hn(!!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 xU(){var t=Kg().curve(gM),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 Yl(n())},delete t.lineX0,t.lineEndAngle=function(){return Yl(r())},delete t.lineX1,t.lineInnerRadius=function(){return Yl(i())},delete t.lineY0,t.lineOuterRadius=function(){return Yl(a())},delete t.lineY1,t.curve=function(o){return arguments.length?e(jg(o)):e()._curve},t}var _U=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 jE=oc(t=>{const{areaPath:e,connectPath:n,areaStyle:r,connectStyle:i}=t.attributes,a=t.ownerDocument;Ne(t).maybeAppend("connect-path",()=>a.createElement("path",{})).style("d",n).call(Ee,i),Ne(t).maybeAppend("area-path",()=>a.createElement("path",{})).style("d",e).call(Ee,r)}),Qi=(t,e)=>{const{curve:n,gradient:r=!1,defined:i=l=>!Number.isNaN(l)&&l!==void 0&&l!==null,connect:a=!1}=t,o=_U(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=Gn(s),m=jO(s,u),b=r&&p?NO(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]=OU(l,i),M=se(_,"connect"),E=!!w.length,A=P=>Ne(c.createElement("path",{})).style("d",P||"").call(Ee,_).node();if(Nn(s)){const P=C=>{const D=s.getCenter(),N=C.slice(0,C.length/2),k=C.slice(C.length/2);return xU().angle((R,I)=>ac(fr(N[I],D))).outerRadius((R,I)=>Qn(N[I],D)).innerRadius((R,I)=>Qn(k[I],D)).defined((R,I)=>[...N[I],...k[I]].every(i)).curve(n)(k)};return!E||a&&!Object.keys(M).length?A(P(O)):E&&!a?A(P(l)):Ne(new jE).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 D=C.slice(0,C.length/2),N=C.slice(C.length/2);return y?Kg().y((k,R)=>D[R][1]).x1((k,R)=>D[R][0]).x0((k,R)=>N[R][0]).defined((k,R)=>[...D[R],...N[R]].every(i)).curve(n)(D):Kg().x((k,R)=>D[R][0]).y1((k,R)=>D[R][1]).y0((k,R)=>N[R][1]).defined((k,R)=>[...D[R],...N[R]].every(i)).curve(n)(D)};return!E||a&&!Object.keys(M).length?A(P(O)):E&&!a?A(P(l)):Ne(new jE).style("areaStyle",_).style("connectStyle",Object.assign(Object.assign({},M),o)).style("areaPath",P(l)).style("connectPath",w.map(P).join("")).node()}}};Qi.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const DE=(t,e)=>{const{coordinate:n}=e;return(...r)=>{const i=Nn(n)?Ag:Cl;return Qi(Object.assign({curve:i},t),e)(...r)}};DE.props=Object.assign(Object.assign({},Qi.props),{defaultMarker:"square"});var wU=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=wU(t,[]),{coordinate:r}=e;return(...i)=>{const a=Nn(r)?wM:Gn(r)?CM:PM;return Qi(Object.assign({curve:a},n),e)(...i)}};FE.props=Object.assign(Object.assign({},Qi.props),{defaultMarker:"smooth"});const BE=(t,e)=>(...n)=>Qi(Object.assign({curve:RM},t),e)(...n);BE.props=Object.assign(Object.assign({},Qi.props),{defaultMarker:"hvh"});const zE=(t,e)=>(...n)=>Qi(Object.assign({curve:LM},t),e)(...n);zE.props=Object.assign(Object.assign({},Qi.props),{defaultMarker:"vh"});const GE=(t,e)=>(...n)=>Qi(Object.assign({curve:NM},t),e)(...n);GE.props=Object.assign(Object.assign({},Qi.props),{defaultMarker:"hv"});const WE={area:DE,smooth:FE,hvh:BE,vh:zE,hv:GE},HE=()=>(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]=cn(n,"y");return[t,Nt({},e,{encode:{y1:Dn([...i])}})]};YE.props={};const VE=()=>(t,e)=>{const{encode:n}=e,{x1:r}=n;if(r)return[t,e];const[i]=cn(n,"x");return[t,Nt({},e,{encode:{x1:Dn([...i])}})]};VE.props={};var $E=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=$E(t,["arrow","arrowSize"]),{document:a}=e;return(o,s,c)=>{const{defaultColor:l}=c,u=$E(c,["defaultColor"]),{color:f=l,transform:d}=s,[h,p]=o,v=zi();if(v.moveTo(...h),v.lineTo(...p),n){const[g,y]=xW(h,p,{arrowSize:r});v.moveTo(...p),v.lineTo(...g),v.moveTo(...p),v.lineTo(...y)}return Ne(a.createElement("path",{})).call(Ee,u).style("d",v.toString()).style("stroke",f).style("transform",d).call(Ee,i).node()}};Qg.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const XE=(t,e)=>{const{arrow:n=!1}=t;return(...r)=>Qg(Object.assign(Object.assign({},t),{arrow:n}),e)(...r)};XE.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var UE=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=UE(t,[]),{coordinate:r,document:i}=e;return(a,o,s)=>{const{color:c}=s,l=UE(s,["color"]),{color:u=c,transform:f}=o,[d,h]=a,p=zi();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=LO(d,h),g=Qn(d,h)/2;Pl(p,d,h,v,g)}return Ne(i.createElement("path",{})).call(Ee,l).style("d",p.toString()).style("stroke",u).style("transform",f).call(Ee,n).node()}};qE.props={defaultMarker:"smooth",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,[]),{document:r}=e;return(i,a,o)=>{const{color:s}=o,c=ZE(o,["color"]),{color:l=s,transform:u}=a,[f,d]=i,h=zi();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]),Ne(r.createElement("path",{})).call(Ee,c).style("d",h.toString()).style("stroke",l).style("transform",u).call(Ee,n).node()}};KE.props={defaultMarker:"smooth",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{cornerRatio:n=1/3}=t,r=QE(t,["cornerRatio"]),{coordinate:i,document:a}=e;return(o,s,c)=>{const{defaultColor:l}=c,u=QE(c,["defaultColor"]),{color:f=l,transform:d}=s,[h,p]=o,v=SU(h,p,i,n);return Ne(a.createElement("path",{})).call(Ee,u).style("d",v.toString()).style("stroke",f).style("transform",d).call(Ee,r).node()}};JE.props={defaultMarker:"vhv",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const tA={link:XE,arc:qE,smooth:KE,vhv:JE},Jg=t=>(e,n,r,i)=>{const{x:a,y:o,x1:s=a,y1:c=o}=r,l=gs(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]};Jg.props={defaultShape:"link",defaultLabelShape:"label",composite:!1,shape:tA,channels:[...ri({shapes:Object.keys(tA)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...gr(),{type:YE},{type:VE}],postInference:[...Or(),..._o()]};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}=o,c=MU(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"?Xd(h)*y:h,p=typeof p=="string"?Xd(p)*m:p;const b=v-Number(h)/2,_=g-Number(p)/2;return Ne(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()}};eA.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const nA={image:eA},rA=t=>{const{cartesian:e}=t;return e?Lg:(n,r,i,a)=>{const{x:o,y:s}=i,c=gs(r,i,t),l=Array.from(n,u=>{const f=[+o[u],+s[u]];return[a.map(c(f,u))]});return[n,l]}};rA.props={defaultShape:"image",defaultLabelShape:"label",composite:!1,shape:nA,channels:[...ri({shapes:Object.keys(nA)}),{name:"x",required:!0},{name:"y",required:!0},{name:"src",scale:"identity"},{name:"size"}],preInference:[...gr(),{type:Qd},{type:Jd}],postInference:[...Or(),..._o()]};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);iQn(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?Pl(n,l,o,r,c):n.lineTo(o[0],o[1])}),n.closePath(),n}return bW(n,t)}const iA=(t,e)=>{const{coordinate:n,document:r}=e;return(i,a,o)=>{const{color:s}=o,c=EU(o,["color"]),{color:l=s,transform:u}=a,f=AU(i,n);return Ne(r.createElement("path",{})).call(Ee,c).style("d",f.toString()).style("stroke",l).style("fill",l).style("transform",u).call(Ee,t).node()}};iA.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var aA=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=aA(t,[]),{coordinate:r,document:i}=e;return(a,o,s)=>{const{color:c}=s,l=aA(s,["color"]),{color:u=c,transform:f}=o,d=TU(a,r);return Ne(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()}};oA.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const sA={polygon:iA,ribbon:oA},cA=()=>(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=PU(o,["color","fill","stroke"]),h=CU(i,n);return Ne(r.createElement("path",{})).call(Ee,d).style("d",h.toString()).style("stroke",f).style("fill",s||u).style("transform",c).call(Ee,t).node()}};lA.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};var kU=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=kU(o,["color","fill","stroke"]),p=RU(i,n,l);return Ne(r.createElement("path",{})).call(Ee,h).style("d",p.toString()).style("stroke",d).style("fill",s||f).style("transform",c).call(Ee,t).node()}};uA.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const fA={box:lA,violin:uA},dA=()=>(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]};dA.props={defaultShape:"box",defaultLabelShape:"label",composite:!1,shape:fA,channels:[...ri({shapes:Object.keys(fA)}),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"}],preInference:[...gr(),{type:hs}],postInference:[...Or(),...xc()],interaction:{shareTooltip:!0}};const hA={vector:Qg},pA=()=>(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]};pA.props={defaultShape:"vector",defaultLabelShape:"label",composite:!1,shape:hA,channels:[...ri({shapes:Object.keys(hA)}),{name:"x",required:!0},{name:"y",required:!0},{name:"rotate",required:!0,scale:"identity"},{name:"size",required:!0}],preInference:[...gr()],postInference:[...Or(),..._o()]};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);ir[0]).y(r=>r[1])(t);const n=e.getCenter();return Gd()({startAngle:0,endAngle:Math.PI*2,outerRadius:Qn(t[0],n),innerRadius:Qn(t[1],n)})}function IU(t,e){if(!Nn(t))return e;const[n,r]=t.getCenter();return`translate(${n}, ${r}) ${e||""}`}const ty=(t,e)=>{const{arrow:n,arrowSize:r=4}=t,i=vA(t,["arrow","arrowSize"]),{coordinate:a,document:o}=e;return(s,c,l)=>{const{color:u,lineWidth:f}=l,d=vA(l,["color","lineWidth"]),{color:h=u,size:p=f}=c,v=n?LU(o,r,Object.assign({fill:i.stroke||h,stroke:i.stroke||h},se(i,"arrow"))):null,g=NU(s,a),y=IU(a,c.transform);return Ne(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()}};ty.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const gA=()=>(t,e)=>{const{data:n}=e;return!Array.isArray(n)||n.some(Bl)?[t,e]:[t,Nt({},e,{encode:{x:Dn(n)}})]};gA.props={};const yA={line:ty},mA=t=>(e,n,r,i)=>{const{x:a}=r,o=gs(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]};mA.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:yA,channels:[..._c({shapes:Object.keys(yA)}),{name:"x",required:!0}],preInference:[...gr(),{type:gA}],postInference:[...Or()]};const bA=()=>(t,e)=>{const{data:n}=e;return!Array.isArray(n)||n.some(Bl)?[t,e]:[t,Nt({},e,{encode:{y:Dn(n)}})]};bA.props={};const xA={line:ty},_A=t=>(e,n,r,i)=>{const{y:a}=r,o=gs(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]};_A.props={defaultShape:"line",defaultLabelShape:"label",composite:!1,shape:xA,channels:[..._c({shapes:Object.keys(xA)}),{name:"y",required:!0}],preInference:[...gr(),{type:bA}],postInference:[...Or()]};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);ie[0]).y(e=>e[1])(t)}function FU(t,e,n,r,i=0){const[[a,o],[s,c]]=e;if(Gn(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 wA=(t,e)=>{const{offset:n=0,offset1:r=n,offset2:i=n,connectLength1:a,endMarker:o=!0}=t,s=OA(t,["offset","offset1","offset2","connectLength1","endMarker"]),{coordinate:c}=e;return(l,u,f)=>{const{color:d,connectLength1:h}=f,p=OA(f,["color","connectLength1"]),{color:v,transform:g}=u,y=FU(c,l,r,i,a!=null?a:h),m=se(Object.assign(Object.assign({},s),f),"endMarker");return Ne(new ni).call(Ee,p).style("path",DU(y)).style("stroke",v||d).style("transform",g).style("markerEnd",o?new kn({className:"marker",style:Object.assign(Object.assign({},m),{symbol:jU})}):null).call(Ee,s).node()}};wA.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const SA={connector:wA},MA=(...t)=>Jg(...t);MA.props={defaultShape:"connector",defaultLabelShape:"label",composite:!1,shape:SA,channels:[..._c({shapes:Object.keys(SA)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...gr()],postInference:[...Or()]};function EA(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 ey(t={}){const{extendX:e=!1,extendY:n=!1}=t;return(r,i,a,o)=>{const s=EA("x",e,a,i.x),c=EA("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 AA={range:vs},TA=()=>ey();TA.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:AA,channels:[..._c({shapes:Object.keys(AA)}),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...gr()],postInference:[...Or()]};const PA=()=>(t,e)=>{const{data:n}=e;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(Bl))){const r=(i,a)=>Array.isArray(i[0])?i.map(o=>o[a]):[i[a]];return[t,Nt({},e,{encode:{x:Dn(r(n,0)),x1:Dn(r(n,1))}})]}return[t,e]};PA.props={};const CA={range:vs},kA=()=>ey({extendY:!0});kA.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:CA,channels:[..._c({shapes:Object.keys(CA)}),{name:"x",required:!0}],preInference:[...gr(),{type:PA}],postInference:[...Or()]};const RA=()=>(t,e)=>{const{data:n}=e;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(Bl))){const r=(i,a)=>Array.isArray(i[0])?i.map(o=>o[a]):[i[a]];return[t,Nt({},e,{encode:{y:Dn(r(n,0)),y1:Dn(r(n,1))}})]}return[t,e]};RA.props={};const LA={range:vs},NA=()=>ey({extendX:!0});NA.props={defaultShape:"range",defaultLabelShape:"label",composite:!1,shape:LA,channels:[..._c({shapes:Object.keys(LA)}),{name:"y",required:!0}],preInference:[...gr(),{type:RA}],postInference:[...Or()]};var IA=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=IA(t,["arrow","colorAttribute"]),{coordinate:a,document:o}=e;return(s,c,l)=>{const{color:u,stroke:f}=l,d=IA(l,["color","stroke"]),{d:h,color:p=u}=c,[v,g]=a.getSize();return Ne(o.createElement("path",{})).call(Ee,d).style("d",typeof h=="function"?h({width:v,height:g}):h).style(r,p).call(Ee,i).node()}};ny.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const jA=(t,e)=>ny(Object.assign({colorAttribute:"fill"},t),e);jA.props={defaultMarker:"hvh",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const DA=(t,e)=>ny(Object.assign({fill:"none",colorAttribute:"stroke"},t),e);DA.props={defaultMarker:"hvh",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const FA={path:jA,hollow:DA},BA=t=>(e,n,r,i)=>[e,e.map(()=>[[0,0]])];BA.props={defaultShape:"path",defaultLabelShape:"label",shape:FA,composite:!1,channels:[...ri({shapes:Object.keys(FA)}),{name:"d",scale:"identity"}],preInference:[...gr()],postInference:[...Or()]};var BU=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=BU(t,["render"]);return i=>{const[[a,o]]=i;return n(Object.assign(Object.assign({},r),{x:a,y:o}),e)}};zA.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const GA=()=>(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])))})]};GA.props={};const zU={shape:zA},WA=t=>{const{cartesian:e}=t;return e?Lg:(n,r,i,a)=>{const{x:o,y:s}=i,c=gs(r,i,t),l=Array.from(n,u=>{const f=[+o[u],+s[u]];return[a.map(c(f,u))]});return[n,l]}};WA.props={defaultShape:"shape",defaultLabelShape:"label",composite:!1,shape:zU,channels:[{name:"x",required:!0},{name:"y",required:!0}],preInference:[...gr(),{type:Qd},{type:Jd},{type:GA}]};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{document:n}=e;return(r,i,a)=>{const{transform:o}=i,{color:s}=a,c=GU(a,["color"]),{color:l=s}=i,[u,...f]=r,d=zi();return d.moveTo(...u),f.forEach(([h,p])=>{d.lineTo(h,p)}),d.closePath(),Ne(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()}};HA.props={defaultMarker:"square",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const YA={density:HA},VA=()=>(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]};VA.props={defaultShape:"density",defaultLabelShape:"label",composite:!1,shape:YA,channels:[...ri({shapes:Object.keys(YA)}),{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:zl},{type:hs}],postInference:[...Or(),...xc()],interaction:{shareTooltip:!0}};const Fpt=_v(3);function WU(t,e=(...r)=>`${r[0]}`,n=16){const r=_v(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 HU(t){return typeof t=="string"?t.split(" ").map(e=>{const[n,r]=e.split(":");return[+n,r]}):t}function th(t,e,n){const r=t?t():document.createElement("canvas");return r.width=e,r.height=n,r}const YU=WU((t,e,n)=>{const r=th(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 VU(t,e){const r=th(e,256,1).getContext("2d"),i=r.createLinearGradient(0,0,256,1);return HU(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 $U(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=YU(f,1-o,a),g=(d-e)/(n-e);t.globalAlpha=Math.max(g,.001),t.drawImage(v,h,p)}return t}function XU(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 $A=(t,e)=>{const{gradient:n,opacity:r,maxOpacity:i,minOpacity:a,blur:o,useGradientOpacity:s}=t,c=qU(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=Mi(d,M=>M[2]),_=Mn(d,M=>M[2]),w=g&&y?UU(g,y,b,_,m,ZU({gradient:n,opacity:r,minOpacity:a,maxOpacity:i,blur:o,useGradientOpacity:s},M=>M===void 0),u):{canvas:null};return Ne(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()}};$A.props={defaultMarker:"point",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const XA={heatmap:$A},UA=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]]};UA.props={defaultShape:"heatmap",defaultLabelShape:"label",composite:!1,shape:XA,channels:[...ri({shapes:Object.keys(XA)}),{name:"x",required:!0},{name:"y",required:!0},{name:"color",scale:"identity",required:!0},{name:"size"}],preInference:[...gr(),{type:hs},{type:Kd}],postInference:[...Or(),..._o()]};const qA=()=>["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"];qA.props={};const ZA=()=>["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"];ZA.props={};const KA=t=>new Vr(t);KA.props={};const eh=Symbol("defaultUnknown");function QA(t,e,n){for(let r=0;r`${e}`:typeof t=="object"?e=>JSON.stringify(e):e=>e}class nh extends wl{getDefaultOptions(){return{domain:[],range:[],unknown:eh}}constructor(e){super(e)}map(e){return this.domainIndexMap.size===0&&QA(this.domainIndexMap,this.getDomain(),this.domainKey),JA({value:this.domainKey(e),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(e){return this.rangeIndexMap.size===0&&QA(this.rangeIndexMap,this.getRange(),this.rangeKey),JA({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=tT(n),this.rangeKey=tT(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 nh(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 eT=t=>new nh(t);eT.props={};function nT({map:t,initKey:e},n){const r=e(n);return t.has(r)?t.get(r):n}function KU({map:t,initKey:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function QU({map:t,initKey:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function JU(t){return typeof t=="object"?t.valueOf():t}class rT extends Map{constructor(e){if(super(),this.map=new Map,this.initKey=JU,e!==null)for(const[n,r]of e)this.set(n,r)}get(e){return super.get(nT({map:this.map,initKey:this.initKey},e))}has(e){return super.has(nT({map:this.map,initKey:this.initKey},e))}set(e,n){return super.set(KU({map:this.map,initKey:this.initKey},e),n)}delete(e){return super.delete(QU({map:this.map,initKey:this.initKey},e))}}function tq(t){const e=Math.min(...t);return t.map(n=>n/e)}function eq(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 nq(t){return Math.round(t*1e12)/1e12}function rq(t){const{domain:e,range:n,paddingOuter:r,paddingInner:i,flex:a,round:o,align:s}=t,c=e.length,l=eq(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=tq(l),m=y.reduce((D,N)=>D+N),b=g/m,_=new rT(e.map((D,N)=>{const k=y[N]*b;return[D,o?Math.floor(k):k]})),O=new rT(e.map((D,N)=>{const R=y[N]*b+v;return[D,o?Math.floor(R):R]})),w=Array.from(O.values()).reduce((D,N)=>D+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 D=0;Dd+b*u);return{valueStep:u,valueBandWidth:f,adjustedRange:y}}class Oo extends nh{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:eh,flex:[]}}constructor(e){super(e)}clone(){return new Oo(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}=iq({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 iT=t=>new Oo(t);iT.props={};class rh extends wl{getDefaultOptions(){return{domain:[0,1],range:[0,1],tickCount:5,unknown:void 0,tickMethod:Dv}}map(e){return ld(e)?e:this.options.unknown}invert(e){return this.map(e)}clone(){return new rh(this.options)}getTicks(){const{domain:e,tickCount:n,tickMethod:r}=this.options,[i,a]=e;return!Js(i)||!Js(a)?[]:r(i,a,n)}}const aT=t=>new rh(t);aT.props={};class ry extends Oo{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:eh,paddingInner:1,paddingOuter:0}}constructor(e){super(e)}getPaddingInner(){return 1}clone(){return new ry(this.options)}update(e){super.update(e)}getPaddingOuter(){return this.options.padding}}const oT=t=>new ry(t);oT.props={};var sT=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,wo="\\d\\d?",So="\\d\\d",aq="\\d{3}",oq="\\d{4}",Vl="[^\\s]+",cT=/\[([^]*?)\]/gm;function lT(t,e){for(var n=[],r=0,i=t.length;r-1?i:null}};function ys(t){for(var e=[],n=1;n3?0:(t-t%10!==10?1:0)*t%10]}},ih=ys({},hT),lq=function(t){return ih=ys(ih,t)},pT=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},gi=function(t,e){for(e===void 0&&(e=2),t=String(t);t.length0?"-":"+")+gi(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+gi(Math.floor(Math.abs(e)/60),2)+":"+gi(Math.abs(e)%60,2)}},vT=function(t){return+t-1},gT=[null,wo],yT=[null,Vl],mT=["isPm",Vl,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],bT=["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}],fq={D:["day",wo],DD:["day",So],Do:["day",wo+Vl,function(t){return parseInt(t,10)}],M:["month",wo,vT],MM:["month",So,vT],YY:["year",So,function(t){var e=new Date,n=+(""+e.getFullYear()).substr(0,2);return+(""+(+t>68?n-1:n)+t)}],h:["hour",wo,void 0,"isPm"],hh:["hour",So,void 0,"isPm"],H:["hour",wo],HH:["hour",So],m:["minute",wo],mm:["minute",So],s:["second",wo],ss:["second",So],YYYY:["year",oq],S:["millisecond","\\d",function(t){return+t*100}],SS:["millisecond",So,function(t){return+t*10}],SSS:["millisecond",aq],d:gT,dd:gT,ddd:yT,dddd:yT,MMM:["month",Vl,uT("monthNamesShort")],MMMM:["month",Vl,uT("monthNames")],a:mT,A:mT,ZZ:bT,Z:bT},ah={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"},dq=function(t){return ys(ah,t)},xT=function(t,e,n){if(e===void 0&&(e=ah.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=ah[e]||e;var r=[];e=e.replace(cT,function(a,o){return r.push(o),"@@@"});var i=ys(ys({},ih),n);return e=e.replace(sT,function(a){return uq[a](t,i)}),e.replace(/@@@/g,function(){return r.shift()})};function hq(t,e,n){if(n===void 0&&(n={}),typeof e!="string")throw new Error("Invalid format in fecha parse");if(e=ah[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(cT,function(_,O){return o.push(pT(O)),"@@@"}),c={},l={};s=pT(s).replace(sT,function(_){var O=fq[_],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=ys(ys({},ih),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 Bpt={format:xT,parse:hq,defaultI18n:hT,setGlobalDateI18n:lq,setGlobalDateMasks:dq},zpt=null;const $l=1e3,Xl=$l*60,Ul=Xl*60,ms=Ul*24,ql=ms*7,_T=ms*30,OT=ms*365;function qr(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;gt,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),vq=qr($l,t=>{t.setMilliseconds(0)},(t,e=1)=>{t.setTime(+t+$l*e)},t=>t.getSeconds()),gq=qr(Xl,t=>{t.setSeconds(0,0)},(t,e=1)=>{t.setTime(+t+Xl*e)},t=>t.getMinutes()),yq=qr(Ul,t=>{t.setMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+Ul*e)},t=>t.getHours()),mq=qr(ms,t=>{t.setHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+ms*e)},t=>t.getDate()-1),wT=qr(_T,t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e=1)=>{const n=t.getMonth();t.setMonth(n+e)},t=>t.getMonth()),bq=qr(ql,t=>{t.setDate(t.getDate()-t.getDay()%7),t.setHours(0,0,0,0)},(t,e=1)=>{t.setDate(t.getDate()+7*e)},t=>{const e=wT.floor(t),n=new Date(+t);return Math.floor((+n-+e)/ql)}),xq=qr(OT,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()),ST={millisecond:pq,second:vq,minute:gq,hour:yq,day:mq,week:bq,month:wT,year:xq},_q=qr(1,t=>t,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),Oq=qr($l,t=>{t.setUTCMilliseconds(0)},(t,e=1)=>{t.setTime(+t+$l*e)},t=>t.getUTCSeconds()),wq=qr(Xl,t=>{t.setUTCSeconds(0,0)},(t,e=1)=>{t.setTime(+t+Xl*e)},t=>t.getUTCMinutes()),Sq=qr(Ul,t=>{t.setUTCMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+Ul*e)},t=>t.getUTCHours()),Mq=qr(ms,t=>{t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+ms*e)},t=>t.getUTCDate()-1),MT=qr(_T,t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{const n=t.getUTCMonth();t.setUTCMonth(n+e)},t=>t.getUTCMonth()),Eq=qr(ql,t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7)%7),t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+ql*e)},t=>{const e=MT.floor(t),n=new Date(+t);return Math.floor((+n-+e)/ql)}),Aq=qr(OT,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()),ET={millisecond:_q,second:Oq,minute:wq,hour:Sq,day:Mq,week:Eq,month:MT,year:Aq};function Tq(t){const e=t?ET:ST,{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 AT(t,e,n,r,i){const a=+t,o=+e,{tickIntervals:s,year:c,millisecond:l}=Tq(i),u=([g,y])=>g.duration*y,f=r?(o-a)/r:n||5,d=r||(o-a)/f,h=s.length,p=Cv(s,d,0,h,u);let v;if(p===h){const g=Z2(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]=AT(o,s,n,r,i),u=c.range(o,new Date(+s+1),l,!0);return a?u.reverse():u},Cq=(t,e,n,r,i)=>{const a=t>e,o=a?e:t,s=a?t:e,[c,l]=AT(o,s,n,r,i),u=[c.floor(o,l),c.ceil(s,l)];return a?u.reverse():u};function kq(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 Cq}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?ET:ST,i=n?Rq:is;return a=>xT(i(a),e||kq(a,r))}clone(){return new iy(this.options)}}const TT=t=>new iy(t);TT.props={};const PT=t=>e=>-t(-e),ay=(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?PT(r):r},oy=(t,e)=>{const n=t===Math.E?Math.exp:r=>wr(t,r);return e?PT(n):n},Lq=(t,e,n,r=10)=>{const i=t<0,a=oy(r,i),o=ay(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=ay(r,i),o=oy(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 sy extends fd{getDefaultOptions(){return{domain:[1,10],range:[0,1],base:10,interpolate:Sl,tickMethod:Lq,tickCount:5}}chooseNice(){return Nq}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[ay(e,r),oy(e,r)]}clone(){return new sy(this.options)}}const CT=t=>new sy(t);CT.props={};const Iq=t=>e=>e<0?-wr(-e,t):wr(e,t),jq=t=>e=>e<0?-wr(-e,1/t):wr(e,1/t),Dq=t=>t<0?-Math.sqrt(-t):Math.sqrt(t);class oh extends fd{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,exponent:2,interpolate:Sl,tickMethod:as,tickCount:5}}constructor(e){super(e)}chooseTransforms(){const{exponent:e}=this.options;if(e===1)return[is,is];const n=e===.5?Dq:Iq(e),r=jq(e);return[n,r]}clone(){return new oh(this.options)}}const kT=t=>new oh(t);kT.props={};class cy extends oh{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:Sl,tickMethod:as,tickCount:5,exponent:.5}}constructor(e){super(e)}update(e){super.update(e)}clone(){return new cy(this.options)}}const RT=t=>new cy(t);RT.props={};const LT=t=>new nc(t);LT.props={};const NT=t=>new yd(t);NT.props={};const IT=t=>new gd(t);IT.props={};const Fq=t=>e=>{const n=t(e);return Js(n)?Math.round(n):n};function Bq(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?Fq(o):o;this.output=tc(l,c,i,r)},n.prototype.invert=void 0}}var zq=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},ly;function Gq(t){return[t(0),t(1)]}const Wq=t=>{const[e,n]=t;return tc(ec(0,1),cd(e,n))};let uy=ly=class extends Vr{getDefaultOptions(){return{domain:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:is,tickMethod:as,tickCount:5}}constructor(e){super(e)}clone(){return new ly(this.options)}};uy=ly=zq([Bq(Gq,Wq)],uy);const jT=t=>new uy(t);jT.props={};const DT=t=>new Al(t);DT.props={};function fy({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 Hq=fy({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}),dy=t=>Nt({},Hq,t);dy.props={};const FT=t=>Nt({},dy(),{category10:"category10",category20:"category20"},t);FT.props={};const Yq=fy({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}),BT=t=>Nt({},Yq,{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),zT=t=>Object.assign({},BT(),{category10:"category10",category20:"category20"},t);zT.props={};const Vq=fy({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}),GT=t=>Nt({},Vq,{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);GT.props={};const WT=t=>(...e)=>{const n=po(Object.assign({},{crossPadding:50},t))(...e);return sO(n,t),n};WT.props=Object.assign(Object.assign({},po.props),{defaultPosition:"bottom"});function Ypt(){}const HT=t=>(...e)=>{const n=po(Object.assign({},{crossPadding:10},t))(...e);return sO(n,t),n};HT.props=Object.assign(Object.assign({},po.props),{defaultPosition:"left"});var hy=function(){},$q=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)(Uq(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 Wn(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=e2(c,[{transform:"translate(0, 0)"},{transform:"translate(".concat(-f,", ").concat(-d,")")}],i);return Zs(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,lr.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,lr.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(Wi.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)?gl(r):ho(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),D=C[0],N=C[1],k=(0,S.CR)(M[2],2),R=k[0],I=k[1],F=w.textAlign,B=a.querySelector("text");B&&(B.style.textAlign=F),r.setLocalPosition(A,P),a.setLocalPosition(D,N),i.setLocalPosition(R,I)},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(Wi.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(Wi.controller,"g");if(Zf(l.node(),c),!!c){var u=en(this.attributes,"button"),f=en(this.attributes,"pageNum"),d=(0,S.CR)(ja(u),2),h=d[0],p=d[1],v=h.size,g=(0,S._T)(h,["size"]),y=!l.select(Wi.prevBtnGroup.class).node(),m=l.maybeAppendByClassName(Wi.prevBtnGroup,"g").styles(p);this.prevBtnGroup=m.node();var b=m.maybeAppendByClassName(Wi.prevBtn,"path"),_=l.maybeAppendByClassName(Wi.nextBtnGroup,"g").styles(p);this.nextBtnGroup=_.node();var O=_.maybeAppendByClassName(Wi.nextBtn,"path");[b,O].forEach(function(M){M.styles((0,S.pi)((0,S.pi)({},g),{transformOrigin:"center"})),mv(M.node(),v,!0)});var w=l.maybeAppendByClassName(Wi.pageInfoGroup,"g");this.pageInfoGroup=w.node(),w.maybeAppendByClassName(Wi.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=S_(function(){return n.render(n.attributes,n)},50);this.playWindow.addEventListener(Re.INSERTED,r),this.playWindow.addEventListener(Re.REMOVED,r)},e}(Rr),Ei=ji({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 Zq(t){var e=t.querySelector(Ei.marker.class);return e?e.style:{}}var Kq=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,{span:[1,1],marker:function(){return new al({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)(Br(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)(Br(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=Zq(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(Ei.markerGroup,"g").style("zIndex",0),pi(!!i,this.markerGroup,function(){var o=r.markerGroup.node(),s=o.getElementsByClassName(Ei.marker.name)[0],c=i();s?c.nodeName===s.nodeName?(xB(s,c),Ue(s).styles(a)):(s.remove(),Ue(c).attr("className",Ei.marker.name).styles(a),o.appendChild(c)):(Ue(c).attr("className",Ei.marker.name).styles(a),o.appendChild(c)),r.markerGroup.node().scale(1/r.markerGroup.node().getScale()[0]),mv(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(Ei.labelGroup,"g").style("zIndex",0),this.labelGroup.maybeAppendByClassName(Ei.label,function(){return rs(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(Ei.valueGroup,"g").style("zIndex",0),pi(this.showValue,this.valueGroup,function(){r.valueGroup.maybeAppendByClassName(Ei.value,function(){return rs(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(Ei.backgroundGroup,"g").style("zIndex",-1),this.background.maybeAppendByClassName(Ei.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}),wv(this.labelGroup.select(Ei.label.class).node(),Math.ceil(r)),this.showValue&&(this.valueGroup.styles({x:l,y:u}),wv(this.valueGroup.select(Ei.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}(Rr),bs=ji({page:"item-page",navigator:"navigator",item:"item"},"items"),YT=function(t,e,n){return n===void 0&&(n=!0),t?e(t):n},Qq=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:hy,mouseenter:hy,mouseleave:hy})||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,Di(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,D=(0,S.CR)([0,0],2),N=D[0],k=D[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,D,N,k=E.getBBox(),R=k.width,I=k.height,F=w===0?0:o,B=w+F+R;if(B<=h&&YT(_,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(bs.item.class).forEach(function(r){n.appendChild(r)}),n.querySelectorAll(bs.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(bs.item.class).data(this.renderData,function(c){return c.id}).join(function(c){return c.append(function(l){var u=l.style;return new Kq({style:u})}).attr("className",bs.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(Xq(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 Dr({className:bs.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),$q(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=Na({orientation:r},i),o=this;return n.selectAll(bs.navigator.class).data(["nav"]).join(function(s){return s.append(function(){return new qq({style:a})}).attr("className",bs.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 Rn(n,{detail:r});this.dispatchEvent(i)},e}(Rr),Jq=function(t){(0,S.ZT)(e,t);function e(n){return t.call(this,n,DG)||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)(ja(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 N2({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)(ja(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 Qq({style:d})}).attr("className",Lr.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 Wn(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):GB(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}(Rr);function tZ(t){if(dl(t)){var e=t;return e[e.length-1]}}var eZ=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 rZ(t,e){const{scales:n,library:r,markState:i}=e,[a,o]=nZ(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)||tZ(d.split(".")),m=typeof c=="function"?c(h):c;return()=>pU(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 iZ(t){const e=ua(t,"opacity");if(e){const{range:n}=e.getOptions();return(r,i)=>n[i]}}function aZ(t,e){const n=ua(t,"size");return n instanceof rh?n.map(NaN)*2:e}function oZ(t,e){const{labelFormatter:n=d=>`${d}`}=t,{scales:r,theme:i}=e,a=i.legendCategory.itemMarkerSize,o=aZ(r,a),s={itemMarker:rZ(Object.assign(Object.assign({},t),{itemMarkerSize:o}),e),itemMarkerSize:o,itemMarkerOpacity:iZ(r)},c=typeof n=="string"?uo(n):n,l=ua(r,"color"),u=Vz(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 sZ(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}=aO(t,e,n);return{width:i,height:a}}const py=t=>{const{labelFormatter:e,layout:n,order:r,orientation:i,position:a,size:o,title:s,cols:c,itemMarker:l}=t,u=eZ(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}=sZ(h,t,py),m=rO(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:dd(s)}),oZ(t,d)),{legendCategory:_={}}=p,O=hd(Object.assign({},_,b,u)),w=new Wz({style:Object.assign(Object.assign({x:v.x,y:v.y,width:v.width,height:v.height},m),{subOptions:O})});return w.appendChild(new Jq({className:"legend-category",style:O})),w}};py.props={defaultPosition:"top",defaultOrder:1,defaultSize:40,defaultCrossPadding:[12,12],defaultPadding:[12,12]};const VT=t=>()=>new Dr;VT.props={};var cZ=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({},$T(0,f.max[1]+a,n,o)),{fontSize:12,textBaseline:"top",text:i}),l))})}}),XT=t=>({value:e,theme:n})=>{const{x:r,y:i,width:a,height:o}=e.bbox;return new lZ({style:Nt({},n.title,Object.assign({x:r,y:i,width:a,height:o},t))})};XT.props={defaultPosition:"top",defaultOrder:2,defaultSize:36,defaultCrossPadding:[20,20],defaultPadding:[12,12]};var vy=function(t){if(typeof t!="object"||t===null)return t;var e;if(jr(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,lr.Z)(i.map(u),s,o)]});return l})}function Zl(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 sh(t,e){if(e===void 0&&(e=!1),t.length<=2)return Zl(t);for(var n=[],r=t.length,i=0;i=0;i-=1){var a=t[i],o=Zl(a),s=void 0;if(i===0)s=yy(o,e,n);else{var c=t[i-1],l=Zl(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 yZ(t,e,n){for(var r=[],i=t.length-1;i>=0;i-=1){var a=t[i],o=sh(a),s=void 0;if(i===0)s=yy(o,e,n);else{var c=t[i-1],l=sh(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 mZ=function(t,e){if(jr(t)){for(var n,r=1/0,i=0;ir&&(n=a,r=o)}return n}};function UT(t){return t.length===0?[0,0]:[sf(mZ(t,function(e){return sf(e)||0})),cf(bZ(t,function(e){return cf(e)||0}))]}function qT(t){for(var e=gy(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 xZ=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=gy(n);return(0,xr.Z)(r[0])?[r]:r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.attributes.isStack?qT(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=pZ(u,{type:"line",x:d,y:h}),v=[];if(s){var g=this.baseline;a?v=o?yZ(p,l,g):gZ(p,l,g):v=vZ(p,o,l,g)}return{lines:p.map(function(y,m){return(0,S.pi)({stroke:n.getColor(m),path:o?sh(y):Zl(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=qT(l));var u=this.createScales(l),f=u.x,d=u.y,h=(0,S.CR)(UT(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){RF(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 fZ({className:a,style:o}):new uZ({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 jr(r)?r[n%r.length]:vi(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)(UT(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 Oo({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),ZT=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(vO,"handle")),la(hO,"handleIcon")),la(pO,"handleLabel")))||this;return r.range=[0,1],r.onDragStart=function(i){return function(a){a.stopPropagation(),r.target=i,r.prevPos=r.getOrientVal(vd(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(vd(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 Rn("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)(Br(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){qi(this,r[a],n)})},e.prototype.updateHandlesPosition=function(n){this.attributes.showHandle&&(this.startHandle&&qi(this.startHandle,this.getHandleStyle("start"),n),this.endHandle&&qi(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");pi(i==="horizontal",a,function(o){var s=r.sparklineStyle;o.maybeAppendByClassName(fa.sparkline,function(){return new xZ({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 gO({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 pd(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 pd(g,r)}),2),h=d[0],p=d[1];if(this.attributes.type==="value")return[0,(0,lr.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 dv({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,D=P.y,N=P.width,k=P.height,R=f+d;if(o==="horizontal"){var I=R+m/2;if(n==="start"){var F=C-R-m;O=F>0?-I:I}else{var B=E-C-N-R>m;O=B?I:-I}}else{var z=R,Y=b+R;n==="start"?w=D-d>b?-Y:z:w=A-(D+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 Rn(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 _Z(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function wc(t){let e,n,r;t.length!==2?(e=dr,n=(s,c)=>dr(t(s),c),r=(s,c)=>t(s)-c):(e=t===dr||t===_Z?t:OZ,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 OZ(){return 0}function my(t){return t===null?NaN:+t}function*wZ(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 KT=wc(dr),SZ=KT.right,MZ=KT.left,EZ=wc(my).center;var AZ=SZ;function TZ(t,e){return Array.from(e,n=>t[n])}function za(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=Kl(o[i],o[a]);if(s)return s}})):(n=t.map(n),r.sort((i,a)=>Kl(n[i],n[a]))),TZ(t,r)}return t.sort(QT(n))}function QT(t=dr){if(t===dr)return Kl;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 Kl(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(te?1:0)}function PZ(t,e,n){return Math.min(n,Math.max(e,t))}function Ql(t){return!!t.getBandWidth}function Sc(t,e,n){if(!Ql(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=MZ(s,e),l=PZ(c+a,0,i.length-1);return i[l]}function Mo(t,e,n){if(!e)return t.getOptions().domain;if(!Ql(t)){const c=za(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 ch(t,e,n,r,i,a){const{x:o,y:s}=i,c=(h,p)=>{const[v,g]=a.invert(h);return[Sc(o,v,p),Sc(s,g,p)]},l=c([t,e],!0),u=c([n,r],!1),f=Mo(o,[l[0],u[0]]),d=Mo(s,[l[1],u[1]]);return[f,d]}function lh(t,e){const[n,r]=t,i=a=>a.getStep?a.getStep():0;return[e.map(n),e.map(r)+i(e)]}function CZ(t,e,n){const{x:r,y:i}=e,[a,o]=t,s=lh(a,r),c=lh(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 kZ=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=kZ(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"?uo(n):n,b=e==="horizontal",_=Gn(d)&&b,{trackSize:O=g.trackSize}=i,[w,M]=RZ(h,a,O);return new ZT({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=Sc(l,P,!0);return A(C)},sparklineData:NZ(t,s)},i),o))})}};function LZ(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 NZ(t,e){const{markState:n}=e;return jr(t.sparklineData)?t.sparklineData:LZ(n,["y","series"])}Jl.props={defaultPosition:"bottom",defaultSize:24,defaultOrder:1,defaultCrossPadding:[12,12],defaultPadding:[12,12]};const JT=t=>Jl(Object.assign(Object.assign({},t),{orientation:"horizontal"}));JT.props=Object.assign(Object.assign({},Jl.props),{defaultPosition:"bottom"});const tP=t=>Jl(Object.assign(Object.assign({},t),{orientation:"vertical"}));tP.props=Object.assign(Object.assign({},Jl.props),{defaultPosition:"left"});var IZ=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 Rn("scroll",o)),r.dispatchEvent(new Rn("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(vd(i)),p=(h-d)/r.trackLength;r.setValue(p,!0)}},r.onThumbMouseenter=function(i){r.dispatchEvent(new Rn("thumbMouseenter",{detail:i.detail}))},r.onTrackMouseenter=function(i){r.dispatchEvent(new Rn("trackMouseenter",{detail:i.detail}))},r.onThumbMouseleave=function(i){r.dispatchEvent(new Rn("thumbMouseleave",{detail:i.detail}))},r.onTrackMouseleave=function(i){r.dispatchEvent(new Rn("trackMouseleave",{detail:i.detail}))},r}return Object.defineProperty(e.prototype,"padding",{get:function(){var n=this.attributes.padding;return Br(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,lr.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 ZT({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,lr.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),jZ=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=jZ(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 IZ({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}))})}};tu.props={defaultPosition:"bottom",defaultSize:24,defaultOrder:1,defaultCrossPadding:[12,12],defaultPadding:[12,12]};const eP=t=>tu(Object.assign(Object.assign({},t),{orientation:"horizontal"}));eP.props=Object.assign(Object.assign({},tu.props),{defaultPosition:"bottom"});const nP=t=>tu(Object.assign(Object.assign({},t),{orientation:"vertical"}));nP.props=Object.assign(Object.assign({},tu.props),{defaultPosition:"left"});const by=(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]=Gn(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))}},DZ=(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]=Gn(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))}},rP=(t,e)=>{const{coordinate:r}=e;return Xx.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=os(r,m,[b,_]),{innerRadius:w,outerRadius:M}=O,E=Gd().cornerRadius(h).padAngle(p*Math.PI/180),A=new ni({}),P=r.getCenter(),C=k=>{A.attr({d:E(k),transform:`translate(${P[0]}, ${P[1]})`});const R=O0(A);return A.style.transform="",R},D=[{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(D,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]=Gn(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)}},FZ=(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]=Gn(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))}},iP=(t,e)=>{Xx.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 by(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=Gd().cornerRadius(f).padAngle(d*Math.PI/180),_=os(r,g,[y,m]),{startAngle:O,endAngle:w}=_,M=new ni({}),E=C=>{M.attr({d:b(C),transform:`translate(${c[0]}, ${c[1]})`});const D=O0(M);return M.style.transform="",D},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}};iP.props={};const aP=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))};aP.props={};const oP=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))};oP.props={};const BZ=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))},zZ=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))},sP=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))};sP.props={};function Mc(t,e){const n={};for(const r of e){const i=t.style[r];i&&(n[r]=i)}return n}const Ec=["fill","stroke","fillOpacity","strokeOpacity","opacity","lineWidth"];function xy(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 GZ(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 WZ(t,e){const[n,r,i,a]=xy(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",av(u,n)},u.style.transform="none",d}function XZ(t,e,n,r){t.style.visibility="hidden";const i=r(t,e.length);return e.map((a,o)=>{const s=new ni({style:Object.assign({path:i[o]},Mc(t,Ec))});return _y(a,s,a,n)})}function UZ(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 ni({style:{path:i[d],fill:e.style.fill}});return _y(f,f,h,n)}),l]}const fP=t=>(e,n,r)=>{const i=HZ(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 _y(c,c,l,a)}if(o===1&&s>1){const[c]=e;return XZ(c,n,a,i)}if(o>1&&s===1){const[c]=n;return UZ(e,c,a,i)}return null};fP.props={};const dP=(t,e)=>(n,r,i)=>{const[a]=n,{height:o,width:s}=a.getBoundingClientRect(),c=new ni({style:{path:`M0,0L${s},0L${s},${o}L0,${o}Z`}});return a.appendChild(c),a.style.clipPath=c,by(t,e)([c],r,i)};dP.props={};const hP=(t,e)=>(n,r,i)=>{const[a]=n,{height:o,width:s}=a.getBoundingClientRect(),c=new ni({style:{path:`M0,0L${s},0L${s},${o}L0,${o}Z`}});return a.appendChild(c),a.style.clipPath=c,rP(t,e)([c],r,i)};hP.props={};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!e.__removed__)}function pP(t,e){return Oy(t,e).flatMap(({container:n})=>Eo(n))}function Oy(t,e){return e.filter(n=>n!==t&&n.options.parentKey===t.options.key)}function Ga(t){return Ne(t).select(`.${zf}`).node()}function vP(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 wy(t,e){const{offsetX:n,offsetY:r}=e,i=vP(t),{min:[a,o],max:[s,c]}=i,l=ns,u=rc;return l||u?null:[n-a,r-o]}function Sy(t,e){const{offsetX:n,offsetY:r}=e,[i,a,o,s]=qZ(t);return[Math.min(o,Math.max(i,n))-i,Math.min(s,Math.max(a,r))-a]}function qZ(t){const e=t.getRenderBounds(),{min:[n,r],max:[i,a]}=e;return[n,r,i,a]}function gP(t){return e=>e.__data__.color}function My(t){return e=>e.__data__.x}function xs(t){const e=Array.isArray(t)?t:[t],n=new Map(e.flatMap(r=>Array.from(r.markState.keys()).map(a=>[uh(r.key,a.key),a.data])));return r=>{const{index:i,markKey:a,viewKey:o}=r.__data__;return n.get(uh(o,a))[i]}}function Wa(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=N$(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 ZZ(t){return t===void 0?!0:typeof t!="object"?!1:Object.keys(t).length===0}function uh(t,e){return`${t},${e}`}function Ac(t,e){const r=(Array.isArray(t)?t:[t]).flatMap(a=>a.marks.map(o=>[uh(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=ZZ(f[o])?s:f[o];for(const[h,p]of Object.entries(d)){const v=c[h],g=(y,m,b,_)=>{const O=uh(_.__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 nu(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 yP(t){var{link:e=!1,valueof:n=(u,f)=>u,coordinate:r}=t,i=eu(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=za(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=eu(O,["fill"]),E=new ni({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 mP(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]=Gn(n)?bd(i):i,s=n.getCenter(),c=fr(a,s),l=fr(o,s),u=Bi(c),f=RO(c,l),d=u+f/2,h=e*Math.cos(d),p=e*Math.sin(d);return r(`translate(${h}, ${p})`)}return Gn(n)?r(`translate(${e}, 0)`):r(`translate(0, ${-e})`)}function bP(t){var{document:e,background:n,scale:r,coordinate:i,valueof:a}=t,o=eu(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(!Ql(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(!Ql(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(D=>i.map(D)),{__data__:A}=y,{y:P,y1:C}=A;return nM(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=eu(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(Ql)};return[y=>{y.background&&y.background.remove();const m=fo(o,D=>a(D,y)),{fill:b="#CCD6EC",fillOpacity:_=.3,zIndex:O=-2,padding:w=.001,strokeWidth:M=0}=m,E=eu(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.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 Ao(t,e){const r=t.getRootNode().defaultView.getContextService().getDomElement();r!=null&&r.style&&(t.cursor=r.style.cursor,r.style.cursor=e)}function KZ(t){Ao(t,t.cursor)}function Ey(t,e,n){return t.find(r=>Object.entries(e).every(([i,a])=>n(r)[i]===a))}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);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=nu(d,n),[g,y]=yP(Object.assign({elements:d,valueof:v,link:i,coordinate:c},se(u.active,"link"))),[m,b,_]=bP(Object.assign({document:t.ownerDocument,scale:s,coordinate:c,background:a,valueof:v},se(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 mP(d[z],B,c)}})}),{setState:w,removeState:M,hasState:E}=Wa(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),U=p.get(Y),tt=new Set(U);for(const rt of d)tt.has(rt)?E(rt,"active")||w(rt,"active"):(w(rt,"inactive"),y(rt)),rt!==B&&b(rt);m(B),g(U),z&&l.emit("element:highlight",{nativeEvent:z,data:{data:n(B),group:U.map(n)}})},C=()=>{A&&clearTimeout(A),A=setTimeout(()=>{D(),A=null},o)},D=(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():D())},k=()=>{D()};t.addEventListener("pointerover",P),t.addEventListener("pointerout",N),t.addEventListener("pointerleave",k);const R=F=>{const{nativeEvent:B}=F;B||D(!1)},I=F=>{const{nativeEvent:B}=F;if(B)return;const{data:z}=F.data,Y=Ey(d,z,n);Y&&P({target:Y,nativeEvent:!1})};return l.on("element:highlight",I),l.on("element:unhighlight",R),()=>{t.removeEventListener("pointerover",P),t.removeEventListener("pointerout",N),t.removeEventListener("pointerleave",k),l.off("element:highlight",I),l.off("element:unhighlight",R);for(const F of d)b(F),y(F)}}function fh(t){var{delay:e,createGroup:n,background:r=!1,link:i=!1}=t,a=QZ(t,["delay","createGroup","background","link"]);return(o,s,c)=>{const{container:l,view:u,options:f}=o,{scale:d,coordinate:h}=u,p=Ga(l);return JZ(p,Object.assign({elements:Eo,datum:xs(u),groupKey:n?n(u):void 0,coordinate:h,scale:d,state:Ac(f,[["active",r?{}:{lineWidth:"1",stroke:"#000"}],"inactive"]),background:r,link:i,delay:e,emitter:c},a))}}fh.props={reapplyWhenUpdate:!0};function xP(t){return fh(Object.assign(Object.assign({},t),{createGroup:My}))}xP.props={reapplyWhenUpdate:!0};function _P(t){return fh(Object.assign(Object.assign({},t),{createGroup:gP}))}_P.props={reapplyWhenUpdate:!0};var tK=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=nu(d,n),[g,y]=yP(Object.assign({link:i,elements:d,valueof:v,coordinate:o},se(u.selected,"link"))),[m,b]=bP(Object.assign({document:t.ownerDocument,background:s,coordinate:o,scale:c,valueof:v},se(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),[,I]=k;return mP(d[I],R,o)}})}),{setState:O,removeState:w,hasState:M}=Wa(_,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,I=!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),!I)return;l.emit("element:select",Object.assign(Object.assign({},k),{nativeEvent:I,data:{data:[n(R),...B.map(n)]}}))}},P=(k,R,I=!0)=>{const F=r(R),B=p.get(F),z=new Set(B);if(M(R,"selected")){if(!d.some(U=>!z.has(U)&&M(U,"selected")))return E();for(const U of B)O(U,"unselected"),y(U),b(U)}else{const Y=B.some(U=>M(U,"selected"));for(const U of d)z.has(U)?O(U,"selected"):M(U,"selected")||O(U,"unselected");!Y&&i&&g(B),m(R)}I&&l.emit("element:select",Object.assign(Object.assign({},k),{nativeEvent:I,data:{data:d.filter(Y=>M(Y,"selected")).map(n)}}))},C=k=>{const{target:R,nativeEvent:I=!0}=k;return h.has(R)?a?A(k,R,I):P(k,R,I):E()};t.addEventListener("click",C);const D=k=>{const{nativeEvent:R,data:I}=k;if(R)return;const F=a?I.data.slice(0,1):I.data;for(const B of F){const z=Ey(d,B,n);C({target:z,nativeEvent:!1})}},N=()=>{E(!1)};return l.on("element:select",D),l.on("element:unselect",N),()=>{for(const k of d)y(k);t.removeEventListener("click",C),l.off("element:select",D),l.off("element:unselect",N)}}function dh(t){var{createGroup:e,background:n=!1,link:r=!1}=t,i=tK(t,["createGroup","background","link"]);return(a,o,s)=>{const{container:c,view:l,options:u}=a,{coordinate:f,scale:d}=l,h=Ga(c);return eK(h,Object.assign({elements:Eo,datum:xs(l),groupKey:e?e(l):void 0,coordinate:f,scale:d,state:Ac(u,[["selected",n?{}:{lineWidth:"1",stroke:"#000"}],"unselected"]),background:n,link:r,emitter:s},i))}}dh.props={reapplyWhenUpdate:!0};function OP(t){return dh(Object.assign(Object.assign({},t),{createGroup:My}))}OP.props={reapplyWhenUpdate:!0};function wP(t){return dh(Object.assign(Object.assign({},t),{createGroup:gP}))}wP.props={reapplyWhenUpdate:!0};var _s=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 nK(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 rK({wait:t=30,leading:e,trailing:n=!1}){return r=>{const{options:i,update:a,setState:o,container:s}=r,c=Ga(s),l=_s(u=>{const f=wy(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=nK(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 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())})},aK=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 sK(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 SP(t){var{wait:e=20,leading:n,trailing:r=!1,labelFormatter:i=o=>`${o}`}=t,a=aK(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=sK(f,"line",["x","y","series"]);if(!p)return;const{y:v,x:g,series:y=[]}=p,m=v.map((F,B)=>B),b=za(m.map(F=>g[F])),_=Ga(c),O=c.getElementsByClassName(Ra),w=c.getElementsByClassName(K0),E=Kn(w,F=>F.__data__.key.split("-")[0]),A=new ol({style:Object.assign({x1:0,y1:0,x2:0,y2:_.getAttribute("height"),stroke:"black",lineWidth:1},se(a,"rule"))}),P=new ca({style:Object.assign({x:0,y:_.getAttribute("height"),text:"",fontSize:10},se(a,"label"))});A.append(P),_.appendChild(A);const C=(F,B,z)=>{const[Y]=F.invert(z),U=B.invert(Y);return b[EZ(b,U)]},D=(F,B)=>{A.setAttribute("x1",F[0]),A.setAttribute("x2",F[0]),P.setAttribute("text",i(B))};let N;const k=F=>iK(this,void 0,void 0,function*(){const{x:B}=d,z=C(h,B,F);D(F,z),u("chartIndex",U=>{const tt=Nt({},U),rt=tt.marks.find(Pt=>Pt.type==="line"),Bt=Mn(ev(m,Pt=>Mn(Pt,ce=>+v[ce])/Mi(Pt,ce=>+v[ce]),Pt=>y[Pt]).values()),Xt=[1/Bt,Bt];Nt(rt,{scale:{y:{domain:Xt}}});const Tt=oK(rt);Tt.groupBy="color",Tt.basis=(Pt,ce)=>{const le=Pt[wc(_e=>g[+_e]).center(Pt,z)];return ce[le]};for(const Pt of tt.marks)Pt.animate=!1;return tt}),N=(yield l("chartIndex")).view}),R=F=>{const{scale:B,coordinate:z}=N,{x:Y,y:U}=B,tt=C(z,Y,F);D(F,tt);for(const rt of O){const{seriesIndex:wt,key:Bt}=rt.__data__,Xt=wt[wc(Be=>g[+Be]).center(wt,tt)],Tt=[0,U.map(1)],Pt=[0,U.map(v[Xt]/v[wt[0]])],[,ce]=z.map(Tt),[,le]=z.map(Pt),_e=ce-le;rt.setAttribute("transform",`translate(0, ${_e})`);const He=E.get(Bt)||[];for(const Be of He)Be.setAttribute("dy",_e)}},I=_s(F=>{const B=wy(_,F);B&&R(B)},e,{leading:n,trailing:r});return k([0,0]),_.addEventListener("pointerenter",I),_.addEventListener("pointermove",I),_.addEventListener("pointerleave",I),()=>{A.remove(),_.removeEventListener("pointerenter",I),_.removeEventListener("pointermove",I),_.removeEventListener("pointerleave",I)}}}SP.props={reapplyWhenUpdate:!0};function ru(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 hh(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 cK(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 lK=cK;function Ay(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 EP={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"};function uK(t){var e;t===void 0&&(t="");var n=Ay(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},EP),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)"},EP),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 fK=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=Ay(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:uK(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(lK(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=Ay(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)}jF(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 Wn(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}(Rr),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{var{color:o=PP(t)}=a,s=iu(a,["color"]);return Object.assign(Object.assign({},s),{color:o})}).map(TP);return Object.assign(Object.assign({},n&&{title:n}),{items:i})}function gK(t,e){const{color:n,series:r,facet:i=!1}=t,{color:a,series:o}=e,s=c=>c&&c.invert&&!(c instanceof Oo)&&!(c instanceof Al);if(s(r))return r.clone().invert(o);if(o&&r instanceof Oo&&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 PP(t){const e=t.getAttribute("fill"),n=t.getAttribute("stroke"),{__data__:r}=t,{color:i=e&&e!=="transparent"?e:n}=r;return i}function CP(t,e=n=>n){const n=new Map(t.map(r=>[e(r),r]));return Array.from(n.values())}function kP(t,e,n,r=t.map(a=>a.__data__),i={}){const a=c=>c instanceof Date?+c:c,o=CP(r.map(c=>c.title),a).filter(Ln),s=r.flatMap((c,l)=>{const u=t[l],{items:f=[],title:d}=c,h=f.filter(Ln),p=n!==void 0?n:f.length<=1;return h.map(v=>{var{color:g=PP(u)||i.color,name:y}=v,m=iu(v,["color","name"]);const b=gK(e,c),_=p?b||y:y||b;return Object.assign(Object.assign({},m),{color:g,name:_||d})})}).map(TP);return Object.assign(Object.assign({},o.length>0&&{title:o.join(",")}),{items:CP(s,c=>`(${a(c.name)}, ${a(c.value)}, ${a(c.color)})`)})}function yK(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=iu(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=ru(v),m=ru(g),b=()=>{if(u){const A=Math.min(a,o)/2,P=s+f+a/2,C=c+d+o/2,D=Bi(fr([m,y],[P,C])),N=P+A*Math.cos(D),k=C+A*Math.sin(D);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 ol({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 RP(t){t.ruleY&&(t.ruleY.remove(),t.ruleY=void 0)}function mK(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 Ln(o)&&Ln(s)}).map(a=>{const[{color:o,element:s},c]=a,l=o||s.style.fill||s.style.stroke||r.color;return new al({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 LP(t){t.markers&&(t.markers.forEach(e=>e.remove()),t.markers=[])}function NP(t,e){return Array.from(t.values()).some(n=>{var r;return(r=n.interaction)===null||r===void 0?void 0:r[e]})}function Py(t,e){return t===void 0?e:t}function IP(t){const{title:e,items:n}=t;return n.length===0&&e===void 0}function bK(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 jP(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,D=iu(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=Gn(o),R=Nn(o),I=Nt(P,D),{innerWidth:F,innerHeight:B,width:z,height:Y,insetLeft:U,insetTop:tt}=o.getOptions(),rt=[],wt=[];for(const pn of N){const{__data__:_n}=pn,{seriesX:ar,title:An,items:Mr}=_n;ar?rt.push(pn):(An||Mr)&&wt.push(pn)}const Xt=!!(k?a.y:a.x).getBandWidth&&wt.length>0;rt.sort((pn,_n)=>{const ar=k?0:1,An=Mr=>Mr.getBounds().min[ar];return k?An(_n)-An(pn):An(pn)-An(_n)});const Tt=pn=>{const _n=k?1:0,{min:ar,max:An}=pn.getLocalBounds();return za([ar[_n],An[_n]])};wt.sort((pn,_n)=>{const[ar,An]=Tt(pn),[Mr,Tr]=Tt(_n),xi=(ar+An)/2,Ci=(Mr+Tr)/2;return k?Ci-xi:xi-Ci});const Pt=new Map(rt.map(pn=>{const{__data__:_n}=pn,{seriesX:ar}=_n,An=ar.map((Tr,xi)=>xi),Mr=za(An,Tr=>ar[+Tr]);return[pn,[Mr,ar]]})),{x:ce}=a,le=ce!=null&&ce.getBandWidth?ce.getBandWidth()/2:0,_e=pn=>{const[_n]=o.invert(pn);return _n-le},He=(pn,_n,ar)=>{const An=_e(pn),Mr=ar.filter(Ln),[Tr,xi]=za([Mr[0],Mr[Mr.length-1]]),Ci=Tr===xi;if(!Xt&&(Anxi)&&!Ci)return null;const ea=wc(_1=>ar[+_1]).center,No=ea(_n,An);return _n[No]},Be=(pn,_n)=>{const An=pn[k?1:0],Mr=_n.filter(Ci=>{const[ea,No]=Tt(Ci);return An>=ea&&An<=No});if(!Xt||Mr.length>0)return Mr;const Tr=wc(Ci=>{const[ea,No]=Tt(Ci);return(ea+No)/2}).center,xi=Tr(_n,An);return[_n[xi]].filter(Ln)},Qe=(pn,_n)=>{const{__data__:ar}=pn;return Object.fromEntries(Object.entries(ar).filter(([An])=>An.startsWith("series")&&An!=="series").map(([An,Mr])=>{const Tr=Mr[_n];return[R_(An.replace("series","")),Tr]}))},dn=_s(pn=>{const _n=wy(t,pn);if(!_n)return;const ar=vP(t),An=ar.min[0],Mr=ar.min[1],Tr=[_n[0]-p,_n[1]-v];if(!Tr)return;const xi=Be(Tr,wt),Ci=[],ea=[];for(const Er of rt){const[zu,w1]=Pt.get(Er),rR=He(Tr,zu,w1);if(rR!==null){Ci.push(Er);const iR=Qe(Er,rR),{x:Aut,y:Tut}=iR,Put=o.map([(Aut||0)+le,Tut||0]);ea.push([Object.assign(Object.assign({},iR),{element:Er}),Put])}}const No=Array.from(new Set(ea.map(Er=>Er[0].x))),_1=No[hh(No,Er=>Math.abs(Er-_e(Tr)))],O1=ea.filter(Er=>Er[0].x===_1),Eut=[...O1.map(Er=>Er[0]),...xi.map(Er=>Er.__data__)],nR=[...Ci,...xi],Bu=kP(nR,a,l,Eut,w);if(r&&Bu.items.sort((Er,zu)=>r(Er)-r(zu)),i&&(Bu.items=Bu.items.filter(i)),nR.length===0||IP(Bu)){xn(pn);return}if(g&&AP({root:t,data:Bu,x:_n[0]+An,y:_n[1]+Mr,render:c,event:pn,single:y,position:m,enterable:b,mount:_,bounding:O,css:C}),s){const Er=O1.map(w1=>w1[1]),zu=se(I,"crosshairs");yK(t,Er,Object.assign(Object.assign({},zu),{plotWidth:F,plotHeight:B,mainWidth:z,mainHeight:Y,insetLeft:U,insetTop:tt,startX:p,startY:v,transposed:k,polar:R}))}if(E){const Er=se(I,"marker");mK(t,{data:O1,style:Er,theme:w})}u.emit("tooltip:show",Object.assign(Object.assign({},pn),{nativeEvent:!0,data:{data:{x:Sc(a.x,_e(Tr),!0)}}}))},f,{leading:d,trailing:h}),xn=pn=>{To({root:t,single:y,emitter:u,event:pn}),s&&RP(t),E&&LP(t)},Vn=()=>{Ty({root:t,single:y}),s&&RP(t),E&&LP(t)},mr=({nativeEvent:pn,data:_n})=>{if(pn)return;const{x:ar}=_n.data,{x:An}=a,Mr=An.map(ar),[Tr,xi]=o.map([Mr,.5]),{min:[Ci,ea]}=t.getRenderBounds();dn({offsetX:Tr+Ci,offsetY:xi+ea})},bi=()=>{To({root:t,single:y,emitter:u,nativeEvent:!1})},qa=()=>{$i(),Vn()},As=()=>{oi()},oi=()=>{M||(t.addEventListener("pointerenter",dn),t.addEventListener("pointermove",dn),t.addEventListener("pointerleave",xn))},$i=()=>{M||(t.removeEventListener("pointerenter",dn),t.removeEventListener("pointermove",dn),t.removeEventListener("pointerleave",xn))};return oi(),u.on("tooltip:show",mr),u.on("tooltip:hide",bi),u.on("tooltip:disable",qa),u.on("tooltip:enable",As),()=>{$i(),u.off("tooltip:show",mr),u.off("tooltip:hide",bi),u.off("tooltip:disable",qa),u.off("tooltip:enable",As),A?To({root:t,single:y,emitter:u,nativeEvent:!1}):Vn()}}function xK(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),D=_s(Y=>{const{target:U}=Y;if(!P.has(U)){To({root:t,single:d,emitter:s,event:Y});return}const tt=f(U),rt=C.get(tt),wt=rt.length===1&&!_?vK(rt[0]):kP(rt,n,i,void 0,b);if(a&&wt.items.sort((Tt,Pt)=>a(Tt)-a(Pt)),o&&(wt.items=wt.items.filter(o)),IP(wt)){To({root:t,single:d,emitter:s,event:Y});return}const{offsetX:Bt,offsetY:Xt}=Y;O&&AP({root:t,data:wt,x:Bt,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:JO(U,g)}}))},c,{leading:l,trailing:u}),N=Y=>{To({root:t,single:d,emitter:s,event:Y})},k=()=>{w||(t.addEventListener("pointermove",D),t.addEventListener("pointerleave",N))},R=()=>{w||(t.removeEventListener("pointermove",D),t.removeEventListener("pointerleave",N))},I=({nativeEvent:Y,data:U})=>{if(Y)return;const tt=Ey(A,U.data,v);if(!tt)return;const rt=tt.getBBox(),{x:wt,y:Bt,width:Xt,height:Tt}=rt;D({target:tt,offsetX:wt+Xt/2,offsetY:Bt+Tt/2})},F=({nativeEvent:Y}={})=>{Y||To({root:t,single:d,emitter:s,nativeEvent:!1})},B=()=>{R(),Ty({root:t,single:d})},z=()=>{k()};return s.on("tooltip:show",I),s.on("tooltip:hide",F),s.on("tooltip:enable",z),s.on("tooltip:disable",B),k(),()=>{R(),s.off("tooltip:show",I),s.off("tooltip:hide",F),M?To({root:t,single:d,emitter:s,nativeEvent:!1}):Ty({root:t,single:d})}}function DP(t){const{shared:e,crosshairs:n,series:r,name:i,item:a=()=>({}),facet:o=!1}=t,s=iu(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=NP(p,"seriesTooltip"),m=NP(p,"crosshairs"),b=Ga(f),_=Py(r,y);if(_&&bK(p)&&!o)return jP(b,Object.assign(Object.assign({},s),{theme:g,elements:Eo,scale:h,coordinate:v,crosshairs:Py(n,m),item:a,emitter:u}));if(_&&o){const O=l.filter(C=>C!==c&&C.options.parentKey===c.options.key),w=pP(c,l),M=O[0].view.scale,E=b.getBounds(),A=E.min[0],P=E.min[1];return Object.assign(M,{facet:!0}),jP(b.parentNode.parentNode,Object.assign(Object.assign({},s),{theme:g,elements:()=>w,scale:M,coordinate:v,crosshairs:Py(n,m),item:a,startX:A,startY:P,emitter:u}))}return xK(b,Object.assign(Object.assign({},s),{datum:xs(d),elements:Eo,scale:h,coordinate:v,groupKey:e?My(d):void 0,item:a,emitter:u,view:d,theme:g,shared:e}))}}DP.props={reapplyWhenUpdate:!0};var vh=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 FP="legend-category",_K="legend-continuous",OK="items-item",wK="legend-category-item-marker",SK="legend-category-item-label";function BP(t){return t.getElementsByClassName(wK)[0]}function zP(t){return t.getElementsByClassName(SK)[0]}function GP(t){return t.getElementsByClassName(OK)}function WP(t){return t.getElementsByClassName(FP)}function MK(t){return t.getElementsByClassName(_K)}function Cy(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 EK(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:se(d,"marker")},p={unselected:se(d,"label")},{setState:v,removeState:g}=Wa(h,void 0),{setState:y,removeState:m}=Wa(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=()=>{Ao(t,"pointer")},P=()=>{KZ(t)},C=D=>vh(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}=D;R&&(_.length===b.length?o.emit("legend:reset",{nativeEvent:R}):o.emit("legend:filter",Object.assign(Object.assign({},D),{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=>vh(this,void 0,void 0,function*(){const{nativeEvent:A}=E;if(A)return;const{data:P}=E,{channel:C,values:D}=P;C===s&&(_=D,yield a(_),O())}),M=E=>vh(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 AK(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 HP(t,{legend:e,channel:n,value:r,ordinal:i,channels:a,allChannels:o,facet:s=!1}){return vh(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 TK(t,e){for(const n of t)HP(n,Object.assign(Object.assign({},e),{facet:!0}))}function PK(){return(t,e,n)=>{const{container:r}=t,i=e.filter(f=>f!==t),a=i.length>0,o=f=>Cy(f).scales.map(d=>d.name),s=[...WP(r),...MK(r)],c=s.flatMap(o),l=a?_s(TK,50,{trailing:!0}):_s(HP,50,{trailing:!0}),u=s.map(f=>{const{name:d,domain:h}=Cy(f).scales[0],p=o(f),v={legend:f,channel:d,channels:p,allChannels:c};return f.className===FP?EK(r,{legends:GP,marker:BP,label:zP,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}):AK(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 CK(){return(t,e,n)=>{const{container:r,view:i,options:a}=t,o=WP(r),s=Eo(r),c=h=>Cy(h).scales[0].name,l=h=>{const{scale:{[h]:p}}=i;return p},u=Ac(a,["active","inactive"]),f=nu(s,xs(i)),d=[];for(const h of o){const p=Y=>{const{data:U}=h.attributes,{__data__:tt}=Y,{index:rt}=tt;return U[rt].label},v=c(h),g=GP(h),y=l(v),m=Kn(s,Y=>y.invert(Y.__data__[v])),{state:b={}}=h.attributes,{inactive:_={}}=b,{setState:O,removeState:w}=Wa(u,f),M={inactive:se(_,"marker")},E={inactive:se(_,"label")},{setState:A,removeState:P}=Wa(M),{setState:C,removeState:D}=Wa(E),N=Y=>{for(const U of g){const tt=BP(U),rt=zP(U);U===Y||Y===null?(P(tt,"inactive"),D(rt,"inactive")):(A(tt,"inactive"),C(rt,"inactive"))}},k=(Y,U)=>{const tt=p(U),rt=new Set(m.get(tt));for(const Bt of s)rt.has(Bt)?O(Bt,"active"):O(Bt,"inactive");N(U);const{nativeEvent:wt=!0}=Y;wt&&n.emit("legend:highlight",Object.assign(Object.assign({},Y),{nativeEvent:wt,data:{channel:v,value:tt}}))},R=new Map;for(const Y of g){const U=tt=>{k(tt,Y)};Y.addEventListener("pointerover",U),R.set(Y,U)}const I=Y=>{for(const tt of s)w(tt,"inactive","active");N(null);const{nativeEvent:U=!0}=Y;U&&n.emit("legend:unhighlight",{nativeEvent:U})},F=Y=>{const{nativeEvent:U,data:tt}=Y;if(U)return;const{channel:rt,value:wt}=tt;if(rt!==v)return;const Bt=g.find(Xt=>p(Xt)===wt);Bt&&k({nativeEvent:!1},Bt)},B=Y=>{const{nativeEvent:U}=Y;U||I({nativeEvent:!1})};h.addEventListener("pointerleave",I),n.on("legend:highlight",F),n.on("legend:unhighlight",B);const z=()=>{h.removeEventListener(I),n.off("legend:highlight",F),n.off("legend:unhighlight",B);for(const[Y,U]of R)Y.removeEventListener(U)};d.push(z)}return()=>d.forEach(h=>h())}}var Ai=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=Ai(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=(wt,Bt,Xt)=>{wt.handle||(wt.handle=Xt.createElement("rect"),wt.append(wt.handle));const{handle:Tt}=wt;return Tt.attr(Bt),Tt},h=se(ov(u,"handleNW","handleNE"),"handleN"),{render:p=d}=h,v=Ai(h,["render"]),g=se(u,"handleE"),{render:y=d}=g,m=Ai(g,["render"]),b=se(ov(u,"handleSE","handleSW"),"handleS"),{render:_=d}=b,O=Ai(b,["render"]),w=se(u,"handleW"),{render:M=d}=w,E=Ai(w,["render"]),A=se(u,"handleNW"),{render:P=d}=A,C=Ai(A,["render"]),D=se(u,"handleNE"),{render:N=d}=D,k=Ai(D,["render"]),R=se(u,"handleSE"),{render:I=d}=R,F=Ai(R,["render"]),B=se(u,"handleSW"),{render:z=d}=B,Y=Ai(B,["render"]),U=(wt,Bt)=>{const{id:Xt}=wt,Tt=wt.attributes,{x:Pt,y:ce}=Tt,le=Ai(Tt,["x","y"]),_e=Bt(wt,Object.assign({x:0,y:0},le),l);_e.id=Xt,_e.style.draggable=!0},tt=wt=>()=>{const Bt=oc(Xt=>U(Xt,wt));return new Bt({})},rt=Ne(t).attr("className",o).style("x",n).style("y",r).style("draggable",!0);rt.maybeAppend("selection","rect").style("draggable",!0).style("fill","transparent").call(Ha,Object.assign({width:i,height:a},ov(u,"handle"))),rt.maybeAppend("handle-n",tt(p)).style("x",f).style("y",-f).style("width",i-c).style("height",c).style("fill","transparent").call(Ha,v),rt.maybeAppend("handle-e",tt(y)).style("x",i-f).style("y",f).style("width",c).style("height",a-c).style("fill","transparent").call(Ha,m),rt.maybeAppend("handle-s",tt(_)).style("x",f).style("y",a-f).style("width",i-c).style("height",c).style("fill","transparent").call(Ha,O),rt.maybeAppend("handle-w",tt(M)).style("x",-f).style("y",f).style("width",c).style("height",a-c).style("fill","transparent").call(Ha,E),rt.maybeAppend("handle-nw",tt(P)).style("x",-f).style("y",-f).style("width",c).style("height",c).style("fill","transparent").call(Ha,C),rt.maybeAppend("handle-ne",tt(N)).style("x",i-f).style("y",-f).style("width",c).style("height",c).style("fill","transparent").call(Ha,k),rt.maybeAppend("handle-se",tt(I)).style("x",i-f).style("y",a-f).style("width",c).style("height",c).style("fill","transparent").call(Ha,F),rt.maybeAppend("handle-sw",tt(z)).style("x",-f).style("y",a-f).style("width",c).style("height",c).style("fill","transparent").call(Ha,Y)});function ky(t,e){var{brushed:n=()=>{},brushended:r=()=>{},brushcreated:i=()=>{},brushstarted:a=()=>{},brushupdated:o=()=>{},extent:s=LK(t),brushRegion:c=(Tt,Pt,ce,le,_e)=>[Tt,Pt,ce,le],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=Ai(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;Ao(t,"crosshair"),t.style.draggable=!0;const A=(Tt,Pt,ce)=>{if(a(ce),m&&m.remove(),b&&b.remove(),v=[Tt,Pt],l)return P();C()},P=()=>{b=new ni({style:Object.assign(Object.assign({},p),{fill:u,fillOpacity:f,stroke:d,pointerEvents:"none"})}),m=new YP({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 YP({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)},D=(Tt=!0)=>{m&&m.remove(),b&&b.remove(),v=null,g=null,y=null,_=!1,m=null,b=null,r(Tt)},N=(Tt,Pt,ce=!0)=>{const[le,_e,He,Be]=RK(Tt[0],Tt[1],Pt[0],Pt[1],s),[Qe,dn,xn,Vn]=c(le,_e,He,Be,s);return l?R(Qe,dn,xn,Vn):k(Qe,dn,xn,Vn),n(Qe,dn,xn,Vn,ce),[Qe,dn,xn,Vn]},k=(Tt,Pt,ce,le)=>{m.style.x=Tt,m.style.y=Pt,m.style.width=ce-Tt,m.style.height=le-Pt},R=(Tt,Pt,ce,le)=>{b.style.d=` + M${O},${w}L${M},${w}L${M},${E}L${O},${E}Z + M${Tt},${Pt}L${Tt},${le}L${ce},${le}L${ce},${Pt}Z + `,m.style.x=Tt,m.style.y=Pt,m.style.width=ce-Tt,m.style.height=le-Pt},I=Tt=>{const Pt=(dn,xn,Vn,mr,bi)=>dn+xnbi?bi-Vn:dn,ce=Tt[0]-y[0],le=Tt[1]-y[1],_e=Pt(ce,v[0],g[0],O,M),He=Pt(le,v[1],g[1],w,E),Be=[v[0]+_e,v[1]+He],Qe=[g[0]+_e,g[1]+He];N(Be,Qe)},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=Tt=>Y(Tt)||z(Tt),z=Tt=>{const{id:Pt}=Tt;return h.indexOf(Pt)===-1?!1:new Set(Object.keys(F)).has(Pt)},Y=Tt=>Tt===m.getElementById("selection"),U=Tt=>{const{target:Pt}=Tt,[ce,le]=Sy(t,Tt);if(!m||!B(Pt)){A(ce,le,Tt),_=!0;return}B(Pt)&&(y=[ce,le])},tt=Tt=>{const{target:Pt}=Tt,ce=Sy(t,Tt);if(!v)return;if(!y)return N(v,ce);if(Y(Pt))return I(ce);const[le,_e]=[ce[0]-y[0],ce[1]-y[1]],{id:He}=Pt;if(F[He]){const[Be,Qe,dn,xn]=F[He].vector;return N([v[0]+le*Be,v[1]+_e*Qe],[g[0]+le*dn,g[1]+_e*xn])}},rt=Tt=>{if(y){y=null;const{x:He,y:Be,width:Qe,height:dn}=m.style;v=[He,Be],g=[He+Qe,Be+dn],o(He,Be,He+Qe,Be+dn,Tt);return}g=Sy(t,Tt);const[Pt,ce,le,_e]=N(v,g);_=!1,i(Pt,ce,le,_e,Tt)},wt=Tt=>{const{target:Pt}=Tt;m&&!B(Pt)&&D()},Bt=Tt=>{const{target:Pt}=Tt;!m||!B(Pt)||_?Ao(t,"crosshair"):Y(Pt)?Ao(t,"move"):z(Pt)&&Ao(t,F[Pt.id].cursor)},Xt=()=>{Ao(t,"default")};return t.addEventListener("dragstart",U),t.addEventListener("drag",tt),t.addEventListener("dragend",rt),t.addEventListener("click",wt),t.addEventListener("pointermove",Bt),t.addEventListener("pointerleave",Xt),{mask:m,move(Tt,Pt,ce,le,_e=!0){m||A(Tt,Pt,{}),v=[Tt,Pt],g=[ce,le],N([Tt,Pt],[ce,le],_e)},remove(Tt=!0){m&&D(Tt)},destroy(){m&&D(!1),Ao(t,"default"),t.removeEventListener("dragstart",U),t.removeEventListener("drag",tt),t.removeEventListener("dragend",rt),t.removeEventListener("click",wt),t.removeEventListener("pointermove",Bt),t.removeEventListener("pointerleave",Xt)}}}function Ry(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 NK(t,e,n){return Ry(t,e,n).map(r=>Ga(r.container))}function IK(t,e,n){return Ry(t,e,n).map(r=>r.options)}function VP(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:rt,y:wt,width:Bt,height:Xt}=tt.style;return{x:rt,y:wt,width:Bt,height:Xt}},state:p={},emitter:v}=e,g=Ai(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),_=nu(y,a),O=se(g,"mask"),{setState:w,removeState:M}=Wa(p,_),E=new Map,{width:A,height:P,x:C=0,y:D=0}=h(t),N=s||[0,0,A,P],k=()=>{for(const tt of[...y,...b])M(tt,"active","inactive")},R=(tt,rt,wt,Bt)=>{var Xt;for(const Pt of m)(Xt=Pt.brush)===null||Xt===void 0||Xt.remove();const Tt=new Set;for(const Pt of y){const{min:ce,max:le}=Pt.getLocalBounds(),[_e,He]=ce,[Be,Qe]=le;kK([_e,He,Be,Qe],[tt,rt,wt,Bt])?(w(Pt,"active"),Tt.add(d(Pt))):w(Pt,"inactive")}for(const Pt of b)Tt.has(d(Pt))?w(Pt,"active"):w(Pt,"inactive")},I=()=>{for(const tt of y)M(tt,"inactive");for(const tt of E.values())tt.remove();E.clear()},F=(tt,rt,wt,Bt)=>{const Xt=Tt=>{const Pt=Tt.cloneNode();return Pt.__data__=Tt.__data__,Tt.parentNode.appendChild(Pt),E.set(Tt,Pt),Pt};for(const Tt of y){const Pt=E.get(Tt)||Xt(Tt);Pt.style.clipPath=new Ko({style:{x:tt+C,y:rt+D,width:wt-tt,height:Bt-rt}}),w(Tt,"inactive"),w(Pt,"active")}},B=ky(t,Object.assign(Object.assign({},O),{extent:N,brushRegion:o,reverse:c,selectedHandles:r,brushended:tt=>{const rt=f?I:k;tt&&v.emit("brush:remove",{nativeEvent:!0}),rt()},brushed:(tt,rt,wt,Bt,Xt)=>{const Tt=ch(tt,rt,wt,Bt,l,u);Xt&&v.emit("brush:highlight",{nativeEvent:!0,data:{selection:Tt}}),(f?F:R)(tt,rt,wt,Bt)},brushcreated:(tt,rt,wt,Bt,Xt)=>{const Tt=ch(tt,rt,wt,Bt,l,u);v.emit("brush:end",Object.assign(Object.assign({},Xt),{nativeEvent:!0,data:{selection:Tt}}))},brushupdated:(tt,rt,wt,Bt,Xt)=>{const Tt=ch(tt,rt,wt,Bt,l,u);v.emit("brush:end",Object.assign(Object.assign({},Xt),{nativeEvent:!0,data:{selection:Tt}}))},brushstarted:tt=>{v.emit("brush:start",tt)}})),z=({nativeEvent:tt,data:rt})=>{if(tt)return;const{selection:wt}=rt,[Bt,Xt,Tt,Pt]=CZ(wt,l,u);B.move(Bt,Xt,Tt,Pt,!1)};v.on("brush:highlight",z);const Y=({nativeEvent:tt}={})=>{tt||B.remove(!1)};v.on("brush:remove",Y);const U=B.destroy.bind(B);return B.destroy=()=>{v.off("brush:highlight",z),v.off("brush:remove",Y),U()},B}function Ly(t){var{facet:e,brushKey:n}=t,r=Ai(t,["facet","brushKey"]);return(i,a,o)=>{const{container:s,view:c,options:l}=i,u=Ga(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 VP(u.parentNode.parentNode,Object.assign(Object.assign({elements:()=>pP(i,a),datum:xs(Oy(i,a).map(O=>O.view)),brushRegion:(O,w,M,E)=>[O,w,M,E],extent:[y,m,b,_],state:Ac(Oy(i,a).map(O=>O.options),d),emitter:o,scale:h,coordinate:p,selectedHandles:void 0},f),r))}const v=VP(u,Object.assign(Object.assign({elements:Eo,key:g=>g.__data__.key,siblings:()=>NK(i,a,n),datum:xs([c,...Ry(i,a,n).map(g=>g.view)]),brushRegion:(g,y,m,b)=>[g,y,m,b],extent:void 0,state:Ac([l,...IK(i,a,n)],d),emitter:o,scale:h,coordinate:p,selectedHandles:void 0},f),r));return u.brush=v,()=>v.destroy()}}function Ny(t,e,n,r,i){const[,a,,o]=i;return[t,a,n,o]}function jK(t){return Ly(Object.assign(Object.assign({},t),{brushRegion:Ny,selectedHandles:["handle-e","handle-w"]}))}function Iy(t,e,n,r,i){const[a,,o]=i;return[a,e,o,r]}function DK(t){return Ly(Object.assign(Object.assign({},t),{brushRegion:Iy,selectedHandles:["handle-n","handle-s"]}))}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[-1/0,v,1/0,y]:(p,v,g,y)=>[Math.floor(l-r),v,Math.ceil(f-r),y]}}function YK(t,e){var{offsetY:n,offsetX:r,cross:i=!1}=e,a=jy(e,["offsetY","offsetX","cross"]);const o=UP(t),s=XP(t),[,c]=s.getLocalBounds().min,[l,u]=o.min,[f,d]=o.max,h=d-u;return{brushRegion:Ny,hotZone:new Ko({className:$P,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 VK(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=jy(e,["axes","elements","points","horizontal","datum","offsetY","offsetX","reverse","state","emitter","coordinate"]);const p=r(t),v=n(t),g=nu(p,o),{setState:y,removeState:m}=Wa(u,g),b=new Map,_=se(h,"mask"),O=z=>Array.from(b.values()).every(([Y,U,tt,rt])=>z.some(([wt,Bt])=>wt>=Y&&wt<=tt&&Bt>=U&&Bt<=rt)),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 U=[];for(const rt of p){const wt=i(rt);O(wt)?(y(rt,"active"),U.push(rt)):y(rt,"inactive")}if(E.set(z,D(U,z)),!Y)return;const tt=()=>{if(!N)return Array.from(E.values());const rt=[];for(const[wt,Bt]of E){const Xt=w[wt],{name:Tt}=Xt.getOptions();Tt==="x"?rt[0]=Bt:rt[1]=Bt}return rt};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})},D=(z,Y)=>{const U=w[Y],{name:tt}=U.getOptions(),rt=z.map(wt=>{const Bt=wt.__data__;return U.invert(Bt[tt])});return M(Mo(U,rt))},N=v.some(a)&&v.some(z=>!a(z)),k=[];for(let z=0;z{const{nativeEvent:Y}=z;Y||k.forEach(U=>U.remove(!1))},I=(z,Y,U)=>{const[tt,rt]=z,wt=Tt=>Tt.getStep?Tt.getStep():0,Bt=F(tt,Y,U),Xt=F(rt,Y,U)+wt(Y);return a(U)?[Bt,-1/0,Xt,1/0]:[-1/0,Bt,1/0,Xt]},F=(z,Y,U)=>{const{height:tt,width:rt}=d.getOptions(),wt=Y.clone();return a(U)?wt.update({range:[0,rt]}):wt.update({range:[tt,0]}),wt.map(z)},B=z=>{const{nativeEvent:Y}=z;if(Y)return;const{selection:U}=z.data;for(let tt=0;tt{k.forEach(z=>z.destroy()),f.off("brushAxis:remove",R),f.off("brushAxis:highlight",B)}}function $K(t){return(e,n,r)=>{const{container:i,view:a,options:o}=e,s=Ga(i),{x:c,y:l}=s.getBBox(),{coordinate:u}=a;return VK(i,Object.assign({elements:Eo,axes:GK,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:xs(a),state:Ac(o,["active",["inactive",{opacity:.5}]]),coordinate:u,emitter:r},t))}}var XK=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())})},qP=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 Dy(t){var{hideX:e=!0,hideY:n=!0}=t,r=qP(t,["hideX","hideY"]);return(i,a,o)=>{const{container:s,view:c,options:l,update:u,setState:f}=i,d=Ga(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 qK(d,Object.assign(Object.assign({brushRegion:(b,_,O,w)=>[b,_,O,w],selection:(b,_,O,w)=>{const{scale:M,coordinate:E}=g;return ch(b,_,O,w,M,E)},filter:(b,_)=>XK(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 ZK(t){return Dy(Object.assign(Object.assign({hideX:!0},t),{brushRegion:Ny}))}function KK(t){return Dy(Object.assign(Object.assign({hideY:!0},t),{brushRegion:Iy}))}var QK=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 JK="slider";function tQ(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 eQ(t,e,n){const[r,i]=t,a=n?c=>1-c:c=>c,o=Sc(e,a(r),!0),s=Sc(e,a(i),!1);return Mo(e,[o,s])}function gh(t){return[t[0],t[t.length-1]]}function ZP({initDomain:t={},className:e=JK,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=Gn(m),C=R=>{const I=R==="vertical"?"y":"x",F=R==="vertical"?"x":"y";return P?[F,I]:[I,F]},D=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:I}=R.attributes,[F,B]=C(I),z=`${n}${lo(F)}:filter`,Y=F==="x",{ratio:U}=E.getOptions(),{ratio:tt}=A.getOptions(),rt=Xt=>{if(Xt.data){const{selection:_e}=Xt.data,[He=gh(k.x),Be=gh(k.y)]=_e;return Y?[Mo(E,He,U),Mo(A,Be,tt)]:[Mo(A,Be,tt),Mo(E,He,U)]}const{value:Tt}=Xt.detail,Pt=y[F],ce=eQ(Tt,Pt,P&&I==="horizontal"),le=k[B];return[ce,le]},wt=_s(Xt=>QK(this,void 0,void 0,function*(){if(g)return;g=!0;const{nativeEvent:Tt=!0}=Xt,[Pt,ce]=rt(Xt);if(k[F]=Pt,k[B]=ce,Tt){const le=Y?Pt:ce,_e=Y?ce:Pt;u.emit(z,Object.assign(Object.assign({},Xt),{nativeEvent:Tt,data:{selection:[gh(le),gh(_e)]}}))}p(R,le=>Object.assign(Object.assign({},tQ(le,{[F]:{domain:Pt,nice:!1}},n,i,F,B)),{paddingLeft:_,paddingTop:O,paddingBottom:w,paddingRight:M})),yield h(),g=!1}),a,{leading:o,trailing:s}),Bt=Xt=>{const{nativeEvent:Tt}=Xt;if(Tt)return;const{data:Pt}=Xt,{selection:ce}=Pt,[le,_e]=ce;R.dispatchEvent(new Rn("valuechange",{data:Pt,nativeEvent:!1}));const He=Y?lh(le,E):lh(_e,A);r(R,He)};u.on(z,Bt),R.addEventListener("valuechange",wt),D.set(R,wt),N.add([z,Bt])}return h(),()=>{for(const[R,I]of D)R.removeEventListener("valuechange",I);for(const[R,I]of N)u.off(R,I)}}}const KP="g2-scrollbar";function nQ(t={}){return(e,n,r)=>{const{view:i,container:a}=e;if(!a.getElementsByClassName(KP).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}),ZP(Object.assign(Object.assign({},t),{initDomain:u,className:KP,prefix:"scrollbar",hasState:!0,setValue:(d,h)=>d.setValue(h[0])}))(e,n,r)}}var rQ=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 aQ={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 QP(t){return t.nodeName!=="text"?!1:!!t.isOverflowing()}function JP(t){var{offsetX:e=8,offsetY:n=8}=t,r=rQ(t,["offsetX","offsetY"]);return i=>{const{container:a}=i,[o,s]=a.getBounds().min,c=se(r,"tip"),l=new Set,u=d=>{const{target:h}=d;if(!QP(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 wf({className:"poptip",style:{innerHTML:iQ("div",m,Object.assign(Object.assign({},aQ),c)),x:g,y}});a.appendChild(b),h.tip=b,l.add(b)},f=d=>{const{target:h}=d;if(!QP(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())}}}JP.props={reapplyWhenUpdate:!0};var oQ=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=oQ(s,["data","x","y","width","height"]);return Object.assign(Object.assign({},h),{data:zv(c,o),x:l!=null?l:n,y:u!=null?u:r,width:f!=null?f:i,height:d!=null?d:a})})};tC.props={};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);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"))}}}),Fy=rc(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")?[Da(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)}}}),By=rc(()=>({animate:{enterType:"fadeIn"}})),zy=ic(()=>({frame:!1,encode:{shape:"hollow"},style:{lineWidth:0}})),Gy=ic(()=>({type:"cell"})),nC=ic(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}))})()}}]}}}),rC=ic((t,e=uQ,n=fQ,r=dQ,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:D}=w.getOptions(),{domain:N}=M.getOptions(),k=ts(b),R=b.map(e),I=b.map(({x:tt,y:rt})=>[w.invert(tt),M.invert(rt)]),B=I.map(([tt,rt])=>wt=>{const{[p]:Bt,[v]:Xt}=wt;return(p!==void 0?Bt===tt:!0)&&(v!==void 0?Xt===rt:!0)}).map(tt=>h.filter(tt)),z=f?Mn(B,tt=>tt.length):void 0,Y=I.map(([tt,rt])=>({columnField:p,columnIndex:D.indexOf(tt),columnValue:tt,columnValuesLength:D.length,rowField:v,rowIndex:N.indexOf(rt),rowValue:rt,rowValuesLength:N.length})),U=Y.map(tt=>Array.isArray(s)?s:[s(tt)].flat(1));return k.flatMap(tt=>{const[rt,wt,Bt,Xt]=R[tt],Tt=Y[tt],Pt=B[tt];return U[tt].map(le=>{var _e,He,{scale:Be,key:Qe,facet:dn=!0,axis:xn={},legend:Vn={}}=le,mr=cQ(le,["scale","key","facet","axis","legend"]);const bi=((_e=Be==null?void 0:Be.y)===null||_e===void 0?void 0:_e.guide)||xn.y,qa=((He=Be==null?void 0:Be.x)===null||He===void 0?void 0:He.guide)||xn.x,As={x:{tickCount:p?5:void 0},y:{tickCount:v?5:void 0}},oi=dn?Pt:Pt.length===0?[]:h,$i={color:{domain:y}},pn={x:iC(qa,n)(Tt,oi),y:iC(bi,r)(Tt,oi)};return Object.assign(Object.assign({key:`${Qe}-${tt}`,data:oi,margin:0,x:rt+E+l+P,y:wt+A+u+C,parentKey:d,width:Bt,height:Xt,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!!oi.length,dataDomain:z,scale:Nt(As,Be,$i),axis:Nt({},xn,pn),legend:!1},mr),i)})})}}});function uQ(t){const{points:e}=t;return Wv(e)}function yh(t,e){return e.length?Nt({title:!1,tick:null,label:null},t):Nt({title:!1,tick:null,label:null,grid:null},t)}function fQ(t){return(e,n)=>{const{rowIndex:r,rowValuesLength:i,columnIndex:a,columnValuesLength:o}=e;if(r!==i-1)return yh(t,n);const s=a!==o-1?!1:void 0,c=n.length?void 0:null;return Nt({title:s,grid:c},t)}}function dQ(t){return(e,n)=>{const{rowIndex:r,columnIndex:i}=e;if(i!==0)return yh(t,n);const a=r!==0?!1:void 0,o=n.length?void 0:null;return Nt({title:a,grid:o},t)}}function iC(t,e){return typeof t=="function"?t:t===null||t===!1?()=>null:e(t)}const aC=()=>t=>[au.of(t).call(Gy).call(Fy).call(By).call(lQ).call(zy).call(nC).call(rC).value()];aC.props={};var Wy=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}}})),pQ=ic(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=ts(s),b=s.map(({points:M})=>Wv(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],[D,N]=_[M],k=O[M];return w[M].map(I=>{var F,B;const{scale:z,key:Y,encode:U,axis:tt,interaction:rt}=I,wt=Wy(I,["scale","key","encode","axis","interaction"]),Bt=(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,Tt={x:{facet:!1},y:{facet:!1}},Pt={x:gQ(Xt)(k,e),y:yQ(Bt)(k,e)},ce={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(Tt,z),axis:Nt(ce,tt,Pt),legend:!1,encode:Nt({},U,{x:D,y:N}),interaction:Nt({},rt,{legendFilter:!1})},wt)})})}}}),vQ=ic(t=>{const{encode:e}=t,n=Wy(t,["encode"]),{position:r=[],x:i=r,y:a=[...r].reverse()}=e,o=Wy(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 gQ(t){return typeof t=="function"?t:t===null?()=>null:(e,n)=>{const{rowIndex:r,rowValuesLength:i}=e;if(r!==i-1)return yh(t,n)}}function yQ(t){return typeof t=="function"?t:t===null?()=>null:(e,n)=>{const{columnIndex:r}=e;if(r!==0)return yh(t,n)}}const mQ=()=>t=>[au.of(t).call(Gy).call(Fy).call(pQ).call(vQ).call(By).call(zy).call(hQ).value()];var bQ=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}}})),_Q=rc(t=>({coordinate:{type:"polar"}})),OQ=t=>{const{encode:e}=t,n=bQ(t,["encode"]),{position:r}=e;return Object.assign(Object.assign({},n),{encode:{x:r}})};function oC(t){return e=>null}function wQ(t){const{points:e}=t,[n,r,i,a]=e,o=Qn(n,a),s=fr(n,a),c=fr(r,i),l=RO(s,c),u=1/Math.sin(l/2),f=o/(1+u),d=f*Math.sqrt(2),[h,p]=i,g=ac(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 SQ=()=>t=>[au.of(t).call(Gy).call(OQ).call(Fy).call(_Q).call(nC).call(rC,wQ,oC,oC,{frame:!1}).call(By).call(zy).call(xQ).value()];function MQ(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 EQ(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 sC=()=>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=>EQ(l,n,a));return function*(){let l=0,u;for(;r==="infinite"||l{var s;return[o,(s=cn(r,o))===null||s===void 0?void 0:s[0]]}).filter(([,o])=>Ln(o)),a=o=>i.map(([,s])=>s[o]).join("-");return Array.from(Kn(e,a).values())}function cC(t){return Array.isArray(t)?CQ(t):typeof t=="function"?PQ(t):t==="series"?TQ:t==="value"?kQ:t==="sum"?RQ:t==="maxIndex"?LQ:()=>null}function lC(t,e){for(const n of t)n.sort(e)}function uC(t,e){return(e==null?void 0:e.domain)||Array.from(new Set(t))}function AQ(t){return Array.isArray(t)?t:[t]}function TQ(t,e,n){return ou(r=>n[r])}function PQ(t){return(e,n,r)=>ou(i=>t(e[i]))}function CQ(t){return(e,n,r)=>(i,a)=>t.reduce((o,s)=>o!==0?o:dr(e[i][s],e[a][s]),0)}function kQ(t,e,n){return ou(r=>e[r])}function RQ(t,e,n){const r=ts(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 ou(o=>a.get(n[o]))}function LQ(t,e,n){const r=ts(t),i=Array.from(Kn(r,o=>n[+o]).entries()),a=new Map(i.map(([o,s])=>[o,sc(s,c=>e[c])]));return ou(o=>a.get(n[o]))}function ou(t){return(e,n)=>dr(t(e),t(n))}const fC=(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]=cn(u,"y"),[p,v]=cn(u,"y1"),[g]=o?Fl(u,"series","color"):cn(u,"color"),y=Po(e,s,c),b=cC(n)(l,d,g);b&&lC(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=[],I=[];for(const rt of N){const wt=w[rt]=+d[rt]-k;wt<0?I.push(rt):wt>=0&&R.push(rt)}const F=R.length>0?R:I,B=I.length>0?I:R;let z=R.length-1,Y=0;for(;z>0&&d[F[z]]===0;)z--;for(;Y0?tt=_[rt]=(O[rt]=tt)+wt:_[rt]=O[rt]=tt}}const A=new Set(M),P=new Set(E),C=i==="y"?_:O,D=a==="y"?_:O;return[s,Nt({},c,{encode:{y0:Dd(d,h),y:Dn(C,h),y1:Dn(D,v)},style:Object.assign({first:(N,k)=>A.has(k),last:(N,k)=>P.has(k)},f)})]}};fC.props={};function dC(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 NQ(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 hC(t,e){const n=NQ(t,e);return n&&Math.sqrt(n)}function IQ(t,e,n){const r=dC(t),i=hC(t);return r&&i?Math.ceil((n-e)*Math.cbrt(r)/(3.49*i)):1}var pC=Array.prototype,jQ=pC.slice,$pt=pC.map;function Hy(t){return()=>t}const DQ=Math.sqrt(50),FQ=Math.sqrt(10),BQ=Math.sqrt(2);function mh(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>=DQ?10:a>=FQ?5:a>=BQ?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 WQ(t){return Math.max(1,Math.ceil(Math.log(dC(t))/Math.LN2)+1)}function HQ(){var t=ul,e=Da,n=WQ;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===Da){const O=su(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));Yy(t,e,h,p,i)}const a=t[e];let o=n,s=r;for(cu(t,n,e),i(t[r],a)>0&&cu(t,n,r);o0;)--s}i(t[n],a)===0?cu(t,n,s):(++s,cu(t,s,r)),s<=e&&(n=s+1),e<=s&&(r=s-1)}return t}function cu(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function YQ(t,e=dr){let n,r=!1;if(e.length===1){let i;for(const a of t){const o=e(a);(r?dr(o,i)>0:dr(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 bh(t,e,n){if(t=Float64Array.from(wZ(t,n)),!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return Mi(t);if(e>=1)return Mn(t);var r,i=(r-1)*e,a=Math.floor(i),o=Mn(Yy(t,a).subarray(0,a+1)),s=Mi(t.subarray(a+1));return o+(s-o)*(i-a)}}function Upt(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 VQ(t,e,n=my){if(!isNaN(e=+e)){if(r=Float64Array.from(t,(s,c)=>my(n(t[c],c,t))),e<=0)return hh(r);if(e>=1)return sc(r);var r,i=Uint32Array.from(t,(s,c)=>c),a=r.length-1,o=Math.floor(a*e);return Yy(i,o,0,a,(s,c)=>Kl(r[s],r[c])),o=YQ(i.subarray(0,o+1),s=>r[s]),o>=0?o:-1}}function Vy(t,e){return bh(t,.5,e)}function $Q(t,e){return VQ(t,.5,e)}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);ie===null?t:`${t} of ${e}`}function UQ(t){if(typeof t=="function")return[t,null];const n={mean:qQ,max:KQ,count:JQ,first:eJ,last:nJ,sum:tJ,min:QQ,median:ZQ}[t];if(!n)throw new Error(`Unknown reducer: ${t}.`);return n()}function qQ(){const t=(n,r)=>ru(n,i=>+r[i]),e=Co("mean");return[t,e]}function ZQ(){const t=(n,r)=>Vy(n,i=>+r[i]),e=Co("median");return[t,e]}function KQ(){const t=(n,r)=>Mn(n,i=>+r[i]),e=Co("max");return[t,e]}function QQ(){const t=(n,r)=>Mi(n,i=>+r[i]),e=Co("min");return[t,e]}function JQ(){const t=(n,r)=>n.length,e=Co("count");return[t,e]}function tJ(){const t=(n,r)=>Ii(n,i=>+r[i]),e=Co("sum");return[t,e]}function eJ(){const t=(n,r)=>r[n[0]],e=Co("first");return[t,e]}function nJ(){const t=(n,r)=>r[n[n.length-1]],e=Co("last");return[t,e]}const $y=(t={})=>{const{groupBy:e}=t,n=XQ(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]=cn(o,v);return g},l=Object.entries(n).map(([h,p])=>{const[v,g]=UQ(p),[y,m]=cn(o,h),b=c(m,p),_=s.map(O=>v(O,y!=null?y:a));return[h,Object.assign(Object.assign({},BX(_,(g==null?void 0:g(b))||b)),{aggregate:!0})]}),u=Object.keys(o).map(h=>{const[p,v]=cn(o,h),g=s.map(y=>p[y[0]]);return[h,Dn(g,v)]}),f=s.map(h=>a[h[0]]);return[ts(s),Nt({},i,{data:f,encode:Object.fromEntries([...u,...l])})]}};$y.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{groupChannels:e=["color"],binChannels:n=["x","y"]}=t,r=rJ(t,["groupChannels","binChannels"]),i={},a=(o,s)=>{const{encode:c}=s,l=n.map(p=>{const[v]=cn(c,p);return v}),u=se(r,vC),f=o.filter(p=>l.every(v=>Ln(v[p]))),d=[...e.map(p=>{const[v]=cn(c,p);return v}).filter(Ln).map(p=>v=>p[v]),...n.map((p,v)=>{const g=l[v],y=u[p]||iJ(g),m=HQ().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 $y(Object.assign(Object.assign(Object.assign({},Object.fromEntries(Object.entries(r).filter(([o])=>!o.startsWith(vC)))),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}))};Xy.props={};const gC=(t={})=>{const{thresholds:e}=t;return Xy(Object.assign(Object.assign({},t),{thresholdsX:e,groupChannels:["color"],binChannels:["x"]}))};gC.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{groupBy:e="x",reverse:n=!1,orderBy:r,padding:i}=t,a=aJ(t,["groupBy","reverse","orderBy","padding"]);return(o,s)=>{const{data:c,encode:l,scale:u}=s,{series:f}=u,[d]=cn(l,"y"),[h]=Fl(l,"series","color"),p=uC(h,f),v=Po(e,o,s),y=cC(r)(c,d,h);y&&lC(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]=cn(s,"x"),[d]=cn(s,"y"),h=xh(f,l,n),p=xh(d,u,r),v=a.map(()=>_h(i(),...p)),g=a.map(()=>_h(i(),...h));return[a,Nt({scale:{x:{padding:.5},y:{padding:.5}}},o,{encode:{dy:Dn(v),dx:Dn(g)}})]}};mC.props={};const bC=(t={})=>{const{padding:e=0,random:n=Math.random}=t;return(r,i)=>{const{encode:a,scale:o}=i,{x:s}=o,[c]=cn(a,"x"),l=xh(c,s,e),u=r.map(()=>_h(n(),...l));return[r,Nt({scale:{x:{padding:.5}}},i,{encode:{dx:Dn(u)}})]}};bC.props={};const xC=(t={})=>{const{padding:e=0,random:n=Math.random}=t;return(r,i)=>{const{encode:a,scale:o}=i,{y:s}=o,[c]=cn(a,"y"),l=xh(c,s,e),u=r.map(()=>_h(n(),...l));return[r,Nt({scale:{y:{padding:.5}}},i,{encode:{dy:Dn(u)}})]}};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{groupBy:e="x"}=t;return(n,r)=>{const{encode:i}=r,{x:a}=i,o=oJ(i,["x"]),s=Object.entries(o).filter(([d])=>d.startsWith("y")).map(([d])=>[d,cn(i,d)[0]]),c=s.map(([d])=>[d,new Array(n.length)]),l=Po(e,n,r),u=new Array(l.length);for(let d=0;ds.map(([,m])=>+m[y])),[v,g]=Da(p);u[d]=(v+g)/2}const f=Math.max(...u);for(let d=0;d[d,Dn(h,cn(i,d)[1])]))})]}};_C.props={};const OC=(t={})=>{const{groupBy:e="x",series:n=!0}=t;return(r,i)=>{const{encode:a}=i,[o]=cn(a,"y"),[s,c]=cn(a,"y1"),[l]=n?Fl(a,"series","color"):cn(a,"color"),u=Po(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:Dn(f,c)}})]}};OC.props={};const wC=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,cn(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]=cn(c,r);g&&f.sort((y,m)=>n(y,g)-n(m,g)),i&&f.reverse()}const d=(a||3e3)/f.length,[h]=a?[xo(o,d)]:Fl(c,"enterDuration",xo(o,d)),[p]=Fl(c,"enterDelay",xo(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:Fd(h),enterDelay:Fd(v)}})]}};wC.props={};var sJ=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);iMi(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)=>ru(n,i=>r[+i]),median:(n,r)=>Vy(n,i=>r[+i]),sum:(n,r)=>Ii(n,i=>r[+i]),deviation:(n,r)=>hC(n,i=>r[+i])}[t]||Mn}const SC=(t={})=>{const{groupBy:e="x",basis:n="max"}=t;return(r,i)=>{const{encode:a,tooltip:o}=i,{x:s}=a,c=sJ(a,["x"]),l=Object.entries(c).filter(([v])=>v.startsWith("y")).map(([v])=>[v,cn(a,v)[0]]),[,u]=l.find(([v])=>v==="y"),f=l.map(([v])=>[v,new Array(r.length)]),d=Po(e,r,i),h=cJ(n);for(const v of d){const g=h(v,u);for(const y of v)for(let m=0;m[v,Dn(g,cn(a,v)[1])]))},!p&&a.y0&&{tooltip:{items:[{channel:"y0"}]}}))]}};SC.props={};function MC(t,e){return[t[0]]}function lJ(t,e){const n=t.length-1;return[t[n]]}function uJ(t,e){const n=sc(t,r=>e[r]);return[t[n]]}function fJ(t,e){const n=hh(t,r=>e[r]);return[t[n]]}function dJ(t){return typeof t=="function"?t:{first:MC,last:lJ,max:uJ,min:fJ}[t]||MC}const Oh=(t={})=>{const{groupBy:e="series",channel:n,selector:r}=t;return(i,a)=>{const{encode:o}=a,s=Po(e,i,a),[c]=cn(o,n),l=dJ(r);return[s.flatMap(u=>l(u,c)),a]}};Oh.props={};var hJ=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=hJ(t,["selector"]);return Oh(Object.assign({channel:"x",selector:e},n))};EC.props={};var pJ=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=pJ(t,["selector"]);return Oh(Object.assign({channel:"y",selector:e},n))};AC.props={};var vJ=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=vJ(t,["channels"]),r=(i,a)=>Po(e,i,a);return $y(Object.assign(Object.assign({},n),{groupBy:r}))};lu.props={};const TC=(t={})=>lu(Object.assign(Object.assign({},t),{channels:["x","color","series"]}));TC.props={};const PC=(t={})=>lu(Object.assign(Object.assign({},t),{channels:["y","color","series"]}));PC.props={};const CC=(t={})=>lu(Object.assign(Object.assign({},t),{channels:["color"]}));CC.props={};function gJ(t,e,n){return(e.length!==2?za(ev(t,e,n),([r,i],[a,o])=>dr(i,o)||dr(r,a)):za(Kn(t,n),([r,i],[a,o])=>e(i,o)||dr(r,a))).map(([r])=>r)}var kC=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=>Mi(o,s=>+a[s]);if(i==="sum")return o=>Ii(o,s=>+a[s]);if(i==="median")return o=>Vy(o,s=>+a[s]);if(i==="mean")return o=>ru(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 mJ(t,e,n){const{reverse:r,channel:i}=n,{encode:a}=e,[o]=cn(a,i),s=za(t,c=>o[c]);return r&&s.reverse(),[s,e]}function bJ(t,e,n){if(!Array.isArray(n))return t;const r=new Set(n);return t.filter(i=>r.has(e[i]))}function xJ(t,e,n){var r;const{reverse:i,slice:a,channel:o}=n,s=kC(n,["reverse","slice","channel"]),{encode:c,scale:l={}}=e,u=(r=l[o])===null||r===void 0?void 0:r.domain,[f]=cn(c,o),d=yJ(o,s,c),h=bJ(t,f,u),p=gJ(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 wh=(t={})=>{const{reverse:e=!1,slice:n,channel:r,ordinal:i=!0}=t,a=kC(t,["reverse","slice","channel","ordinal"]);return(o,s)=>i?xJ(o,s,Object.assign({reverse:e,slice:n,channel:r},a)):mJ(o,s,Object.assign({reverse:e,slice:n,channel:r},a))};wh.props={};const RC=(t={})=>wh(Object.assign(Object.assign({},t),{channel:"x"}));RC.props={};const LC=(t={})=>wh(Object.assign(Object.assign({},t),{channel:"y"}));LC.props={};const NC=(t={})=>wh(Object.assign(Object.assign({},t),{channel:"color"}));NC.props={};function _J(t,e){return typeof e=="string"?t.map(n=>n[e]):t.map(e)}function OJ(t,e){if(typeof t=="function")return n=>t(n,e);if(t==="sum")return n=>Ii(n,r=>+e[r]);throw new Error(`Unknown reducer: ${t}`)}const IC=(t={})=>{const{field:e,channel:n="y",reducer:r="sum"}=t;return(i,a)=>{const{data:o,encode:s}=a,[c]=cn(s,"x"),l=e?_J(o,e):cn(s,n)[0],u=OJ(r,l),f=nv(i,u,d=>c[d]).map(d=>d[1]);return[i,Nt({},a,{scale:{x:{flex:f}}})]}};IC.props={};function wJ(t){const{padding:e=0,direction:n="col"}=t;return(r,i,a)=>{const o=r.length;if(o===0)return[];const{innerWidth:s,innerHeight:c}=a,l=c/s;let u=Math.ceil(Math.sqrt(i/l)),f=s/u,d=Math.ceil(i/u),h=d*f;for(;h>c;)u=u+1,f=s/u,d=Math.ceil(i/u),h=d*f;const p=c-d*f,v=d<=1?0:p/(d-1),[g,y]=d<=1?[(s-o*f)/(o-1),(c-f)/2]:[0,0];return r.map((m,b)=>{const[_,O,w,M]=Wv(m),E=n==="col"?b%u:Math.floor(b/d),A=n==="col"?Math.floor(b/u):b%d,P=E*f,C=(d-A-1)*f+p,D=(f-e)/w,N=(f-e)/M,k=P-_+g*E+1/2*e,R=C-O-v*A-y+1/2*e;return`translate(${k}, ${R}) scale(${D}, ${N})`})}}const jC=t=>(e,n)=>[e,Nt({},n,{modifier:wJ(t),axis:!1})];jC.props={};function SJ(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 MJ(t){if(typeof t=="function")return t;if(t==="lttb")return SJ;const e={first:r=>[r[0]],last:r=>[r[r.length-1]],min:(r,i,a)=>[r[hh(r,o=>a[o])]],max:(r,i,a)=>[r[sc(r,o=>a[o])]],median:(r,i,a)=>[r[$Q(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 EJ(r,s).flatMap(l=>n(l,i,a))}}function EJ(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=MJ(e);return(a,o)=>{const{encode:s}=o,c=Po(r,a,o),[l]=cn(s,"x"),[u]=cn(s,"y");return[c.flatMap(f=>i(f,l,u,n)),o]}};DC.props={};function AJ(t){return typeof t=="object"?[t.value,t.ordinal]:[t,!0]}const FC=(t={})=>(e,n)=>{const{encode:r,data:i}=n,a=Object.entries(t).map(([u,f])=>{const[d]=cn(r,u);if(!d)return null;const[h,p=!0]=AJ(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(Ln);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])})]};FC.props={};var BC={},Uy={},qy=34,uu=10,Zy=13;function zC(t){return new Function("d","return {"+t.map(function(e,n){return JSON.stringify(e)+": d["+n+'] || ""'}).join(",")+"}")}function TJ(t,e){var n=zC(t);return function(r,i){return e(n(r),i,t)}}function GC(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 yi(t,e){var n=t+"",r=n.length;return r9999?"+"+yi(t,6):yi(t,4)}function CJ(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":PJ(t.getUTCFullYear(),4)+"-"+yi(t.getUTCMonth()+1,2)+"-"+yi(t.getUTCDate(),2)+(i?"T"+yi(e,2)+":"+yi(n,2)+":"+yi(r,2)+"."+yi(i,3)+"Z":r?"T"+yi(e,2)+":"+yi(n,2)+":"+yi(r,2)+"Z":n||e?"T"+yi(e,2)+":"+yi(n,2)+"Z":"")}function kJ(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?TJ(g,d):zC(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)===uu&&--p,f.charCodeAt(p-1)===Zy&&--p;function _(){if(m)return Uy;if(b)return b=!1,BC;var w,M=v,E;if(f.charCodeAt(M)===qy){for(;v++=p?m=!0:(E=f.charCodeAt(v++))===uu?b=!0:E===Zy&&(b=!0,f.charCodeAt(v)===uu&&++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()=>NJ(void 0,void 0,void 0,function*(){const a=yield fetch(e);if(n==="csv"){const o=yield a.text();return kJ(r).parse(o,i?RJ:Jo)}else if(n==="json")return yield a.json();throw new Error(`Unknown format: ${n}.`)})};WC.props={};const HC=t=>{const{value:e}=t;return()=>e};HC.props={};function IJ(t,e){return t.map(n=>{if(Array.isArray(n)){const[r,i=e]=n;return[r,i]}return[n,e]})}const YC=t=>{const{fields:e=[]}=t,n=IJ(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)}};YC.props={};function qpt(t){return t!=null&&!Number.isNaN(t)}const VC=t=>{const{callback:e}=t;return n=>Array.isArray(n)?[...n].sort(e):n};VC.props={};function jJ(t){return t!=null&&!Number.isNaN(t)}const $C=t=>{const{callback:e=jJ}=t;return n=>n.filter(e)};$C.props={};function DJ(t,e=[]){return e.reduce((n,r)=>(r in t&&(n[r]=t[r]),n),{})}const XC=t=>{const{fields:e}=t;return n=>n.map(r=>DJ(r,e))};XC.props={};function FJ(t){return Object.keys(t).length===0}const UC=t=>e=>{if(!t||FJ(t))return e;const n=r=>Object.entries(r).reduce((i,[a,o])=>(i[t[a]||a]=o,i),{});return e.map(n)};UC.props={};function BJ(t){return!t||Object.keys(t).length===0}const qC=t=>{const{fields:e,key:n="key",value:r="value"}=t;return i=>BJ(e)?i:i.flatMap(a=>e.map(o=>Object.assign(Object.assign({},a),{[n]:o,[r]:a[o]})))};qC.props={};const ZC=t=>{const{start:e,end:n}=t;return r=>r.slice(e,n)};ZC.props={};const KC=t=>{const{callback:e=Jo}=t;return n=>e(n)};KC.props={};const QC=t=>{const{callback:e=Jo}=t;return n=>Array.isArray(n)?n.map(e):n};QC.props={};function JC(t){return typeof t=="string"?e=>e[t]:t}const tk=t=>{const{join:e,on:n,select:r=[],as:i=r,unknown:a=NaN}=t,[o,s]=n,c=JC(s),l=JC(o),u=ev(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),{}))})};tk.props={};var zJ=mt(78434),GJ=mt.n(zJ);function Zpt(t){return t!=null&&!Number.isNaN(t)}const ek=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=GJ().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})})};ek.props={};const nk=()=>t=>(console.log("G2 data section:",t),t);nk.props={};function Ky(t){const{min:e,max:n}=t;return[[e[0],e[1]],[n[0],n[1]]]}function rk(t,e){const[n,r]=t,[i,a]=e;return n>=i[0]&&n<=a[0]&&r>=i[1]&&r<=a[1]}function WJ(t,e){const[n,r]=t;return!(rk(n,e)&&rk(r,e))}function HJ(t,e){const[n,r]=t,[i,a]=e;return n[0]i[0]&&n[1]i[1]}const YJ=t=>{const{priority:e}=t;return n=>{const r=[];return e&&n.sort(e),n.forEach(i=>{mg(i);const a=i.getLocalBounds();r.some(s=>HJ(Ky(a),Ky(s.getLocalBounds())))?yg(i):r.push(i)}),n}};function VJ([t,e],[n,r]){return r>t&&e>n}function Sh(){const t=new Map;return[r=>t.get(r),(r,i)=>t.set(r,i)]}function $J(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 XJ=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]=Sh(),[c,l]=Sh(),[u,f]=Sh(),[d,h]=Sh();for(const p of i){const{min:v,max:g}=$J(p),[y,m]=v,[b,_]=g;s(p,m),l(p,m),f(p,_-m),h(p,[y,b])}for(let p=0;pdr(c(g),c(y)));let v=0;for(let g=0;gt=>(t.forEach(e=>{mg(e);const n=e.attr("bounds"),r=e.getLocalBounds();WJ(Ky(r),n)&&yg(e)}),t);function qJ(t){return typeof t=="object"?t:Pa(t)}function Qy(t){let e=t/255;return e=e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4),e}function ik(t,e,n){return .2126*Qy(t)+.7152*Qy(e)+.0722*Qy(n)}function ak(t,e){const{r:n,g:r,b:i}=t,{r:a,g:o,b:s}=e,c=ik(n,r,i),l=ik(a,o,s);return(Math.max(c,l)+.05)/(Math.min(c,l)+.05)}function ZJ(t,e){const n=sc(e,r=>ak(t,qJ(r)));return e[n]}const KJ=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;ak(o,a)t;function Mh(t,e){t&&sk.hasOwnProperty(t.type)&&sk[t.type](t,e)}var ok={Feature:function(t,e){Mh(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 Kpt(t,e){const n=new Ya;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 Qpt(t,e){const n=new Ya;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,lk=1e-12,sn=Math.PI,yr=sn/2,uk=sn/4,Ti=sn*2,Zr=180/sn,hr=sn/180,mn=Math.abs,Pc=Math.atan,Va=Math.atan2,rn=Math.cos,Eh=Math.ceil,fk=Math.exp,Jpt=Math.floor,t0t=Math.hypot,Ah=Math.log,tm=Math.pow,Ke=Math.sin,Hi=Math.sign||function(t){return t>0?1:t<0?-1:0},mi=Math.sqrt,em=Math.tan;function dk(t){return t>1?0:t<-1?sn:Math.acos(t)}function Yi(t){return t>1?yr:t<-1?-yr:Math.asin(t)}function e0t(t){return(t=Ke(t/2))*t}function Vi(){}var nm=new Ya,rm=new Ya,hk,pk,im,am,ko={point:Vi,lineStart:Vi,lineEnd:Vi,polygonStart:function(){ko.lineStart=JJ,ko.lineEnd=ett},polygonEnd:function(){ko.lineStart=ko.lineEnd=ko.point=Vi,nm.add(mn(rm)),rm=new Ya},result:function(){var t=nm/2;return nm=new Ya,t}};function JJ(){ko.point=ttt}function ttt(t,e){ko.point=vk,hk=im=t,pk=am=e}function vk(t,e){rm.add(am*t-im*e),im=t,am=e}function ett(){vk(hk,pk)}var gk=ko,Cc=1/0,Th=Cc,du=-Cc,Ph=du,ntt={point:rtt,lineStart:Vi,lineEnd:Vi,polygonStart:Vi,polygonEnd:Vi,result:function(){var t=[[Cc,Th],[du,Ph]];return du=Ph=-(Th=Cc=1/0),t}};function rtt(t,e){tdu&&(du=t),ePh&&(Ph=e)}var Ch=ntt,om=0,sm=0,hu=0,kh=0,Rh=0,kc=0,cm=0,lm=0,pu=0,yk,mk,xa,_a,Ji={point:Os,lineStart:bk,lineEnd:xk,polygonStart:function(){Ji.lineStart=ott,Ji.lineEnd=stt},polygonEnd:function(){Ji.point=Os,Ji.lineStart=bk,Ji.lineEnd=xk},result:function(){var t=pu?[cm/pu,lm/pu]:kc?[kh/kc,Rh/kc]:hu?[om/hu,sm/hu]:[NaN,NaN];return om=sm=hu=kh=Rh=kc=cm=lm=pu=0,t}};function Os(t,e){om+=t,sm+=e,++hu}function bk(){Ji.point=itt}function itt(t,e){Ji.point=att,Os(xa=t,_a=e)}function att(t,e){var n=t-xa,r=e-_a,i=mi(n*n+r*r);kh+=i*(xa+t)/2,Rh+=i*(_a+e)/2,kc+=i,Os(xa=t,_a=e)}function xk(){Ji.point=Os}function ott(){Ji.point=ctt}function stt(){_k(yk,mk)}function ctt(t,e){Ji.point=_k,Os(yk=xa=t,mk=_a=e)}function _k(t,e){var n=t-xa,r=e-_a,i=mi(n*n+r*r);kh+=i*(xa+t)/2,Rh+=i*(_a+e)/2,kc+=i,i=_a*t-xa*e,cm+=i*(xa+t),lm+=i*(_a+e),pu+=i*3,Os(xa=t,_a=e)}var Ok=Ji;function wk(t){this._context=t}wk.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,Ti);break}}},result:Vi};var um=new Ya,fm,Sk,Mk,vu,gu,Lh={point:Vi,lineStart:function(){Lh.point=ltt},lineEnd:function(){fm&&Ek(Sk,Mk),Lh.point=Vi},polygonStart:function(){fm=!0},polygonEnd:function(){fm=null},result:function(){var t=+um;return um=new Ya,t}};function ltt(t,e){Lh.point=Ek,Sk=vu=t,Mk=gu=e}function Ek(t,e){vu-=t,gu-=e,um.add(mi(vu*vu+gu*gu)),vu=t,gu=e}var Ak=Lh;let Tk,Nh,Pk,Ck;class kk{constructor(e){this._append=e==null?Rk:utt(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!==Pk||this._append!==Nh){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`,Pk=r,Nh=this._append,Ck=this._,this._=i}this._+=Ck;break}}}result(){const e=this._;return this._="",e.length?e:null}}function Rk(t){let e=1;this._+=t[0];for(const n=t.length;e=0))throw new RangeError(`invalid digits: ${t}`);if(e>15)return Rk;if(e!==Tk){const n=wr(10,e);Tk=e,Nh=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 kk(n)),o},o.projection(t).digits(n).context(e)}function Rc(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(Rc(Eh(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=Nk(a,i,90),h=Ik(e,t,g),p=Nk(s,o,90),v=Ik(r,n,g),y):g},y.extentMajor([[-180,-90+De],[180,90-De]]).extentMinor([[-180,-80-De],[180,80+De]])}function dtt(){return ftt()()}function jk(){var t=[],e;return{point:function(n,r,i){e.push([n,r,i])},lineStart:function(){t.push(e=[])},lineEnd:Vi,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}}function Ih(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 Fk(t){if(e=t.length){for(var e,n=0,r=t[0],i;++n=0?1:-1,P=A*E,C=P>sn,D=g*w;if(c.add(Va(D*A*Ke(P),y*M+D*rn(P))),o+=C?E+A*Ti:E,C^p>=n^_>=n){var N=Fh(Lc(h),Lc(b));pm(N);var k=Fh(a,N);pm(k);var R=(C^E>=0?-1:1)*Yi(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(vtt))}}return d}}function vtt(t){return t.length>1}function gtt(t,e){return((t=t.x)[0]<0?t[1]-yr-De:yr-t[1])-((e=e.x)[0]<0?e[1]-yr-De:yr-e[1])}var Gk=zk(function(){return!0},ytt,btt,[-sn,-yr]);function ytt(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)De?Pc((Ke(e)*(a=rn(r))*Ke(n)-Ke(r)*(i=rn(e))*Ke(t))/(i*a*o)):(e+r)/2}function btt(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])>De){var a=t[0]0?ia)&&(i+=r*Ti));for(var l,u=i;r>0?u>a:u0,i=mn(e)>De;function a(u,f,d,h){Wk(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||Ih(f,b)||Ih(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||!Ih(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=Lc(u),p=Lc(f),v=[1,0,0],g=Fh(h,p),y=Dh(g,g),m=g[0],b=y-m*m;if(!b)return!d&&u;var _=e*y/b,O=-e*m/b,w=Fh(v,g),M=Bh(v,_),E=Bh(g,O);hm(M,E);var A=w,P=Dh(M,A),C=Dh(A,A),D=P*P-C*(Dh(M,M)-1);if(!(D<0)){var N=mi(D),k=Bh(A,(-P-N)/C);if(hm(k,M),k=dm(k),!d)return k;var R=u[0],I=f[0],F=u[1],B=f[1],z;I0^k[1]<(mn(k[0]-R)sn^(R<=k[0]&&k[0]<=I)){var rt=Bh(A,(-P+N)/C);return hm(rt,M),[k,dm(rt)]}}}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 zk(o,s,a,r?[0,-t]:[-sn,t-sn])}function _tt(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 yu=1e9,zh=-yu;function Yk(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=jk(),d,h,p,v,g,y,m,b,_,O,w,M={point:E,lineStart:D,lineEnd:N,polygonStart:P,polygonEnd:C};function E(R,I){i(R,I)&&u.point(R,I)}function A(){for(var R=0,I=0,F=h.length;Ir&&(wt-tt)*(r-rt)>(Bt-rt)*(t-tt)&&++R:Bt<=r&&(wt-tt)*(r-rt)<(Bt-rt)*(t-tt)&&--R;return R}function P(){u=f,d=[],h=[],w=!0}function C(){var R=A(),I=w&&R,F=(d=Bk(d)).length;(I||F)&&(l.polygonStart(),I&&(l.lineStart(),a(null,null,1,l),l.lineEnd()),F&&Dk(d,s,R,a,l),l.polygonEnd()),u=l,d=h=p=null}function D(){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,I){var F=i(R,I);if(h&&p.push([R,I]),O)v=R,g=I,y=F,O=!1,F&&(u.lineStart(),u.point(R,I));else if(F&&_)u.point(R,I);else{var B=[m=Math.max(zh,Math.min(yu,m)),b=Math.max(zh,Math.min(yu,b))],z=[R=Math.max(zh,Math.min(yu,R)),I=Math.max(zh,Math.min(yu,I))];_tt(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,I),w=!1)}m=R,b=I,_=F}return M}}function gm(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 ym(t,e){return mn(t)>sn&&(t-=Math.round(t/Ti)*Ti),[t,e]}ym.invert=ym;function Vk(t,e,n){return(t%=Ti)?e||n?gm(Xk(t),Uk(e,n)):Xk(t):e||n?Uk(e,n):ym}function $k(t){return function(e,n){return e+=t,mn(e)>sn&&(e-=Math.round(e/Ti)*Ti),[e,n]}}function Xk(t){var e=$k(t);return e.invert=$k(-t),e}function Uk(t,e){var n=rn(t),r=Ke(t),i=rn(e),a=Ke(e);function o(s,c){var l=rn(c),u=rn(s)*l,f=Ke(s)*l,d=Ke(c),h=d*n+u*r;return[Va(f*i-h*a,u*n-d*r),Yi(h*i+f*a)]}return o.invert=function(s,c){var l=rn(c),u=rn(s)*l,f=Ke(s)*l,d=Ke(c),h=d*i-f*a;return[Va(f*i+d*a,u*n+h*r),Yi(h*n-u*r)]},o}function Ott(t){t=Vk(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]*=Zr,n[1]*=Zr,n}return e.invert=function(n){return n=t.invert(n[0]*hr,n[1]*hr),n[0]*=Zr,n[1]*=Zr,n},e}function r0t(t){return{stream:mu(t)}}function mu(t){return function(e){var n=new mm;for(var r in t)n[r]=t[r];return n.stream=e,n}}function mm(){}mm.prototype={constructor:mm,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 bm(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),r!=null&&t.clipExtent(null),Tc(n,t.stream(Ch)),e(Ch.result()),r!=null&&t.clipExtent(r),t}function Gh(t,e,n){return bm(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 xm(t,e,n){return Gh(t,[[0,0],e],n)}function _m(t,e,n){return bm(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 Om(t,e,n){return bm(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 qk=16,wtt=rn(30*hr);function Zk(t,e){return+e?Mtt(t,e):Stt(t)}function Stt(t){return mu({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}function Mtt(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=mi(_*_+O*O+w*w),E=Yi(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*Zr,c*Zr,l*Zr]},C.angle=function(R){return arguments.length?(f=R%360*hr,N()):f*Zr},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=Zk(M,O=R*R),k()):mi(O)},C.fitExtent=function(R,I){return Gh(C,R,I)},C.fitSize=function(R,I){return xm(C,R,I)},C.fitWidth=function(R,I){return _m(C,R,I)},C.fitHeight=function(R,I){return Om(C,R,I)};function N(){var R=Kk(n,0,0,d,h,f).apply(null,e(a,o)),I=Kk(n,r-R[0],i-R[1],d,h,f);return u=Vk(s,c,l),M=gm(e,I),E=gm(u,M),w=Zk(M,O),k()}function k(){return A=P=null,C}return function(){return e=t.apply(this,arguments),C.invert=e.invert&&D,N()}}function Sm(t){var e=0,n=sn/3,r=wm(t),i=r(e,n);return i.parallels=function(a){return arguments.length?r(e=a[0]*hr,n=a[1]*hr):[e*Zr,n*Zr]},i}function Ptt(t){var e=rn(t);function n(r,i){return[r*e,Ke(i)/e]}return n.invert=function(r,i){return[r/e,Yi(i*e)]},n}function Qk(t,e){var n=Ke(t),r=(n+Ke(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=Ctt([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 Gh(u,d,h)},u.fitSize=function(d,h){return xm(u,d,h)},u.fitWidth=function(d,h){return _m(u,d,h)},u.fitHeight=function(d,h){return Om(u,d,h)};function f(){return t=e=null,u}return u.scale(1070)}function t5(t){return function(e,n){var r=rn(e),i=rn(n),a=t(r*i);return a===1/0?[2,0]:[a*i*Ke(e),a*Ke(n)]}}function bu(t){return function(e,n){var r=mi(e*e+n*n),i=t(r),a=Ke(i),o=rn(i);return[Va(e*a,r*o),Yi(r&&n*a/r)]}}var Mm=t5(function(t){return mi(2/(1+t))});Mm.invert=bu(function(t){return 2*Yi(t/2)});function Rtt(){return Oa(Mm).scale(124.75).clipAngle(180-.001)}var Em=t5(function(t){return(t=dk(t))&&t/Ke(t)});Em.invert=bu(function(t){return t});function Ltt(){return Oa(Em).scale(79.4188).clipAngle(180-.001)}function xu(t,e){return[t,Ah(em((yr+e)/2))]}xu.invert=function(t,e){return[t,2*Pc(fk(e))-yr]};function Ntt(){return e5(xu).scale(961/Ti)}function e5(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(Ott(e.rotate()).invert([0,0]));return a(o==null?[[d[0]-f,d[1]-f],[d[0]+f,d[1]+f]]:t===xu?[[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 Hh(t){return em((yr+t)/2)}function n5(t,e){var n=rn(t),r=t===e?Ke(t):Ah(n/rn(e))/Ah(Hh(e)/Hh(t)),i=n*tm(Hh(t),r)/r;if(!r)return xu;function a(o,s){i>0?s<-yr+De&&(s=-yr+De):s>yr-De&&(s=yr-De);var c=i/tm(Hh(s),r);return[c*Ke(r*o),i-c*rn(r*o)]}return a.invert=function(o,s){var c=i-s,l=Hi(r)*mi(o*o+c*c),u=Va(o,mn(c))*Hi(c);return c*r<0&&(u-=sn*Hi(o)*Hi(c)),[u/r,2*Pc(tm(i/l,1/r))-yr]},a}function Itt(){return Sm(n5).scale(109.5).parallels([30,30])}function _u(t,e){return[t,e]}_u.invert=_u;function jtt(){return Oa(_u).scale(152.63)}function r5(t,e){var n=rn(t),r=t===e?Ke(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 Wtt(){return Oa(Pm).scale(175.295)}function Cm(t,e){return[rn(e)*Ke(t),Ke(e)]}Cm.invert=bu(Yi);function Htt(){return Oa(Cm).scale(249.5).clipAngle(90+De)}function km(t,e){var n=rn(e),r=1+rn(t)*n;return[n*Ke(t)/r,Ke(e)/r]}km.invert=bu(function(t){return 2*Pc(t)});function Ytt(){return Oa(km).scale(250).clipAngle(142)}function Rm(t,e){return[Ah(em((yr+e)/2)),-t]}Rm.invert=function(t,e){return[-e,2*Pc(fk(t))-yr]};function Vtt(){var t=e5(Rm),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 $tt=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);iqtt(e).features)}}function qtt(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 Ztt(t,e){var n;for(const[r,i]of Object.entries(e))(n=t[r])===null||n===void 0||n.call(t,i)}function Ktt(t,e,n,r){const i=()=>{const s=e.filter(i5);return s.find(l=>l.sphere)?{type:"Sphere"}:Utt(s.filter(l=>!l.sphere).flatMap(l=>l.data.value))},{outline:a=i()}=r,{size:o="fitExtent"}=r;if(o==="fitExtent")return Qtt(t,a,n);if(o==="fitWidth")return Jtt(t,a,n)}function Qtt(t,e,n){const{x:r,y:i,width:a,height:o}=n;t.fitExtent([[r,i],[a,o]],e)}function Jtt(t,e,n){const{width:r,height:i}=n,[[a,o],[s,c]]=Lk(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 tet(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:[dtt()]}}):n==="sphere"?Object.assign(Object.assign({},t),{sphere:!0,data:{value:[{type:"Sphere"}]}}):t}function i5(t){return t.type==="geoPath"}const a5=()=>t=>{const{children:e,coordinate:n={}}=t;if(!Array.isArray(e))return[];const{type:r="equalEarth"}=n,i=$tt(n,["type"]),a=Xtt(r),o=e.map(tet);let s;function c(){return[["custom",(f,d,h,p)=>{const v=a();Ktt(v,o,{x:f,y:d,width:h,height:p},i),Ztt(v,i),s=Lk(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:sg(h,{title:"id",items:[{channel:"color"}]}),style:Object.assign(Object.assign({},d),{d:p=>s(p)||[]})})}const u=f=>i5(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)})]};a5.props={};var eet=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=eet(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}]})]};o5.props={};function net(){return{"composition.geoView":a5,"composition.geoPath":o5}}function ret(t){const e=+this._x.call(null,t),n=+this._y.call(null,t);return s5(this.cover(e,n),e,n,t)}function s5(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 iet(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 fet(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}})}Vh.prototype=u5.prototype={constructor:Vh,on:function(e,n){var r=this._,i=_et(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;--Ic}function g5(){ws=(Xh=Pu.now())+Uh,Ic=Eu=0;try{Eet()}finally{Ic=0,Tet(),ws=0}}function Aet(){var t=Pu.now(),e=t-Xh;e>d5&&(Uh-=e,Xh=t)}function Tet(){for(var t,e=$h,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:$h=n);Tu=t,Im(r)}function Im(t){if(!Ic){Eu&&(Eu=clearTimeout(Eu));var e=t-ws;e>24?(t<1/0&&(Eu=setTimeout(g5,t-Pu.now()-Uh)),Au&&(Au=clearInterval(Au))):(Au||(Xh=Pu.now(),Au=setInterval(Aet,d5)),Ic=1,h5(g5))}}const Pet=1664525,Cet=1013904223,y5=4294967296;function ket(){let t=1;return()=>(t=(Pet*t+Cet)%y5)/y5}function Ret(t){return t.x}function Let(t){return t.y}var Net=10,Iet=Math.PI*(3-Math.sqrt(5));function jet(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),a=0,o=.6,s=new Map,c=v5(f),l=wet("tick","end"),u=ket();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 Det(){var t,e,n,r,i=Pi(-30),a,o=1,s=1/0,c=.81;function l(h){var p,v=t.length,g=c5(t,Ret,Let).visitAfter(f);for(r=h,p=0;p=s)return;(h.data!==e||h.next)&&(y===0&&(y=Nc(n),_+=y*y),m===0&&(m=Nc(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}},$et={type:"point",axis:!1,legend:!1,encode:{x:"x",y:"y",size:5,color:"group",shape:"point"},style:{stroke:"#fff"}},Xet={text:""};function Uet(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=Det(),f=Bet(i).id(ba(l));typeof o=="function"&&u.strength(o),typeof s=="function"&&f.strength(s);const d=jet(r).force("link",f).force("charge",u);a?d.force("center",zet()):d.force("x",Get()).force("y",Wet()),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=Het(n,["nodeKey","linkKey"]),h=Object.assign({nodeKey:u,linkKey:f},d),p=se(h,"node"),v=se(h,"link"),{links:g,nodes:y}=Ig(e,h),{nodesData:m,linksData:b}=Uet({links:g,nodes:y},Nt({},Yet,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({},Vet,{data:b,encode:v,labels:s,style:se(i,"link"),tooltip:_,animate:ga(c,"link")}),Nt({},$et,{data:m,encode:Object.assign({},p),scale:r,style:se(i,"node"),tooltip:O,labels:[Object.assign(Object.assign({},Xet),se(i,"label")),...o],animate:ga(c,"link")})]};b5.props={};function qet(t,e){return t.parent===e.parent?1:2}function jm(t){var e=t.children;return e?e[0]:t.t}function Dm(t){var e=t.children;return e?e[e.length-1]:t.t}function Zet(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 Ket(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 Qet(t,e,n){return t.a.parent===e.parent?t.a:n}function qh(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}qh.prototype=Object.create(gc.prototype);function Jet(t){for(var e=new qh(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 qh(a[o],o)),i.parent=n;return(e.parent=new qh(null,0)).children=[e],e}function tnt(){var t=qet,e=1,n=1,r=null;function i(l){var u=Jet(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){Ket(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=Dm(p),d=jm(d),p&&d;)v=jm(v),h=Dm(h),h.a=l,_=p.z+m-d.z-g+t(p._,d._),_>0&&(Zet(Qet(p,l,f),l,_),g+=_,y+=_),m+=p.m,g+=d.m,b+=v.m,y+=h.m;p&&!Dm(h)&&(h.t=p,h.m+=m-y),d&&!jm(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 ent(t,e){return t.parent===e.parent?1:2}function nnt(t){return t.reduce(rnt,0)/t.length}function rnt(t,e){return t+e.x}function int(t){return 1+t.reduce(ant,0)}function ant(t,e){return Math.max(t,e.y)}function ont(t){for(var e;e=t.children;)t=e[0];return t}function snt(t){for(var e;e=t.children;)t=e[e.length-1];return t}function cnt(){var t=ent,e=1,n=1,r=!1;function i(a){var o,s=0;a.eachAfter(function(d){var h=d.children;h?(d.x=nnt(h),d.y=int(h)):(d.x=o?s+=t(d,o):0,d.y=0,o=d)});var c=ont(a),l=snt(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 x5=t=>e=>n=>{const{field:r="value",nodeSize:i,separation:a,sortBy:o,as:s=["x","y"]}=e,[c,l]=s,u=vc(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}},_5=t=>x5(cnt)(t);_5.props={};const O5=t=>x5(tnt)(t);O5.props={};const lnt={sortBy:(t,e)=>e.value-t.value},unt={axis:!1,legend:!1,type:"point",encode:{x:"x",y:"y",size:2,shape:"point"}},fnt={type:"link",encode:{x:"x",y:"y",shape:"smooth"}},dnt={text:"",fontSize:10},w5=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}=O5(Object.assign(Object.assign(Object.assign({},lnt),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({},fnt,{data:d,encode:se(n,"link"),scale:se(r,"link"),labels:s,style:Object.assign({stroke:"#999"},se(i,"link")),tooltip:p,animate:ga(c,"link")}),Nt({},unt,{data:f,scale:se(r,"node"),encode:se(n,"node"),labels:[Object.assign(Object.assign({},dnt),se(i,"label")),...o],style:Object.assign({},se(i,"node")),tooltip:h,animate:ga(c,"node")})]};w5.props={};function Ss(){return 0}function jc(t){return function(){return t}}var hnt=1664525,pnt=1013904223,S5=4294967296;function vnt(){var t=1;return function(){return(t=(hnt*t+pnt)%S5)/S5}}var gnt=mt(31759);function ynt(t){return gnt(t)==="object"&&"length"in t?t:Array.from(t)}function mnt(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 i0t(t){return M5(t,lcg())}function M5(t,e){for(var n=0,r=(t=mnt(Array.from(t),e)).length,i=[],a,o;n0&&n*n>r*r+i*i}function Fm(t,e){for(var n=0;n1e-6?(C+Math.sqrt(C*C-4*P*D))/(2*P):D/C);return{x:r+w+M*N,y:i+E+A*N,r:N}}function T5(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 P5(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 C5(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 Kh(t){this._=t,this.next=null,this.previous=null}function k5(t,e){if(!(a=(t=ynt(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;T5(r,n,i=t[2]),n=new Kh(n),r=new Kh(r),i=new Kh(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}),Ent=(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"}}),Ant={text:"",position:"inside",textOverflow:"clip",wordWrap:!0,maxLines:1,wordWrapWidth:t=>t.r*2},Tnt={title:t=>t.data.name,items:[{field:"value"}]},Pnt=(t,e,n)=>{const{value:r}=n,i=jr(t)?Cg().path(e.path)(t):vc(t);return r?i.sum(a=>ba(r)(a)).sort(e.sort):i.count(),wnt().size(e.size).padding(e.padding)(i),i.descendants()},N5=(t,e)=>{const{width:n,height:r}=e,{data:i,encode:a={},scale:o={},style:s={},layout:c={},labels:l=[],tooltip:u={}}=t,f=Snt(t,["data","encode","scale","style","layout","labels","tooltip"]),d=Ent(n,r,a),h=Pnt(i,Nt({},Mnt(n,r),c),Nt({},d.encode,a)),p=se(s,"label");return Nt({},d,Object.assign(Object.assign({data:h,encode:a,scale:o,style:s,labels:[Object.assign(Object.assign({},Ant),p),...l]},f),{tooltip:sg(u,Tnt),axis:!1}))};N5.props={};function Cnt(t){return t.target.depth}function knt(t){return t.depth}function Rnt(t,e){return e-1-t.height}function Qh(t,e){return t.sourceLinks.length?t.depth:e-1}function Lnt(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?Mi(t.sourceLinks,Cnt)-1:0}function Jh(t){return function(){return t}}function I5(t,e){return tp(t.source,e.source)||t.index-e.index}function j5(t,e){return tp(t.target,e.target)||t.index-e.index}function tp(t,e){return t.y0-e.y0}function zm(t){return t.value}function Nnt(t){return t.index}function Int(t){return t.nodes}function jnt(t){return t.links}function D5(t,e){const n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function F5({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 Dnt(){let t=0,e=0,n=1,r=1,i=24,a=8,o,s=Nnt,c=Qh,l,u,f,d=Int,h=jnt,p=6;function v(I){const F={nodes:d(I),links:h(I)};return g(F),y(F),m(F),b(F),w(F),F5(F),F}v.update=function(I){return F5(I),I},v.nodeId=function(I){return arguments.length?(s=typeof I=="function"?I:Jh(I),v):s},v.nodeAlign=function(I){return arguments.length?(c=typeof I=="function"?I:Jh(I),v):c},v.nodeDepth=function(I){return arguments.length?(l=I,v):l},v.nodeSort=function(I){return arguments.length?(u=I,v):u},v.nodeWidth=function(I){return arguments.length?(i=+I,v):i},v.nodePadding=function(I){return arguments.length?(a=o=+I,v):a},v.nodes=function(I){return arguments.length?(d=typeof I=="function"?I:Jh(I),v):d},v.links=function(I){return arguments.length?(h=typeof I=="function"?I:Jh(I),v):h},v.linkSort=function(I){return arguments.length?(f=I,v):f},v.size=function(I){return arguments.length?(t=e=0,n=+I[0],r=+I[1],v):[n-t,r-e]},v.extent=function(I){return arguments.length?(t=+I[0][0],n=+I[1][0],e=+I[0][1],r=+I[1][1],v):[[t,e],[n,r]]},v.iterations=function(I){return arguments.length?(p=+I,v):p};function g({nodes:I,links:F}){I.forEach((z,Y)=>{z.index=Y,z.sourceLinks=[],z.targetLinks=[]});const B=new Map(I.map(z=>[s(z),z]));if(F.forEach((z,Y)=>{z.index=Y;let{source:U,target:tt}=z;typeof U!="object"&&(U=z.source=D5(B,U)),typeof tt!="object"&&(tt=z.target=D5(B,tt)),U.sourceLinks.push(z),tt.targetLinks.push(z)}),f!=null)for(const{sourceLinks:z,targetLinks:Y}of I)z.sort(f),Y.sort(f)}function y({nodes:I}){for(const F of I)F.value=F.fixedValue===void 0?Math.max(Ii(F.sourceLinks,zm),Ii(F.targetLinks,zm)):F.fixedValue}function m({nodes:I}){const F=I.length;let B=new Set(I),z=new Set,Y=0;for(;B.size;){if(B.forEach(U=>{U.depth=Y;for(const{target:tt}of U.sourceLinks)z.add(tt)}),++Y>F)throw new Error("circular link");B=z,z=new Set}if(l){const U=Math.max(Mn(I,rt=>rt.depth)+1,0);let tt;for(let rt=0;rt{U.height=Y;for(const{source:tt}of U.targetLinks)z.add(tt)}),++Y>F)throw new Error("circular link");B=z,z=new Set}}function _({nodes:I}){const F=Math.max(Mn(I,Y=>Y.depth)+1,0),B=(n-t-i)/(F-1),z=new Array(F).fill(0).map(()=>[]);for(const Y of I){const U=Math.max(0,Math.min(F-1,Math.floor(c.call(null,Y,F))));Y.layer=U,Y.x0=t+U*B,Y.x1=Y.x0+i,z[U]?z[U].push(Y):z[U]=[Y]}if(u)for(const Y of z)Y.sort(u);return z}function O(I){const F=Mi(I,B=>(r-e-(B.length-1)*o)/Ii(B,zm));for(const B of I){let z=e;for(const Y of B){Y.y0=z,Y.y1=z+Y.value*F,z=Y.y1+o;for(const U of Y.sourceLinks)U.width=U.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 Bt=(rt/wt-tt.y0)*F;tt.y0+=Bt,tt.y1+=Bt,D(tt)}u===void 0&&U.sort(tp),U.length&&A(U,B)}}function E(I,F,B){for(let z=I.length,Y=z-2;Y>=0;--Y){const U=I[Y];for(const tt of U){let rt=0,wt=0;for(const{target:Xt,value:Tt}of tt.sourceLinks){const Pt=Tt*(Xt.layer-tt.layer);rt+=R(tt,Xt)*Pt,wt+=Pt}if(!(wt>0))continue;const Bt=(rt/wt-tt.y0)*F;tt.y0+=Bt,tt.y1+=Bt,D(tt)}u===void 0&&U.sort(tp),U.length&&A(U,B)}}function A(I,F){const B=I.length>>1,z=I[B];C(I,z.y0-o,B-1,F),P(I,z.y1+o,B+1,F),C(I,r,I.length-1,F),P(I,e,0,F)}function P(I,F,B,z){for(;B1e-6&&(Y.y0+=U,Y.y1+=U),F=Y.y1+o}}function C(I,F,B,z){for(;B>=0;--B){const Y=I[B],U=(Y.y1-F)*z;U>1e-6&&(Y.y0-=U,Y.y1-=U),F=Y.y0-o}}function D({sourceLinks:I,targetLinks:F}){if(f===void 0){for(const{source:{sourceLinks:B}}of F)B.sort(j5);for(const{target:{targetLinks:B}}of I)B.sort(I5)}}function N(I){if(f===void 0)for(const{sourceLinks:F,targetLinks:B}of I)F.sort(j5),B.sort(I5)}function k(I,F){let B=I.y0-(I.sourceLinks.length-1)*o/2;for(const{target:z,width:Y}of I.sourceLinks){if(z===F)break;B+=Y+o}for(const{source:z,width:Y}of F.targetLinks){if(z===I)break;B-=Y}return B}function R(I,F){let B=F.y0-(F.targetLinks.length-1)*o/2;for(const{source:z,width:Y}of F.targetLinks){if(z===I)break;B+=Y+o}for(const{target:z,width:Y}of I.sourceLinks){if(z===F)break;B-=Y}return B}return v}const Fnt={nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodes:t=>t.nodes,links:t=>t.links,nodeSort:void 0,linkSort:void 0,iterations:6},Bnt={left:knt,right:Rnt,center:Lnt,justify:Qh};function znt(t){const e=typeof t;return e==="string"?Bnt[t]||Qh:e==="function"?t:Qh}const B5=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({},Fnt,t),d=Dnt().nodeSort(r).linkSort(u).links(l).nodes(c).nodeWidth(a).nodePadding(o).nodeDepth(s).nodeAlign(znt(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}};B5.props={};var Gnt=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},Hnt={type:"polygon",axis:!1,legend:!1,encode:{shape:"polygon",x:"x",y:"y"},scale:{x:{type:"identity"},y:{type:"identity"}},style:{stroke:"#000"}},Ynt={type:"polygon",axis:!1,legend:!1,encode:{shape:"ribbon",x:"x",y:"y"},style:{fillOpacity:.5,stroke:void 0}},Vnt={textAlign:t=>t.x[0]<.5?"start":"end",position:t=>t.x[0]<.5?"right":"left",fontSize:10},z5=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}=Ig(e,n),d=se(n,"node"),h=se(n,"link"),{key:p=A=>A.key,color:v=p}=d,{links:g,nodes:y}=B5(Object.assign(Object.assign(Object.assign({},Wnt),{nodeId:ba(p)}),a))({links:u,nodes:f}),m=se(i,"label"),{text:b=p,spacing:_=5}=m,O=Gnt(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({},Hnt,{data:y,encode:Object.assign(Object.assign({},d),{color:v}),scale:r,style:se(i,"node"),labels:[Object.assign(Object.assign(Object.assign({},Vnt),{text:b,dx:A=>A.x[0]<.5?_:-_}),O),...o],tooltip:M,animate:ga(c,"node"),axis:!1}),Nt({},Ynt,{data:g,encode:h,labels:s,style:Object.assign({fill:h.color?void 0:"#aaa",strokeWidth:0},se(i,"link")),tooltip:E,animate:ga(c,"link")})]};z5.props={};function $nt(t,e){return e.value-t.value}function Xnt(t,e){return e.frequency-t.frequency}function Unt(t,e){return`${t.id}`.localeCompare(`${e.id}`)}function qnt(t,e){return`${t.name}`.localeCompare(`${e.name}`)}const Znt={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 Knt(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({},Znt),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=Ii(O,M=>M.sourceWeight)+Ii(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 Us("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,D=b.get(C)||[],N=_.get(C)||[];let k=0;D.map(R=>{const I=R.sourceWeight/P*M;R.x[0]=E[0]+k,R.x[1]=E[0]+k+I,k+=I}),N.forEach(R=>{const I=R.targetWeight/P*M;R.x[3]=E[0]+k,R.x[2]=E[0]+k+I,k+=I})})}return f}const Gm=t=>e=>Knt(t)(e);Gm.props={};var G5=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},Qnt={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}},Jnt={type:"polygon",axis:!1,legend:!1,encode:{shape:"ribbon",x:"x",y:"y"},style:{opacity:.5,lineWidth:1,strokeWidth:1}},trt={position:"outside",fontSize:10},W5=(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}=Ig(n,r),h=se(r,"node"),p=se(r,"link"),{key:v=R=>R.key,color:g=v}=h,{linkEncodeColor:y=R=>R.source}=p,{nodeWidthRatio:m=Wm.thickness,nodePaddingRatio:b=Wm.marginRatio}=o,_=G5(o,["nodeWidthRatio","nodePaddingRatio"]),{nodes:O,edges:w}=Gm(Object.assign(Object.assign(Object.assign(Object.assign({},Wm),{id:ba(v),thickness:m,marginRatio:b}),_),{weight:!0}))({nodes:f,edges:d}),M=se(a,"label"),{text:E=v}=M,A=G5(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:D,width:N}=e,k=Math.min(D,N);return[Nt({},Jnt,{data:w,encode:Object.assign(Object.assign({},p),{color:y}),labels:c,style:Object.assign({fill:y?void 0:"#aaa"},se(a,"link")),tooltip:C,animate:ga(l,"link")}),Nt({},Qnt,{data:O,encode:Object.assign(Object.assign({},h),{color:g}),scale:i,style:se(a,"node"),coordinate:{type:"polar",outerRadius:(k-20)/k,startAngle:-Math.PI*2,endAngle:0},labels:[Object.assign(Object.assign(Object.assign({},trt),{text:E}),A),...s],tooltip:P,animate:ga(l,"node"),axis:!1})]};W5.props={};function ert(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 ep(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}(H5),rrt=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}(H5);function irt(){var t=V5,e=!1,n=1,r=1,i=[0],a=Ss,o=Ss,s=Ss,c=Ss,l=Ss;function u(d){return d.x0=d.y0=0,d.x1=n,d.y1=r,d.eachBefore(f),i=[0],e&&d.eachBefore(BS),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(),irt().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 crt=(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}),lrt=(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"}}),urt={fontSize:10,text:t=>t.data.name,position:"inside",fill:"#000",textOverflow:"clip",wordWrap:!0,maxLines:1,wordWrapWidth:t=>t.x1-t.x0},frt={title:t=>t.data.name,items:[{field:"value"}]},$5=(t,e)=>{const{width:n,height:r}=e,{data:i,encode:a={},scale:o,style:s={},layout:c={},labels:l=[],tooltip:u={}}=t,f=art(t,["data","encode","scale","style","layout","labels","tooltip"]),d=srt(i,Nt({},crt(n,r),c),a),h=se(s,"label");return Nt({},lrt(n,r),Object.assign(Object.assign({data:d,encode:a,scale:o,style:s,labels:[Object.assign(Object.assign({},urt),h),...l]},f),{tooltip:sg(u,frt),axis:!1}))};$5.props={};function drt(){return{"data.arc":Gm,"data.cluster":_5,"mark.forceGraph":b5,"mark.tree":w5,"mark.pack":N5,"mark.sankey":z5,"mark.chord":W5,"mark.treemap":$5}}var X5=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 prt(t,e){return Mn(t,n=>e[n])}function U5(t,e){const n=Hm(t,e)*2.5-Ym(t,e)*1.5;return Mi(t,r=>e[r]>=n?e[r]:NaN)}function Hm(t,e){return bh(t,.25,n=>e[n])}function vrt(t,e){return bh(t,.5,n=>e[n])}function Ym(t,e){return bh(t,.75,n=>e[n])}function q5(t,e){const n=Ym(t,e)*2.5-Hm(t,e)*1.5;return Mn(t,r=>e[r]<=n?e[r]:NaN)}function grt(){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=U5(l,a),f=q5(l,a);return l.filter(d=>a[d]f)}),e]}}const Z5=t=>{const{data:e,encode:n,style:r={},tooltip:i={},transform:a,animate:o}=t,s=X5(t,["data","encode","style","tooltip","transform","animate"]),{point:c=!0}=r,l=X5(r,["point"]),{y:u}=n,f={y:u,y1:u,y2:u,y3:u,y4:u},d={y1:Hm,y2:vrt,y3:Ym},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:hrt},d),{y4:prt})],encode:Object.assign(Object.assign({},n),f),style:l,tooltip:h},s);const v=se(l,"box"),g=se(l,"point");return[Object.assign({type:"box",data:e,transform:[Object.assign(Object.assign({type:"groupX",y:U5},d),{y4:q5})],encode:Object.assign(Object.assign({},n),f),style:v,tooltip:h,animate:ga(o,"box")},s),{type:"point",data:e,transform:[{type:grt}],encode:n,style:Object.assign({},g),tooltip:p,animate:ga(o,"point")}]};Z5.props={};var np=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=np(t,["shape","radius"]),a=se(i,"pointer"),o=se(i,"pin"),{shape:s}=a,c=np(a,["shape"]),{shape:l}=o,u=np(o,["shape"]),{coordinate:f,theme:d}=e;return(h,p)=>{const v=h.map(k=>f.invert(k)),[g,y,m]=bF(f,"polar"),b=f.clone(),{color:_}=p,O=uv({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]=DO(w),[A,P]=f.getCenter(),C=Object.assign(Object.assign({x1:M,y1:E,x2:A,y2:P,stroke:_},c),i),D=Object.assign(Object.assign({cx:A,cy:P,stroke:_},u),i),N=Ne(new Dr);return La(s)||(typeof s=="function"?N.append(()=>s(w,p,b,d)):N.append("line").call(Ee,C).node()),La(l)||(typeof l=="function"?N.append(()=>l(w,p,b,d)):N.append("circle").call(Ee,D).node()),N.node()}},K5={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"]}}},mrt={style:{shape:yrt,lineWidth:4,pointerLineCap:"round",pinR:10,pinFill:"#fff",radius:.6}},brt={type:"text",style:{x:"50%",y:"60%",textAlign:"center",textBaseline:"middle",fontSize:20,fontWeight:800,fill:"#888"}};function xrt(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 _rt(t,e){const{name:n="score",target:r,total:i,percent:a,thresholds:o=[]}=xrt(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 Ort(t,{target:e,total:n}){const{content:r}=t;return r?r(e,n):e.toString()}const Q5=t=>{const{data:e={},scale:n={},style:r={},animate:i={},transform:a=[]}=t,o=np(t,["data","scale","style","animate","transform"]),{targetData:s,totalData:c,target:l,total:u,scale:f}=_rt(e,n),d=se(r,"text"),h=J7(r,["pointer","pin"]);return[Nt({},K5,Object.assign({type:"interval",transform:[{type:"stackY"}],data:c,scale:f,style:se(r,"arc"),animate:typeof i=="object"?se(i,"arc"):i},o)),Nt({},K5,mrt,Object.assign({type:"point",data:s,scale:f,style:h,animate:typeof i=="object"?se(i,"indicator"):i},o)),Nt({},brt,{style:Object.assign({text:Ort(d,{target:l,total:u})},d),animate:typeof i=="object"?se(i,"text"):i})]};Q5.props={};const Vm=Math.PI/180,ku=64,rp=2048;function wrt(t){return t.text}function Srt(){return"serif"}function J5(){return"normal"}function Mrt(t){return t.value}function Ert(){return~~(Math.random()*2)*90}function Art(){return 1}function Trt(){}function Prt(t,e,n,r){if(e.sprite)return;const i=t.context,a=t.ratio;i.clearRect(0,0,(ku<<5)/a,rp/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>=ku<<5&&(o=0,s+=c,c=0),s+h>=rp)break;i.translate((o+(d>>1))/a,(s+(h>>1))/a),e.rotate&&i.rotate(e.rotate*Vm),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,(ku<<5)/a,rp/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)*(ku<<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 Crt(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 krt(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 Rrt(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(D,N,k){return D.text=e.call(this,D,N,k),D.font=n.call(this,D,N,k),D.style=h.call(this,D,N,k),D.weight=i.call(this,D,N,k),D.rotate=a.call(this,D,N,k),D.size=~~r.call(this,D,N,k),D.padding=o.call(this,D,N,k),D}).sort(function(D,N){return N.size-D.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 D=Date.now();for(;Date.now()-D>1,N.y=b*(c()+.5)>>1,Prt(_,N,E,A),N.hasText&&y(O,N,P)&&(l.call(null,"word",{cloud:v,word:N}),M.push(N),P?v.hasImage||krt(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=(ku<<5)/b,m.height=rp/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,D,N;for(;(P=E(C+=A))&&(D=~~P[0],N=~~P[1],!(Math.min(Math.abs(D),Math.abs(N))>=M));)if(b.x=O+D,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])&&(!_||!Crt(b,m,t[0]))&&(!_||Rrt(b,_))){const k=b.sprite,R=b.width>>5,I=t[0]>>5,F=b.x-(R<<4),B=F&127,z=32-B,Y=b.y1-b.y0;let U,tt=(b.y+b.y0)*I+(F>>5);for(let rt=0;rt>>B:0);tt+=I}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=e3((_>>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[D]|=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=Ro(m)},v.font=function(m){n=Ro(m)},v.fontWeight=function(m){i=Ro(m)},v.rotate=function(m){a=Ro(m)},v.spiral=function(m){s=Irt[m]||m},v.fontSize=function(m){r=Ro(m)},v.padding=function(m){o=Ro(m)},v.random=function(m){c=Ro(m)},v.on=function(m){l=Ro(m)},v}var Drt=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 Frt(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 Drt(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 Brt=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())})},zrt=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 Hrt(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 n3=t=>e=>Brt(void 0,void 0,void 0,function*(){const n=Object.assign({},Grt,t),r=jrt();yield Frt(r,n).set("fontSize",y=>{const m=e.map(b=>b.value);return Hrt(y,[Mi(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",Wrt,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,_=zrt(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});n3.props={};var Yrt=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())})},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);iObject.assign(Object.assign({},i),{text:i[n],value:i[r]}))}const Xrt=(t,e)=>({size:[t,e]}),Urt=(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"}}),r3=(t,e)=>Yrt(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=Vrt(t,["data","encode","scale","style","layout"]),u=$rt(i,a),f=yield n3(Object.assign(Object.assign({},Xrt(n,r)),c))(u);return Nt({},Urt(n,r),Object.assign(Object.assign({data:f,encode:a,scale:o,style:s},l),{axis:!1}))});r3.props={};const i3=5e3;function a3(t,e,n){return t+(e-t)*n}function qrt(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 Zrt(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;do3[t]||o3.circle,c3=(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=s3(i,["background","outline","wave"]),{border:f=2,distance:d=0}=c,h=s3(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=(vi(a)?a:rit(a))(E,A,C,...P);if(Object.keys(s).length){const I=b.createElement("path",{style:Object.assign({path:N,fill:"#fff"},s)});M.appendChild(I)}if(o>0){const I=b.createElement("path",{style:{path:N}});M.appendChild(I),M.style.clipPath=I,Krt(E,A,1-o,v,w,M,I.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}};c3.props={};var iit=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=iit(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=Object.assign(Object.assign({},se(n,"text")),se(n,"content")),c=se(n,"outline"),l=se(n,"wave"),u=se(n,"background");return[Nt({},ait,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({},oit,{style:Object.assign({text:`${Uf(a*100)} %`},s),animate:r})]};l3.props={};var $a=mt(52827);const u3=1e-10;function f3(t,e){const n=cit(t),r=n.filter(function(c){return sit(c,t)});let i=0,a=0,o;const s=[];if(r.length>1){const c=lit(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=Ru(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+=$m(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-u3,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 sit(t,e){for(let n=0;ne[n].radius+u3)return!1;return!0}function cit(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 $m(t,r)+$m(e,i)}function h3(t,e){const n=Ru(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 lit(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 hit(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 pit(t,e){let n=git(t,e);const r=e.lossFunction||Um;if(t.length>=8){const i=vit(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 v3=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=uit(c);let u;return c.map(f=>{const d=f[e],h=({width:p,height:v})=>{u=u||bit(l,p,v,i);const g=d.map(m=>u[m]);let y=_it(g);return/[zZ]$/.test(y)||(y+=" Z"),y};return Object.assign(Object.assign({},f),{[o]:h})})}};v3.props={};function Oit(){return{"data.venn":v3,"mark.boxplot":Z5,"mark.gauge":Q5,"mark.wordCloud":r3,"mark.liquid":l3}}function wit(){return Object.assign(Object.assign(Object.assign(Object.assign({},net()),drt()),Oit()),QJ())}var ip=function(){return ip=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0){if(++e>=cat)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var dat=fat,hat=dat(sat),w3=hat;function pat(t,e){return w3(O3(t,e,a1),t+"")}var vat=pat;function gat(t,e,n){if(!$(n))return!1;var r=typeof e;return(r=="number"?Za(n)&&Vu(e,n.length):r=="string"&&e in n)?It(n[e],t):!1}var yat=gat;function mat(t){return vat(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&&yat(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++r0){var M=O.x,E=O.y,A=O.height,P=O.width,C=O.data,D=O.key,N=vr(C,u),k=g/2;if(n){var R=M+P/2,I=E;h.push({points:[[R+k,I-d+_],[R+k,I-m-_],[R,I-_],[R-k,I-m-_],[R-k,I-d+_]],center:[R,I-d/2-_],width:d,value:[f,N],key:D})}else{var R=M,I=E+A/2;h.push({points:[[M-d+_,I-k],[M-m-_,I-k],[R-_,I],[M-m-_,I+k],[M-d+_,I+k]],center:[R-d/2-_,I],width:d,value:[f,N],key:D})}f=N}}),h},e.prototype.render=function(){this.setDirection(),this.drawConversionTag()},e.prototype.setDirection=function(){var n=this.chart.getCoordinate(),r=vr(n,"options.transformations"),i="horizontal";r.forEach(function(a){a.includes("transpose")&&(i="vertical")}),this.direction=i},e.prototype.drawConversionTag=function(){var n=this,r=this.getConversionTagLayout(),i=this.attributes,a=i.style,o=i.text,s=o.style,c=o.formatter;r.forEach(function(l){var u=l.points,f=l.center,d=l.value,h=l.key,p=d[0],v=d[1],g=f[0],y=f[1],m=new Lit({style:cp({points:u,fill:"#eee"},a),id:"polygon-".concat(h)}),b=new y3({style:cp({x:g,y,text:_t(c)?c(p,v):(v/p*100).toFixed(2)+"%"},s),id:"text-".concat(h)});n.appendChild(m),n.appendChild(b)})},e.prototype.update=function(){var n=this,r=this.getConversionTagLayout();r.forEach(function(i){var a=i.points,o=i.center,s=i.key,c=o[0],l=o[1],u=n.getElementById("polygon-".concat(s)),f=n.getElementById("text-".concat(s));u.setAttribute("points",a),f.setAttribute("x",c),f.setAttribute("y",l)})},e.tag="ConversionTag",e}(E3),Mat=1,Eat=2;function Aat(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 aot=iot;function oot(t,e,n){for(var r=-1,i=t==null?0:t.length;++r=dot){var l=e?null:fot(t);if(l)return Ap(l);o=!1,i=M1,c=new S1}else c=e?[]:s;t:for(;++r0&&n(s)?e>1?F3(s,e-1,n,r,i):Pp(i,s):r||(i[i.length]=s)}return i}var Wot=F3;function Hot(t){var e=t==null?0:t.length;return e?Wot(t,1):[]}var Yot=Hot;function Vot(t){return w3(O3(t,void 0,Yot),t+"")}var l1=Vot,$ot=l1(function(t,e){return t==null?{}:Bot(t,e)}),lp=$ot,Xot=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)}}(),Dc=function(){return Dc=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}),Ho(t,nb(t),n),r&&(n=hb(n,Pst|Cst|kst,Tst));for(var i=e.length;i--;)Est(n,e[i]);return n}),Y3=Rst;function Lst(t,e,n){return t==null?t:j3(t,e,n)}var Fe=Lst,V3=function(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;r1&&Fe(r,"children",[{type:"interval"}]);var i=r.scale,a=r.markBackground,o=r.data,s=r.children,c=vr(i,"y.domain",[]);if(a&&c.length&&Ct(o)){var l="domainMax",u=o.map(function(f){var d;return ju(ju({},f),(d={},d[l]=c[c.length-1],d))});s.unshift(ju({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 Bst=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}};m_("shape.interval.bar25D",t)},zst=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();var Gst=function(t){zst(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 $3},e}(vn),Wst=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}};m_("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)}}();Wst();var Yst=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 $3},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=r.scale,l=!1;return vr(c,"y.key")||s.forEach(function(u,f){if(!vr(u,"scale.y.key")){var d="child".concat(f,"Scale");Fe(u,"scale.y.key",d);var h=u.annotations,p=h===void 0?[]:h;p.length>0&&(Fe(u,"scale.y.independent",!1),p.forEach(function(v){Fe(v,"scale.y.key",d)})),!l&&a.length>0&&vr(u,"scale.y.independent")===void 0&&(l=!0,Fe(u,"scale.y.independent",!1),a.forEach(function(v){Fe(v,"scale.y.key",d)}))}}),n};return bn(e,pr,En)(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)}}(),X3=function(t){$st(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 Xst(t){var e=function(a){var o=a.options,s=o.xField,c=o.colorField;return c||Fe(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?Fe(o,"transform",[]):Fe(o,"transform",[{type:"symmetryY"}])),!f&&u&&Fe(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(L3(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&&(Fe(o,"type","spaceFlex"),Fe(o,"ratio",[1,1]),Fe(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||Fe(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 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)}}(),qst=function(t){Ust(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 Xst},e}(vn);function Zst(t){return bn(pr,En)(t)}var Kst=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)}}(),Qst=function(t){Kst(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 Zst},e}(vn),Du=function(){return Du=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&(d.x1=f[s],d.x2=d[s],d.y1=f[Bc]),d},[]),u.shift(),c.push({type:"link",xField:["x1","x2"],yField:"y1",zIndex:-1,data:u,style:y1({stroke:"#697474"},l),label:!1,tooltip:!1}),r};return bn(e,n,pr,En)(t)}var Bct=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)}}(),zct=function(t){Bct(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:g1,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 Fct},e}(vn),Gct="[object Number]";function Wct(t){return typeof t=="number"||ci(t)&&T(t)==Gct}var zc=Wct,Hct=Object.prototype,Yct=Hct.hasOwnProperty,Vct=S3(function(t,e){if($u(e)||Za(e)){Ho(e,Go(e),t);return}for(var n in e)Yct.call(e,n)&&Zu(t,n,e[n])}),U3=Vct,$ct=/\s/;function Xct(t){for(var e=t.length;e--&&$ct.test(t.charAt(e)););return e}var Uct=Xct,qct=/^\s+/;function Zct(t){return t&&t.slice(0,Uct(t)+1).replace(qct,"")}var Kct=Zct,q3=0/0,Qct=/^[-+]0x[0-9a-f]+$/i,Jct=/^0b[01]+$/i,tlt=/^0o[0-7]+$/i,elt=parseInt;function nlt(t){if(typeof t=="number")return t;if(Xc(t))return q3;if($(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=$(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Kct(t);var n=Jct.test(t);return n||tlt.test(t)?elt(t.slice(2),n?2:8):Qct.test(t)?q3:+t}var Z3=nlt,K3=1/0,rlt=17976931348623157e292;function ilt(t){if(!t)return t===0?t:0;if(t=Z3(t),t===K3||t===-K3){var e=t<0?-1:1;return e*rlt}return t===t?t:0}var alt=ilt;function olt(t){var e=alt(t),n=e%1;return e===e?n?e-n:e:0}var Q3=olt,slt=at.isFinite,clt=Math.min;function llt(t){var e=Math[t];return function(n,r){if(n=Z3(n),r=r==null?0:clt(Q3(r),292),r&&slt(n)){var i=($p(n)+"e").split("e"),a=e(i[0]+"e"+(+i[1]+r));return i=($p(a)+"e").split("e"),+(i[0]+"e"+(+i[1]-r))}return e(n)}}var ult=llt,flt=ult("ceil"),dlt=flt,hlt=0/0;function plt(t){return typeof t=="number"?t:Xc(t)?hlt:+t}var J3=plt;function vlt(t,e){return function(n,r){var i;if(n===void 0&&r===void 0)return e;if(n!==void 0&&(i=n),r!==void 0){if(i===void 0)return r;typeof n=="string"||typeof r=="string"?(n=Vp(n),r=Vp(r)):(n=J3(n),r=J3(r)),i=t(n,r)}return i}}var glt=vlt,ylt=glt(function(t,e){return t/e},1),mlt=ylt;function blt(t){var e=function(n){var r=n.options,i=r.data,a=r.binNumber,o=r.binWidth,s=r.children,c=r.channel,l=c===void 0?"count":c,u=vr(s,"[0].transform[0]",{});return zc(o)?(U3(u,{thresholds:dlt(mlt(i.length,o)),y:l}),n):(zc(a)&&U3(u,{thresholds:a,y:l}),n)};return bn(e,pr,En)(t)}var xlt=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)}}(),_lt=function(t){xlt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="Histogram",n}return e.getDefaultOptions=function(){return{type:"view",autoFit:!0,axis:{y:{title:!1},x:{title:!1}},children:[{type:"rect",transform:[{type:"binX",y:"count"}],interaction:{elementHighlightByColor:{background:!0}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return blt},e}(vn);function Olt(t){var e=function(r){var i=r.options,a=i.tooltip,o=i.colorField,s=i.sizeField;return a.field||(a.field=o||s),r},n=function(r){var i=r.options,a=i.mark,o=i.children;return a&&(o[0].type=a),r};return bn(e,n,pr,En)(t)}var wlt=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)}}(),Slt=function(t){wlt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="heatmap",n}return e.getDefaultOptions=function(){return{type:"view",legend:null,tooltip:{valueFormatter:"~s"},axis:{y:{title:null,grid:!0},x:{title:null,grid:!0}},children:[{type:"point",interaction:{elementHighlightByColor:{background:!0}}}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Olt},e}(vn);function Mlt(t){var e=function(n){var r=n.options.boxType,i=r===void 0?"box":r;return n.options.children[0].type=i,n};return bn(e,pr,En)(t)}var Elt=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)}}(),Alt=function(t){Elt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="box",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"box"}],axis:{y:{title:!1},x:{title:!1}},tooltip:{items:[{name:"min",channel:"y"},{name:"q1",channel:"y1"},{name:"q2",channel:"y2"},{name:"q3",channel:"y3"},{name:"max",channel:"y4"}]}}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Mlt},e}(vn);function Tlt(t){return bn(pr,En)(t)}var Plt=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)}}(),Clt=function(t){Plt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="sankey",n}return e.getDefaultOptions=function(){return{type:"view",children:[{type:"sankey"}]}},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Tlt},e}(vn);function klt(t){var e=t.options.layout,n=e===void 0?"horizontal":e;return t.options.coordinate.transform=n!=="horizontal"?void 0:[{type:"transpose"}],t}function Rlt(t){klt(t);var e=t.options.layout,n=e===void 0?"horizontal":e;return t.options.children.forEach(function(r){var i;!((i=r==null?void 0:r.coordinate)===null||i===void 0)&&i.transform&&(r.coordinate.transform=n!=="horizontal"?void 0:[{type:"transpose"}])}),t}function Llt(t){return t==null}var Nlt=Llt,Ilt="[object String]";function jlt(t){return typeof t=="string"||!Ct(t)&&ci(t)&&T(t)==Ilt}var tR=jlt;function Dlt(t,e){return Qu(e,function(n){return t[n]})}var Flt=Dlt;function Blt(t){return t==null?[]:Flt(t,Go(t))}var zlt=Blt,Glt=Math.max;function Wlt(t,e,n,r){t=Za(t)?t:zlt(t),n=n&&!r?Q3(n):0;var i=t.length;return n<0&&(n=Glt(i+n,0)),tR(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&C3(t,e,n)>-1}var Hlt=Wlt,ta=function(){return ta=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(j?"Object is not iterable.":"Symbol.iterator is not defined.")}function Rt(L,j){var G=typeof Symbol=="function"&&L[Symbol.iterator];if(!G)return L;var V,nt,it=G.call(L),q=[];try{for(;(j===void 0||0nt=>G(V(nt)),L)}function ze(L,j){return j-L?G=>(G-L)/(j-L):G=>.5}const ln=Math.sqrt(50),Oe=Math.sqrt(10),Me=Math.sqrt(2);function gn(L,j,G){return j=(j-L)/Math.max(0,G),L=Math.floor(Math.log(j)/Math.LN10),G=j/wr(10,L),0<=L?(G>=ln?10:G>=Oe?5:G>=Me?2:1)*wr(10,L):-wr(10,-L)/(G>=ln?10:G>=Oe?5:G>=Me?2:1)}const Fn=(L,j,G=5)=>{L=[L,j];let V=0,nt=L.length-1,it=L[V],q=L[nt],Z;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,nt){var it,{domain:Z,interpolator:q,round:ft}=this.getOptions(),Z=j(Z.map(V)),ft=ft?(it=q,pt=>(pt=it(pt),dt(pt)?Math.round(pt):pt)):q;this.output=Xe(ft,Z,nt,V)},G.prototype.invert=void 0}}var yn,Ae={exports:{}},qe={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,at=qe.exports=function(L){for(var j=[],G=0,V=L.length;GG=>L*(1-G)+j*G,xt=(L,j)=>{if(typeof L=="number"&&typeof j=="number")return st(L,j);if(typeof L!="string"||typeof j!="string")return()=>L;{var G=L,V=j;const nt=Q(G),it=Q(V);return nt===null||it===null?nt?()=>G:()=>V:q=>{var Z=new Array(4);for(let ge=0;ge<4;ge+=1){var ft=nt[ge],pt=it[ge];Z[ge]=ft*(1-q)+pt*q}var[Kt,ee,me,Jt]=Z;return`rgba(${Math.round(Kt)}, ${Math.round(ee)}, ${Math.round(me)}, ${Jt})`}}},H=(L,j)=>{const G=st(L,j);return V=>Math.round(G(V))};function K({map:L,initKey:j},G){return j=j(G),L.has(j)?L.get(j):G}function ut(L){return typeof L=="object"?L.valueOf():L}class x extends Map{constructor(j){if(super(),this.map=new Map,this.initKey=ut,j!==null)for(var[G,V]of j)this.set(G,V)}get(j){return super.get(K({map:this.map,initKey:this.initKey},j))}has(j){return super.has(K({map:this.map,initKey:this.initKey},j))}set(j,G){return super.set(([{map:j,initKey:V},nt]=[{map:this.map,initKey:this.initKey},j],V=V(nt),j.has(V)?j.get(V):(j.set(V,nt),nt)),G);var V,nt}delete(j){return super.delete(([{map:j,initKey:G},V]=[{map:this.map,initKey:this.initKey},j],G=G(V),j.has(G)&&(V=j.get(G),j.delete(G)),V));var G,V}}class T{constructor(j){this.options=ue({},this.getDefaultOptions()),this.update(j)}getOptions(){return this.options}update(j={}){this.options=ue({},this.options,j),this.rescale(j)}rescale(j){}}const W=Symbol("defaultUnknown");function $(L,j,G){for(let V=0;V""+j:typeof L=="object"?j=>JSON.stringify(j):j=>j}class yt extends T{getDefaultOptions(){return{domain:[],range:[],unknown:W}}constructor(j){super(j)}map(j){return this.domainIndexMap.size===0&&$(this.domainIndexMap,this.getDomain(),this.domainKey),J({value:this.domainKey(j),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(j){return this.rangeIndexMap.size===0&&$(this.rangeIndexMap,this.getRange(),this.rangeKey),J({value:this.rangeKey(j),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(j){var[G]=this.options.domain,[V]=this.options.range;this.domainKey=ct(G),this.rangeKey=ct(V),this.rangeIndexMap?(j&&!j.range||this.rangeIndexMap.clear(),j&&!j.domain&&!j.compare||(this.domainIndexMap.clear(),this.sortedDomain=void 0)):(this.rangeIndexMap=new Map,this.domainIndexMap=new Map)}clone(){return new yt(this.options)}getRange(){return this.options.range}getDomain(){var j,G;return this.sortedDomain||({domain:j,compare:G}=this.options,this.sortedDomain=G?[...j].sort(G):j),this.sortedDomain}}function St(Vt){const{domain:j,range:G,paddingOuter:V,paddingInner:nt,flex:it,round:q,align:Z}=Vt;var ft=j.length,Jt=0<(Jt=(Vt=ft)-(pt=it).length)?[...pt,...new Array(Jt).fill(1)]:Jt<0?pt.slice(0,Vt):pt,[Vt,pt]=G,pt=pt-Vt,de=pt/(2/ft*V+1-1/ft*nt);const Kt=de*nt/ft;de-=ft*Kt;const ee=function(pe){const Te=Math.min(...pe);return pe.map(tn=>tn/Te)}(Jt),me=de/ee.reduce((pe,Te)=>pe+Te);var Jt=new x(j.map((pe,Te)=>(Te=ee[Te]*me,[pe,q?Math.floor(Te):Te]))),ge=new x(j.map((pe,Te)=>(Te=ee[Te]*me+Kt,[pe,q?Math.floor(Te):Te]))),de=Array.from(ge.values()).reduce((pe,Te)=>pe+Te),Vt=Vt+(pt-(de-de/ft*nt))*Z;let Pe=q?Math.round(Vt):Vt;var xe=new Array(ft);for(let pe=0;pede+Pe*Jt),{valueStep:Jt,valueBandWidth:ge,adjustedRange:pt}}({align:V,range:nt,round:it,flex:G,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:j});this.valueStep=it,this.valueBandWidth=nt,this.adjustedRange=V}}const _t=(L,j,G)=>{let V,nt,it=L,q=j;if(it===q&&0{var[V,nt]=V,[it,q]=it;let Z,ft;return Xe(ft=V{const V=Math.min(L.length,j.length)-1,nt=new Array(V),it=new Array(V);var q=L[0]>L[V],Z=q?[...L].reverse():L,ft=q?[...j].reverse():j;for(let pt=0;pt{var Kt=function(me,Jt,ge,de,Vt){let Pe=ge||0,xe=de||me.length;for(var Ce=Vt||(Te=>Te);PeJt?xe=pe:Pe=pe+1}return Pe}(L,pt,1,V)-1,ee=nt[Kt];return Xe(it[Kt],ee)(pt)}},Ct=(L,j,G,V)=>(2Math.min(Math.max(it,Z),q)}return ie}composeOutput(j,G){var{domain:q,range:V,round:nt,interpolate:it}=this.options,q=Ct(q.map(j),V,it,nt);this.output=Xe(q,G,j)}composeInput(j,G,V){var{domain:nt,range:it}=this.options,it=Ct(it,nt.map(j),st);this.input=Xe(G,V,it)}}class Qt extends Wt{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:xt,tickMethod:_t,tickCount:5}}chooseTransforms(){return[ie,ie]}clone(){return new Qt(this.options)}}class fe extends Et{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:W,paddingInner:1,paddingOuter:0}}constructor(j){super(j)}getPaddingInner(){return 1}clone(){return new fe(this.options)}update(j){super.update(j)}getPaddingOuter(){return this.options.padding}}function It(L,j){for(var G=[],V=0,nt=L.length;V{var[j,G]=j;return Xe(st(0,1),ze(j,G))})],je);let $n=Le=class extends Qt{getDefaultOptions(){return{domain:[0,.5,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:ie,tickMethod:_t,tickCount:5}}constructor(L){super(L)}clone(){return new Le(this.options)}};$n=Le=function(L,j,G,V){var nt,it=arguments.length,q=it<3?j:V===null?V=Object.getOwnPropertyDescriptor(j,G):V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")q=Reflect.decorate(L,j,G,V);else for(var Z=L.length-1;0<=Z;Z--)(nt=L[Z])&&(q=(it<3?nt(q):3{const[j,G,V]=L,nt=Xe(st(0,.5),ze(j,G)),it=Xe(st(.5,1),ze(G,V));return q=>(j>V?qbe?be:kt};Ve.Z=mt},58622:function(Ye,Ve){"use strict";var mt=function(kt){return kt==null};Ve.Z=mt},39696:function(Ye,Ve,mt){"use strict";var kt=mt(98104),Rt=function(be){return(0,kt.Z)(be,"Number")};Ve.Z=Rt},98104:function(Ye,Ve){"use strict";var mt={}.toString,kt=function(Rt,be){return mt.call(Rt)==="[object "+be+"]"};Ve.Z=kt},61323:function(Ye,Ve,mt){"use strict";var kt=mt(53263);Ve.Z=kt.Z},48966:function(Ye,Ve,mt){"use strict";var kt=mt(92002);Ve.Z=kt.Z},99419: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]}},2489:function(Ye,Ve,mt){var kt=mt(99419),Rt=mt(27933),be=Object.hasOwnProperty,We=Object.create(null);for(var te in kt)be.call(kt,te)&&(We[kt[te]]=te);var ve=Ye.exports={to:{},get:{}};ve.get=function(dt){var he=dt.substring(0,3).toLowerCase(),Zt,ue;switch(he){case"hsl":Zt=ve.get.hsl(dt),ue="hsl";break;case"hwb":Zt=ve.get.hwb(dt),ue="hwb";break;default:Zt=ve.get.rgb(dt),ue="rgb";break}return Zt?{model:ue,value:Zt}:null},ve.get.rgb=function(dt){if(!dt)return null;var he=/^#([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],At,Dt,Se;if(At=dt.match(Zt)){for(Se=At[2],At=At[1],Dt=0;Dt<3;Dt++){var ke=Dt*2;Lt[Dt]=parseInt(At.slice(ke,ke+2),16)}Se&&(Lt[3]=parseInt(Se,16)/255)}else if(At=dt.match(he)){for(At=At[1],Se=At[3],Dt=0;Dt<3;Dt++)Lt[Dt]=parseInt(At[Dt]+At[Dt],16);Se&&(Lt[3]=parseInt(Se+Se,16)/255)}else if(At=dt.match(ue)){for(Dt=0;Dt<3;Dt++)Lt[Dt]=parseInt(At[Dt+1],0);At[4]&&(At[5]?Lt[3]=parseFloat(At[4])*.01:Lt[3]=parseFloat(At[4]))}else if(At=dt.match(ie)){for(Dt=0;Dt<3;Dt++)Lt[Dt]=Math.round(parseFloat(At[Dt+1])*2.55);At[4]&&(At[5]?Lt[3]=parseFloat(At[4])*.01:Lt[3]=parseFloat(At[4]))}else return(At=dt.match(jt))?At[1]==="transparent"?[0,0,0,0]:be.call(kt,At[1])?(Lt=kt[At[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},ve.get.hsl=function(dt){if(!dt)return null;var he=/^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(he);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),At=re(isNaN(ue)?1:ue,0,1);return[ie,jt,Lt,At]}return null},ve.get.hwb=function(dt){if(!dt)return null;var he=/^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(he);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),At=re(isNaN(ue)?1:ue,0,1);return[ie,jt,Lt,At]}return null},ve.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)):"")},ve.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]+")"},ve.to.rgb.percent=function(){var dt=Rt(arguments),he=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("+he+"%, "+Zt+"%, "+ue+"%)":"rgba("+he+"%, "+Zt+"%, "+ue+"%, "+dt[3]+")"},ve.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]+")"},ve.to.hwb=function(){var dt=Rt(arguments),he="";return dt.length>=4&&dt[3]!==1&&(he=", "+dt[3]),"hwb("+dt[0]+", "+dt[1]+"%, "+dt[2]+"%"+he+")"},ve.to.keyword=function(dt){return We[dt.slice(0,3)]};function re(dt,he,Zt){return Math.min(Math.max(he,dt),Zt)}function Gt(dt){var he=Math.round(dt).toString(16).toUpperCase();return he.length<2?"0"+he:he}},52617:function(Ye,Ve,mt){"use strict";mt.d(Ve,{ZP:function(){return Je},B8:function(){return Xe}});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 at in Yt)et[at]=Yt[at];return et}function be(){}var We=.7,te=1/We,ve="\\s*([+-]?\\d+)\\s*",re="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",dt=/^#([0-9a-f]{3,8})$/,he=new RegExp("^rgb\\("+[ve,ve,ve]+"\\)$"),Zt=new RegExp("^rgb\\("+[Gt,Gt,Gt]+"\\)$"),ue=new RegExp("^rgba\\("+[ve,ve,ve,re]+"\\)$"),ie=new RegExp("^rgba\\("+[Gt,Gt,Gt,re]+"\\)$"),jt=new RegExp("^hsl\\("+[re,Gt,Gt]+"\\)$"),Lt=new RegExp("^hsla\\("+[re,Gt,Gt,re]+"\\)$"),At={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,Je,{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 Fn(this).formatHsl()}function ke(){return this.rgb().formatRgb()}function Je(vt){var Yt,et;return vt=(vt+"").trim().toLowerCase(),(Yt=dt.exec(vt))?(et=Yt[1].length,Yt=parseInt(Yt[1],16),et===6?$e(Yt):et===3?new ze(Yt>>8&15|Yt>>4&240,Yt>>4&15|Yt&240,(Yt&15)<<4|Yt&15,1):et===8?Ze(Yt>>24&255,Yt>>16&255,Yt>>8&255,(Yt&255)/255):et===4?Ze(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=he.exec(vt))?new ze(Yt[1],Yt[2],Yt[3],1):(Yt=Zt.exec(vt))?new ze(Yt[1]*255/100,Yt[2]*255/100,Yt[3]*255/100,1):(Yt=ue.exec(vt))?Ze(Yt[1],Yt[2],Yt[3],Yt[4]):(Yt=ie.exec(vt))?Ze(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]):At.hasOwnProperty(vt)?$e(At[vt]):vt==="transparent"?new ze(NaN,NaN,NaN,0):null}function $e(vt){return new ze(vt>>16&255,vt>>8&255,vt&255,1)}function Ze(vt,Yt,et,at){return at<=0&&(vt=Yt=et=NaN),new ze(vt,Yt,et,at)}function un(vt){return vt instanceof be||(vt=Je(vt)),vt?(vt=vt.rgb(),new ze(vt.r,vt.g,vt.b,vt.opacity)):new ze}function Xe(vt,Yt,et,at){return arguments.length===1?un(vt):new ze(vt,Yt,et,at==null?1:at)}function ze(vt,Yt,et,at){this.r=+vt,this.g=+Yt,this.b=+et,this.opacity=+at}kt(ze,Xe,Rt(be,{brighter:function(vt){return vt=vt==null?te:Math.pow(te,vt),new ze(this.r*vt,this.g*vt,this.b*vt,this.opacity)},darker:function(vt){return vt=vt==null?We:Math.pow(We,vt),new ze(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:ln,formatHex:ln,formatRgb:Oe,toString:Oe}));function ln(){return"#"+Me(this.r)+Me(this.g)+Me(this.b)}function Oe(){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,at){return at<=0?vt=Yt=et=NaN:et<=0||et>=1?vt=Yt=NaN:Yt<=0&&(vt=NaN),new fn(vt,Yt,et,at)}function Fn(vt){if(vt instanceof fn)return new fn(vt.h,vt.s,vt.l,vt.opacity);if(vt instanceof be||(vt=Je(vt)),!vt)return new fn;if(vt instanceof fn)return vt;vt=vt.rgb();var Yt=vt.r/255,et=vt.g/255,at=vt.b/255,Ot=Math.min(Yt,et,at),gt=Math.max(Yt,et,at),$t=NaN,Ft=gt-Ot,ae=(gt+Ot)/2;return Ft?(Yt===gt?$t=(et-at)/Ft+(et0&&ae<1?0:$t,new fn($t,Ft,ae,vt.opacity)}function Jn(vt,Yt,et,at){return arguments.length===1?Fn(vt):new fn(vt,Yt,et,at==null?1:at)}function fn(vt,Yt,et,at){this.h=+vt,this.s=+Yt,this.l=+et,this.opacity=+at}kt(fn,Jn,Rt(be,{brighter:function(vt){return vt=vt==null?te:Math.pow(te,vt),new fn(this.h,this.s,this.l*vt,this.opacity)},darker:function(vt){return vt=vt==null?We:Math.pow(We,vt),new fn(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,at=et+(et<.5?et:1-et)*Yt,Ot=2*et-at;return new ze(yn(vt>=240?vt-240:vt+120,Ot,at),yn(vt,Ot,at),yn(vt<120?vt+240:vt-120,Ot,at),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}},2337:function(Ye){"use strict";var Ve=Object.prototype.hasOwnProperty,mt="~";function kt(){}Object.create&&(kt.prototype=Object.create(null),new kt().__proto__||(mt=!1));function Rt(ve,re,Gt){this.fn=ve,this.context=re,this.once=Gt||!1}function be(ve,re,Gt,dt,he){if(typeof Gt!="function")throw new TypeError("The listener must be a function");var Zt=new Rt(Gt,dt||ve,he),ue=mt?mt+re:re;return ve._events[ue]?ve._events[ue].fn?ve._events[ue]=[ve._events[ue],Zt]:ve._events[ue].push(Zt):(ve._events[ue]=Zt,ve._eventsCount++),ve}function We(ve,re){--ve._eventsCount===0?ve._events=new kt:delete ve._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(mt?dt.slice(1):dt);return Object.getOwnPropertySymbols?re.concat(Object.getOwnPropertySymbols(Gt)):re},te.prototype.listeners=function(re){var Gt=mt?mt+re:re,dt=this._events[Gt];if(!dt)return[];if(dt.fn)return[dt.fn];for(var he=0,Zt=dt.length,ue=new Array(Zt);he0)throw"Initial bisect points must have opposite signs";if(ke===0)return jt;if(Je===0)return Lt;for(var Ze=0;Ze=0&&(jt=un),Math.abs($e)=Oe[ln-1].fx){var $t=!1;if(yn.fx>gt.fx?(re(vt,1+un,fn,-un,gt),vt.fx=ie(vt),vt.fx=1)break;for(Me=1;MeJe+Se*Dt*$e||Ze>=Fn)gn=Dt;else{if(Math.abs(Xe)<=-ke*$e)return Dt;Xe*(gn-Me)>=0&&(gn=Me),Me=Dt,Fn=Ze}return 0}for(var Oe=0;Oe<10;++Oe){if(re(At.x,1,Lt.x,Dt,jt),Ze=At.fx=ie(At.x,At.fxprime),Xe=We(At.fxprime,jt),Ze>Je+Se*Dt*$e||Oe&&Ze>=un)return ln(ze,Dt,un);if(Math.abs(Xe)<=-ke*$e)return Dt;if(Xe>=0)return ln(Dt,ze,Ze);un=Ze,ze=Dt,Dt*=2}return Dt}function he(ie,jt,Lt){var At={x:jt.slice(),fx:0,fxprime:jt.slice()},Dt={x:jt.slice(),fx:0,fxprime:jt.slice()},Se=jt.slice(),ke,Je,$e=1,Ze;Lt=Lt||{},Ze=Lt.maxIterations||jt.length*20,At.fx=ie(At.x,At.fxprime),ke=At.fxprime.slice(),ve(ke,At.fxprime,-1);for(var un=0;un0?(W[0]=(St*yt+zt*$+Et*ct-_t*J)*2/Ht,W[1]=(Et*yt+zt*J+_t*$-St*ct)*2/Ht,W[2]=(_t*yt+zt*ct+St*J-Et*$)*2/Ht):(W[0]=(St*yt+zt*$+Et*ct-_t*J)*2,W[1]=(Et*yt+zt*J+_t*$-St*ct)*2,W[2]=(_t*yt+zt*ct+St*J-Et*$)*2),ze(x,T,W),x}function Oe(x,T){return x[0]=T[12],x[1]=T[13],x[2]=T[14],x}function Me(x,T){var W=T[0],$=T[1],J=T[2],ct=T[4],yt=T[5],St=T[6],Et=T[8],_t=T[9],zt=T[10];return x[0]=Math.hypot(W,$,J),x[1]=Math.hypot(ct,yt,St),x[2]=Math.hypot(Et,_t,zt),x}function gn(x,T){var W=new kt.WT(3);Me(W,T);var $=1/W[0],J=1/W[1],ct=1/W[2],yt=T[0]*$,St=T[1]*J,Et=T[2]*ct,_t=T[4]*$,zt=T[5]*J,Ht=T[6]*ct,Ct=T[8]*$,Wt=T[9]*J,Qt=T[10]*ct,fe=yt+zt+Qt,It=0;return fe>0?(It=Math.sqrt(fe+1)*2,x[3]=.25*It,x[0]=(Ht-Wt)/It,x[1]=(Ct-Et)/It,x[2]=(St-_t)/It):yt>zt&&yt>Qt?(It=Math.sqrt(1+yt-zt-Qt)*2,x[3]=(Ht-Wt)/It,x[0]=.25*It,x[1]=(St+_t)/It,x[2]=(Ct+Et)/It):zt>Qt?(It=Math.sqrt(1+zt-yt-Qt)*2,x[3]=(Ct-Et)/It,x[0]=(St+_t)/It,x[1]=.25*It,x[2]=(Ht+Wt)/It):(It=Math.sqrt(1+Qt-yt-zt)*2,x[3]=(St-_t)/It,x[0]=(Ct+Et)/It,x[1]=(Ht+Wt)/It,x[2]=.25*It),x}function Fn(x,T,W,$){var J=T[0],ct=T[1],yt=T[2],St=T[3],Et=J+J,_t=ct+ct,zt=yt+yt,Ht=J*Et,Ct=J*_t,Wt=J*zt,Qt=ct*_t,fe=ct*zt,It=yt*zt,we=St*Et,qe=St*_t,Ae=St*zt,Ie=$[0],Le=$[1],je=$[2];return x[0]=(1-(Qt+It))*Ie,x[1]=(Ct+Ae)*Ie,x[2]=(Wt-qe)*Ie,x[3]=0,x[4]=(Ct-Ae)*Le,x[5]=(1-(Ht+It))*Le,x[6]=(fe+we)*Le,x[7]=0,x[8]=(Wt+qe)*je,x[9]=(fe-we)*je,x[10]=(1-(Ht+Qt))*je,x[11]=0,x[12]=W[0],x[13]=W[1],x[14]=W[2],x[15]=1,x}function Jn(x,T,W,$,J){var ct=T[0],yt=T[1],St=T[2],Et=T[3],_t=ct+ct,zt=yt+yt,Ht=St+St,Ct=ct*_t,Wt=ct*zt,Qt=ct*Ht,fe=yt*zt,It=yt*Ht,we=St*Ht,qe=Et*_t,Ae=Et*zt,Ie=Et*Ht,Le=$[0],je=$[1],$n=$[2],Xn=J[0],Un=J[1],qn=J[2],or=(1-(fe+we))*Le,sr=(Wt+Ie)*Le,Bn=(Qt-Ae)*Le,on=(Wt-Ie)*je,Kr=(1-(Ct+we))*je,wa=(It+qe)*je,Sa=(Qt+Ae)*$n,Ts=(It-qe)*$n,Ma=(1-(Ct+fe))*$n;return x[0]=or,x[1]=sr,x[2]=Bn,x[3]=0,x[4]=on,x[5]=Kr,x[6]=wa,x[7]=0,x[8]=Sa,x[9]=Ts,x[10]=Ma,x[11]=0,x[12]=W[0]+Xn-(or*Xn+on*Un+Sa*qn),x[13]=W[1]+Un-(sr*Xn+Kr*Un+Ts*qn),x[14]=W[2]+qn-(Bn*Xn+wa*Un+Ma*qn),x[15]=1,x}function fn(x,T){var W=T[0],$=T[1],J=T[2],ct=T[3],yt=W+W,St=$+$,Et=J+J,_t=W*yt,zt=$*yt,Ht=$*St,Ct=J*yt,Wt=J*St,Qt=J*Et,fe=ct*yt,It=ct*St,we=ct*Et;return x[0]=1-Ht-Qt,x[1]=zt+we,x[2]=Ct-It,x[3]=0,x[4]=zt-we,x[5]=1-_t-Qt,x[6]=Wt+fe,x[7]=0,x[8]=Ct+It,x[9]=Wt-fe,x[10]=1-_t-Ht,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}function yn(x,T,W,$,J,ct,yt){var St=1/(W-T),Et=1/(J-$),_t=1/(ct-yt);return x[0]=ct*2*St,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=ct*2*Et,x[6]=0,x[7]=0,x[8]=(W+T)*St,x[9]=(J+$)*Et,x[10]=(yt+ct)*_t,x[11]=-1,x[12]=0,x[13]=0,x[14]=yt*ct*2*_t,x[15]=0,x}function vt(x,T,W,$,J){var ct=1/Math.tan(T/2),yt;return x[0]=ct/W,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=ct,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?(yt=1/($-J),x[10]=(J+$)*yt,x[14]=2*J*$*yt):(x[10]=-1,x[14]=-2*$),x}var Yt=vt;function et(x,T,W,$,J){var ct=1/Math.tan(T/2),yt;return x[0]=ct/W,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=ct,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?(yt=1/($-J),x[10]=J*yt,x[14]=J*$*yt):(x[10]=-1,x[14]=-$),x}function at(x,T,W,$){var J=Math.tan(T.upDegrees*Math.PI/180),ct=Math.tan(T.downDegrees*Math.PI/180),yt=Math.tan(T.leftDegrees*Math.PI/180),St=Math.tan(T.rightDegrees*Math.PI/180),Et=2/(yt+St),_t=2/(J+ct);return x[0]=Et,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=_t,x[6]=0,x[7]=0,x[8]=-((yt-St)*Et*.5),x[9]=(J-ct)*_t*.5,x[10]=$/(W-$),x[11]=-1,x[12]=0,x[13]=0,x[14]=$*W/(W-$),x[15]=0,x}function Ot(x,T,W,$,J,ct,yt){var St=1/(T-W),Et=1/($-J),_t=1/(ct-yt);return x[0]=-2*St,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*_t,x[11]=0,x[12]=(T+W)*St,x[13]=(J+$)*Et,x[14]=(yt+ct)*_t,x[15]=1,x}var gt=Ot;function $t(x,T,W,$,J,ct,yt){var St=1/(T-W),Et=1/($-J),_t=1/(ct-yt);return x[0]=-2*St,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]=_t,x[11]=0,x[12]=(T+W)*St,x[13]=(J+$)*Et,x[14]=ct*_t,x[15]=1,x}function Ft(x,T,W,$){var J,ct,yt,St,Et,_t,zt,Ht,Ct,Wt,Qt=T[0],fe=T[1],It=T[2],we=$[0],qe=$[1],Ae=$[2],Ie=W[0],Le=W[1],je=W[2];return Math.abs(Qt-Ie)0&&(Wt=1/Math.sqrt(Wt),zt*=Wt,Ht*=Wt,Ct*=Wt);var Qt=Et*Ct-_t*Ht,fe=_t*zt-St*Ct,It=St*Ht-Et*zt;return Wt=Qt*Qt+fe*fe+It*It,Wt>0&&(Wt=1/Math.sqrt(Wt),Qt*=Wt,fe*=Wt,It*=Wt),x[0]=Qt,x[1]=fe,x[2]=It,x[3]=0,x[4]=Ht*It-Ct*fe,x[5]=Ct*Qt-zt*It,x[6]=zt*fe-Ht*Qt,x[7]=0,x[8]=zt,x[9]=Ht,x[10]=Ct,x[11]=0,x[12]=J,x[13]=ct,x[14]=yt,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 lt(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,$){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 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],$=x[1],J=x[2],ct=x[3],yt=x[4],St=x[5],Et=x[6],_t=x[7],zt=x[8],Ht=x[9],Ct=x[10],Wt=x[11],Qt=x[12],fe=x[13],It=x[14],we=x[15],qe=T[0],Ae=T[1],Ie=T[2],Le=T[3],je=T[4],$n=T[5],Xn=T[6],Un=T[7],qn=T[8],or=T[9],sr=T[10],Bn=T[11],on=T[12],Kr=T[13],wa=T[14],Sa=T[15];return Math.abs(W-qe)<=kt.Ib*Math.max(1,Math.abs(W),Math.abs(qe))&&Math.abs($-Ae)<=kt.Ib*Math.max(1,Math.abs($),Math.abs(Ae))&&Math.abs(J-Ie)<=kt.Ib*Math.max(1,Math.abs(J),Math.abs(Ie))&&Math.abs(ct-Le)<=kt.Ib*Math.max(1,Math.abs(ct),Math.abs(Le))&&Math.abs(yt-je)<=kt.Ib*Math.max(1,Math.abs(yt),Math.abs(je))&&Math.abs(St-$n)<=kt.Ib*Math.max(1,Math.abs(St),Math.abs($n))&&Math.abs(Et-Xn)<=kt.Ib*Math.max(1,Math.abs(Et),Math.abs(Xn))&&Math.abs(_t-Un)<=kt.Ib*Math.max(1,Math.abs(_t),Math.abs(Un))&&Math.abs(zt-qn)<=kt.Ib*Math.max(1,Math.abs(zt),Math.abs(qn))&&Math.abs(Ht-or)<=kt.Ib*Math.max(1,Math.abs(Ht),Math.abs(or))&&Math.abs(Ct-sr)<=kt.Ib*Math.max(1,Math.abs(Ct),Math.abs(sr))&&Math.abs(Wt-Bn)<=kt.Ib*Math.max(1,Math.abs(Wt),Math.abs(Bn))&&Math.abs(Qt-on)<=kt.Ib*Math.max(1,Math.abs(Qt),Math.abs(on))&&Math.abs(fe-Kr)<=kt.Ib*Math.max(1,Math.abs(fe),Math.abs(Kr))&&Math.abs(It-wa)<=kt.Ib*Math.max(1,Math.abs(It),Math.abs(wa))&&Math.abs(we-Sa)<=kt.Ib*Math.max(1,Math.abs(we),Math.abs(Sa))}var K=ue,ut=Ut},38015:function(Ye,Ve,mt){"use strict";mt.d(Ve,{$X:function(){return Gt},AK:function(){return ze},Fv:function(){return Xe},I6:function(){return at},IH:function(){return re},JG:function(){return te},Ue:function(){return Rt},al:function(){return We},lu:function(){return $t},t7:function(){return Oe},t8:function(){return ve},tk:function(){return Ze}});var kt=mt(31767);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 ve(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 he(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 At(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 Je(Q){var st=Q[0],xt=Q[1];return Math.hypot(st,xt)}function $e(Q){var st=Q[0],xt=Q[1];return st*st+xt*xt}function Ze(Q,st){return Q[0]=-st[0],Q[1]=-st[1],Q}function un(Q,st){return Q[0]=1/st[0],Q[1]=1/st[1],Q}function Xe(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 ze(Q,st){return Q[0]*st[0]+Q[1]*st[1]}function ln(Q,st,xt){var H=st[0]*xt[1]-st[1]*xt[0];return Q[0]=Q[1]=0,Q[2]=H,Q}function Oe(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 Fn(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 Jn(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 fn(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 at(Q,st){return Q[0]===st[0]&&Q[1]===st[1]}function Ot(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 gt=null,$t=Gt,Ft=null,ae=null,X=null,lt=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 ze(H,K){return H[0]*K[0]+H[1]*K[1]+H[2]*K[2]}function ln(H,K,ut){var x=K[0],T=K[1],W=K[2],$=ut[0],J=ut[1],ct=ut[2];return H[0]=T*ct-W*J,H[1]=W*$-x*ct,H[2]=x*J-T*$,H}function Oe(H,K,ut,x){var T=K[0],W=K[1],$=K[2];return H[0]=T+x*(ut[0]-T),H[1]=W+x*(ut[1]-W),H[2]=$+x*(ut[2]-$),H}function Me(H,K,ut,x,T,W){var $=W*W,J=$*(2*W-3)+1,ct=$*(W-2)+W,yt=$*(W-1),St=$*(3-2*W);return H[0]=K[0]*J+ut[0]*ct+x[0]*yt+T[0]*St,H[1]=K[1]*J+ut[1]*ct+x[1]*yt+T[1]*St,H[2]=K[2]*J+ut[2]*ct+x[2]*yt+T[2]*St,H}function gn(H,K,ut,x,T,W){var $=1-W,J=$*$,ct=W*W,yt=J*$,St=3*W*J,Et=3*ct*$,_t=ct*W;return H[0]=K[0]*yt+ut[0]*St+x[0]*Et+T[0]*_t,H[1]=K[1]*yt+ut[1]*St+x[1]*Et+T[1]*_t,H[2]=K[2]*yt+ut[2]*St+x[2]*Et+T[2]*_t,H}function Fn(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 Jn(H,K,ut){var x=K[0],T=K[1],W=K[2],$=ut[3]*x+ut[7]*T+ut[11]*W+ut[15];return $=$||1,H[0]=(ut[0]*x+ut[4]*T+ut[8]*W+ut[12])/$,H[1]=(ut[1]*x+ut[5]*T+ut[9]*W+ut[13])/$,H[2]=(ut[2]*x+ut[6]*T+ut[10]*W+ut[14])/$,H}function fn(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],$=ut[3],J=K[0],ct=K[1],yt=K[2],St=T*yt-W*ct,Et=W*J-x*yt,_t=x*ct-T*J,zt=T*_t-W*Et,Ht=W*St-x*_t,Ct=x*Et-T*St,Wt=$*2;return St*=Wt,Et*=Wt,_t*=Wt,zt*=2,Ht*=2,Ct*=2,H[0]=J+St+zt,H[1]=ct+Et+Ht,H[2]=yt+_t+Ct,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 at(H,K){var ut=H[0],x=H[1],T=H[2],W=K[0],$=K[1],J=K[2],ct=Math.sqrt(ut*ut+x*x+T*T),yt=Math.sqrt(W*W+$*$+J*J),St=ct*yt,Et=St&&ze(H,K)/St;return Math.acos(Math.min(Math.max(Et,-1),1))}function Ot(H){return H[0]=0,H[1]=0,H[2]=0,H}function gt(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 Ft(H,K){var ut=H[0],x=H[1],T=H[2],W=K[0],$=K[1],J=K[2];return Math.abs(ut-W)<=kt.Ib*Math.max(1,Math.abs(ut),Math.abs(W))&&Math.abs(x-$)<=kt.Ib*Math.max(1,Math.abs(x),Math.abs($))&&Math.abs(T-J)<=kt.Ib*Math.max(1,Math.abs(T),Math.abs(J))}var ae=dt,X=he,lt=Zt,ht=ke,Ut=Je,Q=We,st=$e,xt=function(){var H=Rt();return function(K,ut,x,T,W,$){var J,ct;for(ut||(ut=3),x||(x=0),T?ct=Math.min(T*ut+x,K.length):ct=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 ze(X,lt){return X[0]*lt[0]+X[1]*lt[1]+X[2]*lt[2]+X[3]*lt[3]}function ln(X,lt,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=lt[0],T=lt[1],W=lt[2],$=lt[3];return X[0]=T*ut-W*K+$*H,X[1]=-(x*ut)+W*xt-$*st,X[2]=x*K-T*xt+$*Q,X[3]=-(x*H)+T*st-W*Q,X}function Oe(X,lt,ht,Ut){var Q=lt[0],st=lt[1],xt=lt[2],H=lt[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,lt){lt=lt||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]=lt*ht,X[1]=lt*Ut,X[2]=lt*Q*K,X[3]=lt*st*K,X}function gn(X,lt,ht){var Ut=lt[0],Q=lt[1],st=lt[2],xt=lt[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 Fn(X,lt,ht){var Ut=lt[0],Q=lt[1],st=lt[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,$=-xt*Ut-H*Q-K*st;return X[0]=x*ut+$*-xt+T*-K-W*-H,X[1]=T*ut+$*-H+W*-xt-x*-K,X[2]=W*ut+$*-K+x*-H-T*-xt,X[3]=lt[3],X}function Jn(X){return X[0]=0,X[1]=0,X[2]=0,X[3]=0,X}function fn(X){return"vec4("+X[0]+", "+X[1]+", "+X[2]+", "+X[3]+")"}function yn(X,lt){return X[0]===lt[0]&&X[1]===lt[1]&&X[2]===lt[2]&&X[3]===lt[3]}function vt(X,lt){var ht=X[0],Ut=X[1],Q=X[2],st=X[3],xt=lt[0],H=lt[1],K=lt[2],ut=lt[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,at=null,Ot=null,gt=null,$t=null,Ft=null,ae=function(){var X=Rt();return function(lt,ht,Ut,Q,st,xt){var H,K;for(ht||(ht=4),Ut||(Ut=0),Q?K=Math.min(Q*ht+Ut,lt.length):K=lt.length,H=Ut;H=0&&(mt.splice instanceof Function||Object.getOwnPropertyDescriptor(mt,mt.length-1)&&mt.constructor.name!=="String")}},42956:function(Ye){"use strict";var Ve=Ye.exports;Ye.exports.isNumber=function(mt){return typeof mt=="number"},Ye.exports.findMin=function(mt){if(mt.length===0)return 1/0;for(var kt=mt[0],Rt=1;Rt=Dt.length)){var gn=Math.max(Me-Zt,0),Fn=Me,Jn=Math.min(Me+Zt,Dt.length-1),fn=gn-(Me-Zt),yn=Me+Zt-Jn,vt=Je[-Zt-1+fn]||0,Yt=Je[-Zt-1+yn]||0,et=$e/($e-vt-Yt);fn>0&&(un+=et*(fn-1)*Ze);var at=Math.max(0,Me-Zt+1);te.inside(0,Dt.length-1,at)&&(Dt[at].y+=et*1*Ze),te.inside(0,Dt.length-1,Fn+1)&&(Dt[Fn+1].y-=et*2*Ze),te.inside(0,Dt.length-1,Jn+1)&&(Dt[Jn+1].y+=et*1*Ze)}});var Xe=un,ze=0,ln=0;return Dt.forEach(function(Oe){ze+=Oe.y,Xe+=ze,Oe.y=Xe,ln+=Xe}),ln>0&&Dt.forEach(function(Oe){Oe.y/=ln}),Dt};function re(Gt,dt){for(var he={},Zt=0,ue=-dt;ue<=dt;ue++)Zt+=Gt(ue/dt),he[ue]=Zt;return he}Ye.exports.getExpectedValueFromPdf=function(Gt){if(!(!Gt||Gt.length===0)){var dt=0;return Gt.forEach(function(he){dt+=he.x*he.y}),dt}},Ye.exports.getXWithLeftTailArea=function(Gt,dt){if(!(!Gt||Gt.length===0)){for(var he=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(he){var Zt=Math.log(he.y);isFinite(Zt)&&(dt+=he.y*Zt)}),dt=-dt/be,Math.pow(2,dt)}}},27933:function(Ye,Ve,mt){"use strict";var kt=mt(48254),Rt=Array.prototype.concat,be=Array.prototype.slice,We=Ye.exports=function(ve){for(var re=[],Gt=0,dt=ve.length;Gt=be.length?{done:!0}:{done:!1,value:be[ve++]}},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,he;return{s:function(){te=te.call(be)},n:function(){var ue=te.next();return Gt=ue.done,ue},e:function(ue){dt=!0,he=ue},f:function(){try{!Gt&&te.return!=null&&te.return()}finally{if(dt)throw he}}}}Ye.exports=Rt,Ye.exports.__esModule=!0,Ye.exports.default=Ye.exports},73983:function(Ye,Ve,mt){"use strict";var kt=mt(2337);Ve.Z=kt},99938:function(Ye,Ve,mt){"use strict";mt.d(Ve,{CR:function(){return Dt},Jh:function(){return ie},Q_:function(){return gn},XA:function(){return At},ZT:function(){return Rt},_T:function(){return We},ev:function(){return Je},mG:function(){return ue},pi:function(){return be},pr:function(){return ke}});var kt=function(et,at){return kt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ot,gt){Ot.__proto__=gt}||function(Ot,gt){for(var $t in gt)Object.prototype.hasOwnProperty.call(gt,$t)&&(Ot[$t]=gt[$t])},kt(et,at)};function Rt(et,at){if(typeof at!="function"&&at!==null)throw new TypeError("Class extends value "+String(at)+" is not a constructor or null");kt(et,at);function Ot(){this.constructor=et}et.prototype=at===null?Object.create(at):(Ot.prototype=at.prototype,new Ot)}var be=function(){return be=Object.assign||function(at){for(var Ot,gt=1,$t=arguments.length;gt<$t;gt++){Ot=arguments[gt];for(var Ft in Ot)Object.prototype.hasOwnProperty.call(Ot,Ft)&&(at[Ft]=Ot[Ft])}return at},be.apply(this,arguments)};function We(et,at){var Ot={};for(var gt in et)Object.prototype.hasOwnProperty.call(et,gt)&&at.indexOf(gt)<0&&(Ot[gt]=et[gt]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,gt=Object.getOwnPropertySymbols(et);$t=0;X--)(ae=et[X])&&(Ft=($t<3?ae(Ft):$t>3?ae(at,Ot,Ft):ae(at,Ot))||Ft);return $t>3&&Ft&&Object.defineProperty(at,Ot,Ft),Ft}function ve(et,at){return function(Ot,gt){at(Ot,gt,et)}}function re(et,at,Ot,gt,$t,Ft){function ae(x){if(x!==void 0&&typeof x!="function")throw new TypeError("Function expected");return x}for(var X=gt.kind,lt=X==="getter"?"get":X==="setter"?"set":"value",ht=!at&&et?gt.static?et:et.prototype:null,Ut=at||(ht?Object.getOwnPropertyDescriptor(ht,gt.name):{}),Q,st=!1,xt=Ot.length-1;xt>=0;xt--){var H={};for(var K in gt)H[K]=K==="access"?{}:gt[K];for(var K in gt.access)H.access[K]=gt.access[K];H.addInitializer=function(x){if(st)throw new TypeError("Cannot add initializers after decoration has completed");Ft.push(ae(x||null))};var ut=(0,Ot[xt])(X==="accessor"?{get:Ut.get,set:Ut.set}:Ut[lt],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[lt]=Q)}ht&&Object.defineProperty(ht,gt.name,Ut),st=!0}function Gt(et,at,Ot){for(var gt=arguments.length>2,$t=0;$t0&&Ft[Ft.length-1])&&(ht[0]===6||ht[0]===2)){Ot=0;continue}if(ht[0]===3&&(!Ft||ht[1]>Ft[0]&&ht[1]=et.length&&(et=void 0),{value:et&&et[gt++],done:!et}}};throw new TypeError(at?"Object is not iterable.":"Symbol.iterator is not defined.")}function Dt(et,at){var Ot=typeof Symbol=="function"&&et[Symbol.iterator];if(!Ot)return et;var gt=Ot.call(et),$t,Ft=[],ae;try{for(;(at===void 0||at-- >0)&&!($t=gt.next()).done;)Ft.push($t.value)}catch(X){ae={error:X}}finally{try{$t&&!$t.done&&(Ot=gt.return)&&Ot.call(gt)}finally{if(ae)throw ae.error}}return Ft}function Se(){for(var et=[],at=0;at1||X(st,xt)})})}function X(st,xt){try{lt(gt[st](xt))}catch(H){Q(Ft[0][3],H)}}function lt(st){st.value instanceof $e?Promise.resolve(st.value.v).then(ht,Ut):Q(Ft[0][2],st)}function ht(st){X("next",st)}function Ut(st){X("throw",st)}function Q(st,xt){st(xt),Ft.shift(),Ft.length&&X(Ft[0][0],Ft[0][1])}}function un(et){var at,Ot;return at={},gt("next"),gt("throw",function($t){throw $t}),gt("return"),at[Symbol.iterator]=function(){return this},at;function gt($t,Ft){at[$t]=et[$t]?function(ae){return(Ot=!Ot)?{value:$e(et[$t](ae)),done:!1}:Ft?Ft(ae):ae}:Ft}}function Xe(et){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var at=et[Symbol.asyncIterator],Ot;return at?at.call(et):(et=typeof At=="function"?At(et):et[Symbol.iterator](),Ot={},gt("next"),gt("throw"),gt("return"),Ot[Symbol.asyncIterator]=function(){return this},Ot);function gt(Ft){Ot[Ft]=et[Ft]&&function(ae){return new Promise(function(X,lt){ae=et[Ft](ae),$t(X,lt,ae.done,ae.value)})}}function $t(Ft,ae,X,lt){Promise.resolve(lt).then(function(ht){Ft({value:ht,done:X})},ae)}}function ze(et,at){return Object.defineProperty?Object.defineProperty(et,"raw",{value:at}):et.raw=at,et}var ln=Object.create?function(et,at){Object.defineProperty(et,"default",{enumerable:!0,value:at})}:function(et,at){et.default=at};function Oe(et){if(et&&et.__esModule)return et;var at={};if(et!=null)for(var Ot in et)Ot!=="default"&&Object.prototype.hasOwnProperty.call(et,Ot)&&jt(at,et,Ot);return ln(at,et),at}function Me(et){return et&&et.__esModule?et:{default:et}}function gn(et,at,Ot,gt){if(Ot==="a"&&!gt)throw new TypeError("Private accessor was defined without a getter");if(typeof at=="function"?et!==at||!gt:!at.has(et))throw new TypeError("Cannot read private member from an object whose class did not declare it");return Ot==="m"?gt:Ot==="a"?gt.call(et):gt?gt.value:at.get(et)}function Fn(et,at,Ot,gt,$t){if(gt==="m")throw new TypeError("Private method is not writable");if(gt==="a"&&!$t)throw new TypeError("Private accessor was defined without a setter");if(typeof at=="function"?et!==at||!$t:!at.has(et))throw new TypeError("Cannot write private member to an object whose class did not declare it");return gt==="a"?$t.call(et,Ot):$t?$t.value=Ot:at.set(et,Ot),Ot}function Jn(et,at){if(at===null||typeof at!="object"&&typeof at!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof et=="function"?at===et:et.has(at)}function fn(et,at,Ot){if(at!=null){if(typeof at!="object"&&typeof at!="function")throw new TypeError("Object expected.");var gt;if(Ot){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");gt=at[Symbol.asyncDispose]}if(gt===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");gt=at[Symbol.dispose]}if(typeof gt!="function")throw new TypeError("Object not disposable.");et.stack.push({value:at,dispose:gt,async:Ot})}else Ot&&et.stack.push({async:!0});return at}var yn=typeof SuppressedError=="function"?SuppressedError:function(et,at,Ot){var gt=new Error(Ot);return gt.name="SuppressedError",gt.error=et,gt.suppressed=at,gt};function vt(et){function at(gt){et.error=et.hasError?new yn(gt,et.error,"An error was suppressed during disposal."):gt,et.hasError=!0}function Ot(){for(;et.stack.length;){var gt=et.stack.pop();try{var $t=gt.dispose&>.dispose.call(gt.value);if(gt.async)return Promise.resolve($t).then(Ot,function(Ft){return at(Ft),Ot()})}catch(Ft){at(Ft)}}if(et.hasError)throw et.error}return Ot()}var Yt={__extends:Rt,__assign:be,__rest:We,__decorate:te,__param:ve,__metadata:Zt,__awaiter:ue,__generator:ie,__createBinding:jt,__exportStar:Lt,__values:At,__read:Dt,__spread:Se,__spreadArrays:ke,__spreadArray:Je,__await:$e,__asyncGenerator:Ze,__asyncDelegator:un,__asyncValues:Xe,__makeTemplateObject:ze,__importStar:Oe,__importDefault:Me,__classPrivateFieldGet:gn,__classPrivateFieldSet:Fn,__classPrivateFieldIn:Jn,__addDisposableResource:fn,__disposeResources:vt}}}]); diff --git a/9813.a403c862.async.js b/9813.a403c862.async.js new file mode 100644 index 0000000000..0c8335e711 --- /dev/null +++ b/9813.a403c862.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9813],{16590:function(Oe,de,e){e.d(de,{A:function(){return t}});var p=e(35361),i=e(26935),P=e(50959),T=e(22332),ne=e(54856),L=e(88357),U=e(959),te=e(25671),ve=e(65589),me=e(54070),K=e(38751),X=e(10994),J=e(82187),re=e.n(J),fe=e(86047),W=e(81408),Q=e(34829),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(11527),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(76001);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},20062:function(Oe,de,e){e.d(de,{U9:function(){return se},L0:function(){return ae},bg:function(){return _}});var p=e(88357),i=e(35361),P=e(11642),T=e(73356),ne=e(30360),L=e(959),U=e(56929),te=e(99192),ve=e(48232),me=e(45057),K=e(81447),X=e(48966),J=e(61323),re=e(38751),fe=e(71503),W=e(48782),Q=e(86865),A=e(10994),R=e(26935),u=e(82187),w=e.n(u),k=e(13763),pe=e(65589),t=e(50959),m=e(71770),h=e(12868),Z=e(22332),s=e(11527),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(34829),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},54070:function(Oe,de,e){e.d(de,{G:function(){return Q}});var p=e(35361),i=e(88357),P=e(27263),T=e(50959),ne=e(9455),L=e(38782),U=function(R,u){return T.createElement(L.Z,(0,P.Z)({},R,{ref:u,icon:ne.Z}))},te=T.forwardRef(U),ve=e(38751),me=e(27850),K=e(82187),X=e.n(K),J=e(34829),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(11527),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/9906.e4b73fe6.async.js b/9906.e4b73fe6.async.js deleted file mode 100644 index aedea27af0..0000000000 --- a/9906.e4b73fe6.async.js +++ /dev/null @@ -1,11 +0,0 @@ -"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/account/center/index.html b/account/center/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/account/center/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/account/index.html b/account/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/account/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/account/settings/index.html b/account/settings/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/account/settings/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/dashboard/analysis/index.html b/dashboard/analysis/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/dashboard/analysis/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/dashboard/index.html b/dashboard/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/dashboard/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/dashboard/monitor/index.html b/dashboard/monitor/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/dashboard/monitor/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/dashboard/workplace/index.html b/dashboard/workplace/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/dashboard/workplace/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/exception/403/index.html b/exception/403/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/exception/403/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/exception/404/index.html b/exception/404/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/exception/404/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/exception/500/index.html b/exception/500/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/exception/500/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/exception/index.html b/exception/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/exception/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/form/advanced-form/index.html b/form/advanced-form/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/form/advanced-form/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/form/basic-form/index.html b/form/basic-form/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/form/basic-form/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/form/index.html b/form/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/form/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/form/step-form/index.html b/form/step-form/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/form/step-form/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/index.html b/index.html index 83a4c7a67b..59a32ec0a3 100644 --- a/index.html +++ b/index.html @@ -3,11 +3,11 @@ Ant Design Pro - +
    - + \ No newline at end of file diff --git a/list/basic-list/index.html b/list/basic-list/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/list/basic-list/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/list/card-list/index.html b/list/card-list/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/list/card-list/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/list/index.html b/list/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/list/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/list/search/applications/index.html b/list/search/applications/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/list/search/applications/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/list/search/articles/index.html b/list/search/articles/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/list/search/articles/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/list/search/index.html b/list/search/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/list/search/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/list/search/projects/index.html b/list/search/projects/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/list/search/projects/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/list/table-list/index.html b/list/table-list/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/list/table-list/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/p__404.9275b5a6.async.js b/p__404.9275b5a6.async.js new file mode 100644 index 0000000000..f8706bacf8 --- /dev/null +++ b/p__404.9275b5a6.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2571],{90256:function(o,s,t){t.r(s);var n=t(29670),u=t(75130),_=t(86865),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__404.d7494e27.async.js b/p__404.d7494e27.async.js deleted file mode 100644 index 1aa97bd6e5..0000000000 --- a/p__404.d7494e27.async.js +++ /dev/null @@ -1 +0,0 @@ -"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__account__center__index.064410af.async.js b/p__account__center__index.064410af.async.js new file mode 100644 index 0000000000..4cdb4a5ea6 --- /dev/null +++ b/p__account__center__index.064410af.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4679],{90759:function(_t,U,a){a.r(U),a.d(U,{default:function(){return Jt}});var J=a(15558),O=a.n(J),Q=a(48305),z=a.n(Q),w=a(1442),q=a(93590),_=a(64935),tt=a(26252),et=a(46268),y=a(29670),L=a(59084),at=a(21713),W=a(48966),D=a(61323),S=a(16965),K=a(32923),C=a(74629),p=a(50959),T=a(95815),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(60600),B=a(27850),ot=a(92965),dt=a(4587),ct=a.n(dt),ut=a(90228),N=a.n(ut),xt=a(87999),G=a.n(xt);function vt(){return E.apply(this,arguments)}function E(){return E=G()(N()().mark(function s(){return N()().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()(N()().mark(function s(e){return N()().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)(B.Z,{title:"\u4E0B\u8F7D",children:(0,t.jsx)(rt.Z,{})},"download"),(0,t.jsx)(B.Z,{title:"\u7F16\u8F91",children:(0,t.jsx)(st.Z,{})},"edit"),(0,t.jsx)(B.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(82092),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",display:"flex",alignItems:"center",gap:8,"& > 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}}}),Bt=zt,Nt=function(){var e=Bt(),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=Nt,Dt=a(92117),Et=a.n(Dt),Rt=a(26068),b=a.n(Rt),Pt=a(67825),Mt=a.n(Pt),Ut=a(82187),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(u){return Ot()(l.avatarItem,H()(H()(H()({},l.avatarItemLarge,u==="large"),l.avatarItemSmall,u==="small"),l.avatarItemMini,u==="mini"))},m=x(i);return(0,t.jsx)("li",{className:m,onClick:c,children:o?(0,t.jsx)(B.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,u=p.Children.toArray(n),v=u.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),u=g[0],v=g[1],Z=(0,p.useState)(""),I=z()(Z,2),j=I[0],k=I[1],Qt=function(){if(v(!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),v(!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)}),u&&(0,t.jsx)(at.Z,{ref:d,type:"text",size:"small",style:{width:78},value:j,onChange:wt,onBlur:X,onPressEnter:X}),!u&&(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 vt()}),l=r.data,x=r.loading,m=function(v){var Z=v.title,I=v.group,j=v.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(v){return v==="projects"?(0,t.jsx)($t,{}):v==="applications"?(0,t.jsx)(ft,{}):v==="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(u){return(0,t.jsx)(D.Z,{lg:24,xl:12,children:(0,t.jsxs)("a",{href:u.href,children:[(0,t.jsx)(C.C,{size:"small",src:u.logo}),u.member]})},u.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(v){c(v)},children:g(d)})})]})})},Jt=Xt}}]); diff --git a/p__account__center__index.c221b05c.async.js b/p__account__center__index.c221b05c.async.js deleted file mode 100644 index 0b354552ee..0000000000 --- a/p__account__center__index.c221b05c.async.js +++ /dev/null @@ -1 +0,0 @@ -"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.2a06c081.async.js b/p__account__settings__index.2a06c081.async.js new file mode 100644 index 0000000000..4f18c4400a --- /dev/null +++ b/p__account__settings__index.2a06c081.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[331],{22522:function(we,D,r){r.r(D),r.d(D,{default:function(){return ge}});var I=r(26068),g=r.n(I),V=r(48305),T=r.n(V),L=r(46268),P=r(68865),w=r(50959),W=r(90228),d=r.n(W),H=r(87999),y=r.n(H),K=r(68968),N=r(16590),A=r(44896),$=r(19805),S=r(34635),U=r(75657),G=r(52403),B=r(29670),O=r(32895),k=r(86865),X=r(39617),z=r(21713);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(82092),j=r.n(q),R=r(95815),_=(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(60600),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(66371),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 deleted file mode 100644 index 4d66b57e1d..0000000000 --- a/p__account__settings__index.bd56c1b7.async.js +++ /dev/null @@ -1 +0,0 @@ -"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.edae6d06.async.js b/p__dashboard__analysis__index.edae6d06.async.js deleted file mode 100644 index 14872f3600..0000000000 --- a/p__dashboard__analysis__index.edae6d06.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7071],{12086:function(G,E,a){var D=a(93264),S=a(79685),b=a(62415),N=a(64507),j=function(y,v){return S.createElement(N.Z,(0,D.Z)((0,D.Z)({},y),{},{ref:v,icon:b.Z}))};j.displayName="EllipsisOutlined",E.Z=S.forwardRef(j)},63243:function(G,E,a){var D=a(93264),S=a(79685),b=a(92933),N=a(64507),j=function(y,v){return S.createElement(N.Z,(0,D.Z)((0,D.Z)({},y),{},{ref:v,icon:b.Z}))};j.displayName="InfoCircleOutlined",E.Z=S.forwardRef(j)},99758:function(G,E,a){var D=a(79685),S=a(81383),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(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;t *":{position:"relative"}},footerMargin:{marginTop:"20px"}}}),Je=Ye,n=t(11527),Qe=["loading","contentHeight","title","avatar","action","total","footer","children"],qe=function(e){var a=Je(),i=a.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},u=function(){var s=e.contentHeight,L=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:L}),(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})]})},d=e.loading,g=d===void 0?!1:d,x=e.contentHeight,o=e.title,c=e.avatar,f=e.action,D=e.total,k=e.footer,Se=e.children,re=q()(e,Qe);return(0,n.jsx)(U.Z,m()(m()({loading:g,bodyStyle:{padding:"20px 24px 8px 24px"}},re),{},{children:u()}))},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 a=e.label,i=e.value,l=q()(e,nn),u=en(),d=u.styles;return(0,n.jsxs)("div",m()(m()({className:d.field},l),{},{children:[(0,n.jsx)("span",{className:d.label,children:a}),(0,n.jsx)("span",{className:d.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()(a,r);var e=Ke()(a);function a(){var i;ce()(this,a);for(var l=arguments.length,u=new Array(l),d=0;d 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 a=e.theme,i=e.title,l=e.subTitle,u=e.total,d=e.subTotal,g=e.status,x=e.suffix,o=e.gap,c=q()(e,Pn),f=On(),D=f.styles;return(0,n.jsxs)("div",m()(m()({className:_()(D.numberInfo,C()({},D["numberInfo".concat(a)],a))},c),{},{children:[i&&(0,n.jsx)("div",{className:D.numberInfoTitle,title:typeof i=="string"?i:"",children:i}),l&&(0,n.jsx)("div",{className:D.numberInfoSubTitle,title:typeof l=="string"?l:"",children:l}),(0,n.jsxs)("div",{className:D.numberInfoValue,style:o?{marginTop:o}:{},children:[(0,n.jsxs)("span",{children:[u,x&&(0,n.jsx)("em",{className:D.suffix,children:x})]}),(g||d)&&(0,n.jsxs)("span",{className:D.subTotal,children:[d,g&&g==="up"?(0,n.jsx)(Ie,{}):(0,n.jsx)(Fe,{})]})]})]}))},me=Zn,Nn=function(e){var a=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:a.name,subTitle:"\u8F6C\u5316\u7387",gap:2,total:"".concat(a.cvr*100,"%"),theme:i!==a.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:a.cvr,color:["#E8EEF4","#5FABF4"]})})]})},Bn=function(e){var a=e.activeKey,i=e.loading,l=e.offlineData,u=e.offlineChartData,d=e.handleTabChange,g=w(),x=g.styles;return(0,n.jsx)(U.Z,{loading:i,className:x.offlineCard,bordered:!1,style:{marginTop:32},children:(0,n.jsx)(Ae.Z,{activeKey:a,onChange:d,items:l.map(function(o){return{key:o.name,label:(0,n.jsx)(Nn,{data:o,currentTabKey:a}),children:(0,n.jsx)("div",{style:{padding:"0 24px"},children:(0,n.jsx)(En,{height:400,data:u,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=t(13089),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,a=1,i=arguments.length;a2e3}},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.e7a18b3d.async.js b/p__dashboard__monitor__index.e7a18b3d.async.js new file mode 100644 index 0000000000..f0079ed202 --- /dev/null +++ b/p__dashboard__monitor__index.e7a18b3d.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[533],{64883:function(gt,D,e){e.r(D),e.d(D,{default:function(){return ft}});var $=e(3e3),N=e(84098),L=e(4623),R=e(46268),B=e(29670),x=e(24223),p=e(48966),u=e(61323),v=e(16965),C=e(24156),P=e(4587),F=e.n(P),G=e(15558),S=e.n(G),H=e(48305),E=e.n(H),I=e(52698),m=e(50959),z=e(95815),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(90228),y=e.n(V),X=e(87999),M=e.n(X),Y=e(25298),b=e.n(Y),w=e(17069),k=e.n(w),q=e(62657),_=e.n(q),tt=e(21742),et=e.n(tt),at=e(83136),nt=e.n(at),st=e(82092),T=e.n(st),lt=e(35375),j=e(72493),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.4d303978.async.js b/p__dashboard__workplace__index.4d303978.async.js new file mode 100644 index 0000000000..44e98e3cfb --- /dev/null +++ b/p__dashboard__workplace__index.4d303978.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8123],{19218:function(ce,B,n){n.r(B),n.d(B,{default:function(){return ie}});var H=n(58338),D=n(35894),l=n(29670),P=n(9146),f=n(74629),y=n(24223),j=n(60600),F=n(48966),S=n(61323),u=n(16965),R=n(5726),w=n.n(R),I=n(92117),M=n.n(I),O=n(1442),X=n(86865),$=n(50959),z=n(95815),U=(0,z.kc)(function(o){var t=o.token;return{linkGroup:{padding:"20px 0 8px 24px",fontSize:"0","& > a":{display:"inline-block",width:"25%",marginBottom:"13px",color:t.colorText,fontSize:t.fontSize,"&:hover":{color:t.colorPrimary}}}}}),W=U,e=n(11527),Z=function(t){var a=W(),i=a.styles,c=t.links,h=t.linkElement,g=t.onAdd;return(0,e.jsxs)("div",{className:i.linkGroup,children:[c.map(function(p){return(0,$.createElement)(h,{key:"linkGroup-item-".concat(p.id||p.title),to:p.href,href:p.href},p.title)}),(0,e.jsxs)(X.ZP,{size:"small",type:"primary",ghost:!0,onClick:g,children:[(0,e.jsx)(O.Z,{})," \u6DFB\u52A0"]})]})};Z.defaultProps={links:[],onAdd:function(){},linkElement:"a"};var V=Z,J=n(90228),m=n.n(J),K=n(87999),C=n.n(K);function Q(){return k.apply(this,arguments)}function k(){return k=C()(m()().mark(function o(){return m()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,l.request)("/api/project/notice"));case 1:case"end":return a.stop()}},o)})),k.apply(this,arguments)}function Y(){return E.apply(this,arguments)}function E(){return E=C()(m()().mark(function o(){return m()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,l.request)("/api/activities"));case 1:case"end":return a.stop()}},o)})),E.apply(this,arguments)}function q(){return L.apply(this,arguments)}function L(){return L=C()(m()().mark(function o(){return m()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,l.request)("/api/fake_workplace_chart_data"));case 1:case"end":return a.stop()}},o)})),L.apply(this,arguments)}var _=n(82092),s=n.n(_),ee=(0,z.kc)(function(o){var t=o.token;return{activitiesList:{padding:"0 24px 8px 24px"},username:{color:t.colorText},event:{fontWeight:"normal"},pageHeaderContent:s()({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:s()({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:s()(s()(s()({zoom:"1","&::before, &::after":{display:"table",content:"' '"},"&::after":{clear:"both",height:"0",fontSize:"0",visibility:"hidden"},float:"right",whiteSpace:"nowrap"},"@media screen and (max-width: ".concat(t.screenXL,"px) and (min-width: @screen-lg)"),{marginLeft:"-44px"}),"@media screen and (max-width: ".concat(t.screenLG,"px)"),{float:"none",marginRight:"0"}),"@media screen and (max-width: ".concat(t.screenMD,"px)"),{marginLeft:"-16px"}),statItem:s()(s()(s()({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"}}},"@media screen and (max-width: ".concat(t.screenXL,"px) and (min-width: @screen-lg)"),{padding:"0 16px"}),"@media screen and (max-width: ".concat(t.screenLG,"px)"),{padding:"0 16px",textAlign:"left","&::after":{display:"none"}}),"@media screen and (max-width: ".concat(t.screenSM,"px)"),{float:"none"}),members:s()(s()({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}}},"@media screen and (max-width: ".concat(t.screenXL,"px) and (min-width: @screen-lg)"),{marginBottom:"0"}),"@media screen and (max-width: ".concat(t.screenLG,"px)"),{marginBottom:"0"}),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:s()(s()({width:"33.33%"},"@media screen and (max-width: ".concat(t.screenMD,"px)"),{width:"50%"}),"@media screen and (max-width: ".concat(t.screenXS,"px)"),{width:"100%"}),projectItemContent:{display:"flex",height:"20px",marginTop:"8px",overflow:"hidden",fontSize:"12px",gap:"8px",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:s()(s()({},"@media screen and (max-width: ".concat(t.screenXL,"px) and (min-width: @screen-lg)"),{marginBottom:"24px"}),"@media screen and (max-width: ".concat(t.screenLG,"px)"),{marginBottom:"24px"})}}),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(t){var a=t.currentUser,i=N(),c=i.styles,h=a&&Object.keys(a).length;return h?(0,e.jsxs)("div",{className:c.pageHeaderContent,children:[(0,e.jsx)("div",{className:c.avatar,children:(0,e.jsx)(f.C,{size:"large",src:a.avatar})}),(0,e.jsxs)("div",{className:c.content,children:[(0,e.jsxs)("div",{className:c.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 t=N(),a=t.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 t,a=N(),i=a.styles,c=(0,l.useRequest)(Q),h=c.loading,g=c.data,p=g===void 0?[]:g,A=(0,l.useRequest)(Y),T=A.loading,G=A.data,se=G===void 0?[]:G,oe=(0,l.useRequest)(q),v=oe.data,le=function(d){var de=d.template.split(/@\{([^{}]*)\}/gi).map(function(b){if(d[b]){var x=d[b];return(0,e.jsx)("a",{href:x==null?void 0:x.link,children:x.name},x==null?void 0:x.name)}return b});return(0,e.jsx)(j.Z.Item,{children:(0,e.jsx)(j.Z.Item.Meta,{avatar:(0,e.jsx)(f.C,{src:d.user.avatar}),title:(0,e.jsxs)("span",{children:[(0,e.jsx)("a",{className:i.username,children:d.user.name}),"\xA0",(0,e.jsx)("span",{className:i.event,children:de})]}),description:(0,e.jsx)("span",{className:i.datetime,title:d.updatedAt,children:w()(d.updatedAt).fromNow()})})},d.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)(u.Z,{className:i.projectList,style:{marginBottom:24},title:"\u8FDB\u884C\u4E2D\u7684\u9879\u76EE",bordered:!1,extra:(0,e.jsx)(l.Link,{to:"/",children:"\u5168\u90E8\u9879\u76EE"}),loading:h,bodyStyle:{padding:0},children:p.map(function(r){return(0,e.jsx)(u.Z.Grid,{className:i.projectGrid,children:(0,e.jsxs)(u.Z,{style:{boxShadow:"none"},bodyStyle:{padding:0},bordered:!1,children:[(0,e.jsx)(u.Z.Meta,{title:(0,e.jsxs)("div",{className:i.cardTitle,children:[(0,e.jsx)(f.C,{size:"small",src:r.logo}),(0,e.jsx)(l.Link,{to:r.href||"/",children:r.title})]}),description:r.description}),(0,e.jsxs)("div",{className:i.projectItemContent,children:[(0,e.jsx)(l.Link,{to:r.memberLink||"/",children:r.member||""}),r.updatedAt&&(0,e.jsx)("span",{className:i.datetime,title:r.updatedAt,children:w()(r.updatedAt).fromNow()})]})]})},r.id)})}),(0,e.jsx)(u.Z,{bodyStyle:{padding:0},bordered:!1,className:i.activeCard,title:"\u52A8\u6001",loading:T,children:(0,e.jsx)(j.Z,{loading:T,renderItem:function(d){return le(d)},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)(u.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:l.Link})}),(0,e.jsx)(u.Z,{style:{marginBottom:24},bordered:!1,title:"XX \u6307\u6570",loading:(v==null||(t=v.radarData)===null||t===void 0?void 0:t.length)===0,children:(0,e.jsx)("div",{children:(0,e.jsx)(H.Z,{height:343,data:(v==null?void 0:v.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)(u.Z,{bodyStyle:{paddingTop:12,paddingBottom:12},bordered:!1,title:"\u56E2\u961F",loading:h,children:(0,e.jsx)("div",{className:i.members,children:(0,e.jsx)(F.Z,{gutter:48,children:p.map(function(r){return(0,e.jsx)(S.Z,{span:12,children:(0,e.jsxs)("a",{children:[(0,e.jsx)(f.C,{src:r.logo,size:"small"}),(0,e.jsx)("span",{className:i.member,children:r.member.substring(0,3)})]})},"members-item-".concat(r.id))})})})})]})]})})},ie=re}}]); diff --git a/p__dashboard__workplace__index.b715f6d4.async.js b/p__dashboard__workplace__index.b715f6d4.async.js deleted file mode 100644 index a7b58ee8ac..0000000000 --- a/p__dashboard__workplace__index.b715f6d4.async.js +++ /dev/null @@ -1 +0,0 @@ -"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.24d0eb0f.async.js b/p__exception__403__index.24d0eb0f.async.js deleted file mode 100644 index 512a405abf..0000000000 --- a/p__exception__403__index.24d0eb0f.async.js +++ /dev/null @@ -1 +0,0 @@ -"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__403__index.ebe8bea0.async.js b/p__exception__403__index.ebe8bea0.async.js new file mode 100644 index 0000000000..98d4206def --- /dev/null +++ b/p__exception__403__index.ebe8bea0.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5251],{43406:function(o,s,t){t.r(s);var a=t(29670),_=t(75130),u=t(86865),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"})})})}}}]); diff --git a/p__exception__404__index.963c3e28.async.js b/p__exception__404__index.963c3e28.async.js new file mode 100644 index 0000000000..06e4e7b63a --- /dev/null +++ b/p__exception__404__index.963c3e28.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4826],{99578:function(i,s,t){t.r(s);var _=t(29670),a=t(75130),e=t(86865),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"})})})}}}]); diff --git a/p__exception__404__index.e8b5e5fb.async.js b/p__exception__404__index.e8b5e5fb.async.js deleted file mode 100644 index 7ea3aa15a2..0000000000 --- a/p__exception__404__index.e8b5e5fb.async.js +++ /dev/null @@ -1 +0,0 @@ -"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.913ed999.async.js b/p__exception__500__index.913ed999.async.js new file mode 100644 index 0000000000..08003ed655 --- /dev/null +++ b/p__exception__500__index.913ed999.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[996],{58916:function(r,s,n){n.r(s);var _=n(29670),a=n(75130),E=n(86865),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"})})})}}}]); diff --git a/p__exception__500__index.f53cc9c5.async.js b/p__exception__500__index.f53cc9c5.async.js deleted file mode 100644 index 172b2c4898..0000000000 --- a/p__exception__500__index.f53cc9c5.async.js +++ /dev/null @@ -1 +0,0 @@ -"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 deleted file mode 100644 index 9d15e649d2..0000000000 --- a/p__form__advanced-form__index.67d0a6c7.async.js +++ /dev/null @@ -1 +0,0 @@ -"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.adb4c197.async.js b/p__form__advanced-form__index.adb4c197.async.js new file mode 100644 index 0000000000..c5c2379d98 --- /dev/null +++ b/p__form__advanced-form__index.adb4c197.async.js @@ -0,0 +1 @@ +"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(35361),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)},22223:function(ce,z,n){var x=n(35361),h=n(56929),N=n(13717),T=n(50959),H=n(86047),U=n(8376),$=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},34635:function(ce,z,n){var x=n(35361),h=n(56929),N=n(75442),T=n(50959),H=n(86047),U=n(8376),$=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},44896:function(ce,z,n){var x=n(959),h=n(35361),N=n(56929),T=n(65589),H=n(26935),U=n(23835),$=n(71770),Q=n(50959),A=n(8376),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},23407:function(ce,z,n){n.r(z),n.d(z,{default:function(){return ke}});var x=n(90228),h=n.n(x),N=n(87999),T=n.n(N),H=n(48305),U=n.n(H),$=n(67641),Q=n(16590),A=n(35623),Z=n(35894),I=n(44896),L=n(34635),B=n(22223),t=n(35361),g=n(56929),C=n(13717),u=n(50959),w=n(86047),d=n(8376),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(88357),D=n(959),xe=n(11642),De=n(73356),Oe=n(48491),Me=n(75657),Be=n(6457),be=n(99192),Ce=n(81447),Se=n(64567),Ze=n(75442),Ae=n(24303),Ie=n(86865),Le=n(26935),Ke=n(65589),me=n(85108),Ee=n(6169),We=n(99148),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(23835),we=n(39617),fe=n(16965),ve=n(48966),K=n(61323),Je=n(29670);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(95815),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.3d3a406a.async.js b/p__form__basic-form__index.3d3a406a.async.js new file mode 100644 index 0000000000..f627008678 --- /dev/null +++ b/p__form__basic-form__index.3d3a406a.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[794],{22223:function(N,g,e){var n=e(35361),i=e(56929),d=e(13717),c=e(50959),Z=e(86047),m=e(8376),x=e(11527),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},5778:function(N,g,e){var n=e(35361),i=e(56929),d=e(75442),c=e(3590),Z=e(50959),m=e(33359),x=e(8376),j=e(11527),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},19805:function(N,g,e){var n=e(35361),i=e(56929),d=e(50959),c=e(8376),Z=e(11527),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)},16590:function(N,g,e){e.d(g,{A:function(){return y}});var n=e(35361),i=e(26935),d=e(50959),c=e(22332),Z=e(54856),m=e(88357),x=e(959),j=e(25671),E=e(65589),M=e(54070),C=e(38751),D=e(10994),f=e(82187),s=e.n(f),B=e(86047),p=e(81408),O=e(34829),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(11527),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(76001);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},54070:function(N,g,e){e.d(g,{G:function(){return O}});var n=e(35361),i=e(88357),d=e(27263),c=e(50959),Z=e(9455),m=e(38782),x=function(P,t){return c.createElement(m.Z,(0,d.Z)({},P,{ref:t,icon:Z.Z}))},j=c.forwardRef(x),E=e(38751),M=e(27850),C=e(82187),D=e.n(C),f=e(34829),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(11527),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})}))]}))})},90797:function(N,g,e){e.r(g),e.d(g,{default:function(){return y}});var n=e(90228),i=e.n(n),d=e(87999),c=e.n(d),Z=e(35894),m=e(16590),x=e(44896),j=e(22223),E=e(19805),M=e(5366),C=e(5778),D=e(75657),f=e(34635),s=e(29670),B=e(39617),p=e(16965);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(95815),t=(0,P.kc)(function(o){var a=o.token;return{optional:{color:a.colorTextSecondary,fontStyle:"normal"}}}),A=t,r=e(11527),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.5666ede1.async.js b/p__form__basic-form__index.5666ede1.async.js deleted file mode 100644 index 18de5bb811..0000000000 --- a/p__form__basic-form__index.5666ede1.async.js +++ /dev/null @@ -1 +0,0 @@ -"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__step-form__index.2e9ac0c7.async.js b/p__form__step-form__index.2e9ac0c7.async.js deleted file mode 100644 index f923bc97e7..0000000000 --- a/p__form__step-form__index.2e9ac0c7.async.js +++ /dev/null @@ -1 +0,0 @@ -"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__form__step-form__index.8de27b63.async.js b/p__form__step-form__index.8de27b63.async.js new file mode 100644 index 0000000000..9a910577aa --- /dev/null +++ b/p__form__step-form__index.8de27b63.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2736],{58774:function(de,Z,s){s.r(Z),s.d(Z,{default:function(){return c}});var r=s(90228),T=s.n(r),O=s(87999),M=s.n(O),J=s(48305),L=s.n(J),K=s(35894),w=s(20062),H=s(34635),oe=s(16590),I=s(44896),Q=s(5366),N=s(5519),q=s(24223),k=s(75130),W=s(86865),P=s(16965),ue=s(14205),G=s(32923),U=s(50959),_=s(95815),R=(0,_.kc)(function(){return{card:{marginBottom:"24px"},result:{maxWidth:"560px",margin:"0 auto",padding:"24px 0 8px"}}}),ee=R,a=s(11527),z=function(E){var v=E.stepData,f=E.bordered,C=v.payAccount,m=v.receiverAccount,S=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:[" ",S]}),(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],S=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 S(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},5519:function(de,Z,s){s.d(Z,{Z:function(){return x}});var r=s(50959),T=s(82187),O=s.n(T),M=s(27189),J=s(92576),L=s(50483),K=s(63671),H={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},I=r.createContext({}),Q=s(13763),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 B=u==null?void 0:u.span,b=B||1;if(j===e.length-1){const[h,D]=W(u,l,B);i=i||D,n.push(h),o.push(n);return}if(b{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:B,label:b,content:h,colon:D}=e,V=o;return B?r.createElement(V,{className:O()({[`${t}-item-label`]:R(b),[`${t}-item-content`]:R(h)},l),style:i,colSpan:n},R(b)&&r.createElement("span",{style:u},b),R(h)&&r.createElement("span",{style:j},h)):r.createElement(V,{className:O()(`${t}-item`,l),style:i,colSpan:n},r.createElement("div",{className:`${t}-item-container`},(b||b===0)&&r.createElement("span",{className:O()(`${t}-item-label`,{[`${t}-item-no-colon`]:!D}),style:u},b),(h||h===0)&&r.createElement("span",{className:O()(`${t}-item-content`),style:j},h)))};function z(e,t,o){let{colon:n,prefixCls:l,bordered:i}=t,{component:u,type:j,showLabel:B,showContent:b,labelStyle:h,contentStyle:D}=o;return e.map((V,X)=>{let{label:te,children:ie,prefixCls:ne=l,className:se,style:re,labelStyle:A,contentStyle:F,span:Y=1,key:le}=V;return typeof u=="string"?r.createElement(a,{key:`${j}-${le||X}`,className:se,style:re,labelStyle:Object.assign(Object.assign({},h),A),contentStyle:Object.assign(Object.assign({},D),F),span:Y,colon:n,component:u,itemPrefixCls:ne,bordered:i,label:B?te:null,content:b?ie:null}):[r.createElement(a,{key:`label-${le||X}`,className:se,style:Object.assign(Object.assign(Object.assign({},h),re),A),span:1,colon:n,component:u[0],itemPrefixCls:ne,bordered:i,label:te}),r.createElement(a,{key:`content-${le||X}`,className:se,style:Object.assign(Object.assign(Object.assign({},D),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(25446),p=s(55985),E=s(87077),v=s(37324);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 S=(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:B,className:b,rootClassName:h,style:D,size:V,labelStyle:X,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,B),ce=(0,L.Z)(V),pe=G(le,fe),[ge,Ee,ve]=S(F),ye=r.useMemo(()=>({labelStyle:X,contentStyle:te}),[X,te]);return ge(r.createElement(I.Provider,{value:ye},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"},b,h,Ee,ve),style:Object.assign(Object.assign({},A==null?void 0:A.style),D)},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},24223:function(de,Z,s){s.d(Z,{Z:function(){return z}});var r=s(50959),T=s(97950),O=s(37865),M=s(82187),J=s.n(M),L=s(92576),K=s(9146),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),S=m.match(/^(-?)(\d*)(\.(\d+))?$/);if(!S||m==="-")C=m;else{const $=S[1];let y=S[2]||"0",x=S[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(55985),I=s(87077),Q=s(37324);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:S,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,B,b]=k(u),h=r.createElement(H,Object.assign({decimalSeparator:t,groupSeparator:o,prefixCls:u},g,{value:f})),D=J()(u,{[`${u}-rtl`]:l==="rtl"},i==null?void 0:i.className,c,p,B,b);return j(r.createElement("div",{className:D,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`},S&&r.createElement("span",{className:`${u}-content-prefix`},S),m?m(h):h,$&&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,S)=>{let[$,y]=S;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 S=(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:S}))};var a=r.memo(ee);P.Countdown=a;var z=P}}]); diff --git a/p__list__basic-list__index.b7f4cabb.async.js b/p__list__basic-list__index.b7f4cabb.async.js deleted file mode 100644 index 82d4870191..0000000000 --- a/p__list__basic-list__index.b7f4cabb.async.js +++ /dev/null @@ -1 +0,0 @@ -"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__basic-list__index.d50ca99e.async.js b/p__list__basic-list__index.d50ca99e.async.js new file mode 100644 index 0000000000..b9f59bde67 --- /dev/null +++ b/p__list__basic-list__index.d50ca99e.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6202],{22891:function(He,k,t){t.r(k),t.d(k,{BasicList:function(){return $},default:function(){return Ae}});var J=t(48305),B=t.n(J),K=t(82574),Q=t(1442),W=t(35894),v=t(29670),H=t(3590),U=t(21713),q=t(24156),_=t(88574),ee=t(92965),N=t(86865),b=t(16965),te=t(48966),E=t(61323),A=t(60600),ne=t(74629),ae=t(5726),re=t.n(ae),D=t(50959),se=t(90228),o=t.n(se),ie=t(87999),y=t.n(ie),ue=t(62217),le=t(44896),oe=t(60013),de=t(34635),ce=t(19805),me=t(75130),he=t(82092),d=t.n(he),pe=t(95815),xe=(0,pe.kc)(function(s){var n=s.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(n.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:n.colorTextSecondary,fontSize:n.fontSize,lineHeight:"22px"},"& > p":{margin:"0",color:n.colorTextHeading,fontSize:"24px",lineHeight:"32px"},"& > em":{position:"absolute",top:"0",right:"0",width:"1px",height:"56px",backgroundColor:n.colorSplit}},"@media screen and (max-width: ".concat(n.screenSM,"px)"),{marginBottom:"16px","& > em":{display:"none"}}),listContent:d()(d()(d()(d()(d()({fontSize:"0"},"@media screen and (max-width: ".concat(n.screenXS,"px)"),{marginLeft:"0","& > div":{marginLeft:"0"}}),"@media screen and (max-width: ".concat(n.screenMD,"px)"),{"& > div":{display:"block"},"& > div:last-child":{top:"0",width:"100%"}}),"@media screen and (max-width: ".concat(n.screenLG,"px) and (min-width: @screen-md)"),{"& > div":{display:"block"},"& > div:last-child":{top:"0",width:"100%"}}),"@media screen and (max-width: ".concat(n.screenXL,"px)"),{"& > div":{marginLeft:"24px"},"& > div:last-child":{top:"0"}}),"@media screen and (max-width: 1400px)",{textAlign:"right","& > div:last-child":{top:"0"}}),listContentItem:{display:"inline-block",marginLeft:"40px",color:n.colorTextSecondary,fontSize:n.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(n.screenSM,"px)"),{width:"100%",marginLeft:"0"}),listCard:d()(d()({},"@media screen and (max-width: ".concat(n.screenXS,"px)"),{".ant-card-head-title":{overflow:"open"}}),"@media screen and (max-width: ".concat(n.screenMD,"px)"),{".ant-radio-group":{display:"block",marginBottom:"8px"}}),standardListForm:{".ant-form-item":{marginBottom:"12px","&:last-child":{marginBottom:"32px",paddingTop:"4px"}}},formResult:{width:"100%","[class^='title']":{marginBottom:"8px"}}}}),C=xe,e=t(11527),ve=function(n){var i=C(),a=i.styles,l=n.done,m=n.open,c=n.current,g=n.onDone,h=n.onSubmit,I=n.children;return m?(0,e.jsx)(ue.Y,{open:m,title:l?null:"\u4EFB\u52A1".concat(c?"\u7F16\u8F91":"\u6DFB\u52A0"),className:a.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)(N.ZP,{type:"primary",onClick:g,children:"\u77E5\u9053\u4E86"}),className:a.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=t(26068),f=t.n(ge);function Fe(s){return L.apply(this,arguments)}function L(){return L=y()(o()().mark(function s(n){return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,v.request)("/api/get_list",{params:n}));case 1:case"end":return a.stop()}},s)})),L.apply(this,arguments)}function je(s){return Z.apply(this,arguments)}function Z(){return Z=y()(o()().mark(function s(n){return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,v.request)("/api/post_fake_list",{method:"POST",data:f()(f()({},n),{},{method:"delete"})}));case 1:case"end":return a.stop()}},s)})),Z.apply(this,arguments)}function ye(s){return T.apply(this,arguments)}function T(){return T=y()(o()().mark(function s(n){return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,v.request)("/api/post_fake_list",{method:"POST",data:f()(f()({},n),{},{method:"post"})}));case 1:case"end":return a.stop()}},s)})),T.apply(this,arguments)}function Se(s){return w.apply(this,arguments)}function w(){return w=y()(o()().mark(function s(n){return o()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,v.request)("/api/post_fake_list",{method:"POST",data:f()(f()({},n),{},{method:"update"})}));case 1:case"end":return a.stop()}},s)})),w.apply(this,arguments)}var P=H.ZP.Button,Ce=H.ZP.Group,Be=U.Z.Search,M=function(n){var i=n.title,a=n.value,l=n.bordered,m=C(),c=m.styles;return(0,e.jsxs)("div",{className:c.headerInfo,children:[(0,e.jsx)("span",{children:i}),(0,e.jsx)("p",{children:a}),l&&(0,e.jsx)("em",{})]})},Ee=function(n){var i=n.data,a=i.owner,l=i.createdAt,m=i.percent,c=i.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:a})]}),(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 n=C(),i=n.styles,a=(0,D.useState)(!1),l=B()(a,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:i.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,{footer:[(0,e.jsxs)(N.ZP,{onClick:function(){p(!0)},style:{width:"100%",marginBottom:8},children:[(0,e.jsx)(Q.Z,{}),"\u6DFB\u52A0"]},"add")],children:(0,e.jsxs)("div",{className:i.standardList,children:[(0,e.jsx)(b.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)(b.Z,{className:i.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.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 deleted file mode 100644 index 2938330ffb..0000000000 --- a/p__list__card-list__index.099d8041.async.js +++ /dev/null @@ -1 +0,0 @@ -"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.f311db83.async.js b/p__list__card-list__index.f311db83.async.js new file mode 100644 index 0000000000..114ed5d0cb --- /dev/null +++ b/p__list__card-list__index.f311db83.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8497],{1442:function(y,l,a){var d=a(35361),c=a(50959),g=a(63374),p=a(69164),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)},91697:function(y,l,a){a.r(l),a.d(l,{default:function(){return I}});var d=a(15558),c=a.n(d),g=a(1442),p=a(35894),i=a(29670),C=a(15922),u=a(60600),m=a(16965),f=a(86865),j=a(90228),E=a.n(j),D=a(87999),B=a.n(D);function F(o){return h.apply(this,arguments)}function h(){return h=B()(E()().mark(function o(n){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:n}));case 1:case"end":return e.stop()}},o)})),h.apply(this,arguments)}var A=a(82092),x=a.n(A),P=a(95815),R=(0,P.kc)(function(o){var 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:x()(x()({marginTop:"16px",a:{marginRight:"32px",img:{width:"24px"}},img:{marginRight:"8px",verticalAlign:"middle"}},"@media screen and (max-width: ".concat(n.screenLG,"px)"),{a:{marginRight:"16px"}}),"@media screen and (max-width: ".concat(n.screenSM,"px)"),{position:"absolute",bottom:"-4px",left:"0",width:"1000px",a:{marginRight:"16px"},img:{marginRight:"4px"}})}}),L=R,t=a(11527),O=C.Z.Paragraph,M=function(){var n=L(),r=n.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:r.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:r.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:r.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:r.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:r.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:r.cardAvatar,src:s.avatar}),title:(0,t.jsx)("a",{children:s.title}),description:(0,t.jsx)(O,{className:r.item,ellipsis:{rows:3},children:s.description})})})},s.id):(0,t.jsx)(u.Z.Item,{children:(0,t.jsxs)(f.ZP,{type:"dashed",className:r.newButton,children:[(0,t.jsx)(g.Z,{})," \u65B0\u589E\u4EA7\u54C1"]})})}})})})},I=M}}]); diff --git a/p__list__search__applications__index.2d3323fa.async.js b/p__list__search__applications__index.2d3323fa.async.js new file mode 100644 index 0000000000..ec29ae05a5 --- /dev/null +++ b/p__list__search__applications__index.2d3323fa.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9618],{73715: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},82574:function(Z,v,t){var h=t(35361),i=t(50959),g=t(5590),E=t(69164),x=function(T,p){return i.createElement(E.Z,(0,h.Z)((0,h.Z)({},T),{},{ref:p,icon:g.Z}))};x.displayName="DownOutlined",v.Z=i.forwardRef(x)},1861:function(Z,v,t){var h=t(35361),i=t(50959),g=t(73715),E=t(69164),x=function(T,p){return i.createElement(E.Z,(0,h.Z)((0,h.Z)({},T),{},{ref:p,icon:g.Z}))};x.displayName="UpOutlined",v.Z=i.forwardRef(x)},94368:function(Z,v,t){t.d(v,{O:function(){return h}});var h=Array.from({length:12}).map(function(i,g){return{value:"cat".concat(g+1),label:"\u7C7B\u76EE".concat(g+1)}})},30882:function(Z,v,t){t.r(v),t.d(v,{Applications:function(){return w},default:function(){return Pt},formatWan:function(){return X}});var h=t(26068),i=t.n(h),g=t(94573),E=t(83011),x=t(25468),B=t(27174),T=t(29670),p=t(16965),R=t(26935),ot=t(48966),N=t(61323),W=t(46545),b=t(60600),U=t(27850),st=t(92965),it=t(74629),dt=t(4587),ct=t.n(dt),D=t(50959),ut=t(94368),mt=t(82092),A=t.n(mt),vt=t(67825),ht=t.n(vt),gt=t(82187),z=t.n(gt),I=t(95815),ft=(0,I.kc)(function(l){var n=l.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=ft,e=t(11527),pt=["title","children","last","block","grid"],yt=function(n){var o=n.title,a=n.children,s=n.last,d=n.block,S=n.grid,y=ht()(n,pt),c=xt(),r=c.styles,C=z()(r.standardFormRow,A()(A()(A()({},r.standardFormRowBlock,d),r.standardFormRowLast,s),r.standardFormRowGrid,S));return(0,e.jsxs)("div",i()(i()({className:C},y),{},{children:[o&&(0,e.jsx)("div",{className:r.label,children:(0,e.jsx)("span",{children:o})}),(0,e.jsx)("div",{className:r.content,children:a})]}))},K=yt,jt=t(15558),Tt=t.n(jt),St=t(48305),H=t.n(St),Ct=t(1861),Ot=t(82574),Et=t(59084),At=t(96771),Zt=(0,I.kc)(function(l){var n=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:n.fontSize}},trigger:{position:"absolute",top:"0",right:"0","span.anticon":{fontSize:"12px"}},expanded:{maxHeight:"200px",transition:"all 0.3s"},hasExpandTag:{paddingRight:"50px"}}}),Rt=Zt,V=Et.Z.CheckableTag,$=function(n){var o=n.children,a=n.checked,s=n.onChange,d=n.value;return(0,e.jsx)(V,{checked:!!a,onChange:function(y){return s&&s(d,y)},children:o},d)};$.isTagSelectOption=!0;var G=function(n){var o=Rt(),a=o.styles,s=n.children,d=n.hideCheckAll,S=d===void 0?!1:d,y=n.className,c=n.style,r=n.expandable,C=n.actionsText,M=C===void 0?{}:C,Ft=(0,D.useState)(!1),q=H()(Ft,2),P=q[0],Nt=q[1],Wt=(0,At.C8)(n.defaultValue||[],{value:n.value,defaultValue:n.defaultValue,onChange:n.onChange}),_=H()(Wt,2),O=_[0],tt=_[1],et=function(m){return m&&m.type&&(m.type.isTagSelectOption||m.type.displayName==="TagSelectOption")},nt=function(){var m=D.Children.toArray(s),j=m.filter(function(f){return et(f)}).map(function(f){return f.props.value});return j||[]},bt=function(m){var j=[];m&&(j=nt()),tt(j)},zt=function(m,j){var f=Tt()(O||[]),F=f.indexOf(m);j&&F===-1?f.push(m):!j&&F>-1&&f.splice(F,1),tt(f)},Kt=nt().length===(O==null?void 0:O.length),at=M.expandText,Ht=at===void 0?"\u5C55\u5F00":at,lt=M.collapseText,Vt=lt===void 0?"\u6536\u8D77":lt,rt=M.selectAllText,$t=rt===void 0?"\u5168\u90E8":rt,Gt=z()(a.tagSelect,y,A()(A()({},a.hasExpandTag,r),a.expanded,P));return(0,e.jsxs)("div",{className:Gt,style:c,children:[S?null:(0,e.jsx)(V,{checked:Kt,onChange:bt,children:$t},"tag-select-__all__"),s&&D.Children.map(s,function(u){return et(u)?D.cloneElement(u,{key:"tag-select-".concat(u.props.value),value:u.props.value,checked:O&&O.indexOf(u.props.value)>-1,onChange:zt}):u}),r&&(0,e.jsx)("a",{className:a.trigger,onClick:function(){Nt(!P)},children:P?(0,e.jsxs)(e.Fragment,{children:[Vt," ",(0,e.jsx)(Ct.Z,{})]}):(0,e.jsxs)(e.Fragment,{children:[Ht,(0,e.jsx)(Ot.Z,{})]})})]})};G.Option=$;var k=G,Dt=t(90228),J=t.n(Dt),Bt=t(87999),Ut=t.n(Bt);function It(l){return L.apply(this,arguments)}function L(){return L=Ut()(J()().mark(function l(n){return J()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,T.request)("/api/fake_list",{params:n}));case 1:case"end":return a.stop()}},l)})),L.apply(this,arguments)}var Lt=(0,I.kc)(function(l){var n=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:n.colorTextSecondary,fontSize:"12px",lineHeight:"20px"}}}}}),Q=Lt;function X(l){var n=l*1;if(!n||Number.isNaN(n))return"";var o=l;return l>1e4&&(o=(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"})]})),o}var Y={wrapperCol:{xs:{span:24},sm:{span:16}}},Mt=function(n){var o=n.activeUser,a=n.newUser,s=Q(),d=s.styles;return(0,e.jsxs)("div",{className:d.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:a})]})]})},w=function(){var n=Q(),o=n.styles,a=(0,T.useRequest)(function(c){return console.log("form data",c),It({count:8})}),s=a.data,d=a.loading,S=a.run,y=(s==null?void 0:s.list)||[];return(0,e.jsxs)("div",{className:o.filterCardList,children:[(0,e.jsx)(p.Z,{bordered:!1,children:(0,e.jsxs)(R.Z,{onValuesChange:function(r,C){S(C)},children:[(0,e.jsx)(K,{title:"\u6240\u5C5E\u7C7B\u76EE",block:!0,style:{paddingBottom:11},children:(0,e.jsx)(R.Z.Item,{name:"category",children:(0,e.jsx)(k,{expandable:!0,children:ut.O.map(function(c){return(0,e.jsx)(k.Option,{value:c.value,children:c.label},c.value)})})})}),(0,e.jsx)(K,{title:"\u5176\u5B83\u9009\u9879",grid:!0,last:!0,children:(0,e.jsxs)(ot.Z,{gutter:16,children:[(0,e.jsx)(N.Z,{lg:8,md:10,sm:10,xs:24,children:(0,e.jsx)(R.Z.Item,i()(i()({},Y),{},{name:"author",label:"\u4F5C\u8005",children:(0,e.jsx)(W.Z,{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)(R.Z.Item,i()(i()({},Y),{},{name:"rate",label:"\u597D\u8BC4\u5EA6",children:(0,e.jsx)(W.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)(b.Z,{rowKey:"id",grid:{gutter:16,xs:1,sm:2,md:3,lg:3,xl:4,xxl:4},loading:d,dataSource:y,renderItem:function(r){return(0,e.jsx)(b.Z.Item,{children:(0,e.jsxs)(p.Z,{hoverable:!0,bodyStyle:{paddingBottom:20},actions:[(0,e.jsx)(U.Z,{title:"\u4E0B\u8F7D",children:(0,e.jsx)(g.Z,{})},"download"),(0,e.jsx)(U.Z,{title:"\u7F16\u8F91",children:(0,e.jsx)(E.Z,{})},"edit"),(0,e.jsx)(U.Z,{title:"\u5206\u4EAB",children:(0,e.jsx)(x.Z,{})},"share"),(0,e.jsx)(st.Z,{menu:{items:[{key:"1",title:"1st menu item"},{key:"2",title:"2st menu item"}]},children:(0,e.jsx)(B.Z,{})},"ellipsis")],children:[(0,e.jsx)(p.Z.Meta,{avatar:(0,e.jsx)(it.C,{size:"small",src:r.avatar}),title:r.title}),(0,e.jsx)("div",{children:(0,e.jsx)(Mt,{activeUser:X(r.activeUser),newUser:ct()(r.newUser).format("0,0")})})]})},r.id)}})]})},Pt=w}}]); diff --git a/p__list__search__applications__index.ca9c1698.async.js b/p__list__search__applications__index.ca9c1698.async.js deleted file mode 100644 index b64cd0195f..0000000000 --- a/p__list__search__applications__index.ca9c1698.async.js +++ /dev/null @@ -1 +0,0 @@ -"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.2602d53d.async.js b/p__list__search__articles__index.2602d53d.async.js new file mode 100644 index 0000000000..d2ec5e8762 --- /dev/null +++ b/p__list__search__articles__index.2602d53d.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1963],{94368: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)}})},77789:function(ne,Z,a){a.r(Z),a.d(Z,{default:function(){return $e}});var N=a(26068),f=a.n(N),O=a(48305),w=a.n(O),le=a(70941),re=a(19791),se=a(245),ie=a(69012),P=a(29670),H=a(26935),oe=a(86865),Y=a(16965),b=a(46545),de=a(48966),X=a(61323),$=a(60600),E=a(59084),C=a(50959),ce=a(94368),ue=a(74629),me=a(5726),xe=a.n(me),ge=a(82092),h=a.n(ge),D=a(95815),he=(0,D.kc)(function(l){var t=l.token;return{description:{maxWidth:"720px",lineHeight:"22px"},extra:h()({marginTop:"16px",color:t.colorTextSecondary,lineHeight:"22px",display:"flex",alignItems:"center",gap:8,"& > 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(11527),pe=function(t){var r=t.data,n=r.content,c=r.updatedAt,i=r.avatar,u=r.owner,o=r.href,y=ve(),s=y.styles;return(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:s.description,children:n}),(0,e.jsxs)("div",{className:s.extra,children:[(0,e.jsx)(ue.C,{src:i,size:"small"}),(0,e.jsx)("a",{href:o,children:u})," \u53D1\u5E03\u5728 ",(0,e.jsx)("a",{href:o,children:o}),(0,e.jsx)("em",{children:xe()(c).format("YYYY-MM-DD HH:mm")})]})]})},fe=pe,ye=a(67825),je=a.n(ye),Te=a(82187),K=a.n(Te),Se=(0,D.kc)(function(l){var t=l.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 r=t.title,n=t.children,c=t.last,i=t.block,u=t.grid,o=je()(t,Ae),y=Ce(),s=y.styles,T=K()(s.standardFormRow,h()(h()(h()({},s.standardFormRowBlock,i),s.standardFormRowLast,c),s.standardFormRowGrid,u));return(0,e.jsxs)("div",f()(f()({className:T},o),{},{children:[r&&(0,e.jsx)("div",{className:s.label,children:(0,e.jsx)("span",{children:r})}),(0,e.jsx)("div",{className:s.content,children:n})]}))},V=Fe,Re=a(15558),Ze=a.n(Re),Oe=a(1861),Ee=a(82574),De=a(96771),Le=(0,D.kc)(function(l){var t=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: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 r=t.children,n=t.checked,c=t.onChange,i=t.value;return(0,e.jsx)(U,{checked:!!n,onChange:function(o){return c&&c(i,o)},children:r},i)};J.isTagSelectOption=!0;var Q=function(t){var r=ke(),n=r.styles,c=t.children,i=t.hideCheckAll,u=i===void 0?!1:i,o=t.className,y=t.style,s=t.expandable,T=t.actionsText,A=T===void 0?{}:T,k=(0,C.useState)(!1),B=w()(k,2),S=B[0],F=B[1],M=(0,De.C8)(t.defaultValue||[],{value:t.value,defaultValue:t.defaultValue,onChange:t.onChange}),I=w()(M,2),v=I[0],m=I[1],d=function(g){return g&&g.type&&(g.type.isTagSelectOption||g.type.displayName==="TagSelectOption")},z=function(){var g=C.Children.toArray(c),j=g.filter(function(p){return d(p)}).map(function(p){return p.props.value});return j||[]},R=function(g){var j=[];g&&(j=z()),m(j)},Ve=function(g,j){var p=Ze()(v||[]),G=p.indexOf(g);j&&G===-1?p.push(g):!j&&G>-1&&p.splice(G,1),m(p)},We=z().length===(v==null?void 0:v.length),ee=A.expandText,Ge=ee===void 0?"\u5C55\u5F00":ee,te=A.collapseText,Pe=te===void 0?"\u6536\u8D77":te,ae=A.selectAllText,Ye=ae===void 0?"\u5168\u90E8":ae,Xe=K()(n.tagSelect,o,h()(h()({},n.hasExpandTag,s),n.expanded,S));return(0,e.jsxs)("div",{className:Xe,style:y,children:[u?null:(0,e.jsx)(U,{checked:We,onChange:R,children:Ye},"tag-select-__all__"),c&&C.Children.map(c,function(x){return d(x)?C.cloneElement(x,{key:"tag-select-".concat(x.props.value),value:x.props.value,checked:v&&v.indexOf(x.props.value)>-1,onChange:Ve}):x}),s&&(0,e.jsx)("a",{className:n.trigger,onClick:function(){F(!S)},children:S?(0,e.jsxs)(e.Fragment,{children:[Pe," ",(0,e.jsx)(Oe.Z,{})]}):(0,e.jsxs)(e.Fragment,{children:[Ge,(0,e.jsx)(Ee.Z,{})]})})]})};Q.Option=J;var q=Q,Be=a(90228),_=a.n(Be),Me=a(87999),Ie=a.n(Me);function ze(l){return W.apply(this,arguments)}function W(){return W=Ie()(_()().mark(function l(t){return _()().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,P.request)("/api/fake_list",{params:t}));case 1:case"end":return n.stop()}},l)})),W.apply(this,arguments)}var Ne=(0,D.kc)(function(l){var t=l.token;return{listItemMetaTitle:{color:t.colorTextHeading},listItemExtra:h()({width:"272px",height:"1px"},"@media screen and (max-width: ".concat(t.screenLG,"px)"),{width:"0",height:"1px"}),selfTrigger:h()(h()({marginLeft:"12px"},"@media screen and (max-width: ".concat(t.screenXS,"px)"),{display:"block",marginLeft:"0"}),"@media screen and (max-width: ".concat(t.screenMD,"px)"),{display:"block",marginLeft:"0"})}}),we=Ne,L=H.Z.Item,He=5,be=function(){var t=H.Z.useForm(),r=w()(t,1),n=r[0],c=we(),i=c.styles,u=(0,P.useRequest)(function(){return ze({count:He})},{loadMore:!0}),o=u.data,y=u.reload,s=u.loading,T=u.loadMore,A=u.loadingMore,k=(o==null?void 0:o.list)||[],B=function(){n.setFieldsValue({owner:["wzj"]})},S=[{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"}],F=function(d){var z=d.type,R=d.text;switch(z){case"star-o":return(0,e.jsxs)("span",{children:[(0,e.jsx)(le.Z,{style:{marginRight:8}}),R]});case"like-o":return(0,e.jsxs)("span",{children:[(0,e.jsx)(re.Z,{style:{marginRight:8}}),R]});case"message":return(0,e.jsxs)("span",{children:[(0,e.jsx)(se.Z,{style:{marginRight:8}}),R]});default:return null}},M={wrapperCol:{xs:{span:24},sm:{span:24},md:{span:12}}},I=k.length>0&&(0,e.jsx)("div",{style:{textAlign:"center",marginTop:16},children:(0,e.jsx)(oe.ZP,{onClick:T,style:{paddingLeft:48,paddingRight:48},children:A?(0,e.jsxs)("span",{children:[(0,e.jsx)(ie.Z,{})," \u52A0\u8F7D\u4E2D..."]}):"\u52A0\u8F7D\u66F4\u591A"})}),v=(0,C.useMemo)(function(){return S.map(function(m){return{label:m.name,value:m.id}})},[S]);return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Y.Z,{bordered:!1,children:(0,e.jsxs)(H.Z,{layout:"inline",form:n,initialValues:{owner:["wjh","zxx"]},onValuesChange:y,children:[(0,e.jsx)(V,{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(m){return(0,e.jsx)(q.Option,{value:m.value,children:m.label},m.value)})})})}),(0,e.jsxs)(V,{title:"owner",grid:!0,children:[(0,e.jsx)(L,{name:"owner",noStyle:!0,children:(0,e.jsx)(b.Z,{mode:"multiple",placeholder:"\u9009\u62E9 owner",style:{minWidth:"6rem"},options:v})}),(0,e.jsx)("a",{className:i.selfTrigger,onClick:B,children:"\u53EA\u770B\u81EA\u5DF1\u7684"})]}),(0,e.jsx)(V,{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()({},M),{},{label:"\u6D3B\u8DC3\u7528\u6237",name:"user",children:(0,e.jsx)(b.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()({},M),{},{label:"\u597D\u8BC4\u5EA6",name:"rate",children:(0,e.jsx)(b.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)($.Z,{size:"large",loading:s,rowKey:"id",itemLayout:"vertical",loadMore:I,dataSource:k,renderItem:function(d){return(0,e.jsxs)($.Z.Item,{actions:[(0,e.jsx)(F,{type:"star-o",text:d.star},"star"),(0,e.jsx)(F,{type:"like-o",text:d.like},"like"),(0,e.jsx)(F,{type:"message",text:d.message},"message")],extra:(0,e.jsx)("div",{className:i.listItemExtra}),children:[(0,e.jsx)($.Z.Item.Meta,{title:(0,e.jsx)("a",{className:i.listItemMetaTitle,href:d.href,children:d.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:d})]},d.id)}})})]})},$e=be}}]); diff --git a/p__list__search__articles__index.81f38a72.async.js b/p__list__search__articles__index.81f38a72.async.js deleted file mode 100644 index 6c0eb62638..0000000000 --- a/p__list__search__articles__index.81f38a72.async.js +++ /dev/null @@ -1 +0,0 @@ -"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.cadd0504.async.js b/p__list__search__index.cadd0504.async.js deleted file mode 100644 index f49f3c917e..0000000000 --- a/p__list__search__index.cadd0504.async.js +++ /dev/null @@ -1 +0,0 @@ -"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__index.cc890783.async.js b/p__list__search__index.cc890783.async.js new file mode 100644 index 0000000000..d20b146d74 --- /dev/null +++ b/p__list__search__index.cc890783.async.js @@ -0,0 +1 @@ +"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(27263),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(27263),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)},88650:function(X,y,t){t.r(y);var n=t(35894),c=t(29670),v=t(21713),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},21713:function(X,y,t){t.d(y,{Z:function(){return de}});var n=t(50959),c=t(82187),v=t.n(c),u=t(92576),g=t(59263),b=t(85580),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(99053),I=t(57249),Y=t(96527),k=t(87017),D=t(12602),m=t(25341),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(37865),ae=t(86865),ie=t(50483),le=t(58163),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(41787);const $=r.Z;$.Group=P,$.Search=ce,$.TextArea=ue.Z,$.Password=oe;var de=$}}]); diff --git a/p__list__search__projects__index.76ebd307.async.js b/p__list__search__projects__index.76ebd307.async.js deleted file mode 100644 index 87ab22f911..0000000000 --- a/p__list__search__projects__index.76ebd307.async.js +++ /dev/null @@ -1 +0,0 @@ -(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__list__search__projects__index.918a1f83.async.js b/p__list__search__projects__index.918a1f83.async.js new file mode 100644 index 0000000000..6dc1cd98b5 --- /dev/null +++ b/p__list__search__projects__index.918a1f83.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9987],{73715:function(q,g){"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"};g.Z=t},82574:function(q,g,t){"use strict";var o=t(35361),d=t(50959),b=t(5590),I=t(69164),E=function(v,j){return d.createElement(I.Z,(0,o.Z)((0,o.Z)({},v),{},{ref:j,icon:b.Z}))};E.displayName="DownOutlined",g.Z=d.forwardRef(E)},1861:function(q,g,t){"use strict";var o=t(35361),d=t(50959),b=t(73715),I=t(69164),E=function(v,j){return d.createElement(I.Z,(0,o.Z)((0,o.Z)({},v),{},{ref:j,icon:b.Z}))};E.displayName="UpOutlined",g.Z=d.forwardRef(E)},94368:function(q,g,t){"use strict";t.d(g,{O:function(){return o}});var o=Array.from({length:12}).map(function(d,b){return{value:"cat".concat(b+1),label:"\u7C7B\u76EE".concat(b+1)}})},56684:function(q,g,t){"use strict";t.r(g),t.d(g,{default:function(){return Q}});var o=t(26068),d=t.n(o),b=t(29670),I=t(26935),E=t(15922),m=t(60600),v=t(16965),j=t(48966),H=t(61323),_=t(46545),ee=t(5726),F=t.n(ee),W=t(92117),te=t.n(W),U=t(94368),ae=t(67825),A=t.n(ae),P=t(82092),C=t.n(P),ne=t(27850),K=t(74629),Ee=t(82187),de=t.n(Ee),V=t(50959),w=t(95815),Ie=(0,w.kc)(function(h){var a=h.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"}}}}}),Ce=Ie,n=t(11527),Se=["children","size","maxLength","excessItemsStyle"],Te=function(a,i){return de()(i.avatarItem,C()(C()(C()({},i.avatarItemLarge,a==="large"),i.avatarItemSmall,a==="small"),i.avatarItemMini,a==="mini"))},e=function(a){var i=a.src,c=a.size,f=a.tips,S=a.onClick,D=S===void 0?function(){}:S,L=Ce(),G=L.styles,x=Te(c,G);return(0,n.jsx)("li",{className:x,onClick:D,children:f?(0,n.jsx)(ne.Z,{title:f,children:(0,n.jsx)(K.C,{src:i,size:c,style:{cursor:"pointer"}})}):(0,n.jsx)(K.C,{src:i,size:c})})},s=function(a){var i=a.children,c=a.size,f=a.maxLength,S=f===void 0?5:f,D=a.excessItemsStyle,L=A()(a,Se),G=Ce(),x=G.styles,y=V.Children.count(i),T=S>=y?y:S,J=V.Children.toArray(i),oe=J.slice(0,T).map(function(Ne){return V.cloneElement(Ne,{size:c})});if(T 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"}}}}),l=r,$=["title","children","last","block","grid"],p=function(a){var i=a.title,c=a.children,f=a.last,S=a.block,D=a.grid,L=A()(a,$),G=l(),x=G.styles,y=de()(x.standardFormRow,C()(C()(C()({},x.standardFormRowBlock,S),x.standardFormRowLast,f),x.standardFormRowGrid,D));return(0,n.jsxs)("div",d()(d()({className:y},L),{},{children:[i&&(0,n.jsx)("div",{className:x.label,children:(0,n.jsx)("span",{children:i})}),(0,n.jsx)("div",{className:x.content,children:c})]}))},N=p,R=t(15558),re=t.n(R),z=t(48305),se=t.n(z),X=t(1861),k=t(82574),ue=t(59084),me=t(96771),Z=(0,w.kc)(function(h){var a=h.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"}}}),ge=Z,ve=ue.Z.CheckableTag,he=function(a){var i=a.children,c=a.checked,f=a.onChange,S=a.value;return(0,n.jsx)(ve,{checked:!!c,onChange:function(L){return f&&f(S,L)},children:i},S)};he.isTagSelectOption=!0;var fe=function(a){var i=ge(),c=i.styles,f=a.children,S=a.hideCheckAll,D=S===void 0?!1:S,L=a.className,G=a.style,x=a.expandable,y=a.actionsText,T=y===void 0?{}:y,J=(0,V.useState)(!1),oe=se()(J,2),ye=oe[0],Ne=oe[1],Ke=(0,me.C8)(a.defaultValue||[],{value:a.value,defaultValue:a.defaultValue,onChange:a.onChange}),ze=se()(Ke,2),ce=ze[0],Ze=ze[1],De=function(M){return M&&M.type&&(M.type.isTagSelectOption||M.type.displayName==="TagSelectOption")},He=function(){var M=V.Children.toArray(f),le=M.filter(function(Y){return De(Y)}).map(function(Y){return Y.props.value});return le||[]},Ve=function(M){var le=[];M&&(le=He()),Ze(le)},we=function(M,le){var Y=re()(ce||[]),Re=Y.indexOf(M);le&&Re===-1?Y.push(M):!le&&Re>-1&&Y.splice(Re,1),Ze(Y)},ke=He().length===(ce==null?void 0:ce.length),Fe=T.expandText,Ge=Fe===void 0?"\u5C55\u5F00":Fe,We=T.collapseText,Xe=We===void 0?"\u6536\u8D77":We,Ue=T.selectAllText,Qe=Ue===void 0?"\u5168\u90E8":Ue,Je=de()(c.tagSelect,L,C()(C()({},c.hasExpandTag,x),c.expanded,ye));return(0,n.jsxs)("div",{className:Je,style:G,children:[D?null:(0,n.jsx)(ve,{checked:ke,onChange:Ve,children:Qe},"tag-select-__all__"),f&&V.Children.map(f,function(B){return De(B)?V.cloneElement(B,{key:"tag-select-".concat(B.props.value),value:B.props.value,checked:ce&&ce.indexOf(B.props.value)>-1,onChange:we}):B}),x&&(0,n.jsx)("a",{className:c.trigger,onClick:function(){Ne(!ye)},children:ye?(0,n.jsxs)(n.Fragment,{children:[Xe," ",(0,n.jsx)(X.Z,{})]}):(0,n.jsxs)(n.Fragment,{children:[Ge,(0,n.jsx)(k.Z,{})]})})]})};fe.Option=he;var ie=fe,Pe=t(90228),O=t.n(Pe),$e=t(87999),Le=t.n($e);function Ae(h){return pe.apply(this,arguments)}function pe(){return pe=Le()(O()().mark(function h(a){return O()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,b.request)("/api/fake_list",{params:a}));case 1:case"end":return c.stop()}},h)})),pe.apply(this,arguments)}var be=(0,w.kc)(function(h){var a=h.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%"}}}}),Be=be;F().extend(te());var xe=I.Z.Item,je=E.Z.Paragraph,Me=function(a,i){return"".concat(a,"-").concat(i)},Oe=function(){var a=Be(),i=a.styles,c=(0,b.useRequest)(function(y){return console.log("form data",y),Ae({count:8})}),f=c.data,S=c.loading,D=c.run,L=(f==null?void 0:f.list)||[],G=L&&(0,n.jsx)(m.Z,{rowKey:"id",loading:S,grid:{gutter:16,xs:1,sm:2,md:3,lg:3,xl:4,xxl:4},dataSource:L,renderItem:function(T){return(0,n.jsx)(m.Z.Item,{children:(0,n.jsxs)(v.Z,{className:i.card,hoverable:!0,cover:(0,n.jsx)("img",{alt:T.title,src:T.cover}),children:[(0,n.jsx)(v.Z.Meta,{title:(0,n.jsx)("a",{children:T.title}),description:(0,n.jsx)(je,{ellipsis:{rows:2},children:T.subDescription})}),(0,n.jsxs)("div",{className:i.cardItemContent,children:[(0,n.jsx)("span",{children:F()(T.updatedAt).fromNow()}),(0,n.jsx)("div",{className:i.avatarList,children:(0,n.jsx)(u,{size:"small",children:T.members.map(function(J,oe){return(0,n.jsx)(u.Item,{src:J.avatar,tips:J.name},Me(T.id,oe))})})})]})]})})}}),x={wrapperCol:{xs:{span:24},sm:{span:16}}};return(0,n.jsxs)("div",{className:i.coverCardList,children:[(0,n.jsx)(v.Z,{bordered:!1,children:(0,n.jsxs)(I.Z,{layout:"inline",onValuesChange:function(T,J){D(J)},children:[(0,n.jsx)(N,{title:"\u6240\u5C5E\u7C7B\u76EE",block:!0,style:{paddingBottom:11},children:(0,n.jsx)(xe,{name:"category",children:(0,n.jsx)(ie,{expandable:!0,children:U.O.map(function(y){return(0,n.jsx)(ie.Option,{value:y.value,children:y.label},y.value)})})})}),(0,n.jsx)(N,{title:"\u5176\u5B83\u9009\u9879",grid:!0,last:!0,children:(0,n.jsxs)(j.Z,{gutter:16,children:[(0,n.jsx)(H.Z,{lg:8,md:10,sm:10,xs:24,children:(0,n.jsx)(xe,d()(d()({},x),{},{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)(H.Z,{lg:8,md:10,sm:10,xs:24,children:(0,n.jsx)(xe,d()(d()({},x),{},{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:i.cardList,children:G})]})},Q=Oe},59084:function(q,g,t){"use strict";t.d(g,{Z:function(){return Te}});var o=t(50959),d=t(22410),b=t(82187),I=t.n(b),E=t(60811),m=t(17005),v=t(68300),j=t(92576),H=t(25446),_=t(99978),ee=t(55985),F=t(37324),W=t(87077);const te=e=>{const{paddingXXS:s,lineWidth:u,tagPaddingHorizontal:r,componentCls:l,calc:$}=e,p=$(r).sub(u).equal(),N=$(s).sub(u).equal();return{[l]:Object.assign(Object.assign({},(0,ee.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:p,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${(0,H.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${l}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${l}-close-icon`]:{marginInlineStart:N,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${l}-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(${l}-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:p}}),[`${l}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},U=e=>{const{lineWidth:s,fontSizeIcon:u,calc:r}=e,l=e.fontSizeSM;return(0,F.TS)(e,{tagFontSize:l,tagLineHeight:(0,H.bf)(r(e.lineHeightSM).mul(l).equal()),tagIconSize:r(u).sub(r(s).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},ae=e=>({defaultBg:new _.C(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText});var A=(0,W.I$)("Tag",e=>{const s=U(e);return te(s)},ae),P=function(e,s){var u={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&s.indexOf(r)<0&&(u[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{const{prefixCls:u,style:r,className:l,checked:$,onChange:p,onClick:N}=e,R=P(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:re,tag:z}=o.useContext(j.E_),se=ge=>{p==null||p(!$),N==null||N(ge)},X=re("tag",u),[k,ue,me]=A(X),Z=I()(X,`${X}-checkable`,{[`${X}-checkable-checked`]:$},z==null?void 0:z.className,l,ue,me);return k(o.createElement("span",Object.assign({},R,{ref:s,style:Object.assign(Object.assign({},r),z==null?void 0:z.style),className:Z,onClick:se})))}),K=t(61281);const Ee=e=>(0,K.Z)(e,(s,u)=>{let{textColor:r,lightBorderColor:l,lightColor:$,darkColor:p}=u;return{[`${e.componentCls}${e.componentCls}-${s}`]:{color:r,background:$,borderColor:l,"&-inverse":{color:e.colorTextLightSolid,background:p,borderColor:p},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}});var de=(0,W.bk)(["Tag","preset"],e=>{const s=U(e);return Ee(s)},ae);function V(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const w=(e,s,u)=>{const r=V(u);return{[`${e.componentCls}${e.componentCls}-${s}`]:{color:e[`color${u}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Ie=(0,W.bk)(["Tag","status"],e=>{const s=U(e);return[w(s,"success","Success"),w(s,"processing","Info"),w(s,"error","Error"),w(s,"warning","Warning")]},ae),Ce=function(e,s){var u={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&s.indexOf(r)<0&&(u[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,r=Object.getOwnPropertySymbols(e);l{const{prefixCls:u,className:r,rootClassName:l,style:$,children:p,icon:N,color:R,onClose:re,closeIcon:z,closable:se,bordered:X=!0}=e,k=Ce(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:ue,direction:me,tag:Z}=o.useContext(j.E_),[ge,ve]=o.useState(!0);o.useEffect(()=>{"visible"in k&&ve(k.visible)},[k.visible]);const he=(0,E.o2)(R),fe=(0,E.yT)(R),ie=he||fe,Pe=Object.assign(Object.assign({backgroundColor:R&&!ie?R:void 0},Z==null?void 0:Z.style),$),O=ue("tag",u),[$e,Le,Ae]=A(O),pe=I()(O,Z==null?void 0:Z.className,{[`${O}-${R}`]:ie,[`${O}-has-color`]:R&&!ie,[`${O}-hidden`]:!ge,[`${O}-rtl`]:me==="rtl",[`${O}-borderless`]:!X},r,l,Le,Ae),be=Q=>{Q.stopPropagation(),re==null||re(Q),!Q.defaultPrevented&&ve(!1)},[,Be]=(0,m.Z)(se,z,Q=>Q===null?o.createElement(d.Z,{className:`${O}-close-icon`,onClick:be}):o.createElement("span",{className:`${O}-close-icon`,onClick:be},Q),null,!1),xe=typeof k.onClick=="function"||p&&p.type==="a",je=N||null,Me=je?o.createElement(o.Fragment,null,je,p&&o.createElement("span",null,p)):p,Oe=o.createElement("span",Object.assign({},k,{ref:s,className:pe,style:Pe}),Me,Be,he&&o.createElement(de,{key:"preset",prefixCls:O}),fe&&o.createElement(Ie,{key:"status",prefixCls:O}));return $e(xe?o.createElement(v.Z,{component:"Tag"},Oe):Oe)},Se=o.forwardRef(n);Se.CheckableTag=ne;var Te=Se},92117:function(q){(function(g,t){q.exports=t()})(this,function(){"use strict";return function(g,t,o){g=g||{};var d=t.prototype,b={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(m,v,j,H){return d.fromToBase(m,v,j,H)}o.en.relativeTime=b,d.fromToBase=function(m,v,j,H,_){for(var ee,F,W,te=j.$locale().relativeTime||b,U=g.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=U.length,A=0;A0,C<=P.r||!P.r){C<=1&&A>0&&(P=U[A-1]);var ne=te[P.l];_&&(C=_(""+C)),F=typeof ne=="string"?ne.replace("%d",C):ne(C,v,P.l,W);break}}if(v)return F;var K=W?te.future:te.past;return typeof K=="function"?K(F):K.replace("%s",F)},d.to=function(m,v){return I(m,v,this,!0)},d.from=function(m,v){return I(m,v,this)};var E=function(m){return m.$u?o.utc():o()};d.toNow=function(m){return this.to(E(this),m)},d.fromNow=function(m){return this.from(E(this),m)}}})}}]); diff --git a/p__profile__advanced__index.63c318e3.async.js b/p__profile__advanced__index.63c318e3.async.js deleted file mode 100644 index d67dc175e9..0000000000 --- a/p__profile__advanced__index.63c318e3.async.js +++ /dev/null @@ -1 +0,0 @@ -"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__advanced__index.b867d585.async.js b/p__profile__advanced__index.b867d585.async.js new file mode 100644 index 0000000000..bdb703c5bb --- /dev/null +++ b/p__profile__advanced__index.b867d585.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9078],{10587:function(ae,Z,n){n.d(Z,{Z:function(){return I}});var a=n(35361),h=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"},B=F,D=n(69164),L=function(K,le){return h.createElement(D.Z,(0,a.Z)((0,a.Z)({},K),{},{ref:le,icon:B}))};L.displayName="DingdingOutlined";var I=h.forwardRef(L)},82574:function(ae,Z,n){var a=n(35361),h=n(50959),F=n(5590),B=n(69164),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)},27174:function(ae,Z,n){var a=n(35361),h=n(50959),F=n(44108),B=n(69164),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)},49997:function(ae,Z,n){var a=n(35361),h=n(50959),F=n(9455),B=n(69164),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)},83827:function(ae,Z,n){n.r(Z),n.d(Z,{default:function(){return P}});var a=n(26068),h=n.n(a),F=n(48305),B=n.n(F),D=n(82574),L=n(27174),I=n(10587),R=n(49997),K=n(84341),le=n(35894),se=n(46268),ie=n(29670),re=n(48782),U=n(86865),oe=n(92965),ce=n(10994),H=n(96375),de=n(24223),o=n(5519),pe=n(23835),Q=n(92307),T=n(16965),ve=n(27850),w=n(32923),k=n(72171),v=n(82187),d=n.n(v),u=n(50959),g=n(90228),b=n.n(g),O=n(87999),E=n.n(O);function C(){return p.apply(this,arguments)}function p(){return p=E()(b()().mark(function x(){return b()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,ie.request)("/api/profile/advanced"));case 1:case"end":return f.stop()}},x)})),p.apply(this,arguments)}var S=n(82092),A=n.n(S),y=n(95815),j=(0,y.kc)(function(x){var m=x.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(11527),s=re.Z.Step,l=U.ZP.Group,i=(0,e.jsx)(K.X.Consumer,{children:function(m){var f=m.isMobile;return f?(0,e.jsx)(oe.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)(ce.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)(oe.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(),f=m.styles,G=(0,e.jsxs)("div",{className:f.moreInfo,children:[(0,e.jsx)(de.Z,{title:"\u72B6\u6001",value:"\u5F85\u5BA1\u6279"}),(0,e.jsx)(de.Z,{title:"\u8BA2\u5355\u91D1\u989D",value:568.08,prefix:"\xA5"})]}),V=(0,e.jsx)(K.X.Consumer,{children:function(W){var fe=W.isMobile;return(0,e.jsxs)(o.Z,{className:f.headerList,size:"small",column:fe?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()(f.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"})]}),ue=(0,e.jsxs)("div",{className:f.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,fe){var be=fe.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)(pe.Z,{placement:"topLeft",arrowPointAtCenter:!0,content:Ce,children:(0,e.jsx)("span",{children:W})}):W},X=(0,ie.useRequest)(C),J=X.data,me=J===void 0?{}:J,ee=X.loading,ge=me.advancedOperation1,xe=me.advancedOperation2,Ee=me.advancedOperation3,ye={tab1:(0,e.jsx)(Q.Z,{pagination:!1,loading:ee,dataSource:ge,columns:r}),tab2:(0,e.jsx)(Q.Z,{pagination:!1,loading:ee,dataSource:xe,columns:r}),tab3:(0,e.jsx)(Q.Z,{pagination:!1,loading:ee,dataSource:Ee,columns:r})},he=function(W){N(h()(h()({},z),{},{tabActiveKey:W}))},te=function(W){N(h()(h()({},z),{},{operationKey:W}))};return(0,e.jsx)(le._z,{title:"\u5355\u53F7\uFF1A234231029431",extra:i,className:f.pageHeader,content:V,extraContent:G,tabActiveKey:z.tabActiveKey,onTabChange:he,tabList:[{key:"detail",tab:"\u8BE6\u60C5"},{key:"rule",tab:"\u89C4\u5219"}],children:(0,e.jsx)("div",{className:f.main,children:(0,e.jsxs)(se.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 fe=W.isMobile;return(0,e.jsxs)(re.Z,{direction:fe?"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:ue}),(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)(ve.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:te,children:ye[z.operationKey]})]})})})},P=M},5519:function(ae,Z,n){n.d(Z,{Z:function(){return j}});var a=n(50959),h=n(82187),F=n.n(h),B=n(27189),D=n(92576),L=n(50483),I=n(63671),K={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},se=a.createContext({}),ie=n(13763),re=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,ie.Z)(t).map(e=>Object.assign(Object.assign({},e==null?void 0:e.props),{key:e.key}));function oe(t,e,s){const l=a.useMemo(()=>e||U(s),[e,s]);return a.useMemo(()=>l.map(c=>{var{span:r}=c,M=re(c,["span"]);return Object.assign(Object.assign({},M),{span:typeof r=="number"?r:(0,B.m9)(t,r)})}),[l,t])}function ce(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,x=P||1;if(M===t.length-1){const[m,f]=ce(r,i,P);c=c||f,l.push(m),s.push(l);return}if(x{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:x,content:m,colon:f}=t,G=s;return P?a.createElement(G,{className:F()({[`${e}-item-label`]:T(x),[`${e}-item-content`]:T(m)},i),style:c,colSpan:l},T(x)&&a.createElement("span",{style:r},x),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`},(x||x===0)&&a.createElement("span",{className:F()(`${e}-item-label`,{[`${e}-item-no-colon`]:!f}),style:r},x),(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:x,labelStyle:m,contentStyle:f}=s;return t.map((G,V)=>{let{label:q,children:ue,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({},f),$),span:X,colon:l,component:r,itemPrefixCls:_,bordered:c,label:P?q:null,content:x?ue: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({},f),z),$),span:X*2-1,component:r[1],itemPrefixCls:_,bordered:c,content:ue})]})}var d=t=>{const e=a.useContext(se),{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(25446),g=n(55985),b=n(87077),O=n(37324);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,g.Wf)(t)),E(t)),{["&-rtl"]:{direction:"rtl"},[`${e}-header`]:{display:"flex",alignItems:"center",marginBottom:r},[`${e}-title`]:Object.assign(Object.assign({},g.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}}}})}},p=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)},p),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:x,rootClassName:m,style:f,size:G,labelStyle:V,contentStyle:q,items:ue}=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]),me=oe(X,ue,P),ee=(0,L.Z)(G),ge=o(J,me),[xe,Ee,ye]=S($),he=a.useMemo(()=>({labelStyle:V,contentStyle:q}),[V,q]);return xe(a.createElement(se.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"},x,m,Ee,ye),style:Object.assign(Object.assign({},N==null?void 0:N.style),f)},_),(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,ge.map((te,ne)=>a.createElement(d,{key:ne,index:ne,colon:c,prefixCls:$,vertical:M==="vertical",bordered:r,row:te}))))))))};y.Item=Q;var j=y},24223:function(ae,Z,n){n.d(Z,{Z:function(){return k}});var a=n(50959),h=n(97950),F=n(37865),B=n(82187),D=n.n(B),L=n(92576),I=n(9146),K=v=>{const{value:d,formatter:u,precision:g,decimalSeparator:b,groupSeparator:O="",prefixCls:E}=v;let C;if(typeof u=="function")C=u(d);else{const p=String(d),S=p.match(/^(-?)(\d*)(\.(\d+))?$/);if(!S||p==="-")C=p;else{const A=S[1];let y=S[2]||"0",j=S[4]||"";y=y.replace(/\B(?=(\d{3})+(?!\d))/g,O),typeof g=="number"&&(j=j.padEnd(g,"0").slice(0,g>0?g: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)},le=n(55985),se=n(87077),ie=n(37324);const re=v=>{const{componentCls:d,marginXXS:u,padding:g,colorTextDescription:b,titleFontSize:O,colorTextHeading:E,contentFontSize:C,fontFamily:p}=v;return{[`${d}`]:Object.assign(Object.assign({},(0,le.Wf)(v)),{[`${d}-title`]:{marginBottom:u,color:b,fontSize:O},[`${d}-skeleton`]:{paddingTop:g},[`${d}-content`]:{color:E,fontSize:C,fontFamily:p,[`${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=v=>{const{fontSizeHeading3:d,fontSize:u}=v;return{titleFontSize:u,contentFontSize:d}};var oe=(0,se.I$)("Statistic",v=>{const d=(0,ie.TS)(v,{});return[re(d)]},U),H=v=>{const{prefixCls:d,className:u,rootClassName:g,style:b,valueStyle:O,value:E=0,title:C,valueRender:p,prefix:S,suffix:A,loading:y=!1,onMouseEnter:j,onMouseLeave:t,decimalSeparator:e=".",groupSeparator:s=","}=v,{getPrefixCls:l,direction:i,statistic:c}=a.useContext(L.E_),r=l("statistic",d),[M,P,x]=oe(r),m=a.createElement(K,Object.assign({decimalSeparator:e,groupSeparator:s,prefixCls:r},v,{value:E})),f=D()(r,{[`${r}-rtl`]:i==="rtl"},c==null?void 0:c.className,u,g,P,x);return M(a.createElement("div",{className:f,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),p?p(m):m,A&&a.createElement("span",{className:`${r}-content-suffix`},A)))))};const de=[["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(v,d){let u=v;const g=/\[[^\]]*]/g,b=(d.match(g)||[]).map(p=>p.slice(1,-1)),O=d.replace(g,"[]"),E=de.reduce((p,S)=>{let[A,y]=S;if(p.includes(A)){const j=Math.floor(u/y);return u-=j*y,p.replace(new RegExp(`${A}+`,"g"),t=>{const e=t.length;return j.toString().padStart(e,"0")})}return p},O);let C=0;return E.replace(g,()=>{const p=b[C];return C+=1,p})}function pe(v,d){const{format:u=""}=d,g=new Date(v).getTime(),b=Date.now(),O=Math.max(g-b,0);return o(O,u)}const Q=1e3/30;function T(v){return new Date(v).getTime()}const ve=v=>{const{value:d,format:u="HH:mm:ss",onChange:g,onFinish:b}=v,O=(0,h.Z)(),E=a.useRef(null),C=()=>{b==null||b(),E.current&&(clearInterval(E.current),E.current=null)},p=()=>{const y=T(d);y>=Date.now()&&(E.current=setInterval(()=>{O(),g==null||g(y-Date.now()),y(p(),()=>{E.current&&(clearInterval(E.current),E.current=null)}),[d]);const S=(y,j)=>pe(y,Object.assign(Object.assign({},j),{format:u})),A=y=>(0,F.Tm)(y,{title:void 0});return a.createElement(H,Object.assign({},v,{valueRender:A,formatter:S}))};var w=a.memo(ve);H.Countdown=w;var k=H}}]); diff --git a/p__profile__basic__index.3aa436f5.async.js b/p__profile__basic__index.3aa436f5.async.js new file mode 100644 index 0000000000..1c1a75cff2 --- /dev/null +++ b/p__profile__basic__index.3aa436f5.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2286],{56934:function(ue,A,a){a.r(A),a.d(A,{default:function(){return re}});var s=a(35894),W=a(99148),j=a(29670),N=a(96375),Y=a(16965),f=a(5519),G=a(32923),me=a(50959),q=a(90228),k=a.n(q),H=a(87999),_=a.n(H);function ee(){return P.apply(this,arguments)}function P(){return P=_()(k()().mark(function b(){return k()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",(0,j.request)("/api/profile/basic"));case 1:case"end":return y.stop()}},b)})),P.apply(this,arguments)}var te=a(95815),X=(0,te.kc)(function(b){var E=b.token;return{title:{marginBottom:"16px",color:E.colorTextHeading,fontWeight:"500",fontSize:"16px"}}}),ne=X,i=a(11527),le=[{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(E){return E==="success"?(0,i.jsx)(N.Z,{status:"success",text:"\u6210\u529F"}):(0,i.jsx)(N.Z,{status:"processing",text:"\u8FDB\u884C\u4E2D"})}},{title:"\u64CD\u4F5C\u5458ID",dataIndex:"operator",key:"operator"},{title:"\u8017\u65F6",dataIndex:"cost",key:"cost"}],ie=function(){var E=ne(),y=E.styles,O=(0,j.useRequest)(function(){return ee()}),ce=O.data,U=O.loading,u=ce||{basicGoods:[],basicProgress:[]},h=u.basicGoods,se=u.basicProgress,V=[];if(h.length){var K=0,J=0;h.forEach(function(C){K+=Number(C.num),J+=Number(C.amount)}),V=h.concat({id:"\u603B\u8BA1",num:K,amount:J})}var F=function(p,Z,e){var t={children:p,props:{}};return e===h.length&&(t.props.colSpan=0),t},ae=[{title:"\u5546\u54C1\u7F16\u53F7",dataIndex:"id",key:"id",render:function(p,Z,e){return e(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(25446),h=a(55985),se=a(87077),V=a(37324);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,be]=ae(g),he=s.useMemo(()=>({labelStyle:I,contentStyle:M}),[I,M]);return pe(s.createElement(H.Provider,{value:he},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,be),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__profile__basic__index.96d9be29.async.js b/p__profile__basic__index.96d9be29.async.js deleted file mode 100644 index 4e978db74e..0000000000 --- a/p__profile__basic__index.96d9be29.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2286],{16391:function(ue,A,a){a.r(A),a.d(A,{default:function(){return re}});var s=a(89336),W=a(90215),j=a(8025),N=a(6774),Y=a(18283),f=a(65906),G=a(498),me=a(79685),q=a(29195),k=a.n(q),H=a(56717),_=a.n(H);function ee(){return P.apply(this,arguments)}function P(){return P=_()(k()().mark(function b(){return k()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",(0,j.request)("/api/profile/basic"));case 1:case"end":return y.stop()}},b)})),P.apply(this,arguments)}var te=a(24507),X=(0,te.kc)(function(b){var E=b.token;return{title:{marginBottom:"16px",color:E.colorTextHeading,fontWeight:"500",fontSize:"16px"}}}),ne=X,i=a(63342),le=[{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(E){return E==="success"?(0,i.jsx)(N.Z,{status:"success",text:"\u6210\u529F"}):(0,i.jsx)(N.Z,{status:"processing",text:"\u8FDB\u884C\u4E2D"})}},{title:"\u64CD\u4F5C\u5458ID",dataIndex:"operator",key:"operator"},{title:"\u8017\u65F6",dataIndex:"cost",key:"cost"}],ie=function(){var E=ne(),y=E.styles,O=(0,j.useRequest)(function(){return ee()}),ce=O.data,U=O.loading,u=ce||{basicGoods:[],basicProgress:[]},h=u.basicGoods,se=u.basicProgress,V=[];if(h.length){var K=0,J=0;h.forEach(function(C){K+=Number(C.num),J+=Number(C.amount)}),V=h.concat({id:"\u603B\u8BA1",num:K,amount:J})}var F=function(p,Z,e){var t={children:p,props:{}};return e===h.length&&(t.props.colSpan=0),t},ae=[{title:"\u5546\u54C1\u7F16\u53F7",dataIndex:"id",key:"id",render:function(p,Z,e){return e(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.2c78d606.async.js b/p__result__fail__index.6170b550.async.js similarity index 51% rename from p__result__fail__index.2c78d606.async.js rename to p__result__fail__index.6170b550.async.js index f39ecfdd5a..d7c8b09d2d 100644 --- a/p__result__fail__index.2c78d606.async.js +++ b/p__result__fail__index.6170b550.async.js @@ -1,4 +1,4 @@ -"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),{[` +"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(35361),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)},46268:function(A,b,n){n.d(b,{f:function(){return l}});var o=n(88357),h=n(38751),v=n(82187),O=n.n(v),y=n(50959),p=n(84341),$=n(35361),T=n(34829),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})}))}},84341:function(A,b,n){n.d(b,{X:function(){return h}});var o=n(50959),h=(0,o.createContext)({})},63758:function(A,b,n){n.r(b),n.d(b,{default:function(){return D}});var o=n(67641),h=n(35361),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(46268),j=n(16965),N=n(75130),E=n(86865),l=n(95815),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})})})}},16965:function(A,b,n){n.d(b,{Z:function(){return de}});var o=n(50959),h=n(82187),v=n.n(h),O=n(87017),y=n(92576),p=n(50483),$=n(9146),T=n(40622),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(25446),u=n(55985),g=n(87077),d=n(37324);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:` @@ -7,4 +7,4 @@ ${(0,l.bf)(r)} ${(0,l.bf)(r)} 0 0 ${t}, ${(0,l.bf)(r)} 0 0 0 ${t} inset, 0 ${(0,l.bf)(r)} 0 0 ${t} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:a}}},f=e=>{const{componentCls:i,iconCls:t,actionsLiMargin:a,cardActionsIconSize:r,colorBorderSecondary:c,actionsBg:m}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:m,borderTop:`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${c}`,display:"flex",borderRadius:`0 0 ${(0,l.bf)(e.borderRadiusLG)} ${(0,l.bf)(e.borderRadiusLG)}`},(0,u.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(${i}-btn), > ${t}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,l.bf)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${t}`]:{fontSize:r,lineHeight:(0,l.bf)(e.calc(r).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${c}`}}})},B=e=>Object.assign(Object.assign({margin:`${(0,l.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}}),J=e=>{const{componentCls:i,cardPaddingBase:t,colorFillAlter:a}=e;return{[`${i}-head`]:{padding:`0 ${(0,l.bf)(t)}`,background:a,"&-title":{fontSize:e.fontSize}},[`${i}-body`]:{padding:`${(0,l.bf)(e.padding)} ${(0,l.bf)(t)}`}}},Q=e=>{const{componentCls:i}=e;return{overflow:"hidden",[`${i}-body`]:{userSelect:"none"}}},F=e=>{const{antCls:i,componentCls:t,cardShadow:a,cardHeadPadding:r,colorBorderSecondary:c,boxShadowTertiary:m,cardPaddingBase:z,extraColor:C}=e;return{[t]:Object.assign(Object.assign({},(0,u.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:m},[`${t}-head`]:D(e),[`${t}-extra`]:{marginInlineStart:"auto",color:C,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:z,borderRadius:` 0 0 ${(0,l.bf)(e.borderRadiusLG)} ${(0,l.bf)(e.borderRadiusLG)}`},(0,u.dF)()),[`${t}-grid`]:x(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${i}-image-mask`]:{borderRadius:`${(0,l.bf)(e.borderRadiusLG)} ${(0,l.bf)(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:f(e),[`${t}-meta`]:B(e)}),[`${t}-bordered`]:{border:`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${c}`,[`${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,l.bf)(e.borderRadiusLG)} ${(0,l.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:r}}},[`${t}-type-inner`]:J(e),[`${t}-loading`]:Q(e),[`${t}-rtl`]:{direction:"rtl"}}},Y=e=>{const{componentCls:i,cardPaddingSM:t,headerHeightSM:a,headerFontSizeSM:r}=e;return{[`${i}-small`]:{[`> ${i}-head`]:{minHeight:a,padding:`0 ${(0,l.bf)(t)}`,fontSize:r,[`> ${i}-head-wrapper`]:{[`> ${i}-extra`]:{fontSize:e.fontSize}}},[`> ${i}-body`]:{padding:t}},[`${i}-small${i}-contain-tabs`]:{[`> ${i}-head`]:{[`${i}-head-title, ${i}-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,g.I$)("Card",e=>{const i=(0,d.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[F(i),Y(i)]},G),I=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{const{prefixCls:i,actions:t=[]}=e;return o.createElement("ul",{className:`${i}-actions`},t.map((a,r)=>{const c=`action-${r}`;return o.createElement("li",{style:{width:`${100/t.length}%`},key:c},o.createElement("span",null,a))}))};var ie=o.forwardRef((e,i)=>{const{prefixCls:t,className:a,rootClassName:r,style:c,extra:m,headStyle:z={},bodyStyle:C={},title:L,loading:H,bordered:w=!0,size:K,type:X,cover:ee,actions:k,tabList:U,children:V,activeTabKey:te,defaultActiveTabKey:se,tabBarExtraContent:ce,hoverable:ue,tabProps:ge={}}=e,fe=I(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:R}=o.useContext(y.E_),ve=P=>{var S;(S=e.onTabChange)===null||S===void 0||S.call(e,P)},be=o.useMemo(()=>{let P=!1;return o.Children.forEach(V,S=>{S&&S.type&&S.type===E&&(P=!0)}),P},[V]),s=me("card",t),[ye,pe]=W(s),$e=o.createElement($.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},V),ae=te!==void 0,Ce=Object.assign(Object.assign({},ge),{[ae?"activeKey":"defaultActiveKey"]:ae?te:se,tabBarExtraContent:ce});let ne;const M=(0,p.Z)(K),Se=!M||M==="default"?"large":M,re=U?o.createElement(T.Z,Object.assign({size:Se},Ce,{className:`${s}-head-tabs`,onChange:ve,items:U.map(P=>{var{tab:S}=P,Pe=I(P,["tab"]);return Object.assign({label:S},Pe)})})):null;(L||m||re)&&(ne=o.createElement("div",{className:`${s}-head`,style:z},o.createElement("div",{className:`${s}-head-wrapper`},L&&o.createElement("div",{className:`${s}-head-title`},L),m&&o.createElement("div",{className:`${s}-extra`},m)),re));const xe=ee?o.createElement("div",{className:`${s}-cover`},ee):null,Oe=o.createElement("div",{className:`${s}-body`,style:C},H?$e:V),je=k&&k.length?o.createElement(Z,{prefixCls:s,actions:k}):null,Ee=(0,O.Z)(fe,["onTabChange"]),Be=v()(s,R==null?void 0:R.className,{[`${s}-loading`]:H,[`${s}-bordered`]:w,[`${s}-hoverable`]:ue,[`${s}-contain-grid`]:be,[`${s}-contain-tabs`]:U&&U.length,[`${s}-${M}`]:M,[`${s}-type-${X}`]:!!X,[`${s}-rtl`]:he==="rtl"},a,r,pe),ze=Object.assign(Object.assign({},R==null?void 0:R.style),c);return ye(o.createElement("div",Object.assign({ref:i},Ee,{className:Be,style:ze}),ne,xe,Oe,je))}),oe=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{const{prefixCls:i,className:t,avatar:a,title:r,description:c}=e,m=oe(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:z}=o.useContext(y.E_),C=z("card",i),L=v()(`${C}-meta`,t),H=a?o.createElement("div",{className:`${C}-meta-avatar`},a):null,w=r?o.createElement("div",{className:`${C}-meta-title`},r):null,K=c?o.createElement("div",{className:`${C}-meta-description`},c):null,X=w||K?o.createElement("div",{className:`${C}-meta-detail`},w,K):null;return o.createElement("div",Object.assign({},m,{className:L}),H,X)};const q=ie;q.Grid=E,q.Meta=le;var de=q}}]); + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:a}}},f=e=>{const{componentCls:i,iconCls:t,actionsLiMargin:a,cardActionsIconSize:r,colorBorderSecondary:c,actionsBg:m}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:m,borderTop:`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${c}`,display:"flex",borderRadius:`0 0 ${(0,l.bf)(e.borderRadiusLG)} ${(0,l.bf)(e.borderRadiusLG)}`},(0,u.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(${i}-btn), > ${t}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,l.bf)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${t}`]:{fontSize:r,lineHeight:(0,l.bf)(e.calc(r).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${c}`}}})},B=e=>Object.assign(Object.assign({margin:`${(0,l.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}}),J=e=>{const{componentCls:i,cardPaddingBase:t,colorFillAlter:a}=e;return{[`${i}-head`]:{padding:`0 ${(0,l.bf)(t)}`,background:a,"&-title":{fontSize:e.fontSize}},[`${i}-body`]:{padding:`${(0,l.bf)(e.padding)} ${(0,l.bf)(t)}`}}},Q=e=>{const{componentCls:i}=e;return{overflow:"hidden",[`${i}-body`]:{userSelect:"none"}}},F=e=>{const{antCls:i,componentCls:t,cardShadow:a,cardHeadPadding:r,colorBorderSecondary:c,boxShadowTertiary:m,cardPaddingBase:z,extraColor:C}=e;return{[t]:Object.assign(Object.assign({},(0,u.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:m},[`${t}-head`]:D(e),[`${t}-extra`]:{marginInlineStart:"auto",color:C,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:z,borderRadius:` 0 0 ${(0,l.bf)(e.borderRadiusLG)} ${(0,l.bf)(e.borderRadiusLG)}`},(0,u.dF)()),[`${t}-grid`]:x(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${i}-image-mask`]:{borderRadius:`${(0,l.bf)(e.borderRadiusLG)} ${(0,l.bf)(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:f(e),[`${t}-meta`]:B(e)}),[`${t}-bordered`]:{border:`${(0,l.bf)(e.lineWidth)} ${e.lineType} ${c}`,[`${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,l.bf)(e.borderRadiusLG)} ${(0,l.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:r}}},[`${t}-type-inner`]:J(e),[`${t}-loading`]:Q(e),[`${t}-rtl`]:{direction:"rtl"}}},Y=e=>{const{componentCls:i,cardPaddingSM:t,headerHeightSM:a,headerFontSizeSM:r}=e;return{[`${i}-small`]:{[`> ${i}-head`]:{minHeight:a,padding:`0 ${(0,l.bf)(t)}`,fontSize:r,[`> ${i}-head-wrapper`]:{[`> ${i}-extra`]:{fontSize:e.fontSize}}},[`> ${i}-body`]:{padding:t}},[`${i}-small${i}-contain-tabs`]:{[`> ${i}-head`]:{[`${i}-head-title, ${i}-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,g.I$)("Card",e=>{const i=(0,d.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[F(i),Y(i)]},G),I=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{const{prefixCls:i,actions:t=[]}=e;return o.createElement("ul",{className:`${i}-actions`},t.map((a,r)=>{const c=`action-${r}`;return o.createElement("li",{style:{width:`${100/t.length}%`},key:c},o.createElement("span",null,a))}))};var ie=o.forwardRef((e,i)=>{const{prefixCls:t,className:a,rootClassName:r,style:c,extra:m,headStyle:z={},bodyStyle:C={},title:L,loading:H,bordered:w=!0,size:K,type:X,cover:ee,actions:k,tabList:V,children:U,activeTabKey:te,defaultActiveTabKey:se,tabBarExtraContent:ce,hoverable:ue,tabProps:ge={}}=e,fe=I(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:R}=o.useContext(y.E_),ve=P=>{var S;(S=e.onTabChange)===null||S===void 0||S.call(e,P)},be=o.useMemo(()=>{let P=!1;return o.Children.forEach(U,S=>{S&&S.type&&S.type===E&&(P=!0)}),P},[U]),s=me("card",t),[ye,pe,$e]=W(s),Ce=o.createElement($.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},U),ae=te!==void 0,Se=Object.assign(Object.assign({},ge),{[ae?"activeKey":"defaultActiveKey"]:ae?te:se,tabBarExtraContent:ce});let ne;const M=(0,p.Z)(K),xe=!M||M==="default"?"large":M,re=V?o.createElement(T.Z,Object.assign({size:xe},Se,{className:`${s}-head-tabs`,onChange:ve,items:V.map(P=>{var{tab:S}=P,Te=I(P,["tab"]);return Object.assign({label:S},Te)})})):null;(L||m||re)&&(ne=o.createElement("div",{className:`${s}-head`,style:z},o.createElement("div",{className:`${s}-head-wrapper`},L&&o.createElement("div",{className:`${s}-head-title`},L),m&&o.createElement("div",{className:`${s}-extra`},m)),re));const Oe=ee?o.createElement("div",{className:`${s}-cover`},ee):null,je=o.createElement("div",{className:`${s}-body`,style:C},H?Ce:U),Ee=k&&k.length?o.createElement(Z,{prefixCls:s,actions:k}):null,Be=(0,O.Z)(fe,["onTabChange"]),ze=v()(s,R==null?void 0:R.className,{[`${s}-loading`]:H,[`${s}-bordered`]:w,[`${s}-hoverable`]:ue,[`${s}-contain-grid`]:be,[`${s}-contain-tabs`]:V&&V.length,[`${s}-${M}`]:M,[`${s}-type-${X}`]:!!X,[`${s}-rtl`]:he==="rtl"},a,r,pe,$e),Pe=Object.assign(Object.assign({},R==null?void 0:R.style),c);return ye(o.createElement("div",Object.assign({ref:i},Be,{className:ze,style:Pe}),ne,Oe,je,Ee))}),oe=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{const{prefixCls:i,className:t,avatar:a,title:r,description:c}=e,m=oe(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:z}=o.useContext(y.E_),C=z("card",i),L=v()(`${C}-meta`,t),H=a?o.createElement("div",{className:`${C}-meta-avatar`},a):null,w=r?o.createElement("div",{className:`${C}-meta-title`},r):null,K=c?o.createElement("div",{className:`${C}-meta-description`},c):null,X=w||K?o.createElement("div",{className:`${C}-meta-detail`},w,K):null;return o.createElement("div",Object.assign({},m,{className:L}),H,X)};const q=ie;q.Grid=E,q.Meta=le;var de=q}}]); diff --git a/p__result__success__index.0e68e42d.async.js b/p__result__success__index.0e68e42d.async.js deleted file mode 100644 index 26e4c9745d..0000000000 --- a/p__result__success__index.0e68e42d.async.js +++ /dev/null @@ -1,10 +0,0 @@ -"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.2124de55.async.js b/p__result__success__index.2124de55.async.js new file mode 100644 index 0000000000..6802e7455c --- /dev/null +++ b/p__result__success__index.2124de55.async.js @@ -0,0 +1,10 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4648],{10587:function(re,B,o){o.d(B,{Z:function(){return I}});var a=o(35361),D=o(50959),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(69164),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)},46268:function(re,B,o){o.d(B,{f:function(){return r}});var a=o(88357),D=o(38751),h=o(82187),E=o.n(h),S=o(50959),L=o(84341),I=o(35361),U=o(34829),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(11527),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})}))}},84341:function(re,B,o){o.d(B,{X:function(){return D}});var a=o(50959),D=(0,a.createContext)({})},24936:function(re,B,o){o.r(B),o.d(B,{default:function(){return v}});var a=o(10587),D=o(46268),h=o(48782),E=o(5519),S=o(86865),L=o(16965),I=o(75130),U=o(50959),R=o(95815),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(11527),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})})})}},16965:function(re,B,o){o.d(B,{Z:function(){return be}});var a=o(50959),D=o(82187),h=o.n(D),E=o(87017),S=o(92576),L=o(50483),I=o(9146),U=o(40622),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(25446),p=o(55985),v=o(87077),z=o(37324);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,ve]=H(f),$e=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 Se;const ce=(0,L.Z)(O),je=!ce||ce==="default"?"large":ce,Ce=F?a.createElement(U.Z,Object.assign({size:je},me,{className:`${f}-head-tabs`,onChange:pe,items:F.map(_=>{var{tab:W}=_,Ne=oe(_,["tab"]);return Object.assign({label:W},Ne)})})):null;(g||c||Ce)&&(Se=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)),Ce));const Ee=y?a.createElement("div",{className:`${f}-cover`},y):null,Oe=a.createElement("div",{className:`${f}-body`,style:d},m?$e:T),Be=j&&j.length?a.createElement(ne,{prefixCls:f,actions:j}):null,De=(0,E.Z)(M,["onTabChange"]),ze=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,ve),Pe=Object.assign(Object.assign({},N==null?void 0:N.style),n);return ye(a.createElement("div",Object.assign({ref:u},De,{className:ze,style:Pe}),Se,Ee,Oe,Be))}),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},5519:function(re,B,o){o.d(B,{Z:function(){return s}});var a=o(50959),D=o(82187),h=o.n(D),E=o(27189),S=o(92576),L=o(50483),I=o(63671),R={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},A=a.createContext({}),r=o(13763),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(25446),ue=o(55985),ge=o(87077),xe=o(37324);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,xe.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,ve]=e(x),$e=a.useMemo(()=>({labelStyle:T,contentStyle:Z}),[T,Z]);return ye(a.createElement(A.Provider,{value:$e},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,ve),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__table-list__index.80e3a8ed.async.js b/p__table-list__index.80e3a8ed.async.js deleted file mode 100644 index 5a7a5eb0af..0000000000 --- a/p__table-list__index.80e3a8ed.async.js +++ /dev/null @@ -1 +0,0 @@ -"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.a94a8218.async.js b/p__table-list__index.a94a8218.async.js new file mode 100644 index 0000000000..d075b0d2ea --- /dev/null +++ b/p__table-list__index.a94a8218.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[942],{47176:function(ve,H,a){a.r(H),a.d(H,{default:function(){return pe}});var K=a(90228),f=a.n(K),J=a(87999),D=a.n(J),Q=a(26068),U=a.n(Q),X=a(67825),k=a.n(X),q=a(48305),p=a.n(q),$=a(14342),_=a(35894),ee=a(99148),ae=a(35623),se=a(46880),s=a(29670),L=a(39617),te=a(21713),B=a(86865),re=a(81283),d=a(50959),ne=a(1442),le=a(62217),W=a(44896),G=a(19805),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(20062),N=a(34635),de=a(5778),ie=a(60013),ce=a(88574),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.3e66229c.async.js b/p__user__login__index.3e66229c.async.js new file mode 100644 index 0000000000..d7c6359bd4 --- /dev/null +++ b/p__user__login__index.3e66229c.async.js @@ -0,0 +1 @@ +"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},44896:function(Ee,K,e){var h=e(959),c=e(35361),T=e(56929),O=e(65589),ie=e(26935),M=e(23835),ne=e(71770),ae=e(50959),q=e(8376),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=_},16590:function(Ee,K,e){e.d(K,{A:function(){return j}});var h=e(35361),c=e(26935),T=e(50959),O=e(22332),ie=e(54856),M=e(88357),ne=e(959),ae=e(25671),q=e(65589),b=e(54070),x=e(38751),re=e(10994),w=e(82187),s=e.n(w),u=e(86047),A=e(81408),_=e(34829),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(76001);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},54070:function(Ee,K,e){e.d(K,{G:function(){return _}});var h=e(35361),c=e(88357),T=e(27263),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(38751),b=e(27850),x=e(82187),re=e.n(x),w=e(34829),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})}))]}))})},93367:function(Ee,K,e){e.r(K),e.d(K,{default:function(){return lt}});var h=e(90228),c=e.n(h),T=e(26068),O=e.n(T),ie=e(87999),M=e.n(ie),ne=e(48305),ae=e.n(ne),q=e(50375),b=e(14342),x=e(29670);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(35361),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(56929),Le=e(99192),Ae=e(38751),Re=e(82187),We=e.n(Re),Ke=e(16590),ge=e(88357),Y=e(34829),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(44896),me=e(11642),Ne=e(73356),pe=e(959),Xe=e(26935),De=e(21713),oe=e(86865),Me=e(33359),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(75442),$e=e(9308),Ue=e(8376),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(14205),ce=e(39617),et=e(40622),tt=e(95815),nt=e(10422),at=e(22545),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__login__index.d660a102.async.js b/p__user__login__index.d660a102.async.js deleted file mode 100644 index 47b8d63446..0000000000 --- a/p__user__login__index.d660a102.async.js +++ /dev/null @@ -1 +0,0 @@ -"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 deleted file mode 100644 index 0dc5d25bd2..0000000000 --- a/p__user__register-result__index.85636c36.async.js +++ /dev/null @@ -1 +0,0 @@ -"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.f8aedd4b.async.js b/p__user__register-result__index.f8aedd4b.async.js new file mode 100644 index 0000000000..917a1b10e1 --- /dev/null +++ b/p__user__register-result__index.f8aedd4b.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2493],{88765:function(f,e,u){u.r(e),u.d(e,{default:function(){return v}});var i=u(48305),l=u.n(i),n=u(29670),r=u(86865),o=u(75130),A=u(50959),c=u(95815),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.22ccd76e.async.js b/p__user__register__index.22ccd76e.async.js new file mode 100644 index 0000000000..18a0d3c35c --- /dev/null +++ b/p__user__register__index.22ccd76e.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9907],{57249:function(te,y,e){e.d(y,{Z:function(){return T}});var t=e(27263),v=e(50959),E={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},P=E,O=e(38782),I=function(M,A){return v.createElement(O.Z,(0,t.Z)({},M,{ref:A,icon:P}))},T=v.forwardRef(I)},96527:function(te,y,e){e.d(y,{Z:function(){return T}});var t=e(27263),v=e(50959),E={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"},P=E,O=e(38782),I=function(M,A){return v.createElement(O.Z,(0,t.Z)({},M,{ref:A,icon:P}))},T=v.forwardRef(I)},28589:function(te,y,e){e.r(y),e.d(y,{default:function(){return G}});var t=e(48305),v=e.n(t),E=e(29670),P=e(26935),O=e(46545),I=e(39617),T=e(24156),j=e(21713),M=e(23835),A=e(10994),C=e(48966),s=e(61323),l=e(86865),o=e(50959),u=e(90228),a=e.n(u),h=e(87999),Z=e.n(h);function R(Q){return S.apply(this,arguments)}function S(){return S=Z()(a()().mark(function Q(r){return a()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,E.request)("/api/register",{method:"POST",data:r}));case 1:case"end":return f.stop()}},Q)})),S.apply(this,arguments)}var W=e(95815),V=(0,W.kc)(function(Q){var r=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:r.colorSuccess},warning:{transition:"color 0.3s",color:r.colorWarning},error:{transition:"color 0.3s",color:r.colorError},"progress-pass > .progress":{".ant-progress-bg":{backgroundColor:r.colorWarning}}}}),L=V,n=e(11527),B=P.Z.Item,F=O.Z.Option,fe={ok:"success",pass:"normal",poor:"exception"},me=function(){var r=L(),p=r.styles,f=(0,o.useState)(0),c=v()(f,2),m=c[0],D=c[1],k=(0,o.useState)(!1),z=v()(k,2),w=z[0],H=z[1],X=(0,o.useState)("86"),N=v()(X,2),ce=N[0],U=N[1],ne=(0,o.useState)(!1),re=v()(ne,2),ue=re[0],_=re[1],se=!1,b,de={ok:(0,n.jsx)("div",{className:p.success,children:(0,n.jsx)("span",{children:"\u5F3A\u5EA6\uFF1A\u5F3A"})}),pass:(0,n.jsx)("div",{className:p.warning,children:(0,n.jsx)("span",{children:"\u5F3A\u5EA6\uFF1A\u4E2D"})}),poor:(0,n.jsx)("div",{className:p.error,children:(0,n.jsx)("span",{children:"\u5F3A\u5EA6\uFF1A\u592A\u77ED"})})},oe=P.Z.useForm(),$=v()(oe,1),x=$[0];(0,o.useEffect)(function(){return function(){clearInterval(b)}},[b]);var q=function(){var d=59;D(d),b=window.setInterval(function(){d-=1,D(d),d===0&&clearInterval(b)},1e3)},Y=function(){var d=x.getFieldValue("password");return d&&d.length>9?"ok":d&&d.length>5?"pass":"poor"},ee=(0,E.useRequest)(R,{manual:!0,onSuccess:function(d,i){d.status==="ok"&&(I.ZP.success("\u6CE8\u518C\u6210\u529F\uFF01"),E.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 g=Promise;return i&&i!==x.getFieldValue("password")?g.reject("\u4E24\u6B21\u8F93\u5165\u7684\u5BC6\u7801\u4E0D\u5339\u914D!"):g.resolve()},J=function(d,i){var g=Promise;return i?(w||H(!!i),_(!ue),i.length<6?g.reject(""):(i&&se&&x.validateFields(["confirm"]),g.resolve())):(H(!!i),g.reject("\u8BF7\u8F93\u5165\u5BC6\u7801!"))},pe=function(d){U(d)},he=function(){var d=x.getFieldValue("password"),i=Y();return d&&d.length?(0,n.jsx)("div",{className:p["progress-".concat(i)],children:(0,n.jsx)(T.Z,{status:fe[i],strokeWidth:6,percent:d.length*10>100?100:d.length*10,showInfo:!1})}):null};return(0,n.jsxs)("div",{className:p.main,children:[(0,n.jsx)("h3",{children:"\u6CE8\u518C"}),(0,n.jsxs)(P.Z,{form:x,name:"UserRegister",onFinish:ve,children:[(0,n.jsx)(B,{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,n.jsx)(j.Z,{size:"large",placeholder:"\u90AE\u7BB1"})}),(0,n.jsx)(M.Z,{getPopupContainer:function(d){return d&&d.parentNode?d.parentNode:d},content:w&&(0,n.jsxs)("div",{style:{padding:"4px 0"},children:[de[Y()],he(),(0,n.jsx)("div",{style:{marginTop:10},children:(0,n.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,n.jsx)(B,{name:"password",className:x.getFieldValue("password")&&x.getFieldValue("password").length>0&&p.password,rules:[{validator:J}],children:(0,n.jsx)(j.Z,{size:"large",type:"password",placeholder:"\u81F3\u5C116\u4F4D\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199"})})}),(0,n.jsx)(B,{name:"confirm",rules:[{required:!0,message:"\u786E\u8BA4\u5BC6\u7801"},{validator:le}],children:(0,n.jsx)(j.Z,{size:"large",type:"password",placeholder:"\u786E\u8BA4\u5BC6\u7801"})}),(0,n.jsx)(B,{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,n.jsxs)(A.Z.Compact,{style:{width:"100%"},children:[(0,n.jsxs)(O.Z,{size:"large",value:ce,onChange:pe,style:{width:"30%"},children:[(0,n.jsx)(F,{value:"86",children:"+86"}),(0,n.jsx)(F,{value:"87",children:"+87"})]}),(0,n.jsx)(j.Z,{size:"large",placeholder:"\u624B\u673A\u53F7"})]})}),(0,n.jsxs)(C.Z,{gutter:8,children:[(0,n.jsx)(s.Z,{span:16,children:(0,n.jsx)(B,{name:"captcha",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801!"}],children:(0,n.jsx)(j.Z,{size:"large",placeholder:"\u9A8C\u8BC1\u7801"})})}),(0,n.jsx)(s.Z,{span:8,children:(0,n.jsx)(l.ZP,{size:"large",disabled:!!m,className:p.getCaptcha,onClick:q,children:m?"".concat(m," s"):"\u83B7\u53D6\u9A8C\u8BC1\u7801"})})]}),(0,n.jsx)(B,{children:(0,n.jsxs)("div",{className:p.footer,children:[(0,n.jsx)(l.ZP,{size:"large",loading:ae,className:p.submit,type:"primary",htmlType:"submit",children:(0,n.jsx)("span",{children:"\u6CE8\u518C"})}),(0,n.jsx)(E.Link,{to:"/user/login",children:(0,n.jsx)("span",{children:"\u4F7F\u7528\u5DF2\u6709\u8D26\u6237\u767B\u5F55"})})]})})]})]})},G=me},20873:function(te,y,e){e.d(y,{Z:function(){return t}});const t=v=>v?typeof v=="function"?v():v:null},21713:function(te,y,e){e.d(y,{Z:function(){return Q}});var t=e(50959),v=e(82187),E=e.n(v),P=e(92576),O=e(59263),I=e(85580),j=r=>{const{getPrefixCls:p,direction:f}=(0,t.useContext)(P.E_),{prefixCls:c,className:m}=r,D=p("input-group",c),k=p("input"),[z,w]=(0,I.ZP)(k),H=E()(D,{[`${D}-lg`]:r.size==="large",[`${D}-sm`]:r.size==="small",[`${D}-compact`]:r.compact,[`${D}-rtl`]:f==="rtl"},w,m),X=(0,t.useContext)(O.aM),N=(0,t.useMemo)(()=>Object.assign(Object.assign({},X),{isFormItemInput:!1}),[X]);return z(t.createElement("span",{className:H,style:r.style,onMouseEnter:r.onMouseEnter,onMouseLeave:r.onMouseLeave,onFocus:r.onFocus,onBlur:r.onBlur},t.createElement(O.aM.Provider,{value:N},r.children)))},M=e(99053),A=e(57249),C=e(96527),s=e(87017),l=e(12602),o=e(25341),u=function(r,p){var f={};for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&p.indexOf(c)<0&&(f[c]=r[c]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,c=Object.getOwnPropertySymbols(r);mr?t.createElement(C.Z,null):t.createElement(A.Z,null),h={click:"onClick",hover:"onMouseOver"};var R=t.forwardRef((r,p)=>{const{visibilityToggle:f=!0}=r,c=typeof f=="object"&&f.visible!==void 0,[m,D]=(0,t.useState)(()=>c?f.visible:!1),k=(0,t.useRef)(null);t.useEffect(()=>{c&&D(f.visible)},[c,f]);const z=(0,o.Z)(k),w=()=>{const{disabled:oe}=r;oe||(m&&z(),D($=>{var x;const q=!$;return typeof f=="object"&&((x=f.onVisibleChange)===null||x===void 0||x.call(f,q)),q}))},H=oe=>{const{action:$="click",iconRender:x=a}=r,q=h[$]||"",Y=x(m),ee={[q]:w,className:`${oe}-icon`,key:"passwordIcon",onMouseDown:ae=>{ae.preventDefault()},onMouseUp:ae=>{ae.preventDefault()}};return t.cloneElement(t.isValidElement(Y)?Y:t.createElement("span",null,Y),ee)},{className:X,prefixCls:N,inputPrefixCls:ce,size:U}=r,ne=u(r,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:re}=t.useContext(P.E_),ue=re("input",ce),_=re("input-password",N),se=f&&H(_),b=E()(_,X,{[`${_}-${U}`]:!!U}),de=Object.assign(Object.assign({},(0,s.Z)(ne,["suffix","iconRender","visibilityToggle"])),{type:m?"text":"password",className:b,prefixCls:ue,suffix:se});return U&&(de.size=U),t.createElement(M.Z,Object.assign({ref:(0,l.sQ)(p,k)},de))}),S=e(61020),W=e(37865),V=e(86865),L=e(50483),n=e(58163),B=function(r,p){var f={};for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&p.indexOf(c)<0&&(f[c]=r[c]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,c=Object.getOwnPropertySymbols(r);m{const{prefixCls:f,inputPrefixCls:c,className:m,size:D,suffix:k,enterButton:z=!1,addonAfter:w,loading:H,disabled:X,onSearch:N,onChange:ce,onCompositionStart:U,onCompositionEnd:ne}=r,re=B(r,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:ue,direction:_}=t.useContext(P.E_),se=t.useRef(!1),b=ue("input-search",f),de=ue("input",c),{compactSize:oe}=(0,n.ri)(b,_),$=(0,L.Z)(i=>{var g;return(g=D!=null?D:oe)!==null&&g!==void 0?g:i}),x=t.useRef(null),q=i=>{i&&i.target&&i.type==="click"&&N&&N(i.target.value,i,{source:"clear"}),ce&&ce(i)},Y=i=>{var g;document.activeElement===((g=x.current)===null||g===void 0?void 0:g.input)&&i.preventDefault()},ee=i=>{var g,ie;N&&N((ie=(g=x.current)===null||g===void 0?void 0:g.input)===null||ie===void 0?void 0:ie.value,i,{source:"input"})},ae=i=>{se.current||H||ee(i)},ge=typeof z=="boolean"?t.createElement(S.Z,null):null,ve=`${b}-button`;let le;const J=z||{},pe=J.type&&J.type.__ANT_BUTTON===!0;pe||J.type==="button"?le=(0,W.Tm)(J,Object.assign({onMouseDown:Y,onClick:i=>{var g,ie;(ie=(g=J==null?void 0:J.props)===null||g===void 0?void 0:g.onClick)===null||ie===void 0||ie.call(g,i),ee(i)},key:"enterButton"},pe?{className:ve,size:$}:{})):le=t.createElement(V.ZP,{className:ve,type:z?"primary":void 0,size:$,disabled:X,key:"enterButton",onMouseDown:Y,onClick:ee,loading:H,icon:ge},z),w&&(le=[le,(0,W.Tm)(w,{key:"addonAfter"})]);const he=E()(b,{[`${b}-rtl`]:_==="rtl",[`${b}-${$}`]:!!$,[`${b}-with-button`]:!!z},m),K=i=>{se.current=!0,U==null||U(i)},d=i=>{se.current=!1,ne==null||ne(i)};return t.createElement(M.Z,Object.assign({ref:(0,l.sQ)(x,p),onPressEnter:ae},re,{size:$,onCompositionStart:K,onCompositionEnd:d,prefixCls:de,addonAfter:le,suffix:k,onChange:q,className:he,disabled:X}))}),me=e(41787);const G=M.Z;G.Group=j,G.Search=fe,G.TextArea=me.Z,G.Password=R;var Q=G},6835:function(te,y,e){var t=e(50959),v=e(82187),E=e.n(v),P=e(61852),O=e(20873),I=e(92576),T=e(45369),j=function(s,l){var o={};for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&l.indexOf(u)<0&&(o[u]=s[u]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,u=Object.getOwnPropertySymbols(s);a!l&&!o?null:t.createElement(t.Fragment,null,l&&t.createElement("div",{className:`${s}-title`},(0,O.Z)(l)),t.createElement("div",{className:`${s}-inner-content`},(0,O.Z)(o))),A=s=>{const{hashId:l,prefixCls:o,className:u,style:a,placement:h="top",title:Z,content:R,children:S}=s;return t.createElement("div",{className:E()(l,o,`${o}-pure`,`${o}-placement-${h}`,u),style:a},t.createElement("div",{className:`${o}-arrow`}),t.createElement(P.G,Object.assign({},s,{className:l,prefixCls:o}),S||M(o,Z,R)))},C=s=>{const{prefixCls:l,className:o}=s,u=j(s,["prefixCls","className"]),{getPrefixCls:a}=t.useContext(I.E_),h=a("popover",l),[Z,R,S]=(0,T.Z)(h);return Z(t.createElement(A,Object.assign({},u,{prefixCls:h,hashId:R,className:E()(o,S)})))};y.ZP=C},23835:function(te,y,e){var t=e(50959),v=e(82187),E=e.n(v),P=e(20873),O=e(48141),I=e(92576),T=e(27850),j=e(6835),M=e(45369),A=function(l,o){var u={};for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&o.indexOf(a)<0&&(u[a]=l[a]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,a=Object.getOwnPropertySymbols(l);h{let{title:o,content:u,prefixCls:a}=l;return t.createElement(t.Fragment,null,o&&t.createElement("div",{className:`${a}-title`},(0,P.Z)(o)),t.createElement("div",{className:`${a}-inner-content`},(0,P.Z)(u)))},s=t.forwardRef((l,o)=>{const{prefixCls:u,title:a,content:h,overlayClassName:Z,placement:R="top",trigger:S="hover",mouseEnterDelay:W=.1,mouseLeaveDelay:V=.1,overlayStyle:L={}}=l,n=A(l,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:B}=t.useContext(I.E_),F=B("popover",u),[fe,me,G]=(0,M.Z)(F),Q=B(),r=E()(Z,me,G);return fe(t.createElement(T.Z,Object.assign({placement:R,trigger:S,mouseEnterDelay:W,mouseLeaveDelay:V,overlayStyle:L},n,{prefixCls:F,overlayClassName:r,ref:o,overlay:a||h?t.createElement(C,{prefixCls:F,title:a,content:h}):null,transitionName:(0,O.m)(Q,"zoom-big",n.transitionName),"data-popover-inject":!0})))});s._InternalPanelDoNotUseOrYouWillBeFired=j.ZP,y.Z=s},45369:function(te,y,e){var t=e(55985),v=e(74185),E=e(80197),P=e(73316),O=e(87077),I=e(37324),T=e(83467);const j=C=>{const{componentCls:s,popoverColor:l,titleMinWidth:o,fontWeightStrong:u,innerPadding:a,boxShadowSecondary:h,colorTextHeading:Z,borderRadiusLG:R,zIndexPopup:S,titleMarginBottom:W,colorBgElevated:V,popoverBg:L,titleBorderBottom:n,innerContentPadding:B,titlePadding:F}=C;return[{[s]:Object.assign(Object.assign({},(0,t.Wf)(C)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:S,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"},[`${s}-content`]:{position:"relative"},[`${s}-inner`]:{backgroundColor:L,backgroundClip:"padding-box",borderRadius:R,boxShadow:h,padding:a},[`${s}-title`]:{minWidth:o,marginBottom:W,color:Z,fontWeight:u,borderBottom:n,padding:F},[`${s}-inner-content`]:{color:l,padding:B}})},(0,E.ZP)(C,"var(--antd-arrow-background-color)"),{[`${s}-pure`]:{position:"relative",maxWidth:"none",margin:C.sizePopupArrow,display:"inline-block",[`${s}-content`]:{display:"inline-block"}}}]},M=C=>{const{componentCls:s}=C;return{[s]:P.i.map(l=>{const o=C[`${l}6`];return{[`&${s}-${l}`]:{"--antd-arrow-background-color":o,[`${s}-inner`]:{backgroundColor:o},[`${s}-arrow`]:{background:"transparent"}}}})}},A=C=>{const{lineWidth:s,controlHeight:l,fontHeight:o,padding:u,wireframe:a,zIndexPopupBase:h,borderRadiusLG:Z,marginXS:R,lineType:S,colorSplit:W,paddingSM:V}=C,L=l-o,n=L/2,B=L/2-s,F=u;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:h+30},(0,T.w)(C)),(0,E.wZ)({contentRadius:Z,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:R,titlePadding:a?`${n}px ${F}px ${B}px`:0,titleBorderBottom:a?`${s}px ${S} ${W}`:"none",innerContentPadding:a?`${V}px ${F}px`:0})};y.Z=(0,O.I$)("Popover",C=>{const{colorBgElevated:s,colorText:l}=C,o=(0,I.TS)(C,{popoverBg:s,popoverColor:l});return[j(o),M(o),(0,v._y)(o,"zoom-big")]},A,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})}}]); diff --git a/p__user__register__index.a4115c6a.async.js b/p__user__register__index.a4115c6a.async.js deleted file mode 100644 index dcb06cb6d9..0000000000 --- a/p__user__register__index.a4115c6a.async.js +++ /dev/null @@ -1 +0,0 @@ -"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/profile/advanced/index.html b/profile/advanced/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/profile/advanced/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/profile/basic/index.html b/profile/basic/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/profile/basic/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/profile/index.html b/profile/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/profile/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/result/fail/index.html b/result/fail/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/result/fail/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/result/index.html b/result/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/result/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/result/success/index.html b/result/success/index.html new file mode 100644 index 0000000000..59a32ec0a3 --- /dev/null +++ b/result/success/index.html @@ -0,0 +1,13 @@ + + + + +Ant Design Pro + + + + +
    + + + \ No newline at end of file diff --git a/t__plugin-layout__Layout.05b79e69.async.js b/t__plugin-layout__Layout.05b79e69.async.js new file mode 100644 index 0000000000..5ebb1ac9ed --- /dev/null +++ b/t__plugin-layout__Layout.05b79e69.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6301],{7066:function(ot,M,a){a.r(M),a.d(M,{default:function(){return nt}});var $=a(48305),D=a.n($),z=a(15558),E=a.n(z),W=a(26068),v=a.n(W),H=a(335),P=a.n(H),c=a(29670),b=a(50959),B=a(90102),t=a(11527),O=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"})]})})})})]})},T=O,K=a(75130),k=a(86865),U=function(i){var r,o;return!i.route&&(i.noFound||i.notFound)||((r=i.route)===null||r===void 0?void 0:r.unaccessible)&&(i.unAccessible||i.noAccessible)||(!i.route||((o=i.route)===null||o===void 0?void 0:o.unaccessible))&&(0,t.jsx)(K.ZP,{status:i.route?"403":"404",title:i.route?"403":"404",subTitle:i.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)(k.ZP,{type:"primary",onClick:function(){return c.history.push("/")},children:"\u8FD4\u56DE\u9996\u9875"})})||i.children},V=U,X=a(74629),Y=a(13089),A=a(71503),S=a(68865),J=a(92965),Q=a(63369),L=a(23122);function w(n){var i,r,o,d,g;if(n.runtimeConfig.rightRender)return n.runtimeConfig.rightRender(n.initialState,n.setInitialState,n.runtimeConfig);var f=((i=n.initialState)===null||i===void 0?void 0:i.avatar)||((r=n.initialState)===null||r===void 0?void 0:r.name)||n.runtimeConfig.logout,u=((o=n.initialState)===null||o===void 0?void 0:o.avatar)===!1,m=u?"umi-plugin-layout-name umi-plugin-layout-hide-avatar-img":"umi-plugin-layout-name",p=f?(0,t.jsxs)("span",{className:"umi-plugin-layout-action",children:[u?null:(0,t.jsx)(X.C,{size:"small",className:"umi-plugin-layout-avatar",src:((d=n.initialState)===null||d===void 0?void 0:d.avatar)||"https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png",alt:"avatar"}),(0,t.jsx)("span",{className:m,children:(g=n.initialState)===null||g===void 0?void 0:g.name})]}):null;if(n.loading)return(0,t.jsx)("div",{className:"umi-plugin-layout-right",children:(0,t.jsx)(Y.Z,{size:"small",style:{marginLeft:8,marginRight:8}})});var h={className:"umi-plugin-layout-menu",selectedKeys:[],items:[{key:"logout",label:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Q.Z,{}),"\u9000\u51FA\u767B\u5F55"]}),onClick:function(){var e,j;n==null||(e=n.runtimeConfig)===null||e===void 0||(j=e.logout)===null||j===void 0||j.call(e,n.initialState)}}]},x;return A.Z.startsWith("5.")||A.Z.startsWith("4.24.")?x={menu:h}:A.Z.startsWith("3.")?x={overlay:(0,t.jsx)(S.Z,{children:h.items.map(function(y){return(0,t.jsx)(S.Z.Item,{onClick:y.onClick,children:y.label},y.key)})})}:x={overlay:(0,t.jsx)(S.Z,v()({},h))},(0,t.jsxs)("div",{className:"umi-plugin-layout-right anticon",children:[n.runtimeConfig.logout?(0,t.jsx)(J.Z,v()(v()({},x),{},{overlayClassName:"umi-plugin-layout-container",children:p})):p,(0,t.jsx)(L.pD,{})]})}var G=a(74999),q=a(71636),_=function n(i,r){if(i.length===0)return[];var o=[],d=P()(i),g;try{for(d.s();!(g=d.n()).done;){var f=g.value,u=v()({},f);r(f)?Array.isArray(u.routes)&&o.push.apply(o,E()(n(u.routes,r))):(Array.isArray(u.children)&&(u.children=n(u.children,r),u.routes=u.children),o.push(u))}}catch(m){d.e(m)}finally{d.f()}return o},tt=function n(i){return i.length===0?[]:i.map(function(r){var o=v()({},r);return r.originPath&&(o.path=r.originPath),Array.isArray(r.routes)&&(o.routes=n(r.routes)),Array.isArray(r.children)&&(o.children=n(r.children)),o})},nt=function(n){var i=(0,c.useLocation)(),r=(0,c.useNavigate)(),o=(0,c.useAppData)(),d=o.clientRoutes,g=o.pluginManager,f=G.t&&(0,G.t)("@@initialState")||{initialState:void 0,loading:!1,setInitialState:null},u=f.initialState,m=f.loading,p=f.setInitialState,h={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:{}},x=(0,L.YB)(),y=x.formatMessage,e=g.applyPlugins({key:"layout",type:"modify",initialValue:v()({},f)}),j=_(d.filter(function(s){return s.id==="ant-design-pro-layout"}),function(s){return!!s.isLayout&&s.id!=="ant-design-pro-layout"||!!s.isWrapper}),it=(0,q.Mf)(tt(j)),at=D()(it,1),N=at[0],et=(0,b.useMemo)(function(){var s,l;return(s=(0,c.matchRoutes)(N.children,i.pathname))===null||s===void 0||(l=s.pop)===null||l===void 0||(l=l.call(s))===null||l===void 0?void 0:l.route},[i.pathname]);return(0,t.jsx)(B.f,v()(v()({route:N,location:i,title:h.title||"ant-design-pro",navTheme:"dark",siderWidth:256,onMenuHeaderClick:function(l){l.stopPropagation(),l.preventDefault(),r("/")},formatMessage:h.formatMessage||y,menu:{locale:h.locale},logo:T,menuItemRender:function(l,C){return l.isUrl||l.children?C:l.path&&i.pathname!==l.path?(0,t.jsx)(c.Link,{to:l.path.replace("/*",""),target:l.target,children:C}):C},itemRender:function(l,C,Z){var lt=l.breadcrumbName,rt=l.title,R=l.path,I=rt||lt,F=Z[Z.length-1];return F&&(F.path===R||F.linkPath===R)?(0,t.jsx)("span",{children:I}):(0,t.jsx)(c.Link,{to:R,children:I})},disableContentMargin:!0,fixSiderbar:!0,fixedHeader:!0},e),{},{rightContentRender:e.rightContentRender!==!1&&function(s){var l=w({runtimeConfig:e,loading:m,initialState:u,setInitialState:p});return e.rightContentRender?e.rightContentRender(s,l,{userConfig:h,runtimeConfig:e,loading:m,initialState:u,setInitialState:p}):l},children:(0,t.jsx)(V,{route:et,noFound:e==null?void 0:e.noFound,notFound:e==null?void 0:e.notFound,unAccessible:e==null?void 0:e.unAccessible,noAccessible:e==null?void 0:e.noAccessible,children:e.childrenRender?e.childrenRender((0,t.jsx)(c.Outlet,{}),n):(0,t.jsx)(c.Outlet,{})})}))}}}]); diff --git a/t__plugin-layout__Layout.8f39539f.chunk.css b/t__plugin-layout__Layout.6cae69f5.chunk.css similarity index 89% rename from t__plugin-layout__Layout.8f39539f.chunk.css rename to t__plugin-layout__Layout.6cae69f5.chunk.css index c59aa17385..576deb2a64 100644 --- a/t__plugin-layout__Layout.8f39539f.chunk.css +++ b/t__plugin-layout__Layout.6cae69f5.chunk.css @@ -1 +1 @@ -@media screen and (max-width: 480px){.umi-plugin-layout-container{width:100%!important}.umi-plugin-layout-container>*{border-radius:0!important}}.umi-plugin-layout-menu .anticon{margin-right:8px}.umi-plugin-layout-menu .ant-dropdown-menu-item{min-width:160px}.umi-plugin-layout-right{display:flex!important;float:right;height:100%;margin-left:auto;overflow:hidden}.umi-plugin-layout-right .umi-plugin-layout-action{display:flex;align-items:center;height:100%;padding:0 12px;cursor:pointer;transition:all .3s}.umi-plugin-layout-right .umi-plugin-layout-action>i{color:#ffffffd9;vertical-align:middle}.umi-plugin-layout-right .umi-plugin-layout-action:hover,.umi-plugin-layout-right .umi-plugin-layout-action.opened{background:rgba(0,0,0,.025)}.umi-plugin-layout-right .umi-plugin-layout-search{padding:0 12px}.umi-plugin-layout-right .umi-plugin-layout-search:hover{background:transparent}.umi-plugin-layout-name{margin-left:8px} +@media screen and (max-width: 480px){.umi-plugin-layout-container{width:100%!important}.umi-plugin-layout-container>*{border-radius:0!important}}.umi-plugin-layout-menu .anticon{margin-right:8px}.umi-plugin-layout-menu .ant-dropdown-menu-item{min-width:160px}.umi-plugin-layout-right{display:flex!important;float:right;height:100%;margin-left:auto;overflow:hidden}.umi-plugin-layout-right .umi-plugin-layout-action{display:flex;align-items:center;height:100%;padding:0 12px;cursor:pointer;transition:all .3s}.umi-plugin-layout-right .umi-plugin-layout-action>i{color:#ffffffd9;vertical-align:middle}.umi-plugin-layout-right .umi-plugin-layout-action:hover,.umi-plugin-layout-right .umi-plugin-layout-action.opened{background:rgba(0,0,0,.025)}.umi-plugin-layout-right .umi-plugin-layout-search{padding:0 12px}.umi-plugin-layout-right .umi-plugin-layout-search:hover{background:transparent}.umi-plugin-layout-name{margin-left:8px}.umi-plugin-layout-name.umi-plugin-layout-hide-avatar-img{margin-left:0} diff --git a/t__plugin-layout__Layout.700a6c97.async.js b/t__plugin-layout__Layout.700a6c97.async.js deleted file mode 100644 index ec5e1546dc..0000000000 --- a/t__plugin-layout__Layout.700a6c97.async.js +++ /dev/null @@ -1 +0,0 @@ -"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/umi.5b7cd6ca.js b/umi.5b7cd6ca.js deleted file mode 100644 index 3e0e00b88a..0000000000 --- a/umi.5b7cd6ca.js +++ /dev/null @@ -1,374 +0,0 @@ -!(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(Tn){var Ln=Rt[Tn];Rt[Tn]!==void 0&&(Gt[Tn]=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 Tn;Gt=(Tn=Gt)===null||Tn===void 0||(Tn=Tn.map)===null||Tn===void 0?void 0:Tn.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(Tn){var Ln=Gt[Tn];return Ln?"".concat(Tn,'="').concat(Ln,'"'):null}).filter(function(Tn){return Tn}).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,Tn,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&&(Tn=Rt.ignore)!==null&&Tn!==void 0&&Tn[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)),Tn=Xn.join("_"),Ln=Q([Tn]),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()},[Tn]);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]})}},[Tn]),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,Tn=ft.override,Ln=Tn===void 0?ot:Tn,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 In=function(dt,ft,Rt){var tn=(0,r.Z)(dt,5),jn=tn[2],Gt=tn[3],Xn=tn[4],Tn=Rt||{},Ln=Tn.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,Tn){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,Tn),Tn);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,Tn):On(Yn(_r," ","")+";",Rt,ft,tr-2,Tn),Tn);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,Tn,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])))&&(Tn[Jr++]=fa);return Ue(Ye,dt,ft,tn===0?bn:Xn,Tn,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,Tn){if(Xn)return Xn;var Ln=Tn.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],Tn=Gt[1];Ur[Xn]=Tn});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,Tn=Gt.trim().split(/\s+/),Ln=Tn[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)(Tn.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,Tn=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(Tn&&Ve()){var fa=Tn.split(","),ja=fa[fa.length-1].trim();Nr="@layer ".concat(ja," {").concat(Nr,"}"),fa.length>1&&(Nr="@layer ".concat(Tn,"{%%%:%}").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,Tn=Ye.order,Ln=Tn===void 0?0:Tn,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],Tn=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),Tn&&Object.keys(Tn).forEach(function(Nr){if(!ft[Nr]){ft[Nr]=!0;var Yr=Ga(Tn[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,Tn=dt.scope,Ln=Tn===void 0?"":Tn,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],Tn=Rt||{},Ln=Tn.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,In),(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 Tn=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[Tn]=Yr),[Nr,Jr]}).filter(La).sort(function(Xn,Tn){var Ln=_slicedToArray(Xn,1),ur=Ln[0],tr=_slicedToArray(Tn,1),ar=tr[0];return ur-ar}).forEach(function(Xn){var Tn=_slicedToArray(Xn,2),Ln=Tn[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 Tn=Xn.split("(").length-1,Ln=Xn.split(")").length-1;jn+=Tn-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),Tn=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=Tn[tr])!==null&&ar!==void 0?ar:Tn[0],Ln)}):jn.length===4?jn.forEach(function(ur,tr){var ar,jr;ft[ur]=vo((ar=(jr=Tn[tr])!==null&&jr!==void 0?jr:Tn[tr-2])!==null&&ar!==void 0?ar:Tn[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,Tn=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,Tn);ar[Nr]=Jr}!unitless[Nr]&&typeof Yr=="number"&&Yr!==0&&(ar[Nr]="".concat(Yr,"px").replace(Ta,Tn));var Fr=Nr.trim();if(Fr.startsWith("@")&&Fr.includes("px")&&Xn){var aa=Nr.replace(Ta,Tn);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,In=N(rt),Ge=(0,r.Z)(In,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,In=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 In&&(In.includes("height")&&Ct?Nt.height=Ct:In.includes("minHeight")&&Ct&&(Nt.minHeight=Ct),In.includes("width")&&Ge?Nt.width=Ge:In.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,In=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,In),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),In=Be.createElement("div");(Oe=we.parentElement)===null||Oe===void 0||Oe.appendChild(In),In.style.left="".concat(we.offsetLeft,"px"),In.style.top="".concat(we.offsetTop,"px"),In.style.position=wt,In.style.height="".concat(we.offsetHeight,"px"),In.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(In);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,In=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,In,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(In)]);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 In(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(In,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=In.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