diff --git a/22.4b25dfec.async.js b/22.4b25dfec.async.js new file mode 100644 index 00000000..26d48c7c --- /dev/null +++ b/22.4b25dfec.async.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_antv_li_website=self.webpackChunk_antv_li_website||[]).push([[22],{44495:function(O0,Ye){var q0=function(){return q0=Object.assign||function(R){for(var d,W=1,X=arguments.length;W=72.004&&U<=137.8347&&R>=.8293&&R<=55.8271}function ce(U,R){var d=-100+2*U+3*R+.2*R*R+.1*U*R+.2*J(u0(U));return d+=(20*P(6*U*x)+20*P(2*U*x))*2/3,d+=(20*P(R*x)+40*P(R/3*x))*2/3,d+=(160*P(R/12*x)+320*P(R*x/30))*2/3,d}function de(U,R){var d=300+U+2*R+.1*U*U+.1*U*R+.1*J(u0(U));return d+=(20*P(6*U*x)+20*P(2*U*x))*2/3,d+=(20*P(U*x)+40*P(U/3*x))*2/3,d+=(150*P(U/12*x)+300*P(U/30*x))*2/3,d}function Ze(U,R){var d=de(U-105,R-35),W=ce(U-105,R-35),X=R/180*x,gA=P(X);gA=1-UA*gA*gA;var BA=J(gA);return d=d*180/($/BA*tA(X)*x),W=W*180/($*(1-UA)/(gA*BA)*x),[d,W]}function s0(U){var R=U[0],d=U[1];if(!j(R,d))return[R,d];var W=Ze(R,d);return[R+W[0],d+W[1]]}function m0(U){var R=U[0],d=U[1];if(!j(R,d))return[R,d];for(var W=[R,d],X=W[0],gA=W[1],BA=s0([X,gA]),HA=BA[0]-R,CA=BA[1]-d;u0(HA)>1e-6||u0(CA)>1e-6;)X-=HA,gA-=CA,BA=s0([X,gA]),HA=BA[0]-R,CA=BA[1]-d;return[X,gA]}var V0=Math.sin,N0=Math.cos,Qe=Math.atan2,me=Math.sqrt,je=Math.PI,$0=je*3e3/180;function M0(U){var R=U[0],d=U[1],W=R-.0065,X=d-.006,gA=me(W*W+X*X)-2e-5*V0(X*$0),BA=Qe(X,W)-3e-6*N0(W*$0),HA=gA*N0(BA),CA=gA*V0(BA);return[HA,CA]}function P0(U){var R=U[0],d=U[1],W=R,X=d,gA=me(W*W+X*X)+2e-5*V0(X*$0),BA=Qe(X,W)+3e-6*N0(W*$0),HA=gA*N0(BA)+.0065,CA=gA*V0(BA)+.006;return[HA,CA]}var Me=180/Math.PI,Pe=Math.PI/180,Ae=6378137,g0=20037508342789244e-9;function LA(U){return[U[0]*Me/Ae,(Math.PI*.5-2*Math.atan(Math.exp(-U[1]/Ae)))*Me]}function l0(U){var R=Math.abs(U[0])<=180?U[0]:U[0]-(U[0]<0?-1:1)*360,d=[Ae*R*Pe,Ae*Math.log(Math.tan(Math.PI*.25+.5*U[1]*Pe))];return d[0]>g0&&(d[0]=g0),d[0]<-g0&&(d[0]=-g0),d[1]>g0&&(d[1]=g0),d[1]<-g0&&(d[1]=-g0),d}var ee=Math.abs,ve=[1289059486e-2,836237787e-2,5591021,348198983e-2,167804312e-2,0],H0=[75,60,45,30,15,0],We=[[1410526172116255e-23,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,173379812e-1],[-7435856389565537e-24,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,1026014486e-2],[-3030883460898826e-23,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,685681737e-2],[-1981981304930552e-23,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,448277706e-2],[309191371068437e-23,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,25551644e-1],[2890871144776878e-24,8983055095805407e-21,-3068298e-14,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],Ie=[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,6477955746671607e-7,-4082003173641316e-6,1077490566351142e-5,-1517187553151559e-5,1205306533862167e-5,-5124939663577472e-6,9133119359512032e-7,67.5],[.00337398766765,111320.7020202162,4481351045890365e-9,-2339375119931662e-8,7968221547186455e-8,-1159649932797253e-7,9723671115602145e-8,-4366194633752821e-8,8477230501135234e-9,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837749470245e-9,992013.7397791013,-122195221711287e-8,1340652697009075e-9,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758690035394e-9,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]];function re(U,R,d){var W=ee(R)/d[9],X=d[0]+d[1]*ee(U),gA=d[2]+d[3]*W+d[4]*Math.pow(W,2)+d[5]*Math.pow(W,3)+d[6]*Math.pow(W,4)+d[7]*Math.pow(W,5)+d[8]*Math.pow(W,6);return X*=U<0?-1:1,gA*=R<0?-1:1,[X,gA]}function qA(U){for(var R=U[0],d=U[1],W=[],X=0;XH0[X]){W=Ie[X];break}return re(R,d,W)}function K(U){for(var R=U[0],d=U[1],W=[],X=0;X=ve[X]){W=We[X];break}return re(R,d,W)}function N(U,R){if(!U)throw new Error(R)}function a0(U){return!!U&&Object.prototype.toString.call(U)==="[object Array]"}function z0(U){return!isNaN(Number(U))&&U!==null&&!a0(U)}function QA(){for(var U=[],R=0;R=2,"Invalid input coordinate: "+U),N(z0(U[0])&&z0(U[1]),"Invalid input coordinate: "+U),U=U.map(Number),BA=!0);var HA=X;return BA?HA(U):(we(U,function(CA){var A0;A0=HA(CA),CA[0]=A0[0],CA[1]=A0[1]}),U)}var y0=q0(q0({},IA),{CRSTypes:IA,transform:Ke});Ye.Z=y0},3305:function(O0,Ye,q0){q0.d(Ye,{BT:function(){return Je},jf:function(){return Nr},rS:function(){return Vr}});var P=function(E){E=E||{};var v=typeof E!="undefined"?E:{},C={},y;for(y in v)v.hasOwnProperty(y)&&(C[y]=v[y]);var F=[],L="";function eA(m){return v.locateFile?v.locateFile(m,L):L+m}var rA;typeof document!="undefined"&&document.currentScript&&(L=document.currentScript.src),L.indexOf("blob:")!==0?L=L.substr(0,L.lastIndexOf("/")+1):L="",rA=function(T,z,q){var r=new XMLHttpRequest;r.open("GET",T,!0),r.responseType="arraybuffer",r.onload=function(){if(r.status==200||r.status==0&&r.response){z(r.response);return}var aA=t2(T);if(aA){z(aA.buffer);return}q()},r.onerror=q,r.send(null)};var mA=v.print||console.log.bind(console),r0=v.printErr||console.warn.bind(console);for(y in C)C.hasOwnProperty(y)&&(v[y]=C[y]);C=null,v.arguments&&(F=v.arguments);var D0=0,ie=function(m){D0=m},Ge=function(){return D0},qe=8;function Yr(m,T,z,q){switch(z=z||"i8",z.charAt(z.length-1)==="*"&&(z="i32"),z){case"i1":L0[m>>0]=T;break;case"i8":L0[m>>0]=T;break;case"i16":$e[m>>1]=T;break;case"i32":T0[m>>2]=T;break;case"i64":n2=[T>>>0,(le=T,+oi(le)>=1?le>0?(gi(+si(le/4294967296),4294967295)|0)>>>0:~~+ui((le-+(~~le>>>0))/4294967296)>>>0:0)],T0[m>>2]=n2[0],T0[m+4>>2]=n2[1];break;case"float":A2[m>>2]=T;break;case"double":e2[m>>3]=T;break;default:d0("invalid type for setValue: "+z)}}function cr(m,T,z){switch(T=T||"i8",T.charAt(T.length-1)==="*"&&(T="i32"),T){case"i1":return L0[m>>0];case"i8":return L0[m>>0];case"i16":return $e[m>>1];case"i32":return T0[m>>2];case"i64":return T0[m>>2];case"float":return A2[m>>2];case"double":return e2[m>>3];default:d0("invalid type for getValue: "+T)}return null}var p2=!1;function dr(m,T){m||d0("Assertion failed: "+T)}function G2(m){var T=v["_"+m];return dr(T,"Cannot call unknown function "+m+", make sure it is exported"),T}function Zr(m,T,z,q,r){var MA={string:function(OA){var _A=0;if(OA!=null&&OA!==0){var kA=(OA.length<<2)+1;_A=c2(kA),Kr(OA,_A,kA)}return _A},array:function(OA){var _A=c2(OA.length);return Jr(OA,_A),_A}};function aA(OA){return T==="string"?Le(OA):T==="boolean"?!!OA:OA}var h=G2(m),RA=[],JA=0;if(q)for(var SA=0;SA=q);)++r;if(r-T>16&&m.subarray&&L2)return L2.decode(m.subarray(T,r));for(var MA="";T>10,56320|JA&1023)}}return MA}function Le(m,T){return m?Wr(te,m,T):""}function xr(m,T,z,q){if(!(q>0))return 0;for(var r=z,MA=z+q-1,aA=0;aA=55296&&h<=57343){var RA=m.charCodeAt(++aA);h=65536+((h&1023)<<10)|RA&1023}if(h<=127){if(z>=MA)break;T[z++]=h}else if(h<=2047){if(z+1>=MA)break;T[z++]=192|h>>6,T[z++]=128|h&63}else if(h<=65535){if(z+2>=MA)break;T[z++]=224|h>>12,T[z++]=128|h>>6&63,T[z++]=128|h&63}else{if(z+3>=MA)break;T[z++]=240|h>>18,T[z++]=128|h>>12&63,T[z++]=128|h>>6&63,T[z++]=128|h&63}}return T[z]=0,z-r}function Kr(m,T,z){return xr(m,te,T,z)}var gt=typeof TextDecoder!="undefined"?new TextDecoder("utf-16le"):void 0;function Jr(m,T){L0.set(m,T)}function T2(m,T){return m%T>0&&(m+=T-m%T),m}var ne,L0,te,$e,Xr,T0,qr,A2,e2;function F2(m){ne=m,v.HEAP8=L0=new Int8Array(m),v.HEAP16=$e=new Int16Array(m),v.HEAP32=T0=new Int32Array(m),v.HEAPU8=te=new Uint8Array(m),v.HEAPU16=Xr=new Uint16Array(m),v.HEAPU32=qr=new Uint32Array(m),v.HEAPF32=A2=new Float32Array(m),v.HEAPF64=e2=new Float64Array(m)}var $r=5267040,U2=24128,R2=v.TOTAL_MEMORY||33554432;v.buffer?ne=v.buffer:ne=new ArrayBuffer(R2),R2=ne.byteLength,F2(ne),T0[U2>>2]=$r;function Te(m){for(;m.length>0;){var T=m.shift();if(typeof T=="function"){T();continue}var z=T.func;typeof z=="number"?T.arg===void 0?v.dynCall_v(z):v.dynCall_vi(z,T.arg):z(T.arg===void 0?null:T.arg)}}var S2=[],Ai=[],ei=[],O2=[];function ri(){if(v.preRun)for(typeof v.preRun=="function"&&(v.preRun=[v.preRun]);v.preRun.length;)li(v.preRun.shift());Te(S2)}function ii(){Te(Ai)}function ni(){Te(ei)}function ti(){if(v.postRun)for(typeof v.postRun=="function"&&(v.postRun=[v.postRun]);v.postRun.length;)fi(v.postRun.shift());Te(O2)}function li(m){S2.unshift(m)}function fi(m){O2.unshift(m)}var oi=Math.abs,ui=Math.ceil,si=Math.floor,gi=Math.min,c0=0,r2=null,Be=null;function vi(m){c0++,v.monitorRunDependencies&&v.monitorRunDependencies(c0)}function wi(m){if(c0--,v.monitorRunDependencies&&v.monitorRunDependencies(c0),c0==0&&(r2!==null&&(clearInterval(r2),r2=null),Be)){var T=Be;Be=null,T()}}v.preloadedImages={},v.preloadedAudios={};var C0=null,i2="data:application/octet-stream;base64,";function V2(m){return String.prototype.startsWith?m.startsWith(i2):m.indexOf(i2)===0}var le,n2;C0="data:application/octet-stream;base64,AAAAAAAAAAAAAAAAAQAAAAIAAAADAAAABAAAAAUAAAAGAAAAAQAAAAQAAAADAAAABgAAAAUAAAACAAAAAAAAAAIAAAADAAAAAQAAAAQAAAAGAAAAAAAAAAUAAAADAAAABgAAAAQAAAAFAAAAAAAAAAEAAAACAAAABAAAAAUAAAAGAAAAAAAAAAIAAAADAAAAAQAAAAUAAAACAAAAAAAAAAEAAAADAAAABgAAAAQAAAAGAAAAAAAAAAUAAAACAAAAAQAAAAQAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAIAAAADAAAAAAAAAAAAAAACAAAAAAAAAAEAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAYAAAAAAAAABQAAAAAAAAAAAAAABAAAAAUAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAYAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAgAAAAMAAAAEAAAABQAAAAYAAAABAAAAAgAAAAMAAAAEAAAABQAAAAYAAAAAAAAAAgAAAAMAAAAEAAAABQAAAAYAAAAAAAAAAQAAAAMAAAAEAAAABQAAAAYAAAAAAAAAAQAAAAIAAAAEAAAABQAAAAYAAAAAAAAAAQAAAAIAAAADAAAABQAAAAYAAAAAAAAAAQAAAAIAAAADAAAABAAAAAYAAAAAAAAAAQAAAAIAAAADAAAABAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAgAAAAIAAAAAAAAAAAAAAAYAAAAAAAAAAwAAAAIAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAFAAAABAAAAAAAAAABAAAAAAAAAAAAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAYAAAAAAAAABAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAgAAAAQAAAADAAAACAAAAAEAAAAHAAAABgAAAAkAAAAAAAAAAwAAAAIAAAACAAAABgAAAAoAAAALAAAAAAAAAAEAAAAFAAAAAwAAAA0AAAABAAAABwAAAAQAAAAMAAAAAAAAAAQAAAB/AAAADwAAAAgAAAADAAAAAAAAAAwAAAAFAAAAAgAAABIAAAAKAAAACAAAAAAAAAAQAAAABgAAAA4AAAALAAAAEQAAAAEAAAAJAAAAAgAAAAcAAAAVAAAACQAAABMAAAADAAAADQAAAAEAAAAIAAAABQAAABYAAAAQAAAABAAAAAAAAAAPAAAACQAAABMAAAAOAAAAFAAAAAEAAAAHAAAABgAAAAoAAAALAAAAGAAAABcAAAAFAAAAAgAAABIAAAALAAAAEQAAABcAAAAZAAAAAgAAAAYAAAAKAAAADAAAABwAAAANAAAAGgAAAAQAAAAPAAAAAwAAAA0AAAAaAAAAFQAAAB0AAAADAAAADAAAAAcAAAAOAAAAfwAAABEAAAAbAAAACQAAABQAAAAGAAAADwAAABYAAAAcAAAAHwAAAAQAAAAIAAAADAAAABAAAAASAAAAIQAAAB4AAAAIAAAABQAAABYAAAARAAAACwAAAA4AAAAGAAAAIwAAABkAAAAbAAAAEgAAABgAAAAeAAAAIAAAAAUAAAAKAAAAEAAAABMAAAAiAAAAFAAAACQAAAAHAAAAFQAAAAkAAAAUAAAADgAAABMAAAAJAAAAKAAAABsAAAAkAAAAFQAAACYAAAATAAAAIgAAAA0AAAAdAAAABwAAABYAAAAQAAAAKQAAACEAAAAPAAAACAAAAB8AAAAXAAAAGAAAAAsAAAAKAAAAJwAAACUAAAAZAAAAGAAAAH8AAAAgAAAAJQAAAAoAAAAXAAAAEgAAABkAAAAXAAAAEQAAAAsAAAAtAAAAJwAAACMAAAAaAAAAKgAAAB0AAAArAAAADAAAABwAAAANAAAAGwAAACgAAAAjAAAALgAAAA4AAAAUAAAAEQAAABwAAAAfAAAAKgAAACwAAAAMAAAADwAAABoAAAAdAAAAKwAAACYAAAAvAAAADQAAABoAAAAVAAAAHgAAACAAAAAwAAAAMgAAABAAAAASAAAAIQAAAB8AAAApAAAALAAAADUAAAAPAAAAFgAAABwAAAAgAAAAHgAAABgAAAASAAAANAAAADIAAAAlAAAAIQAAAB4AAAAxAAAAMAAAABYAAAAQAAAAKQAAACIAAAATAAAAJgAAABUAAAA2AAAAJAAAADMAAAAjAAAALgAAAC0AAAA4AAAAEQAAABsAAAAZAAAAJAAAABQAAAAiAAAAEwAAADcAAAAoAAAANgAAACUAAAAnAAAANAAAADkAAAAYAAAAFwAAACAAAAAmAAAAfwAAACIAAAAzAAAAHQAAAC8AAAAVAAAAJwAAACUAAAAZAAAAFwAAADsAAAA5AAAALQAAACgAAAAbAAAAJAAAABQAAAA8AAAALgAAADcAAAApAAAAMQAAADUAAAA9AAAAFgAAACEAAAAfAAAAKgAAADoAAAArAAAAPgAAABwAAAAsAAAAGgAAACsAAAA+AAAALwAAAEAAAAAaAAAAKgAAAB0AAAAsAAAANQAAADoAAABBAAAAHAAAAB8AAAAqAAAALQAAACcAAAAjAAAAGQAAAD8AAAA7AAAAOAAAAC4AAAA8AAAAOAAAAEQAAAAbAAAAKAAAACMAAAAvAAAAJgAAACsAAAAdAAAARQAAADMAAABAAAAAMAAAADEAAAAeAAAAIQAAAEMAAABCAAAAMgAAADEAAAB/AAAAPQAAAEIAAAAhAAAAMAAAACkAAAAyAAAAMAAAACAAAAAeAAAARgAAAEMAAAA0AAAAMwAAAEUAAAA2AAAARwAAACYAAAAvAAAAIgAAADQAAAA5AAAARgAAAEoAAAAgAAAAJQAAADIAAAA1AAAAPQAAAEEAAABLAAAAHwAAACkAAAAsAAAANgAAAEcAAAA3AAAASQAAACIAAAAzAAAAJAAAADcAAAAoAAAANgAAACQAAABIAAAAPAAAAEkAAAA4AAAARAAAAD8AAABNAAAAIwAAAC4AAAAtAAAAOQAAADsAAABKAAAATgAAACUAAAAnAAAANAAAADoAAAB/AAAAPgAAAEwAAAAsAAAAQQAAACoAAAA7AAAAPwAAAE4AAABPAAAAJwAAAC0AAAA5AAAAPAAAAEgAAABEAAAAUAAAACgAAAA3AAAALgAAAD0AAAA1AAAAMQAAACkAAABRAAAASwAAAEIAAAA+AAAAKwAAADoAAAAqAAAAUgAAAEAAAABMAAAAPwAAAH8AAAA4AAAALQAAAE8AAAA7AAAATQAAAEAAAAAvAAAAPgAAACsAAABUAAAARQAAAFIAAABBAAAAOgAAADUAAAAsAAAAVgAAAEwAAABLAAAAQgAAAEMAAABRAAAAVQAAADEAAAAwAAAAPQAAAEMAAABCAAAAMgAAADAAAABXAAAAVQAAAEYAAABEAAAAOAAAADwAAAAuAAAAWgAAAE0AAABQAAAARQAAADMAAABAAAAALwAAAFkAAABHAAAAVAAAAEYAAABDAAAANAAAADIAAABTAAAAVwAAAEoAAABHAAAAWQAAAEkAAABbAAAAMwAAAEUAAAA2AAAASAAAAH8AAABJAAAANwAAAFAAAAA8AAAAWAAAAEkAAABbAAAASAAAAFgAAAA2AAAARwAAADcAAABKAAAATgAAAFMAAABcAAAANAAAADkAAABGAAAASwAAAEEAAAA9AAAANQAAAF4AAABWAAAAUQAAAEwAAABWAAAAUgAAAGAAAAA6AAAAQQAAAD4AAABNAAAAPwAAAEQAAAA4AAAAXQAAAE8AAABaAAAATgAAAEoAAAA7AAAAOQAAAF8AAABcAAAATwAAAE8AAABOAAAAPwAAADsAAABdAAAAXwAAAE0AAABQAAAARAAAAEgAAAA8AAAAYwAAAFoAAABYAAAAUQAAAFUAAABeAAAAZQAAAD0AAABCAAAASwAAAFIAAABgAAAAVAAAAGIAAAA+AAAATAAAAEAAAABTAAAAfwAAAEoAAABGAAAAZAAAAFcAAABcAAAAVAAAAEUAAABSAAAAQAAAAGEAAABZAAAAYgAAAFUAAABXAAAAZQAAAGYAAABCAAAAQwAAAFEAAABWAAAATAAAAEsAAABBAAAAaAAAAGAAAABeAAAAVwAAAFMAAABmAAAAZAAAAEMAAABGAAAAVQAAAFgAAABIAAAAWwAAAEkAAABjAAAAUAAAAGkAAABZAAAAYQAAAFsAAABnAAAARQAAAFQAAABHAAAAWgAAAE0AAABQAAAARAAAAGoAAABdAAAAYwAAAFsAAABJAAAAWQAAAEcAAABpAAAAWAAAAGcAAABcAAAAUwAAAE4AAABKAAAAbAAAAGQAAABfAAAAXQAAAE8AAABaAAAATQAAAG0AAABfAAAAagAAAF4AAABWAAAAUQAAAEsAAABrAAAAaAAAAGUAAABfAAAAXAAAAE8AAABOAAAAbQAAAGwAAABdAAAAYAAAAGgAAABiAAAAbgAAAEwAAABWAAAAUgAAAGEAAAB/AAAAYgAAAFQAAABnAAAAWQAAAG8AAABiAAAAbgAAAGEAAABvAAAAUgAAAGAAAABUAAAAYwAAAFAAAABpAAAAWAAAAGoAAABaAAAAcQAAAGQAAABmAAAAUwAAAFcAAABsAAAAcgAAAFwAAABlAAAAZgAAAGsAAABwAAAAUQAAAFUAAABeAAAAZgAAAGUAAABXAAAAVQAAAHIAAABwAAAAZAAAAGcAAABbAAAAYQAAAFkAAAB0AAAAaQAAAG8AAABoAAAAawAAAG4AAABzAAAAVgAAAF4AAABgAAAAaQAAAFgAAABnAAAAWwAAAHEAAABjAAAAdAAAAGoAAABdAAAAYwAAAFoAAAB1AAAAbQAAAHEAAABrAAAAfwAAAGUAAABeAAAAcwAAAGgAAABwAAAAbAAAAGQAAABfAAAAXAAAAHYAAAByAAAAbQAAAG0AAABsAAAAXQAAAF8AAAB1AAAAdgAAAGoAAABuAAAAYgAAAGgAAABgAAAAdwAAAG8AAABzAAAAbwAAAGEAAABuAAAAYgAAAHQAAABnAAAAdwAAAHAAAABrAAAAZgAAAGUAAAB4AAAAcwAAAHIAAABxAAAAYwAAAHQAAABpAAAAdQAAAGoAAAB5AAAAcgAAAHAAAABkAAAAZgAAAHYAAAB4AAAAbAAAAHMAAABuAAAAawAAAGgAAAB4AAAAdwAAAHAAAAB0AAAAZwAAAHcAAABvAAAAcQAAAGkAAAB5AAAAdQAAAH8AAABtAAAAdgAAAHEAAAB5AAAAagAAAHYAAAB4AAAAbAAAAHIAAAB1AAAAeQAAAG0AAAB3AAAAbwAAAHMAAABuAAAAeQAAAHQAAAB4AAAAeAAAAHMAAAByAAAAcAAAAHkAAAB3AAAAdgAAAHkAAAB0AAAAeAAAAHcAAAB1AAAAcQAAAHYAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAABAAAABQAAAAEAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAACAAAABQAAAAEAAAAAAAAA/////wEAAAAAAAAAAwAAAAQAAAACAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAMAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAFAAAAAQAAAAAAAAAAAAAAAQAAAAMAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAADAAAAAAAAAAAAAAABAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAADAAAABQAAAAEAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAABAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAEAAAABQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAFAAAABQAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAD/////AwAAAAAAAAAFAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAAAAAAAQAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAQAAAAMAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAADAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAFAAAABQAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAwAAAAAAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAwAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAMAAAADAAAAAwAAAAMAAAAAAAAAAwAAAAAAAAD/////AwAAAAAAAAAFAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAAAAAAMAAAADAAAAAwAAAAAAAAADAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAD/////AwAAAAAAAAAFAAAAAgAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAADAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAFAAAAAAAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAADAAAAAQAAAAAAAAABAAAAAAAAAAAAAAABAAAAAwAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAADAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAAAAAADAAAAAwAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAUAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAFAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAA/////wMAAAAAAAAABQAAAAIAAAAAAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAAFAAAAAAAAAAAAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAEAAAADAAAAAQAAAAAAAAABAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAADAAAAAQAAAAAAAAABAAAAAAAAAAMAAAADAAAAAwAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAAAAAAAAwAAAAUAAAABAAAAAAAAAP////8DAAAAAAAAAAUAAAACAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAABAAAAAUAAAABAAAAAAAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAIAAAAFAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAADAAAAAQAAAAAAAAABAAAAAAAAAAUAAAAAAAAAAAAAAAUAAAAFAAAAAAAAAAAAAAD/////AQAAAAAAAAADAAAABAAAAAIAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAUAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAFAAAAAAAAAAAAAAAFAAAABQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAUAAAABAAAAAAAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAEAAAD//////////wEAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAADAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAsAAAACAAAAAAAAAAAAAAABAAAAAgAAAAYAAAAEAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAKAAAAAgAAAAAAAAAAAAAAAQAAAAEAAAAFAAAABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAABwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAsAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAACAAAAAAAAAAAAAAABAAAAAwAAAAcAAAAGAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAABwAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAADgAAAAIAAAAAAAAAAAAAAAEAAAAAAAAACQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAMAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAABwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADQAAAAIAAAAAAAAAAAAAAAEAAAAEAAAACAAAAAoAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAALAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAACQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAAgAAAAAAAAAAAAAAAQAAAAsAAAAPAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAOAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAIAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAABQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAgAAAAAAAAAAAAAAAQAAAAwAAAAQAAAADAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAADwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAADQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAACAAAAAAAAAAAAAAABAAAACgAAABMAAAAIAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAEQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEQAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAQAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAACQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAIAAAAAAAAAAAAAAAEAAAANAAAAEQAAAA0AAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAARAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAEwAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAATAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAAEQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAA0AAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkAAAACAAAAAAAAAAAAAAABAAAADgAAABIAAAAPAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAADwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABIAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAASAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAEwAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAABEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEgAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAABIAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAATAAAAAgAAAAAAAAAAAAAAAQAAAP//////////EwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATAAAAAQAAAAAAAAABAAAAAAAAAAAAAAAAAAAAEgAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAASAAAAAAAAABgAAAAAAAAAIQAAAAAAAAAeAAAAAAAAACAAAAADAAAAMQAAAAEAAAAwAAAAAwAAADIAAAADAAAACAAAAAAAAAAFAAAABQAAAAoAAAAFAAAAFgAAAAAAAAAQAAAAAAAAABIAAAAAAAAAKQAAAAEAAAAhAAAAAAAAAB4AAAAAAAAABAAAAAAAAAAAAAAABQAAAAIAAAAFAAAADwAAAAEAAAAIAAAAAAAAAAUAAAAFAAAAHwAAAAEAAAAWAAAAAAAAABAAAAAAAAAAAgAAAAAAAAAGAAAAAAAAAA4AAAAAAAAACgAAAAAAAAALAAAAAAAAABEAAAADAAAAGAAAAAEAAAAXAAAAAwAAABkAAAADAAAAAAAAAAAAAAABAAAABQAAAAkAAAAFAAAABQAAAAAAAAACAAAAAAAAAAYAAAAAAAAAEgAAAAEAAAAKAAAAAAAAAAsAAAAAAAAABAAAAAEAAAADAAAABQAAAAcAAAAFAAAACAAAAAEAAAAAAAAAAAAAAAEAAAAFAAAAEAAAAAEAAAAFAAAAAAAAAAIAAAAAAAAABwAAAAAAAAAVAAAAAAAAACYAAAAAAAAACQAAAAAAAAATAAAAAAAAACIAAAADAAAADgAAAAEAAAAUAAAAAwAAACQAAAADAAAAAwAAAAAAAAANAAAABQAAAB0AAAAFAAAAAQAAAAAAAAAHAAAAAAAAABUAAAAAAAAABgAAAAEAAAAJAAAAAAAAABMAAAAAAAAABAAAAAIAAAAMAAAABQAAABoAAAAFAAAAAAAAAAEAAAADAAAAAAAAAA0AAAAFAAAAAgAAAAEAAAABAAAAAAAAAAcAAAAAAAAAGgAAAAAAAAAqAAAAAAAAADoAAAAAAAAAHQAAAAAAAAArAAAAAAAAAD4AAAADAAAAJgAAAAEAAAAvAAAAAwAAAEAAAAADAAAADAAAAAAAAAAcAAAABQAAACwAAAAFAAAADQAAAAAAAAAaAAAAAAAAACoAAAAAAAAAFQAAAAEAAAAdAAAAAAAAACsAAAAAAAAABAAAAAMAAAAPAAAABQAAAB8AAAAFAAAAAwAAAAEAAAAMAAAAAAAAABwAAAAFAAAABwAAAAEAAAANAAAAAAAAABoAAAAAAAAAHwAAAAAAAAApAAAAAAAAADEAAAAAAAAALAAAAAAAAAA1AAAAAAAAAD0AAAADAAAAOgAAAAEAAABBAAAAAwAAAEsAAAADAAAADwAAAAAAAAAWAAAABQAAACEAAAAFAAAAHAAAAAAAAAAfAAAAAAAAACkAAAAAAAAAKgAAAAEAAAAsAAAAAAAAADUAAAAAAAAABAAAAAQAAAAIAAAABQAAABAAAAAFAAAADAAAAAEAAAAPAAAAAAAAABYAAAAFAAAAGgAAAAEAAAAcAAAAAAAAAB8AAAAAAAAAMgAAAAAAAAAwAAAAAAAAADEAAAADAAAAIAAAAAAAAAAeAAAAAwAAACEAAAADAAAAGAAAAAMAAAASAAAAAwAAABAAAAADAAAARgAAAAAAAABDAAAAAAAAAEIAAAADAAAANAAAAAMAAAAyAAAAAAAAADAAAAAAAAAAJQAAAAMAAAAgAAAAAAAAAB4AAAADAAAAUwAAAAAAAABXAAAAAwAAAFUAAAADAAAASgAAAAMAAABGAAAAAAAAAEMAAAAAAAAAOQAAAAEAAAA0AAAAAwAAADIAAAAAAAAAGQAAAAAAAAAXAAAAAAAAABgAAAADAAAAEQAAAAAAAAALAAAAAwAAAAoAAAADAAAADgAAAAMAAAAGAAAAAwAAAAIAAAADAAAALQAAAAAAAAAnAAAAAAAAACUAAAADAAAAIwAAAAMAAAAZAAAAAAAAABcAAAAAAAAAGwAAAAMAAAARAAAAAAAAAAsAAAADAAAAPwAAAAAAAAA7AAAAAwAAADkAAAADAAAAOAAAAAMAAAAtAAAAAAAAACcAAAAAAAAALgAAAAMAAAAjAAAAAwAAABkAAAAAAAAAJAAAAAAAAAAUAAAAAAAAAA4AAAADAAAAIgAAAAAAAAATAAAAAwAAAAkAAAADAAAAJgAAAAMAAAAVAAAAAwAAAAcAAAADAAAANwAAAAAAAAAoAAAAAAAAABsAAAADAAAANgAAAAMAAAAkAAAAAAAAABQAAAAAAAAAMwAAAAMAAAAiAAAAAAAAABMAAAADAAAASAAAAAAAAAA8AAAAAwAAAC4AAAADAAAASQAAAAMAAAA3AAAAAAAAACgAAAAAAAAARwAAAAMAAAA2AAAAAwAAACQAAAAAAAAAQAAAAAAAAAAvAAAAAAAAACYAAAADAAAAPgAAAAAAAAArAAAAAwAAAB0AAAADAAAAOgAAAAMAAAAqAAAAAwAAABoAAAADAAAAVAAAAAAAAABFAAAAAAAAADMAAAADAAAAUgAAAAMAAABAAAAAAAAAAC8AAAAAAAAATAAAAAMAAAA+AAAAAAAAACsAAAADAAAAYQAAAAAAAABZAAAAAwAAAEcAAAADAAAAYgAAAAMAAABUAAAAAAAAAEUAAAAAAAAAYAAAAAMAAABSAAAAAwAAAEAAAAAAAAAASwAAAAAAAABBAAAAAAAAADoAAAADAAAAPQAAAAAAAAA1AAAAAwAAACwAAAADAAAAMQAAAAMAAAApAAAAAwAAAB8AAAADAAAAXgAAAAAAAABWAAAAAAAAAEwAAAADAAAAUQAAAAMAAABLAAAAAAAAAEEAAAAAAAAAQgAAAAMAAAA9AAAAAAAAADUAAAADAAAAawAAAAAAAABoAAAAAwAAAGAAAAADAAAAZQAAAAMAAABeAAAAAAAAAFYAAAAAAAAAVQAAAAMAAABRAAAAAwAAAEsAAAAAAAAAOQAAAAAAAAA7AAAAAAAAAD8AAAADAAAASgAAAAAAAABOAAAAAwAAAE8AAAADAAAAUwAAAAMAAABcAAAAAwAAAF8AAAADAAAAJQAAAAAAAAAnAAAAAwAAAC0AAAADAAAANAAAAAAAAAA5AAAAAAAAADsAAAAAAAAARgAAAAMAAABKAAAAAAAAAE4AAAADAAAAGAAAAAAAAAAXAAAAAwAAABkAAAADAAAAIAAAAAMAAAAlAAAAAAAAACcAAAADAAAAMgAAAAMAAAA0AAAAAAAAADkAAAAAAAAALgAAAAAAAAA8AAAAAAAAAEgAAAADAAAAOAAAAAAAAABEAAAAAwAAAFAAAAADAAAAPwAAAAMAAABNAAAAAwAAAFoAAAADAAAAGwAAAAAAAAAoAAAAAwAAADcAAAADAAAAIwAAAAAAAAAuAAAAAAAAADwAAAAAAAAALQAAAAMAAAA4AAAAAAAAAEQAAAADAAAADgAAAAAAAAAUAAAAAwAAACQAAAADAAAAEQAAAAMAAAAbAAAAAAAAACgAAAADAAAAGQAAAAMAAAAjAAAAAAAAAC4AAAAAAAAARwAAAAAAAABZAAAAAAAAAGEAAAADAAAASQAAAAAAAABbAAAAAwAAAGcAAAADAAAASAAAAAMAAABYAAAAAwAAAGkAAAADAAAAMwAAAAAAAABFAAAAAwAAAFQAAAADAAAANgAAAAAAAABHAAAAAAAAAFkAAAAAAAAANwAAAAMAAABJAAAAAAAAAFsAAAADAAAAJgAAAAAAAAAvAAAAAwAAAEAAAAADAAAAIgAAAAMAAAAzAAAAAAAAAEUAAAADAAAAJAAAAAMAAAA2AAAAAAAAAEcAAAAAAAAAYAAAAAAAAABoAAAAAAAAAGsAAAADAAAAYgAAAAAAAABuAAAAAwAAAHMAAAADAAAAYQAAAAMAAABvAAAAAwAAAHcAAAADAAAATAAAAAAAAABWAAAAAwAAAF4AAAADAAAAUgAAAAAAAABgAAAAAAAAAGgAAAAAAAAAVAAAAAMAAABiAAAAAAAAAG4AAAADAAAAOgAAAAAAAABBAAAAAwAAAEsAAAADAAAAPgAAAAMAAABMAAAAAAAAAFYAAAADAAAAQAAAAAMAAABSAAAAAAAAAGAAAAAAAAAAVQAAAAAAAABXAAAAAAAAAFMAAAADAAAAZQAAAAAAAABmAAAAAwAAAGQAAAADAAAAawAAAAMAAABwAAAAAwAAAHIAAAADAAAAQgAAAAAAAABDAAAAAwAAAEYAAAADAAAAUQAAAAAAAABVAAAAAAAAAFcAAAAAAAAAXgAAAAMAAABlAAAAAAAAAGYAAAADAAAAMQAAAAAAAAAwAAAAAwAAADIAAAADAAAAPQAAAAMAAABCAAAAAAAAAEMAAAADAAAASwAAAAMAAABRAAAAAAAAAFUAAAAAAAAAXwAAAAAAAABcAAAAAAAAAFMAAAAAAAAATwAAAAAAAABOAAAAAAAAAEoAAAADAAAAPwAAAAEAAAA7AAAAAwAAADkAAAADAAAAbQAAAAAAAABsAAAAAAAAAGQAAAAFAAAAXQAAAAEAAABfAAAAAAAAAFwAAAAAAAAATQAAAAEAAABPAAAAAAAAAE4AAAAAAAAAdQAAAAQAAAB2AAAABQAAAHIAAAAFAAAAagAAAAEAAABtAAAAAAAAAGwAAAAAAAAAWgAAAAEAAABdAAAAAQAAAF8AAAAAAAAAWgAAAAAAAABNAAAAAAAAAD8AAAAAAAAAUAAAAAAAAABEAAAAAAAAADgAAAADAAAASAAAAAEAAAA8AAAAAwAAAC4AAAADAAAAagAAAAAAAABdAAAAAAAAAE8AAAAFAAAAYwAAAAEAAABaAAAAAAAAAE0AAAAAAAAAWAAAAAEAAABQAAAAAAAAAEQAAAAAAAAAdQAAAAMAAABtAAAABQAAAF8AAAAFAAAAcQAAAAEAAABqAAAAAAAAAF0AAAAAAAAAaQAAAAEAAABjAAAAAQAAAFoAAAAAAAAAaQAAAAAAAABYAAAAAAAAAEgAAAAAAAAAZwAAAAAAAABbAAAAAAAAAEkAAAADAAAAYQAAAAEAAABZAAAAAwAAAEcAAAADAAAAcQAAAAAAAABjAAAAAAAAAFAAAAAFAAAAdAAAAAEAAABpAAAAAAAAAFgAAAAAAAAAbwAAAAEAAABnAAAAAAAAAFsAAAAAAAAAdQAAAAIAAABqAAAABQAAAFoAAAAFAAAAeQAAAAEAAABxAAAAAAAAAGMAAAAAAAAAdwAAAAEAAAB0AAAAAQAAAGkAAAAAAAAAdwAAAAAAAABvAAAAAAAAAGEAAAAAAAAAcwAAAAAAAABuAAAAAAAAAGIAAAADAAAAawAAAAEAAABoAAAAAwAAAGAAAAADAAAAeQAAAAAAAAB0AAAAAAAAAGcAAAAFAAAAeAAAAAEAAAB3AAAAAAAAAG8AAAAAAAAAcAAAAAEAAABzAAAAAAAAAG4AAAAAAAAAdQAAAAEAAABxAAAABQAAAGkAAAAFAAAAdgAAAAEAAAB5AAAAAAAAAHQAAAAAAAAAcgAAAAEAAAB4AAAAAQAAAHcAAAAAAAAAcgAAAAAAAABwAAAAAAAAAGsAAAAAAAAAZAAAAAAAAABmAAAAAAAAAGUAAAADAAAAUwAAAAEAAABXAAAAAwAAAFUAAAADAAAAdgAAAAAAAAB4AAAAAAAAAHMAAAAFAAAAbAAAAAEAAAByAAAAAAAAAHAAAAAAAAAAXAAAAAEAAABkAAAAAAAAAGYAAAAAAAAAdQAAAAAAAAB5AAAABQAAAHcAAAAFAAAAbQAAAAEAAAB2AAAAAAAAAHgAAAAAAAAAXwAAAAEAAABsAAAAAQAAAHIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAABAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAABAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAGAAAAAgAAAAUAAAABAAAABAAAAAAAAAAAAAAABQAAAAMAAAABAAAABgAAAAQAAAACAAAAAAAAAH6iBfbytuk/Gq6akm/58z/Xrm0Liez0P5doSdOpSwRAWs602ULg8D/dT7Rcbo/1v1N1RQHFNOM/g9Snx7HW3L8HWsP8Q3jfP6VwOLosutk/9rjk1YQcxj+gnmKMsNn6P/HDeuPFY+M/YHwDjqKhB0Ci19/fCVrbP4UxKkDWOP6/pvljWa09tL9wi7wrQXjnv/Z6yLImkM2/3yTlOzY14D+m+WNZrT20PzwKVQnrQwNA9nrIsiaQzT/g40rFrRQFwPa45NWEHMa/kbslHEZq97/xw3rjxWPjv4cLC2SMBci/otff3wla27+rKF5oIAv0P1N1RQHFNOO/iDJPGyWHBUAHWsP8Q3jfvwQf/by16gXAfqIF9vK26b8XrO0Vh0r+v9eubQuJ7PS/BxLrA0ZZ479azrTZQuDwv1MK1EuItPw/yscgV9Z6FkAwHBR2WjQMQJNRzXsQ5vY/GlUHVJYKF0DONuFv2lMNQNCGZ28QJfk/0WUwoIL36D8ggDOMQuATQNqMOeAy/wZAWFYOYM+M2z/LWC4uH3oSQDE+LyTsMgRAkJzhRGWFGEDd4soovCQQQKqk0DJMEP8/rGmNdwOLBUAW2X/9xCbjP4hu3dcqJhNAzuYItRvdB0CgzW3zJW/sPxotm/Y2TxRAQAk9XmdDDEC1Kx9MKgT3P1M+NctcghZAFVqcLlb0C0Bgzd3sB2b2P77mZDPUWhZAFROHJpUGCEDAfma5CxXtPz1DWq/zYxRAmhYY5824F0DOuQKWSbAOQNCMqrvu3fs/L6DR22K2wT9nAAxPBU8RQGiN6mW43AFAZhu25b633D8c1YgmzowSQNM25BRKWARArGS08/lNxD+LFssHwmMRQLC5aNcxBgJABL9HT0WRF0CjCmJmOGEOQHsuaVzMP/s/TWJCaGGwBUCeu1PAPLzjP9nqN9DZOBNAKE4JcydbCkCGtbd1qjPzP8dgm9U8jhVAtPeKTkVwDkCeCLss5l37P401XMPLmBdAFd29VMVQDUBg0yA55h75Pz6odcYLCRdApBM4rBrkAkDyAVWgQxbRP4XDMnK20hFAymLlF7EmzD8GUgo9XBHlP3lbK7T9COc/k+OhPthhy7+YGEpnrOvCPzBFhLs15u4/epbqB6H4uz9IuuLF5svev6lzLKY31es/CaQ0envF5z8ZY0xlUADXv7zaz7HYEuI/CfbK1sn16T8uAQfWwxLWPzKn/YuFN94/5KdbC1AFu793fyCSnlfvPzK2y4doAMY/NRg5t1/X6b/shq4QJaHDP5yNIAKPOeI/vpn7BSE30r/X4YQrO6nrv78Ziv/Thto/DqJ1Y6+y5z9l51NaxFrlv8QlA65HOLS/86dxiEc96z+Hj0+LFjneP6LzBZ8LTc2/DaJ1Y6+y579l51NaxFrlP8QlA65HOLQ/8qdxiEc967+Jj0+LFjnev6LzBZ8LTc0/1qdbC1AFuz93fyCSnlfvvzK2y4doAMa/NRg5t1/X6T/vhq4QJaHDv5yNIAKPOeK/wJn7BSE30j/W4YQrO6nrP78Ziv/Thtq/CaQ0envF578XY0xlUADXP7zaz7HYEuK/CvbK1sn16b8rAQfWwxLWvzKn/YuFN96/zWLlF7EmzL8GUgo9XBHlv3lbK7T9COe/kOOhPthhyz+cGEpnrOvCvzBFhLs15u6/c5bqB6H4u79IuuLF5sveP6lzLKY31eu/AQAAAP////8HAAAA/////zEAAAD/////VwEAAP////9hCQAA/////6dBAAD/////kcsBAP/////3kAwA/////8H2VwAAAAAAAAAAAAAAAAACAAAA/////w4AAAD/////YgAAAP////+uAgAA/////8ISAAD/////ToMAAP////8ilwMA/////+4hGQD/////gu2vAAAAAAAAAAAAAAAAAAAAAAACAAAA//////////8BAAAAAwAAAP//////////////////////////////////////////////////////////////////////////AQAAAAAAAAACAAAA////////////////AwAAAP//////////////////////////////////////////////////////////////////////////AQAAAAAAAAACAAAA////////////////AwAAAP//////////////////////////////////////////////////////////////////////////AQAAAAAAAAACAAAA////////////////AwAAAP//////////////////////////////////////////////////////////AgAAAP//////////AQAAAAAAAAD/////////////////////AwAAAP////////////////////////////////////////////////////8DAAAA/////////////////////wAAAAD/////////////////////AQAAAP///////////////wIAAAD///////////////////////////////8DAAAA/////////////////////wAAAAD///////////////8CAAAAAQAAAP////////////////////////////////////////////////////8DAAAA/////////////////////wAAAAD///////////////8CAAAAAQAAAP////////////////////////////////////////////////////8DAAAA/////////////////////wAAAAD///////////////8CAAAAAQAAAP////////////////////////////////////////////////////8DAAAA/////////////////////wAAAAD///////////////8CAAAAAQAAAP////////////////////////////////////////////////////8BAAAAAgAAAP///////////////wAAAAD/////////////////////AwAAAP////////////////////////////////////////////////////8BAAAAAgAAAP///////////////wAAAAD/////////////////////AwAAAP////////////////////////////////////////////////////8BAAAAAgAAAP///////////////wAAAAD/////////////////////AwAAAP////////////////////////////////////////////////////8BAAAAAgAAAP///////////////wAAAAD/////////////////////AwAAAP///////////////////////////////wIAAAD///////////////8BAAAA/////////////////////wAAAAD/////////////////////AwAAAP////////////////////////////////////////////////////8DAAAA/////////////////////wAAAAABAAAA//////////8CAAAA//////////////////////////////////////////////////////////8DAAAA////////////////AgAAAAAAAAABAAAA//////////////////////////////////////////////////////////////////////////8DAAAA////////////////AgAAAAAAAAABAAAA//////////////////////////////////////////////////////////////////////////8DAAAA////////////////AgAAAAAAAAABAAAA//////////////////////////////////////////////////////////////////////////8DAAAAAQAAAP//////////AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAACAAAAAAAAAAIAAAABAAAAAQAAAAIAAAACAAAAAAAAAAUAAAAFAAAAAAAAAAIAAAACAAAAAwAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAgAAAAEAAAACAAAAAgAAAAIAAAAAAAAABQAAAAYAAAAAAAAAAgAAAAIAAAADAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAgAAAAAAAAACAAAAAQAAAAMAAAACAAAAAgAAAAAAAAAFAAAABwAAAAAAAAACAAAAAgAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAACAAAAAAAAAAIAAAABAAAABAAAAAIAAAACAAAAAAAAAAUAAAAIAAAAAAAAAAIAAAACAAAAAwAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAIAAAAAAAAAAgAAAAEAAAAAAAAAAgAAAAIAAAAAAAAABQAAAAkAAAAAAAAAAgAAAAIAAAADAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAgAAAAIAAAAAAAAAAwAAAA4AAAACAAAAAAAAAAIAAAADAAAAAAAAAAAAAAACAAAAAgAAAAMAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAsAAAACAAAAAgAAAAAAAAADAAAACgAAAAIAAAAAAAAAAgAAAAMAAAABAAAAAAAAAAIAAAACAAAAAwAAAAcAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAIAAAACAAAAAAAAAAMAAAALAAAAAgAAAAAAAAACAAAAAwAAAAIAAAAAAAAAAgAAAAIAAAADAAAACAAAAAAAAAAAAAAAAAAAAAAAAAANAAAAAgAAAAIAAAAAAAAAAwAAAAwAAAACAAAAAAAAAAIAAAADAAAAAwAAAAAAAAACAAAAAgAAAAMAAAAJAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAACAAAAAgAAAAAAAAADAAAADQAAAAIAAAAAAAAAAgAAAAMAAAAEAAAAAAAAAAIAAAACAAAAAwAAAAoAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAIAAAACAAAAAAAAAAMAAAAGAAAAAgAAAAAAAAACAAAAAwAAAA8AAAAAAAAAAgAAAAIAAAADAAAACwAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAAgAAAAIAAAAAAAAAAwAAAAcAAAACAAAAAAAAAAIAAAADAAAAEAAAAAAAAAACAAAAAgAAAAMAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAACAAAAAgAAAAAAAAADAAAACAAAAAIAAAAAAAAAAgAAAAMAAAARAAAAAAAAAAIAAAACAAAAAwAAAA0AAAAAAAAAAAAAAAAAAAAAAAAACAAAAAIAAAACAAAAAAAAAAMAAAAJAAAAAgAAAAAAAAACAAAAAwAAABIAAAAAAAAAAgAAAAIAAAADAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAJAAAAAgAAAAIAAAAAAAAAAwAAAAUAAAACAAAAAAAAAAIAAAADAAAAEwAAAAAAAAACAAAAAgAAAAMAAAAPAAAAAAAAAAAAAAAAAAAAAAAAABAAAAACAAAAAAAAAAIAAAABAAAAEwAAAAIAAAACAAAAAAAAAAUAAAAKAAAAAAAAAAIAAAACAAAAAwAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEQAAAAIAAAAAAAAAAgAAAAEAAAAPAAAAAgAAAAIAAAAAAAAABQAAAAsAAAAAAAAAAgAAAAIAAAADAAAAEQAAAAAAAAAAAAAAAAAAAAAAAAASAAAAAgAAAAAAAAACAAAAAQAAABAAAAACAAAAAgAAAAAAAAAFAAAADAAAAAAAAAACAAAAAgAAAAMAAAASAAAAAAAAAAAAAAAAAAAAAAAAABMAAAACAAAAAAAAAAIAAAABAAAAEQAAAAIAAAACAAAAAAAAAAUAAAANAAAAAAAAAAIAAAACAAAAAwAAABMAAAAAAAAAAAAAAAAAAAAAAAAADwAAAAIAAAAAAAAAAgAAAAEAAAASAAAAAgAAAAIAAAAAAAAABQAAAA4AAAAAAAAAAgAAAAIAAAADAAAAAgAAAAEAAAAAAAAAAQAAAAIAAAAAAAAAAAAAAAIAAAABAAAAAAAAAAEAAAACAAAAAQAAAAAAAAACAAAAAAAAAAUAAAAEAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAFAAAABAAAAAAAAAABAAAABQAAAAQAAAAAAAAABQAAAAAAAAACAAAAAQAAAAAAAAABAAAAAgAAAAAAAAAAAAAAAgAAAAEAAAAAAAAAAQAAAAIAAAABAAAAAAAAAAIAAAACAAAAAAAAAAEAAAAAAAAAAAAAAAUAAAAEAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAFAAAABAAAAAAAAAABAAAABQAAAAQAAAAAAAAABQAAAAUAAAAAAAAAAQAAAAAAAAAAAAAAOgehWlKfUEEz1zLi+JsiQa2og3wcMfVAWCbHorc0yEDi+Yn/Y6mbQJ11/mfsnG9At6bnG4UQQkBvMCQWKqUUQJVmwwswmOc/3hVgVBL3uj//qqOEOdGOPw/WDN4gnGE/H3ANkCUgND+AA8btKgAHPwTXBqJVSdo+XfRQAqsKrj4fc+zLYbSPQklEmCZHv2FCUP+uDso1NEKYtPhwphUHQptxnyFXYdpB7CddZAMmrkGAt1AxSTqBQUibBVdTsFNBSuX3MV+AJkFocv82SLf5QAqmgj7AY81A23VDSEnLoEDGEJVSeDFzQDYrqvBk70VA8U157pcRGUBWfEF+ZKbsP7KBdLHZTpFAqKYk69AqekDbeGY41MdjQD8AZzHK501A1vcrrjubNkD5LnquvBYhQCbiRRD71QlAqt72EbOH8z8Eu+jL1YbdP4uaox/xUcY/abedg1XfsD+BsUdzJ4KZP5wE9YFySIM/rW1kAKMpbT+rZFthVRhWPy4PKlXIs0A/qMZLlwDnMEHByqEF0I0ZQQYSFD8lUQNBPpY+dFs07UAH8BZImBPWQN9RY0I0sMBA2T7kLfc6qUByFYvfhBKTQMq+0Mis1XxA0XQbeQXMZUBJJ5aEGXpQQP7/SY0a6ThAaMD92b/UIkAs8s8yqXoMQNIegOvCk/U/aOi7NZJP4D8AAAAA/////wAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////////////////////////////wAAAAD/////AAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAA/////wAAAAAAAAAAAQAAAAEAAAAAAAAAAAAAAP////8AAAAABQAAAAAAAAAAAAAAAAAAAAAAAAD/////BQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAA/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////////////////////////////////////8AAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////AAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAABQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////////////////////////////wAAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAEAAAABAAAAAQAAAAAAAAABAAAAAAAAAAUAAAABAAAAAQAAAAAAAAAAAAAAAQAAAAEAAAAAAAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAEAAQAAAQEAAAAAAAEAAAABAAAAAQABAAAAAAAAAAAAAAAAAAAAAAcAAAAHAAAAAQAAAAIAAAAEAAAAAwAAAAAAAAAAAAAABwAAAAMAAAABAAAAAgAAAAUAAAAEAAAAAAAAAAAAAAAEAAAABAAAAAAAAAACAAAAAQAAAAMAAAAOAAAABgAAAAsAAAACAAAABwAAAAEAAAAYAAAABQAAAAoAAAABAAAABgAAAAAAAAAmAAAABwAAAAwAAAADAAAACAAAAAIAAAAxAAAACQAAAA4AAAAAAAAABQAAAAQAAAA6AAAACAAAAA0AAAAEAAAACQAAAAMAAAA/AAAACwAAAAYAAAAPAAAACgAAABAAAABIAAAADAAAAAcAAAAQAAAACwAAABEAAABTAAAACgAAAAUAAAATAAAADgAAAA8AAABhAAAADQAAAAgAAAARAAAADAAAABIAAABrAAAADgAAAAkAAAASAAAADQAAABMAAAB1AAAADwAAABMAAAARAAAAEgAAABAAAAAGAAAAAgAAAAMAAAAFAAAABAAAAAAAAAAAAAAAAAAAAAYAAAACAAAAAwAAAAEAAAAFAAAABAAAAAAAAAAAAAAABwAAAAUAAAADAAAABAAAAAEAAAAAAAAAAgAAAAAAAAACAAAAAwAAAAEAAAAFAAAABAAAAAYAAAAAAAAAAAAAAGFsZ29zLmMAaDNOZWlnaGJvclJvdGF0aW9ucwBjb29yZGlqay5jAF91cEFwN0NoZWNrZWQAX3VwQXA3ckNoZWNrZWQAZGlyZWN0ZWRFZGdlLmMAZGlyZWN0ZWRFZGdlVG9Cb3VuZGFyeQBhZGphY2VudEZhY2VEaXJbdG1wRmlqay5mYWNlXVtmaWprLmZhY2VdID09IEtJAGZhY2VpamsuYwBfZmFjZUlqa1BlbnRUb0NlbGxCb3VuZGFyeQBhZGphY2VudEZhY2VEaXJbY2VudGVySUpLLmZhY2VdW2ZhY2UyXSA9PSBLSQBfZmFjZUlqa1RvQ2VsbEJvdW5kYXJ5AGgzSW5kZXguYwBjb21wYWN0Q2VsbHMAbGF0TG5nVG9DZWxsAGNlbGxUb0NoaWxkUG9zAHZhbGlkYXRlQ2hpbGRQb3MAbGF0TG5nLmMAY2VsbEFyZWFSYWRzMgBwb2x5Z29uLT5uZXh0ID09IE5VTEwAbGlua2VkR2VvLmMAYWRkTmV3TGlua2VkUG9seWdvbgBuZXh0ICE9IE5VTEwAbG9vcCAhPSBOVUxMAGFkZE5ld0xpbmtlZExvb3AAcG9seWdvbi0+Zmlyc3QgPT0gTlVMTABhZGRMaW5rZWRMb29wAGNvb3JkICE9IE5VTEwAYWRkTGlua2VkQ29vcmQAbG9vcC0+Zmlyc3QgPT0gTlVMTABpbm5lckxvb3BzICE9IE5VTEwAbm9ybWFsaXplTXVsdGlQb2x5Z29uAGJib3hlcyAhPSBOVUxMAGNhbmRpZGF0ZXMgIT0gTlVMTABmaW5kUG9seWdvbkZvckhvbGUAY2FuZGlkYXRlQkJveGVzICE9IE5VTEwAcmV2RGlyICE9IElOVkFMSURfRElHSVQAbG9jYWxpai5jAGNlbGxUb0xvY2FsSWprAGJhc2VDZWxsICE9IG9yaWdpbkJhc2VDZWxsACEob3JpZ2luT25QZW50ICYmIGluZGV4T25QZW50KQBiYXNlQ2VsbCA9PSBvcmlnaW5CYXNlQ2VsbABiYXNlQ2VsbCAhPSBJTlZBTElEX0JBU0VfQ0VMTABsb2NhbElqa1RvQ2VsbAAhX2lzQmFzZUNlbGxQZW50YWdvbihiYXNlQ2VsbCkAYmFzZUNlbGxSb3RhdGlvbnMgPj0gMABncmlkUGF0aENlbGxzADAAdmVydGV4LmMAY2VsbFRvVmVydGV4AGdyYXBoLT5idWNrZXRzICE9IE5VTEwAdmVydGV4R3JhcGguYwBpbml0VmVydGV4R3JhcGgAbm9kZSAhPSBOVUxMAGFkZFZlcnRleE5vZGU=";var hi=24144;function Bi(m){return m}function N2(m){var T=/\b__Z[\w\d_]+/g;return m.replace(T,function(z){var q=z;return z===q?z:q+" ["+z+"]"})}function H2(){var m=new Error;if(!m.stack){try{throw new Error(0)}catch(T){m=T}if(!m.stack)return"(no stack trace available)"}return m.stack.toString()}function _i(){var m=H2();return v.extraStackTrace&&(m+=` +`+v.extraStackTrace()),N2(m)}function ki(m,T,z,q){d0("Assertion failed: "+Le(m)+", at: "+[T?Le(T):"unknown filename",z,q?Le(q):"unknown function"])}function z2(){return L0.length}function ai(m,T,z){te.set(te.subarray(T,T+z),m)}function Ei(m){return v.___errno_location&&(T0[v.___errno_location()>>2]=m),m}function Di(m){d0("OOM")}function Y2(m){try{var T=new ArrayBuffer(m);return T.byteLength!=m?void 0:(new Int8Array(T).set(L0),Pi(T),F2(T),1)}catch(z){}}function Ci(m){var T=z2(),z=16777216,q=2147483648-z;if(m>q)return!1;for(var r=16777216,MA=Math.max(T,r);MA>4,r=(h&15)<<4|RA>>2,MA=(RA&3)<<6|JA,z=z+String.fromCharCode(q),RA!==64&&(z=z+String.fromCharCode(r)),JA!==64&&(z=z+String.fromCharCode(MA));while(SA13780509?(A=m2(15,A)|0,A|0):(i=((e|0)<0)<<31>>31,t=cA(e|0,i|0,3,0)|0,n=_()|0,i=sA(e|0,i|0,1,0)|0,i=cA(t|0,n|0,i|0,_()|0)|0,i=sA(i|0,_()|0,1,0)|0,e=_()|0,r[A>>2]=i,r[A+4>>2]=e,A=0,A|0)}function x2(e,A,i,n){return e=e|0,A=A|0,i=i|0,n=n|0,K2(e,A,i,n,0)|0}function K2(e,A,i,n,t){e=e|0,A=A|0,i=i|0,n=n|0,t=t|0;var l=0,f=0,o=0,u=0,s=0;if(u=w,w=w+16|0,f=u,!(J2(e,A,i,n,t)|0))return n=0,w=u,n|0;do if((i|0)>=0){if((i|0)>13780509){if(l=m2(15,f)|0,l|0)break;o=f,f=r[o>>2]|0,o=r[o+4>>2]|0}else l=((i|0)<0)<<31>>31,s=cA(i|0,l|0,3,0)|0,o=_()|0,l=sA(i|0,l|0,1,0)|0,l=cA(s|0,o|0,l|0,_()|0)|0,l=sA(l|0,_()|0,1,0)|0,o=_()|0,r[f>>2]=l,r[f+4>>2]=o,f=l;if(X0(n|0,0,f<<3|0)|0,t|0){X0(t|0,0,f<<2|0)|0,l=b0(e,A,i,n,t,f,o,0)|0;break}l=k0(f,4)|0,l?(s=b0(e,A,i,n,l,f,o,0)|0,iA(l),l=s):l=13}else l=2;while(!1);return s=l,w=u,s|0}function J2(e,A,i,n,t){e=e|0,A=A|0,i=i|0,n=n|0,t=t|0;var l=0,f=0,o=0,u=0,s=0,g=0,B=0,a=0,D=0,k=0,Q=0;if(Q=w,w=w+16|0,D=Q,k=Q+8|0,a=D,r[a>>2]=e,r[a+4>>2]=A,(i|0)<0)return k=2,w=Q,k|0;if(l=n,r[l>>2]=e,r[l+4>>2]=A,l=(t|0)!=0,l&&(r[t>>2]=0),pA(e,A)|0)return k=9,w=Q,k|0;r[k>>2]=0;A:do if((i|0)>=1)if(l)for(g=1,s=0,B=0,a=1,l=e;;){if(!(s|B)){if(l=VA(l,A,4,k,D)|0,l|0)break A;if(A=D,l=r[A>>2]|0,A=r[A+4>>2]|0,pA(l,A)|0){l=9;break A}}if(l=VA(l,A,r[22384+(B<<2)>>2]|0,k,D)|0,l|0)break A;if(A=D,l=r[A>>2]|0,A=r[A+4>>2]|0,e=n+(g<<3)|0,r[e>>2]=l,r[e+4>>2]=A,r[t+(g<<2)>>2]=a,e=s+1|0,f=(e|0)==(a|0),o=B+1|0,u=(o|0)==6,pA(l,A)|0){l=9;break A}if(a=a+(u&f&1)|0,(a|0)>(i|0)){l=0;break}else g=g+1|0,s=f?0:e,B=f?u?0:o:B}else for(g=1,s=0,B=0,a=1,l=e;;){if(!(s|B)){if(l=VA(l,A,4,k,D)|0,l|0)break A;if(A=D,l=r[A>>2]|0,A=r[A+4>>2]|0,pA(l,A)|0){l=9;break A}}if(l=VA(l,A,r[22384+(B<<2)>>2]|0,k,D)|0,l|0)break A;if(A=D,l=r[A>>2]|0,A=r[A+4>>2]|0,e=n+(g<<3)|0,r[e>>2]=l,r[e+4>>2]=A,e=s+1|0,f=(e|0)==(a|0),o=B+1|0,u=(o|0)==6,pA(l,A)|0){l=9;break A}if(a=a+(u&f&1)|0,(a|0)>(i|0)){l=0;break}else g=g+1|0,s=f?0:e,B=f?u?0:o:B}else l=0;while(!1);return k=l,w=Q,k|0}function b0(e,A,i,n,t,l,f,o){e=e|0,A=A|0,i=i|0,n=n|0,t=t|0,l=l|0,f=f|0,o=o|0;var u=0,s=0,g=0,B=0,a=0,D=0,k=0,Q=0,G=0,p=0;if(Q=w,w=w+16|0,D=Q+8|0,k=Q,u=ge(e|0,A|0,l|0,f|0)|0,g=_()|0,B=n+(u<<3)|0,G=B,p=r[G>>2]|0,G=r[G+4>>2]|0,s=(p|0)==(e|0)&(G|0)==(A|0),!((p|0)==0&(G|0)==0|s))do u=sA(u|0,g|0,1,0)|0,u=Ne(u|0,_()|0,l|0,f|0)|0,g=_()|0,B=n+(u<<3)|0,p=B,G=r[p>>2]|0,p=r[p+4>>2]|0,s=(G|0)==(e|0)&(p|0)==(A|0);while(!((G|0)==0&(p|0)==0|s));if(u=t+(u<<2)|0,s&&(r[u>>2]|0)<=(o|0)||(p=B,r[p>>2]=e,r[p+4>>2]=A,r[u>>2]=o,(o|0)>=(i|0)))return p=0,w=Q,p|0;switch(s=o+1|0,r[D>>2]=0,u=VA(e,A,2,D,k)|0,u|0){case 9:{a=9;break}case 0:{u=k,u=b0(r[u>>2]|0,r[u+4>>2]|0,i,n,t,l,f,s)|0,u||(a=9);break}default:}A:do if((a|0)==9){switch(r[D>>2]=0,u=VA(e,A,3,D,k)|0,u|0){case 9:break;case 0:{if(u=k,u=b0(r[u>>2]|0,r[u+4>>2]|0,i,n,t,l,f,s)|0,u|0)break A;break}default:break A}switch(r[D>>2]=0,u=VA(e,A,1,D,k)|0,u|0){case 9:break;case 0:{if(u=k,u=b0(r[u>>2]|0,r[u+4>>2]|0,i,n,t,l,f,s)|0,u|0)break A;break}default:break A}switch(r[D>>2]=0,u=VA(e,A,5,D,k)|0,u|0){case 9:break;case 0:{if(u=k,u=b0(r[u>>2]|0,r[u+4>>2]|0,i,n,t,l,f,s)|0,u|0)break A;break}default:break A}switch(r[D>>2]=0,u=VA(e,A,4,D,k)|0,u|0){case 9:break;case 0:{if(u=k,u=b0(r[u>>2]|0,r[u+4>>2]|0,i,n,t,l,f,s)|0,u|0)break A;break}default:break A}switch(r[D>>2]=0,u=VA(e,A,6,D,k)|0,u|0){case 9:break;case 0:{if(u=k,u=b0(r[u>>2]|0,r[u+4>>2]|0,i,n,t,l,f,s)|0,u|0)break A;break}default:break A}return p=0,w=Q,p|0}while(!1);return p=u,w=Q,p|0}function VA(e,A,i,n,t){e=e|0,A=A|0,i=i|0,n=n|0,t=t|0;var l=0,f=0,o=0,u=0,s=0,g=0,B=0,a=0,D=0,k=0;if(i>>>0>6)return t=1,t|0;if(B=(r[n>>2]|0)%6|0,r[n>>2]=B,(B|0)>0){l=0;do i=x0(i)|0,l=l+1|0;while((l|0)<(r[n>>2]|0))}if(B=S(e|0,A|0,45)|0,_()|0,g=B&127,g>>>0>121)return t=5,t|0;u=XA(e,A)|0,l=S(e|0,A|0,52)|0,_()|0,l=l&15;A:do if(!l)s=8;else{for(;;){if(f=(15-l|0)*3|0,o=S(e|0,A|0,f|0)|0,_()|0,o=o&7,(o|0)==7){A=5;break}if(k=(n0(l)|0)==0,l=l+-1|0,a=H(7,0,f|0)|0,A=A&~(_()|0),D=H(r[(k?432:16)+(o*28|0)+(i<<2)>>2]|0,0,f|0)|0,f=_()|0,i=r[(k?640:224)+(o*28|0)+(i<<2)>>2]|0,e=D|e&~a,A=f|A,!i){i=0;break A}if(!l){s=8;break A}}return A|0}while(!1);(s|0)==8&&(k=r[848+(g*28|0)+(i<<2)>>2]|0,D=H(k|0,0,45)|0,e=D|e,A=_()|0|A&-1040385,i=r[4272+(g*28|0)+(i<<2)>>2]|0,(k&127|0)==127&&(k=H(r[848+(g*28|0)+20>>2]|0,0,45)|0,A=_()|0|A&-1040385,i=r[4272+(g*28|0)+20>>2]|0,e=K0(k|e,A)|0,A=_()|0,r[n>>2]=(r[n>>2]|0)+1)),o=S(e|0,A|0,45)|0,_()|0,o=o&127;A:do if(yA(o)|0){e:do if((XA(e,A)|0)==1){if((g|0)!=(o|0))if($2(o,r[7696+(g*28|0)>>2]|0)|0){e=C2(e,A)|0,f=1,A=_()|0;break}else AA(23313,22416,436,22424);switch(u|0){case 3:{e=K0(e,A)|0,A=_()|0,r[n>>2]=(r[n>>2]|0)+1,f=0;break e}case 5:{e=C2(e,A)|0,A=_()|0,r[n>>2]=(r[n>>2]|0)+5,f=0;break e}case 0:return k=9,k|0;default:return k=1,k|0}}else f=0;while(!1);if((i|0)>0){l=0;do e=D2(e,A)|0,A=_()|0,l=l+1|0;while((l|0)!=(i|0))}if((g|0)!=(o|0)){if(!(g2(o)|0)){if((f|0)!=0|(XA(e,A)|0)!=5)break;r[n>>2]=(r[n>>2]|0)+1;break}switch(B&127){case 8:case 118:break A;default:}(XA(e,A)|0)!=3&&(r[n>>2]=(r[n>>2]|0)+1)}}else if((i|0)>0){l=0;do e=K0(e,A)|0,A=_()|0,l=l+1|0;while((l|0)!=(i|0))}while(!1);return r[n>>2]=((r[n>>2]|0)+i|0)%6|0,k=t,r[k>>2]=e,r[k+4>>2]=A,k=0,k|0}function s2(e,A,i,n){e=e|0,A=A|0,i=i|0,n=n|0;var t=0,l=0,f=0,o=0,u=0,s=0;for(o=w,w=w+16|0,l=o,f=o+8|0,t=(pA(e,A)|0)==0,t=t?1:2;;){if(r[f>>2]=0,s=(VA(e,A,t,f,l)|0)==0,u=l,s&((r[u>>2]|0)==(i|0)?(r[u+4>>2]|0)==(n|0):0)){e=4;break}if(t=t+1|0,t>>>0>=7){t=7,e=4;break}}return(e|0)==4?(w=o,t|0):0}function Yi(e,A,i,n){e=e|0,A=A|0,i=i|0,n=n|0;var t=0,l=0,f=0,o=0,u=0,s=0,g=0,B=0,a=0,D=0,k=0;if(k=w,w=w+16|0,a=k,D=k+8|0,B=a,r[B>>2]=e,r[B+4>>2]=A,!i)return D=n,r[D>>2]=e,r[D+4>>2]=A,D=0,w=k,D|0;r[D>>2]=0;A:do if(pA(e,A)|0)e=9;else{if(l=(i|0)>0,l){t=0,B=e;do{if(e=VA(B,A,4,D,a)|0,e|0)break A;if(A=a,B=r[A>>2]|0,A=r[A+4>>2]|0,t=t+1|0,pA(B,A)|0){e=9;break A}}while((t|0)<(i|0));if(g=n,r[g>>2]=B,r[g+4>>2]=A,g=i+-1|0,l){s=0,e=1;do{if(t=22384+(s<<2)|0,(s|0)==5)for(f=r[t>>2]|0,l=0,t=e;;){if(e=a,e=VA(r[e>>2]|0,r[e+4>>2]|0,f,D,a)|0,e|0)break A;if((l|0)!=(g|0))if(u=a,o=r[u>>2]|0,u=r[u+4>>2]|0,e=n+(t<<3)|0,r[e>>2]=o,r[e+4>>2]=u,!(pA(o,u)|0))e=t+1|0;else{e=9;break A}else e=t;if(l=l+1|0,(l|0)>=(i|0))break;t=e}else for(f=a,u=r[t>>2]|0,o=0,t=e,l=r[f>>2]|0,f=r[f+4>>2]|0;;){if(e=VA(l,f,u,D,a)|0,e|0)break A;if(f=a,l=r[f>>2]|0,f=r[f+4>>2]|0,e=n+(t<<3)|0,r[e>>2]=l,r[e+4>>2]=f,e=t+1|0,pA(l,f)|0){e=9;break A}if(o=o+1|0,(o|0)>=(i|0))break;t=e}s=s+1|0}while(s>>>0<6);e=a,f=B,t=r[e>>2]|0,l=A,e=r[e+4>>2]|0}else f=B,t=B,l=A,e=A}else f=n,r[f>>2]=e,r[f+4>>2]=A,f=e,t=e,l=A,e=A;e=(f|0)==(t|0)&(l|0)==(e|0)?0:9}while(!1);return D=e,w=k,D|0}function ci(e,A,i,n){e=e|0,A=A|0,i=i|0,n=n|0;var t=0,l=0,f=0,o=0,u=0,s=0;if(o=w,w=w+48|0,t=o+16|0,l=o+8|0,f=o,i|0)return f=15,w=o,f|0;if(s=e,u=r[s+4>>2]|0,i=l,r[i>>2]=r[s>>2],r[i+4>>2]=u,br(l,t),A=rr(t,A,f)|0,!A){if(i=r[l>>2]|0,l=r[e+8>>2]|0,(l|0)>0){t=r[e+12>>2]|0,A=0;do i=(r[t+(A<<3)>>2]|0)+i|0,A=A+1|0;while((A|0)<(l|0))}A=f,t=r[A>>2]|0,A=r[A+4>>2]|0,l=((i|0)<0)<<31>>31,(A|0)<(l|0)|(A|0)==(l|0)&t>>>0>>0?(A=f,r[A>>2]=i,r[A+4>>2]=l,A=l):i=t,u=sA(i|0,A|0,12,0)|0,s=_()|0,A=f,r[A>>2]=u,r[A+4>>2]=s,A=n,r[A>>2]=u,r[A+4>>2]=s,A=0}return s=A,w=o,s|0}function X2(e,A,i,n,t,l,f){e=e|0,A=A|0,i=i|0,n=n|0,t=t|0,l=l|0,f=f|0;var o=0,u=0,s=0,g=0,B=0,a=0,D=0,k=0,Q=0,G=0,p=0,M=0,I=0,b=0,Y=0,Z=0,V=0,c=0,DA=0,vA=0,hA=0,fA=0,lA=0,oA=0,bA=0,nA=0,PA=0,xA=0,Fr=0;if(bA=w,w=w+64|0,hA=bA+48|0,fA=bA+32|0,lA=bA+24|0,Y=bA+8|0,Z=bA,u=r[e>>2]|0,(u|0)<=0)return oA=0,w=bA,oA|0;for(V=e+4|0,c=hA+8|0,DA=fA+8|0,vA=Y+8|0,o=0,I=0;;){s=r[V>>2]|0,M=s+(I<<4)|0,r[hA>>2]=r[M>>2],r[hA+4>>2]=r[M+4>>2],r[hA+8>>2]=r[M+8>>2],r[hA+12>>2]=r[M+12>>2],(I|0)==(u+-1|0)?(r[fA>>2]=r[s>>2],r[fA+4>>2]=r[s+4>>2],r[fA+8>>2]=r[s+8>>2],r[fA+12>>2]=r[s+12>>2]):(M=s+(I+1<<4)|0,r[fA>>2]=r[M>>2],r[fA+4>>2]=r[M+4>>2],r[fA+8>>2]=r[M+8>>2],r[fA+12>>2]=r[M+12>>2]),u=qi(hA,fA,n,lA)|0;A:do if(u)s=0,o=u;else if(s=lA,u=r[s>>2]|0,s=r[s+4>>2]|0,(s|0)>0|(s|0)==0&u>>>0>0){p=0,M=0;e:for(;;){if(Fr=+h[hA>>3],G=YA(u|0,s|0,p|0,M|0)|0,xA=+(G>>>0)+4294967296*+(_()|0),nA=+(u>>>0)+4294967296*+(s|0),PA=+(p>>>0)+4294967296*+(M|0),h[Y>>3]=Fr*xA/nA+ +h[fA>>3]*PA/nA,h[vA>>3]=+h[c>>3]*xA/nA+ +h[DA>>3]*PA/nA,u=wr(Y,n,Z)|0,u|0){o=u;break}G=Z,Q=r[G>>2]|0,G=r[G+4>>2]|0,a=ge(Q|0,G|0,A|0,i|0)|0,g=_()|0,u=f+(a<<3)|0,B=u,s=r[B>>2]|0,B=r[B+4>>2]|0;r:do if((s|0)==0&(B|0)==0)b=u,oA=16;else for(D=0,k=0;;){if((D|0)>(i|0)|(D|0)==(i|0)&k>>>0>A>>>0){o=1;break e}if((s|0)==(Q|0)&(B|0)==(G|0))break r;if(u=sA(a|0,g|0,1,0)|0,a=Ne(u|0,_()|0,A|0,i|0)|0,g=_()|0,k=sA(k|0,D|0,1,0)|0,D=_()|0,u=f+(a<<3)|0,B=u,s=r[B>>2]|0,B=r[B+4>>2]|0,(s|0)==0&(B|0)==0){b=u,oA=16;break}}while(!1);if((oA|0)==16&&(oA=0,!((Q|0)==0&(G|0)==0))&&(k=b,r[k>>2]=Q,r[k+4>>2]=G,k=l+(r[t>>2]<<3)|0,r[k>>2]=Q,r[k+4>>2]=G,k=t,k=sA(r[k>>2]|0,r[k+4>>2]|0,1,0)|0,Q=_()|0,G=t,r[G>>2]=k,r[G+4>>2]=Q),p=sA(p|0,M|0,1,0)|0,M=_()|0,s=lA,u=r[s>>2]|0,s=r[s+4>>2]|0,!((s|0)>(M|0)|(s|0)==(M|0)&u>>>0>p>>>0)){s=1;break A}}s=0}else s=1;while(!1);if(I=I+1|0,!s){oA=21;break}if(u=r[e>>2]|0,(I|0)>=(u|0)){o=0,oA=21;break}}return(oA|0)==21?(w=bA,o|0):0}function di(e,A,i,n){e=e|0,A=A|0,i=i|0,n=n|0;var t=0,l=0,f=0,o=0,u=0,s=0,g=0,B=0,a=0,D=0,k=0,Q=0,G=0,p=0,M=0,I=0,b=0,Y=0,Z=0,V=0,c=0,DA=0,vA=0,hA=0,fA=0,lA=0,oA=0,bA=0,nA=0,PA=0,xA=0;if(xA=w,w=w+112|0,oA=xA+80|0,u=xA+72|0,bA=xA,nA=xA+56|0,i|0)return PA=15,w=xA,PA|0;if(s=e+8|0,PA=_0((r[s>>2]<<5)+32|0)|0,!PA)return PA=13,w=xA,PA|0;if(An(e,PA),fA=e,lA=r[fA+4>>2]|0,i=u,r[i>>2]=r[fA>>2],r[i+4>>2]=lA,br(u,oA),i=rr(oA,A,bA)|0,i)fA=0,lA=0;else{if(i=r[u>>2]|0,l=r[s>>2]|0,(l|0)>0){f=r[e+12>>2]|0,t=0;do i=(r[f+(t<<3)>>2]|0)+i|0,t=t+1|0;while((t|0)!=(l|0));t=i}else t=i;i=bA,l=r[i>>2]|0,i=r[i+4>>2]|0,f=((t|0)<0)<<31>>31,(i|0)<(f|0)|(i|0)==(f|0)&l>>>0>>0?(i=bA,r[i>>2]=t,r[i+4>>2]=f,i=f):t=l,fA=sA(t|0,i|0,12,0)|0,lA=_()|0,i=bA,r[i>>2]=fA,r[i+4>>2]=lA,i=0}if(i|0)return iA(PA),PA=i,w=xA,PA|0;if(t=k0(fA,8)|0,!t)return iA(PA),PA=13,w=xA,PA|0;if(o=k0(fA,8)|0,!o)return iA(PA),iA(t),PA=13,w=xA,PA|0;vA=oA,r[vA>>2]=0,r[vA+4>>2]=0,vA=e,hA=r[vA+4>>2]|0,i=u,r[i>>2]=r[vA>>2],r[i+4>>2]=hA,i=X2(u,fA,lA,A,oA,t,o)|0;A:do if(i)iA(t),iA(o),iA(PA);else{e:do if((r[s>>2]|0)>0){for(f=e+12|0,l=0;i=X2((r[f>>2]|0)+(l<<3)|0,fA,lA,A,oA,t,o)|0,l=l+1|0,!(i|0);)if((l|0)>=(r[s>>2]|0))break e;iA(t),iA(o),iA(PA);break A}while(!1);(lA|0)>0|(lA|0)==0&fA>>>0>0&&X0(o|0,0,fA<<3|0)|0,hA=oA,vA=r[hA+4>>2]|0;e:do if((vA|0)>0|(vA|0)==0&(r[hA>>2]|0)>>>0>0){V=t,c=o,DA=t,vA=o,hA=t,i=t,b=t,Y=o,Z=o,t=o;r:for(;;){for(G=0,p=0,M=0,I=0,l=0,f=0;;){o=bA,u=o+56|0;do r[o>>2]=0,o=o+4|0;while((o|0)<(u|0));if(A=V+(G<<3)|0,s=r[A>>2]|0,A=r[A+4>>2]|0,J2(s,A,1,bA,0)|0){o=bA,u=o+56|0;do r[o>>2]=0,o=o+4|0;while((o|0)<(u|0));o=k0(7,4)|0,o|0&&(b0(s,A,1,bA,o,7,0,0)|0,iA(o))}for(Q=0;;){k=bA+(Q<<3)|0,D=r[k>>2]|0,k=r[k+4>>2]|0;i:do if((D|0)==0&(k|0)==0)o=l,u=f;else{if(g=ge(D|0,k|0,fA|0,lA|0)|0,s=_()|0,o=n+(g<<3)|0,A=o,u=r[A>>2]|0,A=r[A+4>>2]|0,!((u|0)==0&(A|0)==0)){B=0,a=0;do{if((B|0)>(lA|0)|(B|0)==(lA|0)&a>>>0>fA>>>0)break r;if((u|0)==(D|0)&(A|0)==(k|0)){o=l,u=f;break i}o=sA(g|0,s|0,1,0)|0,g=Ne(o|0,_()|0,fA|0,lA|0)|0,s=_()|0,a=sA(a|0,B|0,1,0)|0,B=_()|0,o=n+(g<<3)|0,A=o,u=r[A>>2]|0,A=r[A+4>>2]|0}while(!((u|0)==0&(A|0)==0))}(D|0)==0&(k|0)==0?(o=l,u=f):(ae(D,k,nA)|0,en(e,PA,nA)|0&&(a=sA(l|0,f|0,1,0)|0,f=_()|0,B=o,r[B>>2]=D,r[B+4>>2]=k,l=c+(l<<3)|0,r[l>>2]=D,r[l+4>>2]=k,l=a),o=l,u=f)}while(!1);if(Q=Q+1|0,Q>>>0>=7)break;l=o,f=u}if(G=sA(G|0,p|0,1,0)|0,p=_()|0,M=sA(M|0,I|0,1,0)|0,I=_()|0,f=oA,l=r[f>>2]|0,f=r[f+4>>2]|0,(I|0)<(f|0)|(I|0)==(f|0)&M>>>0>>0)l=o,f=u;else break}if((f|0)>0|(f|0)==0&l>>>0>0){l=0,f=0;do I=V+(l<<3)|0,r[I>>2]=0,r[I+4>>2]=0,l=sA(l|0,f|0,1,0)|0,f=_()|0,I=oA,M=r[I+4>>2]|0;while((f|0)<(M|0)|((f|0)==(M|0)?l>>>0<(r[I>>2]|0)>>>0:0))}if(I=oA,r[I>>2]=o,r[I+4>>2]=u,(u|0)>0|(u|0)==0&o>>>0>0)Q=t,G=Z,p=hA,M=Y,I=c,t=b,Z=i,Y=DA,b=Q,i=G,hA=vA,vA=p,DA=M,c=V,V=I;else break e}iA(DA),iA(vA),iA(PA),i=1;break A}else i=o;while(!1);iA(PA),iA(t),iA(i),i=0}while(!1);return PA=i,w=xA,PA|0}function Zi(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0,f=0,o=0,u=0,s=0,g=0;if(g=w,w=w+176|0,u=g,(A|0)<1)return Mr(i,0,0),s=0,w=g,s|0;for(o=e,o=S(r[o>>2]|0,r[o+4>>2]|0,52)|0,_()|0,Mr(i,(A|0)>6?A:6,o&15),o=0;n=e+(o<<3)|0,n=Ee(r[n>>2]|0,r[n+4>>2]|0,u)|0,!(n|0);){if(n=r[u>>2]|0,(n|0)>0){f=0;do l=u+8+(f<<4)|0,f=f+1|0,n=u+8+(((f|0)%(n|0)|0)<<4)|0,t=an(i,n,l)|0,t?yr(i,t)|0:kn(i,l,n)|0,n=r[u>>2]|0;while((f|0)<(n|0))}if(o=o+1|0,(o|0)>=(A|0)){n=0,s=13;break}}return(s|0)==13?(w=g,n|0):(Pr(i),s=n,w=g,s|0)}function ji(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0,f=0;if(l=w,w=w+32|0,n=l,t=l+16|0,e=Zi(e,A,t)|0,e|0)return i=e,w=l,i|0;if(r[i>>2]=0,r[i+4>>2]=0,r[i+8>>2]=0,e=Ir(t)|0,e|0)do{A=j1(i)|0;do W1(A,e)|0,f=e+16|0,r[n>>2]=r[f>>2],r[n+4>>2]=r[f+4>>2],r[n+8>>2]=r[f+8>>2],r[n+12>>2]=r[f+12>>2],yr(t,e)|0,e=En(t,n)|0;while(e|0);e=Ir(t)|0}while(e|0);return Pr(t),e=x1(i)|0,e?(ar(i),f=e,w=l,f|0):(f=0,w=l,f|0)}function yA(e){return e=e|0,e>>>0>121?(e=0,e|0):(e=r[7696+(e*28|0)+16>>2]|0,e|0)}function g2(e){return e=e|0,(e|0)==4|(e|0)==117|0}function q2(e){return e=e|0,r[11120+((r[e>>2]|0)*216|0)+((r[e+4>>2]|0)*72|0)+((r[e+8>>2]|0)*24|0)+(r[e+12>>2]<<3)>>2]|0}function Wi(e){return e=e|0,r[11120+((r[e>>2]|0)*216|0)+((r[e+4>>2]|0)*72|0)+((r[e+8>>2]|0)*24|0)+(r[e+12>>2]<<3)+4>>2]|0}function xi(e,A){e=e|0,A=A|0,e=7696+(e*28|0)|0,r[A>>2]=r[e>>2],r[A+4>>2]=r[e+4>>2],r[A+8>>2]=r[e+8>>2],r[A+12>>2]=r[e+12>>2]}function Ki(e,A){e=e|0,A=A|0;var i=0,n=0;if(A>>>0>20)return A=-1,A|0;do if((r[11120+(A*216|0)>>2]|0)!=(e|0))if((r[11120+(A*216|0)+8>>2]|0)!=(e|0))if((r[11120+(A*216|0)+16>>2]|0)!=(e|0))if((r[11120+(A*216|0)+24>>2]|0)!=(e|0))if((r[11120+(A*216|0)+32>>2]|0)!=(e|0))if((r[11120+(A*216|0)+40>>2]|0)!=(e|0))if((r[11120+(A*216|0)+48>>2]|0)!=(e|0))if((r[11120+(A*216|0)+56>>2]|0)!=(e|0))if((r[11120+(A*216|0)+64>>2]|0)!=(e|0))if((r[11120+(A*216|0)+72>>2]|0)!=(e|0))if((r[11120+(A*216|0)+80>>2]|0)!=(e|0))if((r[11120+(A*216|0)+88>>2]|0)!=(e|0))if((r[11120+(A*216|0)+96>>2]|0)!=(e|0))if((r[11120+(A*216|0)+104>>2]|0)!=(e|0))if((r[11120+(A*216|0)+112>>2]|0)!=(e|0))if((r[11120+(A*216|0)+120>>2]|0)!=(e|0))if((r[11120+(A*216|0)+128>>2]|0)!=(e|0))if((r[11120+(A*216|0)+136>>2]|0)==(e|0))e=2,i=1,n=2;else{if((r[11120+(A*216|0)+144>>2]|0)==(e|0)){e=0,i=2,n=0;break}if((r[11120+(A*216|0)+152>>2]|0)==(e|0)){e=0,i=2,n=1;break}if((r[11120+(A*216|0)+160>>2]|0)==(e|0)){e=0,i=2,n=2;break}if((r[11120+(A*216|0)+168>>2]|0)==(e|0)){e=1,i=2,n=0;break}if((r[11120+(A*216|0)+176>>2]|0)==(e|0)){e=1,i=2,n=1;break}if((r[11120+(A*216|0)+184>>2]|0)==(e|0)){e=1,i=2,n=2;break}if((r[11120+(A*216|0)+192>>2]|0)==(e|0)){e=2,i=2,n=0;break}if((r[11120+(A*216|0)+200>>2]|0)==(e|0)){e=2,i=2,n=1;break}if((r[11120+(A*216|0)+208>>2]|0)==(e|0)){e=2,i=2,n=2;break}else e=-1;return e|0}else e=2,i=1,n=1;else e=2,i=1,n=0;else e=1,i=1,n=2;else e=1,i=1,n=1;else e=1,i=1,n=0;else e=0,i=1,n=2;else e=0,i=1,n=1;else e=0,i=1,n=0;else e=2,i=0,n=2;else e=2,i=0,n=1;else e=2,i=0,n=0;else e=1,i=0,n=2;else e=1,i=0,n=1;else e=1,i=0,n=0;else e=0,i=0,n=2;else e=0,i=0,n=1;else e=0,i=0,n=0;while(!1);return A=r[11120+(A*216|0)+(i*72|0)+(e*24|0)+(n<<3)+4>>2]|0,A|0}function $2(e,A){return e=e|0,A=A|0,(r[7696+(e*28|0)+20>>2]|0)==(A|0)?(A=1,A|0):(A=(r[7696+(e*28|0)+24>>2]|0)==(A|0),A|0)}function v2(e,A){return e=e|0,A=A|0,r[848+(e*28|0)+(A<<2)>>2]|0}function w2(e,A){return e=e|0,A=A|0,(r[848+(e*28|0)>>2]|0)==(A|0)?(A=0,A|0):(r[848+(e*28|0)+4>>2]|0)==(A|0)?(A=1,A|0):(r[848+(e*28|0)+8>>2]|0)==(A|0)?(A=2,A|0):(r[848+(e*28|0)+12>>2]|0)==(A|0)?(A=3,A|0):(r[848+(e*28|0)+16>>2]|0)==(A|0)?(A=4,A|0):(r[848+(e*28|0)+20>>2]|0)==(A|0)?(A=5,A|0):((r[848+(e*28|0)+24>>2]|0)==(A|0)?6:7)|0}function Ji(){return 122}function Xi(e){e=e|0;var A=0,i=0,n=0;A=0;do H(A|0,0,45)|0,n=_()|0|134225919,i=e+(A<<3)|0,r[i>>2]=-1,r[i+4>>2]=n,A=A+1|0;while((A|0)!=122);return 0}function Ar(e){return e=e|0,+h[e+16>>3]<+h[e+24>>3]|0}function er(e,A){e=e|0,A=A|0;var i=0,n=0,t=0;return i=+h[A>>3],!(i>=+h[e+8>>3])||!(i<=+h[e>>3])?(A=0,A|0):(n=+h[e+16>>3],i=+h[e+24>>3],t=+h[A+8>>3],A=t>=i,e=t<=n&1,n>2]=0,o=o+4|0;while((o|0)<(u|0));return A=Q2(A,s)|0,A|0?(D=A,w=k,D|0):(u=s,s=r[u>>2]|0,u=r[u+4>>2]|0,ae(s,u,g)|0,Ee(s,u,B)|0,f=+Ce(g,B+8|0),h[g>>3]=+h[e>>3],u=g+8|0,h[u>>3]=+h[e+16>>3],h[B>>3]=+h[e+8>>3],s=B+8|0,h[s>>3]=+h[e+24>>3],t=+Ce(g,B),G=+h[u>>3]-+h[s>>3],l=+EA(+G),Q=+h[g>>3]-+h[B>>3],n=+EA(+Q),!(G==0|Q==0)&&(G=+Lr(+l,+n),G=+fe(+(t*t/+I2(+(G/+I2(+l,+n)),3)/(f*(f*2.59807621135)*.8))),h[RA>>3]=G,a=~~G>>>0,D=+EA(G)>=1?G>0?~~+u2(+SA(G/4294967296),4294967295)>>>0:~~+fe((G-+(~~G>>>0))/4294967296)>>>0:0,(r[RA+4>>2]&2146435072|0)!=2146435072)?(B=(a|0)==0&(D|0)==0,A=i,r[A>>2]=B?1:a,r[A+4>>2]=B?0:D,A=0):A=1,D=A,w=k,D|0)}function qi(e,A,i,n){e=e|0,A=A|0,i=i|0,n=n|0;var t=0,l=0,f=0,o=0,u=0,s=0,g=0;s=w,w=w+288|0,f=s+264|0,o=s+96|0,u=s,t=u,l=t+96|0;do r[t>>2]=0,t=t+4|0;while((t|0)<(l|0));return i=Q2(i,u)|0,i|0?(n=i,w=s,n|0):(i=u,t=r[i>>2]|0,i=r[i+4>>2]|0,ae(t,i,f)|0,Ee(t,i,o)|0,g=+Ce(f,o+8|0),g=+fe(+(+Ce(e,A)/(g*2))),h[RA>>3]=g,i=~~g>>>0,t=+EA(g)>=1?g>0?~~+u2(+SA(g/4294967296),4294967295)>>>0:~~+fe((g-+(~~g>>>0))/4294967296)>>>0:0,(r[RA+4>>2]&2146435072|0)==2146435072?(n=1,w=s,n|0):(u=(i|0)==0&(t|0)==0,r[n>>2]=u?1:i,r[n+4>>2]=u?0:t,n=0,w=s,n|0))}function $i(e,A,i,n){e=e|0,A=A|0,i=i|0,n=n|0,r[e>>2]=A,r[e+4>>2]=i,r[e+8>>2]=n}function A1(e,A){e=e|0,A=A|0;var i=0,n=0,t=0,l=0,f=0,o=0,u=0,s=0,g=0,B=0,a=0;B=A+8|0,r[B>>2]=0,u=+h[e>>3],f=+EA(+u),s=+h[e+8>>3],o=+EA(+s)/.8660254037844386,f=f+o*.5,i=~~f,e=~~o,f=f-+(i|0),o=o-+(e|0);do if(f<.5)if(f<.3333333333333333)if(r[A>>2]=i,o<(f+1)*.5){r[A+4>>2]=e;break}else{e=e+1|0,r[A+4>>2]=e;break}else if(a=1-f,e=(!(o>2]=e,a<=o&o>2]=i;break}else{r[A>>2]=i;break}else{if(!(f<.6666666666666666))if(i=i+1|0,r[A>>2]=i,o>2]=e;break}else{e=e+1|0,r[A+4>>2]=e;break}if(o<1-f){if(r[A+4>>2]=e,f*2+-1>2]=i;break}}else e=e+1|0,r[A+4>>2]=e;i=i+1|0,r[A>>2]=i}while(!1);do if(u<0)if(e&1){g=(e+1|0)/2|0,g=YA(i|0,((i|0)<0)<<31>>31|0,g|0,((g|0)<0)<<31>>31|0)|0,i=~~(+(i|0)-((+(g>>>0)+4294967296*+(_()|0))*2+1)),r[A>>2]=i;break}else{g=(e|0)/2|0,g=YA(i|0,((i|0)<0)<<31>>31|0,g|0,((g|0)<0)<<31>>31|0)|0,i=~~(+(i|0)-(+(g>>>0)+4294967296*+(_()|0))*2),r[A>>2]=i;break}while(!1);g=A+4|0,s<0&&(i=i-((e<<1|1|0)/2|0)|0,r[A>>2]=i,e=0-e|0,r[g>>2]=e),n=e-i|0,(i|0)<0?(t=0-i|0,r[g>>2]=n,r[B>>2]=t,r[A>>2]=0,e=n,i=0):t=0,(e|0)<0&&(i=i-e|0,r[A>>2]=i,t=t-e|0,r[B>>2]=t,r[g>>2]=0,e=0),l=i-t|0,n=e-t|0,(t|0)<0&&(r[A>>2]=l,r[g>>2]=n,r[B>>2]=0,e=n,i=l,t=0),n=(e|0)<(i|0)?e:i,n=(t|0)<(n|0)?t:n,!((n|0)<=0)&&(r[A>>2]=i-n,r[g>>2]=e-n,r[B>>2]=t-n)}function zA(e){e=e|0;var A=0,i=0,n=0,t=0,l=0,f=0;A=r[e>>2]|0,f=e+4|0,i=r[f>>2]|0,(A|0)<0&&(i=i-A|0,r[f>>2]=i,l=e+8|0,r[l>>2]=(r[l>>2]|0)-A,r[e>>2]=0,A=0),(i|0)<0?(A=A-i|0,r[e>>2]=A,l=e+8|0,t=(r[l>>2]|0)-i|0,r[l>>2]=t,r[f>>2]=0,i=0):(t=e+8|0,l=t,t=r[t>>2]|0),(t|0)<0&&(A=A-t|0,r[e>>2]=A,i=i-t|0,r[f>>2]=i,r[l>>2]=0,t=0),n=(i|0)<(A|0)?i:A,n=(t|0)<(n|0)?t:n,!((n|0)<=0)&&(r[e>>2]=A-n,r[f>>2]=i-n,r[l>>2]=t-n)}function j0(e,A){e=e|0,A=A|0;var i=0,n=0;n=r[e+8>>2]|0,i=+((r[e+4>>2]|0)-n|0),h[A>>3]=+((r[e>>2]|0)-n|0)-i*.5,h[A+8>>3]=i*.8660254037844386}function WA(e,A,i){e=e|0,A=A|0,i=i|0,r[i>>2]=(r[A>>2]|0)+(r[e>>2]|0),r[i+4>>2]=(r[A+4>>2]|0)+(r[e+4>>2]|0),r[i+8>>2]=(r[A+8>>2]|0)+(r[e+8>>2]|0)}function h2(e,A,i){e=e|0,A=A|0,i=i|0,r[i>>2]=(r[e>>2]|0)-(r[A>>2]|0),r[i+4>>2]=(r[e+4>>2]|0)-(r[A+4>>2]|0),r[i+8>>2]=(r[e+8>>2]|0)-(r[A+8>>2]|0)}function ir(e,A){e=e|0,A=A|0;var i=0,n=0;i=B0(r[e>>2]|0,A)|0,r[e>>2]=i,i=e+4|0,n=B0(r[i>>2]|0,A)|0,r[i>>2]=n,e=e+8|0,A=B0(r[e>>2]|0,A)|0,r[e>>2]=A}function Ue(e){e=e|0;var A=0,i=0,n=0,t=0,l=0,f=0,o=0;f=r[e>>2]|0,o=(f|0)<0,n=(r[e+4>>2]|0)-(o?f:0)|0,l=(n|0)<0,t=(l?0-n|0:0)+((r[e+8>>2]|0)-(o?f:0))|0,i=(t|0)<0,e=i?0:t,A=(l?0:n)-(i?t:0)|0,t=(o?0:f)-(l?n:0)-(i?t:0)|0,i=(A|0)<(t|0)?A:t,i=(e|0)<(i|0)?e:i,n=(i|0)>0,e=e-(n?i:0)|0,A=A-(n?i:0)|0;A:do switch(t-(n?i:0)|0){case 0:switch(A|0){case 0:return o=e|0?(e|0)==1?1:7:0,o|0;case 1:return o=e|0?(e|0)==1?3:7:2,o|0;default:break A}case 1:switch(A|0){case 0:return o=e|0?(e|0)==1?5:7:4,o|0;case 1:{if(!e)e=6;else break A;return e|0}default:break A}default:}while(!1);return o=7,o|0}function e1(e){e=e|0;var A=0,i=0,n=0,t=0,l=0,f=0,o=0;f=e+8|0,t=r[f>>2]|0,l=(r[e>>2]|0)-t|0,o=e+4|0,t=(r[o>>2]|0)-t|0;do if(l>>>0>715827881|t>>>0>715827881){if(i=(l|0)>0,i){if((2147483647-l|0)<(l|0)||(2147483647-(l<<1)|0)<(l|0))return o=1,o|0}else if((-2147483648-l|0)>(l|0)||(-2147483648-(l<<1)|0)>(l|0))return o=1,o|0;if(A=l*3|0,(t|0)>0){if((2147483647-t|0)<(t|0))return o=1,o|0}else if((-2147483648-t|0)>(t|0))return o=1,o|0;if(n=t<<1,(l|0)>-1){if((A|-2147483648|0)>=(t|0))return o=1,o|0}else if((A^-2147483648|0)<(t|0))return o=1,o|0;if(i){if((2147483647-l|0)<(n|0))A=1;else{i=n;break}return A|0}else{if((-2147483648-l|0)>(n|0))A=1;else{i=n;break}return A|0}}else i=t<<1,A=l*3|0;while(!1);n=R0(+(A-t|0)/7)|0,r[e>>2]=n,t=R0(+(i+l|0)/7)|0,r[o>>2]=t,r[f>>2]=0,i=(t|0)<(n|0),A=i?n:t,i=i?t:n;do if((i|0)<0){if((A|0)>0){if((A|-2147483648|0)<(i|0)&((i|0)!=-2147483648&(2147483647-A|0)>=(i|0)))break;AA(23313,22444,355,22455)}if((i|0)==-2147483648|(-2147483648-A|0)>(i|0)&&AA(23313,22444,355,22455),(A|0)>-1){if((A|-2147483648|0)<(i|0))break;AA(23313,22444,355,22455)}else{if((A^-2147483648|0)>=(i|0))break;AA(23313,22444,355,22455)}}while(!1);return A=t-n|0,(n|0)<0?(i=0-n|0,r[o>>2]=A,r[f>>2]=i,r[e>>2]=0,n=0):(A=t,i=0),(A|0)<0&&(n=n-A|0,r[e>>2]=n,i=i-A|0,r[f>>2]=i,r[o>>2]=0,A=0),l=n-i|0,t=A-i|0,(i|0)<0?(r[e>>2]=l,r[o>>2]=t,r[f>>2]=0,A=t,t=l,i=0):t=n,n=(A|0)<(t|0)?A:t,n=(i|0)<(n|0)?i:n,(n|0)<=0?(o=0,o|0):(r[e>>2]=t-n,r[o>>2]=A-n,r[f>>2]=i-n,o=0,o|0)}function r1(e){e=e|0;var A=0,i=0,n=0,t=0,l=0,f=0,o=0;f=e+8|0,t=r[f>>2]|0,l=(r[e>>2]|0)-t|0,o=e+4|0,t=(r[o>>2]|0)-t|0;do if(l>>>0>715827881|t>>>0>715827881){if(i=(l|0)>0,i){if((2147483647-l|0)<(l|0))return o=1,o|0}else if((-2147483648-l|0)>(l|0))return o=1,o|0;if(A=l<<1,(t|0)>0){if((2147483647-t|0)<(t|0)||(2147483647-(t<<1)|0)<(t|0))return o=1,o|0}else if((-2147483648-t|0)>(t|0)||(-2147483648-(t<<1)|0)>(t|0))return o=1,o|0;if(n=t*3|0,i){if((2147483647-A|0)<(t|0))return o=1,o|0}else if((-2147483648-A|0)>(t|0))return o=1,o|0;if((t|0)>-1){if((n|-2147483648|0)<(l|0)){i=n;break}else A=1;return A|0}else{if((n^-2147483648|0)<(l|0))A=1;else{i=n;break}return A|0}}else i=t*3|0,A=l<<1;while(!1);n=R0(+(A+t|0)/7)|0,r[e>>2]=n,t=R0(+(i-l|0)/7)|0,r[o>>2]=t,r[f>>2]=0,i=(t|0)<(n|0),A=i?n:t,i=i?t:n;do if((i|0)<0){if((A|0)>0){if((A|-2147483648|0)<(i|0)&((i|0)!=-2147483648&(2147483647-A|0)>=(i|0)))break;AA(23313,22444,404,22469)}if((i|0)==-2147483648|(-2147483648-A|0)>(i|0)&&AA(23313,22444,404,22469),(A|0)>-1){if((A|-2147483648|0)<(i|0))break;AA(23313,22444,404,22469)}else{if((A^-2147483648|0)>=(i|0))break;AA(23313,22444,404,22469)}}while(!1);return A=t-n|0,(n|0)<0?(i=0-n|0,r[o>>2]=A,r[f>>2]=i,r[e>>2]=0,n=0):(A=t,i=0),(A|0)<0&&(n=n-A|0,r[e>>2]=n,i=i-A|0,r[f>>2]=i,r[o>>2]=0,A=0),l=n-i|0,t=A-i|0,(i|0)<0?(r[e>>2]=l,r[o>>2]=t,r[f>>2]=0,A=t,t=l,i=0):t=n,n=(A|0)<(t|0)?A:t,n=(i|0)<(n|0)?i:n,(n|0)<=0?(o=0,o|0):(r[e>>2]=t-n,r[o>>2]=A-n,r[f>>2]=i-n,o=0,o|0)}function i1(e){e=e|0;var A=0,i=0,n=0,t=0,l=0,f=0,o=0;f=e+8|0,i=r[f>>2]|0,A=(r[e>>2]|0)-i|0,o=e+4|0,i=(r[o>>2]|0)-i|0,n=R0(+((A*3|0)-i|0)/7)|0,r[e>>2]=n,A=R0(+((i<<1)+A|0)/7)|0,r[o>>2]=A,r[f>>2]=0,i=A-n|0,(n|0)<0?(l=0-n|0,r[o>>2]=i,r[f>>2]=l,r[e>>2]=0,A=i,n=0,i=l):i=0,(A|0)<0&&(n=n-A|0,r[e>>2]=n,i=i-A|0,r[f>>2]=i,r[o>>2]=0,A=0),l=n-i|0,t=A-i|0,(i|0)<0?(r[e>>2]=l,r[o>>2]=t,r[f>>2]=0,A=t,t=l,i=0):t=n,n=(A|0)<(t|0)?A:t,n=(i|0)<(n|0)?i:n,!((n|0)<=0)&&(r[e>>2]=t-n,r[o>>2]=A-n,r[f>>2]=i-n)}function nr(e){e=e|0;var A=0,i=0,n=0,t=0,l=0,f=0,o=0;f=e+8|0,i=r[f>>2]|0,A=(r[e>>2]|0)-i|0,o=e+4|0,i=(r[o>>2]|0)-i|0,n=R0(+((A<<1)+i|0)/7)|0,r[e>>2]=n,A=R0(+((i*3|0)-A|0)/7)|0,r[o>>2]=A,r[f>>2]=0,i=A-n|0,(n|0)<0?(l=0-n|0,r[o>>2]=i,r[f>>2]=l,r[e>>2]=0,A=i,n=0,i=l):i=0,(A|0)<0&&(n=n-A|0,r[e>>2]=n,i=i-A|0,r[f>>2]=i,r[o>>2]=0,A=0),l=n-i|0,t=A-i|0,(i|0)<0?(r[e>>2]=l,r[o>>2]=t,r[f>>2]=0,A=t,t=l,i=0):t=n,n=(A|0)<(t|0)?A:t,n=(i|0)<(n|0)?i:n,!((n|0)<=0)&&(r[e>>2]=t-n,r[o>>2]=A-n,r[f>>2]=i-n)}function Re(e){e=e|0;var A=0,i=0,n=0,t=0,l=0,f=0,o=0;A=r[e>>2]|0,f=e+4|0,i=r[f>>2]|0,o=e+8|0,n=r[o>>2]|0,t=i+(A*3|0)|0,r[e>>2]=t,i=n+(i*3|0)|0,r[f>>2]=i,A=(n*3|0)+A|0,r[o>>2]=A,n=i-t|0,(t|0)<0?(A=A-t|0,r[f>>2]=n,r[o>>2]=A,r[e>>2]=0,i=n,n=0):n=t,(i|0)<0&&(n=n-i|0,r[e>>2]=n,A=A-i|0,r[o>>2]=A,r[f>>2]=0,i=0),l=n-A|0,t=i-A|0,(A|0)<0?(r[e>>2]=l,r[f>>2]=t,r[o>>2]=0,n=l,A=0):t=i,i=(t|0)<(n|0)?t:n,i=(A|0)<(i|0)?A:i,!((i|0)<=0)&&(r[e>>2]=n-i,r[f>>2]=t-i,r[o>>2]=A-i)}function W0(e){e=e|0;var A=0,i=0,n=0,t=0,l=0,f=0,o=0;t=r[e>>2]|0,f=e+4|0,A=r[f>>2]|0,o=e+8|0,i=r[o>>2]|0,n=(A*3|0)+t|0,t=i+(t*3|0)|0,r[e>>2]=t,r[f>>2]=n,A=(i*3|0)+A|0,r[o>>2]=A,i=n-t|0,(t|0)<0?(A=A-t|0,r[f>>2]=i,r[o>>2]=A,r[e>>2]=0,t=0):i=n,(i|0)<0&&(t=t-i|0,r[e>>2]=t,A=A-i|0,r[o>>2]=A,r[f>>2]=0,i=0),l=t-A|0,n=i-A|0,(A|0)<0?(r[e>>2]=l,r[f>>2]=n,r[o>>2]=0,t=l,A=0):n=i,i=(n|0)<(t|0)?n:t,i=(A|0)<(i|0)?A:i,!((i|0)<=0)&&(r[e>>2]=t-i,r[f>>2]=n-i,r[o>>2]=A-i)}function tr(e,A){e=e|0,A=A|0;var i=0,n=0,t=0,l=0,f=0,o=0;(A+-1|0)>>>0>=6||(t=(r[15440+(A*12|0)>>2]|0)+(r[e>>2]|0)|0,r[e>>2]=t,o=e+4|0,n=(r[15440+(A*12|0)+4>>2]|0)+(r[o>>2]|0)|0,r[o>>2]=n,f=e+8|0,A=(r[15440+(A*12|0)+8>>2]|0)+(r[f>>2]|0)|0,r[f>>2]=A,i=n-t|0,(t|0)<0?(A=A-t|0,r[o>>2]=i,r[f>>2]=A,r[e>>2]=0,n=0):(i=n,n=t),(i|0)<0&&(n=n-i|0,r[e>>2]=n,A=A-i|0,r[f>>2]=A,r[o>>2]=0,i=0),l=n-A|0,t=i-A|0,(A|0)<0?(r[e>>2]=l,r[o>>2]=t,r[f>>2]=0,n=l,A=0):t=i,i=(t|0)<(n|0)?t:n,i=(A|0)<(i|0)?A:i,!((i|0)<=0)&&(r[e>>2]=n-i,r[o>>2]=t-i,r[f>>2]=A-i))}function lr(e){e=e|0;var A=0,i=0,n=0,t=0,l=0,f=0,o=0;t=r[e>>2]|0,f=e+4|0,A=r[f>>2]|0,o=e+8|0,i=r[o>>2]|0,n=A+t|0,t=i+t|0,r[e>>2]=t,r[f>>2]=n,A=i+A|0,r[o>>2]=A,i=n-t|0,(t|0)<0?(A=A-t|0,r[f>>2]=i,r[o>>2]=A,r[e>>2]=0,n=0):(i=n,n=t),(i|0)<0&&(n=n-i|0,r[e>>2]=n,A=A-i|0,r[o>>2]=A,r[f>>2]=0,i=0),l=n-A|0,t=i-A|0,(A|0)<0?(r[e>>2]=l,r[f>>2]=t,r[o>>2]=0,n=l,A=0):t=i,i=(t|0)<(n|0)?t:n,i=(A|0)<(i|0)?A:i,!((i|0)<=0)&&(r[e>>2]=n-i,r[f>>2]=t-i,r[o>>2]=A-i)}function Se(e){e=e|0;var A=0,i=0,n=0,t=0,l=0,f=0,o=0;A=r[e>>2]|0,f=e+4|0,n=r[f>>2]|0,o=e+8|0,i=r[o>>2]|0,t=n+A|0,r[e>>2]=t,n=i+n|0,r[f>>2]=n,A=i+A|0,r[o>>2]=A,i=n-t|0,(t|0)<0?(A=A-t|0,r[f>>2]=i,r[o>>2]=A,r[e>>2]=0,n=0):(i=n,n=t),(i|0)<0&&(n=n-i|0,r[e>>2]=n,A=A-i|0,r[o>>2]=A,r[f>>2]=0,i=0),l=n-A|0,t=i-A|0,(A|0)<0?(r[e>>2]=l,r[f>>2]=t,r[o>>2]=0,n=l,A=0):t=i,i=(t|0)<(n|0)?t:n,i=(A|0)<(i|0)?A:i,!((i|0)<=0)&&(r[e>>2]=n-i,r[f>>2]=t-i,r[o>>2]=A-i)}function x0(e){switch(e=e|0,e|0){case 1:{e=5;break}case 5:{e=4;break}case 4:{e=6;break}case 6:{e=2;break}case 2:{e=3;break}case 3:{e=1;break}default:}return e|0}function F0(e){switch(e=e|0,e|0){case 1:{e=3;break}case 3:{e=2;break}case 2:{e=6;break}case 6:{e=4;break}case 4:{e=5;break}case 5:{e=1;break}default:}return e|0}function fr(e){e=e|0;var A=0,i=0,n=0,t=0,l=0,f=0,o=0;A=r[e>>2]|0,f=e+4|0,i=r[f>>2]|0,o=e+8|0,n=r[o>>2]|0,t=i+(A<<1)|0,r[e>>2]=t,i=n+(i<<1)|0,r[f>>2]=i,A=(n<<1)+A|0,r[o>>2]=A,n=i-t|0,(t|0)<0?(A=A-t|0,r[f>>2]=n,r[o>>2]=A,r[e>>2]=0,i=n,n=0):n=t,(i|0)<0&&(n=n-i|0,r[e>>2]=n,A=A-i|0,r[o>>2]=A,r[f>>2]=0,i=0),l=n-A|0,t=i-A|0,(A|0)<0?(r[e>>2]=l,r[f>>2]=t,r[o>>2]=0,n=l,A=0):t=i,i=(t|0)<(n|0)?t:n,i=(A|0)<(i|0)?A:i,!((i|0)<=0)&&(r[e>>2]=n-i,r[f>>2]=t-i,r[o>>2]=A-i)}function or(e){e=e|0;var A=0,i=0,n=0,t=0,l=0,f=0,o=0;t=r[e>>2]|0,f=e+4|0,A=r[f>>2]|0,o=e+8|0,i=r[o>>2]|0,n=(A<<1)+t|0,t=i+(t<<1)|0,r[e>>2]=t,r[f>>2]=n,A=(i<<1)+A|0,r[o>>2]=A,i=n-t|0,(t|0)<0?(A=A-t|0,r[f>>2]=i,r[o>>2]=A,r[e>>2]=0,t=0):i=n,(i|0)<0&&(t=t-i|0,r[e>>2]=t,A=A-i|0,r[o>>2]=A,r[f>>2]=0,i=0),l=t-A|0,n=i-A|0,(A|0)<0?(r[e>>2]=l,r[f>>2]=n,r[o>>2]=0,t=l,A=0):n=i,i=(n|0)<(t|0)?n:t,i=(A|0)<(i|0)?A:i,!((i|0)<=0)&&(r[e>>2]=t-i,r[f>>2]=n-i,r[o>>2]=A-i)}function B2(e,A){e=e|0,A=A|0;var i=0,n=0,t=0,l=0,f=0,o=0;return f=(r[e>>2]|0)-(r[A>>2]|0)|0,o=(f|0)<0,n=(r[e+4>>2]|0)-(r[A+4>>2]|0)-(o?f:0)|0,l=(n|0)<0,t=(o?0-f|0:0)+(r[e+8>>2]|0)-(r[A+8>>2]|0)+(l?0-n|0:0)|0,e=(t|0)<0,A=e?0:t,i=(l?0:n)-(e?t:0)|0,t=(o?0:f)-(l?n:0)-(e?t:0)|0,e=(i|0)<(t|0)?i:t,e=(A|0)<(e|0)?A:e,n=(e|0)>0,A=A-(n?e:0)|0,i=i-(n?e:0)|0,e=t-(n?e:0)|0,e=(e|0)>-1?e:0-e|0,i=(i|0)>-1?i:0-i|0,A=(A|0)>-1?A:0-A|0,A=(i|0)>(A|0)?i:A,((e|0)>(A|0)?e:A)|0}function n1(e,A){e=e|0,A=A|0;var i=0;i=r[e+8>>2]|0,r[A>>2]=(r[e>>2]|0)-i,r[A+4>>2]=(r[e+4>>2]|0)-i}function t1(e,A){e=e|0,A=A|0;var i=0,n=0,t=0,l=0,f=0,o=0;n=r[e>>2]|0,r[A>>2]=n,t=r[e+4>>2]|0,f=A+4|0,r[f>>2]=t,o=A+8|0,r[o>>2]=0,i=(t|0)<(n|0),e=i?n:t,i=i?t:n;do if((i|0)<0){if((e|0)>0){if((e|-2147483648|0)<(i|0)&((i|0)!=-2147483648&(2147483647-e|0)>=(i|0)))break;return e=1,e|0}if((i|0)==-2147483648|(-2147483648-e|0)>(i|0))return A=1,A|0;if((e|0)>-1){if((e|-2147483648|0)<(i|0))break;return e=1,e|0}else{if((e^-2147483648|0)<(i|0))e=1;else break;return e|0}}while(!1);return e=t-n|0,(n|0)<0?(i=0-n|0,r[f>>2]=e,r[o>>2]=i,r[A>>2]=0,n=0):(e=t,i=0),(e|0)<0&&(n=n-e|0,r[A>>2]=n,i=i-e|0,r[o>>2]=i,r[f>>2]=0,e=0),l=n-i|0,t=e-i|0,(i|0)<0?(r[A>>2]=l,r[f>>2]=t,r[o>>2]=0,e=t,t=l,i=0):t=n,n=(e|0)<(t|0)?e:t,n=(i|0)<(n|0)?i:n,(n|0)<=0?(A=0,A|0):(r[A>>2]=t-n,r[f>>2]=e-n,r[o>>2]=i-n,A=0,A|0)}function ur(e){e=e|0;var A=0,i=0,n=0,t=0;A=e+8|0,t=r[A>>2]|0,i=t-(r[e>>2]|0)|0,r[e>>2]=i,n=e+4|0,e=(r[n>>2]|0)-t|0,r[n>>2]=e,r[A>>2]=0-(e+i)}function l1(e){e=e|0;var A=0,i=0,n=0,t=0,l=0,f=0,o=0;i=r[e>>2]|0,A=0-i|0,r[e>>2]=A,f=e+8|0,r[f>>2]=0,o=e+4|0,n=r[o>>2]|0,t=n+i|0,(i|0)>0?(r[o>>2]=t,r[f>>2]=i,r[e>>2]=0,A=0,n=t):i=0,(n|0)<0?(l=A-n|0,r[e>>2]=l,i=i-n|0,r[f>>2]=i,r[o>>2]=0,t=l-i|0,A=0-i|0,(i|0)<0?(r[e>>2]=t,r[o>>2]=A,r[f>>2]=0,n=A,i=0):(n=0,t=l)):t=A,A=(n|0)<(t|0)?n:t,A=(i|0)<(A|0)?i:A,!((A|0)<=0)&&(r[e>>2]=t-A,r[o>>2]=n-A,r[f>>2]=i-A)}function f1(e,A,i,n,t){e=e|0,A=A|0,i=i|0,n=n|0,t=t|0;var l=0,f=0,o=0,u=0,s=0,g=0,B=0;if(B=w,w=w+64|0,g=B,o=B+56|0,!(!0&(A&2013265920|0)==134217728&(!0&(n&2013265920|0)==134217728)))return t=5,w=B,t|0;if((e|0)==(i|0)&(A|0)==(n|0))return r[t>>2]=0,t=0,w=B,t|0;if(f=S(e|0,A|0,52)|0,_()|0,f=f&15,s=S(i|0,n|0,52)|0,_()|0,(f|0)!=(s&15|0))return t=12,w=B,t|0;if(l=f+-1|0,f>>>0>1){E2(e,A,l,g)|0,E2(i,n,l,o)|0,s=g,u=r[s>>2]|0,s=r[s+4>>2]|0;A:do if((u|0)==(r[o>>2]|0)&&(s|0)==(r[o+4>>2]|0)){f=(f^15)*3|0,l=S(e|0,A|0,f|0)|0,_()|0,l=l&7,f=S(i|0,n|0,f|0)|0,_()|0,f=f&7;do if((l|0)==0|(f|0)==0)r[t>>2]=1,l=0;else if((l|0)==7)l=5;else{if((l|0)==1|(f|0)==1&&pA(u,s)|0){l=5;break}if((r[15536+(l<<2)>>2]|0)!=(f|0)&&(r[15568+(l<<2)>>2]|0)!=(f|0))break A;r[t>>2]=1,l=0}while(!1);return t=l,w=B,t|0}while(!1)}l=g,f=l+56|0;do r[l>>2]=0,l=l+4|0;while((l|0)<(f|0));return x2(e,A,1,g)|0,A=g,!((r[A>>2]|0)==(i|0)&&(r[A+4>>2]|0)==(n|0))&&(A=g+8|0,!((r[A>>2]|0)==(i|0)&&(r[A+4>>2]|0)==(n|0)))&&(A=g+16|0,!((r[A>>2]|0)==(i|0)&&(r[A+4>>2]|0)==(n|0)))&&(A=g+24|0,!((r[A>>2]|0)==(i|0)&&(r[A+4>>2]|0)==(n|0)))&&(A=g+32|0,!((r[A>>2]|0)==(i|0)&&(r[A+4>>2]|0)==(n|0)))&&(A=g+40|0,!((r[A>>2]|0)==(i|0)&&(r[A+4>>2]|0)==(n|0)))?(l=g+48|0,l=((r[l>>2]|0)==(i|0)?(r[l+4>>2]|0)==(n|0):0)&1):l=1,r[t>>2]=l,t=0,w=B,t|0}function o1(e,A,i,n,t){return e=e|0,A=A|0,i=i|0,n=n|0,t=t|0,i=s2(e,A,i,n)|0,(i|0)==7?(t=11,t|0):(n=H(i|0,0,56)|0,A=A&-2130706433|(_()|0)|268435456,r[t>>2]=e|n,r[t+4>>2]=A,t=0,t|0)}function u1(e,A,i){return e=e|0,A=A|0,i=i|0,!0&(A&2013265920|0)==268435456?(r[i>>2]=e,r[i+4>>2]=A&-2130706433|134217728,i=0,i|0):(i=6,i|0)}function s1(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0;return t=w,w=w+16|0,n=t,r[n>>2]=0,!0&(A&2013265920|0)==268435456?(l=S(e|0,A|0,56)|0,_()|0,n=VA(e,A&-2130706433|134217728,l&7,n,i)|0,w=t,n|0):(n=6,w=t,n|0)}function g1(e,A){e=e|0,A=A|0;var i=0;switch(i=S(e|0,A|0,56)|0,_()|0,i&7){case 0:case 7:return i=0,i|0;default:}return i=A&-2130706433|134217728,!(!0&(A&2013265920|0)==268435456)||!0&(A&117440512|0)==16777216&(pA(e,i)|0)!=0?(i=0,i|0):(i=a2(e,i)|0,i|0)}function v1(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0,f=0;return t=w,w=w+16|0,n=t,!0&(A&2013265920|0)==268435456?(l=A&-2130706433|134217728,f=i,r[f>>2]=e,r[f+4>>2]=l,r[n>>2]=0,A=S(e|0,A|0,56)|0,_()|0,n=VA(e,l,A&7,n,i+8|0)|0,w=t,n|0):(n=6,w=t,n|0)}function w1(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0;return t=(pA(e,A)|0)==0,A=A&-2130706433,n=i,r[n>>2]=t?e:0,r[n+4>>2]=t?A|285212672:0,n=i+8|0,r[n>>2]=e,r[n+4>>2]=A|301989888,n=i+16|0,r[n>>2]=e,r[n+4>>2]=A|318767104,n=i+24|0,r[n>>2]=e,r[n+4>>2]=A|335544320,n=i+32|0,r[n>>2]=e,r[n+4>>2]=A|352321536,i=i+40|0,r[i>>2]=e,r[i+4>>2]=A|369098752,0}function Oe(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0,f=0;return f=w,w=w+16|0,t=f,l=A&-2130706433|134217728,!0&(A&2013265920|0)==268435456?(n=S(e|0,A|0,56)|0,_()|0,n=wn(e,l,n&7)|0,(n|0)==-1?(r[i>>2]=0,l=6,w=f,l|0):(ue(e,l,t)|0&&AA(23313,22484,282,22499),A=S(e|0,A|0,52)|0,_()|0,A=A&15,pA(e,l)|0?_2(t,A,n,2,i):k2(t,A,n,2,i),l=0,w=f,l|0)):(l=6,w=f,l|0)}function h1(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0;n=w,w=w+16|0,t=n,B1(e,A,i,t),A1(t,i+4|0),w=n}function B1(e,A,i,n){e=e|0,A=A|0,i=i|0,n=n|0;var t=0,l=0,f=0,o=0,u=0;if(o=w,w=w+16|0,u=o,_1(e,i,u),l=+pi(+(1-+h[u>>3]*.5)),l<1e-16){r[n>>2]=0,r[n+4>>2]=0,r[n+8>>2]=0,r[n+12>>2]=0,w=o;return}if(u=r[i>>2]|0,t=+h[15920+(u*24|0)>>3],t=+De(t-+De(+R1(15600+(u<<4)|0,e))),n0(A)|0?f=+De(t+-.3334731722518321):f=t,t=+_e(+l)/.381966011250105,(A|0)>0){e=0;do t=t*2.6457513110645907,e=e+1|0;while((e|0)!=(A|0))}l=+_A(+f)*t,h[n>>3]=l,f=+kA(+f)*t,h[n+8>>3]=f,w=o}function _1(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0;if(l=w,w=w+32|0,t=l,vn(e,t),r[A>>2]=0,h[i>>3]=5,n=+FA(16400,t),n<+h[i>>3]&&(r[A>>2]=0,h[i>>3]=n),n=+FA(16424,t),n<+h[i>>3]&&(r[A>>2]=1,h[i>>3]=n),n=+FA(16448,t),n<+h[i>>3]&&(r[A>>2]=2,h[i>>3]=n),n=+FA(16472,t),n<+h[i>>3]&&(r[A>>2]=3,h[i>>3]=n),n=+FA(16496,t),n<+h[i>>3]&&(r[A>>2]=4,h[i>>3]=n),n=+FA(16520,t),n<+h[i>>3]&&(r[A>>2]=5,h[i>>3]=n),n=+FA(16544,t),n<+h[i>>3]&&(r[A>>2]=6,h[i>>3]=n),n=+FA(16568,t),n<+h[i>>3]&&(r[A>>2]=7,h[i>>3]=n),n=+FA(16592,t),n<+h[i>>3]&&(r[A>>2]=8,h[i>>3]=n),n=+FA(16616,t),n<+h[i>>3]&&(r[A>>2]=9,h[i>>3]=n),n=+FA(16640,t),n<+h[i>>3]&&(r[A>>2]=10,h[i>>3]=n),n=+FA(16664,t),n<+h[i>>3]&&(r[A>>2]=11,h[i>>3]=n),n=+FA(16688,t),n<+h[i>>3]&&(r[A>>2]=12,h[i>>3]=n),n=+FA(16712,t),n<+h[i>>3]&&(r[A>>2]=13,h[i>>3]=n),n=+FA(16736,t),n<+h[i>>3]&&(r[A>>2]=14,h[i>>3]=n),n=+FA(16760,t),n<+h[i>>3]&&(r[A>>2]=15,h[i>>3]=n),n=+FA(16784,t),n<+h[i>>3]&&(r[A>>2]=16,h[i>>3]=n),n=+FA(16808,t),n<+h[i>>3]&&(r[A>>2]=17,h[i>>3]=n),n=+FA(16832,t),n<+h[i>>3]&&(r[A>>2]=18,h[i>>3]=n),n=+FA(16856,t),!(n<+h[i>>3])){w=l;return}r[A>>2]=19,h[i>>3]=n,w=l}function ke(e,A,i,n,t){e=e|0,A=A|0,i=i|0,n=n|0,t=t|0;var l=0,f=0;if(l=+gn(e),l<1e-16){A=15600+(A<<4)|0,r[t>>2]=r[A>>2],r[t+4>>2]=r[A+4>>2],r[t+8>>2]=r[A+8>>2],r[t+12>>2]=r[A+12>>2];return}if(f=+i0(+ +h[e+8>>3],+ +h[e>>3]),(i|0)>0){e=0;do l=l/2.6457513110645907,e=e+1|0;while((e|0)!=(i|0))}n?(l=l/3,i=(n0(i)|0)==0,l=+o2(+((i?l:l/2.6457513110645907)*.381966011250105))):(l=+o2(+(l*.381966011250105)),n0(i)|0&&(f=+De(f+.3334731722518321))),S1(15600+(A<<4)|0,+De(+h[15920+(A*24|0)>>3]-f),l,t)}function k1(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0;n=w,w=w+16|0,t=n,j0(e+4|0,t),ke(t,r[e>>2]|0,A,0,i),w=n}function _2(e,A,i,n,t){e=e|0,A=A|0,i=i|0,n=n|0,t=t|0;var l=0,f=0,o=0,u=0,s=0,g=0,B=0,a=0,D=0,k=0,Q=0,G=0,p=0,M=0,I=0,b=0,Y=0,Z=0,V=0,c=0,DA=0,vA=0,hA=0,fA=0,lA=0,oA=0,bA=0,nA=0;if(oA=w,w=w+272|0,l=oA+256|0,M=oA+240|0,hA=oA,fA=oA+224|0,lA=oA+208|0,I=oA+176|0,b=oA+160|0,Y=oA+192|0,Z=oA+144|0,V=oA+128|0,c=oA+112|0,DA=oA+96|0,vA=oA+80|0,r[l>>2]=A,r[M>>2]=r[e>>2],r[M+4>>2]=r[e+4>>2],r[M+8>>2]=r[e+8>>2],r[M+12>>2]=r[e+12>>2],sr(M,l,hA),r[t>>2]=0,M=n+i+((n|0)==5&1)|0,(M|0)<=(i|0)){w=oA;return}u=r[l>>2]|0,s=fA+4|0,g=I+4|0,B=i+5|0,a=16880+(u<<2)|0,D=16960+(u<<2)|0,k=V+8|0,Q=c+8|0,G=DA+8|0,p=lA+4|0,o=i;A:for(;;){f=hA+(((o|0)%5|0)<<4)|0,r[lA>>2]=r[f>>2],r[lA+4>>2]=r[f+4>>2],r[lA+8>>2]=r[f+8>>2],r[lA+12>>2]=r[f+12>>2];do;while((oe(lA,u,0,1)|0)==2);if((o|0)>(i|0)&(n0(A)|0)!=0){if(r[I>>2]=r[lA>>2],r[I+4>>2]=r[lA+4>>2],r[I+8>>2]=r[lA+8>>2],r[I+12>>2]=r[lA+12>>2],j0(s,b),n=r[I>>2]|0,l=r[17040+(n*80|0)+(r[fA>>2]<<2)>>2]|0,r[I>>2]=r[18640+(n*80|0)+(l*20|0)>>2],f=r[18640+(n*80|0)+(l*20|0)+16>>2]|0,(f|0)>0){e=0;do lr(g),e=e+1|0;while((e|0)<(f|0))}switch(f=18640+(n*80|0)+(l*20|0)+4|0,r[Y>>2]=r[f>>2],r[Y+4>>2]=r[f+4>>2],r[Y+8>>2]=r[f+8>>2],ir(Y,(r[a>>2]|0)*3|0),WA(g,Y,g),zA(g),j0(g,Z),bA=+(r[D>>2]|0),h[V>>3]=bA*3,h[k>>3]=0,nA=bA*-1.5,h[c>>3]=nA,h[Q>>3]=bA*2.598076211353316,h[DA>>3]=nA,h[G>>3]=bA*-2.598076211353316,r[17040+((r[I>>2]|0)*80|0)+(r[lA>>2]<<2)>>2]|0){case 1:{e=c,n=V;break}case 3:{e=DA,n=c;break}case 2:{e=V,n=DA;break}default:{e=12;break A}}Qr(b,Z,n,e,vA),ke(vA,r[I>>2]|0,u,1,t+8+(r[t>>2]<<4)|0),r[t>>2]=(r[t>>2]|0)+1}if((o|0)<(B|0)&&(j0(p,I),ke(I,r[lA>>2]|0,u,1,t+8+(r[t>>2]<<4)|0),r[t>>2]=(r[t>>2]|0)+1),r[fA>>2]=r[lA>>2],r[fA+4>>2]=r[lA+4>>2],r[fA+8>>2]=r[lA+8>>2],r[fA+12>>2]=r[lA+12>>2],o=o+1|0,(o|0)>=(M|0)){e=3;break}}if((e|0)==3){w=oA;return}else(e|0)==12&&AA(22522,22569,571,22579)}function sr(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0,f=0,o=0,u=0;u=w,w=w+128|0,n=u+64|0,t=u,l=n,f=20240,o=l+60|0;do r[l>>2]=r[f>>2],l=l+4|0,f=f+4|0;while((l|0)<(o|0));l=t,f=20304,o=l+60|0;do r[l>>2]=r[f>>2],l=l+4|0,f=f+4|0;while((l|0)<(o|0));o=(n0(r[A>>2]|0)|0)==0,n=o?n:t,t=e+4|0,fr(t),or(t),n0(r[A>>2]|0)|0&&(W0(t),r[A>>2]=(r[A>>2]|0)+1),r[i>>2]=r[e>>2],A=i+4|0,WA(t,n,A),zA(A),r[i+16>>2]=r[e>>2],A=i+20|0,WA(t,n+12|0,A),zA(A),r[i+32>>2]=r[e>>2],A=i+36|0,WA(t,n+24|0,A),zA(A),r[i+48>>2]=r[e>>2],A=i+52|0,WA(t,n+36|0,A),zA(A),r[i+64>>2]=r[e>>2],i=i+68|0,WA(t,n+48|0,i),zA(i),w=u}function oe(e,A,i,n){e=e|0,A=A|0,i=i|0,n=n|0;var t=0,l=0,f=0,o=0,u=0,s=0,g=0,B=0,a=0,D=0,k=0;if(k=w,w=w+32|0,a=k+12|0,o=k,D=e+4|0,B=r[16960+(A<<2)>>2]|0,g=(n|0)!=0,B=g?B*3|0:B,t=r[D>>2]|0,s=e+8|0,f=r[s>>2]|0,g){if(l=e+12|0,n=r[l>>2]|0,t=f+t+n|0,(t|0)==(B|0))return D=1,w=k,D|0;u=l}else u=e+12|0,n=r[u>>2]|0,t=f+t+n|0;if((t|0)<=(B|0))return D=0,w=k,D|0;do if((n|0)>0){if(n=r[e>>2]|0,(f|0)>0){l=18640+(n*80|0)+60|0,n=e;break}n=18640+(n*80|0)+40|0,i?($i(a,B,0,0),h2(D,a,o),Se(o),WA(o,a,D),l=n,n=e):(l=n,n=e)}else l=18640+((r[e>>2]|0)*80|0)+20|0,n=e;while(!1);if(r[n>>2]=r[l>>2],t=l+16|0,(r[t>>2]|0)>0){n=0;do lr(D),n=n+1|0;while((n|0)<(r[t>>2]|0))}return e=l+4|0,r[a>>2]=r[e>>2],r[a+4>>2]=r[e+4>>2],r[a+8>>2]=r[e+8>>2],A=r[16880+(A<<2)>>2]|0,ir(a,g?A*3|0:A),WA(D,a,D),zA(D),g?n=((r[s>>2]|0)+(r[D>>2]|0)+(r[u>>2]|0)|0)==(B|0)?1:2:n=2,D=n,w=k,D|0}function a1(e,A){e=e|0,A=A|0;var i=0;do i=oe(e,A,0,1)|0;while((i|0)==2);return i|0}function k2(e,A,i,n,t){e=e|0,A=A|0,i=i|0,n=n|0,t=t|0;var l=0,f=0,o=0,u=0,s=0,g=0,B=0,a=0,D=0,k=0,Q=0,G=0,p=0,M=0,I=0,b=0,Y=0,Z=0,V=0,c=0,DA=0,vA=0,hA=0;if(DA=w,w=w+240|0,l=DA+224|0,Y=DA+208|0,Z=DA,V=DA+192|0,c=DA+176|0,G=DA+160|0,p=DA+144|0,M=DA+128|0,I=DA+112|0,b=DA+96|0,r[l>>2]=A,r[Y>>2]=r[e>>2],r[Y+4>>2]=r[e+4>>2],r[Y+8>>2]=r[e+8>>2],r[Y+12>>2]=r[e+12>>2],gr(Y,l,Z),r[t>>2]=0,Q=n+i+((n|0)==6&1)|0,(Q|0)<=(i|0)){w=DA;return}u=r[l>>2]|0,s=i+6|0,g=16960+(u<<2)|0,B=p+8|0,a=M+8|0,D=I+8|0,k=V+4|0,f=0,o=i,n=-1;A:for(;;){if(l=(o|0)%6|0,e=Z+(l<<4)|0,r[V>>2]=r[e>>2],r[V+4>>2]=r[e+4>>2],r[V+8>>2]=r[e+8>>2],r[V+12>>2]=r[e+12>>2],e=f,f=oe(V,u,0,1)|0,(o|0)>(i|0)&(n0(A)|0)!=0&&(e|0)!=1&&(r[V>>2]|0)!=(n|0)){switch(j0(Z+(((l+5|0)%6|0)<<4)+4|0,c),j0(Z+(l<<4)+4|0,G),vA=+(r[g>>2]|0),h[p>>3]=vA*3,h[B>>3]=0,hA=vA*-1.5,h[M>>3]=hA,h[a>>3]=vA*2.598076211353316,h[I>>3]=hA,h[D>>3]=vA*-2.598076211353316,l=r[Y>>2]|0,r[17040+(l*80|0)+(((n|0)==(l|0)?r[V>>2]|0:n)<<2)>>2]|0){case 1:{e=M,n=p;break}case 3:{e=I,n=M;break}case 2:{e=p,n=I;break}default:{e=8;break A}}Qr(c,G,n,e,b),!(mr(c,b)|0)&&!(mr(G,b)|0)&&(ke(b,r[Y>>2]|0,u,1,t+8+(r[t>>2]<<4)|0),r[t>>2]=(r[t>>2]|0)+1)}if((o|0)<(s|0)&&(j0(k,c),ke(c,r[V>>2]|0,u,1,t+8+(r[t>>2]<<4)|0),r[t>>2]=(r[t>>2]|0)+1),o=o+1|0,(o|0)>=(Q|0)){e=3;break}else n=r[V>>2]|0}if((e|0)==3){w=DA;return}else(e|0)==8&&AA(22606,22569,736,22651)}function gr(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0,f=0,o=0,u=0;u=w,w=w+160|0,n=u+80|0,t=u,l=n,f=20368,o=l+72|0;do r[l>>2]=r[f>>2],l=l+4|0,f=f+4|0;while((l|0)<(o|0));l=t,f=20448,o=l+72|0;do r[l>>2]=r[f>>2],l=l+4|0,f=f+4|0;while((l|0)<(o|0));o=(n0(r[A>>2]|0)|0)==0,n=o?n:t,t=e+4|0,fr(t),or(t),n0(r[A>>2]|0)|0&&(W0(t),r[A>>2]=(r[A>>2]|0)+1),r[i>>2]=r[e>>2],A=i+4|0,WA(t,n,A),zA(A),r[i+16>>2]=r[e>>2],A=i+20|0,WA(t,n+12|0,A),zA(A),r[i+32>>2]=r[e>>2],A=i+36|0,WA(t,n+24|0,A),zA(A),r[i+48>>2]=r[e>>2],A=i+52|0,WA(t,n+36|0,A),zA(A),r[i+64>>2]=r[e>>2],A=i+68|0,WA(t,n+48|0,A),zA(A),r[i+80>>2]=r[e>>2],i=i+84|0,WA(t,n+60|0,i),zA(i),w=u}function E1(e,A){return e=e|0,A=A|0,A=S(e|0,A|0,52)|0,_()|0,A&15|0}function vr(e,A){return e=e|0,A=A|0,A=S(e|0,A|0,45)|0,_()|0,A&127|0}function a2(e,A){e=e|0,A=A|0;var i=0,n=0,t=0,l=0,f=0,o=0;if(!(!0&(A&-16777216|0)==134217728)||(f=S(e|0,A|0,45)|0,_()|0,f=f&127,f>>>0>121))return A=0,A|0;i=S(e|0,A|0,52)|0,_()|0,i=i&15;do if(i|0){for(t=1,n=0;;){if(l=S(e|0,A|0,(15-t|0)*3|0)|0,_()|0,l=l&7,(l|0)!=0&(n^1))if((l|0)==1&(yA(f)|0)!=0){o=0,n=13;break}else n=1;if((l|0)==7){o=0,n=13;break}if(t>>>0>>0)t=t+1|0;else{n=9;break}}if((n|0)==9){if((i|0)==15)o=1;else break;return o|0}else if((n|0)==13)return o|0}while(!1);for(;;){if(o=S(e|0,A|0,(14-i|0)*3|0)|0,_()|0,!((o&7|0)==7&!0)){o=0,n=13;break}if(i>>>0<14)i=i+1|0;else{o=1,n=13;break}}return(n|0)==13?o|0:0}function E2(e,A,i,n){e=e|0,A=A|0,i=i|0,n=n|0;var t=0,l=0;if(l=S(e|0,A|0,52)|0,_()|0,l=l&15,i>>>0>15)return n=4,n|0;if((l|0)<(i|0))return n=12,n|0;if((l|0)==(i|0))return r[n>>2]=e,r[n+4>>2]=A,n=0,n|0;if(t=H(i|0,0,52)|0,t=t|e,e=_()|0|A&-15728641,(l|0)>(i|0))do A=H(7,0,(14-i|0)*3|0)|0,i=i+1|0,t=A|t,e=_()|0|e;while((i|0)<(l|0));return r[n>>2]=t,r[n+4>>2]=e,n=0,n|0}function Ve(e,A,i,n){e=e|0,A=A|0,i=i|0,n=n|0;var t=0,l=0,f=0;if(l=S(e|0,A|0,52)|0,_()|0,l=l&15,!((i|0)<16&(l|0)<=(i|0)))return n=4,n|0;t=i-l|0,i=S(e|0,A|0,45)|0,_()|0;A:do if(!(yA(i&127)|0))i=U0(7,0,t,((t|0)<0)<<31>>31)|0,t=_()|0;else{e:do if(l|0){for(i=1;f=H(7,0,(15-i|0)*3|0)|0,!!((f&e|0)==0&((_()|0)&A|0)==0);)if(i>>>0>>0)i=i+1|0;else break e;i=U0(7,0,t,((t|0)<0)<<31>>31)|0,t=_()|0;break A}while(!1);i=U0(7,0,t,((t|0)<0)<<31>>31)|0,i=cA(i|0,_()|0,5,0)|0,i=sA(i|0,_()|0,-5,-1)|0,i=J0(i|0,_()|0,6,0)|0,i=sA(i|0,_()|0,1,0)|0,t=_()|0}while(!1);return f=n,r[f>>2]=i,r[f+4>>2]=t,f=0,f|0}function pA(e,A){e=e|0,A=A|0;var i=0,n=0,t=0;if(t=S(e|0,A|0,45)|0,_()|0,!(yA(t&127)|0))return t=0,t|0;t=S(e|0,A|0,52)|0,_()|0,t=t&15;A:do if(!t)i=0;else for(n=1;;){if(i=S(e|0,A|0,(15-n|0)*3|0)|0,_()|0,i=i&7,i|0)break A;if(n>>>0>>0)n=n+1|0;else{i=0;break}}while(!1);return t=(i|0)==0&1,t|0}function D1(e,A,i,n){e=e|0,A=A|0,i=i|0,n=n|0;var t=0,l=0,f=0,o=0;if(f=w,w=w+16|0,l=f,Br(l,e,A,i),A=l,e=r[A>>2]|0,A=r[A+4>>2]|0,(e|0)==0&(A|0)==0)return w=f,0;t=0,i=0;do o=n+(t<<3)|0,r[o>>2]=e,r[o+4>>2]=A,t=sA(t|0,i|0,1,0)|0,i=_()|0,_r(l),o=l,e=r[o>>2]|0,A=r[o+4>>2]|0;while(!((e|0)==0&(A|0)==0));return w=f,0}function C1(e,A,i,n){return e=e|0,A=A|0,i=i|0,n=n|0,(n|0)<(i|0)?(i=A,n=e,uA(i|0),n|0):(i=H(-1,-1,((n-i|0)*3|0)+3|0)|0,n=H(~i|0,~(_()|0)|0,(15-n|0)*3|0)|0,i=~(_()|0)&A,n=~n&e,uA(i|0),n|0)}function b1(e,A,i,n){e=e|0,A=A|0,i=i|0,n=n|0;var t=0;return t=S(e|0,A|0,52)|0,_()|0,t=t&15,(i|0)<16&(t|0)<=(i|0)?((t|0)<(i|0)&&(t=H(-1,-1,((i+-1-t|0)*3|0)+3|0)|0,t=H(~t|0,~(_()|0)|0,(15-i|0)*3|0)|0,A=~(_()|0)&A,e=~t&e),t=H(i|0,0,52)|0,i=A&-15728641|(_()|0),r[n>>2]=e|t,r[n+4>>2]=i,n=0,n|0):(n=4,n|0)}function Q1(e,A,i,n){e=e|0,A=A|0,i=i|0,n=n|0;var t=0,l=0,f=0,o=0,u=0,s=0,g=0,B=0,a=0,D=0,k=0,Q=0,G=0,p=0,M=0,I=0,b=0,Y=0,Z=0,V=0,c=0;if((i|0)==0&(n|0)==0)return V=0,V|0;if(t=e,l=r[t>>2]|0,t=r[t+4>>2]|0,!0&(t&15728640|0)==0){if(!((n|0)>0|(n|0)==0&i>>>0>0)||(V=A,r[V>>2]=l,r[V+4>>2]=t,(i|0)==1&(n|0)==0))return V=0,V|0;t=1;do Y=e+(t<<3)|0,Z=r[Y+4>>2]|0,V=A+(t<<3)|0,r[V>>2]=r[Y>>2],r[V+4>>2]=Z,t=t+1|0;while(0<(n|0)|(n|0)==0&t>>>0>>0);return t=0,t|0}if(b=i<<3,Z=_0(b)|0,!Z)return V=13,V|0;if(ze(Z|0,e|0,b|0)|0,Y=k0(i,8)|0,!Y)return iA(Z),V=13,V|0;A:do if(i|0){e:for(;;){t=Z,p=r[t>>2]|0,t=r[t+4>>2]|0,M=S(p|0,t|0,52)|0,_()|0,M=M&15,I=M+-1|0,G=(i|0)>0;r:do if((M|0)!=0&G){if(D=((i|0)<0)<<31>>31,k=H(I|0,0,52)|0,Q=_()|0,I>>>0>15){if(!((p|0)==0&(t|0)==0)){V=17;break e}for(l=0;;){if(l=l+1|0,(l|0)>=(i|0))break r;if(n=Z+(l<<3)|0,Q=r[n>>2]|0,n=r[n+4>>2]|0,!((Q|0)==0&(n|0)==0)){t=n,V=17;break e}}}for(l=0,e=p,n=t;;){if(!((e|0)==0&(n|0)==0)){if(!(!0&(n&117440512|0)==0)){V=22;break e}if(o=S(e|0,n|0,52)|0,_()|0,o=o&15,(o|0)<(I|0)){t=12,V=28;break e}if((o|0)!=(I|0)&&(e=e|k,n=n&-15728641|Q,o>>>0>=M>>>0)){f=I;do a=H(7,0,(14-f|0)*3|0)|0,f=f+1|0,e=a|e,n=_()|0|n;while(f>>>0>>0)}if(f=ge(e|0,n|0,i|0,D|0)|0,_()|0,s=Y+(f<<3)|0,o=s,u=r[o>>2]|0,o=r[o+4>>2]|0,(u|0)==0&(o|0)==0)f=s;else for(a=0;;){if((a|0)>(i|0)){V=32;break e}if((u|0)==(e|0)&(o&-117440513|0)==(n|0)){g=S(u|0,o|0,56)|0,_()|0,g=g&7,B=g+1|0,c=S(u|0,o|0,45)|0,_()|0;i:do if(!(yA(c&127)|0))o=7;else{if(u=S(u|0,o|0,52)|0,_()|0,u=u&15,!u){o=6;break}for(o=1;;){if(c=H(7,0,(15-o|0)*3|0)|0,!((c&e|0)==0&((_()|0)&n|0)==0)){o=7;break i}if(o>>>0>>0)o=o+1|0;else{o=6;break}}}while(!1);if((g+2|0)>>>0>o>>>0){V=42;break e}c=H(B|0,0,56)|0,n=_()|0|n&-117440513,B=s,r[B>>2]=0,r[B+4>>2]=0,e=c|e}else f=(f+1|0)%(i|0)|0;if(s=Y+(f<<3)|0,o=s,u=r[o>>2]|0,o=r[o+4>>2]|0,(u|0)==0&(o|0)==0){f=s;break}else a=a+1|0}c=f,r[c>>2]=e,r[c+4>>2]=n}if(l=l+1|0,(l|0)>=(i|0))break r;n=Z+(l<<3)|0,e=r[n>>2]|0,n=r[n+4>>2]|0}}while(!1);if((i+5|0)>>>0<11){V=85;break}if(Q=k0((i|0)/6|0,8)|0,!Q){V=49;break}r:do if(G){a=0,B=0;do{if(o=Y+(a<<3)|0,n=o,l=r[n>>2]|0,n=r[n+4>>2]|0,!((l|0)==0&(n|0)==0)){u=S(l|0,n|0,56)|0,_()|0,u=u&7,e=u+1|0,s=n&-117440513,c=S(l|0,n|0,45)|0,_()|0;i:do if(yA(c&127)|0){if(g=S(l|0,n|0,52)|0,_()|0,g=g&15,g|0)for(f=1;;){if(c=H(7,0,(15-f|0)*3|0)|0,!((l&c|0)==0&(s&(_()|0)|0)==0))break i;if(f>>>0>>0)f=f+1|0;else break}n=H(e|0,0,56)|0,l=n|l,n=_()|0|s,e=o,r[e>>2]=l,r[e+4>>2]=n,e=u+2|0}while(!1);(e|0)==7&&(c=Q+(B<<3)|0,r[c>>2]=l,r[c+4>>2]=n&-117440513,B=B+1|0)}a=a+1|0}while((a|0)!=(i|0));if(G){if(a=((i|0)<0)<<31>>31,D=H(I|0,0,52)|0,k=_()|0,I>>>0>15){if(!((p|0)==0&(t|0)==0)){t=4,V=84;break e}for(t=0;;){if(t=t+1|0,(t|0)>=(i|0)){l=0,t=B;break r}if(c=Z+(t<<3)|0,!((r[c>>2]|0)==0&(r[c+4>>2]|0)==0)){t=4,V=84;break e}}}for(g=0,l=0,s=p;;){do if(!((s|0)==0&(t|0)==0)){if(o=S(s|0,t|0,52)|0,_()|0,o=o&15,(o|0)<(I|0)){t=12,V=84;break e}do if((o|0)==(I|0))n=s,o=t;else{if(n=s|D,e=t&-15728641|k,o>>>0>>0){o=e;break}f=I;do c=H(7,0,(14-f|0)*3|0)|0,f=f+1|0,n=c|n,e=_()|0|e;while(f>>>0>>0);o=e}while(!1);for(f=ge(n|0,o|0,i|0,a|0)|0,_()|0,e=0;;){if((e|0)>(i|0)){V=77;break e}if(c=Y+(f<<3)|0,u=r[c+4>>2]|0,(u&-117440513|0)==(o|0)&&(r[c>>2]|0)==(n|0)){V=79;break}if(f=(f+1|0)%(i|0)|0,c=Y+(f<<3)|0,(r[c>>2]|0)==(n|0)&&(r[c+4>>2]|0)==(o|0))break;e=e+1|0}if((V|0)==79&&(V=0,!0&(u&117440512|0)==100663296))break;c=A+(l<<3)|0,r[c>>2]=s,r[c+4>>2]=t,l=l+1|0}while(!1);if(t=g+1|0,(t|0)>=(i|0)){t=B;break r}c=Z+(t<<3)|0,g=t,s=r[c>>2]|0,t=r[c+4>>2]|0}}else l=0,t=B}else l=0,t=0;while(!1);if(X0(Y|0,0,b|0)|0,ze(Z|0,Q|0,t<<3|0)|0,iA(Q),t)A=A+(l<<3)|0,i=t;else break A}if((V|0)==17)!0&(t&117440512|0)==0?(t=4,V=28):V=22;else if((V|0)==32)AA(23313,22674,362,22684);else{if((V|0)==42)return iA(Z),iA(Y),c=10,c|0;if((V|0)==49)return iA(Z),iA(Y),c=13,c|0;if((V|0)==77)AA(23313,22674,462,22684);else{if((V|0)==84)return iA(Q),iA(Z),iA(Y),c=t,c|0;if((V|0)==85){ze(A|0,Z|0,i<<3|0)|0;break}}}if((V|0)==22)return iA(Z),iA(Y),c=5,c|0;if((V|0)==28)return iA(Z),iA(Y),c=t,c|0}while(!1);return iA(Z),iA(Y),c=0,c|0}function m1(e,A,i,n,t,l,f){e=e|0,A=A|0,i=i|0,n=n|0,t=t|0,l=l|0,f=f|0;var o=0,u=0,s=0,g=0,B=0,a=0,D=0,k=0,Q=0;if(Q=w,w=w+16|0,k=Q,!((i|0)>0|(i|0)==0&A>>>0>0))return k=0,w=Q,k|0;if((f|0)>=16)return k=12,w=Q,k|0;a=0,D=0,B=0,o=0;A:for(;;){if(s=e+(a<<3)|0,u=r[s>>2]|0,s=r[s+4>>2]|0,g=S(u|0,s|0,52)|0,_()|0,(g&15|0)>(f|0)){o=12,u=11;break}if(Br(k,u,s,f),g=k,s=r[g>>2]|0,g=r[g+4>>2]|0,(s|0)==0&(g|0)==0)u=B;else{u=B;do{if(!((o|0)<(l|0)|(o|0)==(l|0)&u>>>0>>0)){u=10;break A}B=n+(u<<3)|0,r[B>>2]=s,r[B+4>>2]=g,u=sA(u|0,o|0,1,0)|0,o=_()|0,_r(k),B=k,s=r[B>>2]|0,g=r[B+4>>2]|0}while(!((s|0)==0&(g|0)==0))}if(a=sA(a|0,D|0,1,0)|0,D=_()|0,(D|0)<(i|0)|(D|0)==(i|0)&a>>>0>>0)B=u;else{o=0,u=11;break}}return(u|0)==10?(k=14,w=Q,k|0):(u|0)==11?(w=Q,o|0):0}function M1(e,A,i,n,t){e=e|0,A=A|0,i=i|0,n=n|0,t=t|0;var l=0,f=0,o=0,u=0,s=0,g=0,B=0,a=0;a=w,w=w+16|0,B=a;A:do if((i|0)>0|(i|0)==0&A>>>0>0){for(s=0,f=0,l=0,g=0;;){if(u=e+(s<<3)|0,o=r[u>>2]|0,u=r[u+4>>2]|0,!((o|0)==0&(u|0)==0)&&(u=(Ve(o,u,n,B)|0)==0,o=B,f=sA(r[o>>2]|0,r[o+4>>2]|0,f|0,l|0)|0,l=_()|0,!u)){l=12;break}if(s=sA(s|0,g|0,1,0)|0,g=_()|0,!((g|0)<(i|0)|(g|0)==(i|0)&s>>>0>>0))break A}return w=a,l|0}else f=0,l=0;while(!1);return r[t>>2]=f,r[t+4>>2]=l,t=0,w=a,t|0}function P1(e,A){return e=e|0,A=A|0,A=S(e|0,A|0,52)|0,_()|0,A&1|0}function XA(e,A){e=e|0,A=A|0;var i=0,n=0,t=0;if(t=S(e|0,A|0,52)|0,_()|0,t=t&15,!t)return t=0,t|0;for(n=1;;){if(i=S(e|0,A|0,(15-n|0)*3|0)|0,_()|0,i=i&7,i|0){n=5;break}if(n>>>0>>0)n=n+1|0;else{i=0,n=5;break}}return(n|0)==5?i|0:0}function D2(e,A){e=e|0,A=A|0;var i=0,n=0,t=0,l=0,f=0,o=0,u=0;if(u=S(e|0,A|0,52)|0,_()|0,u=u&15,!u)return o=A,u=e,uA(o|0),u|0;for(o=1,i=0;;){l=(15-o|0)*3|0,n=H(7,0,l|0)|0,t=_()|0,f=S(e|0,A|0,l|0)|0,_()|0,l=H(x0(f&7)|0,0,l|0)|0,f=_()|0,e=l|e&~n,A=f|A&~t;A:do if(!i)if((l&n|0)==0&(f&t|0)==0)i=0;else if(n=S(e|0,A|0,52)|0,_()|0,n=n&15,!n)i=1;else{i=1;e:for(;;){switch(f=S(e|0,A|0,(15-i|0)*3|0)|0,_()|0,f&7){case 1:break e;case 0:break;default:{i=1;break A}}if(i>>>0>>0)i=i+1|0;else{i=1;break A}}for(i=1;;)if(f=(15-i|0)*3|0,t=S(e|0,A|0,f|0)|0,_()|0,l=H(7,0,f|0)|0,A=A&~(_()|0),f=H(x0(t&7)|0,0,f|0)|0,e=e&~l|f,A=A|(_()|0),i>>>0>>0)i=i+1|0;else{i=1;break}}while(!1);if(o>>>0>>0)o=o+1|0;else break}return uA(A|0),e|0}function K0(e,A){e=e|0,A=A|0;var i=0,n=0,t=0,l=0,f=0;if(n=S(e|0,A|0,52)|0,_()|0,n=n&15,!n)return i=A,n=e,uA(i|0),n|0;for(i=1;l=(15-i|0)*3|0,f=S(e|0,A|0,l|0)|0,_()|0,t=H(7,0,l|0)|0,A=A&~(_()|0),l=H(x0(f&7)|0,0,l|0)|0,e=l|e&~t,A=_()|0|A,i>>>0>>0;)i=i+1|0;return uA(A|0),e|0}function I1(e,A){e=e|0,A=A|0;var i=0,n=0,t=0,l=0,f=0,o=0,u=0;if(u=S(e|0,A|0,52)|0,_()|0,u=u&15,!u)return o=A,u=e,uA(o|0),u|0;for(o=1,i=0;;){l=(15-o|0)*3|0,n=H(7,0,l|0)|0,t=_()|0,f=S(e|0,A|0,l|0)|0,_()|0,l=H(F0(f&7)|0,0,l|0)|0,f=_()|0,e=l|e&~n,A=f|A&~t;A:do if(!i)if((l&n|0)==0&(f&t|0)==0)i=0;else if(n=S(e|0,A|0,52)|0,_()|0,n=n&15,!n)i=1;else{i=1;e:for(;;){switch(f=S(e|0,A|0,(15-i|0)*3|0)|0,_()|0,f&7){case 1:break e;case 0:break;default:{i=1;break A}}if(i>>>0>>0)i=i+1|0;else{i=1;break A}}for(i=1;;)if(t=(15-i|0)*3|0,l=H(7,0,t|0)|0,f=A&~(_()|0),A=S(e|0,A|0,t|0)|0,_()|0,A=H(F0(A&7)|0,0,t|0)|0,e=e&~l|A,A=f|(_()|0),i>>>0>>0)i=i+1|0;else{i=1;break}}while(!1);if(o>>>0>>0)o=o+1|0;else break}return uA(A|0),e|0}function C2(e,A){e=e|0,A=A|0;var i=0,n=0,t=0,l=0,f=0;if(n=S(e|0,A|0,52)|0,_()|0,n=n&15,!n)return i=A,n=e,uA(i|0),n|0;for(i=1;f=(15-i|0)*3|0,l=H(7,0,f|0)|0,t=A&~(_()|0),A=S(e|0,A|0,f|0)|0,_()|0,A=H(F0(A&7)|0,0,f|0)|0,e=A|e&~l,A=_()|0|t,i>>>0>>0;)i=i+1|0;return uA(A|0),e|0}function y1(e,A){e=e|0,A=A|0;var i=0,n=0,t=0,l=0,f=0,o=0,u=0,s=0,g=0;if(u=w,w=w+64|0,o=u+40|0,n=u+24|0,t=u+12|0,l=u,H(A|0,0,52)|0,i=_()|0|134225919,!A)return(r[e+4>>2]|0)>2||(r[e+8>>2]|0)>2||(r[e+12>>2]|0)>2?(f=0,o=0,uA(f|0),w=u,o|0):(H(q2(e)|0,0,45)|0,f=_()|0|i,o=-1,uA(f|0),w=u,o|0);if(r[o>>2]=r[e>>2],r[o+4>>2]=r[e+4>>2],r[o+8>>2]=r[e+8>>2],r[o+12>>2]=r[e+12>>2],f=o+4|0,(A|0)>0)for(e=-1;r[n>>2]=r[f>>2],r[n+4>>2]=r[f+4>>2],r[n+8>>2]=r[f+8>>2],A&1?(i1(f),r[t>>2]=r[f>>2],r[t+4>>2]=r[f+4>>2],r[t+8>>2]=r[f+8>>2],Re(t)):(nr(f),r[t>>2]=r[f>>2],r[t+4>>2]=r[f+4>>2],r[t+8>>2]=r[f+8>>2],W0(t)),h2(n,t,l),zA(l),g=(15-A|0)*3|0,s=H(7,0,g|0)|0,i=i&~(_()|0),g=H(Ue(l)|0,0,g|0)|0,e=g|e&~s,i=_()|0|i,(A|0)>1;)A=A+-1|0;else e=-1;A:do if((r[f>>2]|0)<=2&&(r[o+8>>2]|0)<=2&&(r[o+12>>2]|0)<=2){if(n=q2(o)|0,A=H(n|0,0,45)|0,A=A|e,e=_()|0|i&-1040385,l=Wi(o)|0,!(yA(n)|0)){if((l|0)<=0)break;for(t=0;;){if(n=S(A|0,e|0,52)|0,_()|0,n=n&15,n)for(i=1;g=(15-i|0)*3|0,o=S(A|0,e|0,g|0)|0,_()|0,s=H(7,0,g|0)|0,e=e&~(_()|0),g=H(x0(o&7)|0,0,g|0)|0,A=A&~s|g,e=e|(_()|0),i>>>0>>0;)i=i+1|0;if(t=t+1|0,(t|0)==(l|0))break A}}t=S(A|0,e|0,52)|0,_()|0,t=t&15;e:do if(t){i=1;r:for(;;){switch(g=S(A|0,e|0,(15-i|0)*3|0)|0,_()|0,g&7){case 1:break r;case 0:break;default:break e}if(i>>>0>>0)i=i+1|0;else break e}if($2(n,r[o>>2]|0)|0)for(i=1;o=(15-i|0)*3|0,s=H(7,0,o|0)|0,g=e&~(_()|0),e=S(A|0,e|0,o|0)|0,_()|0,e=H(F0(e&7)|0,0,o|0)|0,A=A&~s|e,e=g|(_()|0),i>>>0>>0;)i=i+1|0;else for(i=1;g=(15-i|0)*3|0,o=S(A|0,e|0,g|0)|0,_()|0,s=H(7,0,g|0)|0,e=e&~(_()|0),g=H(x0(o&7)|0,0,g|0)|0,A=A&~s|g,e=e|(_()|0),i>>>0>>0;)i=i+1|0}while(!1);if((l|0)>0){i=0;do A=D2(A,e)|0,e=_()|0,i=i+1|0;while((i|0)!=(l|0))}}else A=0,e=0;while(!1);return s=e,g=A,uA(s|0),w=u,g|0}function n0(e){return e=e|0,(e|0)%2|0|0}function wr(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0;return t=w,w=w+16|0,n=t,A>>>0>15?(n=4,w=t,n|0):(r[e+4>>2]&2146435072|0)==2146435072||(r[e+8+4>>2]&2146435072|0)==2146435072?(n=3,w=t,n|0):(h1(e,A,n),A=y1(n,A)|0,n=_()|0,r[i>>2]=A,r[i+4>>2]=n,(A|0)==0&(n|0)==0&&AA(23313,22674,786,22697),n=0,w=t,n|0)}function b2(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0,f=0;if(t=i+4|0,l=S(e|0,A|0,52)|0,_()|0,l=l&15,f=S(e|0,A|0,45)|0,_()|0,n=(l|0)==0,yA(f&127)|0){if(n)return f=1,f|0;n=1}else{if(n)return f=0,f|0;!(r[t>>2]|0)&&!(r[i+8>>2]|0)?n=(r[i+12>>2]|0)!=0&1:n=1}for(i=1;i&1?Re(t):W0(t),f=S(e|0,A|0,(15-i|0)*3|0)|0,_()|0,tr(t,f&7),i>>>0>>0;)i=i+1|0;return n|0}function ue(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0,f=0,o=0,u=0,s=0,g=0;if(g=w,w=w+16|0,u=g,s=S(e|0,A|0,45)|0,_()|0,s=s&127,s>>>0>121)return r[i>>2]=0,r[i+4>>2]=0,r[i+8>>2]=0,r[i+12>>2]=0,s=5,w=g,s|0;A:do if(yA(s)|0&&(l=S(e|0,A|0,52)|0,_()|0,l=l&15,(l|0)!=0)){n=1;e:for(;;){switch(o=S(e|0,A|0,(15-n|0)*3|0)|0,_()|0,o&7){case 5:break e;case 0:break;default:{n=A;break A}}if(n>>>0>>0)n=n+1|0;else{n=A;break A}}for(t=1,n=A;A=(15-t|0)*3|0,f=H(7,0,A|0)|0,o=n&~(_()|0),n=S(e|0,n|0,A|0)|0,_()|0,n=H(F0(n&7)|0,0,A|0)|0,e=e&~f|n,n=o|(_()|0),t>>>0>>0;)t=t+1|0}else n=A;while(!1);if(o=7696+(s*28|0)|0,r[i>>2]=r[o>>2],r[i+4>>2]=r[o+4>>2],r[i+8>>2]=r[o+8>>2],r[i+12>>2]=r[o+12>>2],!(b2(e,n,i)|0))return s=0,w=g,s|0;if(f=i+4|0,r[u>>2]=r[f>>2],r[u+4>>2]=r[f+4>>2],r[u+8>>2]=r[f+8>>2],l=S(e|0,n|0,52)|0,_()|0,o=l&15,l&1?(W0(f),l=o+1|0):l=o,!(yA(s)|0))n=0;else{A:do if(!o)n=0;else for(A=1;;){if(t=S(e|0,n|0,(15-A|0)*3|0)|0,_()|0,t=t&7,t|0){n=t;break A}if(A>>>0>>0)A=A+1|0;else{n=0;break}}while(!1);n=(n|0)==4&1}if(!(oe(i,l,n,0)|0))(l|0)!=(o|0)&&(r[f>>2]=r[u>>2],r[f+4>>2]=r[u+4>>2],r[f+8>>2]=r[u+8>>2]);else{if(yA(s)|0)do;while(oe(i,l,0,0)|0);(l|0)!=(o|0)&&nr(f)}return s=0,w=g,s|0}function ae(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0;return l=w,w=w+16|0,n=l,t=ue(e,A,n)|0,t|0?(w=l,t|0):(t=S(e|0,A|0,52)|0,_()|0,k1(n,t&15,i),t=0,w=l,t|0)}function Ee(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0,f=0,o=0;if(f=w,w=w+16|0,l=f,n=ue(e,A,l)|0,n|0)return l=n,w=f,l|0;n=S(e|0,A|0,45)|0,_()|0,n=(yA(n&127)|0)==0,t=S(e|0,A|0,52)|0,_()|0,t=t&15;A:do if(!n){if(t|0)for(n=1;;){if(o=H(7,0,(15-n|0)*3|0)|0,!((o&e|0)==0&((_()|0)&A|0)==0))break A;if(n>>>0>>0)n=n+1|0;else break}return _2(l,t,0,5,i),o=0,w=f,o|0}while(!1);return k2(l,t,0,6,i),o=0,w=f,o|0}function p1(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0;if(t=S(e|0,A|0,45)|0,_()|0,!(yA(t&127)|0))return t=2,r[i>>2]=t,0;if(t=S(e|0,A|0,52)|0,_()|0,t=t&15,!t)return t=5,r[i>>2]=t,0;for(n=1;;){if(l=H(7,0,(15-n|0)*3|0)|0,!((l&e|0)==0&((_()|0)&A|0)==0)){n=2,e=6;break}if(n>>>0>>0)n=n+1|0;else{n=5,e=6;break}}return(e|0)==6&&(r[i>>2]=n),0}function hr(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0,f=0,o=0,u=0,s=0,g=0,B=0;B=w,w=w+128|0,s=B+112|0,l=B+96|0,g=B,t=S(e|0,A|0,52)|0,_()|0,o=t&15,r[s>>2]=o,f=S(e|0,A|0,45)|0,_()|0,f=f&127;A:do if(yA(f)|0){if(o|0)for(n=1;;){if(u=H(7,0,(15-n|0)*3|0)|0,!((u&e|0)==0&((_()|0)&A|0)==0)){t=0;break A}if(n>>>0>>0)n=n+1|0;else break}if(t&1)t=1;else return u=H(o+1|0,0,52)|0,g=_()|0|A&-15728641,s=H(7,0,(14-o|0)*3|0)|0,g=hr((u|e)&~s,g&~(_()|0),i)|0,w=B,g|0}else t=0;while(!1);if(n=ue(e,A,l)|0,!n){t?(sr(l,s,g),u=5):(gr(l,s,g),u=6);A:do if(yA(f)|0)if(!o)e=5;else for(n=1;;){if(f=H(7,0,(15-n|0)*3|0)|0,!((f&e|0)==0&((_()|0)&A|0)==0)){e=2;break A}if(n>>>0>>0)n=n+1|0;else{e=5;break}}else e=2;while(!1);X0(i|0,-1,e<<2|0)|0;A:do if(t)for(l=0;;){if(f=g+(l<<4)|0,a1(f,r[s>>2]|0)|0,f=r[f>>2]|0,o=r[i>>2]|0,(o|0)==-1|(o|0)==(f|0))n=i;else{t=0;do{if(t=t+1|0,t>>>0>=e>>>0){n=1;break A}n=i+(t<<2)|0,o=r[n>>2]|0}while(!((o|0)==-1|(o|0)==(f|0)))}if(r[n>>2]=f,l=l+1|0,l>>>0>=u>>>0){n=0;break}}else for(l=0;;){if(f=g+(l<<4)|0,oe(f,r[s>>2]|0,0,1)|0,f=r[f>>2]|0,o=r[i>>2]|0,(o|0)==-1|(o|0)==(f|0))n=i;else{t=0;do{if(t=t+1|0,t>>>0>=e>>>0){n=1;break A}n=i+(t<<2)|0,o=r[n>>2]|0}while(!((o|0)==-1|(o|0)==(f|0)))}if(r[n>>2]=f,l=l+1|0,l>>>0>=u>>>0){n=0;break}}while(!1)}return g=n,w=B,g|0}function G1(){return 12}function Q2(e,A){e=e|0,A=A|0;var i=0,n=0,t=0,l=0,f=0,o=0,u=0;if(e>>>0>15)return o=4,o|0;if(H(e|0,0,52)|0,o=_()|0|134225919,!e){i=0,n=0;do yA(n)|0&&(H(n|0,0,45)|0,f=o|(_()|0),e=A+(i<<3)|0,r[e>>2]=-1,r[e+4>>2]=f,i=i+1|0),n=n+1|0;while((n|0)!=122);return i=0,i|0}i=0,f=0;do{if(yA(f)|0){for(H(f|0,0,45)|0,n=1,t=-1,l=o|(_()|0);u=H(7,0,(15-n|0)*3|0)|0,t=t&~u,l=l&~(_()|0),(n|0)!=(e|0);)n=n+1|0;u=A+(i<<3)|0,r[u>>2]=t,r[u+4>>2]=l,i=i+1|0}f=f+1|0}while((f|0)!=122);return i=0,i|0}function L1(e,A,i,n){e=e|0,A=A|0,i=i|0,n=n|0;var t=0,l=0,f=0,o=0,u=0,s=0,g=0,B=0,a=0,D=0,k=0,Q=0,G=0,p=0,M=0;if(M=w,w=w+16|0,G=M,p=S(e|0,A|0,52)|0,_()|0,p=p&15,i>>>0>15)return p=4,w=M,p|0;if((p|0)<(i|0))return p=12,w=M,p|0;if((p|0)!=(i|0))if(l=H(i|0,0,52)|0,l=l|e,o=_()|0|A&-15728641,(p|0)>(i|0)){u=i;do Q=H(7,0,(14-u|0)*3|0)|0,u=u+1|0,l=Q|l,o=_()|0|o;while((u|0)<(p|0));Q=l}else Q=l;else Q=e,o=A;k=S(Q|0,o|0,45)|0,_()|0;A:do if(yA(k&127)|0){if(u=S(Q|0,o|0,52)|0,_()|0,u=u&15,u|0)for(l=1;;){if(k=H(7,0,(15-l|0)*3|0)|0,!((k&Q|0)==0&((_()|0)&o|0)==0)){s=33;break A}if(l>>>0>>0)l=l+1|0;else break}if(k=n,r[k>>2]=0,r[k+4>>2]=0,(p|0)>(i|0)){for(k=A&-15728641,D=p;;){if(a=D,D=D+-1|0,D>>>0>15|(p|0)<(D|0)){s=19;break}if((p|0)!=(D|0))if(l=H(D|0,0,52)|0,l=l|e,u=_()|0|k,(p|0)<(a|0))B=l;else{s=D;do B=H(7,0,(14-s|0)*3|0)|0,s=s+1|0,l=B|l,u=_()|0|u;while((s|0)<(p|0));B=l}else B=e,u=A;if(g=S(B|0,u|0,45)|0,_()|0,!(yA(g&127)|0))l=0;else{g=S(B|0,u|0,52)|0,_()|0,g=g&15;e:do if(!g)l=0;else for(s=1;;){if(l=S(B|0,u|0,(15-s|0)*3|0)|0,_()|0,l=l&7,l|0)break e;if(s>>>0>>0)s=s+1|0;else{l=0;break}}while(!1);l=(l|0)==0&1}if(u=S(e|0,A|0,(15-a|0)*3|0)|0,_()|0,u=u&7,(u|0)==7){t=5,s=42;break}if(l=(l|0)!=0,(u|0)==1&l){t=5,s=42;break}if(B=u+(((u|0)!=0&l)<<31>>31)|0,B|0&&(s=p-a|0,s=U0(7,0,s,((s|0)<0)<<31>>31)|0,g=_()|0,l?(l=cA(s|0,g|0,5,0)|0,l=sA(l|0,_()|0,-5,-1)|0,l=J0(l|0,_()|0,6,0)|0,l=sA(l|0,_()|0,1,0)|0,u=_()|0):(l=s,u=g),a=B+-1|0,a=cA(s|0,g|0,a|0,((a|0)<0)<<31>>31|0)|0,a=sA(l|0,u|0,a|0,_()|0)|0,B=_()|0,g=n,g=sA(a|0,B|0,r[g>>2]|0,r[g+4>>2]|0)|0,B=_()|0,a=n,r[a>>2]=g,r[a+4>>2]=B),(D|0)<=(i|0)){s=37;break}}if((s|0)==19)AA(23313,22674,1099,22710);else if((s|0)==37){f=n,t=r[f+4>>2]|0,f=r[f>>2]|0;break}else if((s|0)==42)return w=M,t|0}else t=0,f=0}else s=33;while(!1);A:do if((s|0)==33)if(k=n,r[k>>2]=0,r[k+4>>2]=0,(p|0)>(i|0)){for(l=p;;){if(t=S(e|0,A|0,(15-l|0)*3|0)|0,_()|0,t=t&7,(t|0)==7){t=5;break}if(f=p-l|0,f=U0(7,0,f,((f|0)<0)<<31>>31)|0,t=cA(f|0,_()|0,t|0,0)|0,f=_()|0,k=n,f=sA(r[k>>2]|0,r[k+4>>2]|0,t|0,f|0)|0,t=_()|0,k=n,r[k>>2]=f,r[k+4>>2]=t,l=l+-1|0,(l|0)<=(i|0))break A}return w=M,t|0}else t=0,f=0;while(!1);return Ve(Q,o,p,G)|0&&AA(23313,22674,1063,22725),p=G,G=r[p+4>>2]|0,((t|0)>-1|(t|0)==-1&f>>>0>4294967295)&((G|0)>(t|0)|((G|0)==(t|0)?(r[p>>2]|0)>>>0>f>>>0:0))?(p=0,w=M,p|0):(AA(23313,22674,1139,22710),0)}function T1(e,A,i,n,t,l){e=e|0,A=A|0,i=i|0,n=n|0,t=t|0,l=l|0;var f=0,o=0,u=0,s=0,g=0,B=0,a=0,D=0,k=0,Q=0;if(B=w,w=w+16|0,f=B,t>>>0>15)return l=4,w=B,l|0;if(o=S(i|0,n|0,52)|0,_()|0,o=o&15,(o|0)>(t|0))return l=12,w=B,l|0;if(Ve(i,n,t,f)|0&&AA(23313,22674,1063,22725),g=f,s=r[g+4>>2]|0,!(((A|0)>-1|(A|0)==-1&e>>>0>4294967295)&((s|0)>(A|0)|((s|0)==(A|0)?(r[g>>2]|0)>>>0>e>>>0:0))))return l=2,w=B,l|0;g=t-o|0,t=H(t|0,0,52)|0,u=_()|0|n&-15728641,s=l,r[s>>2]=t|i,r[s+4>>2]=u,s=S(i|0,n|0,45)|0,_()|0;A:do if(yA(s&127)|0){if(o|0)for(f=1;;){if(s=H(7,0,(15-f|0)*3|0)|0,!((s&i|0)==0&((_()|0)&n|0)==0))break A;if(f>>>0>>0)f=f+1|0;else break}if((g|0)<1)return l=0,w=B,l|0;for(s=o^15,n=-1,u=1,f=1;;){o=g-u|0,o=U0(7,0,o,((o|0)<0)<<31>>31)|0,i=_()|0;do if(f)if(f=cA(o|0,i|0,5,0)|0,f=sA(f|0,_()|0,-5,-1)|0,f=J0(f|0,_()|0,6,0)|0,t=_()|0,(A|0)>(t|0)|(A|0)==(t|0)&e>>>0>f>>>0){A=sA(e|0,A|0,-1,-1)|0,A=YA(A|0,_()|0,f|0,t|0)|0,f=_()|0,a=l,k=r[a>>2]|0,a=r[a+4>>2]|0,Q=(s+n|0)*3|0,D=H(7,0,Q|0)|0,a=a&~(_()|0),n=J0(A|0,f|0,o|0,i|0)|0,e=_()|0,t=sA(n|0,e|0,2,0)|0,Q=H(t|0,_()|0,Q|0)|0,a=_()|0|a,t=l,r[t>>2]=Q|k&~D,r[t+4>>2]=a,e=cA(n|0,e|0,o|0,i|0)|0,e=YA(A|0,f|0,e|0,_()|0)|0,f=0,A=_()|0;break}else{Q=l,D=r[Q>>2]|0,Q=r[Q+4>>2]|0,k=H(7,0,(s+n|0)*3|0)|0,Q=Q&~(_()|0),f=l,r[f>>2]=D&~k,r[f+4>>2]=Q,f=1;break}else D=l,t=r[D>>2]|0,D=r[D+4>>2]|0,n=(s+n|0)*3|0,a=H(7,0,n|0)|0,D=D&~(_()|0),Q=J0(e|0,A|0,o|0,i|0)|0,f=_()|0,n=H(Q|0,f|0,n|0)|0,D=_()|0|D,k=l,r[k>>2]=n|t&~a,r[k+4>>2]=D,f=cA(Q|0,f|0,o|0,i|0)|0,e=YA(e|0,A|0,f|0,_()|0)|0,f=0,A=_()|0;while(!1);if((g|0)>(u|0))n=~u,u=u+1|0;else{A=0;break}}return w=B,A|0}while(!1);if((g|0)<1)return Q=0,w=B,Q|0;for(t=o^15,f=1;;)if(k=g-f|0,k=U0(7,0,k,((k|0)<0)<<31>>31)|0,Q=_()|0,u=l,i=r[u>>2]|0,u=r[u+4>>2]|0,o=(t-f|0)*3|0,n=H(7,0,o|0)|0,u=u&~(_()|0),a=J0(e|0,A|0,k|0,Q|0)|0,D=_()|0,o=H(a|0,D|0,o|0)|0,u=_()|0|u,s=l,r[s>>2]=o|i&~n,r[s+4>>2]=u,Q=cA(a|0,D|0,k|0,Q|0)|0,e=YA(e|0,A|0,Q|0,_()|0)|0,A=_()|0,(g|0)<=(f|0)){A=0;break}else f=f+1|0;return w=B,A|0}function Br(e,A,i,n){e=e|0,A=A|0,i=i|0,n=n|0;var t=0,l=0;t=S(A|0,i|0,52)|0,_()|0,t=t&15,(A|0)==0&(i|0)==0|((n|0)>15|(t|0)>(n|0))?(n=-1,t=-1,A=0,i=0):(l=C1(A,i,t+1|0,n)|0,i=(_()|0)&-15728641,A=H(n|0,0,52)|0,A=l|A,i=i|(_()|0),l=(pA(A,i)|0)==0,n=l?-1:n),l=e,r[l>>2]=A,r[l+4>>2]=i,r[e+8>>2]=t,r[e+12>>2]=n}function _r(e){e=e|0;var A=0,i=0,n=0,t=0,l=0,f=0,o=0,u=0,s=0;if(i=e,A=r[i>>2]|0,i=r[i+4>>2]|0,!((A|0)==0&(i|0)==0)&&(n=S(A|0,i|0,52)|0,_()|0,n=n&15,o=H(1,0,(n^15)*3|0)|0,A=sA(o|0,_()|0,A|0,i|0)|0,i=_()|0,o=e,r[o>>2]=A,r[o+4>>2]=i,o=e+8|0,f=r[o>>2]|0,!((n|0)<(f|0)))){for(u=e+12|0,l=n;;){if((l|0)==(f|0)){n=5;break}if(s=(l|0)==(r[u>>2]|0),t=(15-l|0)*3|0,n=S(A|0,i|0,t|0)|0,_()|0,n=n&7,s&((n|0)==1&!0)){n=7;break}if(!((n|0)==7&!0)){n=10;break}if(s=H(1,0,t|0)|0,A=sA(A|0,i|0,s|0,_()|0)|0,i=_()|0,s=e,r[s>>2]=A,r[s+4>>2]=i,(l|0)>(f|0))l=l+-1|0;else{n=10;break}}if((n|0)==5){s=e,r[s>>2]=0,r[s+4>>2]=0,r[o>>2]=-1,r[u>>2]=-1;return}else if((n|0)==7){f=H(1,0,t|0)|0,f=sA(A|0,i|0,f|0,_()|0)|0,o=_()|0,s=e,r[s>>2]=f,r[s+4>>2]=o,r[u>>2]=l+-1;return}else if((n|0)==10)return}}function De(e){e=+e;var A=0;return A=e<0?e+6.283185307179586:e,+(e>=6.283185307179586?A+-6.283185307179586:A)}function se(e,A){return e=e|0,A=A|0,+EA(+(+h[e>>3]-+h[A>>3]))<17453292519943298e-27?(A=+EA(+(+h[e+8>>3]-+h[A+8>>3]))<17453292519943298e-27,A|0):(A=0,A|0)}function F1(e,A){e=e|0,A=A|0;var i=0,n=0,t=0,l=0;return t=+h[A>>3],n=+h[e>>3],l=+kA(+((t-n)*.5)),i=+kA(+((+h[A+8>>3]-+h[e+8>>3])*.5)),i=l*l+i*(+_A(+t)*+_A(+n)*i),+(+i0(+ +GA(+i),+ +GA(+(1-i)))*2)}function Ce(e,A){e=e|0,A=A|0;var i=0,n=0,t=0,l=0;return t=+h[A>>3],n=+h[e>>3],l=+kA(+((t-n)*.5)),i=+kA(+((+h[A+8>>3]-+h[e+8>>3])*.5)),i=l*l+i*(+_A(+t)*+_A(+n)*i),+(+i0(+ +GA(+i),+ +GA(+(1-i)))*2*6371.007180918475)}function U1(e,A){e=e|0,A=A|0;var i=0,n=0,t=0,l=0;return t=+h[A>>3],n=+h[e>>3],l=+kA(+((t-n)*.5)),i=+kA(+((+h[A+8>>3]-+h[e+8>>3])*.5)),i=l*l+i*(+_A(+t)*+_A(+n)*i),+(+i0(+ +GA(+i),+ +GA(+(1-i)))*2*6371.007180918475*1e3)}function R1(e,A){e=e|0,A=A|0;var i=0,n=0,t=0,l=0,f=0;return l=+h[A>>3],n=+_A(+l),t=+h[A+8>>3]-+h[e+8>>3],f=n*+kA(+t),i=+h[e>>3],+ +i0(+f,+(+kA(+l)*+_A(+i)-+_A(+t)*(n*+kA(+i))))}function S1(e,A,i,n){e=e|0,A=+A,i=+i,n=n|0;var t=0,l=0,f=0,o=0;if(i<1e-16){r[n>>2]=r[e>>2],r[n+4>>2]=r[e+4>>2],r[n+8>>2]=r[e+8>>2],r[n+12>>2]=r[e+12>>2];return}l=A<0?A+6.283185307179586:A,l=A>=6.283185307179586?l+-6.283185307179586:l;do if(l<1e-16)A=+h[e>>3]+i,h[n>>3]=A,t=n;else{if(t=+EA(+(l+-3.141592653589793))<1e-16,A=+h[e>>3],t){A=A-i,h[n>>3]=A,t=n;break}if(f=+_A(+i),i=+kA(+i),A=f*+kA(+A)+ +_A(+l)*(i*+_A(+A)),A=A>1?1:A,A=+Gi(+(A<-1?-1:A)),h[n>>3]=A,+EA(+(A+-1.5707963267948966))<1e-16){h[n>>3]=1.5707963267948966,h[n+8>>3]=0;return}if(+EA(+(A+1.5707963267948966))<1e-16){h[n>>3]=-1.5707963267948966,h[n+8>>3]=0;return}if(o=+_A(+A),l=i*+kA(+l)/o,i=+h[e>>3],A=(f-+kA(+A)*+kA(+i))/+_A(+i)/o,f=l>1?1:l,A=A>1?1:A,A=+h[e+8>>3]+ +i0(+(f<-1?-1:f),+(A<-1?-1:A)),A>3.141592653589793)do A=A+-6.283185307179586;while(A>3.141592653589793);if(A<-3.141592653589793)do A=A+6.283185307179586;while(A<-3.141592653589793);h[n+8>>3]=A;return}while(!1);if(+EA(+(A+-1.5707963267948966))<1e-16){h[t>>3]=1.5707963267948966,h[n+8>>3]=0;return}if(+EA(+(A+1.5707963267948966))<1e-16){h[t>>3]=-1.5707963267948966,h[n+8>>3]=0;return}if(A=+h[e+8>>3],A>3.141592653589793)do A=A+-6.283185307179586;while(A>3.141592653589793);if(A<-3.141592653589793)do A=A+6.283185307179586;while(A<-3.141592653589793);h[n+8>>3]=A}function O1(e,A){return e=e|0,A=A|0,e>>>0>15?(A=4,A|0):(h[A>>3]=+h[20528+(e<<3)>>3],A=0,A|0)}function V1(e,A){return e=e|0,A=A|0,e>>>0>15?(A=4,A|0):(h[A>>3]=+h[20656+(e<<3)>>3],A=0,A|0)}function N1(e,A){return e=e|0,A=A|0,e>>>0>15?(A=4,A|0):(h[A>>3]=+h[20784+(e<<3)>>3],A=0,A|0)}function H1(e,A){return e=e|0,A=A|0,e>>>0>15?(A=4,A|0):(h[A>>3]=+h[20912+(e<<3)>>3],A=0,A|0)}function m2(e,A){e=e|0,A=A|0;var i=0;return e>>>0>15?(A=4,A|0):(i=U0(7,0,e,((e|0)<0)<<31>>31)|0,i=cA(i|0,_()|0,120,0)|0,e=_()|0,r[A>>2]=i|2,r[A+4>>2]=e,A=0,A|0)}function kr(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0,f=0,o=0,u=0,s=0,g=0,B=0,a=0;return a=+h[A>>3],g=+h[e>>3],u=+kA(+((a-g)*.5)),l=+h[A+8>>3],s=+h[e+8>>3],f=+kA(+((l-s)*.5)),o=+_A(+g),B=+_A(+a),f=u*u+f*(B*o*f),f=+i0(+ +GA(+f),+ +GA(+(1-f)))*2,u=+h[i>>3],a=+kA(+((u-a)*.5)),n=+h[i+8>>3],l=+kA(+((n-l)*.5)),t=+_A(+u),l=a*a+l*(B*t*l),l=+i0(+ +GA(+l),+ +GA(+(1-l)))*2,u=+kA(+((g-u)*.5)),n=+kA(+((s-n)*.5)),n=u*u+n*(o*t*n),n=+i0(+ +GA(+n),+ +GA(+(1-n)))*2,t=(f+l+n)*.5,+(+o2(+ +GA(+(+_e(+(t*.5))*+_e(+((t-f)*.5))*+_e(+((t-l)*.5))*+_e(+((t-n)*.5)))))*4)}function M2(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0,f=0,o=0;if(o=w,w=w+192|0,l=o+168|0,f=o,t=ae(e,A,l)|0,t|0)return i=t,w=o,i|0;if(Ee(e,A,f)|0&&AA(23313,22742,386,22751),A=r[f>>2]|0,(A|0)>0){if(n=+kr(f+8|0,f+8+(((A|0)!=1&1)<<4)|0,l)+0,(A|0)!=1){e=1;do t=e,e=e+1|0,n=n+ +kr(f+8+(t<<4)|0,f+8+(((e|0)%(A|0)|0)<<4)|0,l);while((e|0)<(A|0))}}else n=0;return h[i>>3]=n,i=0,w=o,i|0}function z1(e,A,i){return e=e|0,A=A|0,i=i|0,e=M2(e,A,i)|0,e|0||(h[i>>3]=+h[i>>3]*6371.007180918475*6371.007180918475),e|0}function Y1(e,A,i){return e=e|0,A=A|0,i=i|0,e=M2(e,A,i)|0,e|0||(h[i>>3]=+h[i>>3]*6371.007180918475*6371.007180918475*1e3*1e3),e|0}function c1(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0,f=0,o=0,u=0,s=0,g=0;if(o=w,w=w+176|0,f=o,e=Oe(e,A,f)|0,e|0)return f=e,w=o,f|0;if(h[i>>3]=0,e=r[f>>2]|0,(e|0)<=1)return f=0,w=o,f|0;A=e+-1|0,e=0,n=+h[f+8>>3],t=+h[f+16>>3],l=0;do e=e+1|0,s=n,n=+h[f+8+(e<<4)>>3],g=+kA(+((n-s)*.5)),u=t,t=+h[f+8+(e<<4)+8>>3],u=+kA(+((t-u)*.5)),u=g*g+u*(+_A(+n)*+_A(+s)*u),l=l+ +i0(+ +GA(+u),+ +GA(+(1-u)))*2;while((e|0)<(A|0));return h[i>>3]=l,f=0,w=o,f|0}function d1(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0,f=0,o=0,u=0,s=0,g=0;if(o=w,w=w+176|0,f=o,e=Oe(e,A,f)|0,e|0)return f=e,l=+h[i>>3],l=l*6371.007180918475,h[i>>3]=l,w=o,f|0;if(h[i>>3]=0,e=r[f>>2]|0,(e|0)<=1)return f=0,l=0,l=l*6371.007180918475,h[i>>3]=l,w=o,f|0;A=e+-1|0,e=0,n=+h[f+8>>3],t=+h[f+16>>3],l=0;do e=e+1|0,s=n,n=+h[f+8+(e<<4)>>3],g=+kA(+((n-s)*.5)),u=t,t=+h[f+8+(e<<4)+8>>3],u=+kA(+((t-u)*.5)),u=g*g+u*(+_A(+s)*+_A(+n)*u),l=l+ +i0(+ +GA(+u),+ +GA(+(1-u)))*2;while((e|0)!=(A|0));return h[i>>3]=l,f=0,g=l,g=g*6371.007180918475,h[i>>3]=g,w=o,f|0}function Z1(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0,f=0,o=0,u=0,s=0,g=0;if(o=w,w=w+176|0,f=o,e=Oe(e,A,f)|0,e|0)return f=e,l=+h[i>>3],l=l*6371.007180918475,l=l*1e3,h[i>>3]=l,w=o,f|0;if(h[i>>3]=0,e=r[f>>2]|0,(e|0)<=1)return f=0,l=0,l=l*6371.007180918475,l=l*1e3,h[i>>3]=l,w=o,f|0;A=e+-1|0,e=0,n=+h[f+8>>3],t=+h[f+16>>3],l=0;do e=e+1|0,s=n,n=+h[f+8+(e<<4)>>3],g=+kA(+((n-s)*.5)),u=t,t=+h[f+8+(e<<4)+8>>3],u=+kA(+((t-u)*.5)),u=g*g+u*(+_A(+s)*+_A(+n)*u),l=l+ +i0(+ +GA(+u),+ +GA(+(1-u)))*2;while((e|0)!=(A|0));return h[i>>3]=l,f=0,g=l,g=g*6371.007180918475,g=g*1e3,h[i>>3]=g,w=o,f|0}function j1(e){e=e|0;var A=0,i=0,n=0;return A=k0(1,12)|0,A||AA(22832,22787,49,22845),i=e+4|0,n=r[i>>2]|0,n|0?(n=n+8|0,r[n>>2]=A,r[i>>2]=A,A|0):(r[e>>2]|0&&AA(22862,22787,61,22885),n=e,r[n>>2]=A,r[i>>2]=A,A|0)}function W1(e,A){e=e|0,A=A|0;var i=0,n=0;return n=_0(24)|0,n||AA(22899,22787,78,22913),r[n>>2]=r[A>>2],r[n+4>>2]=r[A+4>>2],r[n+8>>2]=r[A+8>>2],r[n+12>>2]=r[A+12>>2],r[n+16>>2]=0,A=e+4|0,i=r[A>>2]|0,i|0?(r[i+16>>2]=n,r[A>>2]=n,n|0):(r[e>>2]|0&&AA(22928,22787,82,22913),r[e>>2]=n,r[A>>2]=n,n|0)}function ar(e){e=e|0;var A=0,i=0,n=0,t=0;if(e)for(n=1;;){if(A=r[e>>2]|0,A|0)do{if(i=r[A>>2]|0,i|0)do t=i,i=r[i+16>>2]|0,iA(t);while(i|0);t=A,A=r[A+8>>2]|0,iA(t)}while(A|0);if(A=e,e=r[e+8>>2]|0,n||iA(A),e)n=0;else break}}function x1(e){e=e|0;var A=0,i=0,n=0,t=0,l=0,f=0,o=0,u=0,s=0,g=0,B=0,a=0,D=0,k=0,Q=0,G=0,p=0,M=0,I=0,b=0,Y=0,Z=0,V=0,c=0,DA=0,vA=0,hA=0,fA=0,lA=0,oA=0,bA=0,nA=0;if(t=e+8|0,r[t>>2]|0)return nA=1,nA|0;if(n=r[e>>2]|0,!n)return nA=0,nA|0;A=n,i=0;do i=i+1|0,A=r[A+8>>2]|0;while(A|0);if(i>>>0<2)return nA=0,nA|0;oA=_0(i<<2)|0,oA||AA(22948,22787,317,22967),lA=_0(i<<5)|0,lA||AA(22989,22787,321,22967),r[e>>2]=0,Z=e+4|0,r[Z>>2]=0,r[t>>2]=0,i=0,fA=0,Y=0,B=0;A:for(;;){if(g=r[n>>2]|0,g){l=0,f=g;do{if(u=+h[f+8>>3],A=f,f=r[f+16>>2]|0,s=(f|0)==0,t=s?g:f,o=+h[t+8>>3],+EA(+(u-o))>3.141592653589793){nA=14;break}l=l+(o-u)*(+h[A>>3]+ +h[t>>3])}while(!s);if((nA|0)==14){nA=0,l=0,A=g;do b=+h[A+8>>3],hA=A+16|0,vA=r[hA>>2]|0,vA=vA|0?vA:g,I=+h[vA+8>>3],l=l+(+h[A>>3]+ +h[vA>>3])*((I<0?I+6.283185307179586:I)-(b<0?b+6.283185307179586:b)),A=r[(A|0?hA:n)>>2]|0;while(A|0)}l>0?(r[oA+(fA<<2)>>2]=n,fA=fA+1|0,t=Y,A=B):nA=19}else nA=19;if((nA|0)==19){nA=0;do if(i){if(A=i+8|0,r[A>>2]|0){nA=21;break A}if(i=k0(1,12)|0,!i){nA=23;break A}r[A>>2]=i,t=i+4|0,f=i,A=B}else if(B){t=Z,f=B+8|0,A=n,i=e;break}else if(r[e>>2]|0){nA=27;break A}else{t=Z,f=e,A=n,i=e;break}while(!1);if(r[f>>2]=n,r[t>>2]=n,f=lA+(Y<<5)|0,s=r[n>>2]|0,s){for(g=lA+(Y<<5)+8|0,h[g>>3]=17976931348623157e292,B=lA+(Y<<5)+24|0,h[B>>3]=17976931348623157e292,h[f>>3]=-17976931348623157e292,a=lA+(Y<<5)+16|0,h[a>>3]=-17976931348623157e292,p=17976931348623157e292,M=-17976931348623157e292,t=0,D=s,u=17976931348623157e292,Q=17976931348623157e292,G=-17976931348623157e292,o=-17976931348623157e292;l=+h[D>>3],b=+h[D+8>>3],D=r[D+16>>2]|0,k=(D|0)==0,I=+h[(k?s:D)+8>>3],l>3]=l,u=l),b>3]=b,Q=b),l>G?h[f>>3]=l:l=G,b>o&&(h[a>>3]=b,o=b),p=b>0&bM?b:M,t=t|+EA(+(b-I))>3.141592653589793,!k;)G=l;t&&(h[a>>3]=M,h[B>>3]=p)}else r[f>>2]=0,r[f+4>>2]=0,r[f+8>>2]=0,r[f+12>>2]=0,r[f+16>>2]=0,r[f+20>>2]=0,r[f+24>>2]=0,r[f+28>>2]=0;t=Y+1|0}if(hA=n+8|0,n=r[hA>>2]|0,r[hA>>2]=0,n)Y=t,B=A;else{nA=45;break}}if((nA|0)==21)AA(22765,22787,35,22799);else if((nA|0)==23)AA(22819,22787,37,22799);else if((nA|0)==27)AA(22862,22787,61,22885);else if((nA|0)==45){A:do if((fA|0)>0){for(hA=(t|0)==0,DA=t<<2,vA=(e|0)==0,c=0,A=0;;){if(V=r[oA+(c<<2)>>2]|0,hA)nA=73;else{if(Y=_0(DA)|0,!Y){nA=50;break}if(Z=_0(DA)|0,!Z){nA=52;break}e:do if(vA)i=0;else{for(t=0,i=0,f=e;n=lA+(t<<5)|0,Er(r[f>>2]|0,n,r[V>>2]|0)|0?(r[Y+(i<<2)>>2]=f,r[Z+(i<<2)>>2]=n,k=i+1|0):k=i,f=r[f+8>>2]|0,f;)t=t+1|0,i=k;if((k|0)>0)if(n=r[Y>>2]|0,(k|0)==1)i=n;else for(a=0,D=-1,i=n,B=n;;){for(s=r[B>>2]|0,n=0,f=0;t=r[r[Y+(f<<2)>>2]>>2]|0,(t|0)==(s|0)?g=n:g=n+((Er(t,r[Z+(f<<2)>>2]|0,r[s>>2]|0)|0)&1)|0,f=f+1|0,(f|0)!=(k|0);)n=g;if(t=(g|0)>(D|0),i=t?B:i,n=a+1|0,(n|0)==(k|0))break e;a=n,D=t?g:D,B=r[Y+(n<<2)>>2]|0}else i=0}while(!1);if(iA(Y),iA(Z),i){if(t=i+4|0,n=r[t>>2]|0,n)i=n+8|0;else if(r[i>>2]|0){nA=70;break}r[i>>2]=V,r[t>>2]=V}else nA=73}if((nA|0)==73){if(nA=0,A=r[V>>2]|0,A|0)do Z=A,A=r[A+16>>2]|0,iA(Z);while(A|0);iA(V),A=1}if(c=c+1|0,(c|0)>=(fA|0)){bA=A;break A}}(nA|0)==50?AA(23004,22787,249,23023):(nA|0)==52?AA(23042,22787,252,23023):(nA|0)==70&&AA(22862,22787,61,22885)}else bA=0;while(!1);return iA(oA),iA(lA),nA=bA,nA|0}return 0}function Er(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0,f=0,o=0,u=0,s=0,g=0;if(!(er(A,i)|0)||(A=Ar(A)|0,n=+h[i>>3],t=+h[i+8>>3],t=A&t<0?t+6.283185307179586:t,e=r[e>>2]|0,!e))return e=0,e|0;if(A){A=0,s=t,i=e;A:for(;;){for(;f=+h[i>>3],t=+h[i+8>>3],i=i+16|0,g=r[i>>2]|0,g=g|0?g:e,l=+h[g>>3],o=+h[g+8>>3],f>l?(u=f,f=o):(u=l,l=f,f=t,t=o),n=n==l|n==u?n+2220446049250313e-31:n,!!(nu);)if(i=r[i>>2]|0,!i){i=22;break A}if(o=f<0?f+6.283185307179586:f,f=t<0?t+6.283185307179586:t,s=o==s|f==s?s+-2220446049250313e-31:s,u=o+(f-o)*((n-l)/(u-l)),(u<0?u+6.283185307179586:u)>s&&(A=A^1),i=r[i>>2]|0,!i){i=22;break}}if((i|0)==22)return A|0}else{A=0,s=t,i=e;A:for(;;){for(;f=+h[i>>3],t=+h[i+8>>3],i=i+16|0,g=r[i>>2]|0,g=g|0?g:e,l=+h[g>>3],o=+h[g+8>>3],f>l?(u=f,f=o):(u=l,l=f,f=t,t=o),n=n==l|n==u?n+2220446049250313e-31:n,!!(nu);)if(i=r[i>>2]|0,!i){i=22;break A}if(s=f==s|t==s?s+-2220446049250313e-31:s,f+(t-f)*((n-l)/(u-l))>s&&(A=A^1),i=r[i>>2]|0,!i){i=22;break}}if((i|0)==22)return A|0}return 0}function Q0(e,A,i,n,t){e=e|0,A=A|0,i=i|0,n=n|0,t=t|0;var l=0,f=0,o=0,u=0,s=0,g=0,B=0,a=0,D=0,k=0,Q=0,G=0,p=0,M=0;if(M=w,w=w+32|0,p=M+16|0,G=M,l=S(e|0,A|0,52)|0,_()|0,l=l&15,D=S(i|0,n|0,52)|0,_()|0,(l|0)!=(D&15|0))return p=12,w=M,p|0;if(s=S(e|0,A|0,45)|0,_()|0,s=s&127,g=S(i|0,n|0,45)|0,_()|0,g=g&127,s>>>0>121|g>>>0>121)return p=5,w=M,p|0;if(D=(s|0)!=(g|0),D){if(o=w2(s,g)|0,(o|0)==7)return p=1,w=M,p|0;u=w2(g,s)|0,(u|0)==7?AA(23066,23090,161,23100):(k=o,f=u)}else k=0,f=0;B=yA(s)|0,a=yA(g)|0,r[p>>2]=0,r[p+4>>2]=0,r[p+8>>2]=0,r[p+12>>2]=0;do if(k){if(g=r[4272+(s*28|0)+(k<<2)>>2]|0,o=(g|0)>0,a)if(o){s=0,u=i,o=n;do u=I1(u,o)|0,o=_()|0,f=F0(f)|0,(f|0)==1&&(f=F0(1)|0),s=s+1|0;while((s|0)!=(g|0));g=f,s=u,u=o}else g=f,s=i,u=n;else if(o){s=0,u=i,o=n;do u=C2(u,o)|0,o=_()|0,f=F0(f)|0,s=s+1|0;while((s|0)!=(g|0));g=f,s=u,u=o}else g=f,s=i,u=n;if(b2(s,u,p)|0,D||AA(23115,23090,191,23100),o=(B|0)!=0,f=(a|0)!=0,o&f&&AA(23142,23090,192,23100),o){if(f=XA(e,A)|0,(f|0)==7){l=5;break}if(q[21872+(f*7|0)+k>>0]|0){l=1;break}u=r[21040+(f*28|0)+(k<<2)>>2]|0,s=u}else if(f){if(f=XA(s,u)|0,(f|0)==7){l=5;break}if(q[21872+(f*7|0)+g>>0]|0){l=1;break}s=0,u=r[21040+(g*28|0)+(f<<2)>>2]|0}else s=0,u=0;if((s|u|0)<0)l=5;else{if((u|0)>0){o=p+4|0,f=0;do Se(o),f=f+1|0;while((f|0)!=(u|0))}if(r[G>>2]=0,r[G+4>>2]=0,r[G+8>>2]=0,tr(G,k),l|0)for(;n0(l)|0?Re(G):W0(G),(l|0)>1;)l=l+-1|0;if((s|0)>0){l=0;do Se(G),l=l+1|0;while((l|0)!=(s|0))}Q=p+4|0,WA(Q,G,Q),zA(Q),Q=51}}else if(b2(i,n,p)|0,(B|0)!=0&(a|0)!=0)if((g|0)!=(s|0)&&AA(23173,23090,261,23100),f=XA(e,A)|0,l=XA(i,n)|0,(f|0)==7|(l|0)==7)l=5;else if(q[21872+(f*7|0)+l>>0]|0)l=1;else if(f=r[21040+(f*28|0)+(l<<2)>>2]|0,(f|0)>0){o=p+4|0,l=0;do Se(o),l=l+1|0;while((l|0)!=(f|0));Q=51}else Q=51;else Q=51;while(!1);return(Q|0)==51&&(l=p+4|0,r[t>>2]=r[l>>2],r[t+4>>2]=r[l+4>>2],r[t+8>>2]=r[l+8>>2],l=0),p=l,w=M,p|0}function Dr(e,A,i,n){e=e|0,A=A|0,i=i|0,n=n|0;var t=0,l=0,f=0,o=0,u=0,s=0,g=0,B=0,a=0,D=0,k=0,Q=0,G=0,p=0,M=0,I=0;if(Q=w,w=w+48|0,s=Q+36|0,f=Q+24|0,o=Q+12|0,u=Q,t=S(e|0,A|0,52)|0,_()|0,t=t&15,a=S(e|0,A|0,45)|0,_()|0,a=a&127,a>>>0>121)return n=5,w=Q,n|0;if(g=yA(a)|0,H(t|0,0,52)|0,G=_()|0|134225919,l=n,r[l>>2]=-1,r[l+4>>2]=G,!t)return t=Ue(i)|0,(t|0)==7||(t=v2(a,t)|0,(t|0)==127)?(G=1,w=Q,G|0):(D=H(t|0,0,45)|0,k=_()|0,a=n,k=r[a+4>>2]&-1040385|k,G=n,r[G>>2]=r[a>>2]|D,r[G+4>>2]=k,G=0,w=Q,G|0);for(r[s>>2]=r[i>>2],r[s+4>>2]=r[i+4>>2],r[s+8>>2]=r[i+8>>2],i=t;;){if(l=i,i=i+-1|0,r[f>>2]=r[s>>2],r[f+4>>2]=r[s+4>>2],r[f+8>>2]=r[s+8>>2],n0(l)|0){if(t=e1(s)|0,t|0){i=13;break}r[o>>2]=r[s>>2],r[o+4>>2]=r[s+4>>2],r[o+8>>2]=r[s+8>>2],Re(o)}else{if(t=r1(s)|0,t|0){i=13;break}r[o>>2]=r[s>>2],r[o+4>>2]=r[s+4>>2],r[o+8>>2]=r[s+8>>2],W0(o)}if(h2(f,o,u),zA(u),t=n,M=r[t>>2]|0,t=r[t+4>>2]|0,I=(15-l|0)*3|0,p=H(7,0,I|0)|0,t=t&~(_()|0),I=H(Ue(u)|0,0,I|0)|0,t=_()|0|t,G=n,r[G>>2]=I|M&~p,r[G+4>>2]=t,(l|0)<=1){i=14;break}}A:do if((i|0)!=13&&(i|0)==14)if((r[s>>2]|0)<=1&&(r[s+4>>2]|0)<=1&&(r[s+8>>2]|0)<=1){i=Ue(s)|0,t=v2(a,i)|0,(t|0)==127?u=0:u=yA(t)|0;e:do if(i){if(g){if(t=XA(e,A)|0,(t|0)==7){t=5;break A}if(l=r[21248+(t*28|0)+(i<<2)>>2]|0,(l|0)>0){t=i,i=0;do t=x0(t)|0,i=i+1|0;while((i|0)!=(l|0))}else t=i;if((t|0)==1){t=9;break A}i=v2(a,t)|0,(i|0)==127&&AA(23200,23090,411,23230),yA(i)|0?AA(23245,23090,412,23230):(k=i,D=l,B=t)}else k=t,D=0,B=i;if(o=r[4272+(a*28|0)+(B<<2)>>2]|0,(o|0)<=-1&&AA(23276,23090,419,23230),!u){if((D|0)<0){t=5;break A}if(D|0){l=n,t=0,i=r[l>>2]|0,l=r[l+4>>2]|0;do i=K0(i,l)|0,l=_()|0,I=n,r[I>>2]=i,r[I+4>>2]=l,t=t+1|0;while((t|0)<(D|0))}if((o|0)<=0){t=k,i=58;break}for(l=n,t=0,i=r[l>>2]|0,l=r[l+4>>2]|0;;)if(i=K0(i,l)|0,l=_()|0,I=n,r[I>>2]=i,r[I+4>>2]=l,t=t+1|0,(t|0)==(o|0)){t=k,i=58;break e}}if(f=w2(k,a)|0,(f|0)==7&&AA(23066,23090,428,23230),t=n,i=r[t>>2]|0,t=r[t+4>>2]|0,(o|0)>0){l=0;do i=K0(i,t)|0,t=_()|0,I=n,r[I>>2]=i,r[I+4>>2]=t,l=l+1|0;while((l|0)!=(o|0))}if(t=XA(i,t)|0,(t|0)==7&&AA(23313,23090,440,23230),i=g2(k)|0,i=r[(i?21664:21456)+(f*28|0)+(t<<2)>>2]|0,(i|0)<0&&AA(23313,23090,454,23230),!i)t=k,i=58;else{f=n,t=0,l=r[f>>2]|0,f=r[f+4>>2]|0;do l=D2(l,f)|0,f=_()|0,I=n,r[I>>2]=l,r[I+4>>2]=f,t=t+1|0;while((t|0)<(i|0));t=k,i=58}}else if((g|0)!=0&(u|0)!=0){if(i=XA(e,A)|0,l=n,l=XA(r[l>>2]|0,r[l+4>>2]|0)|0,(i|0)==7|(l|0)==7){t=5;break A}if(l=r[21248+(i*28|0)+(l<<2)>>2]|0,(l|0)<0){t=5;break A}if(!l)i=59;else{o=n,i=0,f=r[o>>2]|0,o=r[o+4>>2]|0;do f=K0(f,o)|0,o=_()|0,I=n,r[I>>2]=f,r[I+4>>2]=o,i=i+1|0;while((i|0)<(l|0));i=58}}else i=58;while(!1);if((i|0)==58&&u&&(i=59),(i|0)==59&&(I=n,(XA(r[I>>2]|0,r[I+4>>2]|0)|0)==1)){t=9;break}I=n,p=r[I>>2]|0,I=r[I+4>>2]&-1040385,M=H(t|0,0,45)|0,I=I|(_()|0),t=n,r[t>>2]=p|M,r[t+4>>2]=I,t=0}else t=1;while(!1);return I=t,w=Q,I|0}function K1(e,A,i,n,t,l){e=e|0,A=A|0,i=i|0,n=n|0,t=t|0,l=l|0;var f=0,o=0;return o=w,w=w+16|0,f=o,t?e=15:(e=Q0(e,A,i,n,f)|0,e||(n1(f,l),e=0)),w=o,e|0}function J1(e,A,i,n,t){e=e|0,A=A|0,i=i|0,n=n|0,t=t|0;var l=0,f=0;return f=w,w=w+16|0,l=f,n?i=15:(i=t1(i,l)|0,i||(i=Dr(e,A,l,t)|0)),w=f,i|0}function X1(e,A,i,n,t){e=e|0,A=A|0,i=i|0,n=n|0,t=t|0;var l=0,f=0,o=0,u=0;return u=w,w=w+32|0,f=u+12|0,o=u,l=Q0(e,A,e,A,f)|0,l|0?(o=l,w=u,o|0):(e=Q0(e,A,i,n,o)|0,e|0?(o=e,w=u,o|0):(f=B2(f,o)|0,o=t,r[o>>2]=f,r[o+4>>2]=((f|0)<0)<<31>>31,o=0,w=u,o|0))}function q1(e,A,i,n,t){e=e|0,A=A|0,i=i|0,n=n|0,t=t|0;var l=0,f=0,o=0,u=0;return u=w,w=w+32|0,f=u+12|0,o=u,l=Q0(e,A,e,A,f)|0,!l&&(l=Q0(e,A,i,n,o)|0,!l)?(n=B2(f,o)|0,n=sA(n|0,((n|0)<0)<<31>>31|0,1,0)|0,f=_()|0,o=t,r[o>>2]=n,r[o+4>>2]=f,o=0,w=u,o|0):(o=l,w=u,o|0)}function $1(e,A,i,n,t){e=e|0,A=A|0,i=i|0,n=n|0,t=t|0;var l=0,f=0,o=0,u=0,s=0,g=0,B=0,a=0,D=0,k=0,Q=0,G=0,p=0,M=0,I=0,b=0,Y=0,Z=0,V=0,c=0;if(V=w,w=w+48|0,f=V+24|0,o=V+12|0,Z=V,l=Q0(e,A,e,A,f)|0,!l&&(l=Q0(e,A,i,n,o)|0,!l)){b=B2(f,o)|0,Y=((b|0)<0)<<31>>31,r[f>>2]=0,r[f+4>>2]=0,r[f+8>>2]=0,r[o>>2]=0,r[o+4>>2]=0,r[o+8>>2]=0,Q0(e,A,e,A,f)|0&&AA(23313,23090,691,23299),Q0(e,A,i,n,o)|0&&AA(23313,23090,696,23299),ur(f),ur(o),b?(B=r[f>>2]|0,k=+(b|0),p=f+4|0,a=r[p>>2]|0,M=f+8|0,D=r[M>>2]|0,I=f,n=B,l=a,i=D,Q=+((r[o>>2]|0)-B|0)/k,G=+((r[o+4>>2]|0)-a|0)/k,k=+((r[o+8>>2]|0)-D|0)/k):(l=f+4|0,i=f+8|0,p=l,M=i,I=f,n=r[f>>2]|0,l=r[l>>2]|0,i=r[i>>2]|0,Q=0,G=0,k=0),r[Z>>2]=n,D=Z+4|0,r[D>>2]=l,a=Z+8|0,r[a>>2]=i;A:do if((b|0)<0)l=0;else for(g=0,B=0,l=n;;){s=+(B>>>0)+4294967296*+(g|0),c=Q*s+ +(l|0),u=G*s+ +(r[p>>2]|0),s=k*s+ +(r[M>>2]|0),i=~~+He(+c),f=~~+He(+u),l=~~+He(+s),c=+EA(+(+(i|0)-c)),u=+EA(+(+(f|0)-u)),s=+EA(+(+(l|0)-s));do if(c>u&c>s)i=0-(f+l)|0,n=f;else if(o=0-i|0,u>s){n=o-l|0;break}else{n=f,l=o-f|0;break}while(!1);if(r[Z>>2]=i,r[D>>2]=n,r[a>>2]=l,l1(Z),l=Dr(e,A,Z,t+(B<<3)|0)|0,l|0)break A;if(!((g|0)<(Y|0)|(g|0)==(Y|0)&B>>>0>>0)){l=0;break A}l=sA(B|0,g|0,1,0)|0,o=_()|0,g=o,B=l,l=r[I>>2]|0}while(!1);return Z=l,w=V,Z|0}return Z=l,w=V,Z|0}function U0(e,A,i,n){e=e|0,A=A|0,i=i|0,n=n|0;var t=0,l=0,f=0;if((i|0)==0&(n|0)==0)return t=0,l=1,uA(t|0),l|0;l=e,t=A,e=1,A=0;do f=(i&1|0)==0&!0,e=cA((f?1:l)|0,(f?0:t)|0,e|0,A|0)|0,A=_()|0,i=Gr(i|0,n|0,1)|0,n=_()|0,l=cA(l|0,t|0,l|0,t|0)|0,t=_()|0;while(!((i|0)==0&(n|0)==0));return uA(A|0),e|0}function Cr(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0,f=0,o=0,u=0,s=0,g=0,B=0,a=0;if(!(er(A,i)|0)||(A=Ar(A)|0,n=+h[i>>3],t=+h[i+8>>3],t=A&t<0?t+6.283185307179586:t,a=r[e>>2]|0,(a|0)<=0))return a=0,a|0;if(B=r[e+4>>2]|0,A){A=0,g=t,i=-1,e=0;A:for(;;){for(s=e;f=+h[B+(s<<4)>>3],t=+h[B+(s<<4)+8>>3],e=(i+2|0)%(a|0)|0,l=+h[B+(e<<4)>>3],o=+h[B+(e<<4)+8>>3],f>l?(u=f,f=o):(u=l,l=f,f=t,t=o),n=n==l|n==u?n+2220446049250313e-31:n,!!(nu);)if(i=s+1|0,(i|0)>=(a|0)){i=22;break A}else e=s,s=i,i=e;if(o=f<0?f+6.283185307179586:f,f=t<0?t+6.283185307179586:t,g=o==g|f==g?g+-2220446049250313e-31:g,u=o+(f-o)*((n-l)/(u-l)),(u<0?u+6.283185307179586:u)>g&&(A=A^1),e=s+1|0,(e|0)>=(a|0)){i=22;break}else i=s}if((i|0)==22)return A|0}else{A=0,g=t,i=-1,e=0;A:for(;;){for(s=e;f=+h[B+(s<<4)>>3],t=+h[B+(s<<4)+8>>3],e=(i+2|0)%(a|0)|0,l=+h[B+(e<<4)>>3],o=+h[B+(e<<4)+8>>3],f>l?(u=f,f=o):(u=l,l=f,f=t,t=o),n=n==l|n==u?n+2220446049250313e-31:n,!!(nu);)if(i=s+1|0,(i|0)>=(a|0)){i=22;break A}else e=s,s=i,i=e;if(g=f==g|t==g?g+-2220446049250313e-31:g,f+(t-f)*((n-l)/(u-l))>g&&(A=A^1),e=s+1|0,(e|0)>=(a|0)){i=22;break}else i=s}if((i|0)==22)return A|0}return 0}function br(e,A){e=e|0,A=A|0;var i=0,n=0,t=0,l=0,f=0,o=0,u=0,s=0,g=0,B=0,a=0,D=0,k=0,Q=0,G=0,p=0,M=0;if(k=r[e>>2]|0,!k){r[A>>2]=0,r[A+4>>2]=0,r[A+8>>2]=0,r[A+12>>2]=0,r[A+16>>2]=0,r[A+20>>2]=0,r[A+24>>2]=0,r[A+28>>2]=0;return}if(Q=A+8|0,h[Q>>3]=17976931348623157e292,G=A+24|0,h[G>>3]=17976931348623157e292,h[A>>3]=-17976931348623157e292,p=A+16|0,h[p>>3]=-17976931348623157e292,!((k|0)<=0)){for(a=r[e+4>>2]|0,s=17976931348623157e292,g=-17976931348623157e292,B=0,e=-1,l=17976931348623157e292,f=17976931348623157e292,u=-17976931348623157e292,n=-17976931348623157e292,D=0;i=+h[a+(D<<4)>>3],o=+h[a+(D<<4)+8>>3],e=e+2|0,t=+h[a+(((e|0)==(k|0)?0:e)<<4)+8>>3],i>3]=i,l=i),o>3]=o,f=o),i>u?h[A>>3]=i:i=u,o>n&&(h[p>>3]=o,n=o),s=o>0&og?o:g,B=B|+EA(+(o-t))>3.141592653589793,e=D+1|0,(e|0)!=(k|0);)M=D,u=i,D=e,e=M;B&&(h[p>>3]=g,h[G>>3]=s)}}function An(e,A){e=e|0,A=A|0;var i=0,n=0,t=0,l=0,f=0,o=0,u=0,s=0,g=0,B=0,a=0,D=0,k=0,Q=0,G=0,p=0,M=0,I=0,b=0,Y=0,Z=0,V=0;if(k=r[e>>2]|0,k){if(Q=A+8|0,h[Q>>3]=17976931348623157e292,G=A+24|0,h[G>>3]=17976931348623157e292,h[A>>3]=-17976931348623157e292,p=A+16|0,h[p>>3]=-17976931348623157e292,(k|0)>0){for(t=r[e+4>>2]|0,a=17976931348623157e292,D=-17976931348623157e292,n=0,i=-1,u=17976931348623157e292,s=17976931348623157e292,B=-17976931348623157e292,f=-17976931348623157e292,M=0;l=+h[t+(M<<4)>>3],g=+h[t+(M<<4)+8>>3],Z=i+2|0,o=+h[t+(((Z|0)==(k|0)?0:Z)<<4)+8>>3],l>3]=l,u=l),g>3]=g,s=g),l>B?h[A>>3]=l:l=B,g>f&&(h[p>>3]=g,f=g),a=g>0&gD?g:D,n=n|+EA(+(g-o))>3.141592653589793,i=M+1|0,(i|0)!=(k|0);)Z=M,B=l,M=i,i=Z;n&&(h[p>>3]=D,h[G>>3]=a)}}else r[A>>2]=0,r[A+4>>2]=0,r[A+8>>2]=0,r[A+12>>2]=0,r[A+16>>2]=0,r[A+20>>2]=0,r[A+24>>2]=0,r[A+28>>2]=0;if(Z=e+8|0,i=r[Z>>2]|0,!((i|0)<=0)){Y=e+12|0,b=0;do if(t=r[Y>>2]|0,n=b,b=b+1|0,G=A+(b<<5)|0,p=r[t+(n<<3)>>2]|0,p){if(M=A+(b<<5)+8|0,h[M>>3]=17976931348623157e292,e=A+(b<<5)+24|0,h[e>>3]=17976931348623157e292,h[G>>3]=-17976931348623157e292,I=A+(b<<5)+16|0,h[I>>3]=-17976931348623157e292,(p|0)>0){for(k=r[t+(n<<3)+4>>2]|0,a=17976931348623157e292,D=-17976931348623157e292,t=0,n=-1,Q=0,u=17976931348623157e292,s=17976931348623157e292,g=-17976931348623157e292,f=-17976931348623157e292;l=+h[k+(Q<<4)>>3],B=+h[k+(Q<<4)+8>>3],n=n+2|0,o=+h[k+(((n|0)==(p|0)?0:n)<<4)+8>>3],l>3]=l,u=l),B>3]=B,s=B),l>g?h[G>>3]=l:l=g,B>f&&(h[I>>3]=B,f=B),a=B>0&BD?B:D,t=t|+EA(+(B-o))>3.141592653589793,n=Q+1|0,(n|0)!=(p|0);)V=Q,Q=n,g=l,n=V;t&&(h[I>>3]=D,h[e>>3]=a)}}else r[G>>2]=0,r[G+4>>2]=0,r[G+8>>2]=0,r[G+12>>2]=0,r[G+16>>2]=0,r[G+20>>2]=0,r[G+24>>2]=0,r[G+28>>2]=0,i=r[Z>>2]|0;while((b|0)<(i|0))}}function en(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0;if(!(Cr(e,A,i)|0))return t=0,t|0;if(t=e+8|0,(r[t>>2]|0)<=0)return t=1,t|0;for(n=e+12|0,e=0;;){if(l=e,e=e+1|0,Cr((r[n>>2]|0)+(l<<3)|0,A+(e<<5)|0,i)|0){e=0,n=6;break}if((e|0)>=(r[t>>2]|0)){e=1,n=6;break}}return(n|0)==6?e|0:0}function rn(){return 8}function nn(){return 16}function tn(){return 168}function ln(){return 8}function fn(){return 16}function on(){return 12}function un(){return 8}function sn(e){return e=e|0,+(+((r[e>>2]|0)>>>0)+4294967296*+(r[e+4>>2]|0))}function gn(e){e=e|0;var A=0,i=0;return i=+h[e>>3],A=+h[e+8>>3],+ +GA(+(i*i+A*A))}function Qr(e,A,i,n,t){e=e|0,A=A|0,i=i|0,n=n|0,t=t|0;var l=0,f=0,o=0,u=0,s=0,g=0,B=0,a=0;s=+h[e>>3],u=+h[A>>3]-s,o=+h[e+8>>3],f=+h[A+8>>3]-o,B=+h[i>>3],l=+h[n>>3]-B,a=+h[i+8>>3],g=+h[n+8>>3]-a,l=(l*(o-a)-(s-B)*g)/(u*g-f*l),h[t>>3]=s+u*l,h[t+8>>3]=o+f*l}function mr(e,A){return e=e|0,A=A|0,+EA(+(+h[e>>3]-+h[A>>3]))<11920928955078125e-23?(A=+EA(+(+h[e+8>>3]-+h[A+8>>3]))<11920928955078125e-23,A|0):(A=0,A|0)}function FA(e,A){e=e|0,A=A|0;var i=0,n=0,t=0;return t=+h[e>>3]-+h[A>>3],n=+h[e+8>>3]-+h[A+8>>3],i=+h[e+16>>3]-+h[A+16>>3],+(t*t+n*n+i*i)}function vn(e,A){e=e|0,A=A|0;var i=0,n=0,t=0;i=+h[e>>3],n=+_A(+i),i=+kA(+i),h[A+16>>3]=i,i=+h[e+8>>3],t=n*+_A(+i),h[A>>3]=t,i=n*+kA(+i),h[A+8>>3]=i}function wn(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0;if(l=w,w=w+16|0,t=l,n=pA(e,A)|0,(i+-1|0)>>>0>5||(n=(n|0)!=0,(i|0)==1&n))return t=-1,w=l,t|0;do if(be(e,A,t)|0)n=-1;else if(n){n=((r[21936+(i<<2)>>2]|0)+5-(r[t>>2]|0)|0)%5|0;break}else{n=((r[21968+(i<<2)>>2]|0)+6-(r[t>>2]|0)|0)%6|0;break}while(!1);return t=n,w=l,t|0}function be(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0,f=0,o=0,u=0,s=0;if(s=w,w=w+32|0,f=s+16|0,o=s,n=ue(e,A,f)|0,n|0)return i=n,w=s,i|0;l=vr(e,A)|0,u=XA(e,A)|0,xi(l,o),n=Ki(l,r[f>>2]|0)|0;A:do if(yA(l)|0){do switch(l|0){case 4:{e=0;break}case 14:{e=1;break}case 24:{e=2;break}case 38:{e=3;break}case 49:{e=4;break}case 58:{e=5;break}case 63:{e=6;break}case 72:{e=7;break}case 83:{e=8;break}case 97:{e=9;break}case 107:{e=10;break}case 117:{e=11;break}default:{n=1;break A}}while(!1);if(t=r[22e3+(e*24|0)+8>>2]|0,A=r[22e3+(e*24|0)+16>>2]|0,e=r[f>>2]|0,(e|0)!=(r[o>>2]|0)&&(o=g2(l)|0,e=r[f>>2]|0,o|(e|0)==(A|0)&&(n=(n+1|0)%6|0)),(u|0)==3&(e|0)==(A|0)){n=(n+5|0)%6|0,t=22;break}(u|0)==5&(e|0)==(t|0)&&(n=(n+1|0)%6|0),t=22}else t=22;while(!1);return(t|0)==22&&(r[i>>2]=n,n=0),i=n,w=s,i|0}function t0(e,A,i,n){e=e|0,A=A|0,i=i|0,n=n|0;var t=0,l=0,f=0,o=0,u=0,s=0,g=0,B=0,a=0,D=0,k=0,Q=0,G=0,p=0,M=0,I=0;if(I=w,w=w+32|0,M=I+24|0,G=I+20|0,k=I+8|0,D=I+16|0,a=I,u=(pA(e,A)|0)==0,u=u?6:5,g=S(e|0,A|0,52)|0,_()|0,g=g&15,u>>>0<=i>>>0)return n=2,w=I,n|0;B=(g|0)==0,!B&&(Q=H(7,0,(g^15)*3|0)|0,(Q&e|0)==0&((_()|0)&A|0)==0)?t=i:l=4;A:do if((l|0)==4){if(t=(pA(e,A)|0)!=0,((t?4:5)|0)<(i|0)||be(e,A,M)|0||(l=(r[M>>2]|0)+i|0,t?t=22288+(((l|0)%5|0)<<2)|0:t=22320+(((l|0)%6|0)<<2)|0,Q=r[t>>2]|0,(Q|0)==7))return n=1,w=I,n|0;r[G>>2]=0,t=VA(e,A,Q,G,k)|0;do if(!t){if(o=k,s=r[o>>2]|0,o=r[o+4>>2]|0,f=o>>>0>>0|(o|0)==(A|0)&s>>>0>>0,l=f?s:e,f=f?o:A,!B&&(B=H(7,0,(g^15)*3|0)|0,(s&B|0)==0&(o&(_()|0)|0)==0))t=i;else{if(o=(i+-1+u|0)%(u|0)|0,t=pA(e,A)|0,(o|0)<0&&AA(23313,23315,245,23324),u=(t|0)!=0,((u?4:5)|0)<(o|0)&&AA(23313,23315,245,23324),be(e,A,M)|0&&AA(23313,23315,245,23324),t=(r[M>>2]|0)+o|0,u?t=22288+(((t|0)%5|0)<<2)|0:t=22320+(((t|0)%6|0)<<2)|0,o=r[t>>2]|0,(o|0)==7&&AA(23313,23315,245,23324),r[D>>2]=0,t=VA(e,A,o,D,a)|0,t|0)break;s=a,u=r[s>>2]|0,s=r[s+4>>2]|0;do if(s>>>0>>0|(s|0)==(f|0)&u>>>0>>0){if(pA(u,s)|0?l=s2(u,s,e,A)|0:l=r[22384+((((r[D>>2]|0)+(r[22352+(o<<2)>>2]|0)|0)%6|0)<<2)>>2]|0,t=pA(u,s)|0,(l+-1|0)>>>0>5){t=-1,l=u,f=s;break}if(t=(t|0)!=0,(l|0)==1&t){t=-1,l=u,f=s;break}do if(be(u,s,M)|0)t=-1;else if(t){t=((r[21936+(l<<2)>>2]|0)+5-(r[M>>2]|0)|0)%5|0;break}else{t=((r[21968+(l<<2)>>2]|0)+6-(r[M>>2]|0)|0)%6|0;break}while(!1);l=u,f=s}else t=i;while(!1);o=k,s=r[o>>2]|0,o=r[o+4>>2]|0}if((l|0)==(s|0)&(f|0)==(o|0)){if(u=(pA(s,o)|0)!=0,u?e=s2(s,o,e,A)|0:e=r[22384+((((r[G>>2]|0)+(r[22352+(Q<<2)>>2]|0)|0)%6|0)<<2)>>2]|0,t=pA(s,o)|0,(e+-1|0)>>>0<=5&&(p=(t|0)!=0,!((e|0)==1&p)))do if(be(s,o,M)|0)t=-1;else if(p){t=((r[21936+(e<<2)>>2]|0)+5-(r[M>>2]|0)|0)%5|0;break}else{t=((r[21968+(e<<2)>>2]|0)+6-(r[M>>2]|0)|0)%6|0;break}while(!1);else t=-1;t=t+1|0,t=(t|0)==6|u&(t|0)==5?0:t}A=f,e=l;break A}while(!1);return n=t,w=I,n|0}while(!1);return p=H(t|0,0,56)|0,M=_()|0|A&-2130706433|536870912,r[n>>2]=p|e,r[n+4>>2]=M,n=0,w=I,n|0}function hn(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0;return l=(pA(e,A)|0)==0,n=t0(e,A,0,i)|0,t=(n|0)==0,l?!t||(n=t0(e,A,1,i+8|0)|0,n|0)||(n=t0(e,A,2,i+16|0)|0,n|0)||(n=t0(e,A,3,i+24|0)|0,n|0)||(n=t0(e,A,4,i+32|0)|0,n)?(l=n,l|0):t0(e,A,5,i+40|0)|0:!t||(n=t0(e,A,1,i+8|0)|0,n|0)||(n=t0(e,A,2,i+16|0)|0,n|0)||(n=t0(e,A,3,i+24|0)|0,n|0)||(n=t0(e,A,4,i+32|0)|0,n|0)?(l=n,l|0):(l=i+40|0,r[l>>2]=0,r[l+4>>2]=0,l=0,l|0)}function Bn(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0,f=0,o=0,u=0;return u=w,w=w+192|0,t=u,l=u+168|0,f=S(e|0,A|0,56)|0,_()|0,f=f&7,o=A&-2130706433|134217728,n=ue(e,o,l)|0,n|0?(o=n,w=u,o|0):(A=S(e|0,A|0,52)|0,_()|0,A=A&15,pA(e,o)|0?_2(l,A,f,1,t):k2(l,A,f,1,t),o=t+8|0,r[i>>2]=r[o>>2],r[i+4>>2]=r[o+4>>2],r[i+8>>2]=r[o+8>>2],r[i+12>>2]=r[o+12>>2],o=0,w=u,o|0)}function _n(e,A){e=e|0,A=A|0;var i=0,n=0,t=0,l=0;return t=w,w=w+16|0,i=t,!(!0&(A&2013265920|0)==536870912)||(n=A&-2130706433|134217728,!(a2(e,n)|0))?(n=0,w=t,n|0):(l=S(e|0,A|0,56)|0,_()|0,l=(t0(e,n,l&7,i)|0)==0,n=i,n=l&((r[n>>2]|0)==(e|0)?(r[n+4>>2]|0)==(A|0):0)&1,w=t,n|0)}function Mr(e,A,i){e=e|0,A=A|0,i=i|0;var n=0;(A|0)>0?(n=k0(A,4)|0,r[e>>2]=n,n||AA(23337,23360,40,23374)):r[e>>2]=0,r[e+4>>2]=A,r[e+8>>2]=0,r[e+12>>2]=i}function Pr(e){e=e|0;var A=0,i=0,n=0,t=0,l=0,f=0,o=0;t=e+4|0,l=e+12|0,f=e+8|0;A:for(;;){for(i=r[t>>2]|0,A=0;;){if((A|0)>=(i|0))break A;if(n=r[e>>2]|0,o=r[n+(A<<2)>>2]|0,!o)A=A+1|0;else break}A=n+(~~(+EA(+(+OA(10,+ +(15-(r[l>>2]|0)|0))*(+h[o>>3]+ +h[o+8>>3])))%+(i|0))>>>0<<2)|0,i=r[A>>2]|0;e:do if(i|0){if(n=o+32|0,(i|0)==(o|0))r[A>>2]=r[n>>2];else{if(i=i+32|0,A=r[i>>2]|0,!A)break;for(;(A|0)!=(o|0);)if(i=A+32|0,A=r[i>>2]|0,!A)break e;r[i>>2]=r[n>>2]}iA(o),r[f>>2]=(r[f>>2]|0)+-1}while(!1)}iA(r[e>>2]|0)}function Ir(e){e=e|0;var A=0,i=0,n=0;for(n=r[e+4>>2]|0,i=0;;){if((i|0)>=(n|0)){A=0,i=4;break}if(A=r[(r[e>>2]|0)+(i<<2)>>2]|0,!A)i=i+1|0;else{i=4;break}}return(i|0)==4?A|0:0}function yr(e,A){e=e|0,A=A|0;var i=0,n=0,t=0,l=0;if(i=~~(+EA(+(+OA(10,+ +(15-(r[e+12>>2]|0)|0))*(+h[A>>3]+ +h[A+8>>3])))%+(r[e+4>>2]|0))>>>0,i=(r[e>>2]|0)+(i<<2)|0,n=r[i>>2]|0,!n)return l=1,l|0;l=A+32|0;do if((n|0)!=(A|0)){if(i=r[n+32>>2]|0,!i)return l=1,l|0;for(t=i;;){if((t|0)==(A|0)){t=8;break}if(i=r[t+32>>2]|0,i)n=t,t=i;else{i=1,t=10;break}}if((t|0)==8){r[n+32>>2]=r[l>>2];break}else if((t|0)==10)return i|0}else r[i>>2]=r[l>>2];while(!1);return iA(A),l=e+8|0,r[l>>2]=(r[l>>2]|0)+-1,l=0,l|0}function kn(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0,f=0;l=_0(40)|0,l||AA(23390,23360,98,23403),r[l>>2]=r[A>>2],r[l+4>>2]=r[A+4>>2],r[l+8>>2]=r[A+8>>2],r[l+12>>2]=r[A+12>>2],t=l+16|0,r[t>>2]=r[i>>2],r[t+4>>2]=r[i+4>>2],r[t+8>>2]=r[i+8>>2],r[t+12>>2]=r[i+12>>2],r[l+32>>2]=0,t=~~(+EA(+(+OA(10,+ +(15-(r[e+12>>2]|0)|0))*(+h[A>>3]+ +h[A+8>>3])))%+(r[e+4>>2]|0))>>>0,t=(r[e>>2]|0)+(t<<2)|0,n=r[t>>2]|0;do if(!n)r[t>>2]=l;else{for(;!(se(n,A)|0&&se(n+16|0,i)|0);)if(t=r[n+32>>2]|0,n=t|0?t:n,!(r[n+32>>2]|0)){f=10;break}if((f|0)==10){r[n+32>>2]=l;break}return iA(l),f=n,f|0}while(!1);return f=e+8|0,r[f>>2]=(r[f>>2]|0)+1,f=l,f|0}function an(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0;if(t=~~(+EA(+(+OA(10,+ +(15-(r[e+12>>2]|0)|0))*(+h[A>>3]+ +h[A+8>>3])))%+(r[e+4>>2]|0))>>>0,t=r[(r[e>>2]|0)+(t<<2)>>2]|0,!t)return i=0,i|0;if(!i){for(e=t;;){if(se(e,A)|0){n=10;break}if(e=r[e+32>>2]|0,!e){e=0,n=10;break}}if((n|0)==10)return e|0}for(e=t;;){if(se(e,A)|0&&se(e+16|0,i)|0){n=10;break}if(e=r[e+32>>2]|0,!e){e=0,n=10;break}}return(n|0)==10?e|0:0}function En(e,A){e=e|0,A=A|0;var i=0;if(i=~~(+EA(+(+OA(10,+ +(15-(r[e+12>>2]|0)|0))*(+h[A>>3]+ +h[A+8>>3])))%+(r[e+4>>2]|0))>>>0,e=r[(r[e>>2]|0)+(i<<2)>>2]|0,!e)return i=0,i|0;for(;;){if(se(e,A)|0){A=5;break}if(e=r[e+32>>2]|0,!e){e=0,A=5;break}}return(A|0)==5?e|0:0}function Dn(){return 23424}function Cn(e){return e=+e,+ +Tr(+e)}function R0(e){return e=+e,~~+Cn(e)|0}function _0(e){e=e|0;var A=0,i=0,n=0,t=0,l=0,f=0,o=0,u=0,s=0,g=0,B=0,a=0,D=0,k=0,Q=0,G=0,p=0,M=0,I=0,b=0,Y=0;Y=w,w=w+16|0,a=Y;do if(e>>>0<245){if(s=e>>>0<11?16:e+11&-8,e=s>>>3,B=r[5857]|0,i=B>>>e,i&3|0)return A=(i&1^1)+e|0,e=23468+(A<<1<<2)|0,i=e+8|0,n=r[i>>2]|0,t=n+8|0,l=r[t>>2]|0,(l|0)==(e|0)?r[5857]=B&~(1<>2]=e,r[i>>2]=l),b=A<<3,r[n+4>>2]=b|3,b=n+b+4|0,r[b>>2]=r[b>>2]|1,b=t,w=Y,b|0;if(g=r[5859]|0,s>>>0>g>>>0){if(i|0)return A=2<>>12&16,A=A>>>o,i=A>>>5&8,A=A>>>i,l=A>>>2&4,A=A>>>l,e=A>>>1&2,A=A>>>e,n=A>>>1&1,n=(i|o|l|e|n)+(A>>>n)|0,A=23468+(n<<1<<2)|0,e=A+8|0,l=r[e>>2]|0,o=l+8|0,i=r[o>>2]|0,(i|0)==(A|0)?(e=B&~(1<>2]=A,r[e>>2]=i,e=B),b=n<<3,f=b-s|0,r[l+4>>2]=s|3,t=l+s|0,r[t+4>>2]=f|1,r[l+b>>2]=f,g|0&&(n=r[5862]|0,A=g>>>3,i=23468+(A<<1<<2)|0,A=1<>2]|0):(r[5857]=e|A,A=i,e=i+8|0),r[e>>2]=n,r[A+12>>2]=n,r[n+8>>2]=A,r[n+12>>2]=i),r[5859]=f,r[5862]=t,b=o,w=Y,b|0;if(l=r[5858]|0,l){for(i=(l&0-l)+-1|0,t=i>>>12&16,i=i>>>t,n=i>>>5&8,i=i>>>n,f=i>>>2&4,i=i>>>f,o=i>>>1&2,i=i>>>o,u=i>>>1&1,u=r[23732+((n|t|f|o|u)+(i>>>u)<<2)>>2]|0,i=u,o=u,u=(r[u+4>>2]&-8)-s|0;e=r[i+16>>2]|0,!(!e&&(e=r[i+20>>2]|0,!e));)f=(r[e+4>>2]&-8)-s|0,t=f>>>0>>0,i=e,o=t?e:o,u=t?f:u;if(f=o+s|0,f>>>0>o>>>0){t=r[o+24>>2]|0,A=r[o+12>>2]|0;do if((A|0)==(o|0)){if(e=o+20|0,A=r[e>>2]|0,!A&&(e=o+16|0,A=r[e>>2]|0,!A)){i=0;break}for(;;)if(n=A+20|0,i=r[n>>2]|0,i)A=i,e=n;else if(n=A+16|0,i=r[n>>2]|0,i)A=i,e=n;else break;r[e>>2]=0,i=A}else i=r[o+8>>2]|0,r[i+12>>2]=A,r[A+8>>2]=i,i=A;while(!1);do if(t|0){if(A=r[o+28>>2]|0,e=23732+(A<<2)|0,(o|0)==(r[e>>2]|0)){if(r[e>>2]=i,!i){r[5858]=l&~(1<>2]|0)==(o|0)?b:t+20|0)>>2]=i,!i)break;r[i+24>>2]=t,A=r[o+16>>2]|0,A|0&&(r[i+16>>2]=A,r[A+24>>2]=i),A=r[o+20>>2]|0,A|0&&(r[i+20>>2]=A,r[A+24>>2]=i)}while(!1);return u>>>0<16?(b=u+s|0,r[o+4>>2]=b|3,b=o+b+4|0,r[b>>2]=r[b>>2]|1):(r[o+4>>2]=s|3,r[f+4>>2]=u|1,r[f+u>>2]=u,g|0&&(n=r[5862]|0,A=g>>>3,i=23468+(A<<1<<2)|0,A=1<>2]|0):(r[5857]=A|B,A=i,e=i+8|0),r[e>>2]=n,r[A+12>>2]=n,r[n+8>>2]=A,r[n+12>>2]=i),r[5859]=u,r[5862]=f),b=o+8|0,w=Y,b|0}else B=s}else B=s}else B=s}else if(e>>>0<=4294967231)if(e=e+11|0,s=e&-8,n=r[5858]|0,n){t=0-s|0,e=e>>>8,e?s>>>0>16777215?u=31:(B=(e+1048320|0)>>>16&8,Q=e<>>16&4,Q=Q<>>16&2,u=14-(o|B|u)+(Q<>>15)|0,u=s>>>(u+7|0)&1|u<<1):u=0,i=r[23732+(u<<2)>>2]|0;A:do if(!i)i=0,e=0,Q=61;else for(e=0,o=s<<((u|0)==31?0:25-(u>>>1)|0),l=0;;){if(f=(r[i+4>>2]&-8)-s|0,f>>>0>>0)if(f)e=i,t=f;else{e=i,t=0,Q=65;break A}if(Q=r[i+20>>2]|0,i=r[i+16+(o>>>31<<2)>>2]|0,l=(Q|0)==0|(Q|0)==(i|0)?l:Q,i)o=o<<1;else{i=l,Q=61;break}}while(!1);if((Q|0)==61){if((i|0)==0&(e|0)==0){if(e=2<>>12&16,B=B>>>f,l=B>>>5&8,B=B>>>l,o=B>>>2&4,B=B>>>o,u=B>>>1&2,B=B>>>u,i=B>>>1&1,e=0,i=r[23732+((l|f|o|u|i)+(B>>>i)<<2)>>2]|0}i?Q=65:(o=e,f=t)}if((Q|0)==65)for(l=i;;)if(B=(r[l+4>>2]&-8)-s|0,i=B>>>0>>0,t=i?B:t,e=i?l:e,i=r[l+16>>2]|0,i||(i=r[l+20>>2]|0),i)l=i;else{o=e,f=t;break}if(o|0&&f>>>0<((r[5859]|0)-s|0)>>>0&&(g=o+s|0,g>>>0>o>>>0)){l=r[o+24>>2]|0,A=r[o+12>>2]|0;do if((A|0)==(o|0)){if(e=o+20|0,A=r[e>>2]|0,!A&&(e=o+16|0,A=r[e>>2]|0,!A)){A=0;break}for(;;)if(t=A+20|0,i=r[t>>2]|0,i)A=i,e=t;else if(t=A+16|0,i=r[t>>2]|0,i)A=i,e=t;else break;r[e>>2]=0}else b=r[o+8>>2]|0,r[b+12>>2]=A,r[A+8>>2]=b;while(!1);do if(l){if(e=r[o+28>>2]|0,i=23732+(e<<2)|0,(o|0)==(r[i>>2]|0)){if(r[i>>2]=A,!A){n=n&~(1<>2]|0)==(o|0)?b:l+20|0)>>2]=A,!A)break;r[A+24>>2]=l,e=r[o+16>>2]|0,e|0&&(r[A+16>>2]=e,r[e+24>>2]=A),e=r[o+20>>2]|0,e&&(r[A+20>>2]=e,r[e+24>>2]=A)}while(!1);A:do if(f>>>0<16)b=f+s|0,r[o+4>>2]=b|3,b=o+b+4|0,r[b>>2]=r[b>>2]|1;else{if(r[o+4>>2]=s|3,r[g+4>>2]=f|1,r[g+f>>2]=f,A=f>>>3,f>>>0<256){i=23468+(A<<1<<2)|0,e=r[5857]|0,A=1<>2]|0):(r[5857]=e|A,A=i,e=i+8|0),r[e>>2]=g,r[A+12>>2]=g,r[g+8>>2]=A,r[g+12>>2]=i;break}if(A=f>>>8,A?f>>>0>16777215?i=31:(I=(A+1048320|0)>>>16&8,b=A<>>16&4,b=b<>>16&2,i=14-(M|I|i)+(b<>>15)|0,i=f>>>(i+7|0)&1|i<<1):i=0,A=23732+(i<<2)|0,r[g+28>>2]=i,e=g+16|0,r[e+4>>2]=0,r[e>>2]=0,e=1<>2]=g,r[g+24>>2]=A,r[g+12>>2]=g,r[g+8>>2]=g;break}A=r[A>>2]|0;e:do if((r[A+4>>2]&-8|0)!=(f|0)){for(n=f<<((i|0)==31?0:25-(i>>>1)|0);i=A+16+(n>>>31<<2)|0,e=r[i>>2]|0,!!e;)if((r[e+4>>2]&-8|0)==(f|0)){A=e;break e}else n=n<<1,A=e;r[i>>2]=g,r[g+24>>2]=A,r[g+12>>2]=g,r[g+8>>2]=g;break A}while(!1);I=A+8|0,b=r[I>>2]|0,r[b+12>>2]=g,r[I>>2]=g,r[g+8>>2]=b,r[g+12>>2]=A,r[g+24>>2]=0}while(!1);return b=o+8|0,w=Y,b|0}else B=s}else B=s;else B=-1;while(!1);if(i=r[5859]|0,i>>>0>=B>>>0)return A=i-B|0,e=r[5862]|0,A>>>0>15?(b=e+B|0,r[5862]=b,r[5859]=A,r[b+4>>2]=A|1,r[e+i>>2]=A,r[e+4>>2]=B|3):(r[5859]=0,r[5862]=0,r[e+4>>2]=i|3,b=e+i+4|0,r[b>>2]=r[b>>2]|1),b=e+8|0,w=Y,b|0;if(f=r[5860]|0,f>>>0>B>>>0)return M=f-B|0,r[5860]=M,b=r[5863]|0,I=b+B|0,r[5863]=I,r[I+4>>2]=M|1,r[b+4>>2]=B|3,b=b+8|0,w=Y,b|0;if(r[5975]|0?e=r[5977]|0:(r[5977]=4096,r[5976]=4096,r[5978]=-1,r[5979]=-1,r[5980]=0,r[5968]=0,r[5975]=a&-16^1431655768,e=4096),o=B+48|0,u=B+47|0,l=e+u|0,t=0-e|0,s=l&t,s>>>0<=B>>>0||(e=r[5967]|0,e|0&&(g=r[5965]|0,a=g+s|0,a>>>0<=g>>>0|a>>>0>e>>>0)))return b=0,w=Y,b|0;A:do if(r[5968]&4)A=0,Q=143;else{i=r[5863]|0;e:do if(i){for(n=23876;a=r[n>>2]|0,!(a>>>0<=i>>>0&&(a+(r[n+4>>2]|0)|0)>>>0>i>>>0);)if(e=r[n+8>>2]|0,e)n=e;else{Q=128;break e}if(A=l-f&t,A>>>0<2147483647)if(e=S0(A|0)|0,(e|0)==((r[n>>2]|0)+(r[n+4>>2]|0)|0)){if((e|0)!=-1){f=A,l=e,Q=145;break A}}else n=e,Q=136;else A=0}else Q=128;while(!1);do if((Q|0)==128)if(i=S0(0)|0,(i|0)!=-1&&(A=i,D=r[5976]|0,k=D+-1|0,A=(k&A|0?(k+A&0-D)-A|0:0)+s|0,D=r[5965]|0,k=A+D|0,A>>>0>B>>>0&A>>>0<2147483647)){if(a=r[5967]|0,a|0&&k>>>0<=D>>>0|k>>>0>a>>>0){A=0;break}if(e=S0(A|0)|0,(e|0)==(i|0)){f=A,l=i,Q=145;break A}else n=e,Q=136}else A=0;while(!1);do if((Q|0)==136){if(i=0-A|0,!(o>>>0>A>>>0&(A>>>0<2147483647&(n|0)!=-1)))if((n|0)==-1){A=0;break}else{f=A,l=n,Q=145;break A}if(e=r[5977]|0,e=u-A+e&0-e,e>>>0>=2147483647){f=A,l=n,Q=145;break A}if((S0(e|0)|0)==-1){S0(i|0)|0,A=0;break}else{f=e+A|0,l=n,Q=145;break A}}while(!1);r[5968]=r[5968]|4,Q=143}while(!1);if((Q|0)==143&&s>>>0<2147483647&&(M=S0(s|0)|0,k=S0(0)|0,G=k-M|0,p=G>>>0>(B+40|0)>>>0,!((M|0)==-1|p^1|M>>>0>>0&((M|0)!=-1&(k|0)!=-1)^1))&&(f=p?G:A,l=M,Q=145),(Q|0)==145){A=(r[5965]|0)+f|0,r[5965]=A,A>>>0>(r[5966]|0)>>>0&&(r[5966]=A),u=r[5863]|0;A:do if(u){for(A=23876;;){if(e=r[A>>2]|0,i=r[A+4>>2]|0,(l|0)==(e+i|0)){Q=154;break}if(n=r[A+8>>2]|0,n)A=n;else break}if((Q|0)==154&&(I=A+4|0,(r[A+12>>2]&8|0)==0)&&l>>>0>u>>>0&e>>>0<=u>>>0){r[I>>2]=i+f,b=(r[5860]|0)+f|0,M=u+8|0,M=M&7|0?0-M&7:0,I=u+M|0,M=b-M|0,r[5863]=I,r[5860]=M,r[I+4>>2]=M|1,r[u+b+4>>2]=40,r[5864]=r[5979];break}for(l>>>0<(r[5861]|0)>>>0&&(r[5861]=l),i=l+f|0,A=23876;;){if((r[A>>2]|0)==(i|0)){Q=162;break}if(e=r[A+8>>2]|0,e)A=e;else break}if((Q|0)==162&&!(r[A+12>>2]&8|0)){r[A>>2]=l,g=A+4|0,r[g>>2]=(r[g>>2]|0)+f,g=l+8|0,g=l+(g&7|0?0-g&7:0)|0,A=i+8|0,A=i+(A&7|0?0-A&7:0)|0,s=g+B|0,o=A-g-B|0,r[g+4>>2]=B|3;e:do if((u|0)==(A|0))b=(r[5860]|0)+o|0,r[5860]=b,r[5863]=s,r[s+4>>2]=b|1;else{if((r[5862]|0)==(A|0)){b=(r[5859]|0)+o|0,r[5859]=b,r[5862]=s,r[s+4>>2]=b|1,r[s+b>>2]=b;break}if(e=r[A+4>>2]|0,(e&3|0)==1){f=e&-8,n=e>>>3;r:do if(e>>>0<256)if(e=r[A+8>>2]|0,i=r[A+12>>2]|0,(i|0)==(e|0)){r[5857]=r[5857]&~(1<>2]=i,r[i+8>>2]=e;break}else{l=r[A+24>>2]|0,e=r[A+12>>2]|0;do if((e|0)==(A|0)){if(i=A+16|0,n=i+4|0,e=r[n>>2]|0,e)i=n;else if(e=r[i>>2]|0,!e){e=0;break}for(;;)if(t=e+20|0,n=r[t>>2]|0,n)e=n,i=t;else if(t=e+16|0,n=r[t>>2]|0,n)e=n,i=t;else break;r[i>>2]=0}else b=r[A+8>>2]|0,r[b+12>>2]=e,r[e+8>>2]=b;while(!1);if(!l)break;i=r[A+28>>2]|0,n=23732+(i<<2)|0;do if((r[n>>2]|0)!=(A|0)){if(b=l+16|0,r[((r[b>>2]|0)==(A|0)?b:l+20|0)>>2]=e,!e)break r}else{if(r[n>>2]=e,e|0)break;r[5858]=r[5858]&~(1<>2]=l,i=A+16|0,n=r[i>>2]|0,n|0&&(r[e+16>>2]=n,r[n+24>>2]=e),i=r[i+4>>2]|0,!i)break;r[e+20>>2]=i,r[i+24>>2]=e}while(!1);A=A+f|0,t=f+o|0}else t=o;if(A=A+4|0,r[A>>2]=r[A>>2]&-2,r[s+4>>2]=t|1,r[s+t>>2]=t,A=t>>>3,t>>>0<256){i=23468+(A<<1<<2)|0,e=r[5857]|0,A=1<>2]|0):(r[5857]=e|A,A=i,e=i+8|0),r[e>>2]=s,r[A+12>>2]=s,r[s+8>>2]=A,r[s+12>>2]=i;break}A=t>>>8;do if(!A)n=0;else{if(t>>>0>16777215){n=31;break}I=(A+1048320|0)>>>16&8,b=A<>>16&4,b=b<>>16&2,n=14-(M|I|n)+(b<>>15)|0,n=t>>>(n+7|0)&1|n<<1}while(!1);if(A=23732+(n<<2)|0,r[s+28>>2]=n,e=s+16|0,r[e+4>>2]=0,r[e>>2]=0,e=r[5858]|0,i=1<>2]=s,r[s+24>>2]=A,r[s+12>>2]=s,r[s+8>>2]=s;break}A=r[A>>2]|0;r:do if((r[A+4>>2]&-8|0)!=(t|0)){for(n=t<<((n|0)==31?0:25-(n>>>1)|0);i=A+16+(n>>>31<<2)|0,e=r[i>>2]|0,!!e;)if((r[e+4>>2]&-8|0)==(t|0)){A=e;break r}else n=n<<1,A=e;r[i>>2]=s,r[s+24>>2]=A,r[s+12>>2]=s,r[s+8>>2]=s;break e}while(!1);I=A+8|0,b=r[I>>2]|0,r[b+12>>2]=s,r[I>>2]=s,r[s+8>>2]=b,r[s+12>>2]=A,r[s+24>>2]=0}while(!1);return b=g+8|0,w=Y,b|0}for(A=23876;e=r[A>>2]|0,!(e>>>0<=u>>>0&&(b=e+(r[A+4>>2]|0)|0,b>>>0>u>>>0));)A=r[A+8>>2]|0;t=b+-47|0,e=t+8|0,e=t+(e&7|0?0-e&7:0)|0,t=u+16|0,e=e>>>0>>0?u:e,A=e+8|0,i=f+-40|0,M=l+8|0,M=M&7|0?0-M&7:0,I=l+M|0,M=i-M|0,r[5863]=I,r[5860]=M,r[I+4>>2]=M|1,r[l+i+4>>2]=40,r[5864]=r[5979],i=e+4|0,r[i>>2]=27,r[A>>2]=r[5969],r[A+4>>2]=r[5970],r[A+8>>2]=r[5971],r[A+12>>2]=r[5972],r[5969]=l,r[5970]=f,r[5972]=0,r[5971]=A,A=e+24|0;do I=A,A=A+4|0,r[A>>2]=7;while((I+8|0)>>>0>>0);if((e|0)!=(u|0)){if(l=e-u|0,r[i>>2]=r[i>>2]&-2,r[u+4>>2]=l|1,r[e>>2]=l,A=l>>>3,l>>>0<256){i=23468+(A<<1<<2)|0,e=r[5857]|0,A=1<>2]|0):(r[5857]=e|A,A=i,e=i+8|0),r[e>>2]=u,r[A+12>>2]=u,r[u+8>>2]=A,r[u+12>>2]=i;break}if(A=l>>>8,A?l>>>0>16777215?n=31:(I=(A+1048320|0)>>>16&8,b=A<>>16&4,b=b<>>16&2,n=14-(M|I|n)+(b<>>15)|0,n=l>>>(n+7|0)&1|n<<1):n=0,i=23732+(n<<2)|0,r[u+28>>2]=n,r[u+20>>2]=0,r[t>>2]=0,A=r[5858]|0,e=1<>2]=u,r[u+24>>2]=i,r[u+12>>2]=u,r[u+8>>2]=u;break}A=r[i>>2]|0;e:do if((r[A+4>>2]&-8|0)!=(l|0)){for(n=l<<((n|0)==31?0:25-(n>>>1)|0);i=A+16+(n>>>31<<2)|0,e=r[i>>2]|0,!!e;)if((r[e+4>>2]&-8|0)==(l|0)){A=e;break e}else n=n<<1,A=e;r[i>>2]=u,r[u+24>>2]=A,r[u+12>>2]=u,r[u+8>>2]=u;break A}while(!1);I=A+8|0,b=r[I>>2]|0,r[b+12>>2]=u,r[I>>2]=u,r[u+8>>2]=b,r[u+12>>2]=A,r[u+24>>2]=0}}else b=r[5861]|0,(b|0)==0|l>>>0>>0&&(r[5861]=l),r[5969]=l,r[5970]=f,r[5972]=0,r[5866]=r[5975],r[5865]=-1,r[5870]=23468,r[5869]=23468,r[5872]=23476,r[5871]=23476,r[5874]=23484,r[5873]=23484,r[5876]=23492,r[5875]=23492,r[5878]=23500,r[5877]=23500,r[5880]=23508,r[5879]=23508,r[5882]=23516,r[5881]=23516,r[5884]=23524,r[5883]=23524,r[5886]=23532,r[5885]=23532,r[5888]=23540,r[5887]=23540,r[5890]=23548,r[5889]=23548,r[5892]=23556,r[5891]=23556,r[5894]=23564,r[5893]=23564,r[5896]=23572,r[5895]=23572,r[5898]=23580,r[5897]=23580,r[5900]=23588,r[5899]=23588,r[5902]=23596,r[5901]=23596,r[5904]=23604,r[5903]=23604,r[5906]=23612,r[5905]=23612,r[5908]=23620,r[5907]=23620,r[5910]=23628,r[5909]=23628,r[5912]=23636,r[5911]=23636,r[5914]=23644,r[5913]=23644,r[5916]=23652,r[5915]=23652,r[5918]=23660,r[5917]=23660,r[5920]=23668,r[5919]=23668,r[5922]=23676,r[5921]=23676,r[5924]=23684,r[5923]=23684,r[5926]=23692,r[5925]=23692,r[5928]=23700,r[5927]=23700,r[5930]=23708,r[5929]=23708,r[5932]=23716,r[5931]=23716,b=f+-40|0,M=l+8|0,M=M&7|0?0-M&7:0,I=l+M|0,M=b-M|0,r[5863]=I,r[5860]=M,r[I+4>>2]=M|1,r[l+b+4>>2]=40,r[5864]=r[5979];while(!1);if(A=r[5860]|0,A>>>0>B>>>0)return M=A-B|0,r[5860]=M,b=r[5863]|0,I=b+B|0,r[5863]=I,r[I+4>>2]=M|1,r[b+4>>2]=B|3,b=b+8|0,w=Y,b|0}return b=Dn()|0,r[b>>2]=12,b=0,w=Y,b|0}function iA(e){e=e|0;var A=0,i=0,n=0,t=0,l=0,f=0,o=0,u=0;if(e){i=e+-8|0,t=r[5861]|0,e=r[e+-4>>2]|0,A=e&-8,u=i+A|0;do if(e&1)o=i,f=i;else{if(n=r[i>>2]|0,!(e&3)||(f=i+(0-n)|0,l=n+A|0,f>>>0>>0))return;if((r[5862]|0)==(f|0)){if(e=u+4|0,A=r[e>>2]|0,(A&3|0)!=3){o=f,A=l;break}r[5859]=l,r[e>>2]=A&-2,r[f+4>>2]=l|1,r[f+l>>2]=l;return}if(i=n>>>3,n>>>0<256)if(e=r[f+8>>2]|0,A=r[f+12>>2]|0,(A|0)==(e|0)){r[5857]=r[5857]&~(1<>2]=A,r[A+8>>2]=e,o=f,A=l;break}t=r[f+24>>2]|0,e=r[f+12>>2]|0;do if((e|0)==(f|0)){if(A=f+16|0,i=A+4|0,e=r[i>>2]|0,e)A=i;else if(e=r[A>>2]|0,!e){e=0;break}for(;;)if(n=e+20|0,i=r[n>>2]|0,i)e=i,A=n;else if(n=e+16|0,i=r[n>>2]|0,i)e=i,A=n;else break;r[A>>2]=0}else o=r[f+8>>2]|0,r[o+12>>2]=e,r[e+8>>2]=o;while(!1);if(t){if(A=r[f+28>>2]|0,i=23732+(A<<2)|0,(r[i>>2]|0)==(f|0)){if(r[i>>2]=e,!e){r[5858]=r[5858]&~(1<>2]|0)==(f|0)?o:t+20|0)>>2]=e,!e){o=f,A=l;break}r[e+24>>2]=t,A=f+16|0,i=r[A>>2]|0,i|0&&(r[e+16>>2]=i,r[i+24>>2]=e),A=r[A+4>>2]|0,A?(r[e+20>>2]=A,r[A+24>>2]=e,o=f,A=l):(o=f,A=l)}else o=f,A=l}while(!1);if(!(f>>>0>=u>>>0)&&(e=u+4|0,n=r[e>>2]|0,!!(n&1))){if(n&2)r[e>>2]=n&-2,r[o+4>>2]=A|1,r[f+A>>2]=A,t=A;else{if((r[5863]|0)==(u|0)){if(u=(r[5860]|0)+A|0,r[5860]=u,r[5863]=o,r[o+4>>2]=u|1,(o|0)!=(r[5862]|0))return;r[5862]=0,r[5859]=0;return}if((r[5862]|0)==(u|0)){u=(r[5859]|0)+A|0,r[5859]=u,r[5862]=f,r[o+4>>2]=u|1,r[f+u>>2]=u;return}t=(n&-8)+A|0,i=n>>>3;do if(n>>>0<256)if(A=r[u+8>>2]|0,e=r[u+12>>2]|0,(e|0)==(A|0)){r[5857]=r[5857]&~(1<>2]=e,r[e+8>>2]=A;break}else{l=r[u+24>>2]|0,e=r[u+12>>2]|0;do if((e|0)==(u|0)){if(A=u+16|0,i=A+4|0,e=r[i>>2]|0,e)A=i;else if(e=r[A>>2]|0,!e){i=0;break}for(;;)if(n=e+20|0,i=r[n>>2]|0,i)e=i,A=n;else if(n=e+16|0,i=r[n>>2]|0,i)e=i,A=n;else break;r[A>>2]=0,i=e}else i=r[u+8>>2]|0,r[i+12>>2]=e,r[e+8>>2]=i,i=e;while(!1);if(l|0){if(e=r[u+28>>2]|0,A=23732+(e<<2)|0,(r[A>>2]|0)==(u|0)){if(r[A>>2]=i,!i){r[5858]=r[5858]&~(1<>2]|0)==(u|0)?n:l+20|0)>>2]=i,!i)break;r[i+24>>2]=l,e=u+16|0,A=r[e>>2]|0,A|0&&(r[i+16>>2]=A,r[A+24>>2]=i),e=r[e+4>>2]|0,e|0&&(r[i+20>>2]=e,r[e+24>>2]=i)}}while(!1);if(r[o+4>>2]=t|1,r[f+t>>2]=t,(o|0)==(r[5862]|0)){r[5859]=t;return}}if(e=t>>>3,t>>>0<256){i=23468+(e<<1<<2)|0,A=r[5857]|0,e=1<>2]|0):(r[5857]=A|e,e=i,A=i+8|0),r[A>>2]=o,r[e+12>>2]=o,r[o+8>>2]=e,r[o+12>>2]=i;return}e=t>>>8,e?t>>>0>16777215?n=31:(f=(e+1048320|0)>>>16&8,u=e<>>16&4,u=u<>>16&2,n=14-(l|f|n)+(u<>>15)|0,n=t>>>(n+7|0)&1|n<<1):n=0,e=23732+(n<<2)|0,r[o+28>>2]=n,r[o+20>>2]=0,r[o+16>>2]=0,A=r[5858]|0,i=1<>2]=o,r[o+24>>2]=e,r[o+12>>2]=o,r[o+8>>2]=o;else{e=r[e>>2]|0;e:do if((r[e+4>>2]&-8|0)!=(t|0)){for(n=t<<((n|0)==31?0:25-(n>>>1)|0);i=e+16+(n>>>31<<2)|0,A=r[i>>2]|0,!!A;)if((r[A+4>>2]&-8|0)==(t|0)){e=A;break e}else n=n<<1,e=A;r[i>>2]=o,r[o+24>>2]=e,r[o+12>>2]=o,r[o+8>>2]=o;break A}while(!1);f=e+8|0,u=r[f>>2]|0,r[u+12>>2]=o,r[f>>2]=o,r[o+8>>2]=u,r[o+12>>2]=e,r[o+24>>2]=0}while(!1);if(u=(r[5865]|0)+-1|0,r[5865]=u,!(u|0)){for(e=23884;e=r[e>>2]|0,e;)e=e+8|0;r[5865]=-1}}}}function k0(e,A){e=e|0,A=A|0;var i=0;return e?(i=B0(A,e)|0,(A|e)>>>0>65535&&(i=((i>>>0)/(e>>>0)|0|0)==(A|0)?i:-1)):i=0,e=_0(i)|0,!e||!(r[e+-4>>2]&3)||X0(e|0,0,i|0)|0,e|0}function sA(e,A,i,n){return e=e|0,A=A|0,i=i|0,n=n|0,i=e+i>>>0,uA(A+n+(i>>>0>>0|0)>>>0|0),i|0|0}function YA(e,A,i,n){return e=e|0,A=A|0,i=i|0,n=n|0,n=A-n-(i>>>0>e>>>0|0)>>>0,uA(n|0),e-i>>>0|0|0}function pr(e){return e=e|0,(e?31-(Z0(e^e-1)|0)|0:32)|0}function P2(e,A,i,n,t){e=e|0,A=A|0,i=i|0,n=n|0,t=t|0;var l=0,f=0,o=0,u=0,s=0,g=0,B=0,a=0,D=0,k=0;if(g=e,u=A,s=u,f=i,a=n,o=a,!s)return l=(t|0)!=0,o?l?(r[t>>2]=e|0,r[t+4>>2]=A&0,a=0,t=0,uA(a|0),t|0):(a=0,t=0,uA(a|0),t|0):(l&&(r[t>>2]=(g>>>0)%(f>>>0),r[t+4>>2]=0),a=0,t=(g>>>0)/(f>>>0)>>>0,uA(a|0),t|0);l=(o|0)==0;do if(f){if(!l){if(l=(Z0(o|0)|0)-(Z0(s|0)|0)|0,l>>>0<=31){B=l+1|0,o=31-l|0,A=l-31>>31,f=B,e=g>>>(B>>>0)&A|s<>>(B>>>0)&A,l=0,o=g<>2]=e|0,r[t+4>>2]=u|A&0,a=0,t=0,uA(a|0),t|0):(a=0,t=0,uA(a|0),t|0)}if(l=f-1|0,l&f|0){o=(Z0(f|0)|0)+33-(Z0(s|0)|0)|0,k=64-o|0,B=32-o|0,u=B>>31,D=o-32|0,A=D>>31,f=o,e=B-1>>31&s>>>(D>>>0)|(s<>>(o>>>0))&A,A=A&s>>>(o>>>0),l=g<>>(D>>>0))&u|g<>31;break}return t|0&&(r[t>>2]=l&g,r[t+4>>2]=0),(f|0)==1?(D=u|A&0,k=e|0|0,uA(D|0),k|0):(k=pr(f|0)|0,D=s>>>(k>>>0)|0,k=s<<32-k|g>>>(k>>>0)|0,uA(D|0),k|0)}else{if(l)return t|0&&(r[t>>2]=(s>>>0)%(f>>>0),r[t+4>>2]=0),D=0,k=(s>>>0)/(f>>>0)>>>0,uA(D|0),k|0;if(!g)return t|0&&(r[t>>2]=0,r[t+4>>2]=(s>>>0)%(o>>>0)),D=0,k=(s>>>0)/(o>>>0)>>>0,uA(D|0),k|0;if(l=o-1|0,!(l&o))return t|0&&(r[t>>2]=e|0,r[t+4>>2]=l&s|A&0),D=0,k=s>>>((pr(o|0)|0)>>>0),uA(D|0),k|0;if(l=(Z0(o|0)|0)-(Z0(s|0)|0)|0,l>>>0<=30){A=l+1|0,o=31-l|0,f=A,e=s<>>(A>>>0),A=s>>>(A>>>0),l=0,o=g<>2]=e|0,r[t+4>>2]=u|A&0,D=0,k=0,uA(D|0),k|0):(D=0,k=0,uA(D|0),k|0)}while(!1);if(!f)s=o,u=0,o=0;else{B=i|0|0,g=a|n&0,s=sA(B|0,g|0,-1,-1)|0,i=_()|0,u=o,o=0;do n=u,u=l>>>31|u<<1,l=o|l<<1,n=e<<1|n>>>31|0,a=e>>>31|A<<1|0,YA(s|0,i|0,n|0,a|0)|0,k=_()|0,D=k>>31|((k|0)<0?-1:0)<<1,o=D&1,e=YA(n|0,a|0,D&B|0,(((k|0)<0?-1:0)>>31|((k|0)<0?-1:0)<<1)&g|0)|0,A=_()|0,f=f-1|0;while(f|0);s=u,u=0}return f=0,t|0&&(r[t>>2]=e,r[t+4>>2]=A),D=(l|0)>>>31|(s|f)<<1|(f<<1|l>>>31)&0|u,k=(l<<1|0)&-2|o,uA(D|0),k|0}function J0(e,A,i,n){e=e|0,A=A|0,i=i|0,n=n|0;var t=0,l=0,f=0,o=0,u=0,s=0;return s=A>>31|((A|0)<0?-1:0)<<1,u=((A|0)<0?-1:0)>>31|((A|0)<0?-1:0)<<1,l=n>>31|((n|0)<0?-1:0)<<1,t=((n|0)<0?-1:0)>>31|((n|0)<0?-1:0)<<1,o=YA(s^e|0,u^A|0,s|0,u|0)|0,f=_()|0,e=l^s,A=t^u,YA((P2(o,f,YA(l^i|0,t^n|0,l|0,t|0)|0,_()|0,0)|0)^e|0,(_()|0)^A|0,e|0,A|0)|0}function bn(e,A){e=e|0,A=A|0;var i=0,n=0,t=0,l=0;return l=e&65535,t=A&65535,i=B0(t,l)|0,n=e>>>16,e=(i>>>16)+(B0(t,n)|0)|0,t=A>>>16,A=B0(t,l)|0,uA((e>>>16)+(B0(t,n)|0)+(((e&65535)+A|0)>>>16)|0),e+A<<16|i&65535|0|0}function cA(e,A,i,n){e=e|0,A=A|0,i=i|0,n=n|0;var t=0,l=0;return t=e,l=i,i=bn(t,l)|0,e=_()|0,uA((B0(A,l)|0)+(B0(n,t)|0)+e|e&0|0),i|0|0|0}function Ne(e,A,i,n){e=e|0,A=A|0,i=i|0,n=n|0;var t=0,l=0,f=0,o=0,u=0,s=0;return t=w,w=w+16|0,o=t|0,f=A>>31|((A|0)<0?-1:0)<<1,l=((A|0)<0?-1:0)>>31|((A|0)<0?-1:0)<<1,s=n>>31|((n|0)<0?-1:0)<<1,u=((n|0)<0?-1:0)>>31|((n|0)<0?-1:0)<<1,e=YA(f^e|0,l^A|0,f|0,l|0)|0,A=_()|0,P2(e,A,YA(s^i|0,u^n|0,s|0,u|0)|0,_()|0,o)|0,n=YA(r[o>>2]^f|0,r[o+4>>2]^l|0,f|0,l|0)|0,i=_()|0,w=t,uA(i|0),n|0}function ge(e,A,i,n){e=e|0,A=A|0,i=i|0,n=n|0;var t=0,l=0;return l=w,w=w+16|0,t=l|0,P2(e,A,i,n,t)|0,w=l,uA(r[t+4>>2]|0),r[t>>2]|0|0}function Gr(e,A,i){return e=e|0,A=A|0,i=i|0,(i|0)<32?(uA(A>>i|0),e>>>i|(A&(1<>i-32|0)}function S(e,A,i){return e=e|0,A=A|0,i=i|0,(i|0)<32?(uA(A>>>i|0),e>>>i|(A&(1<>>i-32|0)}function H(e,A,i){return e=e|0,A=A|0,i=i|0,(i|0)<32?(uA(A<>>32-i|0),e<=0?+SA(e+.5):+fe(e-.5)}function ze(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0;if((i|0)>=8192)return Fi(e|0,A|0,i|0)|0,e|0;if(l=e|0,t=e+i|0,(e&3)==(A&3)){for(;e&3;){if(!i)return l|0;q[e>>0]=q[A>>0]|0,e=e+1|0,A=A+1|0,i=i-1|0}for(i=t&-4|0,n=i-64|0;(e|0)<=(n|0);)r[e>>2]=r[A>>2],r[e+4>>2]=r[A+4>>2],r[e+8>>2]=r[A+8>>2],r[e+12>>2]=r[A+12>>2],r[e+16>>2]=r[A+16>>2],r[e+20>>2]=r[A+20>>2],r[e+24>>2]=r[A+24>>2],r[e+28>>2]=r[A+28>>2],r[e+32>>2]=r[A+32>>2],r[e+36>>2]=r[A+36>>2],r[e+40>>2]=r[A+40>>2],r[e+44>>2]=r[A+44>>2],r[e+48>>2]=r[A+48>>2],r[e+52>>2]=r[A+52>>2],r[e+56>>2]=r[A+56>>2],r[e+60>>2]=r[A+60>>2],e=e+64|0,A=A+64|0;for(;(e|0)<(i|0);)r[e>>2]=r[A>>2],e=e+4|0,A=A+4|0}else for(i=t-4|0;(e|0)<(i|0);)q[e>>0]=q[A>>0]|0,q[e+1>>0]=q[A+1>>0]|0,q[e+2>>0]=q[A+2>>0]|0,q[e+3>>0]=q[A+3>>0]|0,e=e+4|0,A=A+4|0;for(;(e|0)<(t|0);)q[e>>0]=q[A>>0]|0,e=e+1|0,A=A+1|0;return l|0}function X0(e,A,i){e=e|0,A=A|0,i=i|0;var n=0,t=0,l=0,f=0;if(l=e+i|0,A=A&255,(i|0)>=67){for(;e&3;)q[e>>0]=A,e=e+1|0;for(n=l&-4|0,f=A|A<<8|A<<16|A<<24,t=n-64|0;(e|0)<=(t|0);)r[e>>2]=f,r[e+4>>2]=f,r[e+8>>2]=f,r[e+12>>2]=f,r[e+16>>2]=f,r[e+20>>2]=f,r[e+24>>2]=f,r[e+28>>2]=f,r[e+32>>2]=f,r[e+36>>2]=f,r[e+40>>2]=f,r[e+44>>2]=f,r[e+48>>2]=f,r[e+52>>2]=f,r[e+56>>2]=f,r[e+60>>2]=f,e=e+64|0;for(;(e|0)<(n|0);)r[e>>2]=f,e=e+4|0}for(;(e|0)<(l|0);)q[e>>0]=A,e=e+1|0;return l-i|0}function Tr(e){return e=+e,e>=0?+SA(e+.5):+fe(e-.5)}function S0(e){e=e|0;var A=0,i=0,n=0;return n=Ti()|0,i=r[JA>>2]|0,A=i+e|0,(e|0)>0&(A|0)<(i|0)|(A|0)<0?(Ri(A|0)|0,W2(12),-1):(A|0)>(n|0)&&!(Ui(A|0)|0)?(W2(12),-1):(r[JA>>2]=A,i|0)}return{___divdi3:J0,___muldi3:cA,___remdi3:Ne,___uremdi3:ge,_areNeighborCells:f1,_bitshift64Ashr:Gr,_bitshift64Lshr:S,_bitshift64Shl:H,_calloc:k0,_cellAreaKm2:z1,_cellAreaM2:Y1,_cellAreaRads2:M2,_cellToBoundary:Ee,_cellToCenterChild:b1,_cellToChildPos:L1,_cellToChildren:D1,_cellToChildrenSize:Ve,_cellToLatLng:ae,_cellToLocalIj:K1,_cellToParent:E2,_cellToVertex:t0,_cellToVertexes:hn,_cellsToDirectedEdge:o1,_cellsToLinkedMultiPolygon:ji,_childPosToCell:T1,_compactCells:Q1,_destroyLinkedMultiPolygon:ar,_directedEdgeToBoundary:Oe,_directedEdgeToCells:v1,_edgeLengthKm:d1,_edgeLengthM:Z1,_edgeLengthRads:c1,_emscripten_replace_memory:Si,_free:iA,_getBaseCellNumber:vr,_getDirectedEdgeDestination:s1,_getDirectedEdgeOrigin:u1,_getHexagonAreaAvgKm2:O1,_getHexagonAreaAvgM2:V1,_getHexagonEdgeLengthAvgKm:N1,_getHexagonEdgeLengthAvgM:H1,_getIcosahedronFaces:hr,_getNumCells:m2,_getPentagons:Q2,_getRes0Cells:Xi,_getResolution:E1,_greatCircleDistanceKm:Ce,_greatCircleDistanceM:U1,_greatCircleDistanceRads:F1,_gridDisk:x2,_gridDiskDistances:K2,_gridDistance:X1,_gridPathCells:$1,_gridPathCellsSize:q1,_gridRingUnsafe:Yi,_i64Add:sA,_i64Subtract:YA,_isPentagon:pA,_isResClassIII:P1,_isValidCell:a2,_isValidDirectedEdge:g1,_isValidVertex:_n,_latLngToCell:wr,_llvm_maxnum_f64:Lr,_llvm_minnum_f64:I2,_llvm_round_f64:He,_localIjToCell:J1,_malloc:_0,_maxFaceCount:p1,_maxGridDiskSize:zi,_maxPolygonToCellsSize:ci,_memcpy:ze,_memset:X0,_originToDirectedEdges:w1,_pentagonCount:G1,_polygonToCells:di,_readInt64AsDoubleFromPointer:sn,_res0CellCount:Ji,_round:Tr,_sbrk:S0,_sizeOfCellBoundary:tn,_sizeOfCoordIJ:un,_sizeOfGeoLoop:ln,_sizeOfGeoPolygon:fn,_sizeOfH3Index:rn,_sizeOfLatLng:nn,_sizeOfLinkedGeoPolygon:on,_uncompactCells:m1,_uncompactCellsSize:M1,_vertexToLatLng:Bn,establishStackSpace:Hi,stackAlloc:Oi,stackRestore:Ni,stackSave:Vi}}(mi,Mi,ne),vt=v.___divdi3=O.___divdi3,wt=v.___muldi3=O.___muldi3,ht=v.___remdi3=O.___remdi3,Bt=v.___uremdi3=O.___uremdi3,_t=v._areNeighborCells=O._areNeighborCells,kt=v._bitshift64Ashr=O._bitshift64Ashr,at=v._bitshift64Lshr=O._bitshift64Lshr,Et=v._bitshift64Shl=O._bitshift64Shl,Dt=v._calloc=O._calloc,Ct=v._cellAreaKm2=O._cellAreaKm2,bt=v._cellAreaM2=O._cellAreaM2,Qt=v._cellAreaRads2=O._cellAreaRads2,mt=v._cellToBoundary=O._cellToBoundary,Mt=v._cellToCenterChild=O._cellToCenterChild,Pt=v._cellToChildPos=O._cellToChildPos,It=v._cellToChildren=O._cellToChildren,yt=v._cellToChildrenSize=O._cellToChildrenSize,pt=v._cellToLatLng=O._cellToLatLng,Gt=v._cellToLocalIj=O._cellToLocalIj,Lt=v._cellToParent=O._cellToParent,Tt=v._cellToVertex=O._cellToVertex,Ft=v._cellToVertexes=O._cellToVertexes,Ut=v._cellsToDirectedEdge=O._cellsToDirectedEdge,Rt=v._cellsToLinkedMultiPolygon=O._cellsToLinkedMultiPolygon,St=v._childPosToCell=O._childPosToCell,Ot=v._compactCells=O._compactCells,Vt=v._destroyLinkedMultiPolygon=O._destroyLinkedMultiPolygon,Nt=v._directedEdgeToBoundary=O._directedEdgeToBoundary,Ht=v._directedEdgeToCells=O._directedEdgeToCells,zt=v._edgeLengthKm=O._edgeLengthKm,Yt=v._edgeLengthM=O._edgeLengthM,ct=v._edgeLengthRads=O._edgeLengthRads,Pi=v._emscripten_replace_memory=O._emscripten_replace_memory,dt=v._free=O._free,Zt=v._getBaseCellNumber=O._getBaseCellNumber,jt=v._getDirectedEdgeDestination=O._getDirectedEdgeDestination,Wt=v._getDirectedEdgeOrigin=O._getDirectedEdgeOrigin,xt=v._getHexagonAreaAvgKm2=O._getHexagonAreaAvgKm2,Kt=v._getHexagonAreaAvgM2=O._getHexagonAreaAvgM2,Jt=v._getHexagonEdgeLengthAvgKm=O._getHexagonEdgeLengthAvgKm,Xt=v._getHexagonEdgeLengthAvgM=O._getHexagonEdgeLengthAvgM,qt=v._getIcosahedronFaces=O._getIcosahedronFaces,$t=v._getNumCells=O._getNumCells,Al=v._getPentagons=O._getPentagons,el=v._getRes0Cells=O._getRes0Cells,rl=v._getResolution=O._getResolution,il=v._greatCircleDistanceKm=O._greatCircleDistanceKm,nl=v._greatCircleDistanceM=O._greatCircleDistanceM,tl=v._greatCircleDistanceRads=O._greatCircleDistanceRads,ll=v._gridDisk=O._gridDisk,fl=v._gridDiskDistances=O._gridDiskDistances,ol=v._gridDistance=O._gridDistance,ul=v._gridPathCells=O._gridPathCells,sl=v._gridPathCellsSize=O._gridPathCellsSize,gl=v._gridRingUnsafe=O._gridRingUnsafe,vl=v._i64Add=O._i64Add,wl=v._i64Subtract=O._i64Subtract,hl=v._isPentagon=O._isPentagon,Bl=v._isResClassIII=O._isResClassIII,_l=v._isValidCell=O._isValidCell,kl=v._isValidDirectedEdge=O._isValidDirectedEdge,al=v._isValidVertex=O._isValidVertex,El=v._latLngToCell=O._latLngToCell,Dl=v._llvm_maxnum_f64=O._llvm_maxnum_f64,Cl=v._llvm_minnum_f64=O._llvm_minnum_f64,bl=v._llvm_round_f64=O._llvm_round_f64,Ql=v._localIjToCell=O._localIjToCell,ml=v._malloc=O._malloc,Ml=v._maxFaceCount=O._maxFaceCount,Pl=v._maxGridDiskSize=O._maxGridDiskSize,Il=v._maxPolygonToCellsSize=O._maxPolygonToCellsSize,yl=v._memcpy=O._memcpy,pl=v._memset=O._memset,Gl=v._originToDirectedEdges=O._originToDirectedEdges,Ll=v._pentagonCount=O._pentagonCount,Tl=v._polygonToCells=O._polygonToCells,Fl=v._readInt64AsDoubleFromPointer=O._readInt64AsDoubleFromPointer,Ul=v._res0CellCount=O._res0CellCount,Rl=v._round=O._round,Sl=v._sbrk=O._sbrk,Ol=v._sizeOfCellBoundary=O._sizeOfCellBoundary,Vl=v._sizeOfCoordIJ=O._sizeOfCoordIJ,Nl=v._sizeOfGeoLoop=O._sizeOfGeoLoop,Hl=v._sizeOfGeoPolygon=O._sizeOfGeoPolygon,zl=v._sizeOfH3Index=O._sizeOfH3Index,Yl=v._sizeOfLatLng=O._sizeOfLatLng,cl=v._sizeOfLinkedGeoPolygon=O._sizeOfLinkedGeoPolygon,dl=v._uncompactCells=O._uncompactCells,Zl=v._uncompactCellsSize=O._uncompactCellsSize,jl=v._vertexToLatLng=O._vertexToLatLng,Wl=v.establishStackSpace=O.establishStackSpace,c2=v.stackAlloc=O.stackAlloc,Ii=v.stackRestore=O.stackRestore,yi=v.stackSave=O.stackSave;if(v.asm=O,v.cwrap=jr,v.setValue=Yr,v.getValue=cr,C0){V2(C0)||(C0=eA(C0));{vi("memory initializer");var l2=function(m){m.byteLength&&(m=new Uint8Array(m)),te.set(m,qe),v.memoryInitializerRequest&&delete v.memoryInitializerRequest.response,wi("memory initializer")},d2=function(){rA(C0,l2,function(){throw"could not load memory initializer "+C0})},Z2=t2(C0);if(Z2)l2(Z2.buffer);else if(v.memoryInitializerRequest){var j2=function(){var m=v.memoryInitializerRequest,T=m.response;if(m.status!==200&&m.status!==0){var z=t2(v.memoryInitializerRequestURL);if(z)T=z.buffer;else{console.warn("a problem seems to have happened with Module.memoryInitializerRequest, status: "+m.status+", retrying "+C0),d2();return}}l2(T)};v.memoryInitializerRequest.response?setTimeout(j2,0):v.memoryInitializerRequest.addEventListener("load",j2)}else d2()}}var Fe;Be=function m(){Fe||f2(),Fe||(Be=m)};function f2(m){if(m=m||F,c0>0||(ri(),c0>0))return;function T(){Fe||(Fe=!0,!p2&&(ii(),ni(),v.onRuntimeInitialized&&v.onRuntimeInitialized(),ti()))}v.setStatus?(v.setStatus("Running..."),setTimeout(function(){setTimeout(function(){v.setStatus("")},1),T()},1)):T()}v.run=f2;function d0(m){throw v.onAbort&&v.onAbort(m),m+="",mA(m),r0(m),p2=!0,"abort("+m+"). Build with -s ASSERTIONS=1 for more info."}if(v.abort=d0,v.preInit)for(typeof v.preInit=="function"&&(v.preInit=[v.preInit]);v.preInit.length>0;)v.preInit.pop()();return f2(),E}(typeof P=="object"?P:{}),tA="number",J=tA,u0=tA,x=tA,$=tA,UA=tA,j=tA,ce=[["sizeOfH3Index",tA],["sizeOfLatLng",tA],["sizeOfCellBoundary",tA],["sizeOfGeoLoop",tA],["sizeOfGeoPolygon",tA],["sizeOfLinkedGeoPolygon",tA],["sizeOfCoordIJ",tA],["readInt64AsDoubleFromPointer",tA],["isValidCell",u0,[x,$]],["latLngToCell",J,[tA,tA,UA,j]],["cellToLatLng",J,[x,$,j]],["cellToBoundary",J,[x,$,j]],["maxGridDiskSize",J,[tA,j]],["gridDisk",J,[x,$,tA,j]],["gridDiskDistances",J,[x,$,tA,j,j]],["gridRingUnsafe",J,[x,$,tA,j]],["maxPolygonToCellsSize",J,[j,UA,tA,j]],["polygonToCells",J,[j,UA,tA,j]],["cellsToLinkedMultiPolygon",J,[j,tA,j]],["destroyLinkedMultiPolygon",null,[j]],["compactCells",J,[j,j,tA,tA]],["uncompactCells",J,[j,tA,tA,j,tA,UA]],["uncompactCellsSize",J,[j,tA,tA,UA,j]],["isPentagon",u0,[x,$]],["isResClassIII",u0,[x,$]],["getBaseCellNumber",tA,[x,$]],["getResolution",tA,[x,$]],["maxFaceCount",J,[x,$,j]],["getIcosahedronFaces",J,[x,$,j]],["cellToParent",J,[x,$,UA,j]],["cellToChildren",J,[x,$,UA,j]],["cellToCenterChild",J,[x,$,UA,j]],["cellToChildrenSize",J,[x,$,UA,j]],["cellToChildPos",J,[x,$,UA,j]],["childPosToCell",J,[tA,tA,x,$,UA,j]],["areNeighborCells",J,[x,$,x,$,j]],["cellsToDirectedEdge",J,[x,$,x,$,j]],["getDirectedEdgeOrigin",J,[x,$,j]],["getDirectedEdgeDestination",J,[x,$,j]],["isValidDirectedEdge",u0,[x,$]],["directedEdgeToCells",J,[x,$,j]],["originToDirectedEdges",J,[x,$,j]],["directedEdgeToBoundary",J,[x,$,j]],["gridDistance",J,[x,$,x,$,j]],["gridPathCells",J,[x,$,x,$,j]],["gridPathCellsSize",J,[x,$,x,$,j]],["cellToLocalIj",J,[x,$,x,$,tA,j]],["localIjToCell",J,[x,$,j,tA,j]],["getHexagonAreaAvgM2",J,[UA,j]],["getHexagonAreaAvgKm2",J,[UA,j]],["getHexagonEdgeLengthAvgM",J,[UA,j]],["getHexagonEdgeLengthAvgKm",J,[UA,j]],["greatCircleDistanceM",tA,[j,j]],["greatCircleDistanceKm",tA,[j,j]],["greatCircleDistanceRads",tA,[j,j]],["cellAreaM2",J,[x,$,j]],["cellAreaKm2",J,[x,$,j]],["cellAreaRads2",J,[x,$,j]],["edgeLengthM",J,[x,$,j]],["edgeLengthKm",J,[x,$,j]],["edgeLengthRads",J,[x,$,j]],["getNumCells",J,[UA,j]],["getRes0Cells",J,[j]],["res0CellCount",tA],["getPentagons",J,[tA,j]],["pentagonCount",tA],["cellToVertex",J,[x,$,tA,j]],["cellToVertexes",J,[x,$,j]],["vertexToLatLng",J,[x,$,j]],["isValidVertex",u0,[x,$]]],de=0,Ze=1,s0=2,m0=3,V0=4,N0=5,Qe=6,me=7,je=8,$0=9,M0=10,P0=11,Me=12,Pe=13,Ae=14,g0=15,LA={};LA[de]="Success",LA[Ze]="The operation failed but a more specific error is not available",LA[s0]="Argument was outside of acceptable range",LA[m0]="Latitude or longitude arguments were outside of acceptable range",LA[V0]="Resolution argument was outside of acceptable range",LA[N0]="Cell argument was not valid",LA[Qe]="Directed edge argument was not valid",LA[me]="Undirected edge argument was not valid",LA[je]="Vertex argument was not valid",LA[$0]="Pentagon distortion was encountered",LA[M0]="Duplicate input",LA[P0]="Cell arguments were not neighbors",LA[Me]="Cell arguments had incompatible resolutions",LA[Pe]="Memory allocation failed",LA[Ae]="Bounds of provided memory were insufficient",LA[g0]="Mode or flags argument was not valid";var l0=1e3,ee=1001,ve=1002,H0={};H0[l0]="Unknown unit",H0[ee]="Array length out of bounds",H0[ve]="Got unexpected null value for H3 index";var We="Unknown error";function Ie(E,v,C){var y=C&&"value"in C,F=new Error((E[v]||We)+" (code: "+v+(y?", value: "+C.value:"")+")");return F.code=v,F}function re(E,v){var C=arguments.length===2?{value:v}:{};return Ie(LA,E,C)}function qA(E,v){var C=arguments.length===2?{value:v}:{};return Ie(H0,E,C)}function K(E){if(E!==0)throw re(E)}var N={};ce.forEach(function(v){N[v[0]]=P.cwrap.apply(P,v)});var a0=16,z0=0,QA=4,we=4,TA=8,NA=8,wA=N.sizeOfH3Index(),$A=N.sizeOfLatLng(),E0=N.sizeOfCellBoundary(),IA=N.sizeOfGeoPolygon(),Y0=N.sizeOfGeoLoop(),xe=N.sizeOfLinkedGeoPolygon(),ye=N.sizeOfCoordIJ(),dA={m:"m",m2:"m2",km:"km",km2:"km2",rads:"rads",rads2:"rads2"};function I0(E){if(typeof E!="number"||E<0||E>15||Math.floor(E)!==E)throw re(V0,E);return E}function f0(E){if(!E)throw qA(ve);return E}var Ke=Math.pow(2,32)-1;function y0(E){if(E>Ke)throw qA(ee,E);return E}var U=/[^0-9a-fA-F]/;function R(E){if(Array.isArray(E)&&E.length===2&&Number.isInteger(E[0])&&Number.isInteger(E[1]))return E;if(typeof E!="string"||U.test(E))return[0,0];var v=parseInt(E.substring(0,E.length-8),a0),C=parseInt(E.substring(E.length-8),a0);return[C,v]}function d(E){if(E>=0)return E.toString(a0);E=E&2147483647;var v=X(8,E.toString(a0)),C=(parseInt(v[0],a0)+8).toString(a0);return v=C+v.substring(1),v}function W(E,v){return d(v)+X(8,d(E))}function X(E,v){for(var C=E-v.length,y="",F=0;F0){rA=P._calloc(C,Y0);for(var mA=0;mA0){for(var eA=P.getValue(E+y,"i32"),rA=0;rA=0&&C.push(F)}return C}function Je(E){var v=R(E),C=v[0],y=v[1];return!!N.isValidCell(C,y)}function Qn(E){var v=R(E),C=v[0],y=v[1];return!!N.isPentagon(C,y)}function mn(E){var v=R(E),C=v[0],y=v[1];return!!N.isResClassIII(C,y)}function Mn(E){var v=R(E),C=v[0],y=v[1];return N.getBaseCellNumber(C,y)}function Pn(E){var v=R(E),C=v[0],y=v[1],F=P._malloc(QA);try{K(N.maxFaceCount(C,y,F));var L=P.getValue(F,"i32"),eA=P._malloc(QA*L);try{return K(N.getIcosahedronFaces(C,y,eA)),Or(eA,L)}finally{P._free(eA)}}finally{P._free(F)}}function In(E){var v=R(E),C=v[0],y=v[1];return N.isValidCell(C,y)?N.getResolution(C,y):-1}function yn(E,v,C){var y=P._malloc($A);P.HEAPF64.set([E,v].map(Xe),y/TA);var F=P._malloc(wA);try{return K(N.latLngToCell(y,C,F)),f0(ZA(F))}finally{P._free(F),P._free(y)}}function Vr(E){var v=P._malloc($A),C=R(E),y=C[0],F=C[1];try{return K(N.cellToLatLng(y,F,v)),jA(v)}finally{P._free(v)}}function Nr(E,v){var C=P._malloc(E0),y=R(E),F=y[0],L=y[1];try{return K(N.cellToBoundary(F,L,C)),o0(C,v,v)}finally{P._free(C)}}function pn(E,v){var C=R(E),y=C[0],F=C[1],L=P._malloc(wA);try{return K(N.cellToParent(y,F,v,L)),f0(ZA(L))}finally{P._free(L)}}function Gn(E,v){if(!Je(E))return[];var C=R(E),y=C[0],F=C[1],L=y0(Hr(E,v)),eA=P._calloc(L,wA);try{return K(N.cellToChildren(y,F,v,eA)),KA(eA,L)}finally{P._free(eA)}}function Hr(E,v){if(!Je(E))throw re(N0);var C=R(E),y=C[0],F=C[1],L=P._malloc(NA);try{return K(N.cellToChildrenSize(y,F,v,L)),e0(L)}finally{P._free(L)}}function Ln(E,v){var C=R(E),y=C[0],F=C[1],L=P._malloc(wA);try{return K(N.cellToCenterChild(y,F,v,L)),f0(ZA(L))}finally{P._free(L)}}function Tn(E,v){var C=R(E),y=C[0],F=C[1],L=P._malloc(NA);try{return K(N.cellToChildPos(y,F,v,L)),e0(L)}finally{P._free(L)}}function Fn(E,v,C){var y=BA(E),F=y[0],L=y[1],eA=R(v),rA=eA[0],mA=eA[1],r0=P._malloc(wA);try{return K(N.childPosToCell(F,L,rA,mA,C,r0)),f0(ZA(r0))}finally{P._free(r0)}}function Un(E,v){var C=R(E),y=C[0],F=C[1],L=P._malloc(NA);try{K(N.maxGridDiskSize(v,L));var eA=y0(e0(L)),rA=P._calloc(eA,wA);try{return K(N.gridDisk(y,F,v,rA)),KA(rA,eA)}finally{P._free(rA)}}finally{P._free(L)}}function Rn(E,v){var C=R(E),y=C[0],F=C[1],L=P._malloc(NA);try{K(N.maxGridDiskSize(v,L));var eA=y0(e0(L)),rA=P._calloc(eA,wA),mA=P._calloc(eA,QA);try{K(N.gridDiskDistances(y,F,v,rA,mA));for(var r0=[],D0=0;D0=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.2","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},X=function(e,r){var n=arguments;if(r==null||!hasOwn.call(r,"css"))return React.createElement.apply(void 0,n);var o=n.length,d=new Array(o);d[0]=Emotion,d[1]=createEmotionProps(e,r);for(var _=2;_=60&&Math.round(V.h)<=240?z=me?Math.round(V.h)-p*le:Math.round(V.h)+p*le:z=me?Math.round(V.h)+p*le:Math.round(V.h)-p*le,z<0?z+=360:z>=360&&(z-=360),z}function s(V,le,me){if(V.h===0&&V.s===0)return V.s;var z;return me?z=V.s-d*le:le===n?z=V.s+d:z=V.s+g*le,z>1&&(z=1),me&&le===e&&z>.1&&(z=.1),z<.06&&(z=.06),Number(z.toFixed(2))}function m(V,le,me){var z;return me?z=V.v+_*le:z=V.v-u*le,z>1&&(z=1),Number(z.toFixed(2))}function R(V){for(var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},me=[],z=(0,l.uA)(V),Me=e;Me>0;Me-=1){var we=E(z),bt=S((0,l.uA)({h:L(we,Me,!0),s:s(we,Me,!0),v:m(we,Me,!0)}));me.push(bt)}me.push(S(z));for(var Ae=1;Ae<=n;Ae+=1){var Xe=E(z),st=S((0,l.uA)({h:L(Xe,Ae),s:s(Xe,Ae),v:m(Xe,Ae)}));me.push(st)}return le.theme==="dark"?v.map(function(nt){var Gt=nt.index,Et=nt.opacity,Zt=S(b((0,l.uA)(le.backgroundColor||"#141414"),(0,l.uA)(me[Gt]),Et*100));return Zt}):me}var Z={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"},y={},A={};Object.keys(Z).forEach(function(V){y[V]=R(Z[V]),y[V].primary=y[V][5],A[V]=R(Z[V],{theme:"dark",backgroundColor:"#141414"}),A[V].primary=A[V][5]});var W=y.red,I=y.volcano,Y=y.gold,ue=y.orange,se=y.yellow,J=y.lime,oe=y.green,he=y.cyan,Pe=y.blue,Ze=y.geekblue,He=y.purple,ut=y.magenta,ct=y.grey,yt=y.grey},1499:function(B,h,o){o.r(h),o.d(h,{Keyframes:function(){return Mn},NaNLinter:function(){return an},StyleProvider:function(){return se},Theme:function(){return ct},_experimental:function(){return In},createCache:function(){return Y},createTheme:function(){return V},extractStyle:function(){return An},getComputedToken:function(){return _e},legacyLogicalPropertiesTransformer:function(){return On},legacyNotSelectorLinter:function(){return en},logicalPropertiesLinter:function(){return rn},parentSelectorLinter:function(){return un},px2remTransformer:function(){return Ln},token2CSSVar:function(){return Yt},unit:function(){return hr},useCSSVarRegister:function(){return Sn},useCacheToken:function(){return ve},useStyleRegister:function(){return gn}});var i=o(8136),l=o(64649),p=o(13285),d=o(50189);function g(t){for(var a=0,r,c=0,f=t.length;f>=4;++c,f-=4)r=t.charCodeAt(c)&255|(t.charCodeAt(++c)&255)<<8|(t.charCodeAt(++c)&255)<<16|(t.charCodeAt(++c)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,a=(r&65535)*1540483477+((r>>>16)*59797<<16)^(a&65535)*1540483477+((a>>>16)*59797<<16);switch(f){case 3:a^=(t.charCodeAt(c+2)&255)<<16;case 2:a^=(t.charCodeAt(c+1)&255)<<8;case 1:a^=t.charCodeAt(c)&255,a=(a&65535)*1540483477+((a>>>16)*59797<<16)}return a^=a>>>13,a=(a&65535)*1540483477+((a>>>16)*59797<<16),((a^a>>>15)>>>0).toString(36)}var _=g,u=o(89992),e=o(87363),n=o(53782),v=o(8805),E=o(46882),S=o(22951),b=o(91976),L="%";function s(t){return t.join(L)}var m=function(){function t(a){(0,S.Z)(this,t),(0,l.Z)(this,"instanceId",void 0),(0,l.Z)(this,"cache",new Map),this.instanceId=a}return(0,b.Z)(t,[{key:"get",value:function(r){return this.opGet(s(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,c){return this.opUpdate(s(r),c)}},{key:"opUpdate",value:function(r,c){var f=this.cache.get(r),C=c(f);C===null?this.cache.delete(r):this.cache.set(r,C)}}]),t}(),R=m,Z=["children"],y="data-token-hash",A="data-css-hash",W="data-cache-path",I="__cssinjs_instance__";function Y(){var t=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var a=document.body.querySelectorAll("style[".concat(A,"]"))||[],r=document.head.firstChild;Array.from(a).forEach(function(f){f[I]=f[I]||t,f[I]===t&&document.head.insertBefore(f,r)});var c={};Array.from(document.querySelectorAll("style[".concat(A,"]"))).forEach(function(f){var C=f.getAttribute(A);if(c[C]){if(f[I]===t){var P;(P=f.parentNode)===null||P===void 0||P.removeChild(f)}}else c[C]=!0})}return new R(t)}var ue=e.createContext({hashPriority:"low",cache:Y(),defaultCache:!0}),se=function(a){var r=a.children,c=(0,n.Z)(a,Z),f=e.useContext(ue),C=(0,v.Z)(function(){var P=(0,d.Z)({},f);Object.keys(c).forEach(function(M){var k=c[M];c[M]!==void 0&&(P[M]=k)});var T=c.cache;return P.cache=P.cache||Y(),P.defaultCache=!T&&f.defaultCache,P},[f,c],function(P,T){return!(0,E.Z)(P[0],T[0],!0)||!(0,E.Z)(P[1],T[1],!0)});return e.createElement(ue.Provider,{value:C},r)},J=ue,oe=o(33940),he=o(98554);function Pe(t,a){if(t.length!==a.length)return!1;for(var r=0;r1&&arguments[1]!==void 0?arguments[1]:!1,P={map:this.cache};return r.forEach(function(T){if(!P)P=void 0;else{var M;P=(M=P)===null||M===void 0||(M=M.map)===null||M===void 0?void 0:M.get(T)}}),(c=P)!==null&&c!==void 0&&c.value&&C&&(P.value[1]=this.cacheCallTimes++),(f=P)===null||f===void 0?void 0:f.value}},{key:"get",value:function(r){var c;return(c=this.internalGet(r,!0))===null||c===void 0?void 0:c[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,c){var f=this;if(!this.has(r)){if(this.size()+1>t.MAX_CACHE_SIZE+t.MAX_CACHE_OFFSET){var C=this.keys.reduce(function(k,x){var w=(0,i.Z)(k,2),O=w[1];return f.internalGet(x)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),ut+=1}return(0,b.Z)(t,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(c,f){return f(r,c)},void 0)}}]),t}(),yt=new Ze;function V(t){var a=Array.isArray(t)?t:[t];return yt.has(a)||yt.set(a,new ct(a)),yt.get(a)}var le=new WeakMap,me={};function z(t,a){for(var r=le,c=0;c1&&arguments[1]!==void 0?arguments[1]:!1,r=Me.get(t)||"";return r||(Object.keys(t).forEach(function(c){var f=t[c];r+=c,f instanceof ct?r+=f.id:f&&(0,oe.Z)(f)==="object"?r+=we(f,a):r+=f}),a&&(r=_(r)),Me.set(t,r)),r}function bt(t,a){return _("".concat(a,"_").concat(we(t,!0)))}var Ae="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Xe="_bAmBoO_";function st(t,a,r){if((0,he.Z)()){var c,f;(0,u.hq)(t,Ae);var C=document.createElement("div");C.style.position="fixed",C.style.left="0",C.style.top="0",a==null||a(C),document.body.appendChild(C);var P=r?r(C):(c=getComputedStyle(C).content)===null||c===void 0?void 0:c.includes(Xe);return(f=C.parentNode)===null||f===void 0||f.removeChild(C),(0,u.jL)(Ae),P}return!1}var nt=null;function Gt(){return nt===void 0&&(nt=st("@layer ".concat(Ae," { .").concat(Ae,' { content: "').concat(Xe,'"!important; } }'),function(t){t.className=Ae})),nt}var Et=void 0;function Zt(){return Et===void 0&&(Et=st(":where(.".concat(Ae,') { content: "').concat(Xe,'"!important; }'),function(t){t.className=Ae})),Et}var Ot=void 0;function vr(){return Ot===void 0&&(Ot=st(".".concat(Ae," { inset-block: 93px !important; }"),function(t){t.className=Ae},function(t){return getComputedStyle(t).bottom==="93px"})),Ot}var Dt=(0,he.Z)();function hr(t){return typeof t=="number"?"".concat(t,"px"):t}function ft(t,a,r){var c,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},C=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(C)return t;var P=(0,d.Z)((0,d.Z)({},f),{},(c={},(0,l.Z)(c,y,a),(0,l.Z)(c,A,r),c)),T=Object.keys(P).map(function(M){var k=P[M];return k?"".concat(M,'="').concat(k,'"'):null}).filter(function(M){return M}).join(" ");return"")}var Yt=function(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(a).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()},Qt=function(a,r,c){return Object.keys(a).length?".".concat(r).concat(c!=null&&c.scope?".".concat(c.scope):"","{").concat(Object.entries(a).map(function(f){var C=(0,i.Z)(f,2),P=C[0],T=C[1];return"".concat(P,":").concat(T,";")}).join(""),"}"):""},Xt=function(a,r,c){var f={},C={};return Object.entries(a).forEach(function(P){var T,M,k=(0,i.Z)(P,2),x=k[0],w=k[1];if(c!=null&&(T=c.preserve)!==null&&T!==void 0&&T[x])C[x]=w;else if((typeof w=="string"||typeof w=="number")&&!(c!=null&&(M=c.ignore)!==null&&M!==void 0&&M[x])){var O,H=Yt(x,c==null?void 0:c.prefix);f[H]=typeof w=="number"&&!(c!=null&&(O=c.unitless)!==null&&O!==void 0&&O[x])?"".concat(w,"px"):String(w),C[x]="var(".concat(H,")")}}),[C,Qt(f,r,{scope:c==null?void 0:c.scope})]},pr=o(99664),mr=(0,d.Z)({},e),jt=mr.useInsertionEffect,gr=function(a,r,c){e.useMemo(a,c),(0,pr.Z)(function(){return r(!0)},c)},Jt=jt?function(t,a,r){return jt(function(){return t(),a()},r)}:gr,Wt=Jt,Bt=(0,d.Z)({},e),Ut=Bt.useInsertionEffect,Nt=function(a){var r=[],c=!1;function f(C){c||r.push(C)}return e.useEffect(function(){return c=!1,function(){c=!0,r.length&&r.forEach(function(C){return C()})}},a),f},yr=function(){return function(a){a()}},Ft=typeof Ut!="undefined"?Nt:yr,br=Ft;function Er(){return!1}var Sr=!1;function Tr(){return Sr}var _r=Er;if(0)var Zr,Or;function D(t,a,r,c,f){var C=e.useContext(J),P=C.cache,T=[t].concat((0,p.Z)(a)),M=s(T),k=br([M]),x=_r(),w=function(N){P.opUpdate(M,function(Q){var ee=Q||[void 0,void 0],K=(0,i.Z)(ee,2),te=K[0],X=te===void 0?0:te,re=K[1],ae=re,$=ae||r(),fe=[X,$];return N?N(fe):fe})};e.useMemo(function(){w()},[M]);var O=P.opGet(M),H=O[1];return Wt(function(){f==null||f(H)},function(ie){return w(function(N){var Q=(0,i.Z)(N,2),ee=Q[0],K=Q[1];return ie&&ee===0&&(f==null||f(H)),[ee+1,K]}),function(){P.opUpdate(M,function(N){var Q=N||[],ee=(0,i.Z)(Q,2),K=ee[0],te=K===void 0?0:K,X=ee[1],re=te-1;return re===0?(k(function(){(ie||!P.opGet(M))&&(c==null||c(X,!1))}),null):[te-1,X]})}},[M]),H}var j={},U="css",F=new Map;function G(t){F.set(t,(F.get(t)||0)+1)}function ce(t,a){if(typeof document!="undefined"){var r=document.querySelectorAll("style[".concat(y,'="').concat(t,'"]'));r.forEach(function(c){if(c[I]===a){var f;(f=c.parentNode)===null||f===void 0||f.removeChild(c)}})}}var ge=0;function Ee(t,a){F.set(t,(F.get(t)||0)-1);var r=Array.from(F.keys()),c=r.filter(function(f){var C=F.get(f)||0;return C<=0});r.length-c.length>ge&&c.forEach(function(f){ce(f,a),F.delete(f)})}var _e=function(a,r,c,f){var C=c.getDerivativeToken(a),P=(0,d.Z)((0,d.Z)({},C),r);return f&&(P=f(P)),P},ne="token";function ve(t,a){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=(0,e.useContext)(J),f=c.cache.instanceId,C=c.container,P=r.salt,T=P===void 0?"":P,M=r.override,k=M===void 0?j:M,x=r.formatToken,w=r.getComputedToken,O=r.cssVar,H=z(function(){return Object.assign.apply(Object,[{}].concat((0,p.Z)(a)))},a),ie=we(H),N=we(k),Q=O?we(O):"",ee=D(ne,[T,t.id,ie,N,Q],function(){var K,te=w?w(H,k,t):_e(H,k,t,x),X=(0,d.Z)({},te),re="";if(O){var ae=Xt(te,O.key,{prefix:O.prefix,ignore:O.ignore,unitless:O.unitless,preserve:O.preserve}),$=(0,i.Z)(ae,2);te=$[0],re=$[1]}var fe=bt(te,T);te._tokenKey=fe,X._tokenKey=bt(X,T);var Ie=(K=O==null?void 0:O.key)!==null&&K!==void 0?K:fe;te._themeKey=Ie,G(Ie);var Ne="".concat(U,"-").concat(_(fe));return te._hashId=Ne,[te,Ne,X,re,(O==null?void 0:O.key)||""]},function(K){Ee(K[0]._themeKey,f)},function(K){var te=(0,i.Z)(K,4),X=te[0],re=te[3];if(O&&re){var ae=(0,u.hq)(re,_("css-variables-".concat(X._themeKey)),{mark:A,prepend:"queue",attachTo:C,priority:-999});ae[I]=f,ae.setAttribute(y,X._themeKey)}});return ee}var pe=function(a,r,c){var f=(0,i.Z)(a,5),C=f[2],P=f[3],T=f[4],M=c||{},k=M.plain;if(!P)return null;var x=C._tokenKey,w=-999,O={"data-rc-order":"prependQueue","data-rc-priority":"".concat(w)},H=ft(P,T,x,O,k);return[w,x,H]},ye=o(25773),be={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},Ce=be,De="-ms-",Ve="-moz-",Oe="-webkit-",Je="comm",qe="rule",$e="decl",lt="@page",je="@media",ke="@import",et="@charset",qt="@viewport",St="@supports",We="@document",dt="@namespace",Te="@keyframes",vt="@font-face",Se="@counter-style",ht="@font-feature-values",Kt="@layer",Ht="@scope",pt=Math.abs,kt=String.fromCharCode,er=Object.assign;function tr(t,a){return Be(t,0)^45?(((a<<2^Be(t,0))<<2^Be(t,1))<<2^Be(t,2))<<2^Be(t,3):0}function _t(t){return t.trim()}function rr(t,a){return(t=a.exec(t))?t[0]:t}function Ct(t,a,r){return t.replace(a,r)}function nr(t,a,r){return t.indexOf(a,r)}function Be(t,a){return t.charCodeAt(a)|0}function At(t,a,r){return t.slice(a,r)}function ze(t){return t.length}function ar(t){return t.length}function tt(t,a){return a.push(t),t}function kr(t,a){return t.map(a).join("")}function Cr(t,a){return t.filter(function(r){return!rr(r,a)})}function Vt(t,a){for(var r="",c=0;c0?Be(Re,--de):0,rt--,q===10&&(rt=1,xt--),q}function Ue(){return q=de2||ur(q)>3?"":" "}function $r(t){for(;Ue();)switch(ur(q)){case 0:append(Ir(de-1),t);break;case 2:append(cr(q),t);break;default:append(from(q),t)}return t}function zr(t,a){for(;--a&&Ue()&&!(q<48||q>102||q>57&&q<65||q>70&&q<97););return ir(t,or()+(a<6&&Pt()==32&&Ue()==32))}function Ar(t){for(;Ue();)switch(q){case t:return de;case 34:case 39:t!==34&&t!==39&&Ar(q);break;case 40:t===41&&Ar(t);break;case 92:Ue();break}return de}function Gr(t,a){for(;Ue()&&t+q!==57;)if(t+q===84&&Pt()===47)break;return"/*"+ir(a,de-1)+"*"+kt(t===47?t:Ue())}function Ir(t){for(;!ur(Pt());)Ue();return ir(t,de)}function Yr(t){return Lr(sr("",null,null,null,[""],t=xr(t),0,[0],t))}function sr(t,a,r,c,f,C,P,T,M){for(var k=0,x=0,w=P,O=0,H=0,ie=0,N=1,Q=1,ee=1,K=0,te="",X=f,re=C,ae=c,$=te;Q;)switch(ie=K,K=Ue()){case 40:if(ie!=108&&Be($,w-1)==58){nr($+=Ct(cr(K),"&","&\f"),"&\f",pt(k?T[k-1]:0))!=-1&&(ee=-1);break}case 34:case 39:case 91:$+=cr(K);break;case 9:case 10:case 13:case 32:$+=Vr(ie);break;case 92:$+=zr(or()-1,7);continue;case 47:switch(Pt()){case 42:case 47:tt(Qr(Gr(Ue(),or()),a,r,M),M);break;default:$+="/"}break;case 123*N:T[k++]=ze($)*ee;case 125*N:case 59:case 0:switch(K){case 0:case 125:Q=0;case 59+x:ee==-1&&($=Ct($,/\f/g,"")),H>0&&ze($)-w&&tt(H>32?Dr($+";",c,r,w-1,M):Dr(Ct($," ","")+";",c,r,w-2,M),M);break;case 59:$+=";";default:if(tt(ae=wr($,a,r,k,x,f,T,te,X=[],re=[],w,C),C),K===123)if(x===0)sr($,a,ae,ae,X,C,w,T,re);else switch(O===99&&Be($,3)===110?100:O){case 100:case 108:case 109:case 115:sr(t,ae,ae,c&&tt(wr(t,ae,ae,0,0,f,T,te,f,X=[],w,re),re),f,re,w,T,c?X:re);break;default:sr($,ae,ae,ae,[""],re,0,T,re)}}k=x=H=0,N=ee=1,te=$="",w=P;break;case 58:w=1+ze($),H=ie;default:if(N<1){if(K==123)--N;else if(K==125&&N++==0&&Hr()==125)continue}switch($+=kt(K),K*N){case 38:ee=x>0?1:($+="\f",-1);break;case 44:T[k++]=(ze($)-1)*ee,ee=1;break;case 64:Pt()===45&&($+=cr(Ue())),O=Pt(),x=w=ze(te=$+=Ir(or())),K++;break;case 45:ie===45&&ze($)==2&&(N=0)}}return C}function wr(t,a,r,c,f,C,P,T,M,k,x,w){for(var O=f-1,H=f===0?C:[""],ie=ar(H),N=0,Q=0,ee=0;N0?H[K]+" "+te:Ct(te,/&\f/g,H[K])))&&(M[ee++]=X);return ot(t,a,r,f===0?qe:T,M,k,x,w)}function Qr(t,a,r,c){return ot(t,a,r,Je,kt(Kr()),At(t,2,-2),0,c)}function Dr(t,a,r,c,f){return ot(t,a,r,$e,At(t,0,c),At(t,c+1,-1),c,f)}function Mt(t,a){var r=a.path,c=a.parentSelectors;(0,He.ZP)(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(t).concat(c.length?" Selector: ".concat(c.join(" | ")):""))}var jn=function(a,r,c){if(a==="content"){var f=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,C=["normal","none","initial","inherit","unset"];(typeof r!="string"||C.indexOf(r)===-1&&!f.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&lintWarning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),c)}},Wn=null,Bn=function(a,r,c){a==="animation"&&c.hashId&&r!=="none"&&lintWarning("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),c)},Un=null;function Xr(t){var a,r=((a=t.match(/:not\(([^)]*)\)/))===null||a===void 0?void 0:a[1])||"",c=r.split(/(\[[^[]*])|(?=[.#])/).filter(function(f){return f});return c.length>1}function Jr(t){return t.parentSelectors.reduce(function(a,r){return a?r.includes("&")?r.replace(/&/g,a):"".concat(a," ").concat(r):r},"")}var qr=function(a,r,c){var f=Jr(c),C=f.match(/:not\([^)]*\)/g)||[];C.length>0&&C.some(Xr)&&Mt("Concat ':not' selector not support in legacy browsers.",c)},en=qr,tn=function(a,r,c){switch(a){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":Mt("You seem to be using non-logical property '".concat(a,"' 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."),c);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof r=="string"){var f=r.split(" ").map(function(T){return T.trim()});f.length===4&&f[1]!==f[3]&&Mt("You seem to be using '".concat(a,"' property with different left ").concat(a," and right ").concat(a,", 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."),c)}return;case"clear":case"textAlign":(r==="left"||r==="right")&&Mt("You seem to be using non-logical value '".concat(r,"' of ").concat(a,", 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."),c);return;case"borderRadius":if(typeof r=="string"){var C=r.split("/").map(function(T){return T.trim()}),P=C.reduce(function(T,M){if(T)return T;var k=M.split(" ").map(function(x){return x.trim()});return k.length>=2&&k[0]!==k[1]||k.length===3&&k[1]!==k[2]||k.length===4&&k[2]!==k[3]?!0:T},!1);P&&Mt("You seem to be using non-logical value '".concat(r,"' of ").concat(a,", 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."),c)}return;default:}},rn=tn,nn=function(a,r,c){(typeof r=="string"&&/NaN/g.test(r)||Number.isNaN(r))&&Mt("Unexpected 'NaN' in property '".concat(a,": ").concat(r,"'."),c)},an=nn,on=function(a,r,c){c.parentSelectors.some(function(f){var C=f.split(",");return C.some(function(P){return P.split("&").length>2})})&&Mt("Should not use more than one `&` in a selector.",c)},un=on,$t="data-ant-cssinjs-cache-path",jr="_FILE_STYLE__";function cn(t){return Object.keys(t).map(function(a){var r=t[a];return"".concat(a,":").concat(r)}).join(";")}var mt,Pr=!0;function Nn(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;mt=t,Pr=a}function sn(){if(!mt&&(mt={},(0,he.Z)())){var t=document.createElement("div");t.className=$t,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var a=getComputedStyle(t).content||"";a=a.replace(/^"/,"").replace(/"$/,""),a.split(";").forEach(function(f){var C=f.split(":"),P=(0,i.Z)(C,2),T=P[0],M=P[1];mt[T]=M});var r=document.querySelector("style[".concat($t,"]"));if(r){var c;Pr=!1,(c=r.parentNode)===null||c===void 0||c.removeChild(r)}document.body.removeChild(t)}}function fn(t){return sn(),!!mt[t]}function ln(t){var a=mt[t],r=null;if(a&&(0,he.Z)())if(Pr)r=jr;else{var c=document.querySelector("style[".concat(A,'="').concat(mt[t],'"]'));c?r=c.innerHTML:delete mt[t]}return[r,a]}var dn="_skip_check_",Wr="_multi_value_";function fr(t){var a=Vt(Yr(t),at);return a.replace(/\{%%%\:[^;];}/g,";")}function vn(t){return(0,oe.Z)(t)==="object"&&t&&(dn in t||Wr in t)}function hn(t,a,r){if(!a)return t;var c=".".concat(a),f=r==="low"?":where(".concat(c,")"):c,C=t.split(",").map(function(P){var T,M=P.trim().split(/\s+/),k=M[0]||"",x=((T=k.match(/^\w+/))===null||T===void 0?void 0:T[0])||"";return k="".concat(x).concat(f).concat(k.slice(x.length)),[k].concat((0,p.Z)(M.slice(1))).join(" ")});return C.join(",")}var pn=function t(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},f=c.root,C=c.injectHash,P=c.parentSelectors,T=r.hashId,M=r.layer,k=r.path,x=r.hashPriority,w=r.transformers,O=w===void 0?[]:w,H=r.linters,ie=H===void 0?[]:H,N="",Q={};function ee(X){var re=X.getName(T);if(!Q[re]){var ae=t(X.style,r,{root:!1,parentSelectors:P}),$=(0,i.Z)(ae,1),fe=$[0];Q[re]="@keyframes ".concat(X.getName(T)).concat(fe)}}function K(X){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return X.forEach(function(ae){Array.isArray(ae)?K(ae,re):ae&&re.push(ae)}),re}var te=K(Array.isArray(a)?a:[a]);return te.forEach(function(X){var re=typeof X=="string"&&!f?{}:X;if(typeof re=="string")N+="".concat(re,` +`);else if(re._keyframe)ee(re);else{var ae=O.reduce(function($,fe){var Ie;return(fe==null||(Ie=fe.visit)===null||Ie===void 0?void 0:Ie.call(fe,$))||$},re);Object.keys(ae).forEach(function($){var fe=ae[$];if((0,oe.Z)(fe)==="object"&&fe&&($!=="animationName"||!fe._keyframe)&&!vn(fe)){var Ie=!1,Ne=$.trim(),dr=!1;(f||C)&&T?Ne.startsWith("@")?Ie=!0:Ne=hn($,T,x):f&&!T&&(Ne==="&"||Ne==="")&&(Ne="",dr=!0);var Rr=t(fe,r,{root:dr,injectHash:Ie,parentSelectors:[].concat((0,p.Z)(P),[Ne])}),Ge=(0,i.Z)(Rr,2),xe=Ge[0],Le=Ge[1];Q=(0,d.Z)((0,d.Z)({},Q),Le),N+="".concat(Ne).concat(xe)}else{let gt=function(Fe,Ke){var wt=Fe.replace(/[A-Z]/g,function(Tt){return"-".concat(Tt.toLowerCase())}),Ye=Ke;!Ce[Fe]&&typeof Ye=="number"&&Ye!==0&&(Ye="".concat(Ye,"px")),Fe==="animationName"&&Ke!==null&&Ke!==void 0&&Ke._keyframe&&(ee(Ke),Ye=Ke.getName(T)),N+="".concat(wt,":").concat(Ye,";")};var it,Rt=(it=fe==null?void 0:fe.value)!==null&&it!==void 0?it:fe;(0,oe.Z)(fe)==="object"&&fe!==null&&fe!==void 0&&fe[Wr]&&Array.isArray(Rt)?Rt.forEach(function(Fe){gt($,Fe)}):gt($,Rt)}})}}),f?M&&(N="@layer ".concat(M.name," {").concat(N,"}"),M.dependencies&&(Q["@layer ".concat(M.name)]=M.dependencies.map(function(X){return"@layer ".concat(X,", ").concat(M.name,";")}).join(` +`))):N="{".concat(N,"}"),[N,Q]};function Br(t,a){return _("".concat(t.join("%")).concat(a))}function mn(){return null}var Ur="style";function gn(t,a){var r=t.token,c=t.path,f=t.hashId,C=t.layer,P=t.nonce,T=t.clientOnly,M=t.order,k=M===void 0?0:M,x=e.useContext(J),w=x.autoClear,O=x.mock,H=x.defaultCache,ie=x.hashPriority,N=x.container,Q=x.ssrInline,ee=x.transformers,K=x.linters,te=x.cache,X=x.layer,re=r._tokenKey,ae=[re];X&&ae.push("layer"),ae.push.apply(ae,(0,p.Z)(c));var $=Dt,fe=D(Ur,ae,function(){var Ge=ae.join("|");if(fn(Ge)){var xe=ln(Ge),Le=(0,i.Z)(xe,2),it=Le[0],Rt=Le[1];if(it)return[it,re,Rt,{},T,k]}var gt=a(),Fe=pn(gt,{hashId:f,hashPriority:ie,layer:X?C:void 0,path:c.join("-"),transformers:ee,linters:K}),Ke=(0,i.Z)(Fe,2),wt=Ke[0],Ye=Ke[1],Tt=fr(wt),Qe=Br(ae,Tt);return[Tt,re,Qe,Ye,T,k]},function(Ge,xe){var Le=(0,i.Z)(Ge,3),it=Le[2];(xe||w)&&Dt&&(0,u.jL)(it,{mark:A})},function(Ge){var xe=(0,i.Z)(Ge,4),Le=xe[0],it=xe[1],Rt=xe[2],gt=xe[3];if($&&Le!==jr){var Fe={mark:A,prepend:X?!1:"queue",attachTo:N,priority:k},Ke=typeof P=="function"?P():P;Ke&&(Fe.csp={nonce:Ke});var wt=[],Ye=[];Object.keys(gt).forEach(function(Qe){Qe.startsWith("@layer")?wt.push(Qe):Ye.push(Qe)}),wt.forEach(function(Qe){(0,u.hq)(fr(gt[Qe]),"_layer-".concat(Qe),(0,d.Z)((0,d.Z)({},Fe),{},{prepend:!0}))});var Tt=(0,u.hq)(Le,Rt,Fe);Tt[I]=te.instanceId,Tt.setAttribute(y,re),Ye.forEach(function(Qe){(0,u.hq)(fr(gt[Qe]),"_effect-".concat(Qe),Fe)})}}),Ie=(0,i.Z)(fe,3),Ne=Ie[0],dr=Ie[1],Rr=Ie[2];return function(Ge){var xe;if(!Q||$||!H)xe=e.createElement(mn,null);else{var Le;xe=e.createElement("style",(0,ye.Z)({},(Le={},(0,l.Z)(Le,y,dr),(0,l.Z)(Le,A,Rr),Le),{dangerouslySetInnerHTML:{__html:Ne}}))}return e.createElement(e.Fragment,null,xe,Ge)}}var yn=function(a,r,c){var f=(0,i.Z)(a,6),C=f[0],P=f[1],T=f[2],M=f[3],k=f[4],x=f[5],w=c||{},O=w.plain;if(k)return null;var H=C,ie={"data-rc-order":"prependQueue","data-rc-priority":"".concat(x)};return H=ft(C,P,T,ie,O),M&&Object.keys(M).forEach(function(N){if(!r[N]){r[N]=!0;var Q=fr(M[N]),ee=ft(Q,P,"_effect-".concat(N),ie,O);N.startsWith("@layer")?H=ee+H:H+=ee}}),[x,T,H]},Nr="cssVar",bn=function(a,r){var c=a.key,f=a.prefix,C=a.unitless,P=a.ignore,T=a.token,M=a.scope,k=M===void 0?"":M,x=(0,e.useContext)(J),w=x.cache.instanceId,O=x.container,H=T._tokenKey,ie=[].concat((0,p.Z)(a.path),[c,k,H]),N=D(Nr,ie,function(){var Q=r(),ee=Xt(Q,c,{prefix:f,unitless:C,ignore:P,scope:k}),K=(0,i.Z)(ee,2),te=K[0],X=K[1],re=Br(ie,X);return[te,X,re,c]},function(Q){var ee=(0,i.Z)(Q,3),K=ee[2];Dt&&(0,u.jL)(K,{mark:A})},function(Q){var ee=(0,i.Z)(Q,3),K=ee[1],te=ee[2];if(K){var X=(0,u.hq)(K,te,{mark:A,prepend:"queue",attachTo:O,priority:-999});X[I]=w,X.setAttribute(y,c)}});return N},En=function(a,r,c){var f=(0,i.Z)(a,4),C=f[1],P=f[2],T=f[3],M=c||{},k=M.plain;if(!C)return null;var x=-999,w={"data-rc-order":"prependQueue","data-rc-priority":"".concat(x)},O=ft(C,T,P,w,k);return[x,P,O]},Sn=bn,zt,_n=(zt={},(0,l.Z)(zt,Ur,yn),(0,l.Z)(zt,ne,pe),(0,l.Z)(zt,Nr,En),zt);function Cn(t){return t!==null}function An(t,a){var r=typeof a=="boolean"?{plain:a}:a||{},c=r.plain,f=c===void 0?!1:c,C=r.types,P=C===void 0?["style","token","cssVar"]:C,T=new RegExp("^(".concat((typeof P=="string"?[P]:P).join("|"),")%")),M=Array.from(t.cache.keys()).filter(function(O){return T.test(O)}),k={},x={},w="";return M.map(function(O){var H=O.replace(T,"").replace(/%/g,"|"),ie=O.split("%"),N=(0,i.Z)(ie,1),Q=N[0],ee=_n[Q],K=ee(t.cache.get(O)[1],k,{plain:f});if(!K)return null;var te=(0,i.Z)(K,3),X=te[0],re=te[1],ae=te[2];return O.startsWith("style")&&(x[H]=re),[X,ae]}).filter(Cn).sort(function(O,H){var ie=(0,i.Z)(O,1),N=ie[0],Q=(0,i.Z)(H,1),ee=Q[0];return N-ee}).forEach(function(O){var H=(0,i.Z)(O,2),ie=H[1];w+=ie}),w+=ft(".".concat($t,'{content:"').concat(cn(x),'";}'),void 0,void 0,(0,l.Z)({},$t,$t),f),w}var Pn=function(){function t(a,r){(0,S.Z)(this,t),(0,l.Z)(this,"name",void 0),(0,l.Z)(this,"style",void 0),(0,l.Z)(this,"_keyframe",!0),this.name=a,this.style=r}return(0,b.Z)(t,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),t}(),Mn=Pn;function Rn(t){if(typeof t=="number")return[[t],!1];var a=String(t).trim(),r=a.match(/(.*)(!important)/),c=(r?r[1]:a).trim().split(/\s+/),f=[],C=0;return[c.reduce(function(P,T){if(T.includes("(")||T.includes(")")){var M=T.split("(").length-1,k=T.split(")").length-1;C+=M-k}return C>=0&&f.push(T),C===0&&(P.push(f.join(" ")),f=[]),P},[]),!!r]}function It(t){return t.notSplit=!0,t}var Tn={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:It(["borderTop","borderBottom"]),borderBlockStart:It(["borderTop"]),borderBlockEnd:It(["borderBottom"]),borderInline:It(["borderLeft","borderRight"]),borderInlineStart:It(["borderLeft"]),borderInlineEnd:It(["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 lr(t,a){var r=t;return a&&(r="".concat(r," !important")),{_skip_check_:!0,value:r}}var Zn={visit:function(a){var r={};return Object.keys(a).forEach(function(c){var f=a[c],C=Tn[c];if(C&&(typeof f=="number"||typeof f=="string")){var P=Rn(f),T=(0,i.Z)(P,2),M=T[0],k=T[1];C.length&&C.notSplit?C.forEach(function(x){r[x]=lr(f,k)}):C.length===1?r[C[0]]=lr(M[0],k):C.length===2?C.forEach(function(x,w){var O;r[x]=lr((O=M[w])!==null&&O!==void 0?O:M[0],k)}):C.length===4?C.forEach(function(x,w){var O,H;r[x]=lr((O=(H=M[w])!==null&&H!==void 0?H:M[w-2])!==null&&O!==void 0?O:M[0],k)}):r[c]=f}else r[c]=f}),r}},On=Zn,Mr=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function kn(t,a){var r=Math.pow(10,a+1),c=Math.floor(t*r);return Math.round(c/10)*10/r}var xn=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=a.rootValue,c=r===void 0?16:r,f=a.precision,C=f===void 0?5:f,P=a.mediaQuery,T=P===void 0?!1:P,M=function(w,O){if(!O)return w;var H=parseFloat(O);if(H<=1)return w;var ie=kn(H/c,C);return"".concat(ie,"rem")},k=function(w){var O=(0,d.Z)({},w);return Object.entries(w).forEach(function(H){var ie=(0,i.Z)(H,2),N=ie[0],Q=ie[1];if(typeof Q=="string"&&Q.includes("px")){var ee=Q.replace(Mr,M);O[N]=ee}!Ce[N]&&typeof Q=="number"&&Q!==0&&(O[N]="".concat(Q,"px").replace(Mr,M));var K=N.trim();if(K.startsWith("@")&&K.includes("px")&&T){var te=N.replace(Mr,M);O[te]=O[N],delete O[N]}}),O};return{visit:k}},Ln=xn,In={supportModernCSS:function(){return Zt()&&vr()}}},47845:function(B,h,o){o.d(h,{GC:function(){return v},T6:function(){return S},VD:function(){return b},WE:function(){return u},Wl:function(){return E},Yt:function(){return L},lC:function(){return p},py:function(){return _},rW:function(){return l},s:function(){return n},ve:function(){return g},vq:function(){return e}});var i=o(39057);function l(s,m,R){return{r:(0,i.sh)(s,255)*255,g:(0,i.sh)(m,255)*255,b:(0,i.sh)(R,255)*255}}function p(s,m,R){s=(0,i.sh)(s,255),m=(0,i.sh)(m,255),R=(0,i.sh)(R,255);var Z=Math.max(s,m,R),y=Math.min(s,m,R),A=0,W=0,I=(Z+y)/2;if(Z===y)W=0,A=0;else{var Y=Z-y;switch(W=I>.5?Y/(2-Z-y):Y/(Z+y),Z){case s:A=(m-R)/Y+(m1&&(R-=1),R<1/6?s+(m-s)*(6*R):R<1/2?m:R<2/3?s+(m-s)*(2/3-R)*6:s}function g(s,m,R){var Z,y,A;if(s=(0,i.sh)(s,360),m=(0,i.sh)(m,100),R=(0,i.sh)(R,100),m===0)y=R,A=R,Z=R;else{var W=R<.5?R*(1+m):R+m-R*m,I=2*R-W;Z=d(I,W,s+1/3),y=d(I,W,s),A=d(I,W,s-1/3)}return{r:Z*255,g:y*255,b:A*255}}function _(s,m,R){s=(0,i.sh)(s,255),m=(0,i.sh)(m,255),R=(0,i.sh)(R,255);var Z=Math.max(s,m,R),y=Math.min(s,m,R),A=0,W=Z,I=Z-y,Y=Z===0?0:I/Z;if(Z===y)A=0;else{switch(Z){case s:A=(m-R)/I+(m>16,g:(s&65280)>>8,b:s&255}}},97649:function(B,h,o){o.d(h,{R:function(){return i}});var i={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"}},13144:function(B,h,o){o.d(h,{ky:function(){return S},uA:function(){return d},uz:function(){return E}});var i=o(47845),l=o(97649),p=o(39057);function d(b){var L={r:0,g:0,b:0},s=1,m=null,R=null,Z=null,y=!1,A=!1;return typeof b=="string"&&(b=E(b)),typeof b=="object"&&(S(b.r)&&S(b.g)&&S(b.b)?(L=(0,i.rW)(b.r,b.g,b.b),y=!0,A=String(b.r).substr(-1)==="%"?"prgb":"rgb"):S(b.h)&&S(b.s)&&S(b.v)?(m=(0,p.JX)(b.s),R=(0,p.JX)(b.v),L=(0,i.WE)(b.h,m,R),y=!0,A="hsv"):S(b.h)&&S(b.s)&&S(b.l)&&(m=(0,p.JX)(b.s),Z=(0,p.JX)(b.l),L=(0,i.ve)(b.h,m,Z),y=!0,A="hsl"),Object.prototype.hasOwnProperty.call(b,"a")&&(s=b.a)),s=(0,p.Yq)(s),{ok:y,format:b.format||A,r:Math.min(255,Math.max(L.r,0)),g:Math.min(255,Math.max(L.g,0)),b:Math.min(255,Math.max(L.b,0)),a:s}}var g="[-\\+]?\\d+%?",_="[-\\+]?\\d*\\.\\d+%?",u="(?:".concat(_,")|(?:").concat(g,")"),e="[\\s|\\(]+(".concat(u,")[,|\\s]+(").concat(u,")[,|\\s]+(").concat(u,")\\s*\\)?"),n="[\\s|\\(]+(".concat(u,")[,|\\s]+(").concat(u,")[,|\\s]+(").concat(u,")[,|\\s]+(").concat(u,")\\s*\\)?"),v={CSS_UNIT:new RegExp(u),rgb:new RegExp("rgb"+e),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+e),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+e),hsva:new RegExp("hsva"+n),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 E(b){if(b=b.trim().toLowerCase(),b.length===0)return!1;var L=!1;if(l.R[b])b=l.R[b],L=!0;else if(b==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var s=v.rgb.exec(b);return s?{r:s[1],g:s[2],b:s[3]}:(s=v.rgba.exec(b),s?{r:s[1],g:s[2],b:s[3],a:s[4]}:(s=v.hsl.exec(b),s?{h:s[1],s:s[2],l:s[3]}:(s=v.hsla.exec(b),s?{h:s[1],s:s[2],l:s[3],a:s[4]}:(s=v.hsv.exec(b),s?{h:s[1],s:s[2],v:s[3]}:(s=v.hsva.exec(b),s?{h:s[1],s:s[2],v:s[3],a:s[4]}:(s=v.hex8.exec(b),s?{r:(0,i.VD)(s[1]),g:(0,i.VD)(s[2]),b:(0,i.VD)(s[3]),a:(0,i.T6)(s[4]),format:L?"name":"hex8"}:(s=v.hex6.exec(b),s?{r:(0,i.VD)(s[1]),g:(0,i.VD)(s[2]),b:(0,i.VD)(s[3]),format:L?"name":"hex"}:(s=v.hex4.exec(b),s?{r:(0,i.VD)(s[1]+s[1]),g:(0,i.VD)(s[2]+s[2]),b:(0,i.VD)(s[3]+s[3]),a:(0,i.T6)(s[4]+s[4]),format:L?"name":"hex8"}:(s=v.hex3.exec(b),s?{r:(0,i.VD)(s[1]+s[1]),g:(0,i.VD)(s[2]+s[2]),b:(0,i.VD)(s[3]+s[3]),format:L?"name":"hex"}:!1)))))))))}function S(b){return!!v.CSS_UNIT.exec(String(b))}},68645:function(B,h,o){o.d(h,{C:function(){return g},H:function(){return _}});var i=o(47845),l=o(97649),p=o(13144),d=o(39057),g=function(){function u(e,n){e===void 0&&(e=""),n===void 0&&(n={});var v;if(e instanceof u)return e;typeof e=="number"&&(e=(0,i.Yt)(e)),this.originalInput=e;var E=(0,p.uA)(e);this.originalInput=e,this.r=E.r,this.g=E.g,this.b=E.b,this.a=E.a,this.roundA=Math.round(100*this.a)/100,this.format=(v=n.format)!==null&&v!==void 0?v:E.format,this.gradientType=n.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=E.ok}return u.prototype.isDark=function(){return this.getBrightness()<128},u.prototype.isLight=function(){return!this.isDark()},u.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},u.prototype.getLuminance=function(){var e=this.toRgb(),n,v,E,S=e.r/255,b=e.g/255,L=e.b/255;return S<=.03928?n=S/12.92:n=Math.pow((S+.055)/1.055,2.4),b<=.03928?v=b/12.92:v=Math.pow((b+.055)/1.055,2.4),L<=.03928?E=L/12.92:E=Math.pow((L+.055)/1.055,2.4),.2126*n+.7152*v+.0722*E},u.prototype.getAlpha=function(){return this.a},u.prototype.setAlpha=function(e){return this.a=(0,d.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},u.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},u.prototype.toHsv=function(){var e=(0,i.py)(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},u.prototype.toHsvString=function(){var e=(0,i.py)(this.r,this.g,this.b),n=Math.round(e.h*360),v=Math.round(e.s*100),E=Math.round(e.v*100);return this.a===1?"hsv(".concat(n,", ").concat(v,"%, ").concat(E,"%)"):"hsva(".concat(n,", ").concat(v,"%, ").concat(E,"%, ").concat(this.roundA,")")},u.prototype.toHsl=function(){var e=(0,i.lC)(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},u.prototype.toHslString=function(){var e=(0,i.lC)(this.r,this.g,this.b),n=Math.round(e.h*360),v=Math.round(e.s*100),E=Math.round(e.l*100);return this.a===1?"hsl(".concat(n,", ").concat(v,"%, ").concat(E,"%)"):"hsla(".concat(n,", ").concat(v,"%, ").concat(E,"%, ").concat(this.roundA,")")},u.prototype.toHex=function(e){return e===void 0&&(e=!1),(0,i.vq)(this.r,this.g,this.b,e)},u.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},u.prototype.toHex8=function(e){return e===void 0&&(e=!1),(0,i.s)(this.r,this.g,this.b,this.a,e)},u.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},u.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},u.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},u.prototype.toRgbString=function(){var e=Math.round(this.r),n=Math.round(this.g),v=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(n,", ").concat(v,")"):"rgba(".concat(e,", ").concat(n,", ").concat(v,", ").concat(this.roundA,")")},u.prototype.toPercentageRgb=function(){var e=function(n){return"".concat(Math.round((0,d.sh)(n,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},u.prototype.toPercentageRgbString=function(){var e=function(n){return Math.round((0,d.sh)(n,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},u.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,i.vq)(this.r,this.g,this.b,!1),n=0,v=Object.entries(l.R);n=0,S=!n&&E&&(e.startsWith("hex")||e==="name");return S?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(v=this.toRgbString()),e==="prgb"&&(v=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(v=this.toHexString()),e==="hex3"&&(v=this.toHexString(!0)),e==="hex4"&&(v=this.toHex8String(!0)),e==="hex8"&&(v=this.toHex8String()),e==="name"&&(v=this.toName()),e==="hsl"&&(v=this.toHslString()),e==="hsv"&&(v=this.toHsvString()),v||this.toHexString())},u.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},u.prototype.clone=function(){return new u(this.toString())},u.prototype.lighten=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=(0,d.V2)(n.l),new u(n)},u.prototype.brighten=function(e){e===void 0&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),new u(n)},u.prototype.darken=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=(0,d.V2)(n.l),new u(n)},u.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},u.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},u.prototype.desaturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=(0,d.V2)(n.s),new u(n)},u.prototype.saturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=(0,d.V2)(n.s),new u(n)},u.prototype.greyscale=function(){return this.desaturate(100)},u.prototype.spin=function(e){var n=this.toHsl(),v=(n.h+e)%360;return n.h=v<0?360+v:v,new u(n)},u.prototype.mix=function(e,n){n===void 0&&(n=50);var v=this.toRgb(),E=new u(e).toRgb(),S=n/100,b={r:(E.r-v.r)*S+v.r,g:(E.g-v.g)*S+v.g,b:(E.b-v.b)*S+v.b,a:(E.a-v.a)*S+v.a};return new u(b)},u.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var v=this.toHsl(),E=360/n,S=[this];for(v.h=(v.h-(E*e>>1)+720)%360;--e;)v.h=(v.h+E)%360,S.push(new u(v));return S},u.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new u(e)},u.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var n=this.toHsv(),v=n.h,E=n.s,S=n.v,b=[],L=1/e;e--;)b.push(new u({h:v,s:E,v:S})),S=(S+L)%1;return b},u.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new u({h:(n+72)%360,s:e.s,l:e.l}),new u({h:(n+216)%360,s:e.s,l:e.l})]},u.prototype.onBackground=function(e){var n=this.toRgb(),v=new u(e).toRgb(),E=n.a+v.a*(1-n.a);return new u({r:(n.r*n.a+v.r*v.a*(1-n.a))/E,g:(n.g*n.a+v.g*v.a*(1-n.a))/E,b:(n.b*n.a+v.b*v.a*(1-n.a))/E,a:E})},u.prototype.triad=function(){return this.polyad(3)},u.prototype.tetrad=function(){return this.polyad(4)},u.prototype.polyad=function(e){for(var n=this.toHsl(),v=n.h,E=[this],S=360/e,b=1;b1)&&(e=1),e}function _(e){return e<=1?"".concat(Number(e)*100,"%"):e}function u(e){return e.length===1?"0"+e:String(e)}},164:function(B,h,o){var i=o(87363),l=Symbol.for("react.element"),p=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,g=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_={key:!0,ref:!0,__self:!0,__source:!0};function u(e,n,v){var E,S={},b=null,L=null;v!==void 0&&(b=""+v),n.key!==void 0&&(b=""+n.key),n.ref!==void 0&&(L=n.ref);for(E in n)d.call(n,E)&&!_.hasOwnProperty(E)&&(S[E]=n[E]);if(e&&e.defaultProps)for(E in n=e.defaultProps,n)S[E]===void 0&&(S[E]=n[E]);return{$$typeof:l,type:e,key:b,ref:L,props:S,_owner:g.current}}h.Fragment=p,h.jsx=u,h.jsxs=u},70293:function(B,h,o){B.exports=o(164)},20859:function(B,h,o){var i=o(87363),l=o.n(i);function p(d){var g=(0,i.useRef)(d);return g.current=d,g}h.Z=p},34182:function(B,h,o){var i=o(87363),l=o.n(i),p=o(20859),d=o(34898),g=o(50376),_=function(u){g.Z&&((0,d.mf)(u)||console.error("useUnmount expected parameter is a function, got ".concat(typeof u)));var e=(0,p.Z)(u);(0,i.useEffect)(function(){return function(){e.current()}},[])};h.Z=_},34898:function(B,h,o){o.d(h,{G7:function(){return _},mf:function(){return l}});var i=function(u){return u!==null&&typeof u=="object"},l=function(u){return typeof u=="function"},p=function(u){return typeof u=="string"},d=function(u){return typeof u=="boolean"},g=function(u){return typeof u=="number"},_=function(u){return typeof u=="undefined"}},24252:function(B,h){var o=!!(typeof window!="undefined"&&window.document&&window.document.createElement);h.Z=o},50376:function(B,h){var o=!1;h.Z=o},6958:function(B,h,o){o.r(h),o.d(h,{CSSMotionList:function(){return Zr},Provider:function(){return b},default:function(){return Or}});var i=o(64649),l=o(50189),p=o(8136),d=o(33940),g=o(90005),_=o.n(g),u=o(62738),e=o(79986),n=o(87363),v=o(53782),E=["children"],S=n.createContext({});function b(D){var j=D.children,U=(0,v.Z)(D,E);return n.createElement(S.Provider,{value:U},j)}var L=o(22951),s=o(91976),m=o(67591),R=o(94337),Z=function(D){(0,m.Z)(U,D);var j=(0,R.Z)(U);function U(){return(0,L.Z)(this,U),j.apply(this,arguments)}return(0,s.Z)(U,[{key:"render",value:function(){return this.props.children}}]),U}(n.Component),y=Z,A=o(93870),W=o(87643),I="none",Y="appear",ue="enter",se="leave",J="none",oe="prepare",he="start",Pe="active",Ze="end",He="prepared",ut=o(98554);function ct(D,j){var U={};return U[D.toLowerCase()]=j.toLowerCase(),U["Webkit".concat(D)]="webkit".concat(j),U["Moz".concat(D)]="moz".concat(j),U["ms".concat(D)]="MS".concat(j),U["O".concat(D)]="o".concat(j.toLowerCase()),U}function yt(D,j){var U={animationend:ct("Animation","AnimationEnd"),transitionend:ct("Transition","TransitionEnd")};return D&&("AnimationEvent"in j||delete U.animationend.animation,"TransitionEvent"in j||delete U.transitionend.transition),U}var V=yt((0,ut.Z)(),typeof window!="undefined"?window:{}),le={};if((0,ut.Z)()){var me=document.createElement("div");le=me.style}var z={};function Me(D){if(z[D])return z[D];var j=V[D];if(j)for(var U=Object.keys(j),F=U.length,G=0;G1&&arguments[1]!==void 0?arguments[1]:2;j();var ce=(0,Ot.Z)(function(){G<=1?F({isCanceled:function(){return ce!==D.current}}):U(F,G-1)});D.current=ce}return n.useEffect(function(){return function(){j()}},[]),[U,j]},Dt=[oe,he,Pe,Ze],hr=[oe,He],ft=!1,Yt=!0;function Qt(D){return D===Pe||D===Ze}var Xt=function(D,j,U){var F=(0,W.Z)(J),G=(0,p.Z)(F,2),ce=G[0],ge=G[1],Ee=vr(),_e=(0,p.Z)(Ee,2),ne=_e[0],ve=_e[1];function pe(){ge(oe,!0)}var ye=j?hr:Dt;return Zt(function(){if(ce!==J&&ce!==Ze){var be=ye.indexOf(ce),Ce=ye[be+1],De=U(ce);De===ft?ge(Ce,!0):Ce&&ne(function(Ve){function Oe(){Ve.isCanceled()||ge(Ce,!0)}De===!0?Oe():Promise.resolve(De).then(Oe)})}},[D,ce]),n.useEffect(function(){return function(){ve()}},[]),[pe,ce]};function pr(D,j,U,F){var G=F.motionEnter,ce=G===void 0?!0:G,ge=F.motionAppear,Ee=ge===void 0?!0:ge,_e=F.motionLeave,ne=_e===void 0?!0:_e,ve=F.motionDeadline,pe=F.motionLeaveImmediately,ye=F.onAppearPrepare,be=F.onEnterPrepare,Ce=F.onLeavePrepare,De=F.onAppearStart,Ve=F.onEnterStart,Oe=F.onLeaveStart,Je=F.onAppearActive,qe=F.onEnterActive,$e=F.onLeaveActive,lt=F.onAppearEnd,je=F.onEnterEnd,ke=F.onLeaveEnd,et=F.onVisibleChanged,qt=(0,W.Z)(),St=(0,p.Z)(qt,2),We=St[0],dt=St[1],Te=(0,W.Z)(I),vt=(0,p.Z)(Te,2),Se=vt[0],ht=vt[1],Kt=(0,W.Z)(null),Ht=(0,p.Z)(Kt,2),pt=Ht[0],kt=Ht[1],er=(0,n.useRef)(!1),tr=(0,n.useRef)(null);function _t(){return U()}var rr=(0,n.useRef)(!1);function Ct(){ht(I,!0),kt(null,!0)}var nr=(0,A.useEvent)(function(de){if(Se!==I){var q=_t();if(!(de&&!de.deadline&&de.target!==q)){var Re=rr.current,ot;Se===Y&&Re?ot=lt==null?void 0:lt(q,de):Se===ue&&Re?ot=je==null?void 0:je(q,de):Se===se&&Re&&(ot=ke==null?void 0:ke(q,de)),Re&&ot!==!1&&Ct()}}}),Be=Gt(nr),At=(0,p.Z)(Be,1),ze=At[0],ar=function(q){switch(q){case Y:return(0,i.Z)((0,i.Z)((0,i.Z)({},oe,ye),he,De),Pe,Je);case ue:return(0,i.Z)((0,i.Z)((0,i.Z)({},oe,be),he,Ve),Pe,qe);case se:return(0,i.Z)((0,i.Z)((0,i.Z)({},oe,Ce),he,Oe),Pe,$e);default:return{}}},tt=n.useMemo(function(){return ar(Se)},[Se]),kr=Xt(Se,!D,function(de){if(de===oe){var q=tt[oe];return q?q(_t()):ft}if(at in tt){var Re;kt(((Re=tt[at])===null||Re===void 0?void 0:Re.call(tt,_t(),null))||null)}return at===Pe&&Se!==I&&(ze(_t()),ve>0&&(clearTimeout(tr.current),tr.current=setTimeout(function(){nr({deadline:!0})},ve))),at===He&&Ct(),Yt}),Cr=(0,p.Z)(kr,2),Vt=Cr[0],at=Cr[1],xt=Qt(at);rr.current=xt,Zt(function(){dt(j);var de=er.current;er.current=!0;var q;!de&&j&&Ee&&(q=Y),de&&j&&ce&&(q=ue),(de&&!j&&ne||!de&&pe&&!j&&ne)&&(q=se);var Re=ar(q);q&&(D||Re[oe])?(ht(q),Vt()):ht(I)},[j]),(0,n.useEffect)(function(){(Se===Y&&!Ee||Se===ue&&!ce||Se===se&&!ne)&&ht(I)},[Ee,ce,ne]),(0,n.useEffect)(function(){return function(){er.current=!1,clearTimeout(tr.current)}},[]);var rt=n.useRef(!1);(0,n.useEffect)(function(){We&&(rt.current=!0),We!==void 0&&Se===I&&((rt.current||We)&&(et==null||et(We)),rt.current=!0)},[We,Se]);var Lt=pt;return tt[oe]&&at===he&&(Lt=(0,l.Z)({transition:"none"},Lt)),[Se,at,Lt,We!=null?We:j]}function mr(D){var j=D;(0,d.Z)(D)==="object"&&(j=D.transitionSupport);function U(G,ce){return!!(G.motionName&&j&&ce!==!1)}var F=n.forwardRef(function(G,ce){var ge=G.visible,Ee=ge===void 0?!0:ge,_e=G.removeOnLeave,ne=_e===void 0?!0:_e,ve=G.forceRender,pe=G.children,ye=G.motionName,be=G.leavedClassName,Ce=G.eventProps,De=n.useContext(S),Ve=De.motion,Oe=U(G,Ve),Je=(0,n.useRef)(),qe=(0,n.useRef)();function $e(){try{return Je.current instanceof HTMLElement?Je.current:(0,u.ZP)(qe.current)}catch(pt){return null}}var lt=pr(Oe,Ee,$e,G),je=(0,p.Z)(lt,4),ke=je[0],et=je[1],qt=je[2],St=je[3],We=n.useRef(St);St&&(We.current=!0);var dt=n.useCallback(function(pt){Je.current=pt,(0,e.mH)(ce,pt)},[ce]),Te,vt=(0,l.Z)((0,l.Z)({},Ce),{},{visible:Ee});if(!pe)Te=null;else if(ke===I)St?Te=pe((0,l.Z)({},vt),dt):!ne&&We.current&&be?Te=pe((0,l.Z)((0,l.Z)({},vt),{},{className:be}),dt):ve||!ne&&!be?Te=pe((0,l.Z)((0,l.Z)({},vt),{},{style:{display:"none"}}),dt):Te=null;else{var Se;et===oe?Se="prepare":Qt(et)?Se="active":et===he&&(Se="start");var ht=nt(ye,"".concat(ke,"-").concat(Se));Te=pe((0,l.Z)((0,l.Z)({},vt),{},{className:_()(nt(ye,ke),(0,i.Z)((0,i.Z)({},ht,ht&&Se),ye,typeof ye=="string")),style:qt}),dt)}if(n.isValidElement(Te)&&(0,e.Yr)(Te)){var Kt=Te,Ht=Kt.ref;Ht||(Te=n.cloneElement(Te,{ref:dt}))}return n.createElement(y,{ref:qe},Te)});return F.displayName="CSSMotion",F}var jt=mr(Ae),gr=o(25773),Jt=o(47169),Wt="add",Bt="keep",Ut="remove",Nt="removed";function yr(D){var j;return D&&(0,d.Z)(D)==="object"&&"key"in D?j=D:j={key:D},(0,l.Z)((0,l.Z)({},j),{},{key:String(j.key)})}function Ft(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return D.map(yr)}function br(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],U=[],F=0,G=j.length,ce=Ft(D),ge=Ft(j);ce.forEach(function(ne){for(var ve=!1,pe=F;pe1});return _e.forEach(function(ne){U=U.filter(function(ve){var pe=ve.key,ye=ve.status;return pe!==ne||ye!==Ut}),U.forEach(function(ve){ve.key===ne&&(ve.status=Bt)})}),U}var Er=["component","children","onVisibleChanged","onAllRemoved"],Sr=["status"],Tr=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function _r(D){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:jt,U=function(F){(0,m.Z)(ce,F);var G=(0,R.Z)(ce);function ce(){var ge;(0,L.Z)(this,ce);for(var Ee=arguments.length,_e=new Array(Ee),ne=0;ne0&&arguments[0]!==void 0?arguments[0]:{},y=Z.mark;return y?y.startsWith("data-")?y:"data-".concat(y):_}function n(Z){if(Z.attachTo)return Z.attachTo;var y=document.querySelector("head");return y||document.body}function v(Z){return Z==="queue"?"prependQueue":Z?"prepend":"append"}function E(Z){return Array.from((u.get(Z)||Z).children).filter(function(y){return y.tagName==="STYLE"})}function S(Z){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,l.Z)())return null;var A=y.csp,W=y.prepend,I=y.priority,Y=I===void 0?0:I,ue=v(W),se=ue==="prependQueue",J=document.createElement("style");J.setAttribute(d,ue),se&&Y&&J.setAttribute(g,"".concat(Y)),A!=null&&A.nonce&&(J.nonce=A==null?void 0:A.nonce),J.innerHTML=Z;var oe=n(y),he=oe.firstChild;if(W){if(se){var Pe=(y.styles||E(oe)).filter(function(Ze){if(!["prepend","prependQueue"].includes(Ze.getAttribute(d)))return!1;var He=Number(Ze.getAttribute(g)||0);return Y>=He});if(Pe.length)return oe.insertBefore(J,Pe[Pe.length-1].nextSibling),J}oe.insertBefore(J,he)}else oe.appendChild(J);return J}function b(Z){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=n(y);return(y.styles||E(A)).find(function(W){return W.getAttribute(e(y))===Z})}function L(Z){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=b(Z,y);if(A){var W=n(y);W.removeChild(A)}}function s(Z,y){var A=u.get(Z);if(!A||!p(document,A)){var W=S("",y),I=W.parentNode;u.set(Z,I),Z.removeChild(W)}}function m(){u.clear()}function R(Z,y){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},W=n(A),I=E(W),Y=(0,i.Z)((0,i.Z)({},A),{},{styles:I});s(W,Y);var ue=b(y,Y);if(ue){var se,J;if((se=Y.csp)!==null&&se!==void 0&&se.nonce&&ue.nonce!==((J=Y.csp)===null||J===void 0?void 0:J.nonce)){var oe;ue.nonce=(oe=Y.csp)===null||oe===void 0?void 0:oe.nonce}return ue.innerHTML!==Z&&(ue.innerHTML=Z),ue}var he=S(Z,Y);return he.setAttribute(e(Y),y),he}},62738:function(B,h,o){o.d(h,{Sh:function(){return _},ZP:function(){return e}});var i=o(33940),l=o(87363),p=o.n(l),d=o(61533),g=o.n(d);function _(n){return n instanceof HTMLElement||n instanceof SVGElement}function u(n){return n&&(0,i.Z)(n)==="object"&&_(n.nativeElement)?n.nativeElement:_(n)?n:null}function e(n){var v=u(n);if(v)return v;if(n instanceof p().Component){var E;return(E=g().findDOMNode)===null||E===void 0?void 0:E.call(g(),n)}return null}},44771:function(B,h,o){o.d(h,{Z:function(){return p}});var i=o(87363),l=o.n(i);function p(d){var g=i.useRef();g.current=d;var _=i.useCallback(function(){for(var u,e=arguments.length,n=new Array(e),v=0;v3&&arguments[3]!==void 0?arguments[3]:!1;return A.length&&I&&W===void 0&&!d(y,A.slice(0,-1))?y:S(y,A,W,I)}function L(y){return _typeof(y)==="object"&&y!==null&&Object.getPrototypeOf(y)===Object.prototype}function s(y){return Array.isArray(y)?[]:{}}var m=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function R(){for(var y=arguments.length,A=new Array(y),W=0;W2&&arguments[2]!==void 0?arguments[2]:!1,u=new Set;function e(n,v){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,S=u.has(n);if((0,l.ZP)(!S,"Warning: There may be circular references"),S)return!1;if(n===v)return!0;if(_&&E>1)return!1;u.add(n);var b=E+1;if(Array.isArray(n)){if(!Array.isArray(v)||n.length!==v.length)return!1;for(var L=0;L1&&arguments[1]!==void 0?arguments[1]:1;l+=1;var n=l;function v(E){if(E===0)d(n),u();else{var S=o(function(){v(E-1)});p.set(n,S)}}return v(e),n};g.cancel=function(_){var u=p.get(_);return d(_),i(u)},h.Z=g},79986:function(B,h,o){o.d(h,{Yr:function(){return n},mH:function(){return _},sQ:function(){return u},t4:function(){return v},x1:function(){return e}});var i=o(33940),l=o(87363),p=o.n(l),d=o(11349),g=o(8805),_=function(S,b){typeof S=="function"?S(b):(0,i.Z)(S)==="object"&&S&&"current"in S&&(S.current=b)},u=function(){for(var S=arguments.length,b=new Array(S),L=0;Ll.length)&&(p=l.length);for(var d=0,g=Array(p);d=0||{}.propertyIsEnumerable.call(p,g)&&(u[g]=p[g])}return u}},30808:function(B,h,o){o.d(h,{Z:function(){return i}});function i(l,p){if(l==null)return{};var d={};for(var g in l)if({}.hasOwnProperty.call(l,g)){if(p.indexOf(g)>=0)continue;d[g]=l[g]}return d}},99492:function(B,h,o){o.d(h,{Z:function(){return p}});var i=o(33940),l=o(47169);function p(d,g){if(g&&((0,i.Z)(g)=="object"||typeof g=="function"))return g;if(g!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(0,l.Z)(d)}},6983:function(B,h,o){o.d(h,{Z:function(){return i}});function i(l,p){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,g){return d.__proto__=g,d},i(l,p)}},8136:function(B,h,o){o.d(h,{Z:function(){return g}});var i=o(66470);function l(_,u){var e=_==null?null:typeof Symbol!="undefined"&&_[Symbol.iterator]||_["@@iterator"];if(e!=null){var n,v,E,S,b=[],L=!0,s=!1;try{if(E=(e=e.call(_)).next,u===0){if(Object(e)!==e)return;L=!1}else for(;!(L=(n=E.call(e)).done)&&(b.push(n.value),b.length!==u);L=!0);}catch(m){s=!0,v=m}finally{try{if(!L&&e.return!=null&&(S=e.return(),Object(S)!==S))return}finally{if(s)throw v}}return b}}var p=o(64013),d=o(53764);function g(_,u){return(0,i.Z)(_)||l(_,u)||(0,p.Z)(_,u)||(0,d.Z)()}},13285:function(B,h,o){o.d(h,{Z:function(){return _}});var i=o(1793);function l(u){if(Array.isArray(u))return(0,i.Z)(u)}var p=o(55181),d=o(64013);function g(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _(u){return l(u)||(0,p.Z)(u)||(0,d.Z)(u)||g()}},1607:function(B,h,o){o.d(h,{Z:function(){return p}});var i=o(33940);function l(d,g){if((0,i.Z)(d)!="object"||!d)return d;var _=d[Symbol.toPrimitive];if(_!==void 0){var u=_.call(d,g||"default");if((0,i.Z)(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(d)}function p(d){var g=l(d,"string");return(0,i.Z)(g)=="symbol"?g:g+""}},33940:function(B,h,o){o.d(h,{Z:function(){return i}});function i(l){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},i(l)}},64013:function(B,h,o){o.d(h,{Z:function(){return l}});var i=o(1793);function l(p,d){if(p){if(typeof p=="string")return(0,i.Z)(p,d);var g={}.toString.call(p).slice(8,-1);return g==="Object"&&p.constructor&&(g=p.constructor.name),g==="Map"||g==="Set"?Array.from(p):g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g)?(0,i.Z)(p,d):void 0}}}}]); diff --git a/486.74a27100.async.js b/486.74a27100.async.js new file mode 100644 index 00000000..73725944 --- /dev/null +++ b/486.74a27100.async.js @@ -0,0 +1,3 @@ +(self.webpackChunk_antv_li_website=self.webpackChunk_antv_li_website||[]).push([[486],{20927:function(m,Q,A){(function(M){if(1)m.exports=M();else var N})(function(){var M,N,I;return function U(g,L,_){function T(R,Y){if(!L[R]){if(!g[R]){var v=void 0;if(!Y&&v)return require(R,!0);if(b)return b(R,!0);var h=new Error("Cannot find module '"+R+"'");throw h.code="MODULE_NOT_FOUND",h}var C=L[R]={exports:{}};g[R][0].call(C.exports,function(P){var G=g[R][1][P];return T(G||P)},C,C.exports,U,g,L,_)}return L[R].exports}for(var b=void 0,D=0;D<_.length;D++)T(_[D]);return T}({1:[function(U,g,L){(function(_){"use strict";var T=_.MutationObserver||_.WebKitMutationObserver,b;if(T){var D=0,R=new T(P),Y=_.document.createTextNode("");R.observe(Y,{characterData:!0}),b=function(){Y.data=D=++D%2}}else if(!_.setImmediate&&typeof _.MessageChannel!="undefined"){var v=new _.MessageChannel;v.port1.onmessage=P,b=function(){v.port2.postMessage(0)}}else"document"in _&&"onreadystatechange"in _.document.createElement("script")?b=function(){var F=_.document.createElement("script");F.onreadystatechange=function(){P(),F.onreadystatechange=null,F.parentNode.removeChild(F),F=null},_.document.documentElement.appendChild(F)}:b=function(){setTimeout(P,0)};var h,C=[];function P(){h=!0;for(var F,X,W=C.length;W;){for(X=C,C=[],F=-1;++F=43)}}).catch(function(){return!1})}function x(e){return typeof X=="boolean"?v.resolve(X):p(e).then(function(t){return X=t,X})}function z(e){var t=W[e.name],r={};r.promise=new v(function(o,a){r.resolve=o,r.reject=a}),t.deferredOperations.push(r),t.dbReady?t.dbReady=t.dbReady.then(function(){return r.promise}):t.dbReady=r.promise}function $(e){var t=W[e.name],r=t.deferredOperations.pop();if(r)return r.resolve(),r.promise}function H(e,t){var r=W[e.name],o=r.deferredOperations.pop();if(o)return o.reject(t),o.promise}function V(e,t){return new v(function(r,o){if(W[e.name]=W[e.name]||_e(),e.db)if(t)z(e),e.db.close();else return r(e.db);var a=[e.name];t&&a.push(e.version);var n=D.open.apply(D,a);t&&(n.onupgradeneeded=function(i){var f=n.result;try{f.createObjectStore(e.storeName),i.oldVersion<=1&&f.createObjectStore(F)}catch(u){if(u.name==="ConstraintError")console.warn('The database "'+e.name+'" has been upgraded from version '+i.oldVersion+" to version "+i.newVersion+', but the storage "'+e.storeName+'" already exists.');else throw u}}),n.onerror=function(i){i.preventDefault(),o(n.error)},n.onsuccess=function(){var i=n.result;i.onversionchange=function(f){f.target.close()},r(i),$(e)}})}function j(e){return V(e,!1)}function te(e){return V(e,!0)}function ae(e,t){if(!e.db)return!0;var r=!e.db.objectStoreNames.contains(e.storeName),o=e.versione.db.version;if(o&&(e.version!==t&&console.warn('The database "'+e.name+`" can't be downgraded from version `+e.db.version+" to version "+e.version+"."),e.version=e.db.version),a||r){if(r){var n=e.db.version+1;n>e.version&&(e.version=n)}return!0}return!1}function se(e){return new v(function(t,r){var o=new FileReader;o.onerror=r,o.onloadend=function(a){var n=btoa(a.target.result||"");t({__local_forage_encoded_blob:!0,data:n,type:e.type})},o.readAsBinaryString(e)})}function ee(e){var t=w(atob(e.data));return Y([t],{type:e.type})}function be(e){return e&&e.__local_forage_encoded_blob}function We(e){var t=this,r=t._initReady().then(function(){var o=W[t._dbInfo.name];if(o&&o.dbReady)return o.dbReady});return C(r,e,e),r}function ze(e){z(e);for(var t=W[e.name],r=t.forages,o=0;o0&&(!e.db||n.name==="InvalidStateError"||n.name==="NotFoundError"))return v.resolve().then(function(){if(!e.db||n.name==="NotFoundError"&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),te(e)}).then(function(){return ze(e).then(function(){J(e,t,r,o-1)})}).catch(r);r(n)}}function _e(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function $e(e){var t=this,r={db:null};if(e)for(var o in e)r[o]=e[o];var a=W[r.name];a||(a=_e(),W[r.name]=a),a.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=We);var n=[];function i(){return v.resolve()}for(var f=0;f>4,c[a++]=(i&15)<<4|f>>2,c[a++]=(f&3)<<6|u&63;return s}function de(e){var t=new Uint8Array(e),r="",o;for(o=0;o>2],r+=Z[(t[o]&3)<<4|t[o+1]>>4],r+=Z[(t[o+1]&15)<<2|t[o+2]>>6],r+=Z[t[o+2]&63];return t.length%3===2?r=r.substring(0,r.length-1)+"=":t.length%3===1&&(r=r.substring(0,r.length-2)+"=="),r}function rr(e,t){var r="";if(e&&(r=Ce.call(e)),e&&(r==="[object ArrayBuffer]"||e.buffer&&Ce.call(e.buffer)==="[object ArrayBuffer]")){var o,a=ie;e instanceof ArrayBuffer?(o=e,a+=le):(o=e.buffer,r==="[object Int8Array]"?a+=Se:r==="[object Uint8Array]"?a+=Ee:r==="[object Uint8ClampedArray]"?a+=Ie:r==="[object Int16Array]"?a+=xe:r==="[object Uint16Array]"?a+=Re:r==="[object Int32Array]"?a+=Ae:r==="[object Uint32Array]"?a+=Te:r==="[object Float32Array]"?a+=Ne:r==="[object Float64Array]"?a+=De:t(new Error("Failed to get type for BinaryArray"))),t(a+de(o))}else if(r==="[object Blob]"){var n=new FileReader;n.onload=function(){var i=er+e.type+"~"+de(this.result);t(ie+ve+i)},n.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(i){console.error("Couldn't convert value into a JSON string: ",e),t(null,i)}}function tr(e){if(e.substring(0,ce)!==ie)return JSON.parse(e);var t=e.substring(Be),r=e.substring(ce,Be),o;if(r===ve&&we.test(t)){var a=t.match(we);o=a[1],t=t.substring(a[0].length)}var n=Oe(t);switch(r){case le:return n;case ve:return Y([n],{type:o});case Se:return new Int8Array(n);case Ee:return new Uint8Array(n);case Ie:return new Uint8ClampedArray(n);case xe:return new Int16Array(n);case Re:return new Uint16Array(n);case Ae:return new Int32Array(n);case Te:return new Uint32Array(n);case Ne:return new Float32Array(n);case De:return new Float64Array(n);default:throw new Error("Unkown type: "+r)}}var he={serialize:rr,deserialize:tr,stringToBuffer:Oe,bufferToString:de};function Le(e,t,r,o){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],r,o)}function nr(e){var t=this,r={db:null};if(e)for(var o in e)r[o]=typeof e[o]!="string"?e[o].toString():e[o];var a=new v(function(n,i){try{r.db=openDatabase(r.name,String(r.version),r.description,r.size)}catch(f){return i(f)}r.db.transaction(function(f){Le(f,r,function(){t._dbInfo=r,n()},function(u,s){i(s)})},i)});return r.serializer=he,a}function k(e,t,r,o,a,n){e.executeSql(r,o,a,function(i,f){f.code===f.SYNTAX_ERR?i.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],function(u,s){s.rows.length?n(u,f):Le(u,t,function(){u.executeSql(r,o,a,n)},n)},n):n(i,f)},n)}function or(e,t){var r=this;e=P(e);var o=new v(function(a,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(f){k(f,i,"SELECT * FROM "+i.storeName+" WHERE key = ? LIMIT 1",[e],function(u,s){var c=s.rows.length?s.rows.item(0).value:null;c&&(c=i.serializer.deserialize(c)),a(c)},function(u,s){n(s)})})}).catch(n)});return h(o,t),o}function ar(e,t){var r=this,o=new v(function(a,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(f){k(f,i,"SELECT * FROM "+i.storeName,[],function(u,s){for(var c=s.rows,d=c.length,y=0;y0){i(Pe.apply(a,[e,u,r,o-1]));return}f(y)}})})}).catch(f)});return h(n,r),n}function ir(e,t,r){return Pe.apply(this,[e,t,r,1])}function fr(e,t){var r=this;e=P(e);var o=new v(function(a,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(f){k(f,i,"DELETE FROM "+i.storeName+" WHERE key = ?",[e],function(){a()},function(u,s){n(s)})})}).catch(n)});return h(o,t),o}function ur(e){var t=this,r=new v(function(o,a){t.ready().then(function(){var n=t._dbInfo;n.db.transaction(function(i){k(i,n,"DELETE FROM "+n.storeName,[],function(){o()},function(f,u){a(u)})})}).catch(a)});return h(r,e),r}function sr(e){var t=this,r=new v(function(o,a){t.ready().then(function(){var n=t._dbInfo;n.db.transaction(function(i){k(i,n,"SELECT COUNT(key) as c FROM "+n.storeName,[],function(f,u){var s=u.rows.item(0).c;o(s)},function(f,u){a(u)})})}).catch(a)});return h(r,e),r}function cr(e,t){var r=this,o=new v(function(a,n){r.ready().then(function(){var i=r._dbInfo;i.db.transaction(function(f){k(f,i,"SELECT key FROM "+i.storeName+" WHERE id = ? LIMIT 1",[e+1],function(u,s){var c=s.rows.length?s.rows.item(0).key:null;a(c)},function(u,s){n(s)})})}).catch(n)});return h(o,t),o}function lr(e){var t=this,r=new v(function(o,a){t.ready().then(function(){var n=t._dbInfo;n.db.transaction(function(i){k(i,n,"SELECT key FROM "+n.storeName,[],function(f,u){for(var s=[],c=0;c '__WebKitDatabaseInfoTable__'",[],function(a,n){for(var i=[],f=0;f0}function gr(e){var t=this,r={};if(e)for(var o in e)r[o]=e[o];return r.keyPrefix=Fe(e,t._defaultConfig),mr()?(t._dbInfo=r,r.serializer=he,v.resolve()):v.reject()}function br(e){var t=this,r=t.ready().then(function(){for(var o=t._dbInfo.keyPrefix,a=localStorage.length-1;a>=0;a--){var n=localStorage.key(a);n.indexOf(o)===0&&localStorage.removeItem(n)}});return h(r,e),r}function _r(e,t){var r=this;e=P(e);var o=r.ready().then(function(){var a=r._dbInfo,n=localStorage.getItem(a.keyPrefix+e);return n&&(n=a.serializer.deserialize(n)),n});return h(o,t),o}function wr(e,t){var r=this,o=r.ready().then(function(){for(var a=r._dbInfo,n=a.keyPrefix,i=n.length,f=localStorage.length,u=1,s=0;s=0;i--){var f=localStorage.key(i);f.indexOf(n)===0&&localStorage.removeItem(f)}}):a=v.reject("Invalid arguments"),h(a,t),a}var Tr={_driver:"localStorageWrapper",_initStorage:gr,_support:yr(),iterate:wr,getItem:_r,setItem:Ar,removeItem:xr,clear:br,length:Ir,key:Sr,keys:Er,dropInstance:Rr},Nr=function(t,r){return t===r||typeof t=="number"&&typeof r=="number"&&isNaN(t)&&isNaN(r)},Dr=function(t,r){for(var o=t.length,a=0;aA.length)&&(M=A.length);for(var N=0,I=new Array(M);N=I.length?{done:!0}:{done:!1,value:I[L++]}},e:function(Y){throw Y},f:_}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var T=!0,b=!1,D;return{s:function(){g=g.call(I)},n:function(){var Y=g.next();return T=Y.done,Y},e:function(Y){b=!0,D=Y},f:function(){try{!T&&g.return!=null&&g.return()}finally{if(b)throw D}}}}m.exports=N,m.exports.__esModule=!0,m.exports.default=m.exports},53225:function(m){function Q(A,M){var N=A==null?null:typeof Symbol!="undefined"&&A[Symbol.iterator]||A["@@iterator"];if(N!=null){var I,U,g,L,_=[],T=!0,b=!1;try{if(g=(N=N.call(A)).next,M===0){if(Object(N)!==N)return;T=!1}else for(;!(T=(I=g.call(N)).done)&&(_.push(I.value),_.length!==M);T=!0);}catch(D){b=!0,U=D}finally{try{if(!T&&N.return!=null&&(L=N.return(),Object(L)!==L))return}finally{if(b)throw U}}return _}}m.exports=Q,m.exports.__esModule=!0,m.exports.default=m.exports},54935:function(m){function Q(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}m.exports=Q,m.exports.__esModule=!0,m.exports.default=m.exports},69024:function(m,Q,A){var M=A(46681),N=A(53225),I=A(25973),U=A(54935);function g(L,_){return M(L)||N(L,_)||I(L,_)||U()}m.exports=g,m.exports.__esModule=!0,m.exports.default=m.exports},25973:function(m,Q,A){var M=A(40576);function N(I,U){if(I){if(typeof I=="string")return M(I,U);var g=Object.prototype.toString.call(I).slice(8,-1);if(g==="Object"&&I.constructor&&(g=I.constructor.name),g==="Map"||g==="Set")return Array.from(I);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return M(I,U)}}m.exports=N,m.exports.__esModule=!0,m.exports.default=m.exports}}]); diff --git a/527.8796b3f7.async.js b/527.8796b3f7.async.js new file mode 100644 index 00000000..ed8a1288 --- /dev/null +++ b/527.8796b3f7.async.js @@ -0,0 +1,290 @@ +"use strict";(self.webpackChunk_antv_li_website=self.webpackChunk_antv_li_website||[]).push([[527],{75919:function(ke,de,j){j.d(de,{hg:function(){return Ye},AT:function(){return Tu},Jg:function(){return Ue},CN:function(){return Iu}});var q={};j.r(q),j.d(q,{GET_FETCH_DATA_LIST:function(){return Ic}});var ee={};j.r(ee),j.d(ee,{BaseLayout:function(){return uo},ExportImageControl:function(){return xo},FullscreenControl:function(){return vo},GeoLocateControl:function(){return ho},LayerPopup:function(){return Go},LogoControl:function(){return Ko},MapThemeControl:function(){return Po},MapViewSettingControl:function(){return Do},MouseLocationControl:function(){return Oo},ScaleControl:function(){return po},ZoomControl:function(){return yo}});var te={};j.r(te),j.d(te,{ArcLayer:function(){return vr},BaseLayout:function(){return uo},BubbleLayer:function(){return tr},ChoroplethLayer:function(){return ir},ExportImageControl:function(){return xo},FullscreenControl:function(){return vo},GeoLocateControl:function(){return ho},GridLayer:function(){return wr},H3HexagonLayer:function(){return Jr},HeatmapLayer:function(){return Cr},HexbinLayer:function(){return Ir},IconLayer:function(){return Hr},LayerPopup:function(){return Go},LineLayer:function(){return pr},LogoControl:function(){return Ko},MVTLayer:function(){return to},MapThemeControl:function(){return Po},MapViewSettingControl:function(){return Do},MouseLocationControl:function(){return Oo},ScaleControl:function(){return po},TileLayer:function(){return Qr},ZoomControl:function(){return yo},default:function(){return Lu}});var ye={i8:"1.8.1"},w=j(25435),$=j(87363),c=j.n($),P=j(46488),Xe=function(e){return c().createElement(P.BubbleLayer,e)},et=Xe;function W(t){"@babel/helpers - typeof";return W=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},W(t)}var tt=function(e){var r,o,n,i,l,s=e.fillColorField?{field:e.fillColorField,value:e.fillColorScale.isCustom?e.fillColorScale.range:(r=e.fillColorRange)===null||r===void 0?void 0:r.colors,scale:e.fillColorScale.isCustom?{type:e.fillColorScale.type,domain:e.fillColorScale.domain,unknown:e.fillColorScale.unknown}:{type:e.fillColorScale.type},isReversed:(o=(n=e.fillColorRange)===null||n===void 0?void 0:n.isReversed)!==null&&o!==void 0?o:!1}:e.fillColor,u={fillColor:s,opacity:e.fillColorOpacity,strokeColor:e.strokeColor,lineWidth:e.lineWidth,lineOpacity:e.lineOpacity,radius:e.radiusField?{field:e.radiusField,value:e.radiusRange}:e.radius,label:{field:e.labelField,visible:!!e.labelField,style:{fill:e.labelColor,fontSize:e.labelFontSize,textAnchor:e.labelTextAnchor,textOffset:e.labelTextOffset,stroke:e.labelStroke,strokeWidth:e.labelStrokeWidth}},minZoom:(i=e.zoom)===null||i===void 0?void 0:i[0],maxZoom:(l=e.zoom)===null||l===void 0?void 0:l[1],blend:e.blend};return u},rt=function(e){var r,o,n,i,l,s,u,a,f,y,b,m=e.fillColor,S=e.opacity,L=e.strokeColor,O=e.lineWidth,F=e.lineOpacity,v=e.radius,_=e.label,z=e.minZoom,R=z===void 0?0:z,H=e.maxZoom,Z=H===void 0?24:H,U=e.blend,x=W(m)==="object"&&(m==null||(r=m.scale)===null||r===void 0?void 0:r.domain)&&(m==null||(o=m.scale)===null||o===void 0?void 0:o.domain.length)!==0,E=W(m)==="object"?{type:m==null||(n=m.scale)===null||n===void 0?void 0:n.type,domain:m==null||(i=m.scale)===null||i===void 0?void 0:i.domain,range:m==null?void 0:m.value,unknown:m==null||(l=m.scale)===null||l===void 0?void 0:l.unknown,isCustom:x}:void 0,N={fillColorField:W(m)==="object"?m==null?void 0:m.field:void 0,fillColorRange:W(m)==="object"?{colors:(m==null?void 0:m.value)||[],isReversed:(m==null?void 0:m.isReversed)||!1}:void 0,fillColorScale:E,fillColor:W(m)!=="object"?m:void 0,fillColorOpacity:S,strokeColor:L,lineWidth:O,lineOpacity:F,radius:W(v)!=="object"?v:void 0,radiusField:W(v)==="object"?v==null?void 0:v.field:void 0,radiusRange:W(v)==="object"?v==null?void 0:v.value:void 0,labelField:_==null?void 0:_.field,labelColor:_==null||(s=_.style)===null||s===void 0?void 0:s.fill,labelFontSize:_==null||(u=_.style)===null||u===void 0?void 0:u.fontSize,labelTextAnchor:_==null||(a=_.style)===null||a===void 0?void 0:a.textAnchor,labelTextOffset:_==null||(f=_.style)===null||f===void 0?void 0:f.textOffset,labelStroke:_==null||(y=_.style)===null||y===void 0?void 0:y.stroke,labelStrokeWidth:_==null||(b=_.style)===null||b===void 0?void 0:b.strokeWidth,zoom:[R,Z],blend:U};return N};function G(t){return it(t)||nt(t)||J(t)||ot()}function ot(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J(t,e){if(t){if(typeof t=="string")return ge(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ge(t,e)}}function nt(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function it(t){if(Array.isArray(t))return ge(t)}function ge(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r { return state.dataSource.find((item) => item.value === state.value)?.type })}}',domain:'{{ $form.getFieldState("fillColorField",state=> { return state.dataSource.find((item) => item.value === state.value)?.domain })}}',defaultColors:'{{ $form.getFieldState("fillColorRange",state=> { return state?.value?.colors })}}'},"x-decorator-props":{},"x-reactions":[{dependencies:["fillColorField"],fulfill:{state:{visible:"{{ $deps[0] !== undefined }}"}}}]},fillColor:{type:"string",title:"\u989C\u8272",default:"#F7664E","x-decorator":"FormItem","x-component":"ColorPicker","x-component-props":{placeholder:"\u989C\u8272"},"x-decorator-props":{},"x-reactions":[{dependencies:["fillColorField"],fulfill:{state:{visible:"{{ $deps[0] === undefined }}"}}}]},fillColorRange:{type:"object",title:"\u989C\u8272",default:{colors:["#ffffcc","#d9f0a3","#addd8e","#78c679","#31a354","#006837"],isReversed:!1},"x-decorator":"FormItem","x-component":"ColorRangeSelector","x-component-props":{options:G(n)},"x-decorator-props":{},"x-reactions":[{dependencies:["fillColorField","fillColorScale"],fulfill:{state:{visible:"{{ $deps[0] !== undefined && !$deps[1].isCustom }}"}}}]},fillColorOpacity:{type:"number",title:"\u900F\u660E\u5EA6",default:1,"x-decorator-props":{},"x-decorator":"FormItem","x-component":"Slider","x-component-props":{min:0,max:1,step:.1}}}}}}};function Qo(t){return en(t)||Xo(t)||Yo(t)||Uo()}function Uo(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yo(t,e){if(t){if(typeof t=="string")return at(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return at(t,e)}}function Xo(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function en(t){if(Array.isArray(t))return at(t)}function at(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r0&&arguments[0]!==void 0?arguments[0]:{},e=t.collapseTitle,r=e===void 0?"\u5176\u5B83\u5C5E\u6027":e;return{type:"void","x-component":"FormCollapse","x-component-props":{ghost:!0,destroyInactivePanel:!0,defaultActiveKey:[]},properties:{stackingPatterns:{type:"void","x-component":"FormCollapse.CollapsePanel","x-component-props":{header:r},properties:{zoom:{type:"number",title:"\u53EF\u89C1\u5C42\u7EA7","x-decorator":"FormItem","x-component":"SliderRange","x-component-props":{dots:!1,range:!0,min:0,max:24},default:[0,24],"x-decorator-props":{}},blend:{type:"string",title:"\u6DF7\u5408\u6548\u679C","x-decorator":"FormItem","x-component":"Select","x-component-props":{placeholder:"\u8BF7\u9009\u62E9"},"x-decorator-props":{},default:"normal",enum:[{label:"\u6B63\u5E38",value:"normal"},{label:"\u53E0\u52A0\u6A21\u5F0F",value:"additive"},{label:"\u76F8\u51CF\u6A21\u5F0F",value:"subtractive"},{label:"\u6700\u5927\u503C",value:"max"},{label:"\u6700\u5C0F\u503C",value:"min"}]}}}}}};function tn(t){return an(t)||nn(t)||on(t)||rn()}function rn(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function on(t,e){if(t){if(typeof t=="string")return ct(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ct(t,e)}}function nn(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function an(t){if(Array.isArray(t))return ct(t)}function ct(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r0&&arguments[0]!==void 0?arguments[0]:{};return{type:"object",properties:{collapseItem_fillColor:Ve(t),collapseItem_stroke:ut(),collapseItem_fillradius:st(t),collapseItem_labelstyle:lt(t),collapseItem_other:Q(t)}}};function mt(t){return mn(t)||un(t)||sn(t)||cn()}function cn(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sn(t,e){if(t){if(typeof t=="string")return pt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pt(t,e)}}function un(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function mn(t){if(Array.isArray(t))return pt(t)}function pt(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r0&&arguments[0]!==void 0?arguments[0]:{};return{type:"object",properties:{collapseItem_fillColor:Ve(t),collapseItem_stroke:ut(),collapseItem_labelstyle:lt(t),collapseItem_other:Q(t)}}};function Pn(t){return En(t)||Tn(t)||In(t)||Fn()}function Fn(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function In(t,e){if(t){if(typeof t=="string")return dt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dt(t,e)}}function Tn(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function En(t){if(Array.isArray(t))return dt(t)}function dt(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);rt.length)&&(e=t.length);for(var r=0,o=new Array(e);r0&&arguments[0]!==void 0?arguments[0]:{},e=t.fieldList,r=e===void 0?[]:e,o=t.colorRanges,n=o===void 0?[]:o;return{type:"object",properties:{collapseItem_fillColor:{type:"void","x-component":"FormCollapse","x-component-props":{ghost:!0,destroyInactivePanel:!0,defaultActiveKey:[]},properties:{fillColor:{type:"void","x-component":"FormCollapse.CollapsePanel","x-component-props":{header:"\u989C\u8272"},properties:{fillColorField:{type:"string",title:"\u586B\u5145\u5B57\u6BB5","x-decorator":"FormItem","x-component":"FieldSelect","x-decorator-props":{tooltip:"\u4F9D\u636E\u5B57\u6BB5\u4F5C\u4E3A\u989C\u8272\u586B\u5145\uFF0C\u53EF\u9009\u9879"},"x-component-props":{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u5B57\u6BB5"},enum:yt(r)},fillColorScale:{type:"string",title:"\u989C\u8272\u5212\u5206","x-decorator":"FormItem","x-component":"ScaleSelector","x-component-props":{placeholder:"\u8BF7\u9009\u62E9",dataType:'{{ $form.getFieldState("fillColorField",state=> { return state.dataSource.find((item) => item.value === state.value)?.type })}}',domain:'{{ $form.getFieldState("fillColorField",state=> { return state.dataSource.find((item) => item.value === state.value)?.domain })}}',defaultColors:'{{ $form.getFieldState("fillColorRange",state=> { return state?.value?.colors })}}'},"x-decorator-props":{},"x-reactions":[{dependencies:["fillColorField"],fulfill:{state:{visible:"{{ $deps[0] !== undefined }}"}}}]},sourceColor:{title:"\u8D77\u70B9\u989C\u8272",type:"string",default:"#F7664E","x-decorator":"FormItem","x-component":"ColorPicker","x-component-props":{placeholder:"\u989C\u8272"},"x-decorator-props":{},"x-reactions":[{dependencies:["fillColorField"],fulfill:{state:{visible:"{{ $deps[0] === undefined }}"}}}]},targetColor:{type:"string",title:"\u7EC8\u70B9\u989C\u8272",default:"#5B8FF9","x-decorator":"FormItem","x-component":"ColorPicker","x-reactions":[{dependencies:["fillColorField"],fulfill:{state:{visible:"{{ $deps[0] === undefined }}"}}}]},fillColorRange:{type:"object",title:"\u989C\u8272",default:{colors:["#ffffcc","#d9f0a3","#addd8e","#78c679","#31a354","#006837"],isReversed:!1},"x-decorator":"FormItem","x-component":"ColorRangeSelector","x-component-props":{options:yt(n)},"x-decorator-props":{},"x-reactions":[{dependencies:["fillColorField","fillColorScale"],fulfill:{state:{visible:"{{ $deps[0] !== undefined && !$deps[1].isCustom }}"}}}]},fillColorOpacity:{type:"number",title:"\u900F\u660E\u5EA6",default:1,"x-decorator-props":{},"x-decorator":"FormItem","x-component":"Slider","x-component-props":{min:0,max:1,step:.1}}}}}},collapseItem_fillSize:{type:"void","x-component":"FormCollapse","x-component-props":{ghost:!0,destroyInactivePanel:!0,defaultActiveKey:[]},properties:{fillSize:{type:"void","x-component":"FormCollapse.CollapsePanel","x-component-props":{header:"\u7EBF\u5BBD"},properties:{sizeField:{type:"string",title:"\u57FA\u4E8E\u5B57\u6BB5","x-decorator":"FormItem","x-component":"FieldSelect","x-decorator-props":{tooltip:"\u9009\u4E2D\u4E00\u4E2A\u6570\u503C\u5B57\u6BB5\u4F5C\u4E3A\u586B\u5145\u5927\u5C0F"},"x-component-props":{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u5B57\u6BB5"},enum:yt(r)},size:{type:"number",title:"\u5BBD\u5EA6","x-decorator":"FormItem","x-component":"Slider","x-component-props":{dots:!1,range:!1},"x-decorator-props":{},"x-reactions":[{dependencies:["sizeField"],fulfill:{state:{visible:"{{ $deps[0] === undefined }}"}}}]},sizeRange:{type:"number",title:"\u5BBD\u5EA6","x-decorator":"FormItem","x-component":"SliderRange","x-component-props":{dots:!1,range:!0},default:[0,20],"x-decorator-props":{},"x-reactions":[{dependencies:["sizeField"],fulfill:{state:{visible:"{{ $deps[0] !== undefined }}"}}}]}}}}},collapseItem_animate:Jn(),collapseItem_other:Q(t)}}},vt=j(12611);function Ae(t){return oi(t)||ri(t)||ti(t)||ei()}function ei(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ti(t,e){if(t){if(typeof t=="string")return bt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bt(t,e)}}function ri(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function oi(t){if(Array.isArray(t))return bt(t)}function bt(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);rt.length)&&(e=t.length);for(var r=0,o=new Array(e);rt.length)&&(e=t.length);for(var r=0,o=new Array(e);r0&&arguments[0]!==void 0?arguments[0]:{},e=t.fieldList,r=e===void 0?[]:e,o=t.colorRanges,n=o===void 0?[]:o;return{type:"object",properties:{color:{type:"void","x-component":"FormCollapse","x-component-props":{ghost:!0,destroyInactivePanel:!0,defaultActiveKey:[]},properties:{color:{type:"void","x-component":"FormCollapse.CollapsePanel","x-component-props":{header:"\u70ED\u529B\u989C\u8272"},properties:{colorsRange:{type:"string",title:"\u989C\u8272",default:{colors:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"].reverse(),isReversed:!0},"x-decorator":"FormItem","x-component":"ColorRangeSelector","x-decorator-props":{},"x-component-props":{options:br(n)}},opacity:{type:"number",title:"\u900F\u660E\u5EA6",default:1,"x-decorator-props":{},"x-decorator":"FormItem","x-component":"Slider","x-component-props":{max:1,step:.1}}}}}},collapseItem_fillSize:{type:"void","x-component":"FormCollapse","x-component-props":{ghost:!0,destroyInactivePanel:!0,defaultActiveKey:[]},properties:{fillsize:{type:"void","x-component":"FormCollapse.CollapsePanel","x-component-props":{header:"\u70ED\u529B\u534A\u5F84"},properties:{radius:{type:"number",title:"\u70ED\u529B\u534A\u5F84",default:20,"x-decorator-props":{},"x-decorator":"FormItem","x-component":"Slider","x-component-props":{max:30,min:0,step:1}},sizeField:{type:"string",title:"\u6743\u91CD\u5B57\u6BB5","x-decorator":"FormItem","x-component":"FieldSelect","x-decorator-props":{tooltip:"\u9009\u4E2D\u4E00\u4E2A\u6570\u503C\u5B57\u6BB5\u4F5C\u4E3A\u70ED\u529B\u8BA1\u7B97"},"x-component-props":{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u5B57\u6BB5"},enum:br(r)},intensity:{type:"number",title:"\u70ED\u529B\u5F3A\u5EA6",default:1,"x-decorator":"FormItem","x-component":"Slider","x-component-props":{dots:!1,range:!1,min:1,max:5},"x-decorator-props":{}}}}}},collapseItem_other:Q(t)}}};function xt(t){return qi(t)||Wi(t)||Bi(t)||Vi()}function Vi(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bi(t,e){if(t){if(typeof t=="string")return St(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return St(t,e)}}function Wi(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function qi(t){if(Array.isArray(t))return St(t)}function St(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);rt.length)&&(e=t.length);for(var r=0,o=new Array(e);r0&&arguments[0]!==void 0?arguments[0]:{};return{type:"object",properties:{collapseItem_fillColor:xr(t),collapseItem_fillSize:{type:"void","x-component":"FormCollapse","x-component-props":{ghost:!0,destroyInactivePanel:!0,defaultActiveKey:[]},properties:{fillSize:{type:"void","x-component":"FormCollapse.CollapsePanel","x-component-props":{header:"\u534A\u5F84"},properties:{aggregateSize:{type:"number",title:"\u7F51\u683C\u534A\u5F84",default:10,"x-decorator":"FormItem","x-component":"Slider","x-component-props":{dots:!1,range:!1,max:500,step:1,min:0},"x-decorator-props":{tooltip:"\u7F51\u683C\u534A\u5F84\u5355\u4F4D\u516C\u91CC"}},coverage:{type:"number",title:"\u8986\u76D6\u5EA6","x-decorator":"FormItem","x-component":"Slider","x-component-props":{dots:!1,range:!1,max:1,step:.1,min:0},"x-decorator-props":{}}}}}},collapseItem_other:Q(t)}}};function We(t){return ba(t)||va(t)||ga(t)||ya()}function ya(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ga(t,e){if(t){if(typeof t=="string")return Lt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lt(t,e)}}function va(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ba(t){if(Array.isArray(t))return Lt(t)}function Lt(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r { + state.dataSource = $form.getFieldState("aggregateMethod", (state) => { + return state.value + ? [ + { value: "count", label: "count" }, + { label: state.value, value: state.value }, + ] + : [{ value: "count", label: "count" }]; + }); + }); + + $form.setFieldState("fillColorField", (state) => { + state.value = $form + .getFieldState("aggregateMethod", (state) => { + return [state.value, "count"]; + }) + .includes(state.value) + ? state.value + : undefined; + });`}},{dependencies:["aggregateField"],fulfill:{state:{visible:"{{ $deps[0] !== undefined }}"}}}]}}}}}}};function Le(t){"@babel/helpers - typeof";return Le=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},Le(t)}function Sr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,o)}return r}function Or(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{};return{type:"object",properties:{collapseItem_fillColor:xr(t),collapseItem_fillSize:{type:"void","x-component":"FormCollapse","x-component-props":{ghost:!0,destroyInactivePanel:!0,defaultActiveKey:[]},properties:{fillSize:{type:"void","x-component":"FormCollapse.CollapsePanel","x-component-props":{header:"\u534A\u5F84"},properties:{aggregateSize:{type:"number",title:"\u8702\u7A9D\u534A\u5F84","x-decorator":"FormItem","x-component":"Slider","x-component-props":{dots:!1,range:!1,max:500,step:1,min:0},"x-decorator-props":{tooltip:"\u8702\u7A9D\u534A\u5F84\u5355\u4F4D\u516C\u91CC"}},coverage:{type:"number",title:"\u8986\u76D6\u5EA6","x-decorator":"FormItem","x-component":"Slider","x-component-props":{dots:!1,range:!1,max:1,step:.1,min:0},"x-decorator-props":{}}}}}},collapseItem_other:Q(t)}}};function qe(t){return Ha(t)||Ma(t)||$a(t)||Ra()}function Ra(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $a(t,e){if(t){if(typeof t=="string")return It(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return It(t,e)}}function Ma(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ha(t){if(Array.isArray(t))return It(t)}function It(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r { + state.dataSource = $form.getFieldState("aggregateMethod", (state) => { + return state.value + ? [ + { value: "count", label: "count" }, + { label: state.value, value: state.value }, + ] + : [{ value: "count", label: "count" }]; + }); + }); + + $form.setFieldState("fillColorField", (state) => { + state.value = $form + .getFieldState("aggregateMethod", (state) => { + return [state.value, "count"]; + }) + .includes(state.value) + ? state.value + : undefined; + });`}},{dependencies:["aggregateField"],fulfill:{state:{visible:"{{ $deps[0] !== undefined }}"}}}]}}}}}}};function Fe(t){"@babel/helpers - typeof";return Fe=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},Fe(t)}function Lr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,o)}return r}function Pr(t){for(var e=1;e{ state.value = undefined })"}}]},iconImgScale:{type:"array",title:"\u56FE\u6807\u6620\u5C04","x-decorator":"FormItem","x-component":"IconScaleSelector","x-component-props":{domain:'{{ $form.getFieldState("iconField",state=> { return state.dataSource.find((item) => item.value === state.value)?.domain })}}'},"x-decorator-props":{tooltip:"\u70B9\u51FB\u53EF\u6DFB\u52A0\u67E5\u770B\u56FE\u6807"},"x-reactions":[{dependencies:["iconField"],fulfill:{state:{visible:"{{ $deps[0] !== undefined }}"}}}]},iconImg:{type:"string",title:"\u56FE\u6807\u5F62\u72B6",required:!0,"x-decorator":"FormItem","x-component":"IconSelector","x-decorator-props":{tooltip:"\u9009\u4E2D\u4E00\u4E2A\u56FE\u6807\u4F5C\u4E3A\u586B\u5145\u56FE\u6807",allowClear:!0},"x-component-props":{placeholder:"\u8BF7\u9009\u62E9\u56FE\u6807"},"x-reactions":[{dependencies:["iconField"],fulfill:{state:{visible:"{{ $deps[0] === undefined }}"}}}]},fillOpacity:{type:"number",title:"\u900F\u660E\u5EA6",default:1,"x-decorator-props":{},"x-decorator":"FormItem","x-component":"Slider","x-component-props":{min:0,max:1,step:.1}}}}}},collapseItem_fillRadius:st({fieldList:r,collapseTitle:"\u56FE\u6807\u5927\u5C0F"}),collapseItem_fillLabel:lt({fieldList:r}),collapseItem_other:Q({})}}};function Rt(t){return fl(t)||pl(t)||ml(t)||ul()}function ul(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ml(t,e){if(t){if(typeof t=="string")return $t(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $t(t,e)}}function pl(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function fl(t){if(Array.isArray(t))return $t(t)}function $t(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(a){throw a},f:n}}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,l=!1,s;return{s:function(){r=r.call(t)},n:function(){var a=r.next();return i=a.done,a},e:function(a){l=!0,s=a},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(l)throw s}}}}function Br(t,e){if(t){if(typeof t=="string")return Wr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wr(t,e)}}function Wr(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r180?i[0]-=360:l<-180&&(i[0]+=360)}}catch(s){o.e(s)}finally{o.f()}}function Rl(t,e,r){var o=(0,Nr.rS)(t),n=Il(o,2),i=n[0],l=n[1],s=e.length;qr(e,l);for(var u=e[0]===e[s-1]?s-1:s,a=0;a1&&arguments[1]!==void 0?arguments[1]:1,r=(0,Nr.jf)(t,!0);return e!==1?Rl(t,r,e):qr(r),r}var Ml=function(e,r){var o="".concat(r,"_geometry"),n=e.filter(function(l){return l[r]}).map(function(l){return kr(kr({},l),{},Vr({},o,{type:"Polygon",coordinates:[$l(l[r])]}))}),i={data:n,parser:{type:"json",geometry:o}};return i};function Nt(){return Nt=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,o=new Array(e);r1&&arguments[1]!==void 0?arguments[1]:[];return Kr(Kr({},ql(t)),{},{collapseItem_fillColor:Ve({fieldList:t,colorRanges:e}),collapseItem_other:Q({})})};function oe(t){"@babel/helpers - typeof";return oe=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},oe(t)}var Ul=function(e){var r,o,n,i,l,s=e.sourceConfig,u=e.visConfig,a=u.fillColor,f=u.opacity,y=u.minZoom,b=y===void 0?0:y,m=u.maxZoom,S=m===void 0?24:m,L=u.blend,O=s.parser,F=oe(a)==="object"&&(a==null||(r=a.scale)===null||r===void 0?void 0:r.domain)&&(a==null||(o=a.scale)===null||o===void 0?void 0:o.domain.length)!==0,v=oe(a)==="object"?{type:a==null||(n=a.scale)===null||n===void 0?void 0:n.type,domain:a==null||(i=a.scale)===null||i===void 0?void 0:i.domain,range:a==null?void 0:a.value,unknown:a==null||(l=a.scale)===null||l===void 0?void 0:l.unknown,isCustom:F}:void 0;return{hexagonId:O==null?void 0:O.hexagonId,fillColorField:oe(a)==="object"?a==null?void 0:a.field:void 0,fillColorRange:oe(a)==="object"?{colors:(a==null?void 0:a.value)||[],isReversed:(a==null?void 0:a.isReversed)||!1}:void 0,fillColorScale:v,fillColor:oe(a)!=="object"?a:void 0,fillColorOpacity:f,zoom:[b,S],blend:L}},Yl=function(e){var r,o,n,i,l,s={parser:{hexagonId:e.hexagonId}},u=e.fillColorField?{field:e.fillColorField,value:e.fillColorScale.isCustom?e.fillColorScale.range:(r=e.fillColorRange)===null||r===void 0?void 0:r.colors,scale:e.fillColorScale.isCustom?{type:e.fillColorScale.type,domain:e.fillColorScale.domain,unknown:e.fillColorScale.unknown}:{type:e.fillColorScale.type},isReversed:(o=(n=e.fillColorRange)===null||n===void 0?void 0:n.isReversed)!==null&&o!==void 0?o:!1}:e.fillColor;return{sourceConfig:s,visConfig:{fillColor:u,opacity:e.fillColorOpacity,lineWidth:0,minZoom:e==null||(i=e.zoom)===null||i===void 0?void 0:i[0],maxZoom:e==null||(l=e.zoom)===null||l===void 0?void 0:l[1],blend:e.blend}}},Xl=function(t){var e=Ql(t.datasetFields);return{schema:e,toValues:Ul,fromValues:Yl}},ec=function(){return c().createElement("svg",{viewBox:"0 0 64 64",width:"1em",height:"1em",style:{fill:"currentcolor"}},c().createElement("path",{d:"M44.59,54.5H19.41L6.81,32.68,19.41,10.87H44.59L57.19,32.68Zm-23-3.83H42.38l10.38-18-10.38-18H21.62l-10.38,18Z"}),c().createElement("polygon",{points:"24.65 32.86 24.65 37.79 22.53 37.79 22.53 26.3 24.65 26.3 24.65 30.91 29.32 30.91 29.32 26.3 31.43 26.3 31.43 37.79 29.32 37.79 29.32 32.86 24.65 32.86"}),c().createElement("path",{d:"M33.79,37.05l.6-1.67a5.86,5.86,0,0,0,1.39.61,5.59,5.59,0,0,0,1.5.19A2.57,2.57,0,0,0,39,35.66a1.81,1.81,0,0,0,.61-1.46A1.29,1.29,0,0,0,38.94,33a4.55,4.55,0,0,0-2.05-.32H35.74V31h1.1A5.4,5.4,0,0,0,38,30.85a2.1,2.1,0,0,0,.77-.29,1.53,1.53,0,0,0,.51-.54,1.58,1.58,0,0,0,.15-.73,1.14,1.14,0,0,0-.51-1,2.67,2.67,0,0,0-1.5-.34,4.56,4.56,0,0,0-1.51.24,5,5,0,0,0-1.34.73l-.7-1.61a4.92,4.92,0,0,1,1.66-.83,6.91,6.91,0,0,1,2-.31,4.41,4.41,0,0,1,2.81.79,2.71,2.71,0,0,1,1,2.24,2.33,2.33,0,0,1-.54,1.62,3.45,3.45,0,0,1-1.46.93v0a3,3,0,0,1,1.67.81,2.3,2.3,0,0,1,.64,1.7A3.27,3.27,0,0,1,40.48,37a5,5,0,0,1-3.16.91A6.77,6.77,0,0,1,33.79,37.05Z"}))},Jr=(0,w.implementLayer)({version:"v0.1",metadata:{name:"H3HexagonLayer",displayName:"H3 \u56FE\u5C42",description:"\u7528\u4E8E H3 \u6570\u636E\u5C55\u793A",type:"Layer",icon:ec,color:"turquoise"},defaultVisConfig:{visible:!0,fillColor:"rgb(90, 216, 166)",opacity:.8,state:{active:{strokeColor:"yellow",fillColor:!1},select:{fillColor:!1,strokeColor:"red"}},minZoom:0,maxZoom:24,blend:"normal"},component:Nl,registerForm:Xl}),tc=function(e){return c().createElement(P.RasterLayer,e)},rc=tc,oc=function(){return{collapseItem_style:{type:"void","x-component":"FormCollapse","x-component-props":{ghost:!0,destroyInactivePanel:!0,defaultActiveKey:[]},properties:{style:{type:"void","x-component":"FormCollapse.CollapsePanel","x-component-props":{header:"\u6837\u5F0F"},properties:{opacity:{type:"number",title:"\u900F\u660E\u5EA6",default:1,"x-decorator-props":{},"x-decorator":"FormItem","x-component":"Slider","x-component-props":{min:0,max:1,step:.1}}}}}},collapseItem_other:Q()}},nc=function(e){var r=e.sourceConfig,o=e.visConfig,n=r.parser,i=o.style,l=o.minZoom,s=l===void 0?0:l,u=o.maxZoom,a=u===void 0?24:u,f=o.blend;return{opacity:i==null?void 0:i.opacity,zoom:[s,a],blend:f}},ic=function(e){var r,o,n={parser:{type:"rasterTile"}};return{sourceConfig:n,visConfig:{style:{opacity:e==null?void 0:e.opacity},minZoom:e==null||(r=e.zoom)===null||r===void 0?void 0:r[0],maxZoom:e==null||(o=e.zoom)===null||o===void 0?void 0:o[1],blend:e.blend}}},ac=function(t){var e=oc();return{schema:e,toValues:nc,fromValues:ic}},zu=c().createElement("svg",{viewBox:"0 0 56 56",width:"1em",height:"1em",style:{fill:"currentcolor"}},c().createElement("path",{d:"m27.55,22.84L1.87,37.3l26.58,14.97,25.68-14.46-26.58-14.97Z",style:{opacity:.6}}),c().createElement("path",{d:"m27.55,14.32L1.87,28.78l26.58,14.97,25.68-14.46-26.58-14.97Z",style:{opacity:.6}}),c().createElement("path",{d:"m27.55,3.73L1.87,18.19l26.58,14.97,25.68-14.46L27.55,3.73Z",style:{opacity:.6}}),c().createElement("path",{d:"m11.06,24.01h8.74v2.3h-2.93v7.01h-2.88v-7.01h-2.93v-2.3Z",fill:"#c0c0c0"}),c().createElement("path",{d:"m22.44,24.01h3.78l1.46,5.66,1.45-5.66h3.78v9.31h-2.35v-7.1l-1.81,7.1h-2.13l-1.81-7.1v7.1h-2.35v-9.31Z",fill:"#c0c0c0"}),c().createElement("path",{d:"m35.6,30.24l2.74-.17c.06.44.18.78.36,1.02.3.38.72.56,1.27.56.41,0,.73-.1.95-.29.22-.19.33-.42.33-.67s-.11-.46-.32-.65c-.21-.19-.7-.37-1.47-.54-1.26-.28-2.16-.66-2.7-1.13-.54-.47-.81-1.07-.81-1.8,0-.48.14-.93.42-1.36.28-.42.69-.76,1.25-1,.56-.24,1.32-.36,2.29-.36,1.19,0,2.1.22,2.72.66.62.44,1,1.15,1.11,2.11l-2.71.16c-.07-.42-.22-.72-.45-.91s-.55-.29-.96-.29c-.33,0-.59.07-.76.21-.17.14-.25.31-.25.52,0,.15.07.28.21.4.14.12.46.24.96.34,1.26.27,2.16.54,2.7.82.54.28.94.62,1.19,1.03.25.41.37.87.37,1.38,0,.6-.16,1.15-.49,1.65-.33.5-.79.89-1.38,1.15-.59.26-1.34.39-2.24.39-1.58,0-2.68-.3-3.29-.91s-.95-1.38-1.03-2.32Z",fill:"#c0c0c0"})),lc=function(){return c().createElement("svg",{viewBox:"0 0 56 56",width:"1em",height:"1em",style:{fill:"currentcolor"}},c().createElement("path",{d:"m27.55,22.84L1.87,37.3l26.58,14.97,25.68-14.46-26.58-14.97Z",style:{opacity:.6}}),c().createElement("path",{d:"m27.55,14.32L1.87,28.78l26.58,14.97,25.68-14.46-26.58-14.97Z",style:{opacity:.6}}),c().createElement("path",{d:"m27.55,3.73L1.87,18.19l26.58,14.97,25.68-14.46L27.55,3.73Z",style:{opacity:.6}}),c().createElement("path",{d:"m9.93,20.28h3.17l1.65,2.86,1.6-2.86h3.14l-2.9,4.51,3.17,4.8h-3.23l-1.84-2.99-1.84,2.99h-3.21l3.21-4.85-2.92-4.46Z",fill:"#c0c0c0"}),c().createElement("path",{d:"m21.1,20.28h3.19l1.88,3.14,1.88-3.14h3.18l-3.62,5.41v3.9h-2.88v-3.9l-3.62-5.41Z",fill:"#c0c0c0"}),c().createElement("path",{d:"m33.28,20.28h8.14v1.86l-5.22,5.45h5.41v2h-8.83v-1.93l5.17-5.39h-4.67v-1.99Z",fill:"#c0c0c0"}))},Qr=(0,w.implementLayer)({version:"v0.1",metadata:{name:"TileLayer",displayName:"\u74E6\u7247\u56FE\u5C42",description:"\u7528\u4E8E\u6805\u683C\u74E6\u7247\u670D\u52A1\u5C55\u793A",type:"Layer",icon:lc,color:"#5558db"},defaultVisConfig:{visible:!0,style:{opacity:1},minZoom:0,maxZoom:24,blend:"normal"},component:rc,registerForm:ac}),cc=j(28413);function ue(){return ue=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,o=new Array(e);r=0;--C){var A=this.tryEntries[C],D=A.completion;if(A.tryLoc==="root")return h("end");if(A.tryLoc<=this.prev){var k=o.call(A,"catchLoc"),V=o.call(A,"finallyLoc");if(k&&V){if(this.prev=0;--h){var C=this.tryEntries[h];if(C.tryLoc<=this.prev&&o.call(C,"finallyLoc")&&this.prev=0;--d){var h=this.tryEntries[d];if(h.finallyLoc===p)return this.complete(h.completion,h.afterLoc),Jt(h),O}},catch:function(p){for(var d=this.tryEntries.length-1;d>=0;--d){var h=this.tryEntries[d];if(h.tryLoc===p){var C=h.completion;if(C.type==="throw"){var A=C.arg;Jt(h)}return A}}throw new Error("illegal catch attempt")},delegateYield:function(p,d,h){return this.delegate={iterator:Ut(p),resultName:d,nextLoc:h},this.method==="next"&&(this.arg=t),O}},e}function ro(t,e,r,o,n,i,l){try{var s=t[i](l),u=s.value}catch(a){r(a);return}s.done?e(u):Promise.resolve(u).then(o,n)}function Pc(t){return function(){var e=this,r=arguments;return new Promise(function(o,n){var i=t.apply(e,r);function l(u){ro(i,o,n,l,s,"next",u)}function s(u){ro(i,o,n,l,s,"throw",u)}l(void 0)})}}var Bt=new Map,oo=function(){var t=Pc(Vt().mark(function e(r,o){var n,i,l,s;return Vt().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(n=r.data,i=r.filter,i){a.next=3;break}return a.abrupt("return",n);case 3:return a.prev=3,a.next=6,(0,w.applyDatasetFilter)(n,i);case 6:l=a.sent,a.next=14;break;case 9:return a.prev=9,a.t0=a.catch(3),s=new Error("applyDatasetFilter is failure, filter data: '".concat(JSON.stringify(i),"'.")),console.error(s),a.abrupt("return",Promise.reject(s));case 14:if(!o.aborted){a.next=16;break}return a.abrupt("return",Promise.reject("Aborted the request"));case 16:return a.abrupt("return",l);case 17:case"end":return a.stop()}},e,null,[[3,9]])}));return function(r,o){return t.apply(this,arguments)}}(),Fc=function(e){var r=e.properties,o=e.filter,n=e.signal,i=JSON.stringify(r),l={mode:"cors",cache:"default",signal:n},s=Object.assign(l,{body:fe(r.requestOptions.body)==="object"?JSON.stringify(r.requestOptions.body):r.requestOptions.body});if(Bt.has(i)){var u=Bt.get(i);return oo({data:u,filter:o},n)}var a=r.onComplete,f=r.onError;return fetch(r.url,s).then(function(y){return y.ok?y.json():Promise.reject(new Error("status ".concat(y.status," ").concat(y.statusText)))}).then(function(y){if(a&&(0,w.isJSFunction)(a)){var b=(0,w.parseFunction)(a.value);return b?b(y):y}return y}).then(function(y){if(Array.isArray(y)&&y.length===0||fe(y[0])==="object"){var b=(0,w.parserDataWithGeo)(y);return Bt.set(i,b),oo({data:b,filter:o},n)}return Promise.reject(new Error("\u6570\u636E\u683C\u5F0F\u4E0D\u662F\u6570\u7EC4\u5BF9\u8C61, \u8BF7\u68C0\u67E5\u6570\u636E\u683C\u5F0F\u662F\u5426\u6B63\u786E\u3002"))}).catch(function(y){if(y.name=="AbortError")return[];var b=f&&(0,w.isJSFunction)(f)?(0,w.parseFunction)(f.value):void 0;if(b){var m=b(y);throw m||y}else throw y})},Ic=(0,w.implementService)({version:"v0.1",metadata:{name:"GET_FETCH_DATA_LIST",displayName:"\u901A\u8FC7 fetch \u83B7\u53D6\u6570\u636E",type:"Dataset"},service:Fc}),Tc=j(90005),I=j.n(Tc),Ge="li-base-layout",Ec=function(){return c().createElement("svg",{viewBox:"0 0 64 64",width:"1em",height:"1em",fill:"currentColor"},c().createElement("path",{fill:"currentColor",transform:"rotate(90 32,31.99999809265137)",d:"m4.229698,4.420779l0,55.158442l55.540603,0l0,-55.158442l-55.540603,0zm51.655308,51.400535l-47.642627,0l0,-35.604584l47.70632,0l-0.063693,35.604584zm0.063693,-39.680958l-47.642627,0l0,-7.961669l47.642627,0l0,7.961669z"}))},T=j(87651),M=j(81821),no,io,ao,lo;function Ke(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var zc=function(){var e=M.theme.useToken,r=e(),o=r.token,n=o.colorBgLayout;return{baseLayout:(0,T.iv)(no||(no=Ke([` + display: flex; + flex-direction: column; + width: 100%; + height: 100%; + `]))),baseContainer:(0,T.iv)(io||(io=Ke([` + display: flex; + flex: auto; + width: 100%; + height: 100%; + `]))),mapContainer:(0,T.iv)(ao||(ao=Ke([` + flex: auto; + `]))),sidePanel:(0,T.iv)(lo||(lo=Ke([` + width: 350px; + padding: 15px 10px; + overflow: hidden; + overflow-y: auto; + background-color: `,`; + + > :nth-child(n + 2) { + margin-top: 10px; + } + `])),n)}},Dc=zc,Rc=function(e){var r=e.showSidePanel,o=e.slotsElements,n=e.children,i=Dc(),l=(0,$.useMemo)(function(){return{content:o.content,controls:o.controls}},[o.content,o.controls]);return c().createElement("div",{className:I()(Ge,i.baseLayout)},c().createElement("div",{className:I()("".concat(Ge,"__main"),i.baseContainer)},c().createElement(w.MapContainer,{className:I()(i.mapContainer,"".concat(Ge,"__map-container")),slotsElements:l},n),r&&c().createElement("div",{className:I()(i.sidePanel,"".concat(Ge,"__side-panel"))},o.sidePanel?o.sidePanel({}):null)))},$c=Rc;function Me(t){"@babel/helpers - typeof";return Me=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},Me(t)}function co(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,o)}return r}function so(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,o=new Array(e);rt.length)&&(e=t.length);for(var r=0,o=new Array(e);r360?Math.round(N-360):Math.round(360-N));else{var Kt=N===0?0:N<0?Math.round(-N):Math.round(360-N);S(Kt)}};return x(),i==null||i.on("moveend",x),function(){i==null||i.off("moveend",x)}}},[i,_]);var Z=(0,$.useMemo)(function(){return Gs.get(r)},[r]),U=c().createElement("div",{className:I()("".concat(He,"__setting-container"),O.settingContainer)},c().createElement("div",{className:I()("".concat(He,"__setting-container__item"),O.settingContainerItem)},c().createElement("div",null,"\u5730\u56FE\u503E\u659C"),c().createElement("div",null,"".concat(a,"\xB0"))),c().createElement(M.Slider,{value:a,min:0,max:L?90:60,onChange:R}),c().createElement("div",{className:I()("".concat(He,"__setting-container__item"),O.settingContainerItem)},c().createElement("div",null,"\u5730\u56FE\u65CB\u8F6C"),c().createElement("div",null,"".concat(m,"\xB0"))),c().createElement(M.Slider,{value:m,min:0,max:360,onChange:H}));return c().createElement(P.CustomControl,{position:r,className:He},c().createElement(M.Popover,{arrow:!1,placement:Z,content:U,trigger:"click",open:_,onOpenChange:function(E){return z(E)}},c().createElement(M.Tooltip,{placement:Z,title:"\u5730\u56FE\u503E\u89D2"},c().createElement("div",{className:I()("".concat(He,"__setting-btn"),O.settingBtn)},c().createElement(Bs(),{component:Eo})))))},Xs=Ys,eu=function(){var t={position:{title:"\u653E\u7F6E\u65B9\u4F4D",type:"string","x-decorator":"FormItem","x-component":"ControlPositionSelect",default:"bottomright"}};return{schema:t}},Do=(0,w.implementWidget)({version:"v0.1",metadata:{name:"MapViewSettingControl",displayName:"\u503E\u89D2\u8C03\u6574",description:"\u8C03\u6574\u5730\u56FE\u89C6\u89D2",type:"Auto",category:"MapControl",icon:Eo},defaultProperties:{position:"topright"},component:Xs,registerForm:eu}),Ro,$o,Mo,Ho,No,Zo,ko;function ne(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var tu=function(){var e=M.theme.useToken,r=e(),o=r.token,n=o.colorText,i=o.colorTextDescription,l=o.colorBgElevated,s=o.zIndexBase,u=o.zIndexPopupBase;return{layerPopup:(0,T.iv)(Ro||(Ro=ne([` + width: 280px !important; + // \u56FE\u5C42\u4FE1\u606F\u6846\u663E\u793A\u5C42\u7EA7\u4F4D\u4E8E\u5C5E\u6027\u9762\u677F\uFF08zIndexPopupBase + 80\uFF09\u4E4B\u4E0A + z-index: `,`; + + .l7-popup-tip { + border-top-color: `,`; + border-bottom-color: `,`; + } + + .l7-popup-content { + padding: 12px; + color: `,`; + background: `,`; + + .l7-popup-close-button { + fill: `,`; + } + } + `])),u+100,l,l,n,l,n),popupRow:(0,T.iv)($o||($o=ne([` + display: flex; + width: 100%; + height: 28px; + color: `,`; + line-height: 28px; + `])),i),popupRowImage:(0,T.iv)(Mo||(Mo=ne([` + display: flex; + width: 100%; + height: 40px; + color: `,`; + line-height: 40px; + `])),i),imagePreview:(0,T.iv)(Ho||(Ho=ne([` + .ant-image-preview-wrap { + z-index: `,`; + } + `])),u+101),rowItem:(0,T.iv)(No||(No=ne([` + overflow: hidden; + font-weight: 500; + font-size: 12px; + white-space: nowrap; + text-overflow: ellipsis; + `]))),rowKey:(0,T.iv)(Zo||(Zo=ne([` + max-width: 90%; + text-align: left; + `]))),rowValue:(0,T.iv)(ko||(ko=ne([` + flex: 1; + min-width: 10%; + margin-left: 5px; + color: `,`; + text-align: right !important; + `])),n)}},ru=tu,ou=function(e){var r=/^(https|http).*(jpeg|jpg|gif|png)/;return r.test(e)};function Gt(t){"@babel/helpers - typeof";return Gt=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},Gt(t)}var ie="li-layer-popup",nu=function(e){var r=e.isOpen,o=r===void 0?!0:r,n=e.trigger,i=e.items,l=i===void 0?[]:i,s=ru(),u=n==="click",a=(0,$.useMemo)(function(){var f=l.map(function(y){var b=new Map,m=y.layerId,S=y.fields;S.forEach(function(O){b.has(O.field)||b.set(O.field,O)});var L=Array.from(b.values());return{layer:m,fields:L,customContent:function(F){return c().createElement(c().Fragment,null,L.map(function(v,_){var z=v.formatField?"".concat(v.formatField,":"):"".concat(v.field,":"),R=Gt(F[v.field])==="object"?JSON.stringify(F[v.field]):F[v.field];return ou(R)?c().createElement("div",{className:I()("".concat(ie,"__row_image"),s.popupRowImage),key:_},c().createElement("div",{className:I()("".concat(ie,"__row_key"),s.rowItem,s.rowKey)},z),c().createElement("div",{className:I()("".concat(ie,"__row_value"),s.rowItem,s.rowValue)},c().createElement(M.Image,{rootClassName:s.imagePreview,referrerPolicy:"no-referrer",height:40,src:R}))):c().createElement("div",{className:I()("".concat(ie,"__row_item"),s.popupRow),key:_},c().createElement("div",{className:I()("".concat(ie,"__row_key"),s.rowItem,s.rowKey)},z),c().createElement("div",{className:I()("".concat(ie,"__row_value"),s.rowItem,s.rowValue)},R))}))}}}).filter(function(y){return y&&y.fields.length});return f},[l]);return c().createElement(c().Fragment,null,o&&c().createElement(P.LayerPopup,{className:I()(ie,s.layerPopup),closeButton:u,anchor:"top-left",offsets:[10,-10],items:a,trigger:n}))},iu=nu;function Ne(t){"@babel/helpers - typeof";return Ne=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},Ne(t)}var au=["items"],lu=["items"];function cu(t,e){return pu(t)||mu(t,e)||uu(t,e)||su()}function su(){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 uu(t,e){if(t){if(typeof t=="string")return Vo(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vo(t,e)}}function Vo(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(r[o]=t[o])}return r}function yu(t,e){if(t==null)return{};var r={},o=Object.keys(t),n,i;for(i=0;i=0)&&(r[n]=t[n]);return r}var gu=function(e){var r=e.items,o=qo(e,au),n=r.reduce(function(i,l){var s=l.layerId;return i[s]=l.fields.map(function(u){return{field:u.field,formatField:u.formatField}}),i},{});return Ze(Ze({},o),{},{items:n})},vu=function(e){var r=e.items,o=qo(e,lu),n=Object.entries(r).map(function(i){var l=cu(i,2),s=l[0],u=l[1];return{layerId:s,fields:u.map(function(a){return{field:a.field,formatField:a.formatField!==""?a.formatField:void 0}})}});return Ze(Ze({},o),{},{items:n})},bu=function(e){var r=e.layers,o=e.datasets,n=r.filter(function(l){return!["GridLayer","HexbinLayer","HeatmapLayer"].includes(l.type)}).map(function(l){var s=o.find(function(f){return f.id===l.sourceConfig.datasetId});if(!(s===void 0||!(0,w.isLocalOrRemoteDataset)(s))){var u=(s==null?void 0:s.columns)||[],a=u.map(function(f){return{label:f.name,value:f.name}});return Wo({},"items.".concat(l.id),{type:"array","x-component":"ArrayItems","x-component-props":{style:{width:"100%",marginTop:10}},"x-decorator":"FormItem","x-decorator-props":{labelWidth:"100%",wrapperWidth:"100%",layout:"vertical"},title:l.metadata.name,items:{type:"object",properties:{fields:{type:"void","x-component":"FormGrid","x-component-props":{colWrap:!1},properties:{field:{type:"string",enum:a,"x-decorator":"FormItem",required:!0,"x-decorator-props":{gridSpan:7},"x-component":"Select","x-component-props":{placeholder:"\u9009\u62E9\u7C7B\u76EE\u6807\u7B7E"}},formatField:{type:"string","x-decorator":"FormItem","x-component":"Input","x-decorator-props":{gridSpan:6},"x-component-props":{placeholder:"\u8F93\u5165\u7C7B\u76EE\u522B\u540D"}},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove","x-component-props":{},"x-decorator-props":{gridSpan:1}}}}}},properties:{add:{type:"void",title:"\u6DFB\u52A0\u7C7B\u76EE","x-component":"ArrayItems.Addition","x-component-props":{block:!0}}}})}}).filter(function(l){return l!==void 0}),i=n.reduce(function(l,s){return Object.assign(l,s)},{});return i},hu=function(t){var e=Ze({isOpen:{title:"\u5F00\u542F\u56FE\u5C42\u4FE1\u606F\u6846",type:"boolean","x-decorator":"FormItem","x-component":"Switch",default:!0,"x-decorator-props":{labelCol:9,wrapperCol:15}},trigger:{title:"\u6253\u5F00\u65B9\u5F0F",type:"string","x-decorator":"FormItem","x-component":"Select","x-component-props":{options:[{value:"click",label:"\u70B9\u51FB"},{value:"hover",label:"\u5212\u5165"}]},default:"hover"}},bu(t));return{schema:e,toValues:gu,fromValues:vu}},_u=function(){return c().createElement("svg",{viewBox:"0 0 64 64",width:"1em",height:"1em",fill:"currentColor"},c().createElement("path",{fill:"currentColor",transform:"rotate(180 31.999999999999996,32)",d:"m48.786114,21.23426l-33.572225,0l0,-5.382871l33.572225,0l0,5.382871m0,8.074306l-33.572225,0l0,-5.382871l33.572225,0l0,5.382871m0,8.074306l-33.572225,0l0,-5.382871l33.572225,0l0,5.382871m11.190742,-26.914353c0,-2.960579 -2.517917,-5.382871 -5.595371,-5.382871l-44.762966,0c-3.077454,0 -5.595371,2.422292 -5.595371,5.382871l0,32.297224c0,2.960579 2.517917,5.382871 5.595371,5.382871l39.167595,0l11.190742,10.765741l0,-48.445836z"}))},Go=(0,w.implementWidget)({version:"v0.1",metadata:{name:"LayerPopup",displayName:"\u4FE1\u606F\u6846",description:"\u5F39\u7A97\u5F62\u5F0F\u5C55\u793A\u56FE\u5C42\u7684\u989D\u5916\u4FE1\u606F",type:"Auto",category:"LayerInteraction",icon:_u},defaultProperties:{isOpen:!0,trigger:"hover",items:[]},component:iu,registerForm:hu}),Au=function(e){var r=e.position,o=e.url,n=e.href,i=e.height,l=e.width;return c().createElement(P.LogoControl,{position:r,img:o,href:n||"",style:{width:l,height:i}})},Cu=Au,xu=function(){var t={position:{title:"\u653E\u7F6E\u65B9\u4F4D",type:"string","x-decorator":"FormItem","x-component":"ControlPositionSelect",default:"bottomLeft"},url:{title:"\u56FE\u7247\u5730\u5740",type:"string","x-decorator":"FormItem","x-component":"Input",default:"https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*GRb1TKp4HcMAAAAAAAAAAAAAARQnAQ"},href:{title:"\u8DF3\u8F6C\u5730\u5740",type:"string","x-decorator":"FormItem","x-component":"Input"},width:{title:"\u56FE\u7247\u5BBD\u5EA6",type:"string","x-decorator":"FormItem","x-component":"NumberPicker","x-component-props":{addonAfter:"px",min:0,precision:0},default:89},height:{title:"\u56FE\u7247\u9AD8\u5EA6",type:"string","x-decorator":"FormItem","x-component":"NumberPicker","x-component-props":{addonAfter:"px",min:0,precision:0},default:16}};return{schema:t}},Su=function(){return c().createElement("svg",{viewBox:"0 0 64 64",width:"1em",height:"1em",fill:"currentColor"},c().createElement("path",{fill:"currentColor",d:"m7.552775,33.880555l-3.761111,0l0,-18.805557l3.761111,0l0,15.044446l7.522223,0l0,3.761111l-7.522223,0zm-3.761111,15.044446l56.416671,0l0,-3.761111l-56.416671,0l0,3.761111zm37.611114,-7.522223l-7.522223,0l0,-3.761111l7.522223,0l0,-3.761111l-7.522223,0l0,-11.283334l7.522223,0l3.761111,0l0,11.283334l0,3.761111l0,3.761111l-3.761111,0zm0,-11.283334l0,-3.761111l-3.761111,0l0,3.761111l3.761111,0zm18.805557,-7.522223l0,11.283334l-11.283334,0l0,-11.283334l11.283334,0zm-3.761111,3.761111l-3.761111,0l0,3.761111l3.761111,0l0,-3.761111zm-26.32778,7.522223l-11.283334,0l0,-11.283334l11.283334,0l0,11.283334zm-3.700934,-7.522223l-3.761111,0l0,3.761111l3.761111,0l0,-3.761111z"}))},Ko=(0,w.implementWidget)({version:"v0.1",metadata:{name:"LogoControl",displayName:"Logo",description:"\u81EA\u5B9A\u4E49 Logo \u56FE\u6807",type:"Auto",category:"MapControl",icon:Su},defaultProperties:{position:"leftbottom",url:"https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*GRb1TKp4HcMAAAAAAAAAAAAAARQnAQ",width:89,height:16},component:Cu,registerForm:xu}),Ou=[tr,ir,pr,vr,Cr,wr,Ir,Hr,Jr,Qr,to],ju=Object.values(ee),wu=Object.values(q),Lu={version:"v0.1",layers:Ou,widgets:ju,services:wu},Jo={i8:"1.3.5"},Pu=j(99212),Qe=j.n(Pu),Fu=!1;window.LICoreAssets=te;var Ue="@antv/li-core-assets",Ye="@antv/li-analysis-assets",Iu=[Ue,Ye],Tu=[{assetId:Ue,creatTime:Qe()().format("YYYY-MM-DD HH:mm:ss"),name:"\u53EF\u89C6\u5316\u6838\u5FC3\u8D44\u4EA7",description:"\u5B98\u65B9\u53EF\u89C6\u5316\u6838\u5FC3\u8D44\u4EA7, \u5305\u542B L7VP \u6838\u5FC3\u53EF\u89C6\u5316\u56FE\u5C42\u3001\u7EC4\u4EF6\u3001\u670D\u52A1",package:Ue,version:Jo.i8,global:"LICoreAssets",urls:["https://registry.npmmirror.com/@antv/li-core-assets/".concat(Jo.i8,"/files/dist/umd/li-core-assets.min.js")],enable:!1},{assetId:Ye,creatTime:Qe()().format("YYYY-MM-DD HH:mm:ss"),name:"\u5206\u6790\u573A\u666F\u8D44\u4EA7\u5305",description:"\u5B98\u65B9\u5206\u6790\u573A\u666F\u8D44\u4EA7\u5305\uFF0C\u7528\u4E8E\u6570\u636E\u53EF\u89C6\u5206\u6790\u573A\u666F\uFF0C\u5305\u542B\u5206\u6790\u56FE\u5C42\u3001\u7EC4\u4EF6\u7B49",package:Ye,version:ye.i8,global:"LIAnalysisAssets",urls:["https://registry.npmmirror.com/@antv/li-analysis-assets/".concat(ye.i8,"/files/dist/umd/li-analysis-assets.min.js")],enable:!Fu},{assetId:"@antv/li-sam-assets",creatTime:Qe()().format("YYYY-MM-DD HH:mm:ss"),name:"\u9065\u611F\u56FE\u50CF\u5206\u5272\u8D44\u4EA7\u5305",description:"SAM \u9065\u611F\u56FE\u50CF\u5206\u5272\u8D44\u4EA7\u5305",package:"@antv/li-sam-assets",version:"0.1.3",global:"SAMAssets",urls:["https://registry.npmmirror.com/@antv/li-sam-assets/0.1.3/files/dist/li-sam-assets.min.js"]},{assetId:"@lvisei/li-zelda-assets",creatTime:Qe()().format("YYYY-MM-DD HH:mm:ss"),name:"\u585E\u5C14\u8FBE\u5E94\u7528\u8D44\u4EA7\u5305",description:"\u585E\u5C14\u8FBE\uFF1A\u738B\u56FD\u4E4B\u6CEA\u5E94\u7528\u8D44\u4EA7\u5305",package:"@lvisei/li-zelda-assets",version:"latest",global:"LIZeldaAssets",urls:["https://registry.npmmirror.com/@lvisei/li-zelda-assets/0.x/files/dist/li-zelda-assets.min.js"]}]},90527:function(ke,de,j){j.d(de,{C_:function(){return P},Ry:function(){return c},hg:function(){return q.hg},vh:function(){return J},AT:function(){return q.AT},Jg:function(){return q.Jg},e1:function(){return W},Gj:function(){return et},RI:function(){return tt},CN:function(){return q.CN},$l:function(){return $},c3:function(){return Xe},Oi:function(){return ge},qQ:function(){return it},BA:function(){return nt}});var q=j(75919),ee=j(28366),te=j(92729),ye=j(17645),w=j(78453),$=new Map([["lodash",{globals:"_",js:["https://gw.alipayobjects.com/os/lib/lodash/4.17.20/lodash.min.js"]}],["react",{globals:["React","ReactDOM"],js:["https://gw.alipayobjects.com/os/lib/react/18.2.0/umd/react.production.min.js","https://gw.alipayobjects.com/os/lib/react-dom/18.2.0/umd/react-dom.production.min.js"]}],["antd",{globals:["dayjs","antd","icons"],js:["https://gw.alipayobjects.com/os/lib/dayjs/1.11.10/dayjs.min.js","https://gw.alipayobjects.com/os/lib/antd/5.9.2/dist/antd.min.js","https://gw.alipayobjects.com/os/lib/ant-design/icons/5.2.5/dist/index.umd.min.js"],css:["https://gw.alipayobjects.com/os/lib/antd/5.9.2/dist/reset.css"]}],["formily",{globals:["Formily"],js:["https://gw.alipayobjects.com/os/lib/formily/reactive/2.2.29/dist/formily.reactive.umd.production.js","https://gw.alipayobjects.com/os/lib/formily/path/2.2.29/dist/formily.path.umd.production.js","https://gw.alipayobjects.com/os/lib/formily/shared/2.2.29/dist/formily.shared.umd.production.js","https://gw.alipayobjects.com/os/lib/formily/validator/2.2.29/dist/formily.validator.umd.production.js","https://gw.alipayobjects.com/os/lib/formily/core/2.2.29/dist/formily.core.umd.production.js","https://gw.alipayobjects.com/os/lib/formily/json-schema/2.2.29/dist/formily.json-schema.umd.production.js","https://gw.alipayobjects.com/os/lib/react-is/17.0.2/umd/react-is.production.min.js","https://gw.alipayobjects.com/os/lib/formily/reactive-react/2.2.29/dist/formily.reactive-react.umd.production.js","https://gw.alipayobjects.com/os/lib/formily/react/2.2.29/dist/formily.react.umd.production.js","https://gw.alipayobjects.com/os/lib/formily/antd-v5/1.1.2/dist/formily.antd-v5.umd.production.js"]}],["turf",{globals:"turf",js:["https://gw.alipayobjects.com/os/lib/turf/turf/6.5.0/turf.min.js"]}],["L7",{globals:"L7",js:["https://gw.alipayobjects.com/os/lib/mapbox-gl/1.13.3/dist/mapbox-gl.js","https://registry.npmmirror.com/@antv/l7/".concat(te.i8,"/files/dist/l7.js"),"https://registry.npmmirror.com/@antv/l7-draw/".concat(ee.i8,"/files/dist/l7-draw.min.js")]}],["LarkMap",{globals:"LarkMap",js:["https://registry.npmmirror.com/@antv/larkmap/".concat(ye.i8,"/files/dist/larkmap.min.js")],css:["https://registry.npmmirror.com/@antv/larkmap/".concat(ye.i8,"/files/dist/larkmap.min.css")]}],["LISDK",{globals:"LISDK",js:["https://registry.npmmirror.com/@antv/li-sdk/".concat(w.i8,"/files/dist/umd/li-sdk.min.js")]}]]),c="8803c38931b6fddc9bbfeee69df8824d";window._AMapSecurityConfig={securityJsCode:c};var P="f0230f884bbd54e2913c890cdf45aa7e",Xe="pk.eyJ1IjoibGl1dmlnb25nenVvc2hpIiwiYSI6ImNsYWx2dHlxOTA5NGYzeW9icGd6aDE2NnoifQ.T3wEAOe8HReAyoeu6d6HJw",et=[{id:"BaseLayout",type:"BaseLayout",metadata:{name:"\u5E03\u5C40\u7EC4\u4EF6"},properties:{showSidePanel:!1}},{id:"ZoomControl",type:"ZoomControl",metadata:{name:"\u7F29\u653E\u5668"},properties:{position:"bottomright"},container:{id:"BaseLayout",slot:"controls"}},{id:"LayerPopup",type:"LayerPopup",metadata:{name:"\u4FE1\u606F\u6846"},properties:{isOpen:!0,trigger:"hover",items:[]},container:{id:"BaseLayout",slot:"controls"}},{id:"FullscreenControl",type:"FullscreenControl",metadata:{name:"\u5168\u5C4F\u5207\u6362"},properties:{position:"topright"},container:{id:"BaseLayout",slot:"controls"}},{id:"MapThemeControl",type:"MapThemeControl",metadata:{name:"\u5E95\u56FE\u4E3B\u9898\u5207\u6362"},properties:{position:"bottomright"},container:{id:"BaseLayout",slot:"controls"}},{id:"ea0b8946-3e3d-4a87-a4a0-5dd08e7a2eed",type:"ExportImageControl",metadata:{name:"\u5730\u56FE\u622A\u56FE"},properties:{position:"topright"},container:{id:"BaseLayout",slot:"controls"}}],W=[{id:"AnalysisLayout",type:"AnalysisLayout",metadata:{name:"\u5E03\u5C40\u7EC4\u4EF6"},properties:{showFloatPanel:!1,showSidePanel:!1,showBottomPanel:!1}},{id:"AdministrativeSelectControl",type:"AdministrativeSelectControl",metadata:{name:"\u884C\u653F\u533A\u57DF\u9009\u62E9\u5668"},properties:{position:"lefttop"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LocationSearchControl",type:"LocationSearchControl",metadata:{name:"\u5730\u540D\u67E5\u8BE2"},properties:{position:"lefttop"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"ZoomControl",type:"ZoomControl",metadata:{name:"\u7F29\u653E\u5668"},properties:{position:"bottomright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"PropertiesPanel",type:"PropertiesPanel",metadata:{name:"\u5C5E\u6027\u9762\u677F"},properties:{isOpen:!1,items:[]},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LayerPopup",type:"LayerPopup",metadata:{name:"\u4FE1\u606F\u6846"},properties:{isOpen:!0,trigger:"hover",items:[]},container:{id:"AnalysisLayout",slot:"controls"}},{id:"FullscreenControl",type:"FullscreenControl",metadata:{name:"\u5168\u5C4F\u5207\u6362"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LegendWidget",type:"LegendWidget",metadata:{name:"\u56FE\u4F8B"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MapThemeControl",type:"MapThemeControl",metadata:{name:"\u5E95\u56FE\u4E3B\u9898\u5207\u6362"},properties:{position:"bottomright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MouseLocationControl",type:"MouseLocationControl",metadata:{name:"\u5149\u6807\u7ECF\u7EAC\u5EA6"},properties:{position:"leftbottom"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"ea0b8946-3e3d-4a87-a4a0-5dd08e7a2eed",type:"ExportImageControl",metadata:{name:"\u5730\u56FE\u622A\u56FE"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}}],tt=[],rt=j(91055),G=j.n(rt),ot=j(81821),J={algorithm:ot.theme.darkAlgorithm,token:{colorPrimary:"#8274FF",colorTextBase:"rgba(255,255,255,0.85)",colorBgBase:"#0f0f13",colorInfo:"#8274FF",borderRadius:6}},nt=G()(G()({},J),{},{token:G()(G()({},J.token),{},{colorBorder:"#434343",colorBorderSecondary:"#303030",colorSplit:"rgba(48,48,48,0.85)"})}),it=G()(G()({},J),{},{token:G()(G()({},J.token),{},{colorBgBase:"#1d1e25"}),components:{Slider:{colorPrimaryBorder:J.token.colorPrimary,colorPrimaryBorderHover:J.token.colorPrimary},DatePicker:{cellHoverWithRangeBg:J.token.colorPrimary}}}),ge="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*xuDWR7uXkbkAAAAAAAAAAAAADmJ7AQ/original"},47019:function(ke,de,j){j.d(de,{J:function(){return q},K:function(){return ee}});var q=[{type:"\u5730\u6807",icons:[{id:"landmark_park",name:"\u516C\u56ED",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*JZf9T6psSzkAAAAAAAAAAAAADmJ7AQ/original"},{id:"landmark_fire-station",name:"\u6D88\u9632\u7AD9",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*lKIITZAG_PcAAAAAAAAAAAAADmJ7AQ/original"},{id:"landmark-coffee",name:"\u5496\u5561\u9986",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*uHYERpUeZ_MAAAAAAAAAAAAADmJ7AQ/original"},{id:"landmark_supermarket",name:"\u5546\u573A",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*p2rgTYaHGdkAAAAAAAAAAAAADmJ7AQ/original"},{id:"landmark_zoo",name:"\u52A8\u7269\u56ED",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*ElxdRIYcsS0AAAAAAAAAAAAADmJ7AQ/original"},{id:"landmark_railway-station",name:"\u706B\u8F66\u7AD9",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*5Wg1TIbcCcYAAAAAAAAAAAAADmJ7AQ/original"},{id:"landmark-mall",name:"\u5546\u57CE",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*jjynQJDfKigAAAAAAAAAAAAADmJ7AQ/original"},{id:"landmark_nosocomium",name:"\u533B\u9662",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*weuqSamNRnUAAAAAAAAAAAAADmJ7AQ/original"},{id:"landmark_library",name:"\u56FE\u4E66\u9986",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*XB8vR7azNvgAAAAAAAAAAAAADmJ7AQ/original"},{id:"landmark_bus-stop",name:"\u516C\u4EA4\u8F66\u7AD9",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*LrCnSr8FeToAAAAAAAAAAAAADmJ7AQ/original"},{id:"landmark_cinemas",name:"\u7535\u5F71\u9662",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*OGFDT4Vyoz4AAAAAAAAAAAAADmJ7AQ/original"},{id:"landmark_dwelling",name:"\u5C0F\u533A",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*oxcETa4MKgwAAAAAAAAAAAAADmJ7AQ/original"},{id:"landmark_bank",name:"\u94F6\u884C",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*sWHeRrJvTesAAAAAAAAAAAAADmJ7AQ/original"},{id:"landmark_cinema",name:"\u5267\u9662",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*uCdPTZrfSqIAAAAAAAAAAAAADmJ7AQ/original"},{id:"landmark_amusement-park",name:"\u6E38\u4E50\u56ED",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*SIU-R7jDaLAAAAAAAAAAAAAADmJ7AQ/original"}]},{type:"\u6807\u8BB0",icons:[{id:"flag_red",name:"\u7EA2\u8272\u65D7\u5E1C",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*CHCXT7F_3YkAAAAAAAAAAAAADmJ7AQ/original"},{id:"flag_yellow",name:"\u9EC4\u8272\u65D7\u5E1C",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*8yZhRYZ-PpAAAAAAAAAAAAAADmJ7AQ/original"},{id:"flag_green",name:"\u7EFF\u8272\u65D7\u5E1C",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*e58jSpHWmr0AAAAAAAAAAAAADmJ7AQ/original"},{id:"flag_blue",name:"\u84DD\u8272\u65D7\u5E1C",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*vPCVQazLoUcAAAAAAAAAAAAADmJ7AQ/original"},{id:"markers_warn",name:"\u8B66\u544A",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*MxBbQZx5byoAAAAAAAAAAAAADmJ7AQ/original"},{id:"markers_query",name:"\u7591\u95EE",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*QfWGQ7fzkrcAAAAAAAAAAAAADmJ7AQ/original"}]},{type:"\u5929\u6C14",icons:[{id:"weather_sunny",name:"\u6674\u5929",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*polsQa3R6UgAAAAAAAAAAAAADmJ7AQ/original"},{id:"weather_cloudy",name:"\u591A\u4E91",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*xOD4SIwHAMcAAAAAAAAAAAAADmJ7AQ/original"},{id:"weather_cloudy-day",name:"\u9634\u5929",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*wMJISZvc_1EAAAAAAAAAAAAADmJ7AQ/original"},{id:"weather_sand",name:"\u626C\u6C99",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*4nNTRYMV-iwAAAAAAAAAAAAADmJ7AQ/original"},{id:"weather_tornado",name:"\u9F99\u5377\u98CE",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*ldyiQpgiJlYAAAAAAAAAAAAADmJ7AQ/original"},{id:"weather_rainstorm",name:"\u96F7\u96E8",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*E5JkRLtSzZYAAAAAAAAAAAAADmJ7AQ/original"},{id:"weather_spit",name:"\u5C0F\u96E8",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*nxwXSo_PR2sAAAAAAAAAAAAADmJ7AQ/original"},{id:"weather_moderate-rain",name:"\u4E2D\u96E8",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*4yRYRI3AwowAAAAAAAAAAAAADmJ7AQ/original"},{id:"weather_heavy-rain",name:"\u5927\u96E8",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*UeChTbbwvloAAAAAAAAAAAAADmJ7AQ/original"},{id:"weather_sleet",name:"\u96E8\u5939\u96EA",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*zi53Rp5hWMIAAAAAAAAAAAAADmJ7AQ/original"},{id:"weather_light-snow",name:"\u5C0F\u96EA",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*F-w5Qas4Np4AAAAAAAAAAAAADmJ7AQ/original"},{id:"weather_moderate-snow",name:"\u4E2D\u96EA",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*GHisS4y9ynMAAAAAAAAAAAAADmJ7AQ/original"}]},{type:"\u533B\u7597",icons:[]},{type:"\u6D88\u9632",icons:[{id:"fire_fighting-car",name:"\u6D88\u9632\u8F66",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*zUjqQYt67SgAAAAAAAAAAAAADmJ7AQ/original"},{id:"fire_fighting-tied",name:"\u6D88\u9632\u62F4",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*iI5fSpCQWp0AAAAAAAAAAAAADmJ7AQ/original"},{id:"fire_fighting-extinguisher",name:"\u706D\u706B\u5668",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*vIadR56-pKMAAAAAAAAAAAAADmJ7AQ/original"},{id:"fire_fighting-water-pump",name:"\u6D88\u9632\u6C34\u6CF5",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*TFzHSLnqc9gAAAAAAAAAAAAADmJ7AQ/original"},{id:"fire_fighting-pump-room",name:"\u6D88\u9632\u6CF5\u623F",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*bWYLQqc8sTIAAAAAAAAAAAAADmJ7AQ/original"}]},{type:"\u5176\u4ED6",icons:[{id:"other_aquatic-germplasm-reserve",name:"\u6C34\u4EA7\u79CD\u8D28\u8D44\u6E90\u4FDD\u62A4\u533A",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*sSbCRKP1RsgAAAAAAAAAAAAADmJ7AQ/original"},{id:"other_marine-nature-reserves",name:"\u6D77\u6D0B\u81EA\u7136\u4FDD\u62A4\u533A",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*dPoYQoBq4f0AAAAAAAAAAAAADmJ7AQ/original"},{id:"other_marine-park",name:"\u6D77\u6D0B\u516C\u56ED",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*on7pR5VRjHsAAAAAAAAAAAAADmJ7AQ/original"},{id:"other_special-marinep-protected-areas",name:"\u7279\u522B\u6D77\u6D0B\u4FDD\u62A4\u533A",url:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*DulySrR5zuwAAAAAAAAAAAAADmJ7AQ/original"}]}],ee=q.map(function(te){return te.icons}).flat()},78453:function(ke){ke.exports={i8:"1.4.2"}}}]); diff --git a/533.6c75b745.async.js b/533.6c75b745.async.js new file mode 100644 index 00000000..216f1786 --- /dev/null +++ b/533.6c75b745.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_antv_li_website=self.webpackChunk_antv_li_website||[]).push([[533],{49533:function(f,r,e){e.r(r),e.d(r,{default:function(){return E}});var l=e(87363),c=e.n(l),_=e(40795),s=e(70293);function E(){var i=(0,_.bx)();return(0,s.jsx)(_.j3,{context:i})}},164:function(f,r,e){var l=e(87363),c=Symbol.for("react.element"),_=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,E=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function d(o,t,a){var n,u={},O=null,v=null;a!==void 0&&(O=""+a),t.key!==void 0&&(O=""+t.key),t.ref!==void 0&&(v=t.ref);for(n in t)s.call(t,n)&&!i.hasOwnProperty(n)&&(u[n]=t[n]);if(o&&o.defaultProps)for(n in t=o.defaultProps,t)u[n]===void 0&&(u[n]=t[n]);return{$$typeof:c,type:o,key:O,ref:v,props:u,_owner:E.current}}r.Fragment=_,r.jsx=d,r.jsxs=d},70293:function(f,r,e){f.exports=e(164)}}]); diff --git a/575.1b719830.chunk.css b/575.1b719830.chunk.css new file mode 100644 index 00000000..62efaa4a --- /dev/null +++ b/575.1b719830.chunk.css @@ -0,0 +1 @@ +.weave-chart-container .chartContainer{display:flex;flex-direction:row;height:100%;overflow:hidden}.weave-chart-container .chartContainer .empty{display:flex;align-items:center;justify-content:center}.weave-chart-container .chartContainer .g2Container{height:100%}.weave-chart-container .chartContainer .settings{width:148px;height:100%;margin-right:8px;margin-left:8px;padding-right:8px;border-right:1px solid rgba(0,0,0,.1)}.weave-chart-container .chartContainer .splitLabel{display:flex;align-items:center}.weave-chart-container .chartContainer .value{margin-bottom:12px}.weave-chart-container .chartContainer .content{flex:1 1;height:calc(100% - 40px)}.weave-chart-container .chartContainer .content.empty{display:flex;align-items:center;justify-content:center} diff --git a/575.73a866df.async.js b/575.73a866df.async.js new file mode 100644 index 00000000..b32a80b1 --- /dev/null +++ b/575.73a866df.async.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_antv_li_website=self.webpackChunk_antv_li_website||[]).push([[575],{39153:function(G,C,a){a.r(C);var _=a(87363),l=a.n(_),R=a(36248),W=a(90005),L=a.n(W),O=a(81821),k=a.n(O),b=a(15934),D=a(30095),F=a(14214),j=a(89446),q=a(86610);function y(e){"@babel/helpers - typeof";return y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(e)}function M(e,t,n){return t=N(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N(e){var t=V(e,"string");return y(t)=="symbol"?t:String(t)}function V(e,t){if(y(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(y(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function z(e,t){return $(e)||Y(e,t)||H(e,t)||Z()}function Z(){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 H(e,t){if(e){if(typeof e=="string")return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A(e,t)}}function A(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1){var o=(0,b.jm)(r.x,r.y,r.aggregation,n,r.split);B(o),U(o)}else T()},[n,f]),(0,j.YP)(r,function(){if(r.x&&r.y&&n.length>1){var o=(0,b.jm)(r.x,r.y,r.aggregation,n,r.split);B(o),U(o)}else T()});var p=function(u,d){r[u]=d},x=r.x&&r.y;return l().createElement("div",{className:"chartContainer"},g&&l().createElement("div",{className:"settings"},l().createElement("div",{className:"item"},l().createElement(D.Z,{label:"\u5207\u7247",value:r.x,onChange:function(u){p("x",u)},columns:c}),l().createElement(D.Z,{label:l().createElement("div",{className:"splitLabel"},l().createElement("div",null,"\u6570\u503C"),l().createElement(F.Z,{value:r.aggregation,onChange:function(u){p("aggregation",u)}})),value:r.y,onChange:function(u){p("y",u)},columns:c}))),l().createElement("div",{className:L()("content",{empty:!x})},x?l().createElement("div",{id:i,className:"g2Container"}):l().createElement(O.Empty,null)))};C.default=l().memo(w)}}]); diff --git a/632.61acca0b.async.js b/632.61acca0b.async.js new file mode 100644 index 00000000..2d894bc4 --- /dev/null +++ b/632.61acca0b.async.js @@ -0,0 +1,35 @@ +(self.webpackChunk_antv_li_website=self.webpackChunk_antv_li_website||[]).push([[632],{36248:function(Gt,st,L){"use strict";L.d(st,{sg:function(){return sa},x1:function(){return Da},by:function(){return Oa}});var tt={};L.r(tt),L.d(tt,{cluster:function(){return rv},hierarchy:function(){return je},pack:function(){return hi},packEnclose:function(){return li},packSiblings:function(){return Fc},partition:function(){return $i},stratify:function(){return lv},tree:function(){return vv},treemap:function(){return to},treemapBinary:function(){return hv},treemapDice:function(){return cn},treemapResquarify:function(){return gv},treemapSlice:function(){return Gn},treemapSliceDice:function(){return pv},treemapSquarify:function(){return Qi}});var D=L(95876),g=L(85556),h=L(47165),nt=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"],gt;(function(t){t.ERROR="error",t.WARN="warn",t.INFO="log"})(gt||(gt={}));var Dt="AntV/G2Plot";function j(t){for(var e=[],n=1;n=0}),a=n.every(function(i){return(0,h.U2)(i,[e])<=0});return r?{min:0}:a?{max:0}:{}}function J(t,e,n,r,a){if(a===void 0&&(a=[]),!Array.isArray(t))return{nodes:[],links:[]};var i=[],o={},s=-1;return t.forEach(function(l){var u=l[e],c=l[n],d=l[r],f=U(l,a);o[u]||(o[u]=(0,g.pi)({id:++s,name:u},f)),o[c]||(o[c]=(0,g.pi)({id:++s,name:c},f)),i.push((0,g.pi)({source:o[u].id,target:o[c].id,value:d},f))}),{nodes:Object.values(o).sort(function(l,u){return l.id-u.id}),links:i}}function Z(t,e){var n=(0,h.hX)(t,function(r){var a=r[e];return a===null||typeof a=="number"&&!isNaN(a)});return vt(gt.WARN,n.length===t.length,"illegal data existed in chart data."),n}var z=5,C={}.toString,K=function(t,e){return C.call(t)==="[object "+e+"]"},wt=function(t){return K(t,"Array")},Ot=function(t){return typeof t=="object"&&t!==null},Zt=function(t){if(!Ot(t)||!K(t,"Object"))return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},Ct=function(t,e,n,r){n=n||0,r=r||z;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=e[a];i?Zt(i)?(Zt(t[a])||(t[a]={}),n=r&&t<=a}function H(t){if((0,h.hj)(t))return[t,t,t,t];if((0,h.kJ)(t)){var e=t.length;if(e===1)return[t[0],t[0],t[0],t[0]];if(e===2)return[t[0],t[1],t[0],t[1]];if(e===3)return[t[0],t[1],t[2],t[1]];if(e===4)return t}return[0,0,0,0]}function at(t,e,n){e===void 0&&(e="bottom"),n===void 0&&(n=25);var r=H(t),a=[e.startsWith("top")?n:0,e.startsWith("right")?n:0,e.startsWith("bottom")?n:0,e.startsWith("left")?n:0];return[r[0]+a[0],r[1]+a[1],r[2]+a[2],r[3]+a[3]]}function ut(t){var e=t.map(function(r){return H(r)}),n=[0,0,0,0];return e.length>0&&(n=n.map(function(r,a){return e.forEach(function(i,o){r+=e[o][a]}),r})),n}var ot=L(29617);function ht(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var r=1,a=t.length;r"},key:"".concat(l===0?"top":"bottom","-statistic")},U(s,["offsetX","offsetY","rotate","style","formatter"])))}})},Mt=function(t,e,n){var r=e.statistic,a=r.title,i=r.content;[a,i].forEach(function(o){if(o){var s=(0,h.mf)(o.style)?o.style(n):o.style;t.annotation().html((0,g.pi)({position:["50%","100%"],html:function(l,u){var c=u.getCoordinate(),d=u.views[0].getCoordinate(),f=d.getCenter(),v=d.getRadius(),p=Math.max(Math.sin(d.startAngle),Math.sin(d.endAngle))*v,y=f.y+p-c.y.start-parseFloat((0,h.U2)(s,"fontSize",0)),m=c.getRadius()*c.innerRadius*2;ct(l,(0,g.pi)({width:"".concat(m,"px"),transform:"translate(-50%, ".concat(y,"px)")},yt(s)));var x=u.getData();if(o.customHtml)return o.customHtml(l,u,n,x);var F=o.content;return o.formatter&&(F=o.formatter(n,x)),F?(0,h.HD)(F)?F:"".concat(F):"
"}},U(o,["offsetX","offsetY","rotate","style","formatter"])))}})};function Vt(t,e){return e?(0,h.u4)(e,function(n,r,a){return n.replace(new RegExp("{\\s*".concat(a,"\\s*}"),"g"),r)},t):t}function B(t,e){return t.views.find(function(n){return n.id===e})}function Ht(t){var e=t.parent;return e?e.views:[]}function Kt(t){return Ht(t).filter(function(e){return e!==t})}function Qt(t,e,n){n===void 0&&(n=t.geometries),typeof e=="boolean"?t.animate(e):t.animate(!0),(0,h.S6)(n,function(r){var a;(0,h.mf)(e)?a=e(r.type||r.shapeType,r)||!0:a=e,r.animate(a)})}function ae(){return typeof window=="object"?window==null?void 0:window.devicePixelRatio:2}function te(t,e){e===void 0&&(e=t);var n=document.createElement("canvas"),r=ae();n.width=t*r,n.height=e*r,n.style.width="".concat(t,"px"),n.style.height="".concat(e,"px");var a=n.getContext("2d");return a.scale(r,r),n}function le(t,e,n,r){r===void 0&&(r=n);var a=e.backgroundColor,i=e.opacity;t.globalAlpha=i,t.fillStyle=a,t.beginPath(),t.fillRect(0,0,n,r),t.closePath()}function ne(t,e,n){var r=t+e;return n?r*2:r}function re(t,e){var n=e?[[t*.25,t*.25],[t*.75,t*.75]]:[[t*.5,t*.5]];return n}function Xt(t,e){var n=e*Math.PI/180,r={a:Math.cos(n)*(1/t),b:Math.sin(n)*(1/t),c:-Math.sin(n)*(1/t),d:Math.cos(n)*(1/t),e:0,f:0};return r}var ie={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function se(t,e,n,r){var a=e.size,i=e.fill,o=e.lineWidth,s=e.stroke,l=e.fillOpacity;t.beginPath(),t.globalAlpha=l,t.fillStyle=i,t.strokeStyle=s,t.lineWidth=o,t.arc(n,r,a/2,0,2*Math.PI,!1),t.fill(),o&&t.stroke(),t.closePath()}function Jn(t){var e=b({},ie,t),n=e.size,r=e.padding,a=e.isStagger,i=e.rotation,o=ne(n,r,a),s=re(o,a),l=te(o,o),u=l.getContext("2d");le(u,e,o);for(var c=0,d=s;cw){var _=S/y.length,O=Math.max(1,Math.ceil(w/_)-1),W="".concat(y.slice(0,O),"...");F.attr("text",W)}}}}function ll(t,e,n){il(t,e,n),ol(t,e,n)}function sl(t,e,n){return e===void 0&&(e=!0),n===void 0&&(n=!1),function(r){var a=r.options,i=r.chart,o=a.conversionTag,s=a.theme;return o&&!n&&(i.theme(b({},(0,h.Kn)(s)?s:(0,D.gh)(s),{columnWidthRatio:1/3})),i.annotation().shape({render:function(l,u){var c=l.addGroup({id:"".concat(i.id,"-conversion-tag-group"),name:"conversion-tag-group"}),d=(0,h.sE)(i.geometries,function(p){return p.type==="interval"}),f={view:u,geometry:d,group:c,field:t,horizontal:e,options:al(o,e)},v=d.elements;(0,h.S6)(v,function(p,y){y>0&&ll(f,v[y-1],p)})}})),r}}function ul(t){var e=t.options,n=e.legend,r=e.seriesField,a=e.isStack;return r?n!==!1&&(n=(0,g.pi)({position:a?"right-top":"top-left"},n)):n=!1,t.options.legend=n,t}function cl(t){var e=t.chart,n=t.options,r=n.data,a=n.columnStyle,i=n.color,o=n.columnWidthRatio,s=n.isPercent,l=n.isGroup,u=n.isStack,c=n.xField,d=n.yField,f=n.seriesField,v=n.groupField,p=n.tooltip,y=n.shape,m=s&&l&&u?Go(r,d,[c,v],d):tn(r,d,c,d,s),x=[];u&&f&&!l?m.forEach(function(S){var _=x.find(function(O){return O[c]===S[c]&&O[f]===S[f]});_?_[d]+=S[d]||0:x.push((0,g.pi)({},S))}):x=m,e.data(x);var F=s?(0,g.pi)({formatter:function(S){var _;return{name:l&&u?"".concat(S[f]," - ").concat(S[v]):(_=S[f])!==null&&_!==void 0?_:S[c],value:(Number(S[d])*100).toFixed(2)+"%"}}},p):p,w=b({},t,{options:{data:x,widthRatio:o,tooltip:F,interval:{shape:y,style:a,color:i}}});return ee(w),w}function rr(t){var e,n,r=t.options,a=r.xAxis,i=r.yAxis,o=r.xField,s=r.yField,l=r.data,u=r.isPercent,c=u?{max:1,min:0,minLimit:0,maxLimit:1}:{};return N(qt((e={},e[o]=a,e[s]=i,e),(n={},n[o]={type:"cat"},n[s]=(0,g.pi)((0,g.pi)({},Pt(l,s)),c),n)))(t)}function fl(t){var e=t.chart,n=t.options,r=n.xAxis,a=n.yAxis,i=n.xField,o=n.yField;return r===!1?e.axis(i,!1):e.axis(i,r),a===!1?e.axis(o,!1):e.axis(o,a),t}function dl(t){var e=t.chart,n=t.options,r=n.legend,a=n.seriesField;return r&&a?e.legend(a,r):r===!1&&e.legend(!1),t}function vl(t){var e=t.chart,n=t.options,r=n.label,a=n.yField,i=n.isRange,o=Et(e,"interval");if(!r)o.label(!1);else{var s=r.callback,l=(0,g._T)(r,["callback"]);o.label({fields:[a],callback:s,cfg:(0,g.pi)({layout:l!=null&&l.position?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},P(i?(0,g.pi)({content:function(u){var c;return(c=u[a])===null||c===void 0?void 0:c.join("-")}},l):l))})}return t}function hl(t){var e=t.chart,n=t.options,r=n.tooltip,a=n.isGroup,i=n.isStack,o=n.groupField,s=n.data,l=n.xField,u=n.yField,c=n.seriesField;if(r===!1)e.tooltip(!1);else{var d=r;if(a&&i){var f=d.customItems,v=(d==null?void 0:d.formatter)||function(p){return{name:"".concat(p[c]," - ").concat(p[o]),value:p[u]}};d=(0,g.pi)((0,g.pi)({},d),{customItems:function(p){var y=[];return(0,h.S6)(p,function(m){var x=(0,h.hX)(s,function(F){return(0,h.BD)(F,U(m.data,[l,c]))});x.forEach(function(F){y.push((0,g.pi)((0,g.pi)((0,g.pi)({},m),{value:F[u],data:F,mappingData:{_origin:F}}),v(F)))})}),f?f(y):y}})}e.tooltip(d)}return t}function En(t,e){e===void 0&&(e=!1);var n=t.options,r=n.seriesField;return N(ul,At,ue("columnStyle"),De,Xr("rect"),cl,rr,fl,dl,hl,Qe,tr,vl,ia,zt,It,Wt(),sl(n.yField,!e,!!r),rl(!n.isStack),Oe)(t)}function pl(t){var e=t.options,n=e.xField,r=e.yField,a=e.xAxis,i=e.yAxis,o={left:"bottom",right:"top",top:"left",bottom:"right"},s=i!==!1?(0,g.pi)({position:o[(i==null?void 0:i.position)||"left"]},i):!1,l=a!==!1?(0,g.pi)({position:o[(a==null?void 0:a.position)||"bottom"]},a):!1;return(0,g.pi)((0,g.pi)({},t),{options:(0,g.pi)((0,g.pi)({},e),{xField:r,yField:n,xAxis:s,yAxis:l})})}function gl(t){var e=t.options,n=e.label;return n&&!n.position&&(n.position="left",n.layout||(n.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),b({},t,{options:{label:n}})}function yl(t){var e=t.options,n=e.seriesField,r=e.isStack,a=e.legend;return n?a!==!1&&(a=(0,g.pi)({position:r?"top-left":"right-top"},a||{})):a=!1,b({},t,{options:{legend:a}})}function xl(t){var e=t.options,n=[{type:"transpose"},{type:"reflectY"}].concat(e.coordinate||[]);return b({},t,{options:{coordinate:n}})}function ml(t){var e=t.chart,n=t.options,r=n.barStyle,a=n.barWidthRatio,i=n.minBarWidth,o=n.maxBarWidth,s=n.barBackground;return En({chart:e,options:(0,g.pi)((0,g.pi)({},n),{columnStyle:r,columnWidthRatio:a,minColumnWidth:i,maxColumnWidth:o,columnBackground:s})},!0)}function la(t){return N(pl,gl,yl,Yt,xl,ml)(t)}var Fl=b({},lt.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),bl=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="bar",n}return e.getDefaultOptions=function(){return Fl},e.prototype.changeData=function(n){var r,a;this.updateOption({data:n});var i=this,o=i.chart,s=i.options,l=s.isPercent,u=s.xField,c=s.yField,d=s.xAxis,f=s.yAxis;r=[c,u],u=r[0],c=r[1],a=[f,d],d=a[0],f=a[1];var v=(0,g.pi)((0,g.pi)({},s),{xField:u,yField:c,yAxis:f,xAxis:d});rr({chart:o,options:v}),o.changeData(tn(n,u,c,u,l))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return la},e}(lt),Sl=b({},lt.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),sa=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="column",n}return e.getDefaultOptions=function(){return Sl},e.prototype.changeData=function(n){this.updateOption({data:n});var r=this.options,a=r.yField,i=r.xField,o=r.isPercent,s=this,l=s.chart,u=s.options;rr({chart:l,options:u}),this.chart.changeData(tn(n,a,i,a,o))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return En},e}(lt),ar,Me="$$percentage$$",Te="$$mappingValue$$",Se="$$conversion$$",ir="$$totalPercentage$$",en="$$x$$",nn="$$y$$",_l={appendPadding:[0,80],minSize:0,maxSize:1,meta:(ar={},ar[Te]={min:0,max:1,nice:!1},ar),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}},ua="CONVERSION_TAG_NAME";function or(t,e,n){var r=[],a=n.yField,i=n.maxSize,o=n.minSize,s=(0,h.U2)((0,h.UT)(e,a),[a]),l=(0,h.hj)(i)?i:1,u=(0,h.hj)(o)?o:0;return r=(0,h.UI)(t,function(c,d){var f=(c[a]||0)/s;return c[Me]=f,c[Te]=(l-u)*f+u,c[Se]=[(0,h.U2)(t,[d-1,a]),c[a]],c}),r}function lr(t){return function(e){var n=e.chart,r=e.options,a=r.conversionTag,i=r.filteredData,o=i||n.getOptions().data;if(a){var s=a.formatter;o.forEach(function(l,u){if(!(u<=0||Number.isNaN(l[Te]))){var c=t(l,u,o,{top:!0,name:ua,text:{content:(0,h.mf)(s)?s(l,o):s,offsetX:a.offsetX,offsetY:a.offsetY,position:"end",autoRotate:!1,style:(0,g.pi)({textAlign:"start",textBaseline:"middle"},a.style)}});n.annotation().line(c)}})}return e}}function wl(t){var e=t.chart,n=t.options,r=n.data,a=r===void 0?[]:r,i=n.yField,o=n.maxSize,s=n.minSize,l=or(a,a,{yField:i,maxSize:o,minSize:s});return e.data(l),t}function Al(t){var e=t.chart,n=t.options,r=n.xField,a=n.yField,i=n.color,o=n.tooltip,s=n.label,l=n.shape,u=l===void 0?"funnel":l,c=n.funnelStyle,d=n.state,f=ve(o,[r,a]),v=f.fields,p=f.formatter;oe({chart:e,options:{type:"interval",xField:r,yField:Te,colorField:r,tooltipFields:(0,h.kJ)(v)&&v.concat([Me,Se]),mapping:{shape:u,tooltip:p,color:i,style:c},label:s,state:d}});var y=Et(t.chart,"interval");return y.adjust("symmetric"),t}function Dl(t){var e=t.chart,n=t.options,r=n.isTransposed;return e.coordinate({type:"rect",actions:r?[]:[["transpose"],["scale",1,-1]]}),t}function ca(t){var e=t.options,n=t.chart,r=e.maxSize,a=(0,h.U2)(n,["geometries","0","dataArray"],[]),i=(0,h.U2)(n,["options","data","length"]),o=(0,h.UI)(a,function(l){return(0,h.U2)(l,["0","nextPoints","0","x"])*i-.5}),s=function(l,u,c,d){var f=r-(r-l[Te])/2;return(0,g.pi)((0,g.pi)({},d),{start:[o[u-1]||u-.5,f],end:[o[u-1]||u-.5,f+.05]})};return lr(s)(t),t}function fa(t){return N(wl,Al,Dl,ca)(t)}function Ml(t){var e,n=t.chart,r=t.options,a=r.data,i=a===void 0?[]:a,o=r.yField;return n.data(i),n.scale((e={},e[o]={sync:!0},e)),t}function Tl(t){var e=t.chart,n=t.options,r=n.data,a=n.xField,i=n.yField,o=n.color,s=n.compareField,l=n.isTransposed,u=n.tooltip,c=n.maxSize,d=n.minSize,f=n.label,v=n.funnelStyle,p=n.state,y=n.showFacetTitle;return e.facet("mirror",{fields:[s],transpose:!l,padding:l?0:[32,0,0,0],showTitle:y,eachView:function(m,x){var F=l?x.rowIndex:x.columnIndex;l||m.coordinate({type:"rect",actions:[["transpose"],["scale",F===0?-1:1,-1]]});var w=or(x.data,r,{yField:i,maxSize:c,minSize:d});m.data(w);var S=ve(u,[a,i,s]),_=S.fields,O=S.formatter,W=l?{offset:F===0?10:-23,position:F===0?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:F===0?"end":"start"}};oe({chart:m,options:{type:"interval",xField:a,yField:Te,colorField:a,tooltipFields:(0,h.kJ)(_)&&_.concat([Me,Se]),mapping:{shape:"funnel",tooltip:O,color:o,style:v},label:f===!1?!1:b({},W,f),state:p}})}}),t}function da(t){var e=t.chart,n=t.index,r=t.options,a=r.conversionTag,i=r.isTransposed;((0,h.hj)(n)?[e]:e.views).forEach(function(o,s){var l=(0,h.U2)(o,["geometries","0","dataArray"],[]),u=(0,h.U2)(o,["options","data","length"]),c=(0,h.UI)(l,function(f){return(0,h.U2)(f,["0","nextPoints","0","x"])*u-.5}),d=function(f,v,p,y){var m=(n||s)===0?-1:1;return b({},y,{start:[c[v-1]||v-.5,f[Te]],end:[c[v-1]||v-.5,f[Te]+.05],text:i?{style:{textAlign:"start"}}:{offsetX:a!==!1?m*a.offsetX:0,style:{textAlign:(n||s)===0?"end":"start"}}})};lr(d)(b({},{chart:o,options:r}))})}function El(t){var e=t.chart;return e.once("beforepaint",function(){return da(t)}),t}function kl(t){return N(Ml,Tl,El)(t)}function Il(t){var e=t.chart,n=t.options,r=n.data,a=r===void 0?[]:r,i=n.yField,o=(0,h.u4)(a,function(u,c){return u+(c[i]||0)},0),s=(0,h.UT)(a,i)[i],l=(0,h.UI)(a,function(u,c){var d=[],f=[];if(u[ir]=(u[i]||0)/o,c){var v=a[c-1][en],p=a[c-1][nn];d[0]=v[3],f[0]=p[3],d[1]=v[2],f[1]=p[2]}else d[0]=-.5,f[0]=1,d[1]=.5,f[1]=1;return f[2]=f[1]-u[ir],d[2]=(f[2]+1)/4,f[3]=f[2],d[3]=-d[2],u[en]=d,u[nn]=f,u[Me]=(u[i]||0)/s,u[Se]=[(0,h.U2)(a,[c-1,i]),u[i]],u});return e.data(l),t}function Ol(t){var e=t.chart,n=t.options,r=n.xField,a=n.yField,i=n.color,o=n.tooltip,s=n.label,l=n.funnelStyle,u=n.state,c=ve(o,[r,a]),d=c.fields,f=c.formatter;return oe({chart:e,options:{type:"polygon",xField:en,yField:nn,colorField:r,tooltipFields:(0,h.kJ)(d)&&d.concat([Me,Se]),label:s,state:u,mapping:{tooltip:f,color:i,style:l}}}),t}function Pl(t){var e=t.chart,n=t.options,r=n.isTransposed;return e.coordinate({type:"rect",actions:r?[["transpose"],["reflect","x"]]:[]}),t}function Cl(t){var e=function(n,r,a,i){return(0,g.pi)((0,g.pi)({},i),{start:[n[en][1],n[nn][1]],end:[n[en][1]+.05,n[nn][1]]})};return lr(e)(t),t}function Rl(t){return N(Il,Ol,Pl,Cl)(t)}function Ll(t){var e,n=t.chart,r=t.options,a=r.data,i=a===void 0?[]:a,o=r.yField;return n.data(i),n.scale((e={},e[o]={sync:!0},e)),t}function zl(t){var e=t.chart,n=t.options,r=n.seriesField,a=n.isTransposed,i=n.showFacetTitle;return e.facet("rect",{fields:[r],padding:[a?0:32,10,0,10],showTitle:i,eachView:function(o,s){fa(b({},t,{chart:o,options:{data:s.data}}))}}),t}function Nl(t){return N(Ll,zl)(t)}var Ul=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.rendering=!1,n}return e.prototype.change=function(n){var r=this;if(!this.rendering){var a=n.seriesField,i=n.compareField,o=i?da:ca,s=this.context.view,l=a||i?s.views:[s];(0,h.UI)(l,function(u,c){var d=u.getController("annotation"),f=(0,h.hX)((0,h.U2)(d,["option"],[]),function(p){var y=p.name;return y!==ua});d.clear(!0),(0,h.S6)(f,function(p){typeof p=="object"&&u.annotation()[p.type](p)});var v=(0,h.U2)(u,["filteredData"],u.getOptions().data);o({chart:u,index:c,options:(0,g.pi)((0,g.pi)({},n),{filteredData:or(v,v,n)})}),u.filterData(v),r.rendering=!0,u.render(!0)})}this.rendering=!1},e}(D.aU),va="funnel-conversion-tag",sr="funnel-afterrender",ha={trigger:"afterrender",action:"".concat(va,":change")};(0,D.zl)(va,Ul),(0,D.w_)(sr,{start:[ha]});function Vl(t){var e=t.options,n=e.compareField,r=e.xField,a=e.yField,i=e.locale,o=e.funnelStyle,s=e.data,l=_n(i),u={label:n?{fields:[r,a,n,Me,Se],formatter:function(d){return"".concat(d[a])}}:{fields:[r,a,Me,Se],offset:0,position:"middle",formatter:function(d){return"".concat(d[r]," ").concat(d[a])}},tooltip:{title:r,formatter:function(d){return{name:d[r],value:d[a]}}},conversionTag:{formatter:function(d){return"".concat(l.get(["conversionTag","label"]),": ").concat(oa.apply(void 0,d[Se]))}}},c;return(n||o)&&(c=function(d){return b({},n&&{lineWidth:1,stroke:"#fff"},(0,h.mf)(o)?o(d):o)}),b({options:u},t,{options:{funnelStyle:c,data:(0,h.d9)(s)}})}function Wl(t){var e=t.options,n=e.compareField,r=e.dynamicHeight,a=e.seriesField;return a?Nl(t):n?kl(t):r?Rl(t):fa(t)}function Bl(t){var e,n=t.options,r=n.xAxis,a=n.yAxis,i=n.xField,o=n.yField;return N(qt((e={},e[i]=r,e[o]=a,e)))(t)}function Gl(t){var e=t.chart;return e.axis(!1),t}function Zl(t){var e=t.chart,n=t.options,r=n.legend;return r===!1?e.legend(!1):e.legend(r),t}function ql(t){var e=t.chart,n=t.options,r=n.interactions,a=n.dynamicHeight;return(0,h.S6)(r,function(i){i.enable===!1?e.removeInteraction(i.type):e.interaction(i.type,i.cfg||{})}),a?e.removeInteraction(sr):e.interaction(sr,{start:[(0,g.pi)((0,g.pi)({},ha),{arg:n})]}),t}function pa(t){return N(Vl,Wl,Bl,Gl,Yt,ql,Zl,It,At,Wt())(t)}var Hl=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="funnel",n}return e.getDefaultOptions=function(){return _l},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return pa},e.prototype.setState=function(n,r,a){a===void 0&&(a=!0);var i=A(this.chart);(0,h.S6)(i,function(o){r(o.getData())&&o.setState(n,a)})},e.prototype.getStates=function(){var n=A(this.chart),r=[];return(0,h.S6)(n,function(a){var i=a.getData(),o=a.getStates();(0,h.S6)(o,function(s){r.push({data:i,state:s,geometry:a.geometry,element:a})})}),r},e.CONVERSATION_FIELD=Se,e.PERCENT_FIELD=Me,e.TOTAL_PERCENT_FIELD=ir,e}(lt),kn,ur="range",ga="type",_e="percent",Xl="#f0f0f0",ya="indicator-view",xa="range-view",Yl={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(kn={},kn[ur]={sync:"v"},kn[_e]={sync:"v",tickCount:5,tickInterval:.2},kn),animation:!1};function $l(t,e){return t.map(function(n,r){var a;return a={},a[ur]=n-(t[r-1]||0),a[ga]="".concat(r),a[_e]=e,a})}function ma(t){var e;return[(e={},e[_e]=(0,h.uZ)(t,0,1),e)]}function Fa(t,e){var n=(0,h.U2)(e,["ticks"],[]),r=(0,h.dp)(n)?(0,h.jj)(n):[0,(0,h.uZ)(t,0,1),1];return r[0]||r.shift(),$l(r,t)}function jl(t){var e=t.chart,n=t.options,r=n.percent,a=n.range,i=n.radius,o=n.innerRadius,s=n.startAngle,l=n.endAngle,u=n.axis,c=n.indicator,d=n.gaugeStyle,f=n.type,v=n.meter,p=a.color,y=a.width;if(c){var m=ma(r),x=e.createView({id:ya});x.data(m),x.point().position("".concat(_e,"*1")).shape(c.shape||"gauge-indicator").customInfo({defaultColor:e.getTheme().defaultColor,indicator:c}),x.coordinate("polar",{startAngle:s,endAngle:l,radius:o*i}),x.axis(_e,u),x.scale(_e,U(u,nt))}var F=Fa(r,n.range),w=e.createView({id:xa});w.data(F);var S=(0,h.HD)(p)?[p,Xl]:p,_=ee({chart:w,options:{xField:"1",yField:ur,seriesField:ga,rawFields:[_e],isStack:!0,interval:{color:S,style:d,shape:f==="meter"?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:y,maxColumnWidth:y}}).ext,O=_.geometry;return O.customInfo({meter:v}),w.coordinate("polar",{innerRadius:o,radius:i,startAngle:s,endAngle:l}).transpose(),t}function Jl(t){var e;return N(qt((e={range:{min:0,max:1,maxLimit:1,minLimit:0}},e[_e]={},e)))(t)}function ba(t,e){var n=t.chart,r=t.options,a=r.statistic,i=r.percent;if(n.getController("annotation").clear(!0),a){var o=a.content,s=void 0;o&&(s=b({},{content:"".concat((i*100).toFixed(2),"%"),style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},o)),Mt(n,{statistic:(0,g.pi)((0,g.pi)({},a),{content:s})},{percent:i})}return e&&n.render(!0),t}function Kl(t){var e=t.chart,n=t.options,r=n.tooltip;return r?e.tooltip(b({showTitle:!1,showMarkers:!1,containerTpl:'
',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(a,i){var o=(0,h.U2)(i,[0,"data",_e],0);return"".concat((o*100).toFixed(2),"%")}},r)):e.tooltip(!1),t}function Ql(t){var e=t.chart;return e.legend(!1),t}function Sa(t){return N(At,It,jl,Jl,Kl,ba,zt,Wt(),Ql)(t)}(0,D.Fj)("point","gauge-indicator",{draw:function(t,e){var n=t.customInfo,r=n.indicator,a=n.defaultColor,i=r,o=i.pointer,s=i.pin,l=e.addGroup(),u=this.parsePoint({x:0,y:0});return o&&l.addShape("line",{name:"pointer",attrs:(0,g.pi)({x1:u.x,y1:u.y,x2:t.x,y2:t.y,stroke:a},o.style)}),s&&l.addShape("circle",{name:"pin",attrs:(0,g.pi)({x:u.x,y:u.y,stroke:a},s.style)}),l}}),(0,D.Fj)("interval","meter-gauge",{draw:function(t,e){var n=t.customInfo.meter,r=n===void 0?{}:n,a=r.steps,i=a===void 0?50:a,o=r.stepRatio,s=o===void 0?.5:o;i=i<1?1:i,s=(0,h.uZ)(s,0,1);var l=this.coordinate,u=l.startAngle,c=l.endAngle,d=0;if(s>0&&s<1){var f=c-u;d=f/i/(s/(1-s)+1-1/i)}for(var v=d/(1-s)*s,p=e.addGroup(),y=this.coordinate.getCenter(),m=this.coordinate.getRadius(),x=D.Zr.getAngle(t,this.coordinate),F=x.startAngle,w=x.endAngle,S=F;S1?l/(r-1):s.max),!n&&!r){var c=es(o);u=l/c}var d={},f=(0,h.vM)(i,a);(0,h.xb)(f)?(0,h.S6)(i,function(p){var y=p[e],m=_a(y,u,r),x="".concat(m[0],"-").concat(m[1]);(0,h.wH)(d,x)||(d[x]={range:m,count:0}),d[x].count+=1}):Object.keys(f).forEach(function(p){(0,h.S6)(f[p],function(y){var m=y[e],x=_a(m,u,r),F="".concat(x[0],"-").concat(x[1]),w="".concat(F,"-").concat(p);(0,h.wH)(d,w)||(d[w]={range:x,count:0},d[w][a]=p),d[w].count+=1})});var v=[];return(0,h.S6)(d,function(p){v.push(p)}),v}var In="range",rn="count",ns=b({},lt.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});function rs(t){var e=t.chart,n=t.options,r=n.data,a=n.binField,i=n.binNumber,o=n.binWidth,s=n.color,l=n.stackField,u=n.legend,c=n.columnStyle,d=wa(r,a,o,i,l);e.data(d);var f=b({},t,{options:{xField:In,yField:rn,seriesField:l,isStack:!0,interval:{color:s,style:c}}});return ee(f),u&&l?e.legend(l,u):e.legend(!1),t}function as(t){var e,n=t.options,r=n.xAxis,a=n.yAxis;return N(qt((e={},e[In]=r,e[rn]=a,e)))(t)}function is(t){var e=t.chart,n=t.options,r=n.xAxis,a=n.yAxis;return r===!1?e.axis(In,!1):e.axis(In,r),a===!1?e.axis(rn,!1):e.axis(rn,a),t}function os(t){var e=t.chart,n=t.options,r=n.label,a=Et(e,"interval");if(!r)a.label(!1);else{var i=r.callback,o=(0,g._T)(r,["callback"]);a.label({fields:[rn],callback:i,cfg:P(o)})}return t}function Aa(t){return N(At,ue("columnStyle"),rs,as,is,De,os,Yt,zt,It)(t)}var ls=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="histogram",n}return e.getDefaultOptions=function(){return ns},e.prototype.changeData=function(n){this.updateOption({data:n});var r=this.options,a=r.binField,i=r.binNumber,o=r.binWidth,s=r.stackField;this.chart.changeData(wa(n,a,o,i,s))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Aa},e}(lt),ss=b({},lt.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left",radio:{}},isStack:!1}),us=function(t){(0,g.ZT)(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.active=function(){var n=this.getView(),r=this.context.event;if(r.data){var a=r.data.items,i=n.geometries.filter(function(o){return o.type==="point"});(0,h.S6)(i,function(o){(0,h.S6)(o.elements,function(s){var l=(0,h.cx)(a,function(u){return u.data===s.data})!==-1;s.setState("active",l)})})}},e.prototype.reset=function(){var n=this.getView(),r=n.geometries.filter(function(a){return a.type==="point"});(0,h.S6)(r,function(a){(0,h.S6)(a.elements,function(i){i.setState("active",!1)})})},e.prototype.getView=function(){return this.context.view},e}(D.Mx);(0,D.zl)("marker-active",us),(0,D.w_)("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]});var Da=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="line",n}return e.getDefaultOptions=function(){return ss},e.prototype.changeData=function(n){this.updateOption({data:n});var r=this,a=r.chart,i=r.options;Mn({chart:a,options:i}),this.chart.changeData(n)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return na},e}(lt),Ma=b({},lt.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}}),cs=[1,0,0,0,1,0,0,0,1];function cr(t,e){var n=e?(0,g.ev)([],e,!0):(0,g.ev)([],cs,!0);return D.Zr.transform(n,t)}var fs=function(t){(0,g.ZT)(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getActiveElements=function(){var n=D.Zr.getDelegationObject(this.context);if(n){var r=this.context.view,a=n.component,i=n.item,o=a.get("field");if(o){var s=r.geometries[0].elements;return s.filter(function(l){return l.getModel().data[o]===i.value})}}return[]},e.prototype.getActiveElementLabels=function(){var n=this.context.view,r=this.getActiveElements(),a=n.geometries[0].labelsContainer.getChildren();return a.filter(function(i){return r.find(function(o){return(0,h.Xy)(o.getData(),i.get("data"))})})},e.prototype.transfrom=function(n){n===void 0&&(n=7.5);var r=this.getActiveElements(),a=this.getActiveElementLabels();r.forEach(function(i,o){var s=a[o],l=i.geometry.coordinate;if(l.isPolar&&l.isTransposed){var u=D.Zr.getAngle(i.getModel(),l),c=u.startAngle,d=u.endAngle,f=(c+d)/2,v=n,p=v*Math.cos(f),y=v*Math.sin(f);i.shape.setMatrix(cr([["t",p,y]])),s.setMatrix(cr([["t",p,y]]))}})},e.prototype.active=function(){this.transfrom()},e.prototype.reset=function(){this.transfrom(0)},e}(D.aU);function ds(t){var e=t.event,n,r=e.target;return r&&(n=r.get("element")),n}var vs=function(t){(0,g.ZT)(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getAnnotations=function(n){var r=n||this.context.view;return r.getController("annotation").option},e.prototype.getInitialAnnotation=function(){return this.initialAnnotation},e.prototype.init=function(){var n=this,r=this.context.view;r.removeInteraction("tooltip"),r.on("afterchangesize",function(){var a=n.getAnnotations(r);n.initialAnnotation=a})},e.prototype.change=function(n){var r=this.context,a=r.view,i=r.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var o=(0,h.U2)(i,["data","data"]);if(i.type.match("legend-item")){var s=D.Zr.getDelegationObject(this.context),l=a.getGroupedFields()[0];if(s&&l){var u=s.item;o=a.getData().find(function(v){return v[l]===u.value})}}if(o){var c=(0,h.U2)(n,"annotations",[]),d=(0,h.U2)(n,"statistic",{});a.getController("annotation").clear(!0),(0,h.S6)(c,function(v){typeof v=="object"&&a.annotation()[v.type](v)}),xt(a,{statistic:d,plotType:"pie"},o),a.render(!0)}var f=ds(this.context);f&&f.shape.toFront()},e.prototype.reset=function(){var n=this.context.view,r=n.getController("annotation");r.clear(!0);var a=this.getInitialAnnotation();(0,h.S6)(a,function(i){n.annotation()[i.type](i)}),n.render(!0)},e}(D.aU),Ta="pie-statistic";(0,D.zl)(Ta,vs),(0,D.w_)("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),(0,D.zl)("pie-legend",fs),(0,D.w_)("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]});function hs(t,e){var n=null;return(0,h.S6)(t,function(r){typeof r[e]=="number"&&(n+=r[e])}),n}function ps(t,e){var n;switch(t){case"inner":return n="-30%",(0,h.HD)(e)&&e.endsWith("%")?parseFloat(e)*.01>0?n:e:e<0?e:n;case"outer":return n=12,(0,h.HD)(e)&&e.endsWith("%")?parseFloat(e)*.01<0?n:e:e>0?e:n;default:return e}}function On(t,e){return(0,h.yW)(Z(t,e),function(n){return n[e]===0})}function gs(t){var e=t.chart,n=t.options,r=n.data,a=n.angleField,i=n.colorField,o=n.color,s=n.pieStyle,l=n.shape,u=Z(r,a);if(On(u,a)){var c="$$percentage$$";u=u.map(function(f){var v;return(0,g.pi)((0,g.pi)({},f),(v={},v[c]=1/u.length,v))}),e.data(u);var d=b({},t,{options:{xField:"1",yField:c,seriesField:i,isStack:!0,interval:{color:o,shape:l,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}});ee(d)}else{e.data(u);var d=b({},t,{options:{xField:"1",yField:a,seriesField:i,isStack:!0,interval:{color:o,shape:l,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}});ee(d)}return t}function ys(t){var e,n=t.chart,r=t.options,a=r.meta,i=r.colorField,o=b({},a);return n.scale(o,(e={},e[i]={type:"cat"},e)),t}function xs(t){var e=t.chart,n=t.options,r=n.radius,a=n.innerRadius,i=n.startAngle,o=n.endAngle;return e.coordinate({type:"theta",cfg:{radius:r,innerRadius:a,startAngle:i,endAngle:o}}),t}function ms(t){var e=t.chart,n=t.options,r=n.label,a=n.colorField,i=n.angleField,o=e.geometries[0];if(!r)o.label(!1);else{var s=r.callback,l=(0,g._T)(r,["callback"]),u=P(l);if(u.content){var c=u.content;u.content=function(p,y,m){var x=p[a],F=p[i],w=e.getScaleByField(i),S=w==null?void 0:w.scale(F);return(0,h.mf)(c)?c((0,g.pi)((0,g.pi)({},p),{percent:S}),y,m):(0,h.HD)(c)?Vt(c,{value:F,name:x,percentage:(0,h.hj)(S)&&!(0,h.UM)(F)?"".concat((S*100).toFixed(2),"%"):null}):c}}var d={inner:"",outer:"pie-outer",spider:"pie-spider"},f=u.type?d[u.type]:"pie-outer",v=u.layout?(0,h.kJ)(u.layout)?u.layout:[u.layout]:[];u.layout=(f?[{type:f}]:[]).concat(v),o.label({fields:a?[i,a]:[i],callback:s,cfg:(0,g.pi)((0,g.pi)({},u),{offset:ps(u.type,u.offset),type:"pie"})})}return t}function Ea(t){var e=t.innerRadius,n=t.statistic,r=t.angleField,a=t.colorField,i=t.meta,o=t.locale,s=_n(o);if(e&&n){var l=b({},Ma.statistic,n),u=l.title,c=l.content;return u!==!1&&(u=b({},{formatter:function(d){var f=d?d[a]:(0,h.UM)(u.content)?s.get(["statistic","total"]):u.content,v=(0,h.U2)(i,[a,"formatter"])||function(p){return p};return v(f)}},u)),c!==!1&&(c=b({},{formatter:function(d,f){var v=d?d[r]:hs(f,r),p=(0,h.U2)(i,[r,"formatter"])||function(y){return y};return d||(0,h.UM)(c.content)?p(v):c.content}},c)),b({},{statistic:{title:u,content:c}},t)}return t}function ka(t){var e=t.chart,n=t.options,r=Ea(n),a=r.innerRadius,i=r.statistic;return e.getController("annotation").clear(!0),N(Wt())(t),a&&i&&xt(e,{statistic:i,plotType:"pie"}),t}function Fs(t){var e=t.chart,n=t.options,r=n.tooltip,a=n.colorField,i=n.angleField,o=n.data;if(r===!1)e.tooltip(r);else if(e.tooltip(b({},r,{shared:!1})),On(o,i)){var s=(0,h.U2)(r,"fields"),l=(0,h.U2)(r,"formatter");(0,h.xb)((0,h.U2)(r,"fields"))&&(s=[a,i],l=l||function(u){return{name:u[a],value:(0,h.BB)(u[i])}}),e.geometries[0].tooltip(s.join("*"),Ge(s,l))}return t}function bs(t){var e=t.chart,n=t.options,r=Ea(n),a=r.interactions,i=r.statistic,o=r.annotations;return(0,h.S6)(a,function(s){var l,u;if(s.enable===!1)e.removeInteraction(s.type);else if(s.type==="pie-statistic-active"){var c=[];!((l=s.cfg)===null||l===void 0)&&l.start||(c=[{trigger:"element:mouseenter",action:"".concat(Ta,":change"),arg:{statistic:i,annotations:o}}]),(0,h.S6)((u=s.cfg)===null||u===void 0?void 0:u.start,function(d){c.push((0,g.pi)((0,g.pi)({},d),{arg:{statistic:i,annotations:o}}))}),e.interaction(s.type,b({},s.cfg,{start:c}))}else e.interaction(s.type,s.cfg||{})}),t}function Ia(t){return N(ue("pieStyle"),gs,ys,At,xs,Ie,Fs,ms,De,ka,bs,It)(t)}var Oa=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="pie",n}return e.getDefaultOptions=function(){return Ma},e.prototype.changeData=function(n){this.chart.emit(D.ld.BEFORE_CHANGE_DATA,D.ju.fromData(this.chart,D.ld.BEFORE_CHANGE_DATA,null));var r=this.options,a=this.options.angleField,i=Z(r.data,a),o=Z(n,a);On(i,a)||On(o,a)?this.update({data:n}):(this.updateOption({data:n}),this.chart.data(o),ka({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(D.ld.AFTER_CHANGE_DATA,D.ju.fromData(this.chart,D.ld.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Ia},e}(lt),Pa=["#FAAD14","#E8EDF3"],Ss={percent:.2,color:Pa,animation:{}};function fr(t){var e=(0,h.uZ)(R(t)?t:0,0,1);return[{current:"".concat(e),type:"current",percent:e},{current:"".concat(e),type:"target",percent:1}]}function Ca(t){var e=t.chart,n=t.options,r=n.percent,a=n.progressStyle,i=n.color,o=n.barWidthRatio;e.data(fr(r));var s=b({},t,{options:{xField:"current",yField:"percent",seriesField:"type",widthRatio:o,interval:{style:a,color:(0,h.HD)(i)?[i,Pa[1]]:i},args:{zIndexReversed:!0,sortZIndex:!0}}});return ee(s),e.tooltip(!1),e.axis(!1),e.legend(!1),t}function _s(t){var e=t.chart;return e.coordinate("rect").transpose(),t}function Ra(t){return N(Ca,qt({}),_s,It,At,Wt())(t)}var ws=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="process",n}return e.getDefaultOptions=function(){return Ss},e.prototype.changeData=function(n){this.updateOption({percent:n}),this.chart.changeData(fr(n))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Ra},e}(lt);function As(t){var e=t.chart,n=t.options,r=n.innerRadius,a=n.radius;return e.coordinate("theta",{innerRadius:r,radius:a}),t}function La(t,e){var n=t.chart,r=t.options,a=r.innerRadius,i=r.statistic,o=r.percent,s=r.meta;if(n.getController("annotation").clear(!0),a&&i){var l=(0,h.U2)(s,["percent","formatter"])||function(c){return"".concat((c*100).toFixed(2),"%")},u=i.content;u&&(u=b({},u,{content:(0,h.UM)(u.content)?l(o):u.content})),xt(n,{statistic:(0,g.pi)((0,g.pi)({},i),{content:u}),plotType:"ring-progress"},{percent:o})}return e&&n.render(!0),t}function za(t){return N(Ca,qt({}),As,La,It,At,Wt())(t)}var Ds={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}},Ms=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="ring-process",n}return e.getDefaultOptions=function(){return Ds},e.prototype.changeData=function(n){this.chart.emit(D.ld.BEFORE_CHANGE_DATA,D.ju.fromData(this.chart,D.ld.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:n}),this.chart.data(fr(n)),La({chart:this.chart,options:this.options},!0),this.chart.emit(D.ld.AFTER_CHANGE_DATA,D.ju.fromData(this.chart,D.ld.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return za},e}(lt),Re=L(28744),Ts={exp:Re.regressionExp,linear:Re.regressionLinear,loess:Re.regressionLoess,log:Re.regressionLog,poly:Re.regressionPoly,pow:Re.regressionPow,quad:Re.regressionQuad};function Es(t,e){var n=10,r={regionStyle:[{position:{start:[t,"max"],end:["max",e]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[t,e]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",e],end:[t,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[t,e],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",e],offsetX:-n,offsetY:-n,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:n,offsetY:-n,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:n,offsetY:n,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",e],offsetX:-n,offsetY:n,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]};return r}var ks=function(t,e){var n=e.view,r=e.options,a=r.xField,i=r.yField,o=n.getScaleByField(a),s=n.getScaleByField(i),l=t.map(function(u){return n.getCoordinate().convert({x:o.scale(u[0]),y:s.scale(u[1])})});return pt(l,!1)},Is=function(t){var e=t.options,n=e.xField,r=e.yField,a=e.data,i=e.regressionLine,o=i.type,s=o===void 0?"linear":o,l=i.algorithm,u=i.equation,c,d=null;if(l)c=(0,h.kJ)(l)?l:l(a),d=u;else{var f=Ts[s]().x(function(v){return v[n]}).y(function(v){return v[r]});c=f(a),d=Ps(s,c)}return[ks(c,t),d]},Os=function(t){var e,n=t.meta,r=n===void 0?{}:n,a=t.xField,i=t.yField,o=t.data,s=o[0][a],l=o[0][i],u=s>0,c=l>0;function d(f,v){var p=(0,h.U2)(r,[f]);function y(x){return(0,h.U2)(p,x)}var m={};return v==="x"?((0,h.hj)(s)&&((0,h.hj)(y("min"))||(m.min=u?0:s*2),(0,h.hj)(y("max"))||(m.max=u?s*2:0)),m):((0,h.hj)(l)&&((0,h.hj)(y("min"))||(m.min=c?0:l*2),(0,h.hj)(y("max"))||(m.max=c?l*2:0)),m)}return(0,g.pi)((0,g.pi)({},r),(e={},e[a]=(0,g.pi)((0,g.pi)({},r[a]),d(a,"x")),e[i]=(0,g.pi)((0,g.pi)({},r[i]),d(i,"y")),e))};function Ps(t,e){var n,r,a,i=function(u,c){return c===void 0&&(c=4),Math.round(u*Math.pow(10,c))/Math.pow(10,c)},o=function(u){return Number.isFinite(u)?i(u):"?"};switch(t){case"linear":return"y = ".concat(o(e.a),"x + ").concat(o(e.b),", R^2 = ").concat(o(e.rSquared));case"exp":return"y = ".concat(o(e.a),"e^(").concat(o(e.b),"x), R^2 = ").concat(o(e.rSquared));case"log":return"y = ".concat(o(e.a),"ln(x) + ").concat(o(e.b),", R^2 = ").concat(o(e.rSquared));case"quad":return"y = ".concat(o(e.a),"x^2 + ").concat(o(e.b),"x + ").concat(o(e.c),", R^2 = ").concat(o(e.rSquared));case"poly":for(var s="y = ".concat(o((n=e.coefficients)===null||n===void 0?void 0:n[0])," + ").concat(o((r=e.coefficients)===null||r===void 0?void 0:r[1]),"x + ").concat(o((a=e.coefficients)===null||a===void 0?void 0:a[2]),"x^2"),l=3;l
',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},Js={appendPadding:2,tooltip:(0,g.pi)({},Za),animation:{}};function Ks(t){var e=t.chart,n=t.options,r=n.data,a=n.color,i=n.areaStyle,o=n.point,s=n.line,l=o==null?void 0:o.state,u=Le(r);e.data(u);var c=b({},t,{options:{xField:on,yField:qe,area:{color:a,style:i},line:s,point:o}}),d=b({},c,{options:{tooltip:!1}}),f=b({},c,{options:{tooltip:!1,state:l}});return An(c),Ze(d),ce(f),e.axis(!1),e.legend(!1),t}function He(t){var e,n,r=t.options,a=r.xAxis,i=r.yAxis,o=r.data,s=Le(o);return N(qt((e={},e[on]=a,e[qe]=i,e),(n={},n[on]={type:"cat"},n[qe]=Pt(s,qe),n)))(t)}function qa(t){return N(ue("areaStyle"),Ks,He,Yt,At,It,Wt())(t)}var Qs={appendPadding:2,tooltip:(0,g.pi)({},Za),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},tu=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="tiny-area",n}return e.getDefaultOptions=function(){return Qs},e.prototype.changeData=function(n){this.updateOption({data:n});var r=this,a=r.chart,i=r.options;He({chart:a,options:i}),a.changeData(Le(n))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return qa},e}(lt);function eu(t){var e=t.chart,n=t.options,r=n.data,a=n.color,i=n.columnStyle,o=n.columnWidthRatio,s=Le(r);e.data(s);var l=b({},t,{options:{xField:on,yField:qe,widthRatio:o,interval:{style:i,color:a}}});return ee(l),e.axis(!1),e.legend(!1),e.interaction("element-active"),t}function Ha(t){return N(At,ue("columnStyle"),eu,He,Yt,It,Wt())(t)}var nu={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return"".concat((0,h.U2)(e,[0,"data","y"],0))},containerTpl:'
',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},ru={appendPadding:2,tooltip:(0,g.pi)({},nu),animation:{}},au=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="tiny-column",n}return e.getDefaultOptions=function(){return ru},e.prototype.changeData=function(n){this.updateOption({data:n});var r=this,a=r.chart,i=r.options;He({chart:a,options:i}),a.changeData(Le(n))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Ha},e}(lt);function iu(t){var e=t.chart,n=t.options,r=n.data,a=n.color,i=n.lineStyle,o=n.point,s=o==null?void 0:o.state,l=Le(r);e.data(l);var u=b({},t,{options:{xField:on,yField:qe,line:{color:a,style:i},point:o}}),c=b({},u,{options:{tooltip:!1,state:s}});return Ze(u),ce(c),e.axis(!1),e.legend(!1),t}function Xa(t){return N(iu,He,At,Yt,It,Wt())(t)}var ou=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="tiny-line",n}return e.getDefaultOptions=function(){return Js},e.prototype.changeData=function(n){this.updateOption({data:n});var r=this,a=r.chart,i=r.options;He({chart:a,options:i}),a.changeData(Le(n))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Xa},e}(lt),lu={line:na,pie:Ia,column:En,bar:la,area:ra,gauge:Sa,"tiny-line":Xa,"tiny-column":Ha,"tiny-area":qa,"ring-progress":za,progress:Ra,scatter:Ua,histogram:Aa,funnel:pa,stock:Ga},su={line:Da,pie:Oa,column:sa,bar:bl,area:Ko,gauge:ts,"tiny-line":ou,"tiny-column":au,"tiny-area":tu,"ring-progress":Ms,progress:ws,scatter:Bs,histogram:ls,funnel:Hl,stock:js},uu={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function dr(t,e,n){var r=su[t];if(!r){console.error("could not find ".concat(t," plot"));return}var a=lu[t];a({chart:e,options:b({},r.getDefaultOptions(),(0,h.U2)(uu,t,{}),n)})}function cu(t){var e=t.chart,n=t.options,r=n.views,a=n.legend;return(0,h.S6)(r,function(i){var o=i.region,s=i.data,l=i.meta,u=i.axes,c=i.coordinate,d=i.interactions,f=i.annotations,v=i.tooltip,p=i.geometries,y=e.createView({region:o});y.data(s);var m={};u&&(0,h.S6)(u,function(x,F){m[F]=U(x,nt)}),m=b({},l,m),y.scale(m),u?(0,h.S6)(u,function(x,F){y.axis(F,x)}):y.axis(!1),y.coordinate(c),(0,h.S6)(p,function(x){var F=oe({chart:y,options:x}).ext,w=x.adjust;w&&F.geometry.adjust(w)}),(0,h.S6)(d,function(x){x.enable===!1?y.removeInteraction(x.type):y.interaction(x.type,x.cfg)}),(0,h.S6)(f,function(x){y.annotation()[x.type]((0,g.pi)({},x))}),typeof i.animation=="boolean"?y.animate(!1):(y.animate(!0),(0,h.S6)(y.geometries,function(x){x.animate(i.animation)})),v&&(y.interaction("tooltip"),y.tooltip(v))}),a?(0,h.S6)(a,function(i,o){e.legend(o,i)}):e.legend(!1),e.tooltip(n.tooltip),t}function fu(t){var e=t.chart,n=t.options,r=n.plots,a=n.data,i=a===void 0?[]:a;return(0,h.S6)(r,function(o){var s=o.type,l=o.region,u=o.options,c=u===void 0?{}:u,d=o.top,f=c.tooltip;if(d){dr(s,e,(0,g.pi)((0,g.pi)({},c),{data:i}));return}var v=e.createView((0,g.pi)({region:l},U(c,Kr)));f&&v.interaction("tooltip"),dr(s,v,(0,g.pi)({data:i},c))}),t}function du(t){var e=t.chart,n=t.options;return e.option("slider",n.slider),t}function vu(t){return N(It,cu,fu,zt,It,At,Yt,du,Wt())(t)}function hu(t,e){var n=t.getModel(),r=n.data,a;return(0,h.kJ)(r)?a=r[0][e]:a=r[e],a}function pu(t){var e=Lt(t);(0,h.S6)(e,function(n){n.hasState("active")&&n.setState("active",!1),n.hasState("selected")&&n.setState("selected",!1),n.hasState("inactive")&&n.setState("inactive",!1)})}var gu=function(t){(0,g.ZT)(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getAssociationItems=function(n,r){var a,i=this.context.event,o=r||{},s=o.linkField,l=o.dim,u=[];if(!((a=i.data)===null||a===void 0)&&a.data){var c=i.data.data;(0,h.S6)(n,function(d){var f,v,p=s;if(l==="x"?p=d.getXScale().field:l==="y"?p=(f=d.getYScales().find(function(m){return m.field===p}))===null||f===void 0?void 0:f.field:p||(p=(v=d.getGroupScales()[0])===null||v===void 0?void 0:v.field),!!p){var y=(0,h.UI)(Lt(d),function(m){var x=!1,F=!1,w=(0,h.kJ)(c)?(0,h.U2)(c[0],p):(0,h.U2)(c,p);return hu(m,p)===w?x=!0:F=!0,{element:m,view:d,active:x,inactive:F}});u.push.apply(u,y)}})}return u},e.prototype.showTooltip=function(n){var r=Kt(this.context.view),a=this.getAssociationItems(r,n);(0,h.S6)(a,function(i){if(i.active){var o=i.element.shape.getCanvasBBox();i.view.showTooltip({x:o.minX+o.width/2,y:o.minY+o.height/2})}})},e.prototype.hideTooltip=function(){var n=Kt(this.context.view);(0,h.S6)(n,function(r){r.hideTooltip()})},e.prototype.active=function(n){var r=Ht(this.context.view),a=this.getAssociationItems(r,n);(0,h.S6)(a,function(i){var o=i.active,s=i.element;o&&s.setState("active",!0)})},e.prototype.selected=function(n){var r=Ht(this.context.view),a=this.getAssociationItems(r,n);(0,h.S6)(a,function(i){var o=i.active,s=i.element;o&&s.setState("selected",!0)})},e.prototype.highlight=function(n){var r=Ht(this.context.view),a=this.getAssociationItems(r,n);(0,h.S6)(a,function(i){var o=i.inactive,s=i.element;o&&s.setState("inactive",!0)})},e.prototype.reset=function(){var n=Ht(this.context.view);(0,h.S6)(n,function(r){pu(r)})},e}(D.aU);(0,D.zl)("association",gu),(0,D.w_)("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),(0,D.w_)("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),(0,D.w_)("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),(0,D.w_)("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});var yu=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="mix",n}return e.prototype.getSchemaAdaptor=function(){return vu},e}(lt),Xe;(function(t){t.DEV="DEV",t.BETA="BETA",t.STABLE="STABLE"})(Xe||(Xe={}));function xu(t,e){console.warn(t===Xe.DEV?"Plot '".concat(e,"' is in DEV stage, just give us issues."):t===Xe.BETA?"Plot '".concat(e,"' is in BETA stage, DO NOT use it in production env."):t===Xe.STABLE?"Plot '".concat(e,`' is in STABLE stage, import it by "import { `).concat(e,` } from '@antv/g2plot'".`):"invalid Stage type.")}var Qp=function(){function t(){}return Object.defineProperty(t,"MultiView",{get:function(){return xu(Xe.STABLE,"MultiView"),yu},enumerable:!1,configurable:!0}),t}(),ye="first-axes-view",xe="second-axes-view",ze="series-field-key";function Ya(t,e,n,r,a){var i=[];e.forEach(function(d){r.forEach(function(f){var v,p=(v={},v[t]=f[t],v[n]=d,v[d]=f[d],v);i.push(p)})});var o=Object.values((0,h.vM)(i,n)),s=o[0],l=s===void 0?[]:s,u=o[1],c=u===void 0?[]:u;return a?[l.reverse(),c.reverse()]:[l,c]}function we(t){return t!=="vertical"}function mu(t,e,n){var r=e[0],a=e[1],i=r.autoPadding,o=a.autoPadding,s=t.__axisPosition,l=s.layout,u=s.position;if(we(l)&&u==="top"&&(r.autoPadding=n.instance(i.top,0,i.bottom,i.left),a.autoPadding=n.instance(o.top,i.left,o.bottom,0)),we(l)&&u==="bottom"&&(r.autoPadding=n.instance(i.top,i.right/2+5,i.bottom,i.left),a.autoPadding=n.instance(o.top,o.right,o.bottom,i.right/2+5)),!we(l)&&u==="bottom"){var c=i.left>=o.left?i.left:o.left;r.autoPadding=n.instance(i.top,i.right,i.bottom/2+5,c),a.autoPadding=n.instance(i.bottom/2+5,o.right,o.bottom,c)}if(!we(l)&&u==="top"){var c=i.left>=o.left?i.left:o.left;r.autoPadding=n.instance(i.top,i.right,0,c),a.autoPadding=n.instance(0,o.right,i.top,c)}}function Fu(t){var e=t.chart,n=t.options,r=n.data,a=n.xField,i=n.yField,o=n.color,s=n.barStyle,l=n.widthRatio,u=n.legend,c=n.layout,d=Ya(a,i,ze,r,we(c));u?e.legend(ze,u):u===!1&&e.legend(!1);var f,v,p=d[0],y=d[1];we(c)?(f=e.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:ye}),f.coordinate().transpose().reflect("x"),v=e.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:xe}),v.coordinate().transpose(),f.data(p),v.data(y)):(f=e.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:ye}),v=e.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:xe}),v.coordinate().reflect("y"),f.data(p),v.data(y));var m=b({},t,{chart:f,options:{widthRatio:l,xField:a,yField:i[0],seriesField:ze,interval:{color:o,style:s}}});ee(m);var x=b({},t,{chart:v,options:{xField:a,yField:i[1],seriesField:ze,widthRatio:l,interval:{color:o,style:s}}});return ee(x),t}function bu(t){var e,n,r,a=t.options,i=t.chart,o=a.xAxis,s=a.yAxis,l=a.xField,u=a.yField,c=B(i,ye),d=B(i,xe),f={};return(0,h.XP)((a==null?void 0:a.meta)||{}).map(function(v){(0,h.U2)(a==null?void 0:a.meta,[v,"alias"])&&(f[v]=a.meta[v].alias)}),i.scale((e={},e[ze]={sync:!0,formatter:function(v){return(0,h.U2)(f,v,v)}},e)),qt((n={},n[l]=o,n[u[0]]=s[u[0]],n))(b({},t,{chart:c})),qt((r={},r[l]=o,r[u[1]]=s[u[1]],r))(b({},t,{chart:d})),t}function Su(t){var e=t.chart,n=t.options,r=n.xAxis,a=n.yAxis,i=n.xField,o=n.yField,s=n.layout,l=B(e,ye),u=B(e,xe);return(r==null?void 0:r.position)==="bottom"?u.axis(i,(0,g.pi)((0,g.pi)({},r),{label:{formatter:function(){return""}}})):u.axis(i,!1),r===!1?l.axis(i,!1):l.axis(i,(0,g.pi)({position:we(s)?"top":"bottom"},r)),a===!1?(l.axis(o[0],!1),u.axis(o[1],!1)):(l.axis(o[0],a[o[0]]),u.axis(o[1],a[o[1]])),e.__axisPosition={position:l.getOptions().axes[i].position,layout:s},t}function _u(t){var e=t.chart;return zt(b({},t,{chart:B(e,ye)})),zt(b({},t,{chart:B(e,xe)})),t}function wu(t){var e=t.chart,n=t.options,r=n.yField,a=n.yAxis;return Oe(b({},t,{chart:B(e,ye),options:{yAxis:a[r[0]]}})),Oe(b({},t,{chart:B(e,xe),options:{yAxis:a[r[1]]}})),t}function Au(t){var e=t.chart;return At(b({},t,{chart:B(e,ye)})),At(b({},t,{chart:B(e,xe)})),At(t),t}function Du(t){var e=t.chart;return It(b({},t,{chart:B(e,ye)})),It(b({},t,{chart:B(e,xe)})),t}function Mu(t){var e=this,n,r,a=t.chart,i=t.options,o=i.label,s=i.yField,l=i.layout,u=B(a,ye),c=B(a,xe),d=Et(u,"interval"),f=Et(c,"interval");if(!o)d.label(!1),f.label(!1);else{var v=o.callback,p=(0,g._T)(o,["callback"]);p.position||(p.position="middle"),p.offset===void 0&&(p.offset=2);var y=(0,g.pi)({},p);if(we(l)){var m=((n=y.style)===null||n===void 0?void 0:n.textAlign)||(p.position==="middle"?"center":"left");p.style=b({},p.style,{textAlign:m});var x={left:"right",right:"left",center:"center"};y.style=b({},y.style,{textAlign:x[m]})}else{var F={top:"bottom",bottom:"top",middle:"middle"};typeof p.position=="string"?p.position=F[p.position]:typeof p.position=="function"&&(p.position=function(){for(var _=[],O=0;O1?"".concat(e,"_").concat(n):"".concat(e)}function Ka(t){var e=t.data,n=t.xField,r=t.measureField,a=t.rangeField,i=t.targetField,o=t.layout,s=[],l=[];e.forEach(function(d,f){var v=[d[a]].flat();v.sort(function(m,x){return m-x}),v.forEach(function(m,x){var F,w=x===0?m:v[x]-v[x-1];s.push((F={rKey:"".concat(a,"_").concat(x)},F[n]=n?d[n]:String(f),F[a]=w,F))});var p=[d[r]].flat();p.forEach(function(m,x){var F;s.push((F={mKey:Ja(p,r,x)},F[n]=n?d[n]:String(f),F[r]=m,F))});var y=[d[i]].flat();y.forEach(function(m,x){var F;s.push((F={tKey:Ja(y,i,x)},F[n]=n?d[n]:String(f),F[i]=m,F))}),l.push(d[a],d[r],d[i])});var u=Math.min.apply(Math,l.flat(1/0)),c=Math.max.apply(Math,l.flat(1/0));return u=u>0?0:u,o==="vertical"&&s.reverse(),{min:u,max:c,ds:s}}function Nu(t){var e=t.chart,n=t.options,r=n.bulletStyle,a=n.targetField,i=n.rangeField,o=n.measureField,s=n.xField,l=n.color,u=n.layout,c=n.size,d=n.label,f=Ka(n),v=f.min,p=f.max,y=f.ds;e.data(y);var m=b({},t,{options:{xField:s,yField:i,seriesField:"rKey",isStack:!0,label:(0,h.U2)(d,"range"),interval:{color:(0,h.U2)(l,"range"),style:(0,h.U2)(r,"range"),size:(0,h.U2)(c,"range")}}});ee(m),e.geometries[0].tooltip(!1);var x=b({},t,{options:{xField:s,yField:o,seriesField:"mKey",isStack:!0,label:(0,h.U2)(d,"measure"),interval:{color:(0,h.U2)(l,"measure"),style:(0,h.U2)(r,"measure"),size:(0,h.U2)(c,"measure")}}});ee(x);var F=b({},t,{options:{xField:s,yField:a,seriesField:"tKey",label:(0,h.U2)(d,"target"),point:{color:(0,h.U2)(l,"target"),style:(0,h.U2)(r,"target"),size:(0,h.mf)((0,h.U2)(c,"target"))?function(w){return(0,h.U2)(c,"target")(w)/2}:(0,h.U2)(c,"target")/2,shape:u==="horizontal"?"line":"hyphen"}}});return ce(F),u==="horizontal"&&e.coordinate().transpose(),(0,g.pi)((0,g.pi)({},t),{ext:{data:{min:v,max:p}}})}function Qa(t){var e,n,r=t.options,a=t.ext,i=r.xAxis,o=r.yAxis,s=r.targetField,l=r.rangeField,u=r.measureField,c=r.xField,d=a.data;return N(qt((e={},e[c]=i,e[u]=o,e),(n={},n[u]={min:d==null?void 0:d.min,max:d==null?void 0:d.max,sync:!0},n[s]={sync:"".concat(u)},n[l]={sync:"".concat(u)},n)))(t)}function Uu(t){var e=t.chart,n=t.options,r=n.xAxis,a=n.yAxis,i=n.xField,o=n.measureField,s=n.rangeField,l=n.targetField;return e.axis("".concat(s),!1),e.axis("".concat(l),!1),r===!1?e.axis("".concat(i),!1):e.axis("".concat(i),r),a===!1?e.axis("".concat(o),!1):e.axis("".concat(o),a),t}function Vu(t){var e=t.chart,n=t.options,r=n.legend;return e.removeInteraction("legend-filter"),e.legend(r),e.legend("rKey",!1),e.legend("mKey",!1),e.legend("tKey",!1),t}function Wu(t){var e=t.chart,n=t.options,r=n.label,a=n.measureField,i=n.targetField,o=n.rangeField,s=e.geometries,l=s[0],u=s[1],c=s[2];return(0,h.U2)(r,"range")?l.label("".concat(o),(0,g.pi)({layout:[{type:"limit-in-plot"}]},P(r.range))):l.label(!1),(0,h.U2)(r,"measure")?u.label("".concat(a),(0,g.pi)({layout:[{type:"limit-in-plot"}]},P(r.measure))):u.label(!1),(0,h.U2)(r,"target")?c.label("".concat(i),(0,g.pi)({layout:[{type:"limit-in-plot"}]},P(r.target))):c.label(!1),t}function Bu(t){N(Nu,Qa,Uu,Vu,At,Wu,Yt,zt,It)(t)}var Gu=b({},lt.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}}),ng=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="bullet",n}return e.getDefaultOptions=function(){return Gu},e.prototype.changeData=function(n){this.updateOption({data:n});var r=Ka(this.options),a=r.min,i=r.max,o=r.ds;Qa({options:this.options,ext:{data:{min:a,max:i}},chart:this.chart}),this.chart.changeData(o)},e.prototype.getSchemaAdaptor=function(){return Bu},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(lt),Zu={y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(t){return t.id},source:function(t){return t.source},target:function(t){return t.target},sourceWeight:function(t){return t.value||1},targetWeight:function(t){return t.value||1},sortBy:null};function qu(t,e,n){(0,h.U5)(t,function(r,a){r.inEdges=e.filter(function(i){return"".concat(n.target(i))==="".concat(a)}),r.outEdges=e.filter(function(i){return"".concat(n.source(i))==="".concat(a)}),r.edges=r.outEdges.concat(r.inEdges),r.frequency=r.edges.length,r.value=0,r.inEdges.forEach(function(i){r.value+=n.targetWeight(i)}),r.outEdges.forEach(function(i){r.value+=n.sourceWeight(i)})})}function Hu(t,e){var n={weight:function(a,i){return i.value-a.value},frequency:function(a,i){return i.frequency-a.frequency},id:function(a,i){return"".concat(e.id(a)).localeCompare("".concat(e.id(i)))}},r=n[e.sortBy];!r&&(0,h.mf)(e.sortBy)&&(r=e.sortBy),r&&t.sort(r)}function Xu(t,e){var n=t.length;if(!n)throw new TypeError("Invalid nodes: it's empty!");if(e.weight){var r=e.nodePaddingRatio;if(r<0||r>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var a=r/(2*n),i=e.nodeWidthRatio;if(i<=0||i>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var o=0;t.forEach(function(l){o+=l.value}),t.forEach(function(l){l.weight=l.value/o,l.width=l.weight*(1-r),l.height=i}),t.forEach(function(l,u){for(var c=0,d=u-1;d>=0;d--)c+=t[d].width+2*a;var f=l.minX=a+c,v=l.maxX=l.minX+l.width,p=l.minY=e.y-i/2,y=l.maxY=p+i;l.x=[f,v,v,f],l.y=[p,p,y,y]})}else{var s=1/n;t.forEach(function(l,u){l.x=(u+.5)*s,l.y=e.y})}return t}function Yu(t,e,n){if(n.weight){var r={};(0,h.U5)(t,function(a,i){r[i]=a.value}),e.forEach(function(a){var i=n.source(a),o=n.target(a),s=t[i],l=t[o];if(s&&l){var u=r[i],c=n.sourceWeight(a),d=s.minX+(s.value-u)/s.value*s.width,f=d+c/s.value*s.width;r[i]-=c;var v=r[o],p=n.targetWeight(a),y=l.minX+(l.value-v)/l.value*l.width,m=y+p/l.value*l.width;r[o]-=p;var x=n.y;a.x=[d,f,y,m],a.y=[x,x,x,x],a.source=s,a.target=l}})}else e.forEach(function(a){var i=t[n.source(a)],o=t[n.target(a)];i&&o&&(a.x=[i.x,o.x],a.y=[i.y,o.y],a.source=i,a.target=o)});return e}function $u(t){return(0,h.f0)({},Zu,t)}function ju(t,e){var n=$u(t),r={},a=e.nodes,i=e.links;a.forEach(function(l){var u=n.id(l);r[u]=l}),qu(r,i,n),Hu(a,n);var o=Xu(a,n),s=Yu(r,i,n);return{nodes:o,links:s}}var ti="x",ei="y",ni="name",ri="source",Ju={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(t,e){var n=(t[0]+t[1])/2,r=n>.5?-4:4;return{offsetX:r,content:e}},labelEmit:!0,style:{fill:"#8c8c8c"}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(t){return!(0,h.U2)(t,[0,"data","isNode"])},formatter:function(t){var e=t.source,n=t.target,r=t.value;return{name:"".concat(e," -> ").concat(n),value:r}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function Ku(t){var e=t.options,n=e.data,r=e.sourceField,a=e.targetField,i=e.weightField,o=e.nodePaddingRatio,s=e.nodeWidthRatio,l=e.rawFields,u=l===void 0?[]:l,c=J(n,r,a,i),d=ju({weight:!0,nodePaddingRatio:o,nodeWidthRatio:s},c),f=d.nodes,v=d.links,p=f.map(function(m){return(0,g.pi)((0,g.pi)({},U(m,(0,g.ev)(["id","x","y","name"],u,!0))),{isNode:!0})}),y=v.map(function(m){return(0,g.pi)((0,g.pi)({source:m.source.name,target:m.target.name,name:m.source.name||m.target.name},U(m,(0,g.ev)(["x","y","value"],u,!0))),{isNode:!1})});return(0,g.pi)((0,g.pi)({},t),{ext:(0,g.pi)((0,g.pi)({},t.ext),{chordData:{nodesData:p,edgesData:y}})})}function Qu(t){var e,n=t.chart;return n.scale((e={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}},e[ni]={sync:"color"},e[ri]={sync:"color"},e)),t}function tc(t){var e=t.chart;return e.axis(!1),t}function ec(t){var e=t.chart;return e.legend(!1),t}function nc(t){var e=t.chart,n=t.options,r=n.tooltip;return e.tooltip(r),t}function rc(t){var e=t.chart;return e.coordinate("polar").reflect("y"),t}function ac(t){var e=t.chart,n=t.options,r=t.ext.chordData.nodesData,a=n.nodeStyle,i=n.label,o=n.tooltip,s=e.createView();return s.data(r),Dn({chart:s,options:{xField:ti,yField:ei,seriesField:ni,polygon:{style:a},label:i,tooltip:o}}),t}function ic(t){var e=t.chart,n=t.options,r=t.ext.chordData.edgesData,a=n.edgeStyle,i=n.tooltip,o=e.createView();o.data(r);var s={xField:ti,yField:ei,seriesField:ri,edge:{style:a,shape:"arc"},tooltip:i};return jr({chart:o,options:s}),t}function oc(t){var e=t.chart,n=t.options,r=n.animation;return Qt(e,r,E(e)),t}function lc(t){return N(At,Ku,rc,Qu,tc,ec,nc,ic,ac,zt,De,oc)(t)}var rg=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="chord",n}return e.getDefaultOptions=function(){return Ju},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return lc},e}(lt),sc=["x","y","r","name","value","path","depth"],uc={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}},ai=4,cc=0,ii=5,oi="drilldown-bread-crumb",fc={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},ln="hierarchy-data-transform-params",dc=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.name="drill-down",n.historyCache=[],n.breadCrumbGroup=null,n.breadCrumbCfg=fc,n}return e.prototype.click=function(){var n=(0,h.U2)(this.context,["event","data","data"]);if(!n)return!1;this.drill(n),this.drawBreadCrumb()},e.prototype.resetPosition=function(){if(this.breadCrumbGroup){var n=this.context.view.getCoordinate(),r=this.breadCrumbGroup,a=r.getBBox(),i=this.getButtonCfg().position,o={x:n.start.x,y:n.end.y-(a.height+ii*2)};n.isPolar&&(o={x:0,y:0}),i==="bottom-left"&&(o={x:n.start.x,y:n.start.y});var s=D.Zr.transform(null,[["t",o.x+cc,o.y+a.height+ii]]);r.setMatrix(s)}},e.prototype.back=function(){(0,h.dp)(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},e.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},e.prototype.drill=function(n){var r=this.context.view,a=(0,h.U2)(r,["interactions","drill-down","cfg","transformData"],function(u){return u}),i=a((0,g.pi)({data:n.data},n[ln]));r.changeData(i);for(var o=[],s=n;s;){var l=s.data;o.unshift({id:"".concat(l.name,"_").concat(s.height,"_").concat(s.depth),name:l.name,children:a((0,g.pi)({data:l},n[ln]))}),s=s.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(o)},e.prototype.backTo=function(n){if(!(!n||n.length<=0)){var r=this.context.view,a=(0,h.Z$)(n).children;r.changeData(a),n.length>1?(this.historyCache=n,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},e.prototype.getButtonCfg=function(){var n=this.context.view,r=(0,h.U2)(n,["interactions","drill-down","cfg","drillDownConfig"]);return b(this.breadCrumbCfg,r==null?void 0:r.breadCrumb,this.cfg)},e.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},e.prototype.drawBreadCrumbGroup=function(){var n=this,r=this.getButtonCfg(),a=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:oi});var i=0;a.forEach(function(o,s){var l=n.breadCrumbGroup.addShape({type:"text",id:o.id,name:"".concat(oi,"_").concat(o.name,"_text"),attrs:(0,g.pi)((0,g.pi)({text:s===0&&!(0,h.UM)(r.rootText)?r.rootText:o.name},r.textStyle),{x:i,y:0})}),u=l.getBBox();if(i+=u.width+ai,l.on("click",function(f){var v,p=f.target.get("id");if(p!==((v=(0,h.Z$)(a))===null||v===void 0?void 0:v.id)){var y=a.slice(0,a.findIndex(function(m){return m.id===p})+1);n.backTo(y)}}),l.on("mouseenter",function(f){var v,p=f.target.get("id");p!==((v=(0,h.Z$)(a))===null||v===void 0?void 0:v.id)?l.attr(r.activeTextStyle):l.attr({cursor:"default"})}),l.on("mouseleave",function(){l.attr(r.textStyle)}),s0&&n*n>r*r+a*a}function hr(t,e){for(var n=0;nl?(a=(u+l-i)/(2*u),s=Math.sqrt(Math.max(0,l/u-a*a)),n.x=t.x-a*r-s*o,n.y=t.y-a*o+s*r):(a=(u+i-l)/(2*u),s=Math.sqrt(Math.max(0,i/u-a*a)),n.x=e.x+a*r-s*o,n.y=e.y+a*o+s*r)):(n.x=e.x+n.r,n.y=e.y)}function fi(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,a=e.y-t.y;return n>0&&n*n>r*r+a*a}function di(t){var e=t._,n=t.next._,r=e.r+n.r,a=(e.x*n.r+n.x*e.r)/r,i=(e.y*n.r+n.y*e.r)/r;return a*a+i*i}function Ln(t){this._=t,this.next=null,this.previous=null}function vi(t){if(!(a=(t=pc(t)).length))return 0;var e,n,r,a,i,o,s,l,u,c,d;if(e=t[0],e.x=0,e.y=0,!(a>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(a>2))return e.r+n.r;ci(n,e,r=t[2]),e=new Ln(e),n=new Ln(n),r=new Ln(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;s=0;)e+=n[r].value;t.value=e}function Dc(){return this.eachAfter(Ac)}var Mc=L(57913),yi=L.n(Mc);function Tc(t,e){var n=-1,r=yi()(this),a;try{for(r.s();!(a=r.n()).done;){var i=a.value;t.call(e,i,++n,this)}}catch(o){r.e(o)}finally{r.f()}return this}function Ec(t,e){for(var n=this,r=[n],a,i,o=-1;n=r.pop();)if(t.call(e,n,++o,this),a=n.children)for(i=a.length-1;i>=0;--i)r.push(a[i]);return this}function kc(t,e){for(var n=this,r=[n],a=[],i,o,s,l=-1;n=r.pop();)if(a.push(n),i=n.children)for(o=0,s=i.length;o=0;)n+=r[a].value;e.value=n})}function Pc(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function Cc(t){for(var e=this,n=Rc(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var a=r.length;t!==n;)r.splice(a,0,t),t=t.parent;return r}function Rc(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),a=null;for(t=n.pop(),e=r.pop();t===e;)a=t,t=n.pop(),e=r.pop();return a}function Lc(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function zc(){return Array.from(this)}function Nc(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function Uc(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}var Vc=L(51490),xi=L.n(Vc),Wc=xi()().mark(mi);function mi(){var t,e,n,r,a,i;return xi()().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(a=0,i=r.length;a=0;--s)a.push(i=o[s]=new Je(o[s])),i.parent=r,i.depth=r.depth+1;return n.eachBefore(Fi)}function Bc(){return je(this).eachBefore(qc)}function Gc(t){return t.children}function Zc(t){return Array.isArray(t)?t[1]:null}function qc(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function Fi(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function Je(t){this.data=t,this.depth=this.height=0,this.parent=null}Je.prototype=je.prototype=wc()({constructor:Je,count:Dc,each:Tc,eachAfter:kc,eachBefore:Ec,find:Ic,sum:Oc,sort:Pc,path:Cc,ancestors:Lc,descendants:zc,leaves:Nc,links:Uc,copy:Bc},Symbol.iterator,mi);var bi="nodeIndex",Si="childNodeCount",gr="nodeAncestor",yr="Invalid field: it must be a string!";function xr(t,e){var n=t.field,r=t.fields;if((0,h.HD)(n))return n;if((0,h.kJ)(n))return console.warn(yr),n[0];if(console.warn("".concat(yr," will try to get fields instead.")),(0,h.HD)(r))return r;if((0,h.kJ)(r)&&r.length)return r[0];if(e)return e;throw new TypeError(yr)}function mr(t){var e=[];if(t&&t.each){var n,r;t.each(function(a){var i,o;a.parent!==n?(n=a.parent,r=0):r+=1;var s=(0,h.hX)((((i=a.ancestors)===null||i===void 0?void 0:i.call(a))||[]).map(function(l){return e.find(function(u){return u.name===l.name})||l}),function(l){var u=l.depth;return u>0&&u1;)c="".concat((u=d.parent.data)===null||u===void 0?void 0:u.name," / ").concat(c),d=d.parent;if(i&&l.depth>2)return null;var f=b({},l.data,(0,g.pi)((0,g.pi)((0,g.pi)({},U(l.data,a)),{path:c}),l));f.ext=n,f[ln]={hierarchyConfig:n,rawFields:a,enableDrillDown:i},s.push(f)}),s}function wi(t,e,n){var r=ut([t,e]),a=r[0],i=r[1],o=r[2],s=r[3],l=n.width,u=n.height,c=l-(s+i),d=u-(a+o),f=Math.min(c,d),v=(c-f)/2,p=(d-f)/2,y=a+p,m=i+v,x=o+p,F=s+v,w=[y,m,x,F],S=f<0?0:f;return{finalPadding:w,finalSize:S}}function Yc(t){var e=t.chart,n=Math.min(e.viewBBox.width,e.viewBBox.height);return b({options:{size:function(r){var a=r.r;return a*n}}},t)}function $c(t){var e=t.options,n=t.chart,r=n.viewBBox,a=e.padding,i=e.appendPadding,o=e.drilldown,s=i;if(o!=null&&o.enabled){var l=at(n.appendPadding,(0,h.U2)(o,["breadCrumb","position"]));s=ut([l,i])}var u=wi(a,s,r).finalPadding;return n.padding=u,n.appendPadding=0,t}function jc(t){var e=t.chart,n=t.options,r=e.padding,a=e.appendPadding,i=n.color,o=n.colorField,s=n.pointStyle,l=n.hierarchyConfig,u=n.sizeField,c=n.rawFields,d=c===void 0?[]:c,f=n.drilldown,v=_i({data:n.data,hierarchyConfig:l,enableDrillDown:f==null?void 0:f.enabled,rawFields:d});e.data(v);var p=e.viewBBox,y=wi(r,a,p).finalSize,m=function(x){var F=x.r;return F*y};return u&&(m=function(x){return x[u]*y}),ce(b({},t,{options:{xField:"x",yField:"y",seriesField:o,sizeField:u,rawFields:(0,g.ev)((0,g.ev)([],sc,!0),d,!0),point:{color:i,style:s,shape:"circle",size:m}}})),t}function Jc(t){return N(qt({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(t)}function Kc(t){var e=t.chart,n=t.options,r=n.tooltip;if(r===!1)e.tooltip(!1);else{var a=r;(0,h.U2)(r,"fields")||(a=b({},{customItems:function(i){return i.map(function(o){var s=(0,h.U2)(e.getOptions(),"scales"),l=(0,h.U2)(s,["name","formatter"],function(c){return c}),u=(0,h.U2)(s,["value","formatter"],function(c){return c});return(0,g.pi)((0,g.pi)({},o),{name:l(o.data.name),value:u(o.data.value)})})}},a)),e.tooltip(a)}return t}function Qc(t){var e=t.chart;return e.axis(!1),t}function tf(t){var e=t.drilldown,n=t.interactions,r=n===void 0?[]:n;return e!=null&&e.enabled?b({},t,{interactions:(0,g.ev)((0,g.ev)([],r,!0),[{type:"drill-down",cfg:{drillDownConfig:e,transformData:_i,enableDrillDown:!0}}],!1)}):t}function ef(t){var e=t.chart,n=t.options;return zt({chart:e,options:tf(n)}),t}function nf(t){return N(ue("pointStyle"),Yc,$c,At,Jc,jc,Qc,Ie,Kc,ef,It,Wt())(t)}function Ai(t){var e=(0,h.U2)(t,["event","data","data"],{});return(0,h.kJ)(e.children)&&e.children.length>0}function Di(t){var e=t.view.getCoordinate(),n=e.innerRadius;if(n){var r=t.event,a=r.x,i=r.y,o=e.center,s=o.x,l=o.y,u=e.getRadius()*n,c=Math.sqrt(Math.pow(s-a,2)+Math.pow(l-i,2));return c-1?V(p,d,f):!0}),t.getRootView().render(!0)}};function lf(t){var e,n=t.options,r=n.geometryOptions,a=r===void 0?[]:r,i=n.xField,o=n.yField,s=(0,h.yW)(a,function(l){var u=l.geometry;return u===Ue.Line||u===void 0});return b({},{options:{geometryOptions:[],meta:(e={},e[i]={type:"cat",sync:!0,range:s?[0,1]:void 0},e),tooltip:{showMarkers:s,showCrosshairs:s,shared:!0,crosshairs:{type:"x"}},interactions:s?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},t,{options:{yAxis:Ei(o,n.yAxis),geometryOptions:[Ti(i,o[0],a[0]),Ti(i,o[1],a[1])],annotations:Ei(o,n.annotations)}})}function sf(t){var e,n,r=t.chart,a=t.options,i=a.geometryOptions,o={line:0,column:1},s=[{type:(e=i[0])===null||e===void 0?void 0:e.geometry,id:fe},{type:(n=i[1])===null||n===void 0?void 0:n.geometry,id:de}];return s.sort(function(l,u){return-o[l.type]+o[u.type]}).forEach(function(l){return r.createView({id:l.id})}),t}function uf(t){var e=t.chart,n=t.options,r=n.xField,a=n.yField,i=n.geometryOptions,o=n.data,s=n.tooltip,l=[(0,g.pi)((0,g.pi)({},i[0]),{id:fe,data:o[0],yField:a[0]}),(0,g.pi)((0,g.pi)({},i[1]),{id:de,data:o[1],yField:a[1]})];return l.forEach(function(u){var c=u.id,d=u.data,f=u.yField,v=br(u)&&u.isPercent,p=v?Qr(d,f,r,f):d,y=B(e,c).data(p),m=v?(0,g.pi)({formatter:function(x){return{name:x[u.seriesField]||f,value:(Number(x[f])*100).toFixed(2)+"%"}}},s):s;of({chart:y,options:{xField:r,yField:f,tooltip:m,geometryOption:u}})}),t}function cf(t){var e,n=t.chart,r=t.options,a=r.geometryOptions,i=((e=n.getTheme())===null||e===void 0?void 0:e.colors10)||[],o=0;return n.once("beforepaint",function(){(0,h.S6)(a,function(s,l){var u=B(n,l===0?fe:de);if(!s.color){var c=u.getGroupScales(),d=(0,h.U2)(c,[0,"values","length"],1),f=i.slice(o,o+d).concat(l===0?[]:i);u.geometries.forEach(function(v){s.seriesField?v.color(s.seriesField,f):v.color(f[0])}),o+=d}}),n.render(!0)}),t}function ff(t){var e,n,r=t.chart,a=t.options,i=a.xAxis,o=a.yAxis,s=a.xField,l=a.yField;return qt((e={},e[s]=i,e[l[0]]=o[0],e))(b({},t,{chart:B(r,fe)})),qt((n={},n[s]=i,n[l[1]]=o[1],n))(b({},t,{chart:B(r,de)})),t}function df(t){var e=t.chart,n=t.options,r=B(e,fe),a=B(e,de),i=n.xField,o=n.yField,s=n.xAxis,l=n.yAxis;return e.axis(i,!1),e.axis(o[0],!1),e.axis(o[1],!1),r.axis(i,s),r.axis(o[0],ki(l[0],Ke.Left)),a.axis(i,!1),a.axis(o[1],ki(l[1],Ke.Right)),t}function vf(t){var e=t.chart,n=t.options,r=n.tooltip,a=B(e,fe),i=B(e,de);return e.tooltip(r),a.tooltip({shared:!0}),i.tooltip({shared:!0}),t}function hf(t){var e=t.chart;return zt(b({},t,{chart:B(e,fe)})),zt(b({},t,{chart:B(e,de)})),t}function pf(t){var e=t.chart,n=t.options,r=n.annotations,a=(0,h.U2)(r,[0]),i=(0,h.U2)(r,[1]);return Wt(a)(b({},t,{chart:B(e,fe),options:{annotations:a}})),Wt(i)(b({},t,{chart:B(e,de),options:{annotations:i}})),t}function gf(t){var e=t.chart;return At(b({},t,{chart:B(e,fe)})),At(b({},t,{chart:B(e,de)})),At(t),t}function yf(t){var e=t.chart;return It(b({},t,{chart:B(e,fe)})),It(b({},t,{chart:B(e,de)})),t}function xf(t){var e=t.chart,n=t.options,r=n.yAxis;return Oe(b({},t,{chart:B(e,fe),options:{yAxis:r[0]}})),Oe(b({},t,{chart:B(e,de),options:{yAxis:r[1]}})),t}function mf(t){var e=t.chart,n=t.options,r=n.legend,a=n.geometryOptions,i=n.yField,o=n.data,s=B(e,fe),l=B(e,de);if(r===!1)e.legend(!1);else if((0,h.Kn)(r)&&r.custom===!0)e.legend(r);else{var u=(0,h.U2)(a,[0,"legend"],r),c=(0,h.U2)(a,[1,"legend"],r);e.once("beforepaint",function(){var d=o[0].length?Ii({view:s,geometryOption:a[0],yField:i[0],legend:u}):[],f=o[1].length?Ii({view:l,geometryOption:a[1],yField:i[1],legend:c}):[];e.legend(b({},r,{custom:!0,items:d.concat(f)}))}),a[0].seriesField&&s.legend(a[0].seriesField,u),a[1].seriesField&&l.legend(a[1].seriesField,c),e.on("legend-item:click",function(d){var f=(0,h.U2)(d,"gEvent.delegateObject",{});if(f&&f.item){var v=f.item,p=v.value,y=v.isGeometry,m=v.viewId;if(y){var x=(0,h.cx)(i,function(S){return S===p});if(x>-1){var F=(0,h.U2)(B(e,m),"geometries");(0,h.S6)(F,function(S){S.changeVisible(!f.item.unchecked)})}}else{var w=(0,h.U2)(e.getController("legend"),"option.items",[]);(0,h.S6)(e.views,function(S){var _=S.getGroupScales();(0,h.S6)(_,function(O){O.values&&O.values.indexOf(p)>-1&&S.filter(O.field,function(W){var X=(0,h.sE)(w,function(ft){return ft.value===W});return!X.unchecked})}),e.render(!0)})}}})}return t}function Ff(t){var e=t.chart,n=t.options,r=n.slider,a=B(e,fe),i=B(e,de);return r&&(a.option("slider",r),a.on("slider:valuechanged",function(o){var s=o.event,l=s.value,u=s.originValue;(0,h.Xy)(l,u)||Oi(i,l)}),e.once("afterpaint",function(){if(!(0,h.jn)(r)){var o=r.start,s=r.end;(o||s)&&Oi(i,[o,s])}})),t}function bf(t){return N(lf,sf,gf,uf,ff,df,xf,vf,hf,pf,yf,cf,mf,Ff)(t)}var ig=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dual-axes",n}return e.prototype.getDefaultOptions=function(){return b({},t.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},e.prototype.getSchemaAdaptor=function(){return bf},e}(lt);function Sf(t,e){var n=e.data,r=e.coordinate,a=e.interactions,i=e.annotations,o=e.animation,s=e.tooltip,l=e.axes,u=e.meta,c=e.geometries;n&&t.data(n);var d={};l&&(0,h.S6)(l,function(f,v){d[v]=U(f,nt)}),d=b({},u,d),t.scale(d),r&&t.coordinate(r),l===!1?t.axis(!1):(0,h.S6)(l,function(f,v){t.axis(v,f)}),(0,h.S6)(c,function(f){var v=oe({chart:t,options:f}).ext,p=f.adjust;p&&v.geometry.adjust(p)}),(0,h.S6)(a,function(f){f.enable===!1?t.removeInteraction(f.type):t.interaction(f.type,f.cfg)}),(0,h.S6)(i,function(f){t.annotation()[f.type]((0,g.pi)({},f))}),Qt(t,o),s?(t.interaction("tooltip"),t.tooltip(s)):s===!1&&t.removeInteraction("tooltip")}function _f(t){var e=t.chart,n=t.options,r=n.type,a=n.data,i=n.fields,o=n.eachView,s=(0,h.CE)(n,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return e.data(a),e.facet(r,(0,g.pi)((0,g.pi)({},s),{fields:i,eachView:function(l,u){var c=o(l,u);if(c.geometries)Sf(l,c);else{var d=c,f=d.options;f.tooltip&&l.interaction("tooltip"),dr(d.type,l,f)}}})),t}function wf(t){var e=t.chart,n=t.options,r=n.axes,a=n.meta,i=n.tooltip,o=n.coordinate,s=n.theme,l=n.legend,u=n.interactions,c=n.annotations,d={};return r&&(0,h.S6)(r,function(f,v){d[v]=U(f,nt)}),d=b({},a,d),e.scale(d),e.coordinate(o),r?(0,h.S6)(r,function(f,v){e.axis(v,f)}):e.axis(!1),i?(e.interaction("tooltip"),e.tooltip(i)):i===!1&&e.removeInteraction("tooltip"),e.legend(l),s&&e.theme(s),(0,h.S6)(u,function(f){f.enable===!1?e.removeInteraction(f.type):e.interaction(f.type,f.cfg)}),(0,h.S6)(c,function(f){e.annotation()[f.type]((0,g.pi)({},f))}),t}function Af(t){return N(At,_f,wf)(t)}var Df={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}},og=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="area",n}return e.getDefaultOptions=function(){return Df},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Af},e}(lt);function Mf(t){var e=t.chart,n=t.options,r=n.data,a=n.type,i=n.xField,o=n.yField,s=n.colorField,l=n.sizeField,u=n.sizeRatio,c=n.shape,d=n.color,f=n.tooltip,v=n.heatmapStyle,p=n.meta;e.data(r);var y="polygon";a==="density"&&(y="heatmap");var m=ve(f,[i,o,s]),x=m.fields,F=m.formatter,w=1;return(u||u===0)&&(!c&&!l?console.warn("sizeRatio is not in effect: Must define shape or sizeField first"):u<0||u>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):w=u),oe(b({},t,{options:{type:y,colorField:s,tooltipFields:x,shapeField:l||"",label:void 0,mapping:{tooltip:F,shape:c&&(l?function(S){var _=r.map(function(ft){return ft[l]}),O=(p==null?void 0:p[l])||{},W=O.min,X=O.max;return W=(0,h.hj)(W)?W:Math.min.apply(Math,_),X=(0,h.hj)(X)?X:Math.max.apply(Math,_),[c,((0,h.U2)(S,l)-W)/(X-W),w]}:function(){return[c,1,w]}),color:d||s&&e.getTheme().sequenceColors.join("-"),style:v}}})),t}function Tf(t){var e,n=t.options,r=n.xAxis,a=n.yAxis,i=n.xField,o=n.yField;return N(qt((e={},e[i]=r,e[o]=a,e)))(t)}function Ef(t){var e=t.chart,n=t.options,r=n.xAxis,a=n.yAxis,i=n.xField,o=n.yField;return r===!1?e.axis(i,!1):e.axis(i,r),a===!1?e.axis(o,!1):e.axis(o,a),t}function kf(t){var e=t.chart,n=t.options,r=n.legend,a=n.colorField,i=n.sizeField,o=n.sizeLegend,s=r!==!1;return a&&e.legend(a,s?r:!1),i&&e.legend(i,o===void 0?r:o),!s&&!o&&e.legend(!1),t}function If(t){var e=t.chart,n=t.options,r=n.label,a=n.colorField,i=n.type,o=Et(e,i==="density"?"heatmap":"polygon");if(!r)o.label(!1);else if(a){var s=r.callback,l=(0,g._T)(r,["callback"]);o.label({fields:[a],callback:s,cfg:P(l)})}return t}function Of(t){var e,n,r=t.chart,a=t.options,i=a.coordinate,o=a.reflect,s=b({actions:[]},i!=null?i:{type:"rect"});return o&&((n=(e=s.actions)===null||e===void 0?void 0:e.push)===null||n===void 0||n.call(e,["reflect",o])),r.coordinate(s),t}function Pf(t){return N(At,ue("heatmapStyle"),Tf,Of,Mf,Ef,kf,Yt,If,Wt(),zt,It,De)(t)}var Cf=b({},lt.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}});(0,D.Fj)("polygon","circle",{draw:function(t,e){var n,r,a=t.x,i=t.y,o=this.parsePoints(t.points),s=Math.abs(o[2].x-o[1].x),l=Math.abs(o[1].y-o[0].y),u=Math.min(s,l)/2,c=Number(t.shape[1]),d=Number(t.shape[2]),f=Math.sqrt(d),v=u*f*Math.sqrt(c),p=((n=t.style)===null||n===void 0?void 0:n.fill)||t.color||((r=t.defaultStyle)===null||r===void 0?void 0:r.fill),y=e.addShape("circle",{attrs:(0,g.pi)((0,g.pi)((0,g.pi)({x:a,y:i,r:v},t.defaultStyle),t.style),{fill:p})});return y}}),(0,D.Fj)("polygon","square",{draw:function(t,e){var n,r,a=t.x,i=t.y,o=this.parsePoints(t.points),s=Math.abs(o[2].x-o[1].x),l=Math.abs(o[1].y-o[0].y),u=Math.min(s,l),c=Number(t.shape[1]),d=Number(t.shape[2]),f=Math.sqrt(d),v=u*f*Math.sqrt(c),p=((n=t.style)===null||n===void 0?void 0:n.fill)||t.color||((r=t.defaultStyle)===null||r===void 0?void 0:r.fill),y=e.addShape("rect",{attrs:(0,g.pi)((0,g.pi)((0,g.pi)({x:a-v/2,y:i-v/2,width:v,height:v},t.defaultStyle),t.style),{fill:p})});return y}});var lg=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="heatmap",n}return e.getDefaultOptions=function(){return Cf},e.prototype.getSchemaAdaptor=function(){return Pf},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(lt),Rf="liquid";function Pi(t){return[{percent:t,type:Rf}]}function Lf(t){var e=t.chart,n=t.options,r=n.percent,a=n.liquidStyle,i=n.radius,o=n.outline,s=n.wave,l=n.shape,u=n.shapeStyle,c=n.animation;e.scale({percent:{min:0,max:1}}),e.data(Pi(r));var d=n.color||e.getTheme().defaultColor,f=b({},t,{options:{xField:"type",yField:"percent",widthRatio:i,interval:{color:d,style:a,shape:"liquid-fill-gauge"}}}),v=ee(f).ext,p=v.geometry,y=e.getTheme().background,m={percent:r,radius:i,outline:o,wave:s,shape:l,shapeStyle:u,background:y,animation:c};return p.customInfo(m),e.legend(!1),e.axis(!1),e.tooltip(!1),t}function Ci(t,e){var n=t.chart,r=t.options,a=r.statistic,i=r.percent,o=r.meta;n.getController("annotation").clear(!0);var s=(0,h.U2)(o,["percent","formatter"])||function(u){return"".concat((u*100).toFixed(2),"%")},l=a.content;return l&&(l=b({},l,{content:(0,h.UM)(l.content)?s(i):l.content})),xt(n,{statistic:(0,g.pi)((0,g.pi)({},a),{content:l}),plotType:"liquid"},{percent:i}),e&&n.render(!0),t}function zf(t){return N(At,ue("liquidStyle"),Lf,Ci,qt({}),It,zt)(t)}var Nf={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"},Ri=5e3;function Li(t,e,n){return t+(e-t)*n}function Uf(t){var e=(0,g.pi)({opacity:1},t.style);return t.color&&!e.fill&&(e.fill=t.color),e}function Vf(t){var e={fill:"#fff",fillOpacity:0,lineWidth:4},n=(0,h.CD)({},e,t.style);return t.color&&!n.stroke&&(n.stroke=t.color),(0,h.hj)(t.opacity)&&(n.opacity=n.strokeOpacity=t.opacity),n}function Wf(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 Bf(t,e,n,r,a,i,o){for(var s=Math.ceil(2*t/n*4)*4,l=[],u=r;u<-Math.PI*2;)u+=Math.PI*2;for(;u>0;)u-=Math.PI*2;u=u/Math.PI/2*n;var c=i-t+u-t*2;l.push(["M",c,e]);for(var d=0,f=0;f0){var _t=e.addGroup({name:"waves"}),Nt=_t.setClip({type:"path",attrs:{path:Y}});Gf(w.x,w.y,1-t.points[1].y,m,W,_t,Nt,O*2,x,d)}return e.addShape("path",{name:"distance",attrs:{path:Y,fill:"transparent",lineWidth:p+y*2,stroke:c==="transparent"?"#fff":c}}),e.addShape("path",{name:"wrap",attrs:(0,h.CD)(X,{path:Y,fill:"transparent",lineWidth:p})}),e}});var sg=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="liquid",n}return e.getDefaultOptions=function(){return Nf},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(n){this.chart.emit(D.ld.BEFORE_CHANGE_DATA,D.ju.fromData(this.chart,D.ld.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:n}),this.chart.data(Pi(n)),Ci({chart:this.chart,options:this.options},!0),this.chart.emit(D.ld.AFTER_CHANGE_DATA,D.ju.fromData(this.chart,D.ld.AFTER_CHANGE_DATA,null))},e.prototype.getSchemaAdaptor=function(){return zf},e}(lt);function $f(t){var e=t.chart,n=t.options,r=n.data,a=n.lineStyle,i=n.color,o=n.point,s=n.area;e.data(r);var l=b({},t,{options:{line:{style:a,color:i},point:o&&(0,g.pi)({color:i},o),area:s&&(0,g.pi)({color:i},s),label:void 0}}),u=b({},l,{options:{tooltip:!1}}),c=(o==null?void 0:o.state)||n.state,d=b({},l,{options:{tooltip:!1,state:c}});return Ze(l),ce(d),An(u),t}function jf(t){var e,n=t.options,r=n.xAxis,a=n.yAxis,i=n.xField,o=n.yField;return N(qt((e={},e[i]=r,e[o]=a,e)))(t)}function Jf(t){var e=t.chart,n=t.options,r=n.radius,a=n.startAngle,i=n.endAngle;return e.coordinate("polar",{radius:r,startAngle:a,endAngle:i}),t}function Kf(t){var e=t.chart,n=t.options,r=n.xField,a=n.xAxis,i=n.yField,o=n.yAxis;return e.axis(r,a),e.axis(i,o),t}function Qf(t){var e=t.chart,n=t.options,r=n.label,a=n.yField,i=Et(e,"line");if(!r)i.label(!1);else{var o=r.callback,s=(0,g._T)(r,["callback"]);i.label({fields:[a],callback:o,cfg:P(s)})}return t}function td(t){return N($f,jf,At,Jf,Kf,Ie,Yt,Qf,zt,It,Wt())(t)}var ed=function(t){(0,g.ZT)(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return Object.defineProperty(e.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),e.prototype.getTooltipItems=function(n){var r=this.getTooltipCfg(),a=r.shared,i=r.title,o=t.prototype.getTooltipItems.call(this,n);if(o.length>0){var s=this.view.geometries[0],l=s.dataArray,u=o[0].name,c=[];return l.forEach(function(d){d.forEach(function(f){var v=D.Zr.getTooltipItems(f,s),p=v[0];if(!a&&p&&p.name===u){var y=(0,h.UM)(i)?u:i;c.push((0,g.pi)((0,g.pi)({},p),{name:p.title,title:y}))}else if(a&&p){var y=(0,h.UM)(i)?p.name||u:i;c.push((0,g.pi)((0,g.pi)({},p),{name:p.title,title:y}))}})}),c}return[]},e}(D.fw);(0,D.ak)("radar-tooltip",ed);var nd=function(t){(0,g.ZT)(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var n=this.context.view;n.removeInteraction("tooltip")},e.prototype.show=function(){var n=this.context.event,r=this.getTooltipController();r.showTooltip({x:n.x,y:n.y})},e.prototype.hide=function(){var n=this.getTooltipController();n.hideTooltip()},e.prototype.getTooltipController=function(){var n=this.context.view;return n.getController("radar-tooltip")},e}(D.aU);(0,D.zl)("radar-tooltip",nd),(0,D.w_)("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]});var ug=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="radar",n}return e.prototype.changeData=function(n){this.updateOption({data:n}),this.chart.changeData(n)},e.prototype.getDefaultOptions=function(){return b({},t.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},e.prototype.getSchemaAdaptor=function(){return td},e}(lt);function rd(t,e,n){var r=n.map(function(o){return o[e]}).filter(function(o){return o!==void 0}),a=r.length>0?Math.max.apply(Math,r):0,i=Math.abs(t)%360;return i?a*360/i:a}function ad(t,e,n){var r=[];return t.forEach(function(a){var i=r.find(function(o){return o[e]===a[e]});i?i[n]+=a[n]||null:r.push((0,g.pi)({},a))}),r}function id(t){var e=t.chart,n=t.options,r=n.barStyle,a=n.color,i=n.tooltip,o=n.colorField,s=n.type,l=n.xField,u=n.yField,c=n.data,d=n.shape,f=Z(c,u);e.data(f);var v=b({},t,{options:{tooltip:i,seriesField:o,interval:{style:r,color:a,shape:d||(s==="line"?"line":"intervel")},minColumnWidth:n.minBarWidth,maxColumnWidth:n.maxBarWidth,columnBackground:n.barBackground}});return ee(v),s==="line"&&ce({chart:e,options:{xField:l,yField:u,seriesField:o,point:{shape:"circle",color:a}}}),t}function Ni(t){var e,n=t.options,r=n.yField,a=n.xField,i=n.data,o=n.isStack,s=n.isGroup,l=n.colorField,u=n.maxAngle,c=o&&!s&&l?ad(i,a,r):i,d=Z(c,r);return N(qt((e={},e[r]={min:0,max:rd(u,r,d)},e)))(t)}function od(t){var e=t.chart,n=t.options,r=n.radius,a=n.innerRadius,i=n.startAngle,o=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:a,startAngle:i,endAngle:o}}).transpose(),t}function ld(t){var e=t.chart,n=t.options,r=n.xField,a=n.xAxis;return e.axis(r,a),t}function sd(t){var e=t.chart,n=t.options,r=n.label,a=n.yField,i=Et(e,"interval");if(!r)i.label(!1);else{var o=r.callback,s=(0,g._T)(r,["callback"]);i.label({fields:[a],callback:o,cfg:(0,g.pi)((0,g.pi)({},P(s)),{type:"polar"})})}return t}function ud(t){return N(ue("barStyle"),id,Ni,ld,od,zt,It,At,Yt,Ie,Wt(),sd)(t)}var cd=b({},lt.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240}),cg=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="radial-bar",n}return e.getDefaultOptions=function(){return cd},e.prototype.changeData=function(n){this.updateOption({data:n}),Ni({chart:this.chart,options:this.options}),this.chart.changeData(n)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return ud},e}(lt);function fd(t){var e=t.chart,n=t.options,r=n.data,a=n.sectorStyle,i=n.shape,o=n.color;return e.data(r),N(ee)(b({},t,{options:{marginRatio:1,interval:{style:a,color:o,shape:i}}})),t}function dd(t){var e=t.chart,n=t.options,r=n.label,a=n.xField,i=Et(e,"interval");if(r===!1)i.label(!1);else if((0,h.Kn)(r)){var o=r.callback,s=r.fields,l=(0,g._T)(r,["callback","fields"]),u=l.offset,c=l.layout;(u===void 0||u>=0)&&(c=c?(0,h.kJ)(c)?c:[c]:[],l.layout=(0,h.hX)(c,function(d){return d.type!=="limit-in-shape"}),l.layout.length||delete l.layout),i.label({fields:s||[a],callback:o,cfg:P(l)})}else vt(gt.WARN,r===null,"the label option must be an Object."),i.label({fields:[a]});return t}function vd(t){var e=t.chart,n=t.options,r=n.legend,a=n.seriesField;return r===!1?e.legend(!1):a&&e.legend(a,r),t}function hd(t){var e=t.chart,n=t.options,r=n.radius,a=n.innerRadius,i=n.startAngle,o=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:a,startAngle:i,endAngle:o}}),t}function pd(t){var e,n=t.options,r=n.xAxis,a=n.yAxis,i=n.xField,o=n.yField;return N(qt((e={},e[i]=r,e[o]=a,e)))(t)}function gd(t){var e=t.chart,n=t.options,r=n.xAxis,a=n.yAxis,i=n.xField,o=n.yField;return r?e.axis(i,r):e.axis(i,!1),a?e.axis(o,a):e.axis(o,!1),t}function yd(t){N(ue("sectorStyle"),fd,pd,dd,hd,gd,vd,Yt,zt,It,At,Wt(),De)(t)}var xd=b({},lt.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]}),fg=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="rose",n}return e.getDefaultOptions=function(){return xd},e.prototype.changeData=function(n){this.updateOption({data:n}),this.chart.changeData(n)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return yd},e}(lt),Ui="x",Vi="y",Wi="name",Nn="nodes",Un="edges";function md(t,e,n){var r=[];return t.forEach(function(a){var i=a[e],o=a[n];r.includes(i)||r.push(i),r.includes(o)||r.push(o)}),r}function Fd(t,e,n,r){var a={};return e.forEach(function(i){a[i]={},e.forEach(function(o){a[i][o]=0})}),t.forEach(function(i){a[i[n]][i[r]]=1}),a}function bd(t,e,n){if(!(0,h.kJ)(t))return[];var r=[],a=md(t,e,n),i=Fd(t,a,e,n),o={};a.forEach(function(l){o[l]=0});function s(l){o[l]=1,a.forEach(function(u){if(i[l][u]!=0)if(o[u]==1)r.push("".concat(l,"_").concat(u));else{if(o[u]==-1)return;s(u)}}),o[l]=-1}return a.forEach(function(l){o[l]!=-1&&s(l)}),r.length!==0&&console.warn("sankey data contains circle, ".concat(r.length," records removed."),r),t.filter(function(l){return r.findIndex(function(u){return u==="".concat(l[e],"_").concat(l[n])})<0})}function Sd(t){return t.target.depth}function _d(t){return t.depth}function wd(t,e){return e-1-t.height}function Sr(t,e){return t.sourceLinks.length?t.depth:e-1}function Ad(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?(0,h.F)(t.sourceLinks,Sd)-1:0}function Vn(t){return function(){return t}}function _r(t,e){for(var n=0,r=0;rQ)throw new Error("circular link");rt=$,$=new Set}if(u)for(var Ft=Math.max(wr(G,function(bt){return bt.depth})+1,0),Tt=void 0,dt=0;dtQ)throw new Error("circular link");rt=$,$=new Set}}function S(k){for(var G=k.nodes,Q=Math.max(wr(G,function(Jt){return Jt.depth})+1,0),rt=(n-t-a)/(Q-1),$=new Array(Q).fill(0).map(function(){return[]}),it=0,Ft=G;it0){var xn=(bt/Bt-dt.y0)*G;dt.y0+=xn,dt.y1+=xn,_t(dt)}}c===void 0&&it.sort(Wn),it.length&&ft(it,Q)}}function X(k,G,Q){for(var rt=k.length,$=rt-2;$>=0;--$){for(var it=k[$],Ft=0,Tt=it;Ft0){var xn=(bt/Bt-dt.y0)*G;dt.y0+=xn,dt.y1+=xn,_t(dt)}}c===void 0&&it.sort(Wn),it.length&&ft(it,Q)}}function ft(k,G){var Q=k.length>>1,rt=k[Q];Y(k,rt.y0-o,Q-1,G),et(k,rt.y1+o,Q+1,G),Y(k,r,k.length-1,G),et(k,e,0,G)}function et(k,G,Q,rt){for(;Q1e-6&&($.y0+=it,$.y1+=it),G=$.y1+o}}function Y(k,G,Q,rt){for(;Q>=0;--Q){var $=k[Q],it=($.y1-G)*rt;it>1e-6&&($.y0-=it,$.y1-=it),G=$.y0-o}}function _t(k){var G=k.sourceLinks,Q=k.targetLinks;if(d===void 0){for(var rt=0,$=Q;rt<$.length;rt++){var it=$[rt].source.sourceLinks;it.sort(Gi)}for(var Ft=0,Tt=G;Ft "+a,value:i}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},e.prototype.changeData=function(n){this.updateOption({data:n});var r=Hi(this.options,this.chart.width,this.chart.height),a=r.nodes,i=r.edges,o=B(this.chart,Nn),s=B(this.chart,Un);o.changeData(a),s.changeData(i)},e.prototype.getSchemaAdaptor=function(){return Zd},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(lt),Dr="ancestor-node",Xi="value",un="path",Hd=[un,bi,gr,Si,"name","depth","height"],Xd=b({},lt.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},legend:!1,sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}});function Yi(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 cn(t,e,n,r,a){for(var i=t.children,o,s=-1,l=i.length,u=t.value&&(r-e)/t.value;++s0)throw new Error("cycle");return l}return n.id=function(r){return arguments.length?(t=zn(r),n):t},n.parentId=function(r){return arguments.length?(e=zn(r),n):e},n}function sv(t,e){return t.parent===e.parent?1:2}function Mr(t){var e=t.children;return e?e[0]:t.t}function Tr(t){var e=t.children;return e?e[e.length-1]:t.t}function uv(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 cv(t){for(var e=0,n=0,r=t.children,a=r.length,i;--a>=0;)i=r[a],i.z+=e,i.m+=e,e+=i.s+(n+=i.c)}function fv(t,e,n){return t.a.parent===e.parent?t.a:n}function Bn(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}Bn.prototype=Object.create(Je.prototype);function dv(t){for(var e=new Bn(t,0),n,r=[e],a,i,o,s;n=r.pop();)if(i=n._.children)for(n.children=new Array(s=i.length),o=s-1;o>=0;--o)r.push(a=n.children[o]=new Bn(i[o],o)),a.parent=n;return(e.parent=new Bn(null,0)).children=[e],e}function vv(){var t=sv,e=1,n=1,r=null;function a(u){var c=dv(u);if(c.eachAfter(i),c.parent.m=-c.z,c.eachBefore(o),r)u.eachBefore(l);else{var d=u,f=u,v=u;u.eachBefore(function(F){F.xf.x&&(f=F),F.depth>v.depth&&(v=F)});var p=d===f?1:t(d,f)/2,y=p-d.x,m=e/(f.x+p+y),x=n/(v.depth||1);u.eachBefore(function(F){F.x=(F.x+y)*m,F.y=F.depth*x})}return u}function i(u){var c=u.children,d=u.parent.children,f=u.i?d[u.i-1]:null;if(c){cv(u);var v=(c[0].z+c[c.length-1].z)/2;f?(u.z=f.z+t(u._,f._),u.m=u.z-v):u.z=v}else f&&(u.z=f.z+t(u._,f._));u.parent.A=s(u,f,u.parent.A||d[0])}function o(u){u._.x=u.z+u.parent.m,u.m+=u.parent.m}function s(u,c,d){if(c){for(var f=u,v=u,p=c,y=f.parent.children[0],m=f.m,x=v.m,F=p.m,w=y.m,S;p=Tr(p),f=Mr(f),p&&f;)y=Mr(y),v=Tr(v),v.a=u,S=p.z+F-f.z-m+t(p._,f._),S>0&&(uv(fv(p,u,d),u,S),m+=S,x+=S),F+=p.m,m+=f.m,w+=y.m,x+=v.m;p&&!Tr(v)&&(v.t=p,v.m+=F-x),f&&!Mr(y)&&(y.t=f,y.m+=m-w,d=u)}return d}function l(u){u.x*=e,u.y=u.depth*n}return a.separation=function(u){return arguments.length?(t=u,a):t},a.size=function(u){return arguments.length?(r=!1,e=+u[0],n=+u[1],a):r?null:[e,n]},a.nodeSize=function(u){return arguments.length?(r=!0,e=+u[0],n=+u[1],a):r?[e,n]:null},a}function Gn(t,e,n,r,a){for(var i=t.children,o,s=-1,l=i.length,u=t.value&&(a-n)/t.value;++sF&&(F=u),O=m*m*_,w=Math.max(F/O,O/x),w>S){m-=u;break}S=w}o.push(l={value:m,dice:v1?r:1)},n}(Ji);function to(){var t=Qi,e=!1,n=1,r=1,a=[0],i=Ne,o=Ne,s=Ne,l=Ne,u=Ne;function c(f){return f.x0=f.y0=0,f.x1=n,f.y1=r,f.eachBefore(d),a=[0],e&&f.eachBefore(Yi),f}function d(f){var v=a[f.depth],p=f.x0+v,y=f.y0+v,m=f.x1-v,x=f.y1-v;m=f-1){var F=i[d];F.x0=p,F.y0=y,F.x1=m,F.y1=x;return}for(var w=u[d],S=v/2+w,_=d+1,O=f-1;_>>1;u[W]x-y){var et=v?(p*ft+m*X)/v:m;c(d,_,X,p,y,et,x),c(_,f,ft,et,y,m,x)}else{var Y=v?(y*ft+x*X)/v:x;c(d,_,X,p,y,m,Y),c(_,f,ft,p,Y,m,x)}}}function pv(t,e,n,r,a){(t.depth&1?Gn:cn)(t,e,n,r,a)}var gv=function t(e){function n(r,a,i,o,s){if((l=r._squarify)&&l.ratio===e)for(var l,u,c,d,f=-1,v,p=l.length,y=r.value;++f1?r:1)},n}(Ji),yv={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(t,e){return e.value-t.value},ratio:.5*(1+Math.sqrt(5))};function xv(t,e){return t==="treemapSquarify"?tt[t].ratio(e):tt[t]}function eo(t,e){e=(0,h.f0)({},yv,e);var n=e.as;if(!(0,h.kJ)(n)||n.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var r;try{r=xr(e)}catch(u){console.warn(u)}var a=xv(e.tile,e.ratio),i=function(u){return to().tile(a).size(e.size).round(e.round).padding(e.padding).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft)(je(u).sum(function(c){return e.ignoreParentValue&&c.children?0:c[r]}).sort(e.sort))},o=i(t),s=n[0],l=n[1];return o.each(function(u){u[s]=[u.x0,u.x1,u.x1,u.x0],u[l]=[u.y1,u.y1,u.y0,u.y0],["x0","x1","y0","y1"].forEach(function(c){n.indexOf(c)===-1&&delete u[c]})}),mr(o)}function no(t){var e=t.data,n=t.colorField,r=t.rawFields,a=t.hierarchyConfig,i=a===void 0?{}:a,o=i.activeDepth,s={partition:$d,treemap:eo},l=t.seriesField,u=t.type||"partition",c=s[u](e,(0,g.pi)((0,g.pi)({field:l||"value"},(0,h.CE)(i,["activeDepth"])),{type:"hierarchy.".concat(u),as:["x","y"]})),d=[];return c.forEach(function(f){var v,p,y,m,x,F;if(f.depth===0||o>0&&f.depth>o)return null;for(var w=f.data.name,S=(0,g.pi)({},f);S.depth>1;)w="".concat((p=S.parent.data)===null||p===void 0?void 0:p.name," / ").concat(w),S=S.parent;var _=(0,g.pi)((0,g.pi)((0,g.pi)({},U(f.data,(0,g.ev)((0,g.ev)([],r||[],!0),[i.field],!1))),(v={},v[un]=w,v[Dr]=S.data.name,v)),f);l&&(_[l]=f.data[l]||((m=(y=f.parent)===null||y===void 0?void 0:y.data)===null||m===void 0?void 0:m[l])),n&&(_[n]=f.data[n]||((F=(x=f.parent)===null||x===void 0?void 0:x.data)===null||F===void 0?void 0:F[n])),_.ext=i,_[ln]={hierarchyConfig:i,colorField:n,rawFields:r},d.push(_)}),d}function mv(t){var e=t.chart,n=t.options,r=n.color,a=n.colorField,i=a===void 0?Dr:a,o=n.sunburstStyle,s=n.rawFields,l=s===void 0?[]:s,u=n.shape,c=no(n);e.data(c);var d;return o&&(d=function(f){return b({},{fillOpacity:Math.pow(.85,f.depth)},(0,h.mf)(o)?o(f):o)}),Dn(b({},t,{options:{xField:"x",yField:"y",seriesField:i,rawFields:(0,h.jj)((0,g.ev)((0,g.ev)([],Hd,!0),l,!0)),polygon:{color:r,style:d,shape:u}}})),t}function Fv(t){var e=t.chart;return e.axis(!1),t}function bv(t){var e=t.chart,n=t.options,r=n.label,a=Et(e,"polygon");if(!r)a.label(!1);else{var i=r.fields,o=i===void 0?["name"]:i,s=r.callback,l=(0,g._T)(r,["fields","callback"]);a.label({fields:o,callback:s,cfg:P(l)})}return t}function Sv(t){var e=t.chart,n=t.options,r=n.innerRadius,a=n.radius,i=n.reflect,o=e.coordinate({type:"polar",cfg:{innerRadius:r,radius:a}});return i&&o.reflect(i),t}function _v(t){var e,n=t.options,r=n.hierarchyConfig,a=n.meta;return N(qt({},(e={},e[Xi]=(0,h.U2)(a,(0,h.U2)(r,["field"],"value")),e)))(t)}function wv(t){var e=t.chart,n=t.options,r=n.tooltip;if(r===!1)e.tooltip(!1);else{var a=r;(0,h.U2)(r,"fields")||(a=b({},{customItems:function(i){return i.map(function(o){var s=(0,h.U2)(e.getOptions(),"scales"),l=(0,h.U2)(s,[un,"formatter"],function(c){return c}),u=(0,h.U2)(s,[Xi,"formatter"],function(c){return c});return(0,g.pi)((0,g.pi)({},o),{name:l(o.data[un]),value:u(o.data.value)})})}},a)),e.tooltip(a)}return t}function Av(t){var e=t.drilldown,n=t.interactions,r=n===void 0?[]:n;return e!=null&&e.enabled?b({},t,{interactions:(0,g.ev)((0,g.ev)([],r,!0),[{type:"drill-down",cfg:{drillDownConfig:e,transformData:no}}],!1)}):t}function Dv(t){var e=t.chart,n=t.options,r=n.drilldown;return zt({chart:e,options:Av(n)}),r!=null&&r.enabled&&(e.appendPadding=at(e.appendPadding,(0,h.U2)(r,["breadCrumb","position"]))),t}function Mv(t){return N(At,ue("sunburstStyle"),mv,Fv,_v,Ie,Sv,wv,bv,Dv,It,Wt())(t)}var vg=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="sunburst",n}return e.getDefaultOptions=function(){return Xd},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Mv},e.SUNBURST_ANCESTOR_FIELD=Dr,e.SUNBURST_PATH_FIELD=un,e.NODE_ANCESTORS_FIELD=gr,e}(lt);function ro(t,e){if((0,h.kJ)(t))return t.find(function(n){return n.type===e})}function ao(t,e){var n=ro(t,e);return n&&n.enable!==!1}function Er(t){var e=t.interactions,n=t.drilldown;return(0,h.U2)(n,"enabled")||ao(e,"treemap-drill-down")}function Tv(t){var e=t.interactions["drill-down"];if(e){var n=e.context.actions.find(function(r){return r.name==="drill-down-action"});n.reset()}}function kr(t){var e=t.data,n=t.colorField,r=t.enableDrillDown,a=t.hierarchyConfig,i=eo(e,(0,g.pi)((0,g.pi)({},a),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),o=[];return i.forEach(function(s){if(s.depth===0||r&&s.depth!==1||!r&&s.children)return null;var l=s.ancestors().map(function(f){return{data:f.data,height:f.height,value:f.value}}),u=r&&(0,h.kJ)(e.path)?l.concat(e.path.slice(1)):l,c=Object.assign({},s.data,(0,g.pi)({x:s.x,y:s.y,depth:s.depth,value:s.value,path:u},s));if(!s.data[n]&&s.parent){var d=s.ancestors().find(function(f){return f.data[n]});c[n]=d==null?void 0:d.data[n]}else c[n]=s.data[n];c[ln]={hierarchyConfig:a,colorField:n,enableDrillDown:r},o.push(c)}),o}function Ev(t){var e=t.options,n=e.colorField;return b({options:{rawFields:["value"],tooltip:{fields:["name","value",n,"path"],formatter:function(r){return{name:r.name,value:r.value}}}}},t)}function kv(t){var e=t.chart,n=t.options,r=n.color,a=n.colorField,i=n.rectStyle,o=n.hierarchyConfig,s=n.rawFields,l=kr({data:n.data,colorField:n.colorField,enableDrillDown:Er(n),hierarchyConfig:o});return e.data(l),Dn(b({},t,{options:{xField:"x",yField:"y",seriesField:a,rawFields:s,polygon:{color:r,style:i}}})),e.coordinate().reflect("y"),t}function Iv(t){var e=t.chart;return e.axis(!1),t}function Ov(t){var e=t.drilldown,n=t.interactions,r=n===void 0?[]:n,a=Er(t);return a?b({},t,{interactions:(0,g.ev)((0,g.ev)([],r,!0),[{type:"drill-down",cfg:{drillDownConfig:e,transformData:kr}}],!1)}):t}function Pv(t){var e=t.chart,n=t.options,r=n.interactions,a=n.drilldown;zt({chart:e,options:Ov(n)});var i=ro(r,"view-zoom");i&&(i.enable!==!1?e.getCanvas().on("mousewheel",function(s){s.preventDefault()}):e.getCanvas().off("mousewheel"));var o=Er(n);return o&&(e.appendPadding=at(e.appendPadding,(0,h.U2)(a,["breadCrumb","position"]))),t}function Cv(t){return N(Ev,At,ue("rectStyle"),kv,Iv,Ie,Yt,Pv,It,Wt())(t)}var Rv={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"\u521D\u59CB",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}},hg=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="treemap",n}return e.getDefaultOptions=function(){return Rv},e.prototype.changeData=function(n){var r=this.options,a=r.colorField,i=r.interactions,o=r.hierarchyConfig;this.updateOption({data:n});var s=kr({data:n,colorField:a,enableDrillDown:ao(i,"treemap-drill-down"),hierarchyConfig:o});this.chart.changeData(s),Tv(this.chart)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return Cv},e}(lt),Ae="id",Ir="path",Lv={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(t){return{name:t.id,value:t.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]};function Zn(t){if(t){var e=t.geometries[0].elements;e.forEach(function(n){n.shape.toFront()})}}var zv=(0,D.gj)("element-active"),Nv=function(t){(0,g.ZT)(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.syncElementsPos=function(){Zn(this.context.view)},e.prototype.active=function(){t.prototype.active.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(zv),Uv=(0,D.gj)("element-highlight"),Vv=function(t){(0,g.ZT)(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.syncElementsPos=function(){Zn(this.context.view)},e.prototype.highlight=function(){t.prototype.highlight.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.clear=function(){t.prototype.clear.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(Uv),Wv=(0,D.gj)("element-selected"),Bv=(0,D.gj)("element-single-selected"),Gv=function(t){(0,g.ZT)(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.syncElementsPos=function(){Zn(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(Wv),Zv=function(t){(0,g.ZT)(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.syncElementsPos=function(){Zn(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(Bv);(0,D.zl)("venn-element-active",Nv),(0,D.zl)("venn-element-highlight",Vv),(0,D.zl)("venn-element-selected",Gv),(0,D.zl)("venn-element-single-selected",Zv),(0,D.w_)("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),(0,D.w_)("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),(0,D.w_)("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),(0,D.w_)("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),(0,D.w_)("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]}),(0,D.w_)("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]});var qv=function(t){(0,g.ZT)(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getLabelPoint=function(n,r,a){var i=n.data,o=i.x,s=i.y,l=n.customLabelInfo,u=l.offsetX,c=l.offsetY;return{content:n.content[a],x:o+u,y:s+c}},e}(D.Lc);(0,D.gp)("venn",qv);var Hv=L(12611),Xv=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,Yv=/[^\s\,]+/gi;function pg(t){var e=t||[];if(isArray(e))return e;if(isString(e))return e=e.match(Xv),each(e,function(n,r){if(n=n.match(Yv),n[0].length>1){var a=n[0].charAt(0);n.splice(1,0,n[0].substr(1)),n[0]=a}each(n,function(i,o){isNaN(i)||(n[o]=+i)}),e[r]=n}),e}var gg=null;function $v(t,e,n){var r=null,a=n;return e=0;l--)o=i[l].index,i[l].type==="add"?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}if(r=t.length,r2&&(n.push([a].concat(o.splice(0,2))),s="l",a=a==="m"?"l":"L"),s==="o"&&o.length===1&&n.push([a,o[0]]),s==="r")n.push([a].concat(o));else for(;o.length>=e[s]&&(n.push([a].concat(o.splice(0,e[s]))),!!e[s]););return""}),n}var th=/[a-z]/;function io(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function xg(t){var e=parsePathString(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,r=0;r=0){n=!0;break}}if(!n)return e;var i=[],o=0,s=0,l=0,u=0,c=0,d,f,v=e[0];(v[0]==="M"||v[0]==="m")&&(o=+v[1],s=+v[2],l=o,u=s,c++,i[0]=["M",o,s]);for(var r=c,p=e.length;r1&&(i=1),i<-1&&(i=-1),a*Math.acos(i)},nh=function(t,e,n,r,a,i,o,s,l,u,c,d){var f=Math.pow(a,2),v=Math.pow(i,2),p=Math.pow(c,2),y=Math.pow(d,2),m=f*v-f*y-v*p;m<0&&(m=0),m/=f*y+v*p,m=Math.sqrt(m)*(o===s?-1:1);var x=m*a/i*d,F=m*-i/a*c,w=u*x-l*F+(t+n)/2,S=l*x+u*F+(e+r)/2,_=(c-x)/a,O=(d-F)/i,W=(-c-x)/a,X=(-d-F)/i,ft=oo(1,0,_,O),et=oo(_,O,W,X);return s===0&&et>0&&(et-=dn),s===1&&et<0&&(et+=dn),[w,S,ft,et]},rh=function(t){var e=t.px,n=t.py,r=t.cx,a=t.cy,i=t.rx,o=t.ry,s=t.xAxisRotation,l=s===void 0?0:s,u=t.largeArcFlag,c=u===void 0?0:u,d=t.sweepFlag,f=d===void 0?0:d,v=[];if(i===0||o===0)return[{x1:0,y1:0,x2:0,y2:0,x:r,y:a}];var p=Math.sin(l*dn/360),y=Math.cos(l*dn/360),m=y*(e-r)/2+p*(n-a)/2,x=-p*(e-r)/2+y*(n-a)/2;if(m===0&&x===0)return[{x1:0,y1:0,x2:0,y2:0,x:r,y:a}];i=Math.abs(i),o=Math.abs(o);var F=Math.pow(m,2)/Math.pow(i,2)+Math.pow(x,2)/Math.pow(o,2);F>1&&(i*=Math.sqrt(F),o*=Math.sqrt(F));var w=nh(e,n,r,a,i,o,c,f,p,y,m,x),S=w[0],_=w[1],O=w[2],W=w[3],X=Math.abs(W)/(dn/4);Math.abs(1-X)<1e-7&&(X=1);var ft=Math.max(Math.ceil(X),1);W/=ft;for(var et=0;et7){t[n].shift();for(var r=t[n],a=n;r.length;)e[n]="A",t.splice(a+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}var lo=function(t,e,n,r,a){var i=-3*e+9*n-9*r+3*a,o=t*i+6*e-12*n+6*r;return t*o-3*e+3*n},so=function(t,e,n,r,a,i,o,s,l){l===null&&(l=1),l=l>1?1:l<0?0:l;for(var u=l/2,c=12,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],v=0,p=0;p0&&v<1&&l.push(v);continue}var y=d*d-4*f*c,m=Math.sqrt(y);if(!(y<0)){var x=(-d+m)/(2*c);x>0&&x<1&&l.push(x);var F=(-d-m)/(2*c);F>0&&F<1&&l.push(F)}}for(var w=l.length,S=w,_;w--;)v=l[w],_=1-v,u[0][w]=_*_*_*t+3*_*_*v*n+3*_*v*v*a+v*v*v*o,u[1][w]=_*_*_*e+3*_*_*v*r+3*_*v*v*i+v*v*v*s;return u[0][S]=t,u[1][S]=e,u[0][S+1]=o,u[1][S+1]=s,u[0].length=u[1].length=S+2,{min:{x:Math.min.apply(0,u[0]),y:Math.min.apply(0,u[1])},max:{x:Math.max.apply(0,u[0]),y:Math.max.apply(0,u[1])}}},oh=function(t,e,n,r,a,i,o,s){if(!(Math.max(t,n)Math.max(a,o)||Math.max(e,r)Math.max(i,s))){var l=(t*r-e*n)*(a-o)-(t-n)*(a*s-i*o),u=(t*r-e*n)*(i-s)-(e-r)*(a*s-i*o),c=(t-n)*(i-s)-(e-r)*(a-o);if(c){var d=l/c,f=u/c,v=+d.toFixed(2),p=+f.toFixed(2);if(!(v<+Math.min(t,n).toFixed(2)||v>+Math.max(t,n).toFixed(2)||v<+Math.min(a,o).toFixed(2)||v>+Math.max(a,o).toFixed(2)||p<+Math.min(e,r).toFixed(2)||p>+Math.max(e,r).toFixed(2)||p<+Math.min(i,s).toFixed(2)||p>+Math.max(i,s).toFixed(2)))return{x:d,y:f}}}},Ee=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},Pr=function(t,e,n,r){return t===null&&(t=e=n=r=0),e===null&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:rectPath(t,e,n,r),vb:[t,e,n,r].join(" ")}},lh=function(t,e){return t=Pr(t),e=Pr(e),Ee(e,t.x,t.y)||Ee(e,t.x2,t.y)||Ee(e,t.x,t.y2)||Ee(e,t.x2,t.y2)||Ee(t,e.x,e.y)||Ee(t,e.x2,e.y)||Ee(t,e.x,e.y2)||Ee(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)},uo=function(t,e,n,r,a,i,o,s){isArray(t)||(t=[t,e,n,r,a,i,o,s]);var l=ih.apply(null,t);return Pr(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},co=function(t,e,n,r,a,i,o,s,l){var u=1-l,c=Math.pow(u,3),d=Math.pow(u,2),f=l*l,v=f*l,p=c*t+d*3*l*n+u*3*l*l*a+v*o,y=c*e+d*3*l*r+u*3*l*l*i+v*s,m=t+2*l*(n-t)+f*(a-2*n+t),x=e+2*l*(r-e)+f*(i-2*r+e),F=n+2*l*(a-n)+f*(o-2*a+n),w=r+2*l*(i-r)+f*(s-2*i+r),S=u*t+l*n,_=u*e+l*r,O=u*a+l*o,W=u*i+l*s,X=90-Math.atan2(m-F,x-w)*180/Math.PI;return{x:p,y,m:{x:m,y:x},n:{x:F,y:w},start:{x:S,y:_},end:{x:O,y:W},alpha:X}},sh=function(t,e,n){var r=uo(t),a=uo(e);if(!lh(r,a))return n?0:[];for(var i=so.apply(0,t),o=so.apply(0,e),s=~~(i/8),l=~~(o/8),u=[],c=[],d={},f=n?0:[],v=0;v=0&&W<=1&&X>=0&&X<=1&&(n?f++:f.push({x:O.x,y:O.y,t1:W,t2:X}))}}return f},uh=function(t,e,n){t=path2Curve(t),e=path2Curve(e);for(var r,a,i,o,s,l,u,c,d,f,v=n?0:[],p=0,y=t.length;p1){var o=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}function ch(t,e){var n=!1;return each(t,function(r){if(getLineIntersect(r.from,r.to,e.from,e.to))return n=!0,!1}),n}function ho(t){var e=t.map(function(r){return r[0]}),n=t.map(function(r){return r[1]});return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}function fh(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxYe?e:t},lighten:function(t,e){return t>e?t:e},dodge:function(t,e){return t===255?255:(t=255*(e/255)/(1-t/255),t>255?255:t)},burn:function(t,e){return e===255?255:t===0?0:255*(1-Math.min(1,(1-e/255)/(t/255)))}},hh=function(t){if(!po[t])throw new Error("unknown blend mode "+t);return po[t]};function ph(t,e,n){n===void 0&&(n="normal");var r=vh(hh(n))(qn(t),qn(e)),a=qn(t),i=a[0],o=a[1],s=a[2],l=a[3],u=qn(e),c=u[0],d=u[1],f=u[2],v=u[3],p=Number((l+v*(1-l)).toFixed(2)),y=Math.round((l*(1-v)*(i/255)+l*v*(r[0]/255)+(1-l)*v*(c/255))/p*255),m=Math.round((l*(1-v)*(o/255)+l*v*(r[1]/255)+(1-l)*v*(d/255))/p*255),x=Math.round((l*(1-v)*(s/255)+l*v*(r[2]/255)+(1-l)*v*(f/255))/p*255);return"rgba(".concat(y,", ").concat(m,", ").concat(x,", ").concat(p,")")}function qn(t){var e=t.replace("/s+/g",""),n;return typeof e=="string"&&!e.startsWith("rgba")&&!e.startsWith("#")?n=Cr.Z.rgb2arr(Cr.Z.toRGB(e)).concat([1]):(e.startsWith("rgba")&&(n=e.replace("rgba(","").replace(")","").split(",")),e.startsWith("#")&&(n=Cr.Z.rgb2arr(e).concat([1])),n.map(function(r,a){return a===3?Number(r):r|0}))}var me=L(41995),go=1e-10;function Rr(t,e){var n=yh(t),r=n.filter(function(W){return gh(W,t)}),a=0,i=0,o,s=[];if(r.length>1){var l=mo(r);for(o=0;o-1){var y=t[d.parentIndex[p]],m=Math.atan2(d.x-y.x,d.y-y.y),x=Math.atan2(c.x-y.x,c.y-y.y),F=x-m;F<0&&(F+=2*Math.PI);var w=x-F/2,S=ge(f,{x:y.x+y.radius*Math.sin(w),y:y.y+y.radius*Math.cos(w)});S>y.radius*2&&(S=y.radius*2),(v===null||v.width>S)&&(v={circle:y,width:S,p1:d,p2:c})}v!==null&&(s.push(v),a+=Lr(v.circle.radius,v.width),c=d)}}else{var _=t[0];for(o=1;oMath.abs(_.radius-t[o].radius)){O=!0;break}O?a=i=0:(a=_.radius*_.radius*Math.PI,s.push({circle:_,p1:{x:_.x,y:_.y+_.radius},p2:{x:_.x-go,y:_.y+_.radius},width:_.radius*2}))}return i/=2,e&&(e.area=a+i,e.arcArea=a,e.polygonArea=i,e.arcs=s,e.innerPoints=r,e.intersectionPoints=n),a+i}function gh(t,e){for(var n=0;ne[n].radius+go)return!1;return!0}function yh(t){for(var e=[],n=0;n=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);var r=t-(n*n-e*e+t*t)/(2*n),a=e-(n*n-t*t+e*e)/(2*n);return Lr(t,r)+Lr(e,a)}function xo(t,e){var n=ge(t,e),r=t.radius,a=e.radius;if(n>=r+a||n<=Math.abs(r-a))return[];var i=(r*r-a*a+n*n)/(2*n),o=Math.sqrt(r*r-i*i),s=t.x+i*(e.x-t.x)/n,l=t.y+i*(e.y-t.y)/n,u=-(e.y-t.y)*(o/n),c=-(e.x-t.x)*(o/n);return[{x:s+u,y:l-c},{x:s-u,y:l+c}]}function mo(t){for(var e={x:0,y:0},n=0;n=o&&(i=n[r],o=s)}var l=(0,me.nelderMead)(function(f){return-1*zr({x:f[0],y:f[1]},t,e)},[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,u={x:l[0],y:l[1]},c=!0;for(r=0;rt[r].radius){c=!1;break}for(r=0;r0&&console.log("WARNING: area "+i+" not represented on screen")}return n}function Fh(t,e,n){var r=[],a=t-n,i=e;return r.push("M",a,i),r.push("A",n,n,0,1,0,a+2*n,i),r.push("A",n,n,0,1,0,a,i),r.join(" ")}function Ag(t){var e=t.split(" ");return{x:parseFloat(e[1]),y:parseFloat(e[2]),radius:-parseFloat(e[4])}}function bh(t){var e={};Rr(t,e);var n=e.arcs;if(n.length===0)return"M 0 0";if(n.length==1){var r=n[0].circle;return Fh(r.x,r.y,r.radius)}else{for(var a=[` +M`,n[0].p2.x,n[0].p2.y],i=0;is;a.push(` +A`,s,s,0,l?1:0,1,o.p1.x,o.p1.y)}return a.join(" ")}}function Sh(t,e){e=e||{},e.maxIterations=e.maxIterations||500;var n=e.initialLayout||Dh,r=e.lossFunction||Ur;t=_h(t);var a=n(t,e),i=[],o=[],s;for(s in a)a.hasOwnProperty(s)&&(i.push(a[s].x),i.push(a[s].y),o.push(s));for(var l=(0,me.nelderMead)(function(d){for(var f={},v=0;vu?1:-1}),r=0;r=Math.min(e[o].size,e[s].size)?d=1:i.size<=1e-10&&(d=-1),a[o][s]=a[s][o]=d}),{distances:r,constraints:a}}function Ah(t,e,n,r){var a=0,i;for(i=0;i0&&p<=d||f<0&&p>=d||(a+=2*y*y,e[2*i]+=4*y*(o-u),e[2*i+1]+=4*y*(s-c),e[2*l]+=4*y*(u-o),e[2*l+1]+=4*y*(c-s))}return a}function Dh(t,e){var n=Th(t,e),r=e.lossFunction||Ur;if(t.length>=8){var a=Mh(t,e),i=r(a,t),o=r(n,t);i+1e-8=Math.min(r[c].size,r[d].size)&&(u=0),a[c].push({set:d,size:l.size,weight:u}),a[d].push({set:c,size:l.size,weight:u})}var f=[];for(i in a)if(a.hasOwnProperty(i)){for(var v=0,o=0;o0){var a=t[0].x,i=t[0].y;for(r=0;r1){var s=Math.atan2(t[1].x,t[1].y)-e,l=void 0,u=void 0,c=Math.cos(s),d=Math.sin(s);for(r=0;r2){for(var f=Math.atan2(t[2].x,t[2].y)-e;f<0;)f+=2*Math.PI;for(;f>2*Math.PI;)f-=2*Math.PI;if(f>Math.PI){var v=t[1].y/(1e-10+t[1].x);for(r=0;r1)throw new Error("quantiles must be between 0 and 1");return e===1?t[t.length-1]:e===0?t[0]:n%1!==0?t[Math.ceil(n)-1]:t.length%2===0?(t[n-1]+t[n])/2:t[n]}function vn(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function Hn(t,e,n,r){for(n=n||0,r=r||t.length-1;r>n;){if(r-n>600){var a=r-n+1,i=e-n+1,o=Math.log(a),s=.5*Math.exp(2*o/3),l=.5*Math.sqrt(o*s*(a-s)/a);i-a/2<0&&(l*=-1);var u=Math.max(n,Math.floor(e-i*s/a+l)),c=Math.min(r,Math.floor(e+(a-i)*s/a+l));Hn(t,e,u,c)}var d=t[e],f=n,v=r;for(vn(t,n,e),t[r]>d&&vn(t,n,r);fd;)v--}t[n]===d?vn(t,n,v):(v++,vn(t,v,r)),v<=e&&(n=v+1),e<=v&&(r=v-1)}}function hn(t,e){var n=t.slice();if(Array.isArray(e)){Kh(n,e);for(var r=[],a=0;a0?c:d},m=b({},t,{options:{xField:a,yField:pe,seriesField:a,rawFields:[i,$n,Gr,pe],widthRatio:l,interval:{style:u,shape:v||"waterfall",color:y}}}),x=ee(m).ext,F=x.geometry;return F.customInfo((0,g.pi)((0,g.pi)({},p),{leaderLine:s})),t}function pp(t){var e,n,r=t.options,a=r.xAxis,i=r.yAxis,o=r.xField,s=r.yField,l=r.meta,u=b({},{alias:s},(0,h.U2)(l,s));return N(qt((e={},e[o]=a,e[s]=i,e[pe]=i,e),b({},l,(n={},n[pe]=u,n[$n]=u,n[Br]=u,n))))(t)}function gp(t){var e=t.chart,n=t.options,r=n.xAxis,a=n.yAxis,i=n.xField,o=n.yField;return r===!1?e.axis(i,!1):e.axis(i,r),a===!1?(e.axis(o,!1),e.axis(pe,!1)):(e.axis(o,a),e.axis(pe,a)),t}function yp(t){var e=t.chart,n=t.options,r=n.legend,a=n.total,i=n.risingFill,o=n.fallingFill,s=n.locale,l=_n(s);if(r===!1)e.legend(!1);else{var u=[{name:l.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:i}}},{name:l.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:o}}}];a&&u.push({name:a.label||"",value:"total",marker:{symbol:"square",style:b({},{r:5},(0,h.U2)(a,"style"))}}),e.legend(b({},{custom:!0,position:"top",items:u},r)),e.removeInteraction("legend-filter")}return t}function xp(t){var e=t.chart,n=t.options,r=n.label,a=n.labelMode,i=n.xField,o=Et(e,"interval");if(!r)o.label(!1);else{var s=r.callback,l=(0,g._T)(r,["callback"]);o.label({fields:a==="absolute"?[Br,i]:[$n,i],callback:s,cfg:P(l)})}return t}function mp(t){var e=t.chart,n=t.options,r=n.tooltip,a=n.xField,i=n.yField;if(r!==!1){e.tooltip((0,g.pi)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[i]},r));var o=e.geometries[0];r!=null&&r.formatter?o.tooltip("".concat(a,"*").concat(i),r.formatter):o.tooltip(i)}else e.tooltip(!1);return t}function Fp(t){return N(vp,At,hp,pp,gp,yp,mp,xp,De,zt,It,Wt())(t)}var Eg=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="waterfall",n}return e.getDefaultOptions=function(){return up},e.prototype.changeData=function(n){var r=this.options,a=r.xField,i=r.yField,o=r.total;this.updateOption({data:n}),this.chart.changeData(Oo(n,a,i,o))},e.prototype.getSchemaAdaptor=function(){return Fp},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(lt),Zr="color",bp=b({},lt.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",Zr],formatter:function(t){return{name:t.text,value:t.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}}),Sp={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function _p(t,e){return e=(0,h.f0)({},Sp,e),wp(t,e)}function wp(t,e){var n=zp();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach(function(l){(0,h.UM)(e[l])||n[l](e[l])}),n.words(t),e.imageMask&&n.createMask(e.imageMask);var r=n.start(),a=r._tags;a.forEach(function(l){l.x+=e.size[0]/2,l.y+=e.size[1]/2});var i=e.size,o=i[0],s=i[1];return a.push({text:"",value:0,x:0,y:0,opacity:0}),a.push({text:"",value:0,x:o,y:s,opacity:0}),a}var qr=Math.PI/180,pn=64,jn=2048;function Ap(t){return t.text}function Dp(){return"serif"}function Po(){return"normal"}function Mp(t){return t.value}function Tp(){return~~(Math.random()*2)*90}function Ep(){return 1}function kp(t,e,n,r){if(!e.sprite){var a=t.context,i=t.ratio;a.clearRect(0,0,(pn<<5)/i,jn/i);var o=0,s=0,l=0,u=n.length;for(--r;++r>5<<5,d=~~Math.max(Math.abs(y+m),Math.abs(y-m))}else c=c+31>>5<<5;if(d>l&&(l=d),o+c>=pn<<5&&(o=0,s+=l,l=0),s+d>=jn)break;a.translate((o+(c>>1))/i,(s+(d>>1))/i),e.rotate&&a.rotate(e.rotate*qr),a.fillText(e.text,0,0),e.padding&&(a.lineWidth=2*e.padding,a.strokeText(e.text,0,0)),a.restore(),e.width=c,e.height=d,e.xoff=o,e.yoff=s,e.x1=c>>1,e.y1=d>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,o+=c}for(var F=a.getImageData(0,0,(pn<<5)/i,jn/i).data,w=[];--r>=0;)if(e=n[r],!!e.hasText){for(var c=e.width,S=c>>5,d=e.y1-e.y0,_=0;_>5),et=F[(s+X)*(pn<<5)+(o+_)<<2]?1<<31-_%32:0;w[ft]|=et,O|=et}O?W=X:(e.y0++,d--,X--,s++)}e.y1=e.y0+W,e.sprite=w.slice(0,(e.y1-e.y0)*S)}}}function Ip(t,e,n){n>>=5;for(var r=t.sprite,a=t.width>>5,i=t.x-(a<<4),o=i&127,s=32-o,l=t.y1-t.y0,u=(t.y+t.y0)*n+(i>>5),c,d=0;d>>o:0))&e[u+f])return!0;u+=n}return!1}function Op(t,e){var 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 Pp(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0e[0].y&&t.y+t.y0>5)*t[1]),S=l.length,_=[],O=l.map(function(et,Y,_t){return et.text=c.call(this,et,Y,_t),et.font=e.call(this,et,Y,_t),et.style=d.call(this,et,Y,_t),et.weight=r.call(this,et,Y,_t),et.rotate=a.call(this,et,Y,_t),et.size=~~n.call(this,et,Y,_t),et.padding=i.call(this,et,Y,_t),et}).sort(function(et,Y){return Y.size-et.size}),W=-1,X=v.board?[{x:0,y:0},{x:m,y:x}]:null;ft();function ft(){for(var et=Date.now();Date.now()-et>1,Y.y=x*(s()+.5)>>1,kp(F,Y,O,W),Y.hasText&&y(w,Y,X)&&(_.push(Y),X?v.hasImage||Op(X,Y):X=[{x:Y.x+Y.x0,y:Y.y+Y.y0},{x:Y.x+Y.x1,y:Y.y+Y.y1}],Y.x-=t[0]>>1,Y.y-=t[1]>>1)}v._tags=_,v._bounds=X}return v};function p(m){m.width=m.height=1;var x=Math.sqrt(m.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,1,1).data.length>>2);m.width=(pn<<5)/x,m.height=jn/x;var F=m.getContext("2d",{willReadFrequently:!0});return F.fillStyle=F.strokeStyle="red",F.textAlign="center",{context:F,ratio:x}}function y(m,x,F){for(var w=x.x,S=x.y,_=Math.sqrt(t[0]*t[0]+t[1]*t[1]),O=o(t),W=s()<.5?1:-1,X,ft=-W,et,Y;(X=O(ft+=W))&&(et=~~X[0],Y=~~X[1],!(Math.min(Math.abs(et),Math.abs(Y))>=_));)if(x.x=w+et,x.y=S+Y,!(x.x+x.x0<0||x.y+x.y0<0||x.x+x.x1>t[0]||x.y+x.y1>t[1])&&(!F||!Ip(x,m,t[0]))&&(!F||Pp(x,F))){for(var _t=x.sprite,Nt=x.width>>5,Rt=t[0]>>5,$t=x.x-(Nt<<4),k=$t&127,G=32-k,Q=x.y1-x.y0,rt=void 0,$=(x.y+x.y0)*Rt+($t>>5),it=0;it>>k:0);$+=Rt}return delete x.sprite,!0}return!1}return v.createMask=function(m){var x=document.createElement("canvas"),F=t[0],w=t[1];if(!(!F||!w)){var S=F>>5,_=Ro((F>>5)*w);x.width=F,x.height=w;var O=x.getContext("2d");O.drawImage(m,0,0,m.width,m.height,0,0,F,w);for(var W=O.getImageData(0,0,F,w).data,X=0;X>5),Y=X*F+ft<<2,_t=W[Y]>=250&&W[Y+1]>=250&&W[Y+2]>=250,Nt=_t?1<<31-ft%32:0;_[et]|=Nt}v.board=_,v.hasImage=!0}},v.timeInterval=function(m){u=m==null?1/0:m},v.words=function(m){l=m},v.size=function(m){t=[+m[0],+m[1]]},v.font=function(m){e=Fe(m)},v.fontWeight=function(m){r=Fe(m)},v.rotate=function(m){a=Fe(m)},v.spiral=function(m){o=Lp[m]||m},v.fontSize=function(m){n=Fe(m)},v.padding=function(m){i=Fe(m)},v.random=function(m){s=Fe(m)},v}function Lo(t){var e=t.options,n=t.chart,r=n,a=r.width,i=r.height,o=r.padding,s=r.appendPadding,l=r.ele,u=e.data,c=e.imageMask,d=e.wordField,f=e.weightField,v=e.colorField,p=e.wordStyle,y=e.timeInterval,m=e.random,x=e.spiral,F=e.autoFit,w=F===void 0?!0:F,S=e.placementStrategy;if(!u||!u.length)return[];var _=p.fontFamily,O=p.fontWeight,W=p.padding,X=p.fontSize,ft=Bp(u,f),et=[qp(ft),Hp(ft)],Y=u.map(function(Rt){return{text:Rt[d],value:Rt[f],color:Rt[v],datum:Rt}}),_t={imageMask:c,font:_,fontSize:Wp(X,et),fontWeight:O,size:Np({width:a,height:i,padding:o,appendPadding:s,autoFit:w,container:l}),padding:W,timeInterval:y,random:m,spiral:x,rotate:Gp(e)};if((0,h.mf)(S)){var Nt=Y.map(function(Rt,$t,k){return(0,g.pi)((0,g.pi)((0,g.pi)({},Rt),{hasText:!!Rt.text,font:Fe(_t.font)(Rt,$t,k),weight:Fe(_t.fontWeight)(Rt,$t,k),rotate:Fe(_t.rotate)(Rt,$t,k),size:Fe(_t.fontSize)(Rt,$t,k),style:"normal"}),S.call(n,Rt,$t,k))});return Nt.push({text:"",value:0,x:0,y:0,opacity:0}),Nt.push({text:"",value:0,x:_t.size[0],y:_t.size[1],opacity:0}),Nt}return _p(Y,_t)}function Np(t){var e=t.width,n=t.height,r=t.container,a=t.autoFit,i=t.padding,o=t.appendPadding;if(a){var s=Ut(r);e=s.width,n=s.height}e=e||400,n=n||400;var l=Up({padding:i,appendPadding:o}),u=l[0],c=l[1],d=l[2],f=l[3],v=[e-(f+c),n-(u+d)];return v}function Up(t){var e=H(t.padding),n=H(t.appendPadding),r=e[0]+n[0],a=e[1]+n[1],i=e[2]+n[2],o=e[3]+n[3];return[r,a,i,o]}function Vp(t){return new Promise(function(e,n){if(t instanceof HTMLImageElement){e(t);return}if((0,h.HD)(t)){var r=new Image;r.crossOrigin="anonymous",r.src=t,r.onload=function(){e(r)},r.onerror=function(){vt(gt.ERROR,!1,"image %s load failed !!!",t),n()};return}vt(gt.WARN,t===void 0,"The type of imageMask option must be String or HTMLImageElement."),n()})}function Wp(t,e){if((0,h.mf)(t))return t;if((0,h.kJ)(t)){var n=t[0],r=t[1];if(!e)return function(){return(r+n)/2};var a=e[0],i=e[1];return i===a?function(){return(r+n)/2}:function(s){var l=s.value;return(r-n)/(i-a)*(l-a)+n}}return function(){return t}}function Bp(t,e){return t.map(function(n){return n[e]}).filter(function(n){return typeof n=="number"&&!isNaN(n)})}function Gp(t){var e=Zp(t),n=e.rotation,r=e.rotationSteps;if(!(0,h.kJ)(n))return n;var a=n[0],i=n[1],o=r===1?0:(i-a)/(r-1);return function(){return i===a?i:Math.floor(Math.random()*r)*o}}function Zp(t){var e=t.wordStyle.rotationSteps;return e<1&&(vt(gt.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),e=1),{rotation:t.wordStyle.rotation,rotationSteps:e}}function qp(t){return Math.min.apply(Math,t)}function Hp(t){return Math.max.apply(Math,t)}function Xp(t){var e=t.chart,n=t.options,r=n.colorField,a=n.color,i=Lo(t);e.data(i);var o=b({},t,{options:{xField:"x",yField:"y",seriesField:r&&Zr,rawFields:(0,h.mf)(a)&&(0,g.ev)((0,g.ev)([],(0,h.U2)(n,"rawFields",[]),!0),["datum"],!1),point:{color:a,shape:"word-cloud"}}}),s=ce(o).ext;return s.geometry.label(!1),e.coordinate().reflect("y"),e.axis(!1),t}function Yp(t){return N(qt({x:{nice:!1},y:{nice:!1}}))(t)}function $p(t){var e=t.chart,n=t.options,r=n.legend,a=n.colorField;return r===!1?e.legend(!1):a&&e.legend(Zr,r),t}function jp(t){N(Xp,Yp,Yt,$p,zt,It,At,De)(t)}(0,D.Fj)("point","word-cloud",{draw:function(t,e){var n=t.x,r=t.y,a=e.addShape("text",{attrs:(0,g.pi)((0,g.pi)({},Jp(t)),{x:n,y:r})}),i=t.data.rotate;return typeof i=="number"&&D.Zr.rotate(a,i*Math.PI/180),a}});function Jp(t){return{fontSize:t.data.size,text:t.data.text,textAlign:"center",fontFamily:t.data.font,fontWeight:t.data.weight,fill:t.color||t.defaultStyle.stroke,textBaseline:"alphabetic"}}var kg=function(t){(0,g.ZT)(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="word-cloud",n}return e.getDefaultOptions=function(){return bp},e.prototype.changeData=function(n){this.updateOption({data:n}),this.options.imageMask?this.render():this.chart.changeData(Lo({chart:this.chart,options:this.options}))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.render=function(){var n=this;return new Promise(function(r){var a=n.options.imageMask;if(!a){t.prototype.render.call(n),r();return}var i=function(o){n.options=(0,g.pi)((0,g.pi)({},n.options),{imageMask:o||null}),t.prototype.render.call(n),r()};Vp(a).then(i).catch(i)})},e.prototype.getSchemaAdaptor=function(){return jp},e.prototype.triggerResize=function(){var n=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout(function(){t.prototype.triggerResize.call(n)}))},e}(lt),Ig=function(t){(0,g.ZT)(e,t);function e(n,r,a,i){var o=t.call(this,n,b({},i,r))||this;return o.type="g2-plot",o.defaultOptions=i,o.adaptor=a,o}return e.prototype.getDefaultOptions=function(){return this.defaultOptions},e.prototype.getSchemaAdaptor=function(){return this.adaptor},e}(lt),Og="2.4.31";$r("en-US",zo),$r("zh-CN",No);var Pg={scale:qt,legend:Ie,tooltip:Yt,annotation:Wt,interaction:zt,theme:At,animation:It}},86610:function(){"use strict"},28744:function(Gt,st){(function(L,tt){tt(st)})(this,function(L){"use strict";function tt(A,E){return D(A)||g(A,E)||h()}function D(A){if(Array.isArray(A))return A}function g(A,E){var P=[],I=!0,T=!1,M=void 0;try{for(var R=A[Symbol.iterator](),V;!(I=(V=R.next()).done)&&(P.push(V.value),!(E&&P.length===E));I=!0);}catch(H){T=!0,M=H}finally{try{!I&&R.return!=null&&R.return()}finally{if(T)throw M}}return P}function h(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function nt(A,E,P,I){A=A.filter(function(mt,pt){var kt=E(mt,pt),yt=P(mt,pt);return kt!=null&&isFinite(kt)&&yt!=null&&isFinite(yt)}),I&&A.sort(function(mt,pt){return E(mt)-E(pt)});for(var T=A.length,M=new Float64Array(T),R=new Float64Array(T),V=0,H=0,at,ut,ot,ht=0;htT&&(ut.splice(St+1,0,yt),ht=!0)}return ht}}function U(A,E,P,I){var T=I-A*A,M=Math.abs(T)<1e-24?0:(P-A*E)/T,R=E-M*A;return[R,M]}function Pt(){var A=function(M){return M[0]},E=function(M){return M[1]},P;function I(T){var M=0,R=0,V=0,H=0,at=0,ut=0,ot=P?+P[0]:1/0,ht=P?+P[1]:-1/0;gt(T,A,E,function(xt,Mt){var Vt=Math.log(Mt),B=xt*Mt;++M,R+=(Mt-R)/M,H+=(B-H)/M,ut+=(xt*B-ut)/M,V+=(Mt*Vt-V)/M,at+=(B*Vt-at)/M,P||(xtht&&(ht=xt))});var St=U(H/R,V/R,at/R,ut/R),mt=tt(St,2),pt=mt[0],kt=mt[1];pt=Math.exp(pt);var yt=function(Mt){return pt*Math.exp(kt*Mt)},ct=vt(ot,ht,yt);return ct.a=pt,ct.b=kt,ct.predict=yt,ct.rSquared=Dt(T,A,E,R,yt),ct}return I.domain=function(T){return arguments.length?(P=T,I):P},I.x=function(T){return arguments.length?(A=T,I):A},I.y=function(T){return arguments.length?(E=T,I):E},I}function J(){var A=function(M){return M[0]},E=function(M){return M[1]},P;function I(T){var M=0,R=0,V=0,H=0,at=0,ut=P?+P[0]:1/0,ot=P?+P[1]:-1/0;gt(T,A,E,function(ct,xt){++M,R+=(ct-R)/M,V+=(xt-V)/M,H+=(ct*xt-H)/M,at+=(ct*ct-at)/M,P||(ctot&&(ot=ct))});var ht=U(R,V,H,at),St=tt(ht,2),mt=St[0],pt=St[1],kt=function(xt){return pt*xt+mt},yt=[[ut,kt(ut)],[ot,kt(ot)]];return yt.a=pt,yt.b=mt,yt.predict=kt,yt.rSquared=Dt(T,A,E,V,kt),yt}return I.domain=function(T){return arguments.length?(P=T,I):P},I.x=function(T){return arguments.length?(A=T,I):A},I.y=function(T){return arguments.length?(E=T,I):E},I}function Z(A){A.sort(function(P,I){return P-I});var E=A.length/2;return E%1===0?(A[E-1]+A[E])/2:A[Math.floor(E)]}var z=2,C=1e-12;function K(){var A=function(M){return M[0]},E=function(M){return M[1]},P=.3;function I(T){for(var M=nt(T,A,E,!0),R=tt(M,4),V=R[0],H=R[1],at=R[2],ut=R[3],ot=V.length,ht=Math.max(2,~~(P*ot)),St=new Float64Array(ot),mt=new Float64Array(ot),pt=new Float64Array(ot).fill(1),kt=-1;++kt<=z;){for(var yt=[0,ht-1],ct=0;ctV[Vt]-xt?Mt:Vt,Ht=0,Kt=0,Qt=0,ae=0,te=0,le=1/Math.abs(V[B]-xt||1),ne=Mt;ne<=Vt;++ne){var re=V[ne],Xt=H[ne],ie=wt(Math.abs(xt-re)*le)*pt[ne],se=re*ie;Ht+=ie,Kt+=se,Qt+=Xt*ie,ae+=Xt*se,te+=re*se}var Jn=U(Kt/Ht,Qt/Ht,ae/Ht,te/Ht),mn=tt(Jn,2),Kn=mn[0],Qn=mn[1];St[ct]=Kn+Qn*xt,mt[ct]=Math.abs(H[ct]-St[ct]),Ot(V,ct+1,yt)}if(kt===z)break;var Fn=Z(mt);if(Math.abs(Fn)=1?C:(bn=1-Be*Be)*bn}return Zt(V,St,at,ut)}return I.bandwidth=function(T){return arguments.length?(P=T,I):P},I.x=function(T){return arguments.length?(A=T,I):A},I.y=function(T){return arguments.length?(E=T,I):E},I}function wt(A){return(A=1-A*A*A)*A*A}function Ot(A,E,P){var I=A[E],T=P[0],M=P[1]+1;if(!(M>=A.length))for(;E>T&&A[M]-I<=I-A[T];)P[0]=++T,P[1]=M,++M}function Zt(A,E,P,I){for(var T=A.length,M=[],R=0,V=0,H=[],at;Rht&&(ht=Mt))});var mt=U(V,H,at,ut),pt=tt(mt,2),kt=pt[0],yt=pt[1],ct=function(Vt){return yt*Math.log(Vt)/St+kt},xt=vt(ot,ht,ct);return xt.a=yt,xt.b=kt,xt.predict=ct,xt.rSquared=Dt(M,A,E,H,ct),xt}return T.domain=function(M){return arguments.length?(I=M,T):I},T.x=function(M){return arguments.length?(A=M,T):A},T.y=function(M){return arguments.length?(E=M,T):E},T.base=function(M){return arguments.length?(P=M,T):P},T}function b(){var A=function(M){return M[0]},E=function(M){return M[1]},P;function I(T){var M=nt(T,A,E),R=tt(M,4),V=R[0],H=R[1],at=R[2],ut=R[3],ot=V.length,ht=0,St=0,mt=0,pt=0,kt=0,yt,ct,xt,Mt;for(yt=0;ytKt&&(Kt=ie))});var Qt=mt-ht*ht,ae=ht*Qt-St*St,te=(kt*ht-pt*St)/ae,le=(pt*Qt-kt*St)/ae,ne=-te*ht,re=function(se){return se=se-at,te*se*se+le*se+ne+ut},Xt=vt(Ht,Kt,re);return Xt.a=te,Xt.b=le-2*te*at,Xt.c=ne-le*at+te*at*at+ut,Xt.predict=re,Xt.rSquared=Dt(T,A,E,Vt,re),Xt}return I.domain=function(T){return arguments.length?(P=T,I):P},I.x=function(T){return arguments.length?(A=T,I):A},I.y=function(T){return arguments.length?(E=T,I):E},I}function Ut(){var A=function(R){return R[0]},E=function(R){return R[1]},P=3,I;function T(M){if(P===1){var R=J().x(A).y(E).domain(I)(M);return R.coefficients=[R.b,R.a],delete R.a,delete R.b,R}if(P===2){var V=b().x(A).y(E).domain(I)(M);return V.coefficients=[V.c,V.b,V.a],delete V.a,delete V.b,delete V.c,V}var H=nt(M,A,E),at=tt(H,4),ut=at[0],ot=at[1],ht=at[2],St=at[3],mt=ut.length,pt=[],kt=[],yt=P+1,ct=0,xt=0,Mt=I?+I[0]:1/0,Vt=I?+I[1]:-1/0;gt(M,A,E,function(re,Xt){++xt,ct+=(Xt-ct)/xt,I||(reVt&&(Vt=re))});var B,Ht,Kt,Qt,ae;for(B=0;B=0;--M)for(V=E[M],H=1,T[M]+=V,R=1;R<=M;++R)H*=(M+1-R)/R,T[M-R]+=V*Math.pow(P,R)*H;return T[0]+=I,T}function Et(A){var E=A.length-1,P=[],I,T,M,R,V;for(I=0;IMath.abs(A[I][R])&&(R=T);for(M=I;M=I;M--)A[M][T]-=A[M][I]*A[I][T]/A[I][I]}for(T=E-1;T>=0;--T){for(V=0,M=T+1;Mht&&(ht=xt))});var St=U(R,V,H,at),mt=tt(St,2),pt=mt[0],kt=mt[1];pt=Math.exp(pt);var yt=function(Mt){return pt*Math.pow(Mt,kt)},ct=vt(ot,ht,yt);return ct.a=pt,ct.b=kt,ct.predict=yt,ct.rSquared=Dt(T,A,E,ut,yt),ct}return I.domain=function(T){return arguments.length?(P=T,I):P},I.x=function(T){return arguments.length?(A=T,I):A},I.y=function(T){return arguments.length?(E=T,I):E},I}L.regressionExp=Pt,L.regressionLinear=J,L.regressionLoess=K,L.regressionLog=Ct,L.regressionPoly=Ut,L.regressionPow=Lt,L.regressionQuad=b,Object.defineProperty(L,"__esModule",{value:!0})})},41995:function(Gt,st){(function(L,tt){tt(st)})(this,function(L){"use strict";function tt(J,Z,z,C){C=C||{};var K=C.maxIterations||100,wt=C.tolerance||1e-10,Ot=J(Z),Zt=J(z),Ct=z-Z;if(Ot*Zt>0)throw"Initial bisect points must have opposite signs";if(Ot===0)return Z;if(Zt===0)return z;for(var b=0;b=0&&(Z=Ut),Math.abs(Ct)=A[Lt-1].fx){var St=!1;if(R.fx>ht.fx?(Dt(V,1+Ut,M,-Ut,ht),V.fx=J(V),V.fx=1)break;for(E=1;EZt+wt*K*Ct||b>=I)P=K;else{if(Math.abs(N)<=-Ot*Ct)return K;N*(P-E)>=0&&(P=E),E=K,I=b}return 0}for(var A=0;A<10;++A){if(Dt(C.x,1,z.x,K,Z),b=C.fx=J(C.x,C.fxprime),N=h(C.fxprime,Z),b>Zt+wt*K*Ct||A&&b>=Ut)return Lt(Et,K,Ut);if(Math.abs(N)<=-Ot*Ct)return K;if(N>=0)return Lt(K,Et,b);Ut=b,Et=K,K*=2}return K}function vt(J,Z,z){var C={x:Z.slice(),fx:0,fxprime:Z.slice()},K={x:Z.slice(),fx:0,fxprime:Z.slice()},wt=Z.slice(),Ot,Zt,Ct=1,b;z=z||{},b=z.maxIterations||Z.length*20,C.fx=J(C.x,C.fxprime),Ot=C.fxprime.slice(),gt(Ot,C.fxprime,-1);for(var Ut=0;Ut=K.length)){var P=Math.max(E-U,0),I=E,T=Math.min(E+U,K.length-1),M=P-(E-U),R=E+U-T,V=Zt[-U-1+M]||0,H=Zt[-U-1+R]||0,at=Ct/(Ct-V-H);M>0&&(Ut+=at*(M-1)*b);var ut=Math.max(0,E-U+1);nt.inside(0,K.length-1,ut)&&(K[ut].y+=at*1*b),nt.inside(0,K.length-1,I+1)&&(K[I+1].y-=at*2*b),nt.inside(0,K.length-1,T+1)&&(K[T+1].y+=at*1*b)}});var N=Ut,Et=0,Lt=0;return K.forEach(function(A){Et+=A.y,N+=Et,A.y=N,Lt+=N}),Lt>0&&K.forEach(function(A){A.y/=Lt}),K};function Dt(j,q){for(var vt={},U=0,Pt=-q;Pt<=q;Pt++)U+=j(Pt/q),vt[Pt]=U;return vt}Gt.exports.getExpectedValueFromPdf=function(j){if(!(!j||j.length===0)){var q=0;return j.forEach(function(vt){q+=vt.x*vt.y}),q}},Gt.exports.getXWithLeftTailArea=function(j,q){if(!(!j||j.length===0)){for(var vt=0,U=0,Pt=0;Pt=q));Pt++);return j[U].x}},Gt.exports.getPerplexity=function(j){if(!(!j||j.length===0)){var q=0;return j.forEach(function(vt){var U=Math.log(vt.y);isFinite(U)&&(q+=vt.y*U)}),q=-q/g,Math.pow(2,q)}}},53473:function(Gt,st){"use strict";Object.defineProperty(st,"__esModule",{value:!0}),st.SizeSensorId=st.SensorTabIndex=st.SensorClassName=void 0;var L="size-sensor-id";st.SizeSensorId=L;var tt="size-sensor-object";st.SensorClassName=tt;var D="-1";st.SensorTabIndex=D},30649:function(Gt,st){"use strict";Object.defineProperty(st,"__esModule",{value:!0}),st.default=void 0;var L=function(D){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,h=null;return function(){for(var nt=this,gt=arguments.length,Dt=new Array(gt),j=0;j0?k(g,--f):0,_--,p===10&&(_=1,ie--),p}function c(){return p=f2||T(p)>3?"":" "}function ke(e){for(;c();)switch(T(p)){case 0:append(be(f-1),e);break;case 2:append(X(p),e);break;default:append(from(p),e)}return e}function Re(e,r){for(;--r&&c()&&!(p<48||p>102||p>57&&p<65||p>70&&p<97););return v(e,y()+(r<6&&o()==32&&c()==32))}function de(e){for(;c();)switch(p){case e:return f;case 34:case 39:e!==34&&e!==39&&de(p);break;case 40:e===41&&de(e);break;case 92:c();break}return f}function Oe(e,r){for(;c()&&e+p!==57;)if(e+p===84&&o()===47)break;return"/*"+v(r,f-1)+"*"+P(e===47?e:c())}function be(e){for(;!T(o());)c();return v(e,f)}var I="-ms-",fe="-moz-",m="-webkit-",ge="comm",pe="rule",ye="decl",Ze="@page",He="@media",$e="@import",Je="@charset",qe="@viewport",Qe="@supports",Xe="@document",er="@namespace",ve="@keyframes",rr="@font-face",tr="@counter-style",nr="@font-feature-values",Te="@layer";function ce(e,r){for(var n="",t=oe(e),i=0;i-1&&!e.return)switch(e.type){case DECLARATION:e.return=prefix(e.value,e.length,n);return;case KEYFRAMES:return serialize([copy(e,{value:replace(e.value,"@","@"+WEBKIT)})],t);case RULESET:if(e.length)return combine(e.props,function(i){switch(match(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(e,{props:[replace(i,/:(read-\w+)/,":"+MOZ+"$1")]})],t);case"::placeholder":return serialize([copy(e,{props:[replace(i,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(e,{props:[replace(i,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(e,{props:[replace(i,/:(plac\w+)/,MS+"input-$1")]})],t)}return""})}}function sr(e){switch(e.type){case RULESET:e.props=e.props.map(function(r){return combine(tokenize(r),function(n,t,i){switch(charat(n,0)){case 12:return substr(n,1,strlen(n));case 0:case 40:case 43:case 62:case 126:return n;case 58:i[++t]==="global"&&(i[t]="",i[++t]="\f"+substr(i[t],t=1,-1));case 32:return t===1?"":n;default:switch(t){case 0:return e=n,sizeof(i)>1?"":n;case(t=sizeof(i)-1):case 2:return t===2?n+e+e:n+e;default:return n}}})})}}function Ne(e){return J(ue("",null,null,null,[""],e=Q(e),0,[0],e))}function ue(e,r,n,t,i,d,A,x,O){for(var z=0,R=0,M=A,q=0,ee=0,j=0,S=1,F=1,C=1,N=0,B="",le=i,se=d,Y=t,E=B;F;)switch(j=N,N=c()){case 40:if(j!=108&&k(E,M-1)==58){te(E+=u(X(N),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:E+=X(N);break;case 9:case 10:case 13:case 32:E+=Ce(j);break;case 92:E+=Re(y()-1,7);continue;case 47:switch(o()){case 42:case 47:ae(Ue(Oe(c(),y()),r,n),O);break;default:E+="/"}break;case 123*S:x[z++]=D(E)*C;case 125*S:case 59:case 0:switch(N){case 0:case 125:F=0;case 59+R:C==-1&&(E=u(E,/\f/g,"")),ee>0&&D(E)-M&&ae(ee>32?Ee(E+";",t,n,M-1):Ee(u(E," ","")+";",t,n,M-2),O);break;case 59:E+=";";default:if(ae(Y=we(E,r,n,z,R,i,x,B,le=[],se=[],M),d),N===123)if(R===0)ue(E,r,Y,Y,le,d,M,x,se);else switch(q===99&&k(E,3)===110?100:q){case 100:case 108:case 109:case 115:ue(e,Y,Y,t&&ae(we(e,Y,Y,0,0,i,x,B,i,le=[],M),se),i,se,M,x,t?le:se);break;default:ue(E,Y,Y,Y,[""],se,0,x,se)}}z=R=ee=0,S=C=1,B=E="",M=A;break;case 58:M=1+D(E),ee=j;default:if(S<1){if(N==123)--S;else if(N==125&&S++==0&&a()==125)continue}switch(E+=P(N),N*S){case 38:C=R>0?1:(E+="\f",-1);break;case 44:x[z++]=(D(E)-1)*C,C=1;break;case 64:o()===45&&(E+=X(c())),q=o(),R=M=D(B=E+=be(y())),N++;break;case 45:j===45&&D(E)==2&&(S=0)}}return d}function we(e,r,n,t,i,d,A,x,O,z,R){for(var M=i-1,q=i===0?d:[""],ee=oe(q),j=0,S=0,F=0;j0?q[C]+" "+N:u(N,/&\f/g,q[C])))&&(O[F++]=B);return $(e,r,n,i===0?pe:x,O,z,R)}function Ue(e,r,n){return $(e,r,n,ge,P(s()),ne(e,2,-2),0)}function Ee(e,r,n,t){return $(e,r,n,ye,ne(e,0,t),ne(e,t+1,-1),t)}var ze=function(r,n,t){for(var i=0,d=0;i=d,d=o(),i===38&&d===12&&(n[t]=1),!T(d);)c();return v(r,f)},Le=function(r,n){var t=-1,i=44;do switch(T(i)){case 0:i===38&&o()===12&&(n[t]=1),r[t]+=ze(f-1,n,t);break;case 2:r[t]+=X(i);break;case 4:if(i===44){r[++t]=o()===58?"&\f":"",n[t]=r[t].length;break}default:r[t]+=P(i)}while(i=c());return r},We=function(r,n){return J(Le(Q(r),n))},xe=new WeakMap,Fe=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var n=r.value,t=r.parent,i=r.column===t.column&&r.line===t.line;t.type!=="rule";)if(t=t.parent,!t)return;if(!(r.props.length===1&&n.charCodeAt(0)!==58&&!xe.get(t))&&!i){xe.set(r,!0);for(var d=[],A=We(n,d),x=t.props,O=0,z=0;O-1},ir=function(r){return function(n,t,i){if(!(n.type!=="rule"||r.compat)){var d=n.value.match(/(:first|:nth|:nth-last)-child/g);if(d){for(var A=!!n.parent,x=A?n.parent.children:i,O=x.length-1;O>=0;O--){var z=x[O];if(z.line=0;t--)if(!Se(n[t]))return!0;return!1},_e=function(r){r.type="",r.value="",r.return="",r.children="",r.props=""},cr=function(r,n,t){Se(r)&&(r.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),_e(r)):Ke(n,t)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),_e(r)))};function Ae(e,r){switch(w(e,r)){case 5103:return m+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return m+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return m+e+fe+e+I+e+e;case 6828:case 4268:return m+e+I+e+e;case 6165:return m+e+I+"flex-"+e+e;case 5187:return m+e+u(e,/(\w+).+(:[^]+)/,m+"box-$1$2"+I+"flex-$1$2")+e;case 5443:return m+e+I+"flex-item-"+u(e,/flex-|-self/,"")+e;case 4675:return m+e+I+"flex-line-pack"+u(e,/align-content|flex-|-self/,"")+e;case 5548:return m+e+I+u(e,"shrink","negative")+e;case 5292:return m+e+I+u(e,"basis","preferred-size")+e;case 6060:return m+"box-"+u(e,"-grow","")+m+e+I+u(e,"grow","positive")+e;case 4554:return m+u(e,/([^-])(transform)/g,"$1"+m+"$2")+e;case 6187:return u(u(u(e,/(zoom-|grab)/,m+"$1"),/(image-set)/,m+"$1"),e,"")+e;case 5495:case 3959:return u(e,/(image-set\([^]*)/,m+"$1$`$1");case 4968:return u(u(e,/(.+:)(flex-)?(.*)/,m+"box-pack:$3"+I+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+m+e+e;case 4095:case 3583:case 4068:case 2532:return u(e,/(.+)-inline(.+)/,m+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(D(e)-1-r>6)switch(k(e,r+1)){case 109:if(k(e,r+4)!==45)break;case 102:return u(e,/(.+:)(.+)-([^]+)/,"$1"+m+"$2-$3$1"+fe+(k(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~te(e,"stretch")?Ae(u(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(k(e,r+1)!==115)break;case 6444:switch(k(e,D(e)-3-(~te(e,"!important")&&10))){case 107:return u(e,":",":"+m)+e;case 101:return u(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+m+(k(e,14)===45?"inline-":"")+"box$3$1"+m+"$2$3$1"+I+"$2box$3")+e}break;case 5936:switch(k(e,r+11)){case 114:return m+e+I+u(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return m+e+I+u(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return m+e+I+u(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return m+e+I+e+e}return e}var Ve=function(r,n,t,i){if(r.length>-1&&!r.return)switch(r.type){case ye:r.return=Ae(r.value,r.length);break;case ve:return ce([h(r,{value:u(r.value,"@","@"+m)})],i);case pe:if(r.length)return he(r.props,function(d){switch(L(d,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ce([h(r,{props:[u(d,/:(read-\w+)/,":"+fe+"$1")]})],i);case"::placeholder":return ce([h(r,{props:[u(d,/:(plac\w+)/,":"+m+"input-$1")]}),h(r,{props:[u(d,/:(plac\w+)/,":"+fe+"$1")]}),h(r,{props:[u(d,/:(plac\w+)/,I+"input-$1")]})],i)}return""})}},Be=[Ve],Ye=function(r){var n=r.key;if(n==="css"){var t=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(t,function(S){var F=S.getAttribute("data-emotion");F.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var i=r.stylisPlugins||Be,d={},A,x=[];A=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var F=S.getAttribute("data-emotion").split(" "),C=1;C=4;++c,o-=4)a=h.charCodeAt(c)&255|(h.charCodeAt(++c)&255)<<8|(h.charCodeAt(++c)&255)<<16|(h.charCodeAt(++c)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,s=(a&65535)*1540483477+((a>>>16)*59797<<16)^(s&65535)*1540483477+((s>>>16)*59797<<16);switch(o){case 3:s^=(h.charCodeAt(c+2)&255)<<16;case 2:s^=(h.charCodeAt(c+1)&255)<<8;case 1:s^=h.charCodeAt(c)&255,s=(s&65535)*1540483477+((s>>>16)*59797<<16)}return s^=s>>>13,s=(s&65535)*1540483477+((s>>>16)*59797<<16),((s^s>>>15)>>>0).toString(36)}var V={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function U(h){var s=Object.create(null);return function(a){return s[a]===void 0&&(s[a]=h(a)),s[a]}}var H=`You have illegal escape sequence in your template literal, most likely inside content's property value. +Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". +You can read more about this here: +https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,P="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",l=/[A-Z]|^ms/g,w=/_EMO_([^_]+?)_([^]*?)_EMO_/g,b=function(s){return s.charCodeAt(1)===45},L=function(s){return s!=null&&typeof s!="boolean"},u=U(function(h){return b(h)?h:h.replace(l,"-$&").toLowerCase()}),te=function(s,a){switch(s){case"animation":case"animationName":if(typeof a=="string")return a.replace(w,function(c,o,y){return g={name:o,styles:y,next:g},o})}return V[s]!==1&&!b(s)&&typeof a=="number"&&a!==0?a+"px":a};if(0)var k,ne,D,oe,ae,he;var ie=null;function _(h,s,a){if(a==null)return"";if(a.__emotion_styles!==void 0)return a;switch(typeof a){case"boolean":return"";case"object":{if(a.anim===1)return g={name:a.name,styles:a.styles,next:g},a.name;if(a.styles!==void 0){var c=a.next;if(c!==void 0)for(;c!==void 0;)g={name:c.name,styles:c.styles,next:g},c=c.next;var o=a.styles+";";return o}return W(h,s,a)}case"function":{if(h!==void 0){var y=g,v=a(h);return g=y,_(h,s,v)}break}case"string":if(0)var T,Q;break}if(s==null)return a;var J=s[a];return J!==void 0?J:a}function W(h,s,a){var c="";if(Array.isArray(a))for(var o=0;ofr in Vr?ny(Vr,fr,{enumerable:!0,configurable:!0,writable:!0,value:V}):Vr[fr]=V,od=(Vr,fr)=>{for(var V in fr||(fr={}))sy.call(fr,V)&&Ah(Vr,V,fr[V]);if(Ch)for(var V of Ch(fr))oy.call(fr,V)&&Ah(Vr,V,fr[V]);return Vr},Dh=(Vr,fr)=>ay(Vr,iy(fr));(self.webpackChunk_antv_li_website=self.webpackChunk_antv_li_website||[]).push([[666],{75262:function(Vr,fr){"use strict";var V="*",Q=function(){function We(){this._events={}}return We.prototype.on=function(G,N,Z){return this._events[G]||(this._events[G]=[]),this._events[G].push({callback:N,once:!!Z}),this},We.prototype.once=function(G,N){return this.on(G,N,!0)},We.prototype.emit=function(G){for(var N=this,Z=[],D=1;D(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var be="rc-util-locker-".concat(Date.now()),ve=0;function Je($e){var xr=!!$e,nr=N.useState(function(){return ve+=1,"".concat(be,"_").concat(ve)}),Mr=(0,We.Z)(nr,1),Hr=Mr[0];(0,K.Z)(function(){if(xr){var Nr=se(document.body).width,qr=le();(0,Y.hq)(` +html body { + overflow-y: hidden; + `.concat(qr?"width: calc(100% - ".concat(Nr,"px);"):"",` +}`),Hr)}else(0,Y.jL)(Hr);return function(){(0,Y.jL)(Hr)}},[xr,Hr])}var ze=!1;function j($e){return typeof $e=="boolean"&&(ze=$e),ze}var z=function(xr){return xr===!1?!1:!(0,D.Z)()||!xr?null:typeof xr=="string"?document.querySelector(xr):typeof xr=="function"?xr():xr},we=N.forwardRef(function($e,xr){var nr=$e.open,Mr=$e.autoLock,Hr=$e.getContainer,Nr=$e.debug,qr=$e.autoDestroy,At=qr===void 0?!0:qr,Ut=$e.children,gt=N.useState(nr),qt=(0,We.Z)(gt,2),Qt=qt[0],Dn=qt[1],yt=Qt||nr;N.useEffect(function(){(At||nr)&&Dn(nr)},[nr,At]);var Tn=N.useState(function(){return z(Hr)}),Bn=(0,We.Z)(Tn,2),Pn=Bn[0],na=Bn[1];N.useEffect(function(){var Qr=z(Hr);na(Qr!=null?Qr:null)});var gn=O(yt&&!Pn,Nr),ln=(0,We.Z)(gn,2),$t=ln[0],jn=ln[1],Wa=Pn!=null?Pn:$t;Je(Mr&&nr&&(0,D.Z)()&&(Wa===$t||Wa===document.body));var Da=null;if(Ut&&(0,y.Yr)(Ut)&&xr){var Ya=Ut;Da=Ya.ref}var Ha=(0,y.x1)(Da,xr);if(!yt||!(0,D.Z)()||Pn===void 0)return null;var ha=Wa===!1||j(),Ga=Ut;return xr&&(Ga=N.cloneElement(Ut,{ref:Ha})),N.createElement(q.Provider,{value:jn},ha?Ga:(0,Z.createPortal)(Ga,Wa))}),Ze=we,I=Ze,T=V(90005),x=V.n(T),Me=V(37220),Ye=V(62738);function De($e){var xr;return $e==null||(xr=$e.getRootNode)===null||xr===void 0?void 0:xr.call($e)}function Br($e){return De($e)instanceof ShadowRoot}function Ge($e){return Br($e)?De($e):null}var br=V(44771);function Ve(){var $e=(0,Q.Z)({},N);return $e.useId}var pe=0;function Cr(){}var Er=Ve(),wr=Er?function(xr){var nr=Er();return xr||nr}:function(xr){var nr=N.useState("ssr-id"),Mr=(0,We.Z)(nr,2),Hr=Mr[0],Nr=Mr[1];return N.useEffect(function(){var qr=pe;pe+=1,Nr("rc_unique_".concat(qr))},[]),xr||Hr},Kr=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var $e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test($e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test($e==null?void 0:$e.substr(0,4))},Ft=V(25773),Jr=V(6958);function Dr($e){var xr=$e.prefixCls,nr=$e.align,Mr=$e.arrow,Hr=$e.arrowPos,Nr=Mr||{},qr=Nr.className,At=Nr.content,Ut=Hr.x,gt=Ut===void 0?0:Ut,qt=Hr.y,Qt=qt===void 0?0:qt,Dn=N.useRef();if(!nr||!nr.points)return null;var yt={position:"absolute"};if(nr.autoArrow!==!1){var Tn=nr.points[0],Bn=nr.points[1],Pn=Tn[0],na=Tn[1],gn=Bn[0],ln=Bn[1];Pn===gn||!["t","b"].includes(Pn)?yt.top=Qt:Pn==="t"?yt.top=0:yt.bottom=0,na===ln||!["l","r"].includes(na)?yt.left=gt:na==="l"?yt.left=0:yt.right=0}return N.createElement("div",{ref:Dn,className:x()("".concat(xr,"-arrow"),qr),style:yt},At)}function lt($e){var xr=$e.prefixCls,nr=$e.open,Mr=$e.zIndex,Hr=$e.mask,Nr=$e.motion;return Hr?N.createElement(Jr.default,(0,Ft.Z)({},Nr,{motionAppear:!0,visible:nr,removeOnLeave:!0}),function(qr){var At=qr.className;return N.createElement("div",{style:{zIndex:Mr},className:x()("".concat(xr,"-mask"),At)})}):null}var Et=N.memo(function($e){var xr=$e.children;return xr},function($e,xr){return xr.cache}),Pt=Et,Ir=N.forwardRef(function($e,xr){var nr=$e.popup,Mr=$e.className,Hr=$e.prefixCls,Nr=$e.style,qr=$e.target,At=$e.onVisibleChanged,Ut=$e.open,gt=$e.keepDom,qt=$e.fresh,Qt=$e.onClick,Dn=$e.mask,yt=$e.arrow,Tn=$e.arrowPos,Bn=$e.align,Pn=$e.motion,na=$e.maskMotion,gn=$e.forceRender,ln=$e.getPopupContainer,$t=$e.autoDestroy,jn=$e.portal,Wa=$e.zIndex,Da=$e.onMouseEnter,Ya=$e.onMouseLeave,Ha=$e.onPointerEnter,ha=$e.ready,Ga=$e.offsetX,Qr=$e.offsetY,ma=$e.offsetR,vi=$e.offsetB,Va=$e.onAlign,Sr=$e.onPrepare,_e=$e.stretch,Te=$e.targetWidth,Ne=$e.targetHeight,er=typeof nr=="function"?nr():nr,Tr=Ut||gt,ht=(ln==null?void 0:ln.length)>0,Gt=N.useState(!ln||!ht),It=(0,We.Z)(Gt,2),kn=It[0],Nn=It[1];if((0,K.Z)(function(){!kn&&ht&&qr&&Nn(!0)},[kn,ht,qr]),!kn)return null;var Xt="auto",Yt={left:"-1000vw",top:"-1000vh",right:Xt,bottom:Xt};if(ha||!Ut){var Mn,ea=Bn.points,pa=Bn.dynamicInset||((Mn=Bn._experimental)===null||Mn===void 0?void 0:Mn.dynamicInset),si=pa&&ea[0][1]==="r",mn=pa&&ea[0][0]==="b";si?(Yt.right=ma,Yt.left=Xt):(Yt.left=Ga,Yt.right=Xt),mn?(Yt.bottom=vi,Yt.top=Xt):(Yt.top=Qr,Yt.bottom=Xt)}var Yn={};return _e&&(_e.includes("height")&&Ne?Yn.height=Ne:_e.includes("minHeight")&&Ne&&(Yn.minHeight=Ne),_e.includes("width")&&Te?Yn.width=Te:_e.includes("minWidth")&&Te&&(Yn.minWidth=Te)),Ut||(Yn.pointerEvents="none"),N.createElement(jn,{open:gn||Tr,getContainer:ln&&function(){return ln(qr)},autoDestroy:$t},N.createElement(lt,{prefixCls:Hr,open:Ut,zIndex:Wa,mask:Dn,motion:na}),N.createElement(Me.Z,{onResize:Va,disabled:!Ut},function(xn){return N.createElement(Jr.default,(0,Ft.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:gn,leavedClassName:"".concat(Hr,"-hidden")},Pn,{onAppearPrepare:Sr,onEnterPrepare:Sr,visible:Ut,onVisibleChanged:function(Ln){var _i;Pn==null||(_i=Pn.onVisibleChanged)===null||_i===void 0||_i.call(Pn,Ln),At(Ln)}}),function(On,Ln){var _i=On.className,bn=On.style,Ei=x()(Hr,_i,Mr);return N.createElement("div",{ref:(0,y.sQ)(xn,xr,Ln),className:Ei,style:(0,Q.Z)((0,Q.Z)((0,Q.Z)((0,Q.Z)({"--arrow-x":"".concat(Tn.x||0,"px"),"--arrow-y":"".concat(Tn.y||0,"px")},Yt),Yn),bn),{},{boxSizing:"border-box",zIndex:Wa},Nr),onMouseEnter:Da,onMouseLeave:Ya,onPointerEnter:Ha,onClick:Qt},yt&&N.createElement(Dr,{prefixCls:Hr,arrow:yt,arrowPos:Tn,align:Bn}),N.createElement(Pt,{cache:!Ut&&!qt},er))})}))}),C=Ir,lr=N.forwardRef(function($e,xr){var nr=$e.children,Mr=$e.getTriggerDOMNode,Hr=(0,y.Yr)(nr),Nr=N.useCallback(function(At){(0,y.mH)(xr,Mr?Mr(At):At)},[Mr]),qr=(0,y.x1)(Nr,nr.ref);return Hr?N.cloneElement(nr,{ref:qr}):nr}),m=lr,u=N.createContext(null),h=u;function E($e){return $e?Array.isArray($e)?$e:[$e]:[]}function ee($e,xr,nr,Mr){return N.useMemo(function(){var Hr=E(nr!=null?nr:xr),Nr=E(Mr!=null?Mr:xr),qr=new Set(Hr),At=new Set(Nr);return $e&&(qr.has("hover")&&(qr.delete("hover"),qr.add("click")),At.has("hover")&&(At.delete("hover"),At.add("click"))),[qr,At]},[$e,xr,nr,Mr])}var Se=V(5661);function oe(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],nr=arguments.length>2?arguments[2]:void 0;return nr?$e[0]===xr[0]:$e[0]===xr[0]&&$e[1]===xr[1]}function de($e,xr,nr,Mr){for(var Hr=nr.points,Nr=Object.keys($e),qr=0;qr1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN($e)?xr:$e}function ye($e){return B(parseFloat($e),0)}function ar($e,xr){var nr=(0,Q.Z)({},$e);return(xr||[]).forEach(function(Mr){if(!(Mr instanceof HTMLBodyElement||Mr instanceof HTMLHtmlElement)){var Hr=Re(Mr).getComputedStyle(Mr),Nr=Hr.overflow,qr=Hr.overflowClipMargin,At=Hr.borderTopWidth,Ut=Hr.borderBottomWidth,gt=Hr.borderLeftWidth,qt=Hr.borderRightWidth,Qt=Mr.getBoundingClientRect(),Dn=Mr.offsetHeight,yt=Mr.clientHeight,Tn=Mr.offsetWidth,Bn=Mr.clientWidth,Pn=ye(At),na=ye(Ut),gn=ye(gt),ln=ye(qt),$t=B(Math.round(Qt.width/Tn*1e3)/1e3),jn=B(Math.round(Qt.height/Dn*1e3)/1e3),Wa=(Tn-Bn-gn-ln)*$t,Da=(Dn-yt-Pn-na)*jn,Ya=Pn*jn,Ha=na*jn,ha=gn*$t,Ga=ln*$t,Qr=0,ma=0;if(Nr==="clip"){var vi=ye(qr);Qr=vi*$t,ma=vi*jn}var Va=Qt.x+ha-Qr,Sr=Qt.y+Ya-ma,_e=Va+Qt.width+2*Qr-ha-Ga-Wa,Te=Sr+Qt.height+2*ma-Ya-Ha-Da;nr.left=Math.max(nr.left,Va),nr.top=Math.max(nr.top,Sr),nr.right=Math.min(nr.right,_e),nr.bottom=Math.min(nr.bottom,Te)}}),nr}function dr($e){var xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,nr="".concat(xr),Mr=nr.match(/^(.*)\%$/);return Mr?$e*(parseFloat(Mr[1])/100):parseFloat(nr)}function Ur($e,xr){var nr=xr||[],Mr=(0,We.Z)(nr,2),Hr=Mr[0],Nr=Mr[1];return[dr($e.width,Hr),dr($e.height,Nr)]}function vt(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[$e[0],$e[1]]}function it($e,xr){var nr=xr[0],Mr=xr[1],Hr,Nr;return nr==="t"?Nr=$e.y:nr==="b"?Nr=$e.y+$e.height:Nr=$e.y+$e.height/2,Mr==="l"?Hr=$e.x:Mr==="r"?Hr=$e.x+$e.width:Hr=$e.x+$e.width/2,{x:Hr,y:Nr}}function ft($e,xr){var nr={t:"b",b:"t",l:"r",r:"l"};return $e.map(function(Mr,Hr){return Hr===xr?nr[Mr]||"c":Mr}).join("")}function Wr($e,xr,nr,Mr,Hr,Nr,qr){var At=N.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Hr[Mr]||{}}),Ut=(0,We.Z)(At,2),gt=Ut[0],qt=Ut[1],Qt=N.useRef(0),Dn=N.useMemo(function(){return xr?cr(xr):[]},[xr]),yt=N.useRef({}),Tn=function(){yt.current={}};$e||Tn();var Bn=(0,br.Z)(function(){if(xr&&nr&&$e){let ga=function(ta,Ba){var ba=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ei,Ta=er.x+ta,Oi=er.y+Ba,zn=Ta+Mn,ei=Oi+Yt,cs=Math.max(Ta,ba.left),Vi=Math.max(Oi,ba.top),Vs=Math.min(zn,ba.right),js=Math.min(ei,ba.bottom);return Math.max(0,(Vs-cs)*(js-Vi))},bi=function(){fi=er.y+Ht,gi=fi+Yt,tn=er.x+Gn,fa=tn+Mn};var gn,ln,$t=xr,jn=$t.ownerDocument,Wa=Re($t),Da=Wa.getComputedStyle($t),Ya=Da.width,Ha=Da.height,ha=Da.position,Ga=$t.style.left,Qr=$t.style.top,ma=$t.style.right,vi=$t.style.bottom,Va=$t.style.overflow,Sr=(0,Q.Z)((0,Q.Z)({},Hr[Mr]),Nr),_e=jn.createElement("div");(gn=$t.parentElement)===null||gn===void 0||gn.appendChild(_e),_e.style.left="".concat($t.offsetLeft,"px"),_e.style.top="".concat($t.offsetTop,"px"),_e.style.position=ha,_e.style.height="".concat($t.offsetHeight,"px"),_e.style.width="".concat($t.offsetWidth,"px"),$t.style.left="0",$t.style.top="0",$t.style.right="auto",$t.style.bottom="auto",$t.style.overflow="hidden";var Te;if(Array.isArray(nr))Te={x:nr[0],y:nr[1],width:0,height:0};else{var Ne=nr.getBoundingClientRect();Te={x:Ne.x,y:Ne.y,width:Ne.width,height:Ne.height}}var er=$t.getBoundingClientRect(),Tr=jn.documentElement,ht=Tr.clientWidth,Gt=Tr.clientHeight,It=Tr.scrollWidth,kn=Tr.scrollHeight,Nn=Tr.scrollTop,Xt=Tr.scrollLeft,Yt=er.height,Mn=er.width,ea=Te.height,pa=Te.width,si={left:0,top:0,right:ht,bottom:Gt},mn={left:-Xt,top:-Nn,right:It-Xt,bottom:kn-Nn},Yn=Sr.htmlRegion,xn="visible",On="visibleFirst";Yn!=="scroll"&&Yn!==On&&(Yn=xn);var Ln=Yn===On,_i=ar(mn,Dn),bn=ar(si,Dn),Ei=Yn===xn?bn:_i,Ja=Ln?bn:Ei;$t.style.left="auto",$t.style.top="auto",$t.style.right="0",$t.style.bottom="0";var is=$t.getBoundingClientRect();$t.style.left=Ga,$t.style.top=Qr,$t.style.right=ma,$t.style.bottom=vi,$t.style.overflow=Va,(ln=$t.parentElement)===null||ln===void 0||ln.removeChild(_e);var Ia=B(Math.round(Mn/parseFloat(Ya)*1e3)/1e3),$n=B(Math.round(Yt/parseFloat(Ha)*1e3)/1e3);if(Ia===0||$n===0||(0,Ye.Sh)(nr)&&!(0,Se.Z)(nr))return;var Ki=Sr.offset,dn=Sr.targetOffset,xa=Ur(er,Ki),oi=(0,We.Z)(xa,2),qa=oi[0],Vt=oi[1],Di=Ur(Te,dn),ya=(0,We.Z)(Di,2),Ui=ya[0],In=ya[1];Te.x-=Ui,Te.y-=In;var ys=Sr.points||[],ci=(0,We.Z)(ys,2),_a=ci[0],ra=ci[1],Fa=vt(ra),Oa=vt(_a),zt=it(Te,Fa),Ra=it(er,Oa),aa=(0,Q.Z)({},Sr),Gn=zt.x-Ra.x+qa,Ht=zt.y-Ra.y+Vt,Vn=ga(Gn,Ht),Yi=ga(Gn,Ht,bn),hn=it(Te,["t","l"]),zi=it(er,["t","l"]),Ji=it(Te,["b","r"]),Wi=it(er,["b","r"]),Ii=Sr.overflow||{},Qa=Ii.adjustX,Gs=Ii.adjustY,Rn=Ii.shiftX,Hi=Ii.shiftY,ss=function(Ba){return typeof Ba=="boolean"?Ba:Ba>=0},fi,gi,tn,fa;bi();var Pa=ss(Gs),os=Oa[0]===Fa[0];if(Pa&&Oa[0]==="t"&&(gi>Ja.bottom||yt.current.bt)){var qi=Ht;os?qi-=Yt-ea:qi=hn.y-Wi.y-Vt;var bs=ga(Gn,qi),ws=ga(Gn,qi,bn);bs>Vn||bs===Vn&&(!Ln||ws>=Yi)?(yt.current.bt=!0,Ht=qi,Vt=-Vt,aa.points=[ft(Oa,0),ft(Fa,0)]):yt.current.bt=!1}if(Pa&&Oa[0]==="b"&&(fiVn||Ea===Vn&&(!Ln||va>=Yi)?(yt.current.tb=!0,Ht=Gi,Vt=-Vt,aa.points=[ft(Oa,0),ft(Fa,0)]):yt.current.tb=!1}var mi=ss(Qa),jr=Oa[1]===Fa[1];if(mi&&Oa[1]==="l"&&(fa>Ja.right||yt.current.rl)){var re=Gn;jr?re-=Mn-pa:re=hn.x-Wi.x-qa;var Oe=ga(re,Ht),He=ga(re,Ht,bn);Oe>Vn||Oe===Vn&&(!Ln||He>=Yi)?(yt.current.rl=!0,Gn=re,qa=-qa,aa.points=[ft(Oa,1),ft(Fa,1)]):yt.current.rl=!1}if(mi&&Oa[1]==="r"&&(tnVn||Be===Vn&&(!Ln||Rr>=Yi)?(yt.current.lr=!0,Gn=ae,qa=-qa,aa.points=[ft(Oa,1),ft(Fa,1)]):yt.current.lr=!1}bi();var Or=Rn===!0?0:Rn;typeof Or=="number"&&(tnbn.right&&(Gn-=fa-bn.right-qa,Te.x>bn.right-Or&&(Gn+=Te.x-bn.right+Or)));var tt=Hi===!0?0:Hi;typeof tt=="number"&&(fibn.bottom&&(Ht-=gi-bn.bottom-Vt,Te.y>bn.bottom-tt&&(Ht+=Te.y-bn.bottom+tt)));var Nt=er.x+Gn,St=Nt+Mn,Ot=er.y+Ht,wt=Ot+Yt,kt=Te.x,on=kt+pa,Wt=Te.y,cn=Wt+ea,wn=Math.max(Nt,kt),sa=Math.min(St,on),Xn=(wn+sa)/2,ia=Xn-Nt,Sa=Math.max(Ot,Wt),Na=Math.min(wt,cn),li=(Sa+Na)/2,Fi=li-Ot;qr==null||qr(xr,aa);var xi=is.right-er.x-(Gn+er.width),yi=is.bottom-er.y-(Ht+er.height);Ia===1&&(Gn=Math.round(Gn),xi=Math.round(xi)),$n===1&&(Ht=Math.round(Ht),yi=Math.round(yi));var Un={ready:!0,offsetX:Gn/Ia,offsetY:Ht/$n,offsetR:xi/Ia,offsetB:yi/$n,arrowX:ia/Ia,arrowY:Fi/$n,scaleX:Ia,scaleY:$n,align:aa};qt(Un)}}),Pn=function(){Qt.current+=1;var ln=Qt.current;Promise.resolve().then(function(){Qt.current===ln&&Bn()})},na=function(){qt(function(ln){return(0,Q.Z)((0,Q.Z)({},ln),{},{ready:!1})})};return(0,K.Z)(na,[Mr]),(0,K.Z)(function(){$e||na()},[$e]),[gt.ready,gt.offsetX,gt.offsetY,gt.offsetR,gt.offsetB,gt.arrowX,gt.arrowY,gt.scaleX,gt.scaleY,gt.align,Pn]}function $r($e,xr,nr,Mr,Hr){(0,K.Z)(function(){if($e&&xr&&nr){let Qt=function(){Mr(),Hr()};var Nr=xr,qr=nr,At=cr(Nr),Ut=cr(qr),gt=Re(qr),qt=new Set([gt].concat((0,ne.Z)(At),(0,ne.Z)(Ut)));return qt.forEach(function(Dn){Dn.addEventListener("scroll",Qt,{passive:!0})}),gt.addEventListener("resize",Qt,{passive:!0}),Mr(),function(){qt.forEach(function(Dn){Dn.removeEventListener("scroll",Qt),gt.removeEventListener("resize",Qt)})}}},[$e,xr,nr])}function dt($e,xr,nr,Mr,Hr,Nr,qr,At){var Ut=N.useRef($e);Ut.current=$e,N.useEffect(function(){if(xr&&Mr&&(!Hr||Nr)){var gt=function(na){var gn=na.target;Ut.current&&!qr(gn)&&At(!1)},qt=Re(Mr);qt.addEventListener("mousedown",gt,!0),qt.addEventListener("contextmenu",gt,!0);var Qt=Ge(nr);if(Qt&&(Qt.addEventListener("mousedown",gt,!0),Qt.addEventListener("contextmenu",gt,!0)),0)var Dn,yt,Tn,Bn;return function(){qt.removeEventListener("mousedown",gt,!0),qt.removeEventListener("contextmenu",gt,!0),Qt&&(Qt.removeEventListener("mousedown",gt,!0),Qt.removeEventListener("contextmenu",gt,!0))}}},[xr,nr,Mr,Hr,Nr])}var Xr=["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 Mt(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:I,xr=N.forwardRef(function(nr,Mr){var Hr=nr.prefixCls,Nr=Hr===void 0?"rc-trigger-popup":Hr,qr=nr.children,At=nr.action,Ut=At===void 0?"hover":At,gt=nr.showAction,qt=nr.hideAction,Qt=nr.popupVisible,Dn=nr.defaultPopupVisible,yt=nr.onPopupVisibleChange,Tn=nr.afterPopupVisibleChange,Bn=nr.mouseEnterDelay,Pn=nr.mouseLeaveDelay,na=Pn===void 0?.1:Pn,gn=nr.focusDelay,ln=nr.blurDelay,$t=nr.mask,jn=nr.maskClosable,Wa=jn===void 0?!0:jn,Da=nr.getPopupContainer,Ya=nr.forceRender,Ha=nr.autoDestroy,ha=nr.destroyPopupOnHide,Ga=nr.popup,Qr=nr.popupClassName,ma=nr.popupStyle,vi=nr.popupPlacement,Va=nr.builtinPlacements,Sr=Va===void 0?{}:Va,_e=nr.popupAlign,Te=nr.zIndex,Ne=nr.stretch,er=nr.getPopupClassNameFromAlign,Tr=nr.fresh,ht=nr.alignPoint,Gt=nr.onPopupClick,It=nr.onPopupAlign,kn=nr.arrow,Nn=nr.popupMotion,Xt=nr.maskMotion,Yt=nr.popupTransitionName,Mn=nr.popupAnimation,ea=nr.maskTransitionName,pa=nr.maskAnimation,si=nr.className,mn=nr.getTriggerDOMNode,Yn=(0,G.Z)(nr,Xr),xn=Ha||ha||!1,On=N.useState(!1),Ln=(0,We.Z)(On,2),_i=Ln[0],bn=Ln[1];(0,K.Z)(function(){bn(Kr())},[]);var Ei=N.useRef({}),Ja=N.useContext(h),is=N.useMemo(function(){return{registerSubPopup:function(Zt,Fn){Ei.current[Zt]=Fn,Ja==null||Ja.registerSubPopup(Zt,Fn)}}},[Ja]),Ia=wr(),$n=N.useState(null),Ki=(0,We.Z)($n,2),dn=Ki[0],xa=Ki[1],oi=N.useRef(null),qa=(0,br.Z)(function(Dt){oi.current=Dt,(0,Ye.Sh)(Dt)&&dn!==Dt&&xa(Dt),Ja==null||Ja.registerSubPopup(Ia,Dt)}),Vt=N.useState(null),Di=(0,We.Z)(Vt,2),ya=Di[0],Ui=Di[1],In=N.useRef(null),ys=(0,br.Z)(function(Dt){(0,Ye.Sh)(Dt)&&ya!==Dt&&(Ui(Dt),In.current=Dt)}),ci=N.Children.only(qr),_a=(ci==null?void 0:ci.props)||{},ra={},Fa=(0,br.Z)(function(Dt){var Zt,Fn,pn=ya;return(pn==null?void 0:pn.contains(Dt))||((Zt=Ge(pn))===null||Zt===void 0?void 0:Zt.host)===Dt||Dt===pn||(dn==null?void 0:dn.contains(Dt))||((Fn=Ge(dn))===null||Fn===void 0?void 0:Fn.host)===Dt||Dt===dn||Object.values(Ei.current).some(function(fn){return(fn==null?void 0:fn.contains(Dt))||Dt===fn})}),Oa=je(Nr,Nn,Mn,Yt),zt=je(Nr,Xt,pa,ea),Ra=N.useState(Dn||!1),aa=(0,We.Z)(Ra,2),Gn=aa[0],Ht=aa[1],Vn=Qt!=null?Qt:Gn,Yi=(0,br.Z)(function(Dt){Qt===void 0&&Ht(Dt)});(0,K.Z)(function(){Ht(Qt||!1)},[Qt]);var hn=N.useRef(Vn);hn.current=Vn;var zi=N.useRef([]);zi.current=[];var Ji=(0,br.Z)(function(Dt){var Zt;Yi(Dt),((Zt=zi.current[zi.current.length-1])!==null&&Zt!==void 0?Zt:Vn)!==Dt&&(zi.current.push(Dt),yt==null||yt(Dt))}),Wi=N.useRef(),Ii=function(){clearTimeout(Wi.current)},Qa=function(Zt){var Fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ii(),Fn===0?Ji(Zt):Wi.current=setTimeout(function(){Ji(Zt)},Fn*1e3)};N.useEffect(function(){return Ii},[]);var Gs=N.useState(!1),Rn=(0,We.Z)(Gs,2),Hi=Rn[0],ss=Rn[1];(0,K.Z)(function(Dt){(!Dt||Vn)&&ss(!0)},[Vn]);var fi=N.useState(null),gi=(0,We.Z)(fi,2),tn=gi[0],fa=gi[1],Pa=N.useState([0,0]),os=(0,We.Z)(Pa,2),qi=os[0],bs=os[1],ws=function(Zt){bs([Zt.clientX,Zt.clientY])},Gi=Wr(Vn,dn,ht?qi:ya,vi,Sr,_e,It),Ea=(0,We.Z)(Gi,11),va=Ea[0],mi=Ea[1],jr=Ea[2],re=Ea[3],Oe=Ea[4],He=Ea[5],ae=Ea[6],Be=Ea[7],Rr=Ea[8],Or=Ea[9],tt=Ea[10],Nt=ee(_i,Ut,gt,qt),St=(0,We.Z)(Nt,2),Ot=St[0],wt=St[1],kt=Ot.has("click"),on=wt.has("click")||wt.has("contextMenu"),Wt=(0,br.Z)(function(){Hi||tt()}),cn=function(){hn.current&&ht&&on&&Qa(!1)};$r(Vn,ya,dn,Wt,cn),(0,K.Z)(function(){Wt()},[qi,vi]),(0,K.Z)(function(){Vn&&!(Sr!=null&&Sr[vi])&&Wt()},[JSON.stringify(_e)]);var wn=N.useMemo(function(){var Dt=de(Sr,Nr,Or,ht);return x()(Dt,er==null?void 0:er(Or))},[Or,er,Sr,Nr,ht]);N.useImperativeHandle(Mr,function(){return{nativeElement:In.current,popupElement:oi.current,forceAlign:Wt}});var sa=N.useState(0),Xn=(0,We.Z)(sa,2),ia=Xn[0],Sa=Xn[1],Na=N.useState(0),li=(0,We.Z)(Na,2),Fi=li[0],xi=li[1],yi=function(){if(Ne&&ya){var Zt=ya.getBoundingClientRect();Sa(Zt.width),xi(Zt.height)}},Un=function(){yi(),Wt()},ga=function(Zt){ss(!1),tt(),Tn==null||Tn(Zt)},bi=function(){return new Promise(function(Zt){yi(),fa(function(){return Zt})})};(0,K.Z)(function(){tn&&(tt(),tn(),fa(null))},[tn]);function ta(Dt,Zt,Fn,pn){ra[Dt]=function(fn){var gr;pn==null||pn(fn),Qa(Zt,Fn);for(var ri=arguments.length,oa=new Array(ri>1?ri-1:0),Fr=1;Fr1?Fn-1:0),fn=1;fn1?Fn-1:0),fn=1;fn{let Oe=re,He=re,ae=re,Be=re;return re<6&&re>=5?Oe=re+1:re<16&&re>=6?Oe=re+2:re>=16&&(Oe=16),re<7&&re>=5?He=4:re<8&&re>=7?He=5:re<14&&re>=8?He=6:re<16&&re>=14?He=7:re>=16&&(He=8),re<6&&re>=2?ae=1:re>=6&&(ae=2),re>4&&re<8?Be=4:re>=8&&(Be=6),{borderRadius:re,borderRadiusXS:ae,borderRadiusSM:He,borderRadiusLG:Oe,borderRadiusOuter:Be}};function x(re){const{motionUnit:Oe,motionBase:He,borderRadius:ae,lineWidth:Be}=re;return Object.assign({motionDurationFast:`${(He+Oe).toFixed(1)}s`,motionDurationMid:`${(He+Oe*2).toFixed(1)}s`,motionDurationSlow:`${(He+Oe*3).toFixed(1)}s`,lineWidthBold:Be+1},T(ae))}var Ye=re=>{const{controlHeight:Oe}=re;return{controlHeightSM:Oe*.75,controlHeightXS:Oe*.5,controlHeightLG:Oe*1.25}};function De(re){return(re+8)/re}function Br(re){const Oe=new Array(10).fill(null).map((He,ae)=>{const Be=ae-1,Rr=re*Math.pow(2.71828,Be/5),Or=ae>1?Math.floor(Rr):Math.ceil(Rr);return Math.floor(Or/2)*2});return Oe[1]=re,Oe.map(He=>({size:He,lineHeight:De(He)}))}var br=re=>{const Oe=Br(re),He=Oe.map(Ot=>Ot.size),ae=Oe.map(Ot=>Ot.lineHeight),Be=He[1],Rr=He[0],Or=He[2],tt=ae[1],Nt=ae[0],St=ae[2];return{fontSizeSM:Rr,fontSize:Be,fontSizeLG:Or,fontSizeXL:He[3],fontSizeHeading1:He[6],fontSizeHeading2:He[5],fontSizeHeading3:He[4],fontSizeHeading4:He[3],fontSizeHeading5:He[2],lineHeight:tt,lineHeightLG:St,lineHeightSM:Nt,fontHeight:Math.round(tt*Be),fontHeightLG:Math.round(St*Or),fontHeightSM:Math.round(Nt*Rr),lineHeightHeading1:ae[6],lineHeightHeading2:ae[5],lineHeightHeading3:ae[4],lineHeightHeading4:ae[3],lineHeightHeading5:ae[2]}};function Ve(re){const{sizeUnit:Oe,sizeStep:He}=re;return{sizeXXL:Oe*(He+8),sizeXL:Oe*(He+4),sizeLG:Oe*(He+2),sizeMD:Oe*(He+1),sizeMS:Oe*He,size:Oe*He,sizeSM:Oe*(He-1),sizeXS:Oe*(He-2),sizeXXS:Oe*(He-3)}}const pe=(re,Oe)=>new we.C(re).setAlpha(Oe).toRgbString(),Cr=(re,Oe)=>new we.C(re).darken(Oe).toHexString(),Er=re=>{const Oe=(0,Je.generate)(re);return{1:Oe[0],2:Oe[1],3:Oe[2],4:Oe[3],5:Oe[4],6:Oe[5],7:Oe[6],8:Oe[4],9:Oe[5],10:Oe[6]}},wr=(re,Oe)=>{const He=re||"#fff",ae=Oe||"#000";return{colorBgBase:He,colorTextBase:ae,colorText:pe(ae,.88),colorTextSecondary:pe(ae,.65),colorTextTertiary:pe(ae,.45),colorTextQuaternary:pe(ae,.25),colorFill:pe(ae,.15),colorFillSecondary:pe(ae,.06),colorFillTertiary:pe(ae,.04),colorFillQuaternary:pe(ae,.02),colorBgLayout:Cr(He,4),colorBgContainer:Cr(He,0),colorBgElevated:Cr(He,0),colorBgSpotlight:pe(ae,.85),colorBgBlur:"transparent",colorBorder:Cr(He,15),colorBorderSecondary:Cr(He,6)}};function Kr(re){const Oe=Object.keys(ze).map(He=>{const ae=(0,Je.generate)(re[He]);return new Array(10).fill(1).reduce((Be,Rr,Or)=>(Be[`${He}-${Or+1}`]=ae[Or],Be[`${He}${Or+1}`]=ae[Or],Be),{})}).reduce((He,ae)=>(He=Object.assign(Object.assign({},He),ae),He),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},re),Oe),Ze(re,{generateColorPalettes:Er,generateNeutralColorPalettes:wr})),br(re.fontSize)),Ve(re)),Ye(re)),x(re))}const Ft=(0,le.createTheme)(Kr),Jr={token:z,override:{override:z},hashed:!0},Dr=We().createContext(Jr);function lt(re){return re>=0&&re<=255}function Et(re,Oe){const{r:He,g:ae,b:Be,a:Rr}=new we.C(re).toRgb();if(Rr<1)return re;const{r:Or,g:tt,b:Nt}=new we.C(Oe).toRgb();for(let St=.01;St<=1;St+=.01){const Ot=Math.round((He-Or*(1-St))/St),wt=Math.round((ae-tt*(1-St))/St),kt=Math.round((Be-Nt*(1-St))/St);if(lt(Ot)&<(wt)&<(kt))return new we.C({r:Ot,g:wt,b:kt,a:Math.round(St*100)/100}).toRgbString()}return new we.C({r:He,g:ae,b:Be,a:1}).toRgbString()}var Pt=Et,Ir=function(re,Oe){var He={};for(var ae in re)Object.prototype.hasOwnProperty.call(re,ae)&&Oe.indexOf(ae)<0&&(He[ae]=re[ae]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,ae=Object.getOwnPropertySymbols(re);Be{delete ae[kt]});const Be=Object.assign(Object.assign({},He),ae),Rr=480,Or=576,tt=768,Nt=992,St=1200,Ot=1600;if(Be.motion===!1){const kt="0s";Be.motionDurationFast=kt,Be.motionDurationMid=kt,Be.motionDurationSlow=kt}return Object.assign(Object.assign(Object.assign({},Be),{colorFillContent:Be.colorFillSecondary,colorFillContentHover:Be.colorFill,colorFillAlter:Be.colorFillQuaternary,colorBgContainerDisabled:Be.colorFillTertiary,colorBorderBg:Be.colorBgContainer,colorSplit:Pt(Be.colorBorderSecondary,Be.colorBgContainer),colorTextPlaceholder:Be.colorTextQuaternary,colorTextDisabled:Be.colorTextQuaternary,colorTextHeading:Be.colorText,colorTextLabel:Be.colorTextSecondary,colorTextDescription:Be.colorTextTertiary,colorTextLightSolid:Be.colorWhite,colorHighlight:Be.colorError,colorBgTextHover:Be.colorFillSecondary,colorBgTextActive:Be.colorFill,colorIcon:Be.colorTextTertiary,colorIconHover:Be.colorText,colorErrorOutline:Pt(Be.colorErrorBg,Be.colorBgContainer),colorWarningOutline:Pt(Be.colorWarningBg,Be.colorBgContainer),fontSizeIcon:Be.fontSizeSM,lineWidthFocus:Be.lineWidth*4,lineWidth:Be.lineWidth,controlOutlineWidth:Be.lineWidth*2,controlInteractiveSize:Be.controlHeight/2,controlItemBgHover:Be.colorFillTertiary,controlItemBgActive:Be.colorPrimaryBg,controlItemBgActiveHover:Be.colorPrimaryBgHover,controlItemBgActiveDisabled:Be.colorFill,controlTmpOutline:Be.colorFillQuaternary,controlOutline:Pt(Be.colorPrimaryBg,Be.colorBgContainer),lineType:Be.lineType,borderRadius:Be.borderRadius,borderRadiusXS:Be.borderRadiusXS,borderRadiusSM:Be.borderRadiusSM,borderRadiusLG:Be.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:Be.sizeXXS,paddingXS:Be.sizeXS,paddingSM:Be.sizeSM,padding:Be.size,paddingMD:Be.sizeMD,paddingLG:Be.sizeLG,paddingXL:Be.sizeXL,paddingContentHorizontalLG:Be.sizeLG,paddingContentVerticalLG:Be.sizeMS,paddingContentHorizontal:Be.sizeMS,paddingContentVertical:Be.sizeSM,paddingContentHorizontalSM:Be.size,paddingContentVerticalSM:Be.sizeXS,marginXXS:Be.sizeXXS,marginXS:Be.sizeXS,marginSM:Be.sizeSM,margin:Be.size,marginMD:Be.sizeMD,marginLG:Be.sizeLG,marginXL:Be.sizeXL,marginXXL:Be.sizeXXL,boxShadow:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowSecondary:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTertiary:` + 0 1px 2px 0 rgba(0, 0, 0, 0.03), + 0 1px 6px -1px rgba(0, 0, 0, 0.02), + 0 2px 4px 0 rgba(0, 0, 0, 0.02) + `,screenXS:Rr,screenXSMin:Rr,screenXSMax:Or-1,screenSM:Or,screenSMMin:Or,screenSMMax:tt-1,screenMD:tt,screenMDMin:tt,screenMDMax:Nt-1,screenLG:Nt,screenLGMin:Nt,screenLGMax:St-1,screenXL:St,screenXLMin:St,screenXLMax:Ot-1,screenXXL:Ot,screenXXLMin:Ot,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` + 0 1px 2px -2px ${new we.C("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new we.C("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new we.C("rgba(0, 0, 0, 0.09)").toRgbString()} + `,boxShadowDrawerRight:` + -6px 0 16px 0 rgba(0, 0, 0, 0.08), + -3px 0 6px -4px rgba(0, 0, 0, 0.12), + -9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerLeft:` + 6px 0 16px 0 rgba(0, 0, 0, 0.08), + 3px 0 6px -4px rgba(0, 0, 0, 0.12), + 9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerUp:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerDown:` + 0 -6px 16px 0 rgba(0, 0, 0, 0.08), + 0 -3px 6px -4px rgba(0, 0, 0, 0.12), + 0 -9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),ae)}var lr=function(re,Oe){var He={};for(var ae in re)Object.prototype.hasOwnProperty.call(re,ae)&&Oe.indexOf(ae)<0&&(He[ae]=re[ae]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,ae=Object.getOwnPropertySymbols(re);Be{const ae=He.getDerivativeToken(re),{override:Be}=Oe,Rr=lr(Oe,["override"]);let Or=Object.assign(Object.assign({},ae),{override:Be});return Or=C(Or),Rr&&Object.entries(Rr).forEach(tt=>{let[Nt,St]=tt;const{theme:Ot}=St,wt=lr(St,["theme"]);let kt=wt;Ot&&(kt=E(Object.assign(Object.assign({},Or),wt),{override:wt},Ot)),Or[Nt]=kt}),Or};function ee(){const{token:re,hashed:Oe,theme:He,override:ae,cssVar:Be}=We().useContext(Dr),Rr=`${ve}-${Oe||""}`,Or=He||Ft,[tt,Nt,St]=(0,le.useCacheToken)(Or,[z,re],{salt:Rr,override:ae,getComputedToken:E,formatToken:C,cssVar:Be&&{prefix:Be.prefix,key:Be.key,unitless:m,ignore:u,preserve:h}});return[Or,St,Oe?Nt:"",tt,Be]}var oe=We().createContext(void 0);const de=100,Re=de*10,cr={Modal:de,Drawer:de,Popover:de,Popconfirm:de,Tooltip:de,Tour:de},B={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function ye(re){return re in cr}function ar(re,Oe){const[,He]=ee(),ae=We().useContext(oe),Be=ye(re);if(Oe!==void 0)return[Oe,Oe];let Rr=ae!=null?ae:0;return Be?(Rr+=(ae?0:He.zIndexPopupBase)+cr[re],Rr=Math.min(Rr,He.zIndexPopupBase+Re)):Rr+=B[re],[ae===void 0?Oe:Rr,Rr]}const dr=()=>({height:0,opacity:0}),Ur=re=>{const{scrollHeight:Oe}=re;return{height:Oe,opacity:1}},vt=re=>({height:re?re.offsetHeight:0}),it=(re,Oe)=>(Oe==null?void 0:Oe.deadline)===!0||Oe.propertyName==="height",ft=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:dr,onEnterStart:dr,onAppearActive:Ur,onEnterActive:Ur,onLeaveStart:vt,onLeaveActive:dr,onAppearEnd:it,onEnterEnd:it,onLeaveEnd:it,motionDeadline:500}},Wr=null,$r=(re,Oe,He)=>He!==void 0?He:`${re}-${Oe}`;var dt=null;function Xr(re){const{sizePopupArrow:Oe,borderRadiusXS:He,borderRadiusOuter:ae}=re,Be=Oe/2,Rr=0,Or=Be,tt=ae*1/Math.sqrt(2),Nt=Be-ae*(1-1/Math.sqrt(2)),St=Be-He*(1/Math.sqrt(2)),Ot=ae*(Math.sqrt(2)-1)+He*(1/Math.sqrt(2)),wt=2*Be-St,kt=Ot,on=2*Be-tt,Wt=Nt,cn=2*Be-Rr,wn=Or,sa=Be*Math.sqrt(2)+ae*(Math.sqrt(2)-2),Xn=ae*(Math.sqrt(2)-1),ia=`polygon(${Xn}px 100%, 50% ${Xn}px, ${2*Be-Xn}px 100%, ${Xn}px 100%)`,Sa=`path('M ${Rr} ${Or} A ${ae} ${ae} 0 0 0 ${tt} ${Nt} L ${St} ${Ot} A ${He} ${He} 0 0 1 ${wt} ${kt} L ${on} ${Wt} A ${ae} ${ae} 0 0 0 ${cn} ${wn} Z')`;return{arrowShadowWidth:sa,arrowPath:Sa,arrowPolygon:ia}}const Mt=(re,Oe,He)=>{const{sizePopupArrow:ae,arrowPolygon:Be,arrowPath:Rr,arrowShadowWidth:Or,borderRadiusXS:tt,calc:Nt}=re;return{pointerEvents:"none",width:ae,height:ae,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:ae,height:Nt(ae).div(2).equal(),background:Oe,clipPath:{_multi_value_:!0,value:[Be,Rr]},content:'""'},"&::after":{content:'""',position:"absolute",width:Or,height:Or,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${(0,le.unit)(tt)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:He,zIndex:0,background:"transparent"}}},rn=8;function $e(re){const{contentRadius:Oe,limitVerticalRadius:He}=re,ae=Oe>12?Oe+2:12;return{arrowOffsetHorizontal:ae,arrowOffsetVertical:He?rn:ae}}function xr(re,Oe){return re?Oe:{}}function nr(re,Oe,He){const{componentCls:ae,boxShadowPopoverArrow:Be,arrowOffsetVertical:Rr,arrowOffsetHorizontal:Or}=re,{arrowDistance:tt=0,arrowPlacement:Nt={left:!0,right:!0,top:!0,bottom:!0}}=He||{};return{[ae]:Object.assign(Object.assign(Object.assign(Object.assign({[`${ae}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Mt(re,Oe,Be)),{"&:before":{background:Oe}})]},xr(!!Nt.top,{[[`&-placement-top > ${ae}-arrow`,`&-placement-topLeft > ${ae}-arrow`,`&-placement-topRight > ${ae}-arrow`].join(",")]:{bottom:tt,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${ae}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${ae}-arrow`]:{left:{_skip_check_:!0,value:Or}},[`&-placement-topRight > ${ae}-arrow`]:{right:{_skip_check_:!0,value:Or}}})),xr(!!Nt.bottom,{[[`&-placement-bottom > ${ae}-arrow`,`&-placement-bottomLeft > ${ae}-arrow`,`&-placement-bottomRight > ${ae}-arrow`].join(",")]:{top:tt,transform:"translateY(-100%)"},[`&-placement-bottom > ${ae}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${ae}-arrow`]:{left:{_skip_check_:!0,value:Or}},[`&-placement-bottomRight > ${ae}-arrow`]:{right:{_skip_check_:!0,value:Or}}})),xr(!!Nt.left,{[[`&-placement-left > ${ae}-arrow`,`&-placement-leftTop > ${ae}-arrow`,`&-placement-leftBottom > ${ae}-arrow`].join(",")]:{right:{_skip_check_:!0,value:tt},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${ae}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${ae}-arrow`]:{top:Rr},[`&-placement-leftBottom > ${ae}-arrow`]:{bottom:Rr}})),xr(!!Nt.right,{[[`&-placement-right > ${ae}-arrow`,`&-placement-rightTop > ${ae}-arrow`,`&-placement-rightBottom > ${ae}-arrow`].join(",")]:{left:{_skip_check_:!0,value:tt},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${ae}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${ae}-arrow`]:{top:Rr},[`&-placement-rightBottom > ${ae}-arrow`]:{bottom:Rr}}))}}function Mr(re,Oe,He,ae){if(ae===!1)return{adjustX:!1,adjustY:!1};const Be=ae&&typeof ae=="object"?ae:{},Rr={};switch(re){case"top":case"bottom":Rr.shiftX=Oe.arrowOffsetHorizontal*2+He,Rr.shiftY=!0,Rr.adjustY=!0;break;case"left":case"right":Rr.shiftY=Oe.arrowOffsetVertical*2+He,Rr.shiftX=!0,Rr.adjustX=!0;break}const Or=Object.assign(Object.assign({},Rr),Be);return Or.shiftX||(Or.adjustX=!0),Or.shiftY||(Or.adjustY=!0),Or}const Hr={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},Nr={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},qr=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function At(re){const{arrowWidth:Oe,autoAdjustOverflow:He,arrowPointAtCenter:ae,offset:Be,borderRadius:Rr,visibleFirst:Or}=re,tt=Oe/2,Nt={};return Object.keys(Hr).forEach(St=>{const Ot=ae&&Nr[St]||Hr[St],wt=Object.assign(Object.assign({},Ot),{offset:[0,0],dynamicInset:!0});switch(Nt[St]=wt,qr.has(St)&&(wt.autoArrow=!1),St){case"top":case"topLeft":case"topRight":wt.offset[1]=-tt-Be;break;case"bottom":case"bottomLeft":case"bottomRight":wt.offset[1]=tt+Be;break;case"left":case"leftTop":case"leftBottom":wt.offset[0]=-tt-Be;break;case"right":case"rightTop":case"rightBottom":wt.offset[0]=tt+Be;break}const kt=$e({contentRadius:Rr,limitVerticalRadius:!0});if(ae)switch(St){case"topLeft":case"bottomLeft":wt.offset[0]=-kt.arrowOffsetHorizontal-tt;break;case"topRight":case"bottomRight":wt.offset[0]=kt.arrowOffsetHorizontal+tt;break;case"leftTop":case"rightTop":wt.offset[1]=-kt.arrowOffsetHorizontal-tt;break;case"leftBottom":case"rightBottom":wt.offset[1]=kt.arrowOffsetHorizontal+tt;break}wt.overflow=Mr(St,kt,Oe,He),Or&&(wt.htmlRegion="visibleFirst")}),Nt}function Ut(re){return re&&We().isValidElement(re)&&re.type===We().Fragment}const gt=(re,Oe,He)=>We().isValidElement(re)?We().cloneElement(re,typeof He=="function"?He(re.props||{}):He):Oe;function qt(re,Oe){return gt(re,re,Oe)}var Qt=V(74485);function Dn(){}let yt=null;function Tn(){yt=null,rcResetWarned()}let Bn=null;const Pn=Q.createContext({}),na=()=>{const re=()=>{};return re.deprecated=Dn,re};var gn=null;const ln="anticon",$t=(re,Oe)=>Oe||(re?`ant-${re}`:"ant"),jn=Q.createContext({getPrefixCls:$t,iconPrefixCls:ln}),{Consumer:Wa}=jn;var Da=V(27406),Ya=function(re,Oe){var He={};for(var ae in re)Object.prototype.hasOwnProperty.call(re,ae)&&Oe.indexOf(ae)<0&&(He[ae]=re[ae]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,ae=Object.getOwnPropertySymbols(re);Be{const He=React.useContext(Ha),ae=React.useMemo(()=>{if(!He)return"";const{compactDirection:Be,isFirstItem:Rr,isLastItem:Or}=He,tt=Be==="vertical"?"-vertical-":"-";return classNames(`${re}-compact${tt}item`,{[`${re}-compact${tt}first-item`]:Rr,[`${re}-compact${tt}last-item`]:Or,[`${re}-compact${tt}item-rtl`]:Oe==="rtl"})},[re,Oe,He]);return{compactSize:He==null?void 0:He.compactSize,compactDirection:He==null?void 0:He.compactDirection,compactItemClassnames:ae}},Ga=re=>{let{children:Oe}=re;return Q.createElement(Ha.Provider,{value:null},Oe)},Qr=re=>{var{children:Oe}=re,He=Ya(re,["children"]);return React.createElement(Ha.Provider,{value:He},Oe)},ma=re=>{const{getPrefixCls:Oe,direction:He}=React.useContext(ConfigContext),{size:ae,direction:Be,block:Rr,prefixCls:Or,className:tt,rootClassName:Nt,children:St}=re,Ot=Ya(re,["size","direction","block","prefixCls","className","rootClassName","children"]),wt=useSize(ia=>ae!=null?ae:ia),kt=Oe("space-compact",Or),[on,Wt]=useStyle(kt),cn=classNames(kt,Wt,{[`${kt}-rtl`]:He==="rtl",[`${kt}-block`]:Rr,[`${kt}-vertical`]:Be==="vertical"},tt,Nt),wn=React.useContext(Ha),sa=toArray(St),Xn=React.useMemo(()=>sa.map((ia,Sa)=>{const Na=ia&&ia.key||`${kt}-item-${Sa}`;return React.createElement(Qr,{key:Na,compactSize:wt,compactDirection:Be,isFirstItem:Sa===0&&(!wn||(wn==null?void 0:wn.isFirstItem)),isLastItem:Sa===sa.length-1&&(!wn||(wn==null?void 0:wn.isLastItem))},ia)}),[ae,sa,wn]);return sa.length===0?null:on(React.createElement("div",Object.assign({className:cn},Ot),Xn))};var vi=null;const Va={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Sr=function(re){let Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:re.colorText,fontSize:re.fontSize,lineHeight:re.lineHeight,listStyle:"none",fontFamily:Oe?"inherit":re.fontFamily}},_e=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Te=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Ne=re=>({a:{color:re.colorLink,textDecoration:re.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${re.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:re.colorLinkHover},"&:active":{color:re.colorLinkActive},"&:active,\n &:hover":{textDecoration:re.linkHoverDecoration,outline:0},"&:focus":{textDecoration:re.linkFocusDecoration,outline:0},"&[disabled]":{color:re.colorTextDisabled,cursor:"not-allowed"}}}),er=(re,Oe,He,ae)=>{const Be=`[class^="${Oe}"], [class*=" ${Oe}"]`,Rr=He?`.${He}`:Be,Or={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let tt={};return ae!==!1&&(tt={fontFamily:re.fontFamily,fontSize:re.fontSize}),{[Rr]:Object.assign(Object.assign(Object.assign({},tt),Or),{[Be]:Or})}},Tr=re=>({outline:`${unit(re.lineWidthFocus)} solid ${re.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ht=re=>({"&:focus-visible":Object.assign({},Tr(re))}),Gt=re=>({animationDuration:re,animationFillMode:"both"}),It=re=>({animationDuration:re,animationFillMode:"both"}),kn=function(re,Oe,He,ae){const Rr=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + ${Rr}${re}-enter, + ${Rr}${re}-appear + `]:Object.assign(Object.assign({},Gt(ae)),{animationPlayState:"paused"}),[`${Rr}${re}-leave`]:Object.assign(Object.assign({},It(ae)),{animationPlayState:"paused"}),[` + ${Rr}${re}-enter${re}-enter-active, + ${Rr}${re}-appear${re}-appear-active + `]:{animationName:Oe,animationPlayState:"running"},[`${Rr}${re}-leave${re}-leave-active`]:{animationName:He,animationPlayState:"running",pointerEvents:"none"}}},Nn=new le.Keyframes("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Xt=new le.Keyframes("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Yt=new le.Keyframes("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Mn=new le.Keyframes("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),ea=new le.Keyframes("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),pa=new le.Keyframes("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),si=new le.Keyframes("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),mn=new le.Keyframes("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Yn=new le.Keyframes("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),xn=new le.Keyframes("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),On=new le.Keyframes("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Ln=new le.Keyframes("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),_i={zoom:{inKeyframes:Nn,outKeyframes:Xt},"zoom-big":{inKeyframes:Yt,outKeyframes:Mn},"zoom-big-fast":{inKeyframes:Yt,outKeyframes:Mn},"zoom-left":{inKeyframes:si,outKeyframes:mn},"zoom-right":{inKeyframes:Yn,outKeyframes:xn},"zoom-up":{inKeyframes:ea,outKeyframes:pa},"zoom-down":{inKeyframes:On,outKeyframes:Ln}},bn=(re,Oe)=>{const{antCls:He}=re,ae=`${He}-${Oe}`,{inKeyframes:Be,outKeyframes:Rr}=_i[Oe];return[kn(ae,Be,Rr,Oe==="zoom-big-fast"?re.motionDurationFast:re.motionDurationMid),{[` + ${ae}-enter, + ${ae}-appear + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:re.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${ae}-leave`]:{animationTimingFunction:re.motionEaseInOutCirc}}]},Ei=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Ja(re,Oe){return Ei.reduce((He,ae)=>{const Be=re[`${ae}1`],Rr=re[`${ae}3`],Or=re[`${ae}6`],tt=re[`${ae}7`];return Object.assign(Object.assign({},He),Oe(ae,{lightColor:Be,lightBorderColor:Rr,darkColor:Or,textColor:tt}))},{})}const is=typeof CSSINJS_STATISTIC!="undefined";let Ia=!0;function $n(){for(var re=arguments.length,Oe=new Array(re),He=0;He{Object.keys(Be).forEach(Or=>{Object.defineProperty(ae,Or,{configurable:!0,enumerable:!0,get:()=>Be[Or]})})}),Ia=!0,ae}const Ki={},dn={};function xa(){}var qa=re=>{let Oe,He=re,ae=xa;return is&&typeof Proxy!="undefined"&&(Oe=new Set,He=new Proxy(re,{get(Be,Rr){return Ia&&Oe.add(Rr),Be[Rr]}}),ae=(Be,Rr)=>{var Or;Ki[Be]={global:Array.from(Oe),component:Object.assign(Object.assign({},(Or=Ki[Be])===null||Or===void 0?void 0:Or.component),Rr)}}),{token:He,keys:Oe,flush:ae}},Vt=V(93870),Di=V(22951),ya=V(91976),Ui=V(27597),In=V(98119),ys=V(99492);function ci(re,Oe,He){return Oe=(0,Ui.Z)(Oe),(0,ys.Z)(re,(0,In.Z)()?Reflect.construct(Oe,He||[],(0,Ui.Z)(re).constructor):Oe.apply(re,He))}var _a=V(67591),Fa=(0,ya.Z)(function re(){(0,Di.Z)(this,re)});const Oa="CALC_UNIT",zt=new RegExp(Oa,"g");function Ra(re){return typeof re=="number"?`${re}${Oa}`:re}let aa=function(re){function Oe(He){var ae;return(0,Di.Z)(this,Oe),ae=ci(this,Oe),ae.result="",He instanceof Oe?ae.result=`(${He.result})`:typeof He=="number"?ae.result=Ra(He):typeof He=="string"&&(ae.result=He),ae}return(0,_a.Z)(Oe,re),(0,ya.Z)(Oe,[{key:"add",value:function(ae){return ae instanceof Oe?this.result=`${this.result} + ${ae.getResult()}`:(typeof ae=="number"||typeof ae=="string")&&(this.result=`${this.result} + ${Ra(ae)}`),this.lowPriority=!0,this}},{key:"sub",value:function(ae){return ae instanceof Oe?this.result=`${this.result} - ${ae.getResult()}`:(typeof ae=="number"||typeof ae=="string")&&(this.result=`${this.result} - ${Ra(ae)}`),this.lowPriority=!0,this}},{key:"mul",value:function(ae){return this.lowPriority&&(this.result=`(${this.result})`),ae instanceof Oe?this.result=`${this.result} * ${ae.getResult(!0)}`:(typeof ae=="number"||typeof ae=="string")&&(this.result=`${this.result} * ${ae}`),this.lowPriority=!1,this}},{key:"div",value:function(ae){return this.lowPriority&&(this.result=`(${this.result})`),ae instanceof Oe?this.result=`${this.result} / ${ae.getResult(!0)}`:(typeof ae=="number"||typeof ae=="string")&&(this.result=`${this.result} / ${ae}`),this.lowPriority=!1,this}},{key:"getResult",value:function(ae){return this.lowPriority||ae?`(${this.result})`:this.result}},{key:"equal",value:function(ae){const{unit:Be=!0}=ae||{};return this.result=this.result.replace(zt,Be?"px":""),typeof this.lowPriority!="undefined"?`calc(${this.result})`:this.result}}])}(Fa),Gn=function(re){function Oe(He){var ae;return(0,Di.Z)(this,Oe),ae=ci(this,Oe),ae.result=0,He instanceof Oe?ae.result=He.result:typeof He=="number"&&(ae.result=He),ae}return(0,_a.Z)(Oe,re),(0,ya.Z)(Oe,[{key:"add",value:function(ae){return ae instanceof Oe?this.result+=ae.result:typeof ae=="number"&&(this.result+=ae),this}},{key:"sub",value:function(ae){return ae instanceof Oe?this.result-=ae.result:typeof ae=="number"&&(this.result-=ae),this}},{key:"mul",value:function(ae){return ae instanceof Oe?this.result*=ae.result:typeof ae=="number"&&(this.result*=ae),this}},{key:"div",value:function(ae){return ae instanceof Oe?this.result/=ae.result:typeof ae=="number"&&(this.result/=ae),this}},{key:"equal",value:function(){return this.result}}])}(Fa);var Vn=re=>{const Oe=re==="css"?aa:Gn;return He=>new Oe(He)};function Yi(re){return re==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var Oe=arguments.length,He=new Array(Oe),ae=0;ae(0,le.unit)(Be)).join(",")})`},min:function(){for(var Oe=arguments.length,He=new Array(Oe),ae=0;ae(0,le.unit)(Be)).join(",")})`}}}var zi=(re,Oe)=>{const[He,ae]=ee();return(0,le.useStyleRegister)({theme:He,token:ae,hashId:"",path:["ant-design-icons",re],nonce:()=>Oe==null?void 0:Oe.nonce,layer:{name:"antd"}},()=>[{[`.${re}`]:Object.assign(Object.assign({},_e()),{[`.${re} .${re}-icon`]:{display:"block"}})}])};const Ji=(re,Oe,He)=>{var ae;return typeof He=="function"?He($n(Oe,(ae=Oe[re])!==null&&ae!==void 0?ae:{})):He!=null?He:{}},Wi=(re,Oe,He,ae)=>{const Be=Object.assign({},Oe[re]);if(ae!=null&&ae.deprecatedTokens){const{deprecatedTokens:Or}=ae;Or.forEach(tt=>{let[Nt,St]=tt;var Ot;(Be!=null&&Be[Nt]||Be!=null&&Be[St])&&((Ot=Be[St])!==null&&Ot!==void 0||(Be[St]=Be==null?void 0:Be[Nt]))})}const Rr=Object.assign(Object.assign({},He),Be);return Object.keys(Rr).forEach(Or=>{Rr[Or]===Oe[Or]&&delete Rr[Or]}),Rr},Ii=(re,Oe)=>`${[Oe,re.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function Qa(re,Oe,He){let ae=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const Be=Array.isArray(re)?re:[re,re],[Rr]=Be,Or=Be.join("-");return function(tt){let Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tt;const[St,Ot,wt,kt,on]=ee(),{getPrefixCls:Wt,iconPrefixCls:cn,csp:wn}=(0,Q.useContext)(jn),sa=Wt(),Xn=on?"css":"js",ia=Vn(Xn),{max:Sa,min:Na}=Yi(Xn),li={theme:St,token:kt,hashId:wt,nonce:()=>wn==null?void 0:wn.nonce,clientOnly:ae.clientOnly,layer:{name:"antd"},order:ae.order||-999};return(0,le.useStyleRegister)(Object.assign(Object.assign({},li),{clientOnly:!1,path:["Shared",sa]}),()=>[{"&":Ne(kt)}]),zi(cn,wn),[(0,le.useStyleRegister)(Object.assign(Object.assign({},li),{path:[Or,tt,cn]}),()=>{if(ae.injectStyle===!1)return[];const{token:xi,flush:yi}=qa(kt),Un=Ji(Rr,Ot,He),ga=`.${tt}`,bi=Wi(Rr,Ot,Un,{deprecatedTokens:ae.deprecatedTokens});on&&Object.keys(Un).forEach(ba=>{Un[ba]=`var(${(0,le.token2CSSVar)(ba,Ii(Rr,on.prefix))})`});const ta=$n(xi,{componentCls:ga,prefixCls:tt,iconCls:`.${cn}`,antCls:`.${sa}`,calc:ia,max:Sa,min:Na},on?Un:bi),Ba=Oe(ta,{hashId:wt,prefixCls:tt,rootPrefixCls:sa,iconPrefixCls:cn});return yi(Rr,bi),[ae.resetStyle===!1?null:er(ta,tt,Nt,ae.resetFont),Ba]}),wt]}}const Gs=(re,Oe,He,ae)=>{const Be=Qa(re,Oe,He,Object.assign({resetStyle:!1,order:-998},ae));return Or=>{let{prefixCls:tt,rootCls:Nt=tt}=Or;return Be(tt,Nt),null}},Rn=(re,Oe,He)=>{function ae(St){return`${re}${St.slice(0,1).toUpperCase()}${St.slice(1)}`}const{unitless:Be={},injectStyle:Rr=!0}=He!=null?He:{},Or={[ae("zIndexPopup")]:!0};Object.keys(Be).forEach(St=>{Or[ae(St)]=Be[St]});const tt=St=>{let{rootCls:Ot,cssVar:wt}=St;const[,kt]=ee();return(0,le.useCSSVarRegister)({path:[re],prefix:wt.prefix,key:wt==null?void 0:wt.key,unitless:Object.assign(Object.assign({},m),Or),ignore:u,token:kt,scope:Ot},()=>{const on=Ji(re,kt,Oe),Wt=Wi(re,kt,on,{deprecatedTokens:He==null?void 0:He.deprecatedTokens});return Object.keys(on).forEach(cn=>{Wt[ae(cn)]=Wt[cn],delete Wt[cn]}),Wt}),null};return St=>{const[,,,,Ot]=ee();return[wt=>Rr&&Ot?We().createElement(We().Fragment,null,We().createElement(tt,{rootCls:St,cssVar:Ot,component:re}),wt):wt,Ot==null?void 0:Ot.key]}},Hi=(re,Oe,He,ae)=>{const Be=Qa(re,Oe,He,ae),Rr=Rn(Array.isArray(re)?re[0]:re,He,ae);return function(Or){let tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Or;const[,Nt]=Be(Or,tt),[St,Ot]=Rr(tt);return[St,Nt,Ot]}},ss=re=>{const{componentCls:Oe,tooltipMaxWidth:He,tooltipColor:ae,tooltipBg:Be,tooltipBorderRadius:Rr,zIndexPopup:Or,controlHeight:tt,boxShadowSecondary:Nt,paddingSM:St,paddingXS:Ot}=re;return[{[Oe]:Object.assign(Object.assign(Object.assign(Object.assign({},Sr(re)),{position:"absolute",zIndex:Or,display:"block",width:"max-content",maxWidth:He,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":Be,[`${Oe}-inner`]:{minWidth:"1em",minHeight:tt,padding:`${(0,le.unit)(re.calc(St).div(2).equal())} ${(0,le.unit)(Ot)}`,color:ae,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:Be,borderRadius:Rr,boxShadow:Nt,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${Oe}-inner`]:{borderRadius:re.min(Rr,rn)}},[`${Oe}-content`]:{position:"relative"}}),Ja(re,(wt,kt)=>{let{darkColor:on}=kt;return{[`&${Oe}-${wt}`]:{[`${Oe}-inner`]:{backgroundColor:on},[`${Oe}-arrow`]:{"--antd-arrow-background-color":on}}}})),{"&-rtl":{direction:"rtl"}})},nr(re,"var(--antd-arrow-background-color)"),{[`${Oe}-pure`]:{position:"relative",maxWidth:"none",margin:re.sizePopupArrow}}]},fi=re=>Object.assign(Object.assign({zIndexPopup:re.zIndexPopupBase+70},$e({contentRadius:re.borderRadius,limitVerticalRadius:!0})),Xr($n(re,{borderRadiusOuter:Math.min(re.borderRadiusOuter,4)})));var gi=function(re){let Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Hi("Tooltip",ae=>{const{borderRadius:Be,colorTextLightSolid:Rr,colorBgSpotlight:Or}=ae,tt=$n(ae,{tooltipMaxWidth:250,tooltipColor:Rr,tooltipBorderRadius:Be,tooltipBg:Or});return[ss(tt),bn(ae,"zoom-big-fast")]},fi,{resetStyle:!1,injectStyle:Oe})(re)},tn=V(13285);const fa=Ei.map(re=>`${re}-inverse`),Pa=null;function os(re){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,tn.Z)(fa),(0,tn.Z)(Ei)).includes(re):Ei.includes(re)}function qi(re){return Pa.includes(re)}function bs(re,Oe){const He=os(Oe),ae=N()({[`${re}-${Oe}`]:Oe&&He}),Be={},Rr={};return Oe&&!He&&(Be.background=Oe,Rr["--antd-arrow-background-color"]=Oe),{className:ae,overlayStyle:Be,arrowStyle:Rr}}var Gi=re=>{const{prefixCls:Oe,className:He,placement:ae="top",title:Be,color:Rr,overlayInnerStyle:Or}=re,{getPrefixCls:tt}=Q.useContext(jn),Nt=tt("tooltip",Oe),[St,Ot,wt]=gi(Nt),kt=bs(Nt,Rr),on=kt.arrowStyle,Wt=Object.assign(Object.assign({},Or),kt.overlayStyle),cn=N()(Ot,wt,Nt,`${Nt}-pure`,`${Nt}-placement-${ae}`,He,kt.className);return St(Q.createElement("div",{className:cn,style:on},Q.createElement("div",{className:`${Nt}-arrow`}),Q.createElement(Z,Object.assign({},re,{className:Ot,prefixCls:Nt,overlayInnerStyle:Wt}),Be)))},Ea=function(re,Oe){var He={};for(var ae in re)Object.prototype.hasOwnProperty.call(re,ae)&&Oe.indexOf(ae)<0&&(He[ae]=re[ae]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,ae=Object.getOwnPropertySymbols(re);Be{var He,ae;const{prefixCls:Be,openClassName:Rr,getTooltipContainer:Or,overlayClassName:tt,color:Nt,overlayInnerStyle:St,children:Ot,afterOpenChange:wt,afterVisibleChange:kt,destroyTooltipOnHide:on,arrow:Wt=!0,title:cn,overlay:wn,builtinPlacements:sa,arrowPointAtCenter:Xn=!1,autoAdjustOverflow:ia=!0}=re,Sa=!!Wt,[,Na]=ee(),{getPopupContainer:li,getPrefixCls:Fi,direction:xi}=Q.useContext(jn),yi=na("Tooltip"),Un=Q.useRef(null),ga=()=>{var Ma;(Ma=Un.current)===null||Ma===void 0||Ma.forceAlign()};Q.useImperativeHandle(Oe,()=>{var Ma;return{forceAlign:ga,forcePopupAlign:()=>{yi.deprecated(!1,"forcePopupAlign","forceAlign"),ga()},nativeElement:(Ma=Un.current)===null||Ma===void 0?void 0:Ma.nativeElement}});const[bi,ta]=(0,se.Z)(!1,{value:(He=re.open)!==null&&He!==void 0?He:re.visible,defaultValue:(ae=re.defaultOpen)!==null&&ae!==void 0?ae:re.defaultVisible}),Ba=!cn&&!wn&&cn!==0,ba=Ma=>{var Qi,fs;ta(Ba?!1:Ma),Ba||((Qi=re.onOpenChange)===null||Qi===void 0||Qi.call(re,Ma),(fs=re.onVisibleChange)===null||fs===void 0||fs.call(re,Ma))},Ta=Q.useMemo(()=>{var Ma,Qi;let fs=Xn;return typeof Wt=="object"&&(fs=(Qi=(Ma=Wt.pointAtCenter)!==null&&Ma!==void 0?Ma:Wt.arrowPointAtCenter)!==null&&Qi!==void 0?Qi:Xn),sa||At({arrowPointAtCenter:fs,autoAdjustOverflow:ia,arrowWidth:Sa?Na.sizePopupArrow:0,borderRadius:Na.borderRadius,offset:Na.marginXXS,visibleFirst:!0})},[Xn,Wt,sa,Na]),Oi=Q.useMemo(()=>cn===0?cn:wn||cn||"",[wn,cn]),zn=Q.createElement(Ga,null,typeof Oi=="function"?Oi():Oi),{getPopupContainer:ei,placement:cs="top",mouseEnterDelay:Vi=.1,mouseLeaveDelay:Vs=.1,overlayStyle:js,rootClassName:Dt}=re,Zt=Ea(re,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Fn=Fi("tooltip",Be),pn=Fi(),fn=re["data-popover-inject"];let gr=bi;!("open"in re)&&!("visible"in re)&&Ba&&(gr=!1);const ri=Q.isValidElement(Ot)&&!Ut(Ot)?Ot:Q.createElement("span",null,Ot),oa=ri.props,Fr=!oa.className||typeof oa.className=="string"?N()(oa.className,Rr||`${Fn}-open`):oa.className,[Ds,Ho,Is]=gi(Fn,!fn),$s=bs(Fn,Nt),_s=$s.arrowStyle,Zn=Object.assign(Object.assign({},St),$s.overlayStyle),xc=N()(tt,{[`${Fn}-rtl`]:xi==="rtl"},$s.className,Dt,Ho,Is),[yc,Eo]=ar("Tooltip",Zt.zIndex),Jn=Q.createElement(H,Object.assign({},Zt,{zIndex:yc,showArrow:Sa,placement:cs,mouseEnterDelay:Vi,mouseLeaveDelay:Vs,prefixCls:Fn,overlayClassName:xc,overlayStyle:Object.assign(Object.assign({},_s),js),getTooltipContainer:ei||Or||li,ref:Un,builtinPlacements:Ta,overlay:zn,visible:gr,onVisibleChange:ba,afterVisibleChange:wt!=null?wt:kt,overlayInnerStyle:Zn,arrowContent:Q.createElement("span",{className:`${Fn}-arrow-content`}),motion:{motionName:$r(pn,"zoom-big-fast",re.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!on}),gr?qt(ri,{className:Fr}):ri);return Ds(Q.createElement(oe.Provider,{value:Eo},Jn))});mi._InternalPanelDoNotUseOrYouWillBeFired=Gi;var jr=mi},24782:function(Vr,fr){"use strict";fr.byteLength=M,fr.toByteArray=W,fr.fromByteArray=K;for(var V=[],Q=[],We=typeof Uint8Array!="undefined"?Uint8Array:Array,G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N=0,Z=G.length;N0)throw new Error("Invalid string. Length must be a multiple of 4");var Y=J.indexOf("=");Y===-1&&(Y=O);var L=Y===O?0:4-Y%4;return[Y,L]}function M(J){var O=D(J),Y=O[0],L=O[1];return(Y+L)*3/4-L}function y(J,O,Y){return(O+Y)*3/4-Y}function W(J){var O,Y=D(J),L=Y[0],te=Y[1],H=new We(y(J,L,te)),se=0,le=te>0?L-4:L,be;for(be=0;be>16&255,H[se++]=O>>8&255,H[se++]=O&255;return te===2&&(O=Q[J.charCodeAt(be)]<<2|Q[J.charCodeAt(be+1)]>>4,H[se++]=O&255),te===1&&(O=Q[J.charCodeAt(be)]<<10|Q[J.charCodeAt(be+1)]<<4|Q[J.charCodeAt(be+2)]>>2,H[se++]=O>>8&255,H[se++]=O&255),H}function q(J){return V[J>>18&63]+V[J>>12&63]+V[J>>6&63]+V[J&63]}function ne(J,O,Y){for(var L,te=[],H=O;Hle?le:se+H));return L===1?(O=J[Y-1],te.push(V[O>>2]+V[O<<4&63]+"==")):L===2&&(O=(J[Y-2]<<8)+J[Y-1],te.push(V[O>>10]+V[O>>4&63]+V[O<<2&63]+"=")),te.join("")}},30816:function(Vr,fr,V){"use strict";var Q;var We=V(24782),G=V(78898),N=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;fr.lW=y,Q=se,fr.h2=50;var Z=2147483647;Q=Z,y.TYPED_ARRAY_SUPPORT=D(),!y.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function D(){try{var m=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(m,u),m.foo()===42}catch(h){return!1}}Object.defineProperty(y.prototype,"parent",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.buffer}}),Object.defineProperty(y.prototype,"offset",{enumerable:!0,get:function(){if(y.isBuffer(this))return this.byteOffset}});function M(m){if(m>Z)throw new RangeError('The value "'+m+'" is invalid for option "size"');var u=new Uint8Array(m);return Object.setPrototypeOf(u,y.prototype),u}function y(m,u,h){if(typeof m=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return K(m)}return W(m,u,h)}y.poolSize=8192;function W(m,u,h){if(typeof m=="string")return J(m,u);if(ArrayBuffer.isView(m))return Y(m);if(m==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m);if(Ir(m,ArrayBuffer)||m&&Ir(m.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ir(m,SharedArrayBuffer)||m&&Ir(m.buffer,SharedArrayBuffer)))return L(m,u,h);if(typeof m=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var E=m.valueOf&&m.valueOf();if(E!=null&&E!==m)return y.from(E,u,h);var ee=te(m);if(ee)return ee;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof m[Symbol.toPrimitive]=="function")return y.from(m[Symbol.toPrimitive]("string"),u,h);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m)}y.from=function(m,u,h){return W(m,u,h)},Object.setPrototypeOf(y.prototype,Uint8Array.prototype),Object.setPrototypeOf(y,Uint8Array);function q(m){if(typeof m!="number")throw new TypeError('"size" argument must be of type number');if(m<0)throw new RangeError('The value "'+m+'" is invalid for option "size"')}function ne(m,u,h){return q(m),m<=0?M(m):u!==void 0?typeof h=="string"?M(m).fill(u,h):M(m).fill(u):M(m)}y.alloc=function(m,u,h){return ne(m,u,h)};function K(m){return q(m),M(m<0?0:H(m)|0)}y.allocUnsafe=function(m){return K(m)},y.allocUnsafeSlow=function(m){return K(m)};function J(m,u){if((typeof u!="string"||u==="")&&(u="utf8"),!y.isEncoding(u))throw new TypeError("Unknown encoding: "+u);var h=le(m,u)|0,E=M(h),ee=E.write(m,u);return ee!==h&&(E=E.slice(0,ee)),E}function O(m){for(var u=m.length<0?0:H(m.length)|0,h=M(u),E=0;E=Z)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Z.toString(16)+" bytes");return m|0}function se(m){return+m!=m&&(m=0),y.alloc(+m)}y.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==y.prototype},y.compare=function(u,h){if(Ir(u,Uint8Array)&&(u=y.from(u,u.offset,u.byteLength)),Ir(h,Uint8Array)&&(h=y.from(h,h.offset,h.byteLength)),!y.isBuffer(u)||!y.isBuffer(h))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===h)return 0;for(var E=u.length,ee=h.length,Se=0,oe=Math.min(E,ee);Seee.length?y.from(oe).copy(ee,Se):Uint8Array.prototype.set.call(ee,oe,Se);else if(y.isBuffer(oe))oe.copy(ee,Se);else throw new TypeError('"list" argument must be an Array of Buffers');Se+=oe.length}return ee};function le(m,u){if(y.isBuffer(m))return m.length;if(ArrayBuffer.isView(m)||Ir(m,ArrayBuffer))return m.byteLength;if(typeof m!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof m);var h=m.length,E=arguments.length>2&&arguments[2]===!0;if(!E&&h===0)return 0;for(var ee=!1;;)switch(u){case"ascii":case"latin1":case"binary":return h;case"utf8":case"utf-8":return Jr(m).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h*2;case"hex":return h>>>1;case"base64":return Et(m).length;default:if(ee)return E?-1:Jr(m).length;u=(""+u).toLowerCase(),ee=!0}}y.byteLength=le;function be(m,u,h){var E=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((h===void 0||h>this.length)&&(h=this.length),h<=0)||(h>>>=0,u>>>=0,h<=u))return"";for(m||(m="utf8");;)switch(m){case"hex":return Ge(this,u,h);case"utf8":case"utf-8":return x(this,u,h);case"ascii":return De(this,u,h);case"latin1":case"binary":return Br(this,u,h);case"base64":return T(this,u,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return br(this,u,h);default:if(E)throw new TypeError("Unknown encoding: "+m);m=(m+"").toLowerCase(),E=!0}}y.prototype._isBuffer=!0;function ve(m,u,h){var E=m[u];m[u]=m[h],m[h]=E}y.prototype.swap16=function(){var u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var h=0;hh&&(u+=" ... "),""},N&&(y.prototype[N]=y.prototype.inspect),y.prototype.compare=function(u,h,E,ee,Se){if(Ir(u,Uint8Array)&&(u=y.from(u,u.offset,u.byteLength)),!y.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(h===void 0&&(h=0),E===void 0&&(E=u?u.length:0),ee===void 0&&(ee=0),Se===void 0&&(Se=this.length),h<0||E>u.length||ee<0||Se>this.length)throw new RangeError("out of range index");if(ee>=Se&&h>=E)return 0;if(ee>=Se)return-1;if(h>=E)return 1;if(h>>>=0,E>>>=0,ee>>>=0,Se>>>=0,this===u)return 0;for(var oe=Se-ee,de=E-h,je=Math.min(oe,de),Re=this.slice(ee,Se),cr=u.slice(h,E),B=0;B2147483647?h=2147483647:h<-2147483648&&(h=-2147483648),h=+h,C(h)&&(h=ee?0:m.length-1),h<0&&(h=m.length+h),h>=m.length){if(ee)return-1;h=m.length-1}else if(h<0)if(ee)h=0;else return-1;if(typeof u=="string"&&(u=y.from(u,E)),y.isBuffer(u))return u.length===0?-1:ze(m,u,h,E,ee);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?ee?Uint8Array.prototype.indexOf.call(m,u,h):Uint8Array.prototype.lastIndexOf.call(m,u,h):ze(m,[u],h,E,ee);throw new TypeError("val must be string, number or Buffer")}function ze(m,u,h,E,ee){var Se=1,oe=m.length,de=u.length;if(E!==void 0&&(E=String(E).toLowerCase(),E==="ucs2"||E==="ucs-2"||E==="utf16le"||E==="utf-16le")){if(m.length<2||u.length<2)return-1;Se=2,oe/=2,de/=2,h/=2}function je(ar,dr){return Se===1?ar[dr]:ar.readUInt16BE(dr*Se)}var Re;if(ee){var cr=-1;for(Re=h;Reoe&&(h=oe-de),Re=h;Re>=0;Re--){for(var B=!0,ye=0;yeee&&(E=ee)):E=ee;var Se=u.length;E>Se/2&&(E=Se/2);for(var oe=0;oe>>0,isFinite(E)?(E=E>>>0,ee===void 0&&(ee="utf8")):(ee=E,E=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Se=this.length-h;if((E===void 0||E>Se)&&(E=Se),u.length>0&&(E<0||h<0)||h>this.length)throw new RangeError("Attempt to write outside buffer bounds");ee||(ee="utf8");for(var oe=!1;;)switch(ee){case"hex":return j(this,u,h,E);case"utf8":case"utf-8":return z(this,u,h,E);case"ascii":case"latin1":case"binary":return we(this,u,h,E);case"base64":return Ze(this,u,h,E);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,u,h,E);default:if(oe)throw new TypeError("Unknown encoding: "+ee);ee=(""+ee).toLowerCase(),oe=!0}},y.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function T(m,u,h){return u===0&&h===m.length?We.fromByteArray(m):We.fromByteArray(m.slice(u,h))}function x(m,u,h){h=Math.min(m.length,h);for(var E=[],ee=u;ee239?4:Se>223?3:Se>191?2:1;if(ee+de<=h){var je,Re,cr,B;switch(de){case 1:Se<128&&(oe=Se);break;case 2:je=m[ee+1],(je&192)===128&&(B=(Se&31)<<6|je&63,B>127&&(oe=B));break;case 3:je=m[ee+1],Re=m[ee+2],(je&192)===128&&(Re&192)===128&&(B=(Se&15)<<12|(je&63)<<6|Re&63,B>2047&&(B<55296||B>57343)&&(oe=B));break;case 4:je=m[ee+1],Re=m[ee+2],cr=m[ee+3],(je&192)===128&&(Re&192)===128&&(cr&192)===128&&(B=(Se&15)<<18|(je&63)<<12|(Re&63)<<6|cr&63,B>65535&&B<1114112&&(oe=B))}}oe===null?(oe=65533,de=1):oe>65535&&(oe-=65536,E.push(oe>>>10&1023|55296),oe=56320|oe&1023),E.push(oe),ee+=de}return Ye(E)}var Me=4096;function Ye(m){var u=m.length;if(u<=Me)return String.fromCharCode.apply(String,m);for(var h="",E=0;EE)&&(h=E);for(var ee="",Se=u;SeE&&(u=E),h<0?(h+=E,h<0&&(h=0)):h>E&&(h=E),hh)throw new RangeError("Trying to access beyond buffer length")}y.prototype.readUintLE=y.prototype.readUIntLE=function(u,h,E){u=u>>>0,h=h>>>0,E||Ve(u,h,this.length);for(var ee=this[u],Se=1,oe=0;++oe>>0,h=h>>>0,E||Ve(u,h,this.length);for(var ee=this[u+--h],Se=1;h>0&&(Se*=256);)ee+=this[u+--h]*Se;return ee},y.prototype.readUint8=y.prototype.readUInt8=function(u,h){return u=u>>>0,h||Ve(u,1,this.length),this[u]},y.prototype.readUint16LE=y.prototype.readUInt16LE=function(u,h){return u=u>>>0,h||Ve(u,2,this.length),this[u]|this[u+1]<<8},y.prototype.readUint16BE=y.prototype.readUInt16BE=function(u,h){return u=u>>>0,h||Ve(u,2,this.length),this[u]<<8|this[u+1]},y.prototype.readUint32LE=y.prototype.readUInt32LE=function(u,h){return u=u>>>0,h||Ve(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},y.prototype.readUint32BE=y.prototype.readUInt32BE=function(u,h){return u=u>>>0,h||Ve(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},y.prototype.readIntLE=function(u,h,E){u=u>>>0,h=h>>>0,E||Ve(u,h,this.length);for(var ee=this[u],Se=1,oe=0;++oe=Se&&(ee-=Math.pow(2,8*h)),ee},y.prototype.readIntBE=function(u,h,E){u=u>>>0,h=h>>>0,E||Ve(u,h,this.length);for(var ee=h,Se=1,oe=this[u+--ee];ee>0&&(Se*=256);)oe+=this[u+--ee]*Se;return Se*=128,oe>=Se&&(oe-=Math.pow(2,8*h)),oe},y.prototype.readInt8=function(u,h){return u=u>>>0,h||Ve(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},y.prototype.readInt16LE=function(u,h){u=u>>>0,h||Ve(u,2,this.length);var E=this[u]|this[u+1]<<8;return E&32768?E|4294901760:E},y.prototype.readInt16BE=function(u,h){u=u>>>0,h||Ve(u,2,this.length);var E=this[u+1]|this[u]<<8;return E&32768?E|4294901760:E},y.prototype.readInt32LE=function(u,h){return u=u>>>0,h||Ve(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},y.prototype.readInt32BE=function(u,h){return u=u>>>0,h||Ve(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},y.prototype.readFloatLE=function(u,h){return u=u>>>0,h||Ve(u,4,this.length),G.read(this,u,!0,23,4)},y.prototype.readFloatBE=function(u,h){return u=u>>>0,h||Ve(u,4,this.length),G.read(this,u,!1,23,4)},y.prototype.readDoubleLE=function(u,h){return u=u>>>0,h||Ve(u,8,this.length),G.read(this,u,!0,52,8)},y.prototype.readDoubleBE=function(u,h){return u=u>>>0,h||Ve(u,8,this.length),G.read(this,u,!1,52,8)};function pe(m,u,h,E,ee,Se){if(!y.isBuffer(m))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>ee||um.length)throw new RangeError("Index out of range")}y.prototype.writeUintLE=y.prototype.writeUIntLE=function(u,h,E,ee){if(u=+u,h=h>>>0,E=E>>>0,!ee){var Se=Math.pow(2,8*E)-1;pe(this,u,h,E,Se,0)}var oe=1,de=0;for(this[h]=u&255;++de>>0,E=E>>>0,!ee){var Se=Math.pow(2,8*E)-1;pe(this,u,h,E,Se,0)}var oe=E-1,de=1;for(this[h+oe]=u&255;--oe>=0&&(de*=256);)this[h+oe]=u/de&255;return h+E},y.prototype.writeUint8=y.prototype.writeUInt8=function(u,h,E){return u=+u,h=h>>>0,E||pe(this,u,h,1,255,0),this[h]=u&255,h+1},y.prototype.writeUint16LE=y.prototype.writeUInt16LE=function(u,h,E){return u=+u,h=h>>>0,E||pe(this,u,h,2,65535,0),this[h]=u&255,this[h+1]=u>>>8,h+2},y.prototype.writeUint16BE=y.prototype.writeUInt16BE=function(u,h,E){return u=+u,h=h>>>0,E||pe(this,u,h,2,65535,0),this[h]=u>>>8,this[h+1]=u&255,h+2},y.prototype.writeUint32LE=y.prototype.writeUInt32LE=function(u,h,E){return u=+u,h=h>>>0,E||pe(this,u,h,4,4294967295,0),this[h+3]=u>>>24,this[h+2]=u>>>16,this[h+1]=u>>>8,this[h]=u&255,h+4},y.prototype.writeUint32BE=y.prototype.writeUInt32BE=function(u,h,E){return u=+u,h=h>>>0,E||pe(this,u,h,4,4294967295,0),this[h]=u>>>24,this[h+1]=u>>>16,this[h+2]=u>>>8,this[h+3]=u&255,h+4},y.prototype.writeIntLE=function(u,h,E,ee){if(u=+u,h=h>>>0,!ee){var Se=Math.pow(2,8*E-1);pe(this,u,h,E,Se-1,-Se)}var oe=0,de=1,je=0;for(this[h]=u&255;++oe>0)-je&255;return h+E},y.prototype.writeIntBE=function(u,h,E,ee){if(u=+u,h=h>>>0,!ee){var Se=Math.pow(2,8*E-1);pe(this,u,h,E,Se-1,-Se)}var oe=E-1,de=1,je=0;for(this[h+oe]=u&255;--oe>=0&&(de*=256);)u<0&&je===0&&this[h+oe+1]!==0&&(je=1),this[h+oe]=(u/de>>0)-je&255;return h+E},y.prototype.writeInt8=function(u,h,E){return u=+u,h=h>>>0,E||pe(this,u,h,1,127,-128),u<0&&(u=255+u+1),this[h]=u&255,h+1},y.prototype.writeInt16LE=function(u,h,E){return u=+u,h=h>>>0,E||pe(this,u,h,2,32767,-32768),this[h]=u&255,this[h+1]=u>>>8,h+2},y.prototype.writeInt16BE=function(u,h,E){return u=+u,h=h>>>0,E||pe(this,u,h,2,32767,-32768),this[h]=u>>>8,this[h+1]=u&255,h+2},y.prototype.writeInt32LE=function(u,h,E){return u=+u,h=h>>>0,E||pe(this,u,h,4,2147483647,-2147483648),this[h]=u&255,this[h+1]=u>>>8,this[h+2]=u>>>16,this[h+3]=u>>>24,h+4},y.prototype.writeInt32BE=function(u,h,E){return u=+u,h=h>>>0,E||pe(this,u,h,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[h]=u>>>24,this[h+1]=u>>>16,this[h+2]=u>>>8,this[h+3]=u&255,h+4};function Cr(m,u,h,E,ee,Se){if(h+E>m.length)throw new RangeError("Index out of range");if(h<0)throw new RangeError("Index out of range")}function Er(m,u,h,E,ee){return u=+u,h=h>>>0,ee||Cr(m,u,h,4,34028234663852886e22,-34028234663852886e22),G.write(m,u,h,E,23,4),h+4}y.prototype.writeFloatLE=function(u,h,E){return Er(this,u,h,!0,E)},y.prototype.writeFloatBE=function(u,h,E){return Er(this,u,h,!1,E)};function wr(m,u,h,E,ee){return u=+u,h=h>>>0,ee||Cr(m,u,h,8,17976931348623157e292,-17976931348623157e292),G.write(m,u,h,E,52,8),h+8}y.prototype.writeDoubleLE=function(u,h,E){return wr(this,u,h,!0,E)},y.prototype.writeDoubleBE=function(u,h,E){return wr(this,u,h,!1,E)},y.prototype.copy=function(u,h,E,ee){if(!y.isBuffer(u))throw new TypeError("argument should be a Buffer");if(E||(E=0),!ee&&ee!==0&&(ee=this.length),h>=u.length&&(h=u.length),h||(h=0),ee>0&&ee=this.length)throw new RangeError("Index out of range");if(ee<0)throw new RangeError("sourceEnd out of bounds");ee>this.length&&(ee=this.length),u.length-h>>0,E=E===void 0?this.length:E>>>0,u||(u=0);var oe;if(typeof u=="number")for(oe=h;oe55295&&h<57344){if(!ee){if(h>56319){(u-=3)>-1&&Se.push(239,191,189);continue}else if(oe+1===E){(u-=3)>-1&&Se.push(239,191,189);continue}ee=h;continue}if(h<56320){(u-=3)>-1&&Se.push(239,191,189),ee=h;continue}h=(ee-55296<<10|h-56320)+65536}else ee&&(u-=3)>-1&&Se.push(239,191,189);if(ee=null,h<128){if((u-=1)<0)break;Se.push(h)}else if(h<2048){if((u-=2)<0)break;Se.push(h>>6|192,h&63|128)}else if(h<65536){if((u-=3)<0)break;Se.push(h>>12|224,h>>6&63|128,h&63|128)}else if(h<1114112){if((u-=4)<0)break;Se.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw new Error("Invalid code point")}return Se}function Dr(m){for(var u=[],h=0;h>8,ee=h%256,Se.push(ee),Se.push(E);return Se}function Et(m){return We.toByteArray(Ft(m))}function Pt(m,u,h,E){for(var ee=0;ee=u.length||ee>=m.length);++ee)u[ee+h]=m[ee];return ee}function Ir(m,u){return m instanceof u||m!=null&&m.constructor!=null&&m.constructor.name!=null&&m.constructor.name===u.name}function C(m){return m!==m}var lr=function(){for(var m="0123456789abcdef",u=new Array(256),h=0;h<16;++h)for(var E=h*16,ee=0;ee<16;++ee)u[E+ee]=m[h]+m[ee];return u}()},13382:function(Vr,fr){"use strict";var V={schemeGroups:{sequential:["BuGn","BuPu","GnBu","OrRd","PuBu","PuBuGn","PuRd","RdPu","YlGn","YlGnBu","YlOrBr","YlOrRd"],singlehue:["Blues","Greens","Greys","Oranges","Purples","Reds"],diverging:["BrBG","PiYG","PRGn","PuOr","RdBu","RdGy","RdYlBu","RdYlGn","Spectral"],qualitative:["Accent","Dark2","Paired","Pastel1","Pastel2","Set1","Set2","Set3"]},YlGn:{3:["#f7fcb9","#addd8e","#31a354"],4:["#ffffcc","#c2e699","#78c679","#238443"],5:["#ffffcc","#c2e699","#78c679","#31a354","#006837"],6:["#ffffcc","#d9f0a3","#addd8e","#78c679","#31a354","#006837"],7:["#ffffcc","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#005a32"],8:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#005a32"],9:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"]},YlGnBu:{3:["#edf8b1","#7fcdbb","#2c7fb8"],4:["#ffffcc","#a1dab4","#41b6c4","#225ea8"],5:["#ffffcc","#a1dab4","#41b6c4","#2c7fb8","#253494"],6:["#ffffcc","#c7e9b4","#7fcdbb","#41b6c4","#2c7fb8","#253494"],7:["#ffffcc","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#0c2c84"],8:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#0c2c84"],9:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"]},GnBu:{3:["#e0f3db","#a8ddb5","#43a2ca"],4:["#f0f9e8","#bae4bc","#7bccc4","#2b8cbe"],5:["#f0f9e8","#bae4bc","#7bccc4","#43a2ca","#0868ac"],6:["#f0f9e8","#ccebc5","#a8ddb5","#7bccc4","#43a2ca","#0868ac"],7:["#f0f9e8","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#08589e"],8:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#08589e"],9:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"]},BuGn:{3:["#e5f5f9","#99d8c9","#2ca25f"],4:["#edf8fb","#b2e2e2","#66c2a4","#238b45"],5:["#edf8fb","#b2e2e2","#66c2a4","#2ca25f","#006d2c"],6:["#edf8fb","#ccece6","#99d8c9","#66c2a4","#2ca25f","#006d2c"],7:["#edf8fb","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#005824"],8:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#005824"],9:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"]},PuBuGn:{3:["#ece2f0","#a6bddb","#1c9099"],4:["#f6eff7","#bdc9e1","#67a9cf","#02818a"],5:["#f6eff7","#bdc9e1","#67a9cf","#1c9099","#016c59"],6:["#f6eff7","#d0d1e6","#a6bddb","#67a9cf","#1c9099","#016c59"],7:["#f6eff7","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016450"],8:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016450"],9:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"]},PuBu:{3:["#ece7f2","#a6bddb","#2b8cbe"],4:["#f1eef6","#bdc9e1","#74a9cf","#0570b0"],5:["#f1eef6","#bdc9e1","#74a9cf","#2b8cbe","#045a8d"],6:["#f1eef6","#d0d1e6","#a6bddb","#74a9cf","#2b8cbe","#045a8d"],7:["#f1eef6","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#034e7b"],8:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#034e7b"],9:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"]},BuPu:{3:["#e0ecf4","#9ebcda","#8856a7"],4:["#edf8fb","#b3cde3","#8c96c6","#88419d"],5:["#edf8fb","#b3cde3","#8c96c6","#8856a7","#810f7c"],6:["#edf8fb","#bfd3e6","#9ebcda","#8c96c6","#8856a7","#810f7c"],7:["#edf8fb","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#6e016b"],8:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#6e016b"],9:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"]},RdPu:{3:["#fde0dd","#fa9fb5","#c51b8a"],4:["#feebe2","#fbb4b9","#f768a1","#ae017e"],5:["#feebe2","#fbb4b9","#f768a1","#c51b8a","#7a0177"],6:["#feebe2","#fcc5c0","#fa9fb5","#f768a1","#c51b8a","#7a0177"],7:["#feebe2","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177"],8:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177"],9:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"]},PuRd:{3:["#e7e1ef","#c994c7","#dd1c77"],4:["#f1eef6","#d7b5d8","#df65b0","#ce1256"],5:["#f1eef6","#d7b5d8","#df65b0","#dd1c77","#980043"],6:["#f1eef6","#d4b9da","#c994c7","#df65b0","#dd1c77","#980043"],7:["#f1eef6","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#91003f"],8:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#91003f"],9:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"]},OrRd:{3:["#fee8c8","#fdbb84","#e34a33"],4:["#fef0d9","#fdcc8a","#fc8d59","#d7301f"],5:["#fef0d9","#fdcc8a","#fc8d59","#e34a33","#b30000"],6:["#fef0d9","#fdd49e","#fdbb84","#fc8d59","#e34a33","#b30000"],7:["#fef0d9","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#990000"],8:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#990000"],9:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"]},YlOrRd:{3:["#ffeda0","#feb24c","#f03b20"],4:["#ffffb2","#fecc5c","#fd8d3c","#e31a1c"],5:["#ffffb2","#fecc5c","#fd8d3c","#f03b20","#bd0026"],6:["#ffffb2","#fed976","#feb24c","#fd8d3c","#f03b20","#bd0026"],7:["#ffffb2","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#b10026"],8:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#b10026"],9:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"]},YlOrBr:{3:["#fff7bc","#fec44f","#d95f0e"],4:["#ffffd4","#fed98e","#fe9929","#cc4c02"],5:["#ffffd4","#fed98e","#fe9929","#d95f0e","#993404"],6:["#ffffd4","#fee391","#fec44f","#fe9929","#d95f0e","#993404"],7:["#ffffd4","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#8c2d04"],8:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#8c2d04"],9:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"]},Purples:{3:["#efedf5","#bcbddc","#756bb1"],4:["#f2f0f7","#cbc9e2","#9e9ac8","#6a51a3"],5:["#f2f0f7","#cbc9e2","#9e9ac8","#756bb1","#54278f"],6:["#f2f0f7","#dadaeb","#bcbddc","#9e9ac8","#756bb1","#54278f"],7:["#f2f0f7","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#4a1486"],8:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#4a1486"],9:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"]},Blues:{3:["#deebf7","#9ecae1","#3182bd"],4:["#eff3ff","#bdd7e7","#6baed6","#2171b5"],5:["#eff3ff","#bdd7e7","#6baed6","#3182bd","#08519c"],6:["#eff3ff","#c6dbef","#9ecae1","#6baed6","#3182bd","#08519c"],7:["#eff3ff","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#084594"],8:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#084594"],9:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"]},Greens:{3:["#e5f5e0","#a1d99b","#31a354"],4:["#edf8e9","#bae4b3","#74c476","#238b45"],5:["#edf8e9","#bae4b3","#74c476","#31a354","#006d2c"],6:["#edf8e9","#c7e9c0","#a1d99b","#74c476","#31a354","#006d2c"],7:["#edf8e9","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#005a32"],8:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#005a32"],9:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"]},Oranges:{3:["#fee6ce","#fdae6b","#e6550d"],4:["#feedde","#fdbe85","#fd8d3c","#d94701"],5:["#feedde","#fdbe85","#fd8d3c","#e6550d","#a63603"],6:["#feedde","#fdd0a2","#fdae6b","#fd8d3c","#e6550d","#a63603"],7:["#feedde","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#8c2d04"],8:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#8c2d04"],9:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"]},Reds:{3:["#fee0d2","#fc9272","#de2d26"],4:["#fee5d9","#fcae91","#fb6a4a","#cb181d"],5:["#fee5d9","#fcae91","#fb6a4a","#de2d26","#a50f15"],6:["#fee5d9","#fcbba1","#fc9272","#fb6a4a","#de2d26","#a50f15"],7:["#fee5d9","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#99000d"],8:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#99000d"],9:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"]},Greys:{3:["#f0f0f0","#bdbdbd","#636363"],4:["#f7f7f7","#cccccc","#969696","#525252"],5:["#f7f7f7","#cccccc","#969696","#636363","#252525"],6:["#f7f7f7","#d9d9d9","#bdbdbd","#969696","#636363","#252525"],7:["#f7f7f7","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525"],8:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525"],9:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"]},PuOr:{3:["#f1a340","#f7f7f7","#998ec3"],4:["#e66101","#fdb863","#b2abd2","#5e3c99"],5:["#e66101","#fdb863","#f7f7f7","#b2abd2","#5e3c99"],6:["#b35806","#f1a340","#fee0b6","#d8daeb","#998ec3","#542788"],7:["#b35806","#f1a340","#fee0b6","#f7f7f7","#d8daeb","#998ec3","#542788"],8:["#b35806","#e08214","#fdb863","#fee0b6","#d8daeb","#b2abd2","#8073ac","#542788"],9:["#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788"],10:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],11:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"]},BrBG:{3:["#d8b365","#f5f5f5","#5ab4ac"],4:["#a6611a","#dfc27d","#80cdc1","#018571"],5:["#a6611a","#dfc27d","#f5f5f5","#80cdc1","#018571"],6:["#8c510a","#d8b365","#f6e8c3","#c7eae5","#5ab4ac","#01665e"],7:["#8c510a","#d8b365","#f6e8c3","#f5f5f5","#c7eae5","#5ab4ac","#01665e"],8:["#8c510a","#bf812d","#dfc27d","#f6e8c3","#c7eae5","#80cdc1","#35978f","#01665e"],9:["#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e"],10:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],11:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"]},PRGn:{3:["#af8dc3","#f7f7f7","#7fbf7b"],4:["#7b3294","#c2a5cf","#a6dba0","#008837"],5:["#7b3294","#c2a5cf","#f7f7f7","#a6dba0","#008837"],6:["#762a83","#af8dc3","#e7d4e8","#d9f0d3","#7fbf7b","#1b7837"],7:["#762a83","#af8dc3","#e7d4e8","#f7f7f7","#d9f0d3","#7fbf7b","#1b7837"],8:["#762a83","#9970ab","#c2a5cf","#e7d4e8","#d9f0d3","#a6dba0","#5aae61","#1b7837"],9:["#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837"],10:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],11:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"]},PiYG:{3:["#e9a3c9","#f7f7f7","#a1d76a"],4:["#d01c8b","#f1b6da","#b8e186","#4dac26"],5:["#d01c8b","#f1b6da","#f7f7f7","#b8e186","#4dac26"],6:["#c51b7d","#e9a3c9","#fde0ef","#e6f5d0","#a1d76a","#4d9221"],7:["#c51b7d","#e9a3c9","#fde0ef","#f7f7f7","#e6f5d0","#a1d76a","#4d9221"],8:["#c51b7d","#de77ae","#f1b6da","#fde0ef","#e6f5d0","#b8e186","#7fbc41","#4d9221"],9:["#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221"],10:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],11:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"]},RdBu:{3:["#ef8a62","#f7f7f7","#67a9cf"],4:["#ca0020","#f4a582","#92c5de","#0571b0"],5:["#ca0020","#f4a582","#f7f7f7","#92c5de","#0571b0"],6:["#b2182b","#ef8a62","#fddbc7","#d1e5f0","#67a9cf","#2166ac"],7:["#b2182b","#ef8a62","#fddbc7","#f7f7f7","#d1e5f0","#67a9cf","#2166ac"],8:["#b2182b","#d6604d","#f4a582","#fddbc7","#d1e5f0","#92c5de","#4393c3","#2166ac"],9:["#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac"],10:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],11:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"]},RdGy:{3:["#ef8a62","#ffffff","#999999"],4:["#ca0020","#f4a582","#bababa","#404040"],5:["#ca0020","#f4a582","#ffffff","#bababa","#404040"],6:["#b2182b","#ef8a62","#fddbc7","#e0e0e0","#999999","#4d4d4d"],7:["#b2182b","#ef8a62","#fddbc7","#ffffff","#e0e0e0","#999999","#4d4d4d"],8:["#b2182b","#d6604d","#f4a582","#fddbc7","#e0e0e0","#bababa","#878787","#4d4d4d"],9:["#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d"],10:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],11:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"]},RdYlBu:{3:["#fc8d59","#ffffbf","#91bfdb"],4:["#d7191c","#fdae61","#abd9e9","#2c7bb6"],5:["#d7191c","#fdae61","#ffffbf","#abd9e9","#2c7bb6"],6:["#d73027","#fc8d59","#fee090","#e0f3f8","#91bfdb","#4575b4"],7:["#d73027","#fc8d59","#fee090","#ffffbf","#e0f3f8","#91bfdb","#4575b4"],8:["#d73027","#f46d43","#fdae61","#fee090","#e0f3f8","#abd9e9","#74add1","#4575b4"],9:["#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4"],10:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],11:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"]},Spectral:{3:["#fc8d59","#ffffbf","#99d594"],4:["#d7191c","#fdae61","#abdda4","#2b83ba"],5:["#d7191c","#fdae61","#ffffbf","#abdda4","#2b83ba"],6:["#d53e4f","#fc8d59","#fee08b","#e6f598","#99d594","#3288bd"],7:["#d53e4f","#fc8d59","#fee08b","#ffffbf","#e6f598","#99d594","#3288bd"],8:["#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd"],9:["#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd"],10:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],11:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"]},RdYlGn:{3:["#fc8d59","#ffffbf","#91cf60"],4:["#d7191c","#fdae61","#a6d96a","#1a9641"],5:["#d7191c","#fdae61","#ffffbf","#a6d96a","#1a9641"],6:["#d73027","#fc8d59","#fee08b","#d9ef8b","#91cf60","#1a9850"],7:["#d73027","#fc8d59","#fee08b","#ffffbf","#d9ef8b","#91cf60","#1a9850"],8:["#d73027","#f46d43","#fdae61","#fee08b","#d9ef8b","#a6d96a","#66bd63","#1a9850"],9:["#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850"],10:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],11:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"]},Accent:{3:["#7fc97f","#beaed4","#fdc086"],4:["#7fc97f","#beaed4","#fdc086","#ffff99"],5:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0"],6:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f"],7:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17"],8:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"]},Dark2:{3:["#1b9e77","#d95f02","#7570b3"],4:["#1b9e77","#d95f02","#7570b3","#e7298a"],5:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e"],6:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02"],7:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d"],8:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"]},Paired:{3:["#a6cee3","#1f78b4","#b2df8a"],4:["#a6cee3","#1f78b4","#b2df8a","#33a02c"],5:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99"],6:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c"],7:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f"],8:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00"],9:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6"],10:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a"],11:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99"],12:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"]},Pastel1:{3:["#fbb4ae","#b3cde3","#ccebc5"],4:["#fbb4ae","#b3cde3","#ccebc5","#decbe4"],5:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6"],6:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc"],7:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd"],8:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec"],9:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},Pastel2:{3:["#b3e2cd","#fdcdac","#cbd5e8"],4:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4"],5:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9"],6:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae"],7:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc"],8:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"]},Set1:{3:["#e41a1c","#377eb8","#4daf4a"],4:["#e41a1c","#377eb8","#4daf4a","#984ea3"],5:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00"],6:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33"],7:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628"],8:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf"],9:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"]},Set2:{3:["#66c2a5","#fc8d62","#8da0cb"],4:["#66c2a5","#fc8d62","#8da0cb","#e78ac3"],5:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854"],6:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f"],7:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494"],8:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"]},Set3:{3:["#8dd3c7","#ffffb3","#bebada"],4:["#8dd3c7","#ffffb3","#bebada","#fb8072"],5:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3"],6:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462"],7:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69"],8:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5"],9:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9"],10:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd"],11:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5"],12:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"]}};fr.Z=V},41991:function(Vr,fr){"use strict";var V;V={value:!0};function Q(N,Z){var D=document.createElement("a");D.href=Z,D.download=N,D.click()}V=Q;function We(N,Z){var D=URL.createObjectURL(Z);Q(N,D),URL.revokeObjectURL(D)}fr.lm=We;function G(N,Z){We(N,new Blob([Z],{type:"octet/stream"}))}fr.Di=G},66471:function(Vr){"use strict";Vr.exports=function fr(V,Q){if(V===Q)return!0;if(V&&Q&&typeof V=="object"&&typeof Q=="object"){if(V.constructor!==Q.constructor)return!1;var We,G,N;if(Array.isArray(V)){if(We=V.length,We!=Q.length)return!1;for(G=We;G--!==0;)if(!fr(V[G],Q[G]))return!1;return!0}if(V.constructor===RegExp)return V.source===Q.source&&V.flags===Q.flags;if(V.valueOf!==Object.prototype.valueOf)return V.valueOf()===Q.valueOf();if(V.toString!==Object.prototype.toString)return V.toString()===Q.toString();if(N=Object.keys(V),We=N.length,We!==Object.keys(Q).length)return!1;for(G=We;G--!==0;)if(!Object.prototype.hasOwnProperty.call(Q,N[G]))return!1;for(G=We;G--!==0;){var Z=N[G];if(!fr(V[Z],Q[Z]))return!1}return!0}return V!==V&&Q!==Q}},55839:function(Vr,fr,V){"use strict";var Q=V(19185),We={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},G={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},N={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Z={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},D={};D[Q.ForwardRef]=N,D[Q.Memo]=Z;function M(Y){return Q.isMemo(Y)?Z:D[Y.$$typeof]||We}var y=Object.defineProperty,W=Object.getOwnPropertyNames,q=Object.getOwnPropertySymbols,ne=Object.getOwnPropertyDescriptor,K=Object.getPrototypeOf,J=Object.prototype;function O(Y,L,te){if(typeof L!="string"){if(J){var H=K(L);H&&H!==J&&O(Y,H,te)}var se=W(L);q&&(se=se.concat(q(L)));for(var le=M(Y),be=M(L),ve=0;ve>1,q=-7,ne=We?N-1:0,K=We?-1:1,J=V[Q+ne];for(ne+=K,Z=J&(1<<-q)-1,J>>=-q,q+=M;q>0;Z=Z*256+V[Q+ne],ne+=K,q-=8);for(D=Z&(1<<-q)-1,Z>>=-q,q+=G;q>0;D=D*256+V[Q+ne],ne+=K,q-=8);if(Z===0)Z=1-W;else{if(Z===y)return D?NaN:(J?-1:1)*(1/0);D=D+Math.pow(2,G),Z=Z-W}return(J?-1:1)*D*Math.pow(2,Z-G)},fr.write=function(V,Q,We,G,N,Z){var D,M,y,W=Z*8-N-1,q=(1<>1,K=N===23?Math.pow(2,-24)-Math.pow(2,-77):0,J=G?0:Z-1,O=G?1:-1,Y=Q<0||Q===0&&1/Q<0?1:0;for(Q=Math.abs(Q),isNaN(Q)||Q===1/0?(M=isNaN(Q)?1:0,D=q):(D=Math.floor(Math.log(Q)/Math.LN2),Q*(y=Math.pow(2,-D))<1&&(D--,y*=2),D+ne>=1?Q+=K/y:Q+=K*Math.pow(2,1-ne),Q*y>=2&&(D++,y/=2),D+ne>=q?(M=0,D=q):D+ne>=1?(M=(Q*y-1)*Math.pow(2,N),D=D+ne):(M=Q*Math.pow(2,ne-1)*Math.pow(2,N),D=0));N>=8;V[We+J]=M&255,J+=O,M/=256,N-=8);for(D=D<0;V[We+J]=D&255,J+=O,D/=256,W-=8);V[We+J-O]|=Y*128}},82858:function(Vr,fr,V){var Q=V(30816).lW,We=V(27061);(function(G){Vr.exports=G()})(function(){return function G(N,Z,D){function M(q,ne){if(!Z[q]){if(!N[q]){var K=void 0;if(!ne&&K)return require(q,!0);if(y)return y(q,!0);var J=new Error("Cannot find module '"+q+"'");throw J.code="MODULE_NOT_FOUND",J}var O=Z[q]={exports:{}};N[q][0].call(O.exports,function(Y){var L=N[q][1][Y];return M(L||Y)},O,O.exports,G,N,Z,D)}return Z[q].exports}for(var y=void 0,W=0;W>2,O=(3&q)<<4|ne>>4,Y=1>6:64,L=2>4,ne=(15&J)<<4|(O=y.indexOf(W.charAt(L++)))>>2,K=(3&O)<<6|(Y=y.indexOf(W.charAt(L++))),se[te++]=q,O!==64&&(se[te++]=ne),Y!==64&&(se[te++]=K);return se}},{"./support":30,"./utils":32}],2:[function(G,N,Z){"use strict";var D=G("./external"),M=G("./stream/DataWorker"),y=G("./stream/Crc32Probe"),W=G("./stream/DataLengthProbe");function q(ne,K,J,O,Y){this.compressedSize=ne,this.uncompressedSize=K,this.crc32=J,this.compression=O,this.compressedContent=Y}q.prototype={getContentWorker:function(){var ne=new M(D.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new W("data_length")),K=this;return ne.on("end",function(){if(this.streamInfo.data_length!==K.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),ne},getCompressedWorker:function(){return new M(D.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},q.createWorkerFrom=function(ne,K,J){return ne.pipe(new y).pipe(new W("uncompressedSize")).pipe(K.compressWorker(J)).pipe(new W("compressedSize")).withStreamInfo("compression",K)},N.exports=q},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(G,N,Z){"use strict";var D=G("./stream/GenericWorker");Z.STORE={magic:"\0\0",compressWorker:function(){return new D("STORE compression")},uncompressWorker:function(){return new D("STORE decompression")}},Z.DEFLATE=G("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(G,N,Z){"use strict";var D=G("./utils"),M=function(){for(var y,W=[],q=0;q<256;q++){y=q;for(var ne=0;ne<8;ne++)y=1&y?3988292384^y>>>1:y>>>1;W[q]=y}return W}();N.exports=function(y,W){return y!==void 0&&y.length?D.getTypeOf(y)!=="string"?function(q,ne,K,J){var O=M,Y=J+K;q^=-1;for(var L=J;L>>8^O[255&(q^ne[L])];return-1^q}(0|W,y,y.length,0):function(q,ne,K,J){var O=M,Y=J+K;q^=-1;for(var L=J;L>>8^O[255&(q^ne.charCodeAt(L))];return-1^q}(0|W,y,y.length,0):0}},{"./utils":32}],5:[function(G,N,Z){"use strict";Z.base64=!1,Z.binary=!1,Z.dir=!1,Z.createFolders=!0,Z.date=null,Z.compression=null,Z.compressionOptions=null,Z.comment=null,Z.unixPermissions=null,Z.dosPermissions=null},{}],6:[function(G,N,Z){"use strict";var D=null;D=typeof Promise!="undefined"?Promise:G("lie"),N.exports={Promise:D}},{lie:37}],7:[function(G,N,Z){"use strict";var D=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",M=G("pako"),y=G("./utils"),W=G("./stream/GenericWorker"),q=D?"uint8array":"array";function ne(K,J){W.call(this,"FlateWorker/"+K),this._pako=null,this._pakoAction=K,this._pakoOptions=J,this.meta={}}Z.magic="\b\0",y.inherits(ne,W),ne.prototype.processChunk=function(K){this.meta=K.meta,this._pako===null&&this._createPako(),this._pako.push(y.transformTo(q,K.data),!1)},ne.prototype.flush=function(){W.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},ne.prototype.cleanUp=function(){W.prototype.cleanUp.call(this),this._pako=null},ne.prototype._createPako=function(){this._pako=new M[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var K=this;this._pako.onData=function(J){K.push({data:J,meta:K.meta})}},Z.compressWorker=function(K){return new ne("Deflate",K)},Z.uncompressWorker=function(){return new ne("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(G,N,Z){"use strict";function D(O,Y){var L,te="";for(L=0;L>>=8;return te}function M(O,Y,L,te,H,se){var le,be,ve=O.file,Je=O.compression,ze=se!==q.utf8encode,j=y.transformTo("string",se(ve.name)),z=y.transformTo("string",q.utf8encode(ve.name)),we=ve.comment,Ze=y.transformTo("string",se(we)),I=y.transformTo("string",q.utf8encode(we)),T=z.length!==ve.name.length,x=I.length!==we.length,Me="",Ye="",De="",Br=ve.dir,Ge=ve.date,br={crc32:0,compressedSize:0,uncompressedSize:0};Y&&!L||(br.crc32=O.crc32,br.compressedSize=O.compressedSize,br.uncompressedSize=O.uncompressedSize);var Ve=0;Y&&(Ve|=8),ze||!T&&!x||(Ve|=2048);var pe=0,Cr=0;Br&&(pe|=16),H==="UNIX"?(Cr=798,pe|=function(wr,Kr){var Ft=wr;return wr||(Ft=Kr?16893:33204),(65535&Ft)<<16}(ve.unixPermissions,Br)):(Cr=20,pe|=function(wr){return 63&(wr||0)}(ve.dosPermissions)),le=Ge.getUTCHours(),le<<=6,le|=Ge.getUTCMinutes(),le<<=5,le|=Ge.getUTCSeconds()/2,be=Ge.getUTCFullYear()-1980,be<<=4,be|=Ge.getUTCMonth()+1,be<<=5,be|=Ge.getUTCDate(),T&&(Ye=D(1,1)+D(ne(j),4)+z,Me+="up"+D(Ye.length,2)+Ye),x&&(De=D(1,1)+D(ne(Ze),4)+I,Me+="uc"+D(De.length,2)+De);var Er="";return Er+=` +\0`,Er+=D(Ve,2),Er+=Je.magic,Er+=D(le,2),Er+=D(be,2),Er+=D(br.crc32,4),Er+=D(br.compressedSize,4),Er+=D(br.uncompressedSize,4),Er+=D(j.length,2),Er+=D(Me.length,2),{fileRecord:K.LOCAL_FILE_HEADER+Er+j+Me,dirRecord:K.CENTRAL_FILE_HEADER+D(Cr,2)+Er+D(Ze.length,2)+"\0\0\0\0"+D(pe,4)+D(te,4)+j+Me+Ze}}var y=G("../utils"),W=G("../stream/GenericWorker"),q=G("../utf8"),ne=G("../crc32"),K=G("../signature");function J(O,Y,L,te){W.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=Y,this.zipPlatform=L,this.encodeFileName=te,this.streamFiles=O,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}y.inherits(J,W),J.prototype.push=function(O){var Y=O.meta.percent||0,L=this.entriesCount,te=this._sources.length;this.accumulate?this.contentBuffer.push(O):(this.bytesWritten+=O.data.length,W.prototype.push.call(this,{data:O.data,meta:{currentFile:this.currentFile,percent:L?(Y+100*(L-te-1))/L:100}}))},J.prototype.openedSource=function(O){this.currentSourceOffset=this.bytesWritten,this.currentFile=O.file.name;var Y=this.streamFiles&&!O.file.dir;if(Y){var L=M(O,Y,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:L.fileRecord,meta:{percent:0}})}else this.accumulate=!0},J.prototype.closedSource=function(O){this.accumulate=!1;var Y=this.streamFiles&&!O.file.dir,L=M(O,Y,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(L.dirRecord),Y)this.push({data:function(te){return K.DATA_DESCRIPTOR+D(te.crc32,4)+D(te.compressedSize,4)+D(te.uncompressedSize,4)}(O),meta:{percent:100}});else for(this.push({data:L.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},J.prototype.flush=function(){for(var O=this.bytesWritten,Y=0;Y=this.index;W--)q=(q<<8)+this.byteAt(W);return this.index+=y,q},readString:function(y){return D.transformTo("string",this.readData(y))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var y=this.readInt(4);return new Date(Date.UTC(1980+(y>>25&127),(y>>21&15)-1,y>>16&31,y>>11&31,y>>5&63,(31&y)<<1))}},N.exports=M},{"../utils":32}],19:[function(G,N,Z){"use strict";var D=G("./Uint8ArrayReader");function M(y){D.call(this,y)}G("../utils").inherits(M,D),M.prototype.readData=function(y){this.checkOffset(y);var W=this.data.slice(this.zero+this.index,this.zero+this.index+y);return this.index+=y,W},N.exports=M},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(G,N,Z){"use strict";var D=G("./DataReader");function M(y){D.call(this,y)}G("../utils").inherits(M,D),M.prototype.byteAt=function(y){return this.data.charCodeAt(this.zero+y)},M.prototype.lastIndexOfSignature=function(y){return this.data.lastIndexOf(y)-this.zero},M.prototype.readAndCheckSignature=function(y){return y===this.readData(4)},M.prototype.readData=function(y){this.checkOffset(y);var W=this.data.slice(this.zero+this.index,this.zero+this.index+y);return this.index+=y,W},N.exports=M},{"../utils":32,"./DataReader":18}],21:[function(G,N,Z){"use strict";var D=G("./ArrayReader");function M(y){D.call(this,y)}G("../utils").inherits(M,D),M.prototype.readData=function(y){if(this.checkOffset(y),y===0)return new Uint8Array(0);var W=this.data.subarray(this.zero+this.index,this.zero+this.index+y);return this.index+=y,W},N.exports=M},{"../utils":32,"./ArrayReader":17}],22:[function(G,N,Z){"use strict";var D=G("../utils"),M=G("../support"),y=G("./ArrayReader"),W=G("./StringReader"),q=G("./NodeBufferReader"),ne=G("./Uint8ArrayReader");N.exports=function(K){var J=D.getTypeOf(K);return D.checkSupport(J),J!=="string"||M.uint8array?J==="nodebuffer"?new q(K):M.uint8array?new ne(D.transformTo("uint8array",K)):new y(D.transformTo("array",K)):new W(K)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(G,N,Z){"use strict";Z.LOCAL_FILE_HEADER="PK",Z.CENTRAL_FILE_HEADER="PK",Z.CENTRAL_DIRECTORY_END="PK",Z.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",Z.ZIP64_CENTRAL_DIRECTORY_END="PK",Z.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(G,N,Z){"use strict";var D=G("./GenericWorker"),M=G("../utils");function y(W){D.call(this,"ConvertWorker to "+W),this.destType=W}M.inherits(y,D),y.prototype.processChunk=function(W){this.push({data:M.transformTo(this.destType,W.data),meta:W.meta})},N.exports=y},{"../utils":32,"./GenericWorker":28}],25:[function(G,N,Z){"use strict";var D=G("./GenericWorker"),M=G("../crc32");function y(){D.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}G("../utils").inherits(y,D),y.prototype.processChunk=function(W){this.streamInfo.crc32=M(W.data,this.streamInfo.crc32||0),this.push(W)},N.exports=y},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(G,N,Z){"use strict";var D=G("../utils"),M=G("./GenericWorker");function y(W){M.call(this,"DataLengthProbe for "+W),this.propName=W,this.withStreamInfo(W,0)}D.inherits(y,M),y.prototype.processChunk=function(W){if(W){var q=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=q+W.data.length}M.prototype.processChunk.call(this,W)},N.exports=y},{"../utils":32,"./GenericWorker":28}],27:[function(G,N,Z){"use strict";var D=G("../utils"),M=G("./GenericWorker");function y(W){M.call(this,"DataWorker");var q=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,W.then(function(ne){q.dataIsReady=!0,q.data=ne,q.max=ne&&ne.length||0,q.type=D.getTypeOf(ne),q.isPaused||q._tickAndRepeat()},function(ne){q.error(ne)})}D.inherits(y,M),y.prototype.cleanUp=function(){M.prototype.cleanUp.call(this),this.data=null},y.prototype.resume=function(){return!!M.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,D.delay(this._tickAndRepeat,[],this)),!0)},y.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(D.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},y.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var W=null,q=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":W=this.data.substring(this.index,q);break;case"uint8array":W=this.data.subarray(this.index,q);break;case"array":case"nodebuffer":W=this.data.slice(this.index,q)}return this.index=q,this.push({data:W,meta:{percent:this.max?this.index/this.max*100:0}})},N.exports=y},{"../utils":32,"./GenericWorker":28}],28:[function(G,N,Z){"use strict";function D(M){this.name=M||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}D.prototype={push:function(M){this.emit("data",M)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(M){this.emit("error",M)}return!0},error:function(M){return!this.isFinished&&(this.isPaused?this.generatedError=M:(this.isFinished=!0,this.emit("error",M),this.previous&&this.previous.error(M),this.cleanUp()),!0)},on:function(M,y){return this._listeners[M].push(y),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(M,y){if(this._listeners[M])for(var W=0;W "+M:M}},N.exports=D},{}],29:[function(G,N,Z){"use strict";var D=G("../utils"),M=G("./ConvertWorker"),y=G("./GenericWorker"),W=G("../base64"),q=G("../support"),ne=G("../external"),K=null;if(q.nodestream)try{K=G("../nodejs/NodejsStreamOutputAdapter")}catch(Y){}function J(Y,L){return new ne.Promise(function(te,H){var se=[],le=Y._internalType,be=Y._outputType,ve=Y._mimeType;Y.on("data",function(Je,ze){se.push(Je),L&&L(ze)}).on("error",function(Je){se=[],H(Je)}).on("end",function(){try{var Je=function(ze,j,z){switch(ze){case"blob":return D.newBlob(D.transformTo("arraybuffer",j),z);case"base64":return W.encode(j);default:return D.transformTo(ze,j)}}(be,function(ze,j){var z,we=0,Ze=null,I=0;for(z=0;z>>6:(te<65536?L[le++]=224|te>>>12:(L[le++]=240|te>>>18,L[le++]=128|te>>>12&63),L[le++]=128|te>>>6&63),L[le++]=128|63&te);return L}(O)},Z.utf8decode=function(O){return M.nodebuffer?D.transformTo("nodebuffer",O).toString("utf-8"):function(Y){var L,te,H,se,le=Y.length,be=new Array(2*le);for(L=te=0;L>10&1023,be[te++]=56320|1023&H)}return be.length!==te&&(be.subarray?be=be.subarray(0,te):be.length=te),D.applyFromCharCode(be)}(O=D.transformTo(M.uint8array?"uint8array":"array",O))},D.inherits(K,W),K.prototype.processChunk=function(O){var Y=D.transformTo(M.uint8array?"uint8array":"array",O.data);if(this.leftOver&&this.leftOver.length){if(M.uint8array){var L=Y;(Y=new Uint8Array(L.length+this.leftOver.length)).set(this.leftOver,0),Y.set(L,this.leftOver.length)}else Y=this.leftOver.concat(Y);this.leftOver=null}var te=function(se,le){var be;for((le=le||se.length)>se.length&&(le=se.length),be=le-1;0<=be&&(192&se[be])==128;)be--;return be<0||be===0?le:be+q[se[be]]>le?be:le}(Y),H=Y;te!==Y.length&&(M.uint8array?(H=Y.subarray(0,te),this.leftOver=Y.subarray(te,Y.length)):(H=Y.slice(0,te),this.leftOver=Y.slice(te,Y.length))),this.push({data:Z.utf8decode(H),meta:O.meta})},K.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:Z.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},Z.Utf8DecodeWorker=K,D.inherits(J,W),J.prototype.processChunk=function(O){this.push({data:Z.utf8encode(O.data),meta:O.meta})},Z.Utf8EncodeWorker=J},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(G,N,Z){"use strict";var D=G("./support"),M=G("./base64"),y=G("./nodejsUtils"),W=G("./external");function q(L){return L}function ne(L,te){for(var H=0;H>8;this.dir=!!(16&this.externalFileAttributes),O==0&&(this.dosPermissions=63&this.externalFileAttributes),O==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var O=D(this.extraFields[1].value);this.uncompressedSize===M.MAX_VALUE_32BITS&&(this.uncompressedSize=O.readInt(8)),this.compressedSize===M.MAX_VALUE_32BITS&&(this.compressedSize=O.readInt(8)),this.localHeaderOffset===M.MAX_VALUE_32BITS&&(this.localHeaderOffset=O.readInt(8)),this.diskNumberStart===M.MAX_VALUE_32BITS&&(this.diskNumberStart=O.readInt(4))}},readExtraFields:function(O){var Y,L,te,H=O.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});O.index+4>>6:(O<65536?J[te++]=224|O>>>12:(J[te++]=240|O>>>18,J[te++]=128|O>>>12&63),J[te++]=128|O>>>6&63),J[te++]=128|63&O);return J},Z.buf2binstring=function(K){return ne(K,K.length)},Z.binstring2buf=function(K){for(var J=new D.Buf8(K.length),O=0,Y=J.length;O>10&1023,se[Y++]=56320|1023&L)}return ne(se,Y)},Z.utf8border=function(K,J){var O;for((J=J||K.length)>K.length&&(J=K.length),O=J-1;0<=O&&(192&K[O])==128;)O--;return O<0||O===0?J:O+W[K[O]]>J?O:J}},{"./common":41}],43:[function(G,N,Z){"use strict";N.exports=function(D,M,y,W){for(var q=65535&D|0,ne=D>>>16&65535|0,K=0;y!==0;){for(y-=K=2e3>>1:M>>>1;y[W]=M}return y}();N.exports=function(M,y,W,q){var ne=D,K=q+W;M^=-1;for(var J=q;J>>8^ne[255&(M^y[J])];return-1^M}},{}],46:[function(G,N,Z){"use strict";var D,M=G("../utils/common"),y=G("./trees"),W=G("./adler32"),q=G("./crc32"),ne=G("./messages"),K=0,J=4,O=0,Y=-2,L=-1,te=4,H=2,se=8,le=9,be=286,ve=30,Je=19,ze=2*be+1,j=15,z=3,we=258,Ze=we+z+1,I=42,T=113,x=1,Me=2,Ye=3,De=4;function Br(C,lr){return C.msg=ne[lr],lr}function Ge(C){return(C<<1)-(4C.avail_out&&(m=C.avail_out),m!==0&&(M.arraySet(C.output,lr.pending_buf,lr.pending_out,m,C.next_out),C.next_out+=m,lr.pending_out+=m,C.total_out+=m,C.avail_out-=m,lr.pending-=m,lr.pending===0&&(lr.pending_out=0))}function pe(C,lr){y._tr_flush_block(C,0<=C.block_start?C.block_start:-1,C.strstart-C.block_start,lr),C.block_start=C.strstart,Ve(C.strm)}function Cr(C,lr){C.pending_buf[C.pending++]=lr}function Er(C,lr){C.pending_buf[C.pending++]=lr>>>8&255,C.pending_buf[C.pending++]=255&lr}function wr(C,lr){var m,u,h=C.max_chain_length,E=C.strstart,ee=C.prev_length,Se=C.nice_match,oe=C.strstart>C.w_size-Ze?C.strstart-(C.w_size-Ze):0,de=C.window,je=C.w_mask,Re=C.prev,cr=C.strstart+we,B=de[E+ee-1],ye=de[E+ee];C.prev_length>=C.good_match&&(h>>=2),Se>C.lookahead&&(Se=C.lookahead);do if(de[(m=lr)+ee]===ye&&de[m+ee-1]===B&&de[m]===de[E]&&de[++m]===de[E+1]){E+=2,m++;do;while(de[++E]===de[++m]&&de[++E]===de[++m]&&de[++E]===de[++m]&&de[++E]===de[++m]&&de[++E]===de[++m]&&de[++E]===de[++m]&&de[++E]===de[++m]&&de[++E]===de[++m]&&Eoe&&--h!=0);return ee<=C.lookahead?ee:C.lookahead}function Kr(C){var lr,m,u,h,E,ee,Se,oe,de,je,Re=C.w_size;do{if(h=C.window_size-C.lookahead-C.strstart,C.strstart>=Re+(Re-Ze)){for(M.arraySet(C.window,C.window,Re,Re,0),C.match_start-=Re,C.strstart-=Re,C.block_start-=Re,lr=m=C.hash_size;u=C.head[--lr],C.head[lr]=Re<=u?u-Re:0,--m;);for(lr=m=Re;u=C.prev[--lr],C.prev[lr]=Re<=u?u-Re:0,--m;);h+=Re}if(C.strm.avail_in===0)break;if(ee=C.strm,Se=C.window,oe=C.strstart+C.lookahead,de=h,je=void 0,je=ee.avail_in,de=z)for(E=C.strstart-C.insert,C.ins_h=C.window[E],C.ins_h=(C.ins_h<=z&&(C.ins_h=(C.ins_h<=z)if(u=y._tr_tally(C,C.strstart-C.match_start,C.match_length-z),C.lookahead-=C.match_length,C.match_length<=C.max_lazy_match&&C.lookahead>=z){for(C.match_length--;C.strstart++,C.ins_h=(C.ins_h<=z&&(C.ins_h=(C.ins_h<=z&&C.match_length<=C.prev_length){for(h=C.strstart+C.lookahead-z,u=y._tr_tally(C,C.strstart-1-C.prev_match,C.prev_length-z),C.lookahead-=C.prev_length-1,C.prev_length-=2;++C.strstart<=h&&(C.ins_h=(C.ins_h<C.pending_buf_size-5&&(m=C.pending_buf_size-5);;){if(C.lookahead<=1){if(Kr(C),C.lookahead===0&&lr===K)return x;if(C.lookahead===0)break}C.strstart+=C.lookahead,C.lookahead=0;var u=C.block_start+m;if((C.strstart===0||C.strstart>=u)&&(C.lookahead=C.strstart-u,C.strstart=u,pe(C,!1),C.strm.avail_out===0)||C.strstart-C.block_start>=C.w_size-Ze&&(pe(C,!1),C.strm.avail_out===0))return x}return C.insert=0,lr===J?(pe(C,!0),C.strm.avail_out===0?Ye:De):(C.strstart>C.block_start&&(pe(C,!1),C.strm.avail_out),x)}),new Dr(4,4,8,4,Ft),new Dr(4,5,16,8,Ft),new Dr(4,6,32,32,Ft),new Dr(4,4,16,16,Jr),new Dr(8,16,32,32,Jr),new Dr(8,16,128,128,Jr),new Dr(8,32,128,256,Jr),new Dr(32,128,258,1024,Jr),new Dr(32,258,258,4096,Jr)],Z.deflateInit=function(C,lr){return Ir(C,lr,se,15,8,0)},Z.deflateInit2=Ir,Z.deflateReset=Pt,Z.deflateResetKeep=Et,Z.deflateSetHeader=function(C,lr){return C&&C.state?C.state.wrap!==2?Y:(C.state.gzhead=lr,O):Y},Z.deflate=function(C,lr){var m,u,h,E;if(!C||!C.state||5>8&255),Cr(u,u.gzhead.time>>16&255),Cr(u,u.gzhead.time>>24&255),Cr(u,u.level===9?2:2<=u.strategy||u.level<2?4:0),Cr(u,255&u.gzhead.os),u.gzhead.extra&&u.gzhead.extra.length&&(Cr(u,255&u.gzhead.extra.length),Cr(u,u.gzhead.extra.length>>8&255)),u.gzhead.hcrc&&(C.adler=q(C.adler,u.pending_buf,u.pending,0)),u.gzindex=0,u.status=69):(Cr(u,0),Cr(u,0),Cr(u,0),Cr(u,0),Cr(u,0),Cr(u,u.level===9?2:2<=u.strategy||u.level<2?4:0),Cr(u,3),u.status=T);else{var ee=se+(u.w_bits-8<<4)<<8;ee|=(2<=u.strategy||u.level<2?0:u.level<6?1:u.level===6?2:3)<<6,u.strstart!==0&&(ee|=32),ee+=31-ee%31,u.status=T,Er(u,ee),u.strstart!==0&&(Er(u,C.adler>>>16),Er(u,65535&C.adler)),C.adler=1}if(u.status===69)if(u.gzhead.extra){for(h=u.pending;u.gzindex<(65535&u.gzhead.extra.length)&&(u.pending!==u.pending_buf_size||(u.gzhead.hcrc&&u.pending>h&&(C.adler=q(C.adler,u.pending_buf,u.pending-h,h)),Ve(C),h=u.pending,u.pending!==u.pending_buf_size));)Cr(u,255&u.gzhead.extra[u.gzindex]),u.gzindex++;u.gzhead.hcrc&&u.pending>h&&(C.adler=q(C.adler,u.pending_buf,u.pending-h,h)),u.gzindex===u.gzhead.extra.length&&(u.gzindex=0,u.status=73)}else u.status=73;if(u.status===73)if(u.gzhead.name){h=u.pending;do{if(u.pending===u.pending_buf_size&&(u.gzhead.hcrc&&u.pending>h&&(C.adler=q(C.adler,u.pending_buf,u.pending-h,h)),Ve(C),h=u.pending,u.pending===u.pending_buf_size)){E=1;break}E=u.gzindexh&&(C.adler=q(C.adler,u.pending_buf,u.pending-h,h)),E===0&&(u.gzindex=0,u.status=91)}else u.status=91;if(u.status===91)if(u.gzhead.comment){h=u.pending;do{if(u.pending===u.pending_buf_size&&(u.gzhead.hcrc&&u.pending>h&&(C.adler=q(C.adler,u.pending_buf,u.pending-h,h)),Ve(C),h=u.pending,u.pending===u.pending_buf_size)){E=1;break}E=u.gzindexh&&(C.adler=q(C.adler,u.pending_buf,u.pending-h,h)),E===0&&(u.status=103)}else u.status=103;if(u.status===103&&(u.gzhead.hcrc?(u.pending+2>u.pending_buf_size&&Ve(C),u.pending+2<=u.pending_buf_size&&(Cr(u,255&C.adler),Cr(u,C.adler>>8&255),C.adler=0,u.status=T)):u.status=T),u.pending!==0){if(Ve(C),C.avail_out===0)return u.last_flush=-1,O}else if(C.avail_in===0&&Ge(lr)<=Ge(m)&&lr!==J)return Br(C,-5);if(u.status===666&&C.avail_in!==0)return Br(C,-5);if(C.avail_in!==0||u.lookahead!==0||lr!==K&&u.status!==666){var Se=u.strategy===2?function(oe,de){for(var je;;){if(oe.lookahead===0&&(Kr(oe),oe.lookahead===0)){if(de===K)return x;break}if(oe.match_length=0,je=y._tr_tally(oe,0,oe.window[oe.strstart]),oe.lookahead--,oe.strstart++,je&&(pe(oe,!1),oe.strm.avail_out===0))return x}return oe.insert=0,de===J?(pe(oe,!0),oe.strm.avail_out===0?Ye:De):oe.last_lit&&(pe(oe,!1),oe.strm.avail_out===0)?x:Me}(u,lr):u.strategy===3?function(oe,de){for(var je,Re,cr,B,ye=oe.window;;){if(oe.lookahead<=we){if(Kr(oe),oe.lookahead<=we&&de===K)return x;if(oe.lookahead===0)break}if(oe.match_length=0,oe.lookahead>=z&&0oe.lookahead&&(oe.match_length=oe.lookahead)}if(oe.match_length>=z?(je=y._tr_tally(oe,1,oe.match_length-z),oe.lookahead-=oe.match_length,oe.strstart+=oe.match_length,oe.match_length=0):(je=y._tr_tally(oe,0,oe.window[oe.strstart]),oe.lookahead--,oe.strstart++),je&&(pe(oe,!1),oe.strm.avail_out===0))return x}return oe.insert=0,de===J?(pe(oe,!0),oe.strm.avail_out===0?Ye:De):oe.last_lit&&(pe(oe,!1),oe.strm.avail_out===0)?x:Me}(u,lr):D[u.level].func(u,lr);if(Se!==Ye&&Se!==De||(u.status=666),Se===x||Se===Ye)return C.avail_out===0&&(u.last_flush=-1),O;if(Se===Me&&(lr===1?y._tr_align(u):lr!==5&&(y._tr_stored_block(u,0,0,!1),lr===3&&(br(u.head),u.lookahead===0&&(u.strstart=0,u.block_start=0,u.insert=0))),Ve(C),C.avail_out===0))return u.last_flush=-1,O}return lr!==J?O:u.wrap<=0?1:(u.wrap===2?(Cr(u,255&C.adler),Cr(u,C.adler>>8&255),Cr(u,C.adler>>16&255),Cr(u,C.adler>>24&255),Cr(u,255&C.total_in),Cr(u,C.total_in>>8&255),Cr(u,C.total_in>>16&255),Cr(u,C.total_in>>24&255)):(Er(u,C.adler>>>16),Er(u,65535&C.adler)),Ve(C),0=m.w_size&&(E===0&&(br(m.head),m.strstart=0,m.block_start=0,m.insert=0),de=new M.Buf8(m.w_size),M.arraySet(de,lr,je-m.w_size,m.w_size,0),lr=de,je=m.w_size),ee=C.avail_in,Se=C.next_in,oe=C.input,C.avail_in=je,C.next_in=0,C.input=lr,Kr(m);m.lookahead>=z;){for(u=m.strstart,h=m.lookahead-(z-1);m.ins_h=(m.ins_h<>>=z=j>>>24,le-=z,(z=j>>>16&255)===0)Me[ne++]=65535&j;else{if(!(16&z)){if(!(64&z)){j=be[(65535&j)+(se&(1<>>=z,le-=z),le<15&&(se+=x[W++]<>>=z=j>>>24,le-=z,!(16&(z=j>>>16&255))){if(!(64&z)){j=ve[(65535&j)+(se&(1<>>=z,le-=z,(z=ne-K)>3,se&=(1<<(le-=we<<3))-1,D.next_in=W,D.next_out=ne,D.avail_in=W>>24&255)+(I>>>8&65280)+((65280&I)<<8)+((255&I)<<24)}function se(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new D.Buf16(320),this.work=new D.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function le(I){var T;return I&&I.state?(T=I.state,I.total_in=I.total_out=T.total=0,I.msg="",T.wrap&&(I.adler=1&T.wrap),T.mode=Y,T.last=0,T.havedict=0,T.dmax=32768,T.head=null,T.hold=0,T.bits=0,T.lencode=T.lendyn=new D.Buf32(L),T.distcode=T.distdyn=new D.Buf32(te),T.sane=1,T.back=-1,J):O}function be(I){var T;return I&&I.state?((T=I.state).wsize=0,T.whave=0,T.wnext=0,le(I)):O}function ve(I,T){var x,Me;return I&&I.state?(Me=I.state,T<0?(x=0,T=-T):(x=1+(T>>4),T<48&&(T&=15)),T&&(T<8||15=De.wsize?(D.arraySet(De.window,T,x-De.wsize,De.wsize,0),De.wnext=0,De.whave=De.wsize):(Me<(Ye=De.wsize-De.wnext)&&(Ye=Me),D.arraySet(De.window,T,x-Me,Ye,De.wnext),(Me-=Ye)?(D.arraySet(De.window,T,x-Me,Me,0),De.wnext=Me,De.whave=De.wsize):(De.wnext+=Ye,De.wnext===De.wsize&&(De.wnext=0),De.whave>>8&255,x.check=y(x.check,E,2,0),pe=Ve=0,x.mode=2;break}if(x.flags=0,x.head&&(x.head.done=!1),!(1&x.wrap)||(((255&Ve)<<8)+(Ve>>8))%31){I.msg="incorrect header check",x.mode=30;break}if((15&Ve)!=8){I.msg="unknown compression method",x.mode=30;break}if(pe-=4,C=8+(15&(Ve>>>=4)),x.wbits===0)x.wbits=C;else if(C>x.wbits){I.msg="invalid window size",x.mode=30;break}x.dmax=1<>8&1),512&x.flags&&(E[0]=255&Ve,E[1]=Ve>>>8&255,x.check=y(x.check,E,2,0)),pe=Ve=0,x.mode=3;case 3:for(;pe<32;){if(Ge===0)break e;Ge--,Ve+=Me[De++]<>>8&255,E[2]=Ve>>>16&255,E[3]=Ve>>>24&255,x.check=y(x.check,E,4,0)),pe=Ve=0,x.mode=4;case 4:for(;pe<16;){if(Ge===0)break e;Ge--,Ve+=Me[De++]<>8),512&x.flags&&(E[0]=255&Ve,E[1]=Ve>>>8&255,x.check=y(x.check,E,2,0)),pe=Ve=0,x.mode=5;case 5:if(1024&x.flags){for(;pe<16;){if(Ge===0)break e;Ge--,Ve+=Me[De++]<>>8&255,x.check=y(x.check,E,2,0)),pe=Ve=0}else x.head&&(x.head.extra=null);x.mode=6;case 6:if(1024&x.flags&&(Ge<(wr=x.length)&&(wr=Ge),wr&&(x.head&&(C=x.head.extra_len-x.length,x.head.extra||(x.head.extra=new Array(x.head.extra_len)),D.arraySet(x.head.extra,Me,De,wr,C)),512&x.flags&&(x.check=y(x.check,Me,wr,De)),Ge-=wr,De+=wr,x.length-=wr),x.length))break e;x.length=0,x.mode=7;case 7:if(2048&x.flags){if(Ge===0)break e;for(wr=0;C=Me[De+wr++],x.head&&C&&x.length<65536&&(x.head.name+=String.fromCharCode(C)),C&&wr>9&1,x.head.done=!0),I.adler=x.check=0,x.mode=12;break;case 10:for(;pe<32;){if(Ge===0)break e;Ge--,Ve+=Me[De++]<>>=7&pe,pe-=7&pe,x.mode=27;break}for(;pe<3;){if(Ge===0)break e;Ge--,Ve+=Me[De++]<>>=1)){case 0:x.mode=14;break;case 1:if(we(x),x.mode=20,T!==6)break;Ve>>>=2,pe-=2;break e;case 2:x.mode=17;break;case 3:I.msg="invalid block type",x.mode=30}Ve>>>=2,pe-=2;break;case 14:for(Ve>>>=7&pe,pe-=7&pe;pe<32;){if(Ge===0)break e;Ge--,Ve+=Me[De++]<>>16^65535)){I.msg="invalid stored block lengths",x.mode=30;break}if(x.length=65535&Ve,pe=Ve=0,x.mode=15,T===6)break e;case 15:x.mode=16;case 16:if(wr=x.length){if(Ge>>=5,pe-=5,x.ndist=1+(31&Ve),Ve>>>=5,pe-=5,x.ncode=4+(15&Ve),Ve>>>=4,pe-=4,286>>=3,pe-=3}for(;x.have<19;)x.lens[ee[x.have++]]=0;if(x.lencode=x.lendyn,x.lenbits=7,m={bits:x.lenbits},lr=q(0,x.lens,0,19,x.lencode,0,x.work,m),x.lenbits=m.bits,lr){I.msg="invalid code lengths set",x.mode=30;break}x.have=0,x.mode=19;case 19:for(;x.have>>16&255,lt=65535&h,!((Jr=h>>>24)<=pe);){if(Ge===0)break e;Ge--,Ve+=Me[De++]<>>=Jr,pe-=Jr,x.lens[x.have++]=lt;else{if(lt===16){for(u=Jr+2;pe>>=Jr,pe-=Jr,x.have===0){I.msg="invalid bit length repeat",x.mode=30;break}C=x.lens[x.have-1],wr=3+(3&Ve),Ve>>>=2,pe-=2}else if(lt===17){for(u=Jr+3;pe>>=Jr)),Ve>>>=3,pe-=3}else{for(u=Jr+7;pe>>=Jr)),Ve>>>=7,pe-=7}if(x.have+wr>x.nlen+x.ndist){I.msg="invalid bit length repeat",x.mode=30;break}for(;wr--;)x.lens[x.have++]=C}}if(x.mode===30)break;if(x.lens[256]===0){I.msg="invalid code -- missing end-of-block",x.mode=30;break}if(x.lenbits=9,m={bits:x.lenbits},lr=q(ne,x.lens,0,x.nlen,x.lencode,0,x.work,m),x.lenbits=m.bits,lr){I.msg="invalid literal/lengths set",x.mode=30;break}if(x.distbits=6,x.distcode=x.distdyn,m={bits:x.distbits},lr=q(K,x.lens,x.nlen,x.ndist,x.distcode,0,x.work,m),x.distbits=m.bits,lr){I.msg="invalid distances set",x.mode=30;break}if(x.mode=20,T===6)break e;case 20:x.mode=21;case 21:if(6<=Ge&&258<=br){I.next_out=Br,I.avail_out=br,I.next_in=De,I.avail_in=Ge,x.hold=Ve,x.bits=pe,W(I,Er),Br=I.next_out,Ye=I.output,br=I.avail_out,De=I.next_in,Me=I.input,Ge=I.avail_in,Ve=x.hold,pe=x.bits,x.mode===12&&(x.back=-1);break}for(x.back=0;Dr=(h=x.lencode[Ve&(1<>>16&255,lt=65535&h,!((Jr=h>>>24)<=pe);){if(Ge===0)break e;Ge--,Ve+=Me[De++]<>Et)])>>>16&255,lt=65535&h,!(Et+(Jr=h>>>24)<=pe);){if(Ge===0)break e;Ge--,Ve+=Me[De++]<>>=Et,pe-=Et,x.back+=Et}if(Ve>>>=Jr,pe-=Jr,x.back+=Jr,x.length=lt,Dr===0){x.mode=26;break}if(32&Dr){x.back=-1,x.mode=12;break}if(64&Dr){I.msg="invalid literal/length code",x.mode=30;break}x.extra=15&Dr,x.mode=22;case 22:if(x.extra){for(u=x.extra;pe>>=x.extra,pe-=x.extra,x.back+=x.extra}x.was=x.length,x.mode=23;case 23:for(;Dr=(h=x.distcode[Ve&(1<>>16&255,lt=65535&h,!((Jr=h>>>24)<=pe);){if(Ge===0)break e;Ge--,Ve+=Me[De++]<>Et)])>>>16&255,lt=65535&h,!(Et+(Jr=h>>>24)<=pe);){if(Ge===0)break e;Ge--,Ve+=Me[De++]<>>=Et,pe-=Et,x.back+=Et}if(Ve>>>=Jr,pe-=Jr,x.back+=Jr,64&Dr){I.msg="invalid distance code",x.mode=30;break}x.offset=lt,x.extra=15&Dr,x.mode=24;case 24:if(x.extra){for(u=x.extra;pe>>=x.extra,pe-=x.extra,x.back+=x.extra}if(x.offset>x.dmax){I.msg="invalid distance too far back",x.mode=30;break}x.mode=25;case 25:if(br===0)break e;if(wr=Er-br,x.offset>wr){if((wr=x.offset-wr)>x.whave&&x.sane){I.msg="invalid distance too far back",x.mode=30;break}Kr=wr>x.wnext?(wr-=x.wnext,x.wsize-wr):x.wnext-wr,wr>x.length&&(wr=x.length),Ft=x.window}else Ft=Ye,Kr=Br-x.offset,wr=x.length;for(brze?(z=Kr[Ft+te[T]],pe[Cr+te[T]]):(z=96,0),se=1<>Br)+(le-=se)]=j<<24|z<<16|we|0,le!==0;);for(se=1<>=1;if(se!==0?(Ve&=se-1,Ve+=se):Ve=0,T++,--Er[I]==0){if(I===Me)break;I=K[J+te[T]]}if(Ye>>7)]}function Cr(h,E){h.pending_buf[h.pending++]=255&E,h.pending_buf[h.pending++]=E>>>8&255}function Er(h,E,ee){h.bi_valid>H-ee?(h.bi_buf|=E<>H-h.bi_valid,h.bi_valid+=ee-H):(h.bi_buf|=E<>>=1,ee<<=1,0<--E;);return ee>>>1}function Ft(h,E,ee){var Se,oe,de=new Array(te+1),je=0;for(Se=1;Se<=te;Se++)de[Se]=je=je+ee[Se-1]<<1;for(oe=0;oe<=E;oe++){var Re=h[2*oe+1];Re!==0&&(h[2*oe]=Kr(de[Re]++,Re))}}function Jr(h){var E;for(E=0;E>1;1<=ee;ee--)Et(h,de,ee);for(oe=cr;ee=h.heap[1],h.heap[1]=h.heap[h.heap_len--],Et(h,de,1),Se=h.heap[1],h.heap[--h.heap_max]=ee,h.heap[--h.heap_max]=Se,de[2*oe]=de[2*ee]+de[2*Se],h.depth[oe]=(h.depth[ee]>=h.depth[Se]?h.depth[ee]:h.depth[Se])+1,de[2*ee+1]=de[2*Se+1]=oe,h.heap[1]=oe++,Et(h,de,1),2<=h.heap_len;);h.heap[--h.heap_max]=h.heap[1],function(ye,ar){var dr,Ur,vt,it,ft,Wr,$r=ar.dyn_tree,dt=ar.max_code,Xr=ar.stat_desc.static_tree,Mt=ar.stat_desc.has_stree,rn=ar.stat_desc.extra_bits,$e=ar.stat_desc.extra_base,xr=ar.stat_desc.max_length,nr=0;for(it=0;it<=te;it++)ye.bl_count[it]=0;for($r[2*ye.heap[ye.heap_max]+1]=0,dr=ye.heap_max+1;dr>=7;oe>>=1)if(1&B&&Re.dyn_ltree[2*cr]!==0)return M;if(Re.dyn_ltree[18]!==0||Re.dyn_ltree[20]!==0||Re.dyn_ltree[26]!==0)return y;for(cr=32;cr>>3,(de=h.static_len+3+7>>>3)<=oe&&(oe=de)):oe=de=ee+5,ee+4<=oe&&E!==-1?u(h,E,ee,Se):h.strategy===4||de===oe?(Er(h,2+(Se?1:0),3),Pt(h,Ze,I)):(Er(h,4+(Se?1:0),3),function(Re,cr,B,ye){var ar;for(Er(Re,cr-257,5),Er(Re,B-1,5),Er(Re,ye-4,4),ar=0;ar>>8&255,h.pending_buf[h.d_buf+2*h.last_lit+1]=255&E,h.pending_buf[h.l_buf+h.last_lit]=255&ee,h.last_lit++,E===0?h.dyn_ltree[2*ee]++:(h.matches++,E--,h.dyn_ltree[2*(x[ee]+K+1)]++,h.dyn_dtree[2*pe(E)]++),h.last_lit===h.lit_bufsize-1},Z._tr_align=function(h){Er(h,2,3),wr(h,le,Ze),function(E){E.bi_valid===16?(Cr(E,E.bi_buf),E.bi_buf=0,E.bi_valid=0):8<=E.bi_valid&&(E.pending_buf[E.pending++]=255&E.bi_buf,E.bi_buf>>=8,E.bi_valid-=8)}(h)}},{"../utils/common":41}],53:[function(G,N,Z){"use strict";N.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(G,N,Z){(function(D){(function(M,y){"use strict";if(!M.setImmediate){var W,q,ne,K,J=1,O={},Y=!1,L=M.document,te=Object.getPrototypeOf&&Object.getPrototypeOf(M);te=te&&te.setTimeout?te:M,W={}.toString.call(M.process)==="[object process]"?function(be){We.nextTick(function(){se(be)})}:function(){if(M.postMessage&&!M.importScripts){var be=!0,ve=M.onmessage;return M.onmessage=function(){be=!1},M.postMessage("","*"),M.onmessage=ve,be}}()?(K="setImmediate$"+Math.random()+"$",M.addEventListener?M.addEventListener("message",le,!1):M.attachEvent("onmessage",le),function(be){M.postMessage(K+be,"*")}):M.MessageChannel?((ne=new MessageChannel).port1.onmessage=function(be){se(be.data)},function(be){ne.port2.postMessage(be)}):L&&"onreadystatechange"in L.createElement("script")?(q=L.documentElement,function(be){var ve=L.createElement("script");ve.onreadystatechange=function(){se(be),ve.onreadystatechange=null,q.removeChild(ve),ve=null},q.appendChild(ve)}):function(be){setTimeout(se,0,be)},te.setImmediate=function(be){typeof be!="function"&&(be=new Function(""+be));for(var ve=new Array(arguments.length-1),Je=0;Je=this._config.preview;if(D)N.postMessage({results:T,workerId:W.WORKER_ID,finished:Me});else if(ze(this._config.chunk)&&!we){if(this._config.chunk(T,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);T=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(T.data),this._completeResults.errors=this._completeResults.errors.concat(T.errors),this._completeResults.meta=T.meta),this._completed||!Me||!ze(this._config.complete)||T&&T.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),Me||T&&T.meta.paused||this._nextChunk(),T}this._halted=!0},this._sendError=function(z){ze(this._config.error)?this._config.error(z):D&&this._config.error&&N.postMessage({workerId:W.WORKER_ID,error:z,finished:!1})}}function K(j){var z;(j=j||{}).chunkSize||(j.chunkSize=W.RemoteChunkSize),ne.call(this,j),this._nextChunk=Z?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(we){this._input=we,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(z=new XMLHttpRequest,this._config.withCredentials&&(z.withCredentials=this._config.withCredentials),Z||(z.onload=Je(this._chunkLoaded,this),z.onerror=Je(this._chunkError,this)),z.open(this._config.downloadRequestBody?"POST":"GET",this._input,!Z),this._config.downloadRequestHeaders){var we=this._config.downloadRequestHeaders;for(var Ze in we)z.setRequestHeader(Ze,we[Ze])}if(this._config.chunkSize){var I=this._start+this._config.chunkSize-1;z.setRequestHeader("Range","bytes="+this._start+"-"+I)}try{z.send(this._config.downloadRequestBody)}catch(T){this._chunkError(T.message)}Z&&z.status===0&&this._chunkError()}},this._chunkLoaded=function(){z.readyState===4&&(z.status<200||400<=z.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:z.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(we){var Ze=we.getResponseHeader("Content-Range");return Ze===null?-1:parseInt(Ze.substring(Ze.lastIndexOf("/")+1))}(z),this.parseChunk(z.responseText)))},this._chunkError=function(we){var Ze=z.statusText||we;this._sendError(new Error(Ze))}}function J(j){var z,we;(j=j||{}).chunkSize||(j.chunkSize=W.LocalChunkSize),ne.call(this,j);var Ze=typeof FileReader!="undefined";this.stream=function(I){this._input=I,we=I.slice||I.webkitSlice||I.mozSlice,Ze?((z=new FileReader).onload=Je(this._chunkLoaded,this),z.onerror=Je(this._chunkError,this)):z=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount=this._input.size,this.parseChunk(I.target.result)},this._chunkError=function(){this._sendError(z.error)}}function O(j){var z;ne.call(this,j=j||{}),this.stream=function(we){return z=we,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var we,Ze=this._config.chunkSize;return Ze?(we=z.substring(0,Ze),z=z.substring(Ze)):(we=z,z=""),this._finished=!z,this.parseChunk(we)}}}function Y(j){ne.call(this,j=j||{});var z=[],we=!0,Ze=!1;this.pause=function(){ne.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){ne.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(I){this._input=I,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){Ze&&z.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),z.length?this.parseChunk(z.shift()):we=!0},this._streamData=Je(function(I){try{z.push(typeof I=="string"?I:I.toString(this._config.encoding)),we&&(we=!1,this._checkIsFinished(),this.parseChunk(z.shift()))}catch(T){this._streamError(T)}},this),this._streamError=Je(function(I){this._streamCleanUp(),this._sendError(I)},this),this._streamEnd=Je(function(){this._streamCleanUp(),Ze=!0,this._streamData("")},this),this._streamCleanUp=Je(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function L(j){var z,we,Ze,I=Math.pow(2,53),T=-I,x=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,Me=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,Ye=this,De=0,Br=0,Ge=!1,br=!1,Ve=[],pe={data:[],errors:[],meta:{}};if(ze(j.step)){var Cr=j.step;j.step=function(Dr){if(pe=Dr,Kr())wr();else{if(wr(),pe.data.length===0)return;De+=Dr.data.length,j.preview&&De>j.preview?we.abort():(pe.data=pe.data[0],Cr(pe,Ye))}}}function Er(Dr){return j.skipEmptyLines==="greedy"?Dr.join("").trim()==="":Dr.length===1&&Dr[0].length===0}function wr(){return pe&&Ze&&(Jr("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+W.DefaultDelimiter+"'"),Ze=!1),j.skipEmptyLines&&(pe.data=pe.data.filter(function(Dr){return!Er(Dr)})),Kr()&&function(){if(!pe)return;function Dr(Et,Pt){ze(j.transformHeader)&&(Et=j.transformHeader(Et,Pt)),Ve.push(Et)}if(Array.isArray(pe.data[0])){for(var lt=0;Kr()&<=Ve.length?"__parsed_extra":Ve[Ir]),j.transform&&(m=j.transform(m,lr)),m=Ft(lr,m),lr==="__parsed_extra"?(C[lr]=C[lr]||[],C[lr].push(m)):C[lr]=m}return j.header&&(Ir>Ve.length?Jr("FieldMismatch","TooManyFields","Too many fields: expected "+Ve.length+" fields but parsed "+Ir,Br+Pt):Ir=h.length/2?`\r +`:"\r"}(Dr,Pt)),Ze=!1,j.delimiter)ze(j.delimiter)&&(j.delimiter=j.delimiter(Dr),pe.meta.delimiter=j.delimiter);else{var Ir=function(lr,m,u,h,E){var ee,Se,oe,de;E=E||[","," ","|",";",W.RECORD_SEP,W.UNIT_SEP];for(var je=0;je=x)return vt(!0)}else for(Re=De,De++;;){if((Re=Ge.indexOf(z,Re+1))===-1)return Ve||Jr.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:Ft.length,index:De}),dr();if(Re===pe-1)return dr(Ge.substring(De,Re).replace(je,z));if(z!==Ye||Ge[Re+1]!==Ye){if(z===Ye||Re===0||Ge[Re-1]!==Ye){oe!==-1&&oe=x)return vt(!0);break}Jr.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:Ft.length,index:De}),Re++}}else Re++}return dr();function ye(ft){Ft.push(ft),lt=De}function ar(ft){var Wr=0;if(ft!==-1){var $r=Ge.substring(Re+1,ft);$r&&$r.trim()===""&&(Wr=$r.length)}return Wr}function dr(ft){return Ve||(ft===void 0&&(ft=Ge.substring(De)),Dr.push(ft),De=pe,ye(Dr),Kr&&it()),vt()}function Ur(ft){De=ft,ye(Dr),Dr=[],de=Ge.indexOf(Ze,De)}function vt(ft){return{data:Ft,errors:Jr,meta:{delimiter:we,linebreak:Ze,aborted:Br,truncated:!!ft,cursor:lt+(br||0)}}}function it(){T(vt()),Ft=[],Jr=[]}},this.abort=function(){Br=!0},this.getCharIndex=function(){return De}}function se(j){var z=j.data,we=M[z.workerId],Ze=!1;if(z.error)we.userError(z.error,z.file);else if(z.results&&z.results.data){var I={abort:function(){Ze=!0,le(z.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:be,resume:be};if(ze(we.userStep)){for(var T=0;T1)for(var L=1;L0},de.prototype.connect_=function(){!K||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),se?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},de.prototype.disconnect_=function(){!K||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},de.prototype.onTransitionEnd_=function(je){var Re=je.propertyName,cr=Re===void 0?"":Re,B=H.some(function(ye){return!!~cr.indexOf(ye)});B&&this.refresh()},de.getInstance=function(){return this.instance_||(this.instance_=new de),this.instance_},de.instance_=null,de}(),be=function(de,je){for(var Re=0,cr=Object.keys(je);Re0},de}(),br=typeof WeakMap!="undefined"?new WeakMap:new ne,Ve=function(){function de(je){if(!(this instanceof de))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var Re=le.getInstance(),cr=new Ge(je,Re,this);br.set(this,cr)}return de}();["observe","unobserve","disconnect"].forEach(function(de){Ve.prototype[de]=function(){var je;return(je=br.get(this))[de].apply(je,arguments)}});var pe=function(){return typeof J.ResizeObserver!="undefined"?J.ResizeObserver:Ve}(),Cr=pe,Er=new Map;function wr(de){de.forEach(function(je){var Re,cr=je.target;(Re=Er.get(cr))===null||Re===void 0||Re.forEach(function(B){return B(cr)})})}var Kr=new Cr(wr),Ft=null,Jr=null;function Dr(de,je){Er.has(de)||(Er.set(de,new Set),Kr.observe(de)),Er.get(de).add(je)}function lt(de,je){Er.has(de)&&(Er.get(de).delete(je),Er.get(de).size||(Kr.unobserve(de),Er.delete(de)))}var Et=V(22951),Pt=V(91976),Ir=V(67591),C=V(94337),lr=function(de){(0,Ir.Z)(Re,de);var je=(0,C.Z)(Re);function Re(){return(0,Et.Z)(this,Re),je.apply(this,arguments)}return(0,Pt.Z)(Re,[{key:"render",value:function(){return this.props.children}}]),Re}(We.Component);function m(de,je){var Re=de.children,cr=de.disabled,B=We.useRef(null),ye=We.useRef(null),ar=We.useContext(W),dr=typeof Re=="function",Ur=dr?Re(B):Re,vt=We.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),it=!dr&&We.isValidElement(Ur)&&(0,y.Yr)(Ur),ft=it?Ur.ref:null,Wr=(0,y.x1)(ft,B),$r=function(){var rn;return(0,M.ZP)(B.current)||(B.current&&(0,D.Z)(B.current)==="object"?(0,M.ZP)((rn=B.current)===null||rn===void 0?void 0:rn.nativeElement):null)||(0,M.ZP)(ye.current)};We.useImperativeHandle(je,function(){return $r()});var dt=We.useRef(de);dt.current=de;var Xr=We.useCallback(function(Mt){var rn=dt.current,$e=rn.onResize,xr=rn.data,nr=Mt.getBoundingClientRect(),Mr=nr.width,Hr=nr.height,Nr=Mt.offsetWidth,qr=Mt.offsetHeight,At=Math.floor(Mr),Ut=Math.floor(Hr);if(vt.current.width!==At||vt.current.height!==Ut||vt.current.offsetWidth!==Nr||vt.current.offsetHeight!==qr){var gt={width:At,height:Ut,offsetWidth:Nr,offsetHeight:qr};vt.current=gt;var qt=Nr===Math.round(Mr)?Mr:Nr,Qt=qr===Math.round(Hr)?Hr:qr,Dn=(0,Z.Z)((0,Z.Z)({},gt),{},{offsetWidth:qt,offsetHeight:Qt});ar==null||ar(Dn,Mt,xr),$e&&Promise.resolve().then(function(){$e(Dn,Mt)})}},[]);return We.useEffect(function(){var Mt=$r();return Mt&&!cr&&Dr(Mt,Xr),function(){return lt(Mt,Xr)}},[B.current,cr]),We.createElement(lr,{ref:ye},it?We.cloneElement(Ur,{ref:Wr}):Ur)}var u=We.forwardRef(m),h=u,E="rc-observer-key";function ee(de,je){var Re=de.children,cr=typeof Re=="function"?[Re]:(0,G.Z)(Re);return cr.map(function(B,ye){var ar=(B==null?void 0:B.key)||"".concat(E,"-").concat(ye);return We.createElement(h,(0,Q.Z)({},de,{key:ar,ref:ye===0?je:void 0}),B)})}var Se=We.forwardRef(ee);Se.Collection=q;var oe=Se},27406:function(Vr,fr,V){"use strict";V.d(fr,{Z:function(){return N}});var Q=V(87363),We=V.n(Q),G=V(11349);function N(Z){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},M=[];return We().Children.forEach(Z,function(y){y==null&&!D.keepEmpty||(Array.isArray(y)?M=M.concat(N(y)):(0,G.isFragment)(y)&&y.props?M=M.concat(N(y.props.children,D)):M.push(y))}),M}},5661:function(Vr,fr){"use strict";fr.Z=function(V){if(!V)return!1;if(V instanceof Element){if(V.offsetParent)return!0;if(V.getBBox){var Q=V.getBBox(),We=Q.width,G=Q.height;if(We||G)return!0}if(V.getBoundingClientRect){var N=V.getBoundingClientRect(),Z=N.width,D=N.height;if(Z||D)return!0}}return!1}},65516:function(Vr,fr,V){"use strict";V.d(fr,{Z5:function(){return Gu},_l:function(){return C0},bK:function(){return hl}});var Q=V(87363),We=V.n(Q),G=V(93219),N=V(25773),Z=V(45106),D=We().createContext(null),M=null;function y(o){o()}var W=y,q=function(f){return W=f},ne=function(){return W};function K(){var o=ne(),f=null,l=null;return{clear:function(){f=null,l=null},notify:function(){o(function(){for(var b=f;b;)b.callback(),b=b.next})},get:function(){for(var b=[],w=f;w;)b.push(w),w=w.next;return b},subscribe:function(b){var w=!0,F=l={callback:b,next:null,prev:l};return F.prev?F.prev.next=F:f=F,function(){!w||f===null||(w=!1,F.next?F.next.prev=F.prev:l=F.prev,F.prev?F.prev.next=F.next:f=F.next)}}}}var J={notify:function(){},get:function(){return[]}};function O(o,f){var l,g=J;function b(ue){return fe(),g.subscribe(ue)}function w(){g.notify()}function F(){Ee.onStateChange&&Ee.onStateChange()}function R(){return!!l}function fe(){l||(l=f?f.addNestedSub(F):o.subscribe(F),g=K())}function Ce(){l&&(l(),l=void 0,g.clear(),g=J)}var Ee={addNestedSub:b,notifyNestedSubs:w,handleChangeWrapper:F,isSubscribed:R,trySubscribe:fe,tryUnsubscribe:Ce,getListeners:function(){return g}};return Ee}var Y=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?Q.useLayoutEffect:Q.useEffect;function L(o){var f=o.store,l=o.context,g=o.children,b=(0,Q.useMemo)(function(){var R=O(f);return{store:f,subscription:R}},[f]),w=(0,Q.useMemo)(function(){return f.getState()},[f]);Y(function(){var R=b.subscription;return R.onStateChange=R.notifyNestedSubs,R.trySubscribe(),w!==f.getState()&&R.notifyNestedSubs(),function(){R.tryUnsubscribe(),R.onStateChange=null}},[b,w]);var F=l||D;return We().createElement(F.Provider,{value:b},g)}var te=L,H=V(30808),se=V(55839),le=V.n(se),be=V(69272),ve=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],Je=["reactReduxForwardedRef"],ze=[],j=[null,null],z=function(f){try{return JSON.stringify(f)}catch(l){return String(f)}};function we(o,f){var l=o[1];return[f.payload,l+1]}function Ze(o,f,l){Y(function(){return o.apply(void 0,f)},l)}function I(o,f,l,g,b,w,F){o.current=g,f.current=b,l.current=!1,w.current&&(w.current=null,F())}function T(o,f,l,g,b,w,F,R,fe,Ce){if(o){var Ee=!1,ue=null,he=function(){if(!Ee){var zr=f.getState(),Gr,Zr;try{Gr=g(zr,b.current)}catch(ut){Zr=ut,ue=ut}Zr||(ue=null),Gr===w.current?F.current||fe():(w.current=Gr,R.current=Gr,F.current=!0,Ce({type:"STORE_UPDATED",payload:{error:Zr}}))}};l.onStateChange=he,l.trySubscribe(),he();var Le=function(){if(Ee=!0,l.tryUnsubscribe(),l.onStateChange=null,ue)throw ue};return Le}}var x=function(){return[null,0]};function Me(o,f){f===void 0&&(f={});var l=f,g=l.getDisplayName,b=g===void 0?function(Jt){return"ConnectAdvanced("+Jt+")"}:g,w=l.methodName,F=w===void 0?"connectAdvanced":w,R=l.renderCountProp,fe=R===void 0?void 0:R,Ce=l.shouldHandleStateChanges,Ee=Ce===void 0?!0:Ce,ue=l.storeKey,he=ue===void 0?"store":ue,Le=l.withRef,ir=Le===void 0?!1:Le,zr=l.forwardRef,Gr=zr===void 0?!1:zr,Zr=l.context,ut=Zr===void 0?D:Zr,_t=(0,H.Z)(l,ve);if(0)var Tt;var en=ut;return function(vn){var la=vn.displayName||vn.name||"Component",yn=b(la),ua=(0,N.Z)({},_t,{getDisplayName:b,methodName:F,renderCountProp:fe,shouldHandleStateChanges:Ee,storeKey:he,displayName:yn,wrappedComponentName:la,WrappedComponent:vn}),La=_t.pure;function ni(Xa){return o(Xa.dispatch,ua)}var ki=La?Q.useMemo:function(Xa){return Xa()};function rs(Xa){var Ls=(0,Q.useMemo)(function(){var Mo=Xa.reactReduxForwardedRef,lf=(0,H.Z)(Xa,Je);return[Xa.context,Mo,lf]},[Xa]),ds=Ls[0],Ca=Ls[1],ts=Ls[2],Xi=(0,Q.useMemo)(function(){return ds&&ds.Consumer&&(0,be.isContextConsumer)(We().createElement(ds.Consumer,null))?ds:en},[ds,en]),Mi=(0,Q.useContext)(Xi),ks=!!Xa.store&&!!Xa.store.getState&&!!Xa.store.dispatch,go=!!Mi&&!!Mi.store,ai=ks?Xa.store:Mi.store,No=(0,Q.useMemo)(function(){return ni(ai)},[ai]),Bo=(0,Q.useMemo)(function(){if(!Ee)return j;var Mo=O(ai,ks?null:Mi.subscription),lf=Mo.notifyNestedSubs.bind(Mo);return[Mo,lf]},[ai,ks,Mi]),hs=Bo[0],Cs=Bo[1],uc=(0,Q.useMemo)(function(){return ks?Mi:(0,N.Z)({},Mi,{subscription:hs})},[ks,Mi,hs]),pl=(0,Q.useReducer)(we,ze,x),F0=pl[0],dc=F0[0],O0=pl[1];if(dc&&dc.error)throw dc.error;var vl=(0,Q.useRef)(),mo=(0,Q.useRef)(ts),to=(0,Q.useRef)(),gl=(0,Q.useRef)(!1),cf=ki(function(){return to.current&&ts===mo.current?to.current:No(ai.getState(),ts)},[ai,dc,ts]);Ze(I,[mo,vl,gl,ts,cf,to,Cs]),Ze(T,[Ee,ai,hs,No,mo,vl,gl,to,Cs,O0],[ai,hs,No]);var ff=(0,Q.useMemo)(function(){return We().createElement(vn,(0,N.Z)({},cf,{ref:Ca}))},[Ca,vn,cf]),ml=(0,Q.useMemo)(function(){return Ee?We().createElement(Xi.Provider,{value:uc},ff):ff},[Xi,ff,uc]);return ml}var Ni=La?We().memo(rs):rs;if(Ni.WrappedComponent=vn,Ni.displayName=rs.displayName=yn,Gr){var Bi=We().forwardRef(function(Ls,ds){return We().createElement(Ni,(0,N.Z)({},Ls,{reactReduxForwardedRef:ds}))});return Bi.displayName=yn,Bi.WrappedComponent=vn,le()(Bi,vn)}return le()(Ni,vn)}}function Ye(o,f){return o===f?o!==0||f!==0||1/o===1/f:o!==o&&f!==f}function De(o,f){if(Ye(o,f))return!0;if(typeof o!="object"||o===null||typeof f!="object"||f===null)return!1;var l=Object.keys(o),g=Object.keys(f);if(l.length!==g.length)return!1;for(var b=0;b=0;g--){var b=f[g](o);if(b)return b}return function(w,F){throw new Error("Invalid value of type "+typeof o+" for "+l+" argument when connecting component "+F.wrappedComponentName+".")}}function ee(o,f){return o===f}function Se(o){var f=o===void 0?{}:o,l=f.connectHOC,g=l===void 0?Me:l,b=f.mapStateToPropsFactories,w=b===void 0?Jr:b,F=f.mapDispatchToPropsFactories,R=F===void 0?wr:F,fe=f.mergePropsFactories,Ce=fe===void 0?Ir:fe,Ee=f.selectorFactory,ue=Ee===void 0?u:Ee;return function(Le,ir,zr,Gr){Gr===void 0&&(Gr={});var Zr=Gr,ut=Zr.pure,_t=ut===void 0?!0:ut,Tt=Zr.areStatesEqual,en=Tt===void 0?ee:Tt,Jt=Zr.areOwnPropsEqual,vn=Jt===void 0?De:Jt,la=Zr.areStatePropsEqual,yn=la===void 0?De:la,ua=Zr.areMergedPropsEqual,La=ua===void 0?De:ua,ni=(0,H.Z)(Zr,h),ki=E(Le,w,"mapStateToProps"),rs=E(ir,R,"mapDispatchToProps"),Ni=E(zr,Ce,"mergeProps");return g(ue,(0,N.Z)({methodName:"connect",getDisplayName:function(Xa){return"Connect("+Xa+")"},shouldHandleStateChanges:!!Le,initMapStateToProps:ki,initMapDispatchToProps:rs,initMergeProps:Ni,pure:_t,areStatesEqual:en,areOwnPropsEqual:vn,areStatePropsEqual:yn,areMergedPropsEqual:La},ni))}}var oe=Se();function de(){var o=useContext(ReactReduxContext);return o}function je(o){o===void 0&&(o=ReactReduxContext);var f=o===ReactReduxContext?useDefaultReduxContext:function(){return useContext(o)};return function(){var g=f(),b=g.store;return b}}var Re=null;function cr(o){o===void 0&&(o=ReactReduxContext);var f=o===ReactReduxContext?useDefaultStore:createStoreHook(o);return function(){var g=f();return g.dispatch}}var B=null,ye=function(f,l){return f===l};function ar(o,f,l,g){var b=useReducer(function(ir){return ir+1},0),w=b[1],F=useMemo(function(){return createSubscription(l,g)},[l,g]),R=useRef(),fe=useRef(),Ce=useRef(),Ee=useRef(),ue=l.getState(),he;try{if(o!==fe.current||ue!==Ce.current||R.current){var Le=o(ue);Ee.current===void 0||!f(Le,Ee.current)?he=Le:he=Ee.current}else he=Ee.current}catch(ir){throw R.current&&(ir.message+=` +The error may be correlated with this previous error: +`+R.current.stack+` + +`),ir}return useIsomorphicLayoutEffect(function(){fe.current=o,Ce.current=ue,Ee.current=he,R.current=void 0}),useIsomorphicLayoutEffect(function(){function ir(){try{var zr=l.getState();if(zr===Ce.current)return;var Gr=fe.current(zr);if(f(Gr,Ee.current))return;Ee.current=Gr,Ce.current=zr}catch(Zr){R.current=Zr}w()}return F.onStateChange=ir,F.trySubscribe(),ir(),function(){return F.tryUnsubscribe()}},[l,F]),he}function dr(o){o===void 0&&(o=ReactReduxContext);var f=o===ReactReduxContext?useDefaultReduxContext:function(){return useContext(o)};return function(g,b){b===void 0&&(b=ye);var w=f(),F=w.store,R=w.subscription,fe=ar(g,b,F,R);return useDebugValue(fe),fe}}var Ur=null,vt=V(61533),it=V.n(vt);q(vt.unstable_batchedUpdates);function ft(o,f){if(o.length!==f.length)return!1;for(var l=0;l");return g.callbacks},g.setCallbacks=function(R){g.callbacks=R},g}var l=f.prototype;return l.componentDidMount=function(){this.unbind=Qr(window,[{eventName:"error",fn:this.onWindowError}])},l.componentDidCatch=function(b){if(b instanceof Va){this.setState({});return}throw b},l.componentWillUnmount=function(){this.unbind()},l.render=function(){return this.props.children(this.setCallbacks)},f}(We().Component),Te=` + Press space bar to start a drag. + When dragging you can use the arrow keys to move the item around and escape to cancel. + Some screen readers may require you to be in focus mode or to use your pass through key +`,Ne=function(f){return f+1},er=function(f){return` + You have lifted an item in position `+Ne(f.source.index)+` +`},Tr=function(f,l){var g=f.droppableId===l.droppableId,b=Ne(f.index),w=Ne(l.index);return g?` + You have moved the item from position `+b+` + to position `+w+` + `:` + You have moved the item from position `+b+` + in list `+f.droppableId+` + to list `+l.droppableId+` + in position `+w+` + `},ht=function(f,l,g){var b=l.droppableId===g.droppableId;return b?` + The item `+f+` + has been combined with `+g.draggableId:` + The item `+f+` + in list `+l.droppableId+` + has been combined with `+g.draggableId+` + in list `+g.droppableId+` + `},Gt=function(f){var l=f.destination;if(l)return Tr(f.source,l);var g=f.combine;return g?ht(f.draggableId,f.source,g):"You are over an area that cannot be dropped on"},It=function(f){return` + The item has returned to its starting position + of `+Ne(f.index)+` +`},kn=function(f){if(f.reason==="CANCEL")return` + Movement cancelled. + `+It(f.source)+` + `;var l=f.destination,g=f.combine;return l?` + You have dropped the item. + `+Tr(f.source,l)+` + `:g?` + You have dropped the item. + `+ht(f.draggableId,f.source,g)+` + `:` + The item has been dropped while not over a drop area. + `+It(f.source)+` + `},Nn={dragHandleUsageInstructions:Te,onDragStart:er,onDragUpdate:Gt,onDragEnd:kn},Xt={x:0,y:0},Yt=function(f,l){return{x:f.x+l.x,y:f.y+l.y}},Mn=function(f,l){return{x:f.x-l.x,y:f.y-l.y}},ea=function(f,l){return f.x===l.x&&f.y===l.y},pa=function(f){return{x:f.x!==0?-f.x:0,y:f.y!==0?-f.y:0}},si=function(f,l,g){var b;return g===void 0&&(g=0),b={},b[f]=l,b[f==="x"?"y":"x"]=g,b},mn=function(f,l){return Math.sqrt(Math.pow(l.x-f.x,2)+Math.pow(l.y-f.y,2))},Yn=function(f,l){return Math.min.apply(Math,l.map(function(g){return mn(f,g)}))},xn=function(f){return function(l){return{x:f(l.x),y:f(l.y)}}},On=function(o,f){var l=xr({top:Math.max(f.top,o.top),right:Math.min(f.right,o.right),bottom:Math.min(f.bottom,o.bottom),left:Math.max(f.left,o.left)});return l.width<=0||l.height<=0?null:l},Ln=function(f,l){return{top:f.top+l.y,left:f.left+l.x,bottom:f.bottom+l.y,right:f.right+l.x}},_i=function(f){return[{x:f.left,y:f.top},{x:f.right,y:f.top},{x:f.left,y:f.bottom},{x:f.right,y:f.bottom}]},bn={top:0,right:0,bottom:0,left:0},Ei=function(f,l){return l?Ln(f,l.scroll.diff.displacement):f},Ja=function(f,l,g){if(g&&g.increasedBy){var b;return(0,N.Z)({},f,(b={},b[l.end]=f[l.end]+g.increasedBy[l.line],b))}return f},is=function(f,l){return l&&l.shouldClipSubject?On(l.pageMarginBox,f):xr(f)},Ia=function(o){var f=o.page,l=o.withPlaceholder,g=o.axis,b=o.frame,w=Ei(f.marginBox,b),F=Ja(w,g,l),R=is(F,b);return{page:f,withPlaceholder:l,active:R}},$n=function(o,f){o.frame||Sr(!1);var l=o.frame,g=Mn(f,l.scroll.initial),b=pa(g),w=(0,N.Z)({},l,{scroll:{initial:l.scroll.initial,current:f,diff:{value:g,displacement:b},max:l.scroll.max}}),F=Ia({page:o.subject.page,withPlaceholder:o.subject.withPlaceholder,axis:o.axis,frame:w}),R=(0,N.Z)({},o,{frame:w,subject:F});return R};function Ki(o){return Number.isInteger?Number.isInteger(o):typeof o=="number"&&isFinite(o)&&Math.floor(o)===o}function dn(o){return Object.values?Object.values(o):Object.keys(o).map(function(f){return o[f]})}function xa(o,f){if(o.findIndex)return o.findIndex(f);for(var l=0;lo.bottom,Ce=g.lefto.right,Ee=fe&&Ce;if(Ee)return!0;var ue=fe&&F||Ce&&w;return ue}},Ht=function(o){var f=aa(o.top,o.bottom),l=aa(o.left,o.right);return function(g){var b=f(g.top)&&f(g.bottom)&&l(g.left)&&l(g.right);return b}},Vn={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Yi={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},hn=function(o){return function(f){var l=aa(f.top,f.bottom),g=aa(f.left,f.right);return function(b){return o===Vn?l(b.top)&&l(b.bottom):g(b.left)&&g(b.right)}}},zi=function(f,l){var g=l.frame?l.frame.scroll.diff.displacement:Xt;return Ln(f,g)},Ji=function(f,l,g){return l.subject.active?g(l.subject.active)(f):!1},Wi=function(f,l,g){return g(l)(f)},Ii=function(f){var l=f.target,g=f.destination,b=f.viewport,w=f.withDroppableDisplacement,F=f.isVisibleThroughFrameFn,R=w?zi(l,g):l;return Ji(R,g,F)&&Wi(R,b,F)},Qa=function(f){return Ii((0,N.Z)({},f,{isVisibleThroughFrameFn:Gn}))},Gs=function(f){return Ii((0,N.Z)({},f,{isVisibleThroughFrameFn:Ht}))},Rn=function(f){return Ii((0,N.Z)({},f,{isVisibleThroughFrameFn:hn(f.destination.axis)}))},Hi=function(f,l,g){if(typeof g=="boolean")return g;if(!l)return!0;var b=l.invisible,w=l.visible;if(b[f])return!1;var F=w[f];return F?F.shouldAnimate:!0};function ss(o,f){var l=o.page.marginBox,g={top:f.point.y,right:0,bottom:0,left:f.point.x};return xr(nr(l,g))}function fi(o){var f=o.afterDragging,l=o.destination,g=o.displacedBy,b=o.viewport,w=o.forceShouldAnimate,F=o.last;return f.reduce(function(fe,Ce){var Ee=ss(Ce,g),ue=Ce.descriptor.id;fe.all.push(ue);var he=Qa({target:Ee,destination:l,viewport:b,withDroppableDisplacement:!0});if(!he)return fe.invisible[Ce.descriptor.id]=!0,fe;var Le=Hi(ue,F,w),ir={draggableId:ue,shouldAnimate:Le};return fe.visible[ue]=ir,fe},{all:[],visible:{},invisible:{}})}function gi(o,f){if(!o.length)return 0;var l=o[o.length-1].descriptor.index;return f.inHomeList?l:l+1}function tn(o){var f=o.insideDestination,l=o.inHomeList,g=o.displacedBy,b=o.destination,w=gi(f,{inHomeList:l});return{displaced:zt,displacedBy:g,at:{type:"REORDER",destination:{droppableId:b.descriptor.id,index:w}}}}function fa(o){var f=o.draggable,l=o.insideDestination,g=o.destination,b=o.viewport,w=o.displacedBy,F=o.last,R=o.index,fe=o.forceShouldAnimate,Ce=Fa(f,g);if(R==null)return tn({insideDestination:l,inHomeList:Ce,displacedBy:w,destination:g});var Ee=oi(l,function(zr){return zr.descriptor.index===R});if(!Ee)return tn({insideDestination:l,inHomeList:Ce,displacedBy:w,destination:g});var ue=_a(f,l),he=l.indexOf(Ee),Le=ue.slice(he),ir=fi({afterDragging:Le,destination:g,displacedBy:w,last:F,viewport:b.frame,forceShouldAnimate:fe});return{displaced:ir,displacedBy:w,at:{type:"REORDER",destination:{droppableId:g.descriptor.id,index:R}}}}function Pa(o,f){return!!f.effected[o]}var os=function(o){var f=o.isMovingForward,l=o.destination,g=o.draggables,b=o.combine,w=o.afterCritical;if(!l.isCombineEnabled)return null;var F=b.draggableId,R=g[F],fe=R.descriptor.index,Ce=Pa(F,w);return Ce?f?fe:fe-1:f?fe+1:fe},qi=function(o){var f=o.isMovingForward,l=o.isInHomeList,g=o.insideDestination,b=o.location;if(!g.length)return null;var w=b.index,F=f?w+1:w-1,R=g[0].descriptor.index,fe=g[g.length-1].descriptor.index,Ce=l?fe:fe+1;return FCe?null:F},bs=function(o){var f=o.isMovingForward,l=o.isInHomeList,g=o.draggable,b=o.draggables,w=o.destination,F=o.insideDestination,R=o.previousImpact,fe=o.viewport,Ce=o.afterCritical,Ee=R.at;if(Ee||Sr(!1),Ee.type==="REORDER"){var ue=qi({isMovingForward:f,isInHomeList:l,location:Ee.destination,insideDestination:F});return ue==null?null:fa({draggable:g,insideDestination:F,destination:w,viewport:fe,last:R.displaced,displacedBy:R.displacedBy,index:ue})}var he=os({isMovingForward:f,destination:w,displaced:R.displaced,draggables:b,combine:Ee.combine,afterCritical:Ce});return he==null?null:fa({draggable:g,insideDestination:F,destination:w,viewport:fe,last:R.displaced,displacedBy:R.displacedBy,index:he})},ws=function(o){var f=o.displaced,l=o.afterCritical,g=o.combineWith,b=o.displacedBy,w=!!(f.visible[g]||f.invisible[g]);return Pa(g,l)?w?Xt:pa(b.point):w?b.point:Xt},Gi=function(o){var f=o.afterCritical,l=o.impact,g=o.draggables,b=ci(l);b||Sr(!1);var w=b.draggableId,F=g[w].page.borderBox.center,R=ws({displaced:l.displaced,afterCritical:f,combineWith:w,displacedBy:l.displacedBy});return Yt(F,R)},Ea=function(f,l){return l.margin[f.start]+l.borderBox[f.size]/2},va=function(f,l){return l.margin[f.end]+l.borderBox[f.size]/2},mi=function(f,l,g){return l[f.crossAxisStart]+g.margin[f.crossAxisStart]+g.borderBox[f.crossAxisSize]/2},jr=function(f){var l=f.axis,g=f.moveRelativeTo,b=f.isMoving;return si(l.line,g.marginBox[l.end]+Ea(l,b),mi(l,g.marginBox,b))},re=function(f){var l=f.axis,g=f.moveRelativeTo,b=f.isMoving;return si(l.line,g.marginBox[l.start]-va(l,b),mi(l,g.marginBox,b))},Oe=function(f){var l=f.axis,g=f.moveInto,b=f.isMoving;return si(l.line,g.contentBox[l.start]+Ea(l,b),mi(l,g.contentBox,b))},He=function(o){var f=o.impact,l=o.draggable,g=o.draggables,b=o.droppable,w=o.afterCritical,F=In(b.descriptor.id,g),R=l.page,fe=b.axis;if(!F.length)return Oe({axis:fe,moveInto:b.page,isMoving:R});var Ce=f.displaced,Ee=f.displacedBy,ue=Ce.all[0];if(ue){var he=g[ue];if(Pa(ue,w))return re({axis:fe,moveRelativeTo:he.page,isMoving:R});var Le=gt(he.page,Ee.point);return re({axis:fe,moveRelativeTo:Le,isMoving:R})}var ir=F[F.length-1];if(ir.descriptor.id===l.descriptor.id)return R.borderBox.center;if(Pa(ir.descriptor.id,w)){var zr=gt(ir.page,pa(w.displacedBy.point));return jr({axis:fe,moveRelativeTo:zr,isMoving:R})}return jr({axis:fe,moveRelativeTo:ir.page,isMoving:R})},ae=function(o,f){var l=o.frame;return l?Yt(f,l.scroll.diff.displacement):f},Be=function(f){var l=f.impact,g=f.draggable,b=f.droppable,w=f.draggables,F=f.afterCritical,R=g.page.borderBox.center,fe=l.at;return!b||!fe?R:fe.type==="REORDER"?He({impact:l,draggable:g,draggables:w,droppable:b,afterCritical:F}):Gi({impact:l,draggables:w,afterCritical:F})},Rr=function(o){var f=Be(o),l=o.droppable,g=l?ae(l,f):f;return g},Or=function(o,f){var l=Mn(f,o.scroll.initial),g=pa(l),b=xr({top:f.y,bottom:f.y+o.frame.height,left:f.x,right:f.x+o.frame.width}),w={frame:b,scroll:{initial:o.scroll.initial,max:o.scroll.max,current:f,diff:{value:l,displacement:g}}};return w};function tt(o,f){return o.map(function(l){return f[l]})}function Nt(o,f){for(var l=0;l1?Ee.sort(function(ue,he){return Wt(ue)[R.start]-Wt(he)[R.start]})[0]:Ce.sort(function(ue,he){var Le=Yn(l,_i(Wt(ue))),ir=Yn(l,_i(Wt(he)));return Le!==ir?Le-ir:Wt(ue)[R.start]-Wt(he)[R.start]})[0]},wn=function(f,l){var g=f.page.borderBox.center;return Pa(f.descriptor.id,l)?Mn(g,l.displacedBy.point):g},sa=function(f,l){var g=f.page.borderBox;return Pa(f.descriptor.id,l)?Ln(g,pa(l.displacedBy.point)):g},Xn=function(o){var f=o.pageBorderBoxCenter,l=o.viewport,g=o.destination,b=o.insideDestination,w=o.afterCritical,F=b.filter(function(R){return Gs({target:sa(R,w),destination:g,viewport:l.frame,withDroppableDisplacement:!0})}).sort(function(R,fe){var Ce=mn(f,ae(g,wn(R,w))),Ee=mn(f,ae(g,wn(fe,w)));return Cef.left&&o.topf.top}function Ta(o){var f=o.pageBorderBox,l=o.draggable,g=o.candidates,b=l.page.borderBox.center,w=g.map(function(F){var R=F.axis,fe=si(F.axis.line,f.center[R.line],F.page.borderBox.center[R.crossAxisLine]);return{id:F.descriptor.id,distance:mn(b,fe)}}).sort(function(F,R){return R.distance-F.distance});return w[0]?w[0].id:null}function Oi(o){var f=o.pageBorderBox,l=o.draggable,g=o.droppables,b=ya(g).filter(function(w){if(!w.isEnabled)return!1;var F=w.subject.active;if(!F||!ba(f,F))return!1;if(Ba(F)(f.center))return!0;var R=w.axis,fe=F.center[R.crossAxisLine],Ce=f[R.crossAxisStart],Ee=f[R.crossAxisEnd],ue=aa(F[R.crossAxisStart],F[R.crossAxisEnd]),he=ue(Ce),Le=ue(Ee);return!he&&!Le?!0:he?Cefe});return b.length?b.length===1?b[0].descriptor.id:Ta({pageBorderBox:f,draggable:l,candidates:b}):null}var zn=function(f,l){return xr(Ln(f,l))},ei=function(o,f){var l=o.frame;return l?zn(f,l.scroll.diff.value):f};function cs(o){var f=o.displaced,l=o.id;return!!(f.visible[l]||f.invisible[l])}function Vi(o){var f=o.draggable,l=o.closest,g=o.inHomeList;return l?g&&l.descriptor.index>f.descriptor.index?l.descriptor.index-1:l.descriptor.index:null}var Vs=function(o){var f=o.pageBorderBoxWithDroppableScroll,l=o.draggable,g=o.destination,b=o.insideDestination,w=o.last,F=o.viewport,R=o.afterCritical,fe=g.axis,Ce=ia(g.axis,l.displaceBy),Ee=Ce.value,ue=f[fe.start],he=f[fe.end],Le=_a(l,b),ir=oi(Le,function(Gr){var Zr=Gr.descriptor.id,ut=Gr.page.borderBox.center[fe.line],_t=Pa(Zr,R),Tt=cs({displaced:w,id:Zr});return _t?Tt?he<=ut:ueZr[R.start]+_t&&ueZr[R.start]-Ce+_t&&EeZr[R.start]+Ce+_t&&ueZr[R.start]+_t&&Ee=ti)return Rs;var w=b/ti,F=Tc+fo*w,R=g==="CANCEL"?F*Ks:F;return Number(R.toFixed(2))},Vo=function(o){var f=o.impact,l=o.draggable,g=o.dimensions,b=o.viewport,w=o.afterCritical,F=g.draggables,R=g.droppables,fe=Un(f),Ce=fe?R[fe]:null,Ee=R[l.descriptor.droppableId],ue=Fr({impact:f,draggable:l,draggables:F,afterCritical:w,droppable:Ce||Ee,viewport:b}),he=Mn(ue,l.client.borderBox.center);return he},Rl=function(o){var f=o.draggables,l=o.reason,g=o.lastImpact,b=o.home,w=o.viewport,F=o.onLiftImpact;if(!g.at||l!=="DROP"){var R=oa({draggables:f,impact:F,destination:b,viewport:w,forceShouldAnimate:!0});return{impact:R,didDropInsideDroppable:!1}}if(g.at.type==="REORDER")return{impact:g,didDropInsideDroppable:!0};var fe=(0,N.Z)({},g,{displaced:zt});return{impact:fe,didDropInsideDroppable:!0}},Pl=function(o){var f=o.getState,l=o.dispatch;return function(g){return function(b){if(b.type!=="DROP"){g(b);return}var w=f(),F=b.payload.reason;if(w.phase==="COLLECTING"){l(Xs({reason:F}));return}if(w.phase!=="IDLE"){var R=w.phase==="DROP_PENDING"&&w.isWaiting;R&&Sr(!1),w.phase==="DRAGGING"||w.phase==="DROP_PENDING"||Sr(!1);var fe=w.critical,Ce=w.dimensions,Ee=Ce.draggables[w.critical.draggable.id],ue=Rl({reason:F,lastImpact:w.impact,afterCritical:w.afterCritical,onLiftImpact:w.onLiftImpact,home:w.dimensions.droppables[w.critical.droppable.id],viewport:w.viewport,draggables:w.dimensions.draggables}),he=ue.impact,Le=ue.didDropInsideDroppable,ir=Le?ys(he):null,zr=Le?ci(he):null,Gr={index:fe.draggable.index,droppableId:fe.droppable.id},Zr={draggableId:Ee.descriptor.id,type:Ee.descriptor.type,source:Gr,reason:F,mode:w.movementMode,destination:ir,combine:zr},ut=Vo({impact:he,draggable:Ee,dimensions:Ce,viewport:w.viewport,afterCritical:w.afterCritical}),_t={critical:w.critical,afterCritical:w.afterCritical,result:Zr,impact:he},Tt=!ea(w.current.client.offset,ut)||!!Zr.combine;if(!Tt){l(_c({completed:_t}));return}var en=Ol({current:w.current.client.offset,destination:ut,reason:F}),Jt={newHomeClientOffset:ut,dropDuration:en,completed:_t};l(Il(Jt))}}}},kc=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Nl(o){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(l){l.target!==window&&l.target!==window.document||o()}}}function Bl(o){var f=o.onWindowScroll;function l(){f(kc())}var g=Bn(l),b=Nl(g),w=ha;function F(){return w!==ha}function R(){F()&&Sr(!1),w=Qr(window,[b])}function fe(){F()||Sr(!1),g.cancel(),w(),w=ha}return{start:R,stop:fe,isActive:F}}var Cc=function(f){return f.type==="DROP_COMPLETE"||f.type==="DROP_ANIMATE"||f.type==="FLUSH"},Si=function(o){var f=Bl({onWindowScroll:function(g){o.dispatch(es({newScroll:g}))}});return function(l){return function(g){!f.isActive()&&g.type==="INITIAL_PUBLISH"&&f.start(),f.isActive()&&Cc(g)&&f.stop(),l(g)}}},jo=function(o){var f=!1,l=!1,g=setTimeout(function(){l=!0}),b=function(F){f||l||(f=!0,o(F),clearTimeout(g))};return b.wasCalled=function(){return f},b},Ff=function(){var o=[],f=function(w){var F=xa(o,function(Ce){return Ce.timerId===w});F===-1&&Sr(!1);var R=o.splice(F,1),fe=R[0];fe.callback()},l=function(w){var F=setTimeout(function(){return f(F)}),R={timerId:F,callback:w};o.push(R)},g=function(){if(o.length){var w=[].concat(o);o.length=0,w.forEach(function(F){clearTimeout(F.timerId),F.callback()})}};return{add:l,flush:g}},$o=function(f,l){return f==null&&l==null?!0:f==null||l==null?!1:f.droppableId===l.droppableId&&f.index===l.index},cd=function(f,l){return f==null&&l==null?!0:f==null||l==null?!1:f.draggableId===l.draggableId&&f.droppableId===l.droppableId},Xo=function(f,l){if(f===l)return!0;var g=f.draggable.id===l.draggable.id&&f.draggable.droppableId===l.draggable.droppableId&&f.draggable.type===l.draggable.type&&f.draggable.index===l.draggable.index,b=f.droppable.id===l.droppable.id&&f.droppable.type===l.droppable.type;return g&&b},ko=function(f,l){_s(),l(),Zn()},Zo=function(f,l){return{draggableId:f.draggable.id,type:f.droppable.type,source:{droppableId:f.droppable.id,index:f.draggable.index},mode:l}},Of=function(f,l,g,b){if(!f){g(b(l));return}var w=jo(g),F={announce:w};f(l,F),w.wasCalled()||g(b(l))},Ml=function(o,f){var l=Ff(),g=null,b=function(he,Le){g&&Sr(!1),ko("onBeforeCapture",function(){var ir=o().onBeforeCapture;if(ir){var zr={draggableId:he,mode:Le};ir(zr)}})},w=function(he,Le){g&&Sr(!1),ko("onBeforeDragStart",function(){var ir=o().onBeforeDragStart;ir&&ir(Zo(he,Le))})},F=function(he,Le){g&&Sr(!1);var ir=Zo(he,Le);g={mode:Le,lastCritical:he,lastLocation:ir.source,lastCombine:null},l.add(function(){ko("onDragStart",function(){return Of(o().onDragStart,ir,f,Nn.onDragStart)})})},R=function(he,Le){var ir=ys(Le),zr=ci(Le);g||Sr(!1);var Gr=!Xo(he,g.lastCritical);Gr&&(g.lastCritical=he);var Zr=!$o(g.lastLocation,ir);Zr&&(g.lastLocation=ir);var ut=!cd(g.lastCombine,zr);if(ut&&(g.lastCombine=zr),!(!Gr&&!Zr&&!ut)){var _t=(0,N.Z)({},Zo(he,g.mode),{combine:zr,destination:ir});l.add(function(){ko("onDragUpdate",function(){return Of(o().onDragUpdate,_t,f,Nn.onDragUpdate)})})}},fe=function(){g||Sr(!1),l.flush()},Ce=function(he){g||Sr(!1),g=null,ko("onDragEnd",function(){return Of(o().onDragEnd,he,f,Nn.onDragEnd)})},Ee=function(){if(g){var he=(0,N.Z)({},Zo(g.lastCritical,g.mode),{combine:null,destination:null,reason:"CANCEL"});Ce(he)}};return{beforeCapture:b,beforeStart:w,start:F,update:R,flush:fe,drop:Ce,abort:Ee}},Ll=function(o,f){var l=Ml(o,f);return function(g){return function(b){return function(w){if(w.type==="BEFORE_INITIAL_CAPTURE"){l.beforeCapture(w.payload.draggableId,w.payload.movementMode);return}if(w.type==="INITIAL_PUBLISH"){var F=w.payload.critical;l.beforeStart(F,w.payload.movementMode),b(w),l.start(F,w.payload.movementMode);return}if(w.type==="DROP_COMPLETE"){var R=w.payload.completed.result;l.flush(),b(w),l.drop(R);return}if(b(w),w.type==="FLUSH"){l.abort();return}var fe=g.getState();fe.phase==="DRAGGING"&&l.update(fe.critical,fe.impact)}}}},$a=function(o){return function(f){return function(l){if(l.type!=="DROP_ANIMATION_FINISHED"){f(l);return}var g=o.getState();g.phase!=="DROP_ANIMATING"&&Sr(!1),o.dispatch(_c({completed:g.completed}))}}},Rf=function(o){var f=null,l=null;function g(){l&&(cancelAnimationFrame(l),l=null),f&&(f(),f=null)}return function(b){return function(w){if((w.type==="FLUSH"||w.type==="DROP_COMPLETE"||w.type==="DROP_ANIMATION_FINISHED")&&g(),b(w),w.type==="DROP_ANIMATE"){var F={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var fe=o.getState();fe.phase==="DROP_ANIMATING"&&o.dispatch(Os())}};l=requestAnimationFrame(function(){l=null,f=Qr(window,[F])})}}}},Ul=function(o){return function(){return function(f){return function(l){(l.type==="DROP_COMPLETE"||l.type==="FLUSH"||l.type==="DROP_ANIMATE")&&o.stopPublishing(),f(l)}}}},Ac=function(o){var f=!1;return function(){return function(l){return function(g){if(g.type==="INITIAL_PUBLISH"){f=!0,o.tryRecordFocus(g.payload.critical.draggable.id),l(g),o.tryRestoreFocusRecorded();return}if(l(g),!!f){if(g.type==="FLUSH"){f=!1,o.tryRestoreFocusRecorded();return}if(g.type==="DROP_COMPLETE"){f=!1;var b=g.payload.completed.result;b.combine&&o.tryShiftRecord(b.draggableId,b.combine.draggableId),o.tryRestoreFocusRecorded()}}}}}},Dc=function(f){return f.type==="DROP_COMPLETE"||f.type==="DROP_ANIMATE"||f.type==="FLUSH"},Pf=function(o){return function(f){return function(l){return function(g){if(Dc(g)){o.stop(),l(g);return}if(g.type==="INITIAL_PUBLISH"){l(g);var b=f.getState();b.phase!=="DRAGGING"&&Sr(!1),o.start(b);return}l(g),o.scroll(f.getState())}}}},zl=function(o){return function(f){return function(l){if(f(l),l.type==="PUBLISH_WHILE_DRAGGING"){var g=o.getState();g.phase==="DROP_PENDING"&&(g.isWaiting||o.dispatch(Ri({reason:g.reason})))}}}},Wl=Z.qC,Hl=function(o){var f=o.dimensionMarshal,l=o.focusMarshal,g=o.styleMarshal,b=o.getResponders,w=o.announce,F=o.autoScroller;return(0,Z.MT)(Kt,Wl((0,Z.md)(Ec(g),Ul(f),If(f),Pl,$a,Rf,zl,Pf(F),Si,Ac(l),Ll(b,w))))},Ss=function(){return{additions:{},removals:{},modified:{}}};function Ts(o){var f=o.registry,l=o.callbacks,g=Ss(),b=null,w=function(){b||(l.collectionStarting(),b=requestAnimationFrame(function(){b=null,_s();var Ee=g,ue=Ee.additions,he=Ee.removals,Le=Ee.modified,ir=Object.keys(ue).map(function(Zr){return f.draggable.getById(Zr).getDimension(Xt)}).sort(function(Zr,ut){return Zr.descriptor.index-ut.descriptor.index}),zr=Object.keys(Le).map(function(Zr){var ut=f.droppable.getById(Zr),_t=ut.callbacks.getScrollWhileDragging();return{droppableId:Zr,scroll:_t}}),Gr={additions:ir,removals:Object.keys(he),modified:zr};g=Ss(),Zn(),l.publish(Gr)}))},F=function(Ee){var ue=Ee.descriptor.id;g.additions[ue]=Ee,g.modified[Ee.descriptor.droppableId]=!0,g.removals[ue]&&delete g.removals[ue],w()},R=function(Ee){var ue=Ee.descriptor;g.removals[ue.id]=!0,g.modified[ue.droppableId]=!0,g.additions[ue.id]&&delete g.additions[ue.id],w()},fe=function(){b&&(cancelAnimationFrame(b),b=null,g=Ss())};return{add:F,remove:R,stop:fe}}var Ic=function(o){var f=o.scrollHeight,l=o.scrollWidth,g=o.height,b=o.width,w=Mn({x:l,y:f},{x:b,y:g}),F={x:Math.max(0,w.x),y:Math.max(0,w.y)};return F},Ko=function(){var o=document.documentElement;return o||Sr(!1),o},Co=function(){var o=Ko(),f=Ic({scrollHeight:o.scrollHeight,scrollWidth:o.scrollWidth,width:o.clientWidth,height:o.clientHeight});return f},Fc=function(){var o=kc(),f=Co(),l=o.y,g=o.x,b=Ko(),w=b.clientWidth,F=b.clientHeight,R=g+w,fe=l+F,Ce=xr({top:l,left:g,right:R,bottom:fe}),Ee={frame:Ce,scroll:{initial:o,current:o,max:f,diff:{value:Xt,displacement:Xt}}};return Ee},Gl=function(o){var f=o.critical,l=o.scrollOptions,g=o.registry;_s();var b=Fc(),w=b.scroll.current,F=f.droppable,R=g.droppable.getAllByType(F.type).map(function(ue){return ue.callbacks.getDimensionAndWatchScroll(w,l)}),fe=g.draggable.getAllByType(f.draggable.type).map(function(ue){return ue.getDimension(w)}),Ce={draggables:Di(fe),droppables:Vt(R)};Zn();var Ee={dimensions:Ce,critical:f,viewport:b};return Ee};function Oc(o,f,l){if(l.descriptor.id===f.id||l.descriptor.type!==f.type)return!1;var g=o.droppable.getById(l.descriptor.droppableId);return g.descriptor.mode==="virtual"}var an=function(o,f){var l=null,g=Ts({callbacks:{publish:f.publishWhileDragging,collectionStarting:f.collectionStarting},registry:o}),b=function(Le,ir){o.droppable.exists(Le)||Sr(!1),l&&f.updateDroppableIsEnabled({id:Le,isEnabled:ir})},w=function(Le,ir){l&&(o.droppable.exists(Le)||Sr(!1),f.updateDroppableIsCombineEnabled({id:Le,isCombineEnabled:ir}))},F=function(Le,ir){l&&(o.droppable.exists(Le)||Sr(!1),f.updateDroppableScroll({id:Le,newScroll:ir}))},R=function(Le,ir){l&&o.droppable.getById(Le).callbacks.scroll(ir)},fe=function(){if(l){g.stop();var Le=l.critical.droppable;o.droppable.getAllByType(Le.type).forEach(function(ir){return ir.callbacks.dragStopped()}),l.unsubscribe(),l=null}},Ce=function(Le){l||Sr(!1);var ir=l.critical.draggable;Le.type==="ADDITION"&&Oc(o,ir,Le.value)&&g.add(Le.value),Le.type==="REMOVAL"&&Oc(o,ir,Le.value)&&g.remove(Le.value)},Ee=function(Le){l&&Sr(!1);var ir=o.draggable.getById(Le.draggableId),zr=o.droppable.getById(ir.descriptor.droppableId),Gr={draggable:ir.descriptor,droppable:zr.descriptor},Zr=o.subscribe(Ce);return l={critical:Gr,unsubscribe:Zr},Gl({critical:Gr,registry:o,scrollOptions:Le.scrollOptions})},ue={updateDroppableIsEnabled:b,updateDroppableIsCombineEnabled:w,scrollDroppable:R,updateDroppableScroll:F,startPublishing:Ee,stopPublishing:fe};return ue},lo=function(o,f){return o.phase==="IDLE"?!0:o.phase!=="DROP_ANIMATING"||o.completed.result.draggableId===f?!1:o.completed.result.reason==="DROP"},Ao=function(o){window.scrollBy(o.x,o.y)},uo=(0,yt.Z)(function(o){return ya(o).filter(function(f){return!(!f.isEnabled||!f.frame)})}),Wn=function(f,l){var g=oi(uo(l),function(b){return b.frame||Sr(!1),Ba(b.frame.pageMarginBox)(f)});return g},Vl=function(o){var f=o.center,l=o.destination,g=o.droppables;if(l){var b=g[l];return b.frame?b:null}var w=Wn(f,g);return w},Ps={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(f){return Math.pow(f,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},jl=function(o,f){var l=o[f.size]*Ps.startFromPercentage,g=o[f.size]*Ps.maxScrollAtPercentage,b={startScrollingFrom:l,maxScrollValueAt:g};return b},Rc=function(o){var f=o.startOfRange,l=o.endOfRange,g=o.current,b=l-f;if(b===0)return 0;var w=g-f,F=w/b;return F},Pc=1,$l=function(o,f){if(o>f.startScrollingFrom)return 0;if(o<=f.maxScrollValueAt)return Ps.maxPixelScroll;if(o===f.startScrollingFrom)return Pc;var l=Rc({startOfRange:f.maxScrollValueAt,endOfRange:f.startScrollingFrom,current:o}),g=1-l,b=Ps.maxPixelScroll*Ps.ease(g);return Math.ceil(b)},Nc=Ps.durationDampening.accelerateAt,Pi=Ps.durationDampening.stopDampeningAt,Xl=function(o,f){var l=f,g=Pi,b=Date.now(),w=b-l;if(w>=Pi)return o;if(wf.height,w=l.width>f.width;return!w&&!b?g:w&&b?null:{x:w?0:g.x,y:b?0:g.y}},Ys=xn(function(o){return o===0?0:o}),Mc=function(o){var f=o.dragStartTime,l=o.container,g=o.subject,b=o.center,w=o.shouldUseTimeDampening,F={top:b.y-l.top,right:l.right-b.x,bottom:l.bottom-b.y,left:b.x-l.left},R=Yo({container:l,distanceToEdges:F,dragStartTime:f,axis:Vn,shouldUseTimeDampening:w}),fe=Yo({container:l,distanceToEdges:F,dragStartTime:f,axis:Yi,shouldUseTimeDampening:w}),Ce=Ys({x:fe,y:R});if(ea(Ce,Xt))return null;var Ee=Nf({container:l,subject:g,proposedScroll:Ce});return Ee?ea(Ee,Xt)?null:Ee:null},Bf=xn(function(o){return o===0?0:o>0?1:-1}),Lc=function(){var o=function(l,g){return l<0?l:l>g?l-g:0};return function(f){var l=f.current,g=f.max,b=f.change,w=Yt(l,b),F={x:o(w.x,g.x),y:o(w.y,g.y)};return ea(F,Xt)?null:F}}(),Uc=function(f){var l=f.max,g=f.current,b=f.change,w={x:Math.max(g.x,l.x),y:Math.max(g.y,l.y)},F=Bf(b),R=Lc({max:w,current:g,change:F});return!R||F.x!==0&&R.x===0||F.y!==0&&R.y===0},zc=function(f,l){return Uc({current:f.scroll.current,max:f.scroll.max,change:l})},Zl=function(f,l){if(!zc(f,l))return null;var g=f.scroll.max,b=f.scroll.current;return Lc({current:b,max:g,change:l})},Jo=function(f,l){var g=f.frame;return g?Uc({current:g.scroll.current,max:g.scroll.max,change:l}):!1},Wc=function(f,l){var g=f.frame;return!g||!Jo(f,l)?null:Lc({current:g.scroll.current,max:g.scroll.max,change:l})},Hc=function(o){var f=o.viewport,l=o.subject,g=o.center,b=o.dragStartTime,w=o.shouldUseTimeDampening,F=Mc({dragStartTime:b,container:f.frame,subject:l,center:g,shouldUseTimeDampening:w});return F&&zc(f,F)?F:null},Kl=function(o){var f=o.droppable,l=o.subject,g=o.center,b=o.dragStartTime,w=o.shouldUseTimeDampening,F=f.frame;if(!F)return null;var R=Mc({dragStartTime:b,container:F.pageMarginBox,subject:l,center:g,shouldUseTimeDampening:w});return R&&Jo(f,R)?R:null},Mf=function(o){var f=o.state,l=o.dragStartTime,g=o.shouldUseTimeDampening,b=o.scrollWindow,w=o.scrollDroppable,F=f.current.page.borderBoxCenter,R=f.dimensions.draggables[f.critical.draggable.id],fe=R.page.marginBox;if(f.isWindowScrollAllowed){var Ce=f.viewport,Ee=Hc({dragStartTime:l,viewport:Ce,subject:fe,center:F,shouldUseTimeDampening:g});if(Ee){b(Ee);return}}var ue=Vl({center:F,destination:Un(f.impact),droppables:f.dimensions.droppables});if(ue){var he=Kl({dragStartTime:l,droppable:ue,subject:fe,center:F,shouldUseTimeDampening:g});he&&w(ue.descriptor.id,he)}},Yl=function(o){var f=o.scrollWindow,l=o.scrollDroppable,g=Bn(f),b=Bn(l),w=null,F=function(Ee){w||Sr(!1);var ue=w,he=ue.shouldUseTimeDampening,Le=ue.dragStartTime;Mf({state:Ee,scrollWindow:g,scrollDroppable:b,dragStartTime:Le,shouldUseTimeDampening:he})},R=function(Ee){_s(),w&&Sr(!1);var ue=Date.now(),he=!1,Le=function(){he=!0};Mf({state:Ee,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Le,scrollDroppable:Le}),w={dragStartTime:ue,shouldUseTimeDampening:he},Zn(),he&&F(Ee)},fe=function(){w&&(g.cancel(),b.cancel(),w=null)};return{start:R,stop:fe,scroll:F}},Gc=function(o){var f=o.move,l=o.scrollDroppable,g=o.scrollWindow,b=function(Ce,Ee){var ue=Yt(Ce.current.client.selection,Ee);f({client:ue})},w=function(Ce,Ee){if(!Jo(Ce,Ee))return Ee;var ue=Wc(Ce,Ee);if(!ue)return l(Ce.descriptor.id,Ee),null;var he=Mn(Ee,ue);l(Ce.descriptor.id,he);var Le=Mn(Ee,he);return Le},F=function(Ce,Ee,ue){if(!Ce||!zc(Ee,ue))return ue;var he=Zl(Ee,ue);if(!he)return g(ue),null;var Le=Mn(ue,he);g(Le);var ir=Mn(ue,Le);return ir},R=function(Ce){var Ee=Ce.scrollJumpRequest;if(Ee){var ue=Un(Ce.impact);ue||Sr(!1);var he=w(Ce.dimensions.droppables[ue],Ee);if(he){var Le=Ce.viewport,ir=F(Ce.isWindowScrollAllowed,Le,he);ir&&b(Ce,ir)}}};return R},Jl=function(o){var f=o.scrollDroppable,l=o.scrollWindow,g=o.move,b=Yl({scrollWindow:l,scrollDroppable:f}),w=Gc({move:g,scrollWindow:l,scrollDroppable:f}),F=function(Ce){if(Ce.phase==="DRAGGING"){if(Ce.movementMode==="FLUID"){b.scroll(Ce);return}Ce.scrollJumpRequest&&w(Ce)}},R={scroll:F,start:b.start,stop:b.stop};return R},Js="data-rbd",qs=function(){var o=Js+"-drag-handle";return{base:o,draggableId:o+"-draggable-id",contextId:o+"-context-id"}}(),qo=function(){var o=Js+"-draggable";return{base:o,contextId:o+"-context-id",id:o+"-id"}}(),Vc=function(){var o=Js+"-droppable";return{base:o,contextId:o+"-context-id",id:o+"-id"}}(),Lf={contextId:Js+"-scroll-container-context-id"},ql=function(f){return function(l){return"["+l+'="'+f+'"]'}},Do=function(f,l){return f.map(function(g){var b=g.styles[l];return b?g.selector+" { "+b+" }":""}).join(" ")},Ql="pointer-events: none;",eu=function(o){var f=ql(o),l=function(){var R=` + cursor: -webkit-grab; + cursor: grab; + `;return{selector:f(qs.contextId),styles:{always:` + -webkit-touch-callout: none; + -webkit-tap-highlight-color: rgba(0,0,0,0); + touch-action: manipulation; + `,resting:R,dragging:Ql,dropAnimating:R}}}(),g=function(){var R=` + transition: `+Zs.outOfTheWay+`; + `;return{selector:f(qo.contextId),styles:{dragging:R,dropAnimating:R,userCancel:R}}}(),b={selector:f(Vc.contextId),styles:{always:"overflow-anchor: none;"}},w={selector:"body",styles:{dragging:` + cursor: grabbing; + cursor: -webkit-grabbing; + user-select: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + overflow-anchor: none; + `}},F=[g,l,b,w];return{always:Do(F,"always"),resting:Do(F,"resting"),dragging:Do(F,"dragging"),dropAnimating:Do(F,"dropAnimating"),userCancel:Do(F,"userCancel")}},Ti=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?Q.useLayoutEffect:Q.useEffect,Qo=function(){var f=document.querySelector("head");return f||Sr(!1),f},Uf=function(f){var l=document.createElement("style");return f&&l.setAttribute("nonce",f),l.type="text/css",l};function ec(o,f){var l=dt(function(){return eu(o)},[o]),g=(0,Q.useRef)(null),b=(0,Q.useRef)(null),w=Xr((0,yt.Z)(function(ue){var he=b.current;he||Sr(!1),he.textContent=ue}),[]),F=Xr(function(ue){var he=g.current;he||Sr(!1),he.textContent=ue},[]);Ti(function(){!g.current&&!b.current||Sr(!1);var ue=Uf(f),he=Uf(f);return g.current=ue,b.current=he,ue.setAttribute(Js+"-always",o),he.setAttribute(Js+"-dynamic",o),Qo().appendChild(ue),Qo().appendChild(he),F(l.always),w(l.resting),function(){var Le=function(zr){var Gr=zr.current;Gr||Sr(!1),Qo().removeChild(Gr),zr.current=null};Le(g),Le(b)}},[f,F,w,l.always,l.resting,o]);var R=Xr(function(){return w(l.dragging)},[w,l.dragging]),fe=Xr(function(ue){if(ue==="DROP"){w(l.dropAnimating);return}w(l.userCancel)},[w,l.dropAnimating,l.userCancel]),Ce=Xr(function(){b.current&&w(l.resting)},[w,l.resting]),Ee=dt(function(){return{dragging:R,dropping:fe,resting:Ce}},[R,fe,Ce]);return Ee}var jc=function(o){return o&&o.ownerDocument?o.ownerDocument.defaultView:window};function ho(o){return o instanceof jc(o).HTMLElement}function $c(o,f){var l="["+qs.contextId+'="'+o+'"]',g=qa(document.querySelectorAll(l));if(!g.length)return null;var b=oi(g,function(w){return w.getAttribute(qs.draggableId)===f});return!b||!ho(b)?null:b}function ru(o){var f=(0,Q.useRef)({}),l=(0,Q.useRef)(null),g=(0,Q.useRef)(null),b=(0,Q.useRef)(!1),w=Xr(function(he,Le){var ir={id:he,focus:Le};return f.current[he]=ir,function(){var Gr=f.current,Zr=Gr[he];Zr!==ir&&delete Gr[he]}},[]),F=Xr(function(he){var Le=$c(o,he);Le&&Le!==document.activeElement&&Le.focus()},[o]),R=Xr(function(he,Le){l.current===he&&(l.current=Le)},[]),fe=Xr(function(){g.current||b.current&&(g.current=requestAnimationFrame(function(){g.current=null;var he=l.current;he&&F(he)}))},[F]),Ce=Xr(function(he){l.current=null;var Le=document.activeElement;Le&&Le.getAttribute(qs.draggableId)===he&&(l.current=he)},[]);Ti(function(){return b.current=!0,function(){b.current=!1;var he=g.current;he&&cancelAnimationFrame(he)}},[]);var Ee=dt(function(){return{register:w,tryRecordFocus:Ce,tryRestoreFocusRecorded:fe,tryShiftRecord:R}},[w,Ce,fe,R]);return Ee}function zf(){var o={draggables:{},droppables:{}},f=[];function l(ue){return f.push(ue),function(){var Le=f.indexOf(ue);Le!==-1&&f.splice(Le,1)}}function g(ue){f.length&&f.forEach(function(he){return he(ue)})}function b(ue){return o.draggables[ue]||null}function w(ue){var he=b(ue);return he||Sr(!1),he}var F={register:function(he){o.draggables[he.descriptor.id]=he,g({type:"ADDITION",value:he})},update:function(he,Le){var ir=o.draggables[Le.descriptor.id];ir&&ir.uniqueId===he.uniqueId&&(delete o.draggables[Le.descriptor.id],o.draggables[he.descriptor.id]=he)},unregister:function(he){var Le=he.descriptor.id,ir=b(Le);ir&&he.uniqueId===ir.uniqueId&&(delete o.draggables[Le],g({type:"REMOVAL",value:he}))},getById:w,findById:b,exists:function(he){return!!b(he)},getAllByType:function(he){return dn(o.draggables).filter(function(Le){return Le.descriptor.type===he})}};function R(ue){return o.droppables[ue]||null}function fe(ue){var he=R(ue);return he||Sr(!1),he}var Ce={register:function(he){o.droppables[he.descriptor.id]=he},unregister:function(he){var Le=R(he.descriptor.id);Le&&he.uniqueId===Le.uniqueId&&delete o.droppables[he.descriptor.id]},getById:fe,findById:R,exists:function(he){return!!R(he)},getAllByType:function(he){return dn(o.droppables).filter(function(Le){return Le.descriptor.type===he})}};function Ee(){o.draggables={},o.droppables={},f.length=0}return{draggable:F,droppable:Ce,subscribe:l,clean:Ee}}function Wf(){var o=dt(zf,[]);return(0,Q.useEffect)(function(){return function(){requestAnimationFrame(o.clean)}},[o]),o}var rc=We().createContext(null),ji=function(){var o=document.body;return o||Sr(!1),o},tu={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},nu=function(f){return"rbd-announcement-"+f};function wa(o){var f=dt(function(){return nu(o)},[o]),l=(0,Q.useRef)(null);(0,Q.useEffect)(function(){var w=document.createElement("div");return l.current=w,w.id=f,w.setAttribute("aria-live","assertive"),w.setAttribute("aria-atomic","true"),(0,N.Z)(w.style,tu),ji().appendChild(w),function(){setTimeout(function(){var fe=ji();fe.contains(w)&&fe.removeChild(w),w===l.current&&(l.current=null)})}},[f]);var g=Xr(function(b){var w=l.current;if(w){w.textContent=b;return}},[]);return g}var di=0,ka={separator:"::"};function $i(){di=0}function tc(o,f){return f===void 0&&(f=ka),dt(function(){return""+o+f.separator+di++},[f.separator,o])}function au(o){var f=o.contextId,l=o.uniqueId;return"rbd-hidden-text-"+f+"-"+l}function Hf(o){var f=o.contextId,l=o.text,g=tc("hidden-text",{separator:"-"}),b=dt(function(){return au({contextId:f,uniqueId:g})},[g,f]);return(0,Q.useEffect)(function(){var F=document.createElement("div");return F.id=b,F.textContent=l,F.style.display="none",ji().appendChild(F),function(){var fe=ji();fe.contains(F)&&fe.removeChild(F)}},[b,l]),b}var Ns=We().createContext(null),iu={react:"^16.8.5 || ^17.0.0 || ^18.0.0","react-dom":"^16.8.5 || ^17.0.0 || ^18.0.0"},su=/(\d+)\.(\d+)\.(\d+)/,Bs=function(f){var l=su.exec(f);l==null&&Sr(!1);var g=Number(l[1]),b=Number(l[2]),w=Number(l[3]);return{major:g,minor:b,patch:w,raw:f}},Io=function(f,l){return l.major>f.major?!0:l.majorf.minor?!0:l.minor=f.patch},Qs=function(o,f){var l=Bs(o),g=Bs(f);Io(l,g)},ou=` + We expect a html5 doctype: + This is to ensure consistent browser layout and measurement + + More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md +`,cu=function(o){var f=o.doctype;f&&(f.name.toLowerCase(),f.publicId)};function fd(o){}function Fo(o,f){}function fu(){Fo(function(){Qs(iu.react,We().version),cu(document)},[])}function po(o){var f=(0,Q.useRef)(o);return(0,Q.useEffect)(function(){f.current=o}),f}function Gf(){var o=null;function f(){return!!o}function l(F){return F===o}function g(F){o&&Sr(!1);var R={abandon:F};return o=R,R}function b(){o||Sr(!1),o=null}function w(){o&&(o.abandon(),b())}return{isClaimed:f,isActive:l,claim:g,release:b,tryAbandon:w}}var lu=9,uu=13,nc=27,Xc=32,us=33,eo=34,du=35,hu=36,pu=37,Vf=38,vu=39,ac=40,Oo,jf=(Oo={},Oo[uu]=!0,Oo[lu]=!0,Oo),$f=function(o){jf[o.keyCode]&&o.preventDefault()},Ro=function(){var o="visibilitychange";if(typeof document=="undefined")return o;var f=[o,"ms"+o,"webkit"+o,"moz"+o,"o"+o],l=oi(f,function(g){return"on"+g in document});return l||o}(),Xf=0,Zf=5;function hi(o,f){return Math.abs(f.x-o.x)>=Zf||Math.abs(f.y-o.y)>=Zf}var Kf={type:"IDLE"};function gu(o){var f=o.cancel,l=o.completed,g=o.getPhase,b=o.setPhase;return[{eventName:"mousemove",fn:function(F){var R=F.button,fe=F.clientX,Ce=F.clientY;if(R===Xf){var Ee={x:fe,y:Ce},ue=g();if(ue.type==="DRAGGING"){F.preventDefault(),ue.actions.move(Ee);return}ue.type!=="PENDING"&&Sr(!1);var he=ue.point;if(hi(he,Ee)){F.preventDefault();var Le=ue.actions.fluidLift(Ee);b({type:"DRAGGING",actions:Le})}}}},{eventName:"mouseup",fn:function(F){var R=g();if(R.type!=="DRAGGING"){f();return}F.preventDefault(),R.actions.drop({shouldBlockNextClick:!0}),l()}},{eventName:"mousedown",fn:function(F){g().type==="DRAGGING"&&F.preventDefault(),f()}},{eventName:"keydown",fn:function(F){var R=g();if(R.type==="PENDING"){f();return}if(F.keyCode===nc){F.preventDefault(),f();return}$f(F)}},{eventName:"resize",fn:f},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){g().type==="PENDING"&&f()}},{eventName:"webkitmouseforcedown",fn:function(F){var R=g();if(R.type==="IDLE"&&Sr(!1),R.actions.shouldRespectForcePress()){f();return}F.preventDefault()}},{eventName:Ro,fn:f}]}function ic(o){var f=(0,Q.useRef)(Kf),l=(0,Q.useRef)(ha),g=dt(function(){return{eventName:"mousedown",fn:function(ue){if(!ue.defaultPrevented&&ue.button===Xf&&!(ue.ctrlKey||ue.metaKey||ue.shiftKey||ue.altKey)){var he=o.findClosestDraggableId(ue);if(he){var Le=o.tryGetLock(he,F,{sourceEvent:ue});if(Le){ue.preventDefault();var ir={x:ue.clientX,y:ue.clientY};l.current(),Ce(Le,ir)}}}}}},[o]),b=dt(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(ue){if(!ue.defaultPrevented){var he=o.findClosestDraggableId(ue);if(he){var Le=o.findOptionsForDraggable(he);Le&&(Le.shouldRespectForcePress||o.canGetLock(he)&&ue.preventDefault())}}}}},[o]),w=Xr(function(){var ue={passive:!1,capture:!0};l.current=Qr(window,[b,g],ue)},[b,g]),F=Xr(function(){var Ee=f.current;Ee.type!=="IDLE"&&(f.current=Kf,l.current(),w())},[w]),R=Xr(function(){var Ee=f.current;F(),Ee.type==="DRAGGING"&&Ee.actions.cancel({shouldBlockNextClick:!0}),Ee.type==="PENDING"&&Ee.actions.abort()},[F]),fe=Xr(function(){var ue={capture:!0,passive:!1},he=gu({cancel:R,completed:F,getPhase:function(){return f.current},setPhase:function(ir){f.current=ir}});l.current=Qr(window,he,ue)},[R,F]),Ce=Xr(function(ue,he){f.current.type!=="IDLE"&&Sr(!1),f.current={type:"PENDING",point:he,actions:ue},fe()},[fe]);Ti(function(){return w(),function(){l.current()}},[w])}var Ms;function mu(){}var xu=(Ms={},Ms[eo]=!0,Ms[us]=!0,Ms[hu]=!0,Ms[du]=!0,Ms);function yu(o,f){function l(){f(),o.cancel()}function g(){f(),o.drop()}return[{eventName:"keydown",fn:function(w){if(w.keyCode===nc){w.preventDefault(),l();return}if(w.keyCode===Xc){w.preventDefault(),g();return}if(w.keyCode===ac){w.preventDefault(),o.moveDown();return}if(w.keyCode===Vf){w.preventDefault(),o.moveUp();return}if(w.keyCode===vu){w.preventDefault(),o.moveRight();return}if(w.keyCode===pu){w.preventDefault(),o.moveLeft();return}if(xu[w.keyCode]){w.preventDefault();return}$f(w)}},{eventName:"mousedown",fn:l},{eventName:"mouseup",fn:l},{eventName:"click",fn:l},{eventName:"touchstart",fn:l},{eventName:"resize",fn:l},{eventName:"wheel",fn:l,options:{passive:!0}},{eventName:Ro,fn:l}]}function bu(o){var f=(0,Q.useRef)(mu),l=dt(function(){return{eventName:"keydown",fn:function(w){if(w.defaultPrevented||w.keyCode!==Xc)return;var F=o.findClosestDraggableId(w);if(!F)return;var R=o.tryGetLock(F,Ee,{sourceEvent:w});if(!R)return;w.preventDefault();var fe=!0,Ce=R.snapLift();f.current();function Ee(){fe||Sr(!1),fe=!1,f.current(),g()}f.current=Qr(window,yu(Ce,Ee),{capture:!0,passive:!1})}}},[o]),g=Xr(function(){var w={passive:!1,capture:!0};f.current=Qr(window,[l],w)},[l]);Ti(function(){return g(),function(){f.current()}},[g])}var Zc={type:"IDLE"},wu=120,_u=.15;function Eu(o){var f=o.cancel,l=o.getPhase;return[{eventName:"orientationchange",fn:f},{eventName:"resize",fn:f},{eventName:"contextmenu",fn:function(b){b.preventDefault()}},{eventName:"keydown",fn:function(b){if(l().type!=="DRAGGING"){f();return}b.keyCode===nc&&b.preventDefault(),f()}},{eventName:Ro,fn:f}]}function Su(o){var f=o.cancel,l=o.completed,g=o.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(w){var F=g();if(F.type!=="DRAGGING"){f();return}F.hasMoved=!0;var R=w.touches[0],fe=R.clientX,Ce=R.clientY,Ee={x:fe,y:Ce};w.preventDefault(),F.actions.move(Ee)}},{eventName:"touchend",fn:function(w){var F=g();if(F.type!=="DRAGGING"){f();return}w.preventDefault(),F.actions.drop({shouldBlockNextClick:!0}),l()}},{eventName:"touchcancel",fn:function(w){if(g().type!=="DRAGGING"){f();return}w.preventDefault(),f()}},{eventName:"touchforcechange",fn:function(w){var F=g();F.type==="IDLE"&&Sr(!1);var R=w.touches[0];if(R){var fe=R.force>=_u;if(fe){var Ce=F.actions.shouldRespectForcePress();if(F.type==="PENDING"){Ce&&f();return}if(Ce){if(F.hasMoved){w.preventDefault();return}f();return}w.preventDefault()}}}},{eventName:Ro,fn:f}]}function Tu(o){var f=(0,Q.useRef)(Zc),l=(0,Q.useRef)(ha),g=Xr(function(){return f.current},[]),b=Xr(function(Le){f.current=Le},[]),w=dt(function(){return{eventName:"touchstart",fn:function(Le){if(!Le.defaultPrevented){var ir=o.findClosestDraggableId(Le);if(ir){var zr=o.tryGetLock(ir,R,{sourceEvent:Le});if(zr){var Gr=Le.touches[0],Zr=Gr.clientX,ut=Gr.clientY,_t={x:Zr,y:ut};l.current(),ue(zr,_t)}}}}}},[o]),F=Xr(function(){var Le={capture:!0,passive:!1};l.current=Qr(window,[w],Le)},[w]),R=Xr(function(){var he=f.current;he.type!=="IDLE"&&(he.type==="PENDING"&&clearTimeout(he.longPressTimerId),b(Zc),l.current(),F())},[F,b]),fe=Xr(function(){var he=f.current;R(),he.type==="DRAGGING"&&he.actions.cancel({shouldBlockNextClick:!0}),he.type==="PENDING"&&he.actions.abort()},[R]),Ce=Xr(function(){var Le={capture:!0,passive:!1},ir={cancel:fe,completed:R,getPhase:g},zr=Qr(window,Su(ir),Le),Gr=Qr(window,Eu(ir),Le);l.current=function(){zr(),Gr()}},[fe,g,R]),Ee=Xr(function(){var Le=g();Le.type!=="PENDING"&&Sr(!1);var ir=Le.actions.fluidLift(Le.point);b({type:"DRAGGING",actions:ir,hasMoved:!1})},[g,b]),ue=Xr(function(Le,ir){g().type!=="IDLE"&&Sr(!1);var zr=setTimeout(Ee,wu);b({type:"PENDING",point:ir,actions:Le,longPressTimerId:zr}),Ce()},[Ce,g,b,Ee]);Ti(function(){return F(),function(){l.current();var ir=g();ir.type==="PENDING"&&(clearTimeout(ir.longPressTimerId),b(Zc))}},[g,F,b]),Ti(function(){var Le=Qr(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return Le},[])}function ku(o){}var Cu={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Kc(o,f){if(f==null)return!1;var l=!!Cu[f.tagName.toLowerCase()];if(l)return!0;var g=f.getAttribute("contenteditable");return g==="true"||g===""?!0:f===o?!1:Kc(o,f.parentElement)}function Au(o,f){var l=f.target;return ho(l)?Kc(o,l):!1}var Du=function(o){return xr(o.getBoundingClientRect()).center};function Iu(o){return o instanceof jc(o).Element}var Fu=function(){var o="matches";if(typeof document=="undefined")return o;var f=[o,"msMatchesSelector","webkitMatchesSelector"],l=oi(f,function(g){return g in Element.prototype});return l||o}();function Yf(o,f){return o==null?null:o[Fu](f)?o:Yf(o.parentElement,f)}function Ou(o,f){return o.closest?o.closest(f):Yf(o,f)}function Ru(o){return"["+qs.contextId+'="'+o+'"]'}function Pu(o,f){var l=f.target;if(!Iu(l))return null;var g=Ru(o),b=Ou(l,g);return!b||!ho(b)?null:b}function Nu(o,f){var l=Pu(o,f);return l?l.getAttribute(qs.draggableId):null}function Bu(o,f){var l="["+qo.contextId+'="'+o+'"]',g=qa(document.querySelectorAll(l)),b=oi(g,function(w){return w.getAttribute(qo.id)===f});return!b||!ho(b)?null:b}function Mu(o){o.preventDefault()}function sc(o){var f=o.expected,l=o.phase,g=o.isLockActive,b=o.shouldWarn;return!(!g()||f!==l)}function Jf(o){var f=o.lockAPI,l=o.store,g=o.registry,b=o.draggableId;if(f.isClaimed())return!1;var w=g.draggable.findById(b);return!(!w||!w.options.isEnabled||!lo(l.getState(),b))}function Lu(o){var f=o.lockAPI,l=o.contextId,g=o.store,b=o.registry,w=o.draggableId,F=o.forceSensorStop,R=o.sourceEvent,fe=Jf({lockAPI:f,store:g,registry:b,draggableId:w});if(!fe)return null;var Ce=b.draggable.getById(w),Ee=Bu(l,Ce.descriptor.id);if(!Ee||R&&!Ce.options.canDragInteractiveElements&&Au(Ee,R))return null;var ue=f.claim(F||ha),he="PRE_DRAG";function Le(){return Ce.options.shouldRespectForcePress}function ir(){return f.isActive(ue)}function zr(Jt,vn){sc({expected:Jt,phase:he,isLockActive:ir,shouldWarn:!0})&&g.dispatch(vn())}var Gr=zr.bind(null,"DRAGGING");function Zr(Jt){function vn(){f.release(),he="COMPLETED"}he!=="PRE_DRAG"&&(vn(),he!=="PRE_DRAG"&&Sr(!1)),g.dispatch(nn(Jt.liftActionArgs)),he="DRAGGING";function la(yn,ua){if(ua===void 0&&(ua={shouldBlockNextClick:!1}),Jt.cleanup(),ua.shouldBlockNextClick){var La=Qr(window,[{eventName:"click",fn:Mu,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(La)}vn(),g.dispatch(Ri({reason:yn}))}return(0,N.Z)({isActive:function(){return sc({expected:"DRAGGING",phase:he,isLockActive:ir,shouldWarn:!1})},shouldRespectForcePress:Le,drop:function(ua){return la("DROP",ua)},cancel:function(ua){return la("CANCEL",ua)}},Jt.actions)}function ut(Jt){var vn=Bn(function(yn){Gr(function(){return Df({client:yn})})}),la=Zr({liftActionArgs:{id:w,clientSelection:Jt,movementMode:"FLUID"},cleanup:function(){return vn.cancel()},actions:{move:vn}});return(0,N.Z)({},la,{move:vn})}function _t(){var Jt={moveUp:function(){return Gr(ja)},moveRight:function(){return Gr(Dl)},moveDown:function(){return Gr(Al)},moveLeft:function(){return Gr(bc)}};return Zr({liftActionArgs:{id:w,clientSelection:Du(Ee),movementMode:"SNAP"},cleanup:ha,actions:Jt})}function Tt(){var Jt=sc({expected:"PRE_DRAG",phase:he,isLockActive:ir,shouldWarn:!0});Jt&&f.release()}var en={isActive:function(){return sc({expected:"PRE_DRAG",phase:he,isLockActive:ir,shouldWarn:!1})},shouldRespectForcePress:Le,fluidLift:ut,snapLift:_t,abort:Tt};return en}var qf=[ic,bu,Tu];function Uu(o){var f=o.contextId,l=o.store,g=o.registry,b=o.customSensors,w=o.enableDefaultSensors,F=[].concat(w?qf:[],b||[]),R=(0,Q.useState)(function(){return Gf()})[0],fe=Xr(function(ut,_t){ut.isDragging&&!_t.isDragging&&R.tryAbandon()},[R]);Ti(function(){var ut=l.getState(),_t=l.subscribe(function(){var Tt=l.getState();fe(ut,Tt),ut=Tt});return _t},[R,l,fe]),Ti(function(){return R.tryAbandon},[R.tryAbandon]);var Ce=Xr(function(Zr){return Jf({lockAPI:R,registry:g,store:l,draggableId:Zr})},[R,g,l]),Ee=Xr(function(Zr,ut,_t){return Lu({lockAPI:R,registry:g,contextId:f,store:l,draggableId:Zr,forceSensorStop:ut,sourceEvent:_t&&_t.sourceEvent?_t.sourceEvent:null})},[f,R,g,l]),ue=Xr(function(Zr){return Nu(f,Zr)},[f]),he=Xr(function(Zr){var ut=g.draggable.findById(Zr);return ut?ut.options:null},[g.draggable]),Le=Xr(function(){R.isClaimed()&&(R.tryAbandon(),l.getState().phase!=="IDLE"&&l.dispatch(wc()))},[R,l]),ir=Xr(R.isClaimed,[R]),zr=dt(function(){return{canGetLock:Ce,tryGetLock:Ee,findClosestDraggableId:ue,findOptionsForDraggable:he,tryReleaseLock:Le,isLockClaimed:ir}},[Ce,Ee,ue,he,Le,ir]);ku(F);for(var Gr=0;Gr0&&arguments[0]!==void 0?arguments[0]:[],ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return q.length!==ne.length||q.some((K,J)=>!Object.is(K,ne[J]))}function M(q){if(q==null||typeof q.didCatch!="boolean"||typeof q.resetErrorBoundary!="function")throw new Error("ErrorBoundaryContext not found")}function y(){const q=useContext(G);M(q);const[ne,K]=useState({error:null,hasError:!1}),J=useMemo(()=>({resetBoundary:()=>{q.resetErrorBoundary(),K({error:null,hasError:!1})},showBoundary:O=>K({error:O,hasError:!0})}),[q.resetErrorBoundary]);if(ne.hasError)throw ne.error;return J}function W(q,ne){const K=forwardRef((O,Y)=>createElement(Z,ne,createElement(q,Dh(od({},O),{ref:Y})))),J=q.displayName||q.name||"Unknown";return K.displayName="withErrorBoundary(".concat(J,")"),K}},58702:function(Vr,fr){"use strict";var V=typeof Symbol=="function"&&Symbol.for,Q=V?Symbol.for("react.element"):60103,We=V?Symbol.for("react.portal"):60106,G=V?Symbol.for("react.fragment"):60107,N=V?Symbol.for("react.strict_mode"):60108,Z=V?Symbol.for("react.profiler"):60114,D=V?Symbol.for("react.provider"):60109,M=V?Symbol.for("react.context"):60110,y=V?Symbol.for("react.async_mode"):60111,W=V?Symbol.for("react.concurrent_mode"):60111,q=V?Symbol.for("react.forward_ref"):60112,ne=V?Symbol.for("react.suspense"):60113,K=V?Symbol.for("react.suspense_list"):60120,J=V?Symbol.for("react.memo"):60115,O=V?Symbol.for("react.lazy"):60116,Y=V?Symbol.for("react.block"):60121,L=V?Symbol.for("react.fundamental"):60117,te=V?Symbol.for("react.responder"):60118,H=V?Symbol.for("react.scope"):60119;function se(be){if(typeof be=="object"&&be!==null){var ve=be.$$typeof;switch(ve){case Q:switch(be=be.type,be){case y:case W:case G:case Z:case N:case ne:return be;default:switch(be=be&&be.$$typeof,be){case M:case q:case O:case J:case D:return be;default:return ve}}case We:return ve}}}function le(be){return se(be)===W}fr.AsyncMode=y,fr.ConcurrentMode=W,fr.ContextConsumer=M,fr.ContextProvider=D,fr.Element=Q,fr.ForwardRef=q,fr.Fragment=G,fr.Lazy=O,fr.Memo=J,fr.Portal=We,fr.Profiler=Z,fr.StrictMode=N,fr.Suspense=ne,fr.isAsyncMode=function(be){return le(be)||se(be)===y},fr.isConcurrentMode=le,fr.isContextConsumer=function(be){return se(be)===M},fr.isContextProvider=function(be){return se(be)===D},fr.isElement=function(be){return typeof be=="object"&&be!==null&&be.$$typeof===Q},fr.isForwardRef=function(be){return se(be)===q},fr.isFragment=function(be){return se(be)===G},fr.isLazy=function(be){return se(be)===O},fr.isMemo=function(be){return se(be)===J},fr.isPortal=function(be){return se(be)===We},fr.isProfiler=function(be){return se(be)===Z},fr.isStrictMode=function(be){return se(be)===N},fr.isSuspense=function(be){return se(be)===ne},fr.isValidElementType=function(be){return typeof be=="string"||typeof be=="function"||be===G||be===W||be===Z||be===N||be===ne||be===K||typeof be=="object"&&be!==null&&(be.$$typeof===O||be.$$typeof===J||be.$$typeof===D||be.$$typeof===M||be.$$typeof===q||be.$$typeof===L||be.$$typeof===te||be.$$typeof===H||be.$$typeof===Y)},fr.typeOf=se},19185:function(Vr,fr,V){"use strict";Vr.exports=V(58702)},57978:function(Vr,fr){"use strict";var V;var Q=60103,We=60106,G=60107,N=60108,Z=60114,D=60109,M=60110,y=60112,W=60113,q=60120,ne=60115,K=60116,J=60121,O=60122,Y=60117,L=60129,te=60131;if(typeof Symbol=="function"&&Symbol.for){var H=Symbol.for;Q=H("react.element"),We=H("react.portal"),G=H("react.fragment"),N=H("react.strict_mode"),Z=H("react.profiler"),D=H("react.provider"),M=H("react.context"),y=H("react.forward_ref"),W=H("react.suspense"),q=H("react.suspense_list"),ne=H("react.memo"),K=H("react.lazy"),J=H("react.block"),O=H("react.server.block"),Y=H("react.fundamental"),L=H("react.debug_trace_mode"),te=H("react.legacy_hidden")}function se(T){if(typeof T=="object"&&T!==null){var x=T.$$typeof;switch(x){case Q:switch(T=T.type,T){case G:case Z:case N:case W:case q:return T;default:switch(T=T&&T.$$typeof,T){case M:case y:case K:case ne:case D:return T;default:return x}}case We:return x}}}var le=D,be=Q,ve=y,Je=G,ze=K,j=ne,z=We,we=Z,Ze=N,I=W;V=M,V=le,V=be,V=ve,V=Je,V=ze,V=j,V=z,V=we,V=Ze,V=I,V=function(){return!1},V=function(){return!1},fr.isContextConsumer=function(T){return se(T)===M},V=function(T){return se(T)===D},V=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===Q},V=function(T){return se(T)===y},V=function(T){return se(T)===G},V=function(T){return se(T)===K},V=function(T){return se(T)===ne},V=function(T){return se(T)===We},V=function(T){return se(T)===Z},V=function(T){return se(T)===N},V=function(T){return se(T)===W},V=function(T){return typeof T=="string"||typeof T=="function"||T===G||T===Z||T===L||T===N||T===W||T===q||T===te||typeof T=="object"&&T!==null&&(T.$$typeof===K||T.$$typeof===ne||T.$$typeof===D||T.$$typeof===M||T.$$typeof===y||T.$$typeof===Y||T.$$typeof===J||T[0]===O)},V=se},69272:function(Vr,fr,V){"use strict";Vr.exports=V(57978)},45106:function(Vr,fr,V){"use strict";V.d(fr,{DE:function(){return se},MT:function(){return K},md:function(){return be},qC:function(){return le}});var Q=V(50189);function We(ve){return"Minified Redux error #"+ve+"; visit https://redux.js.org/Errors?code="+ve+" for the full message or use the non-minified dev environment for full errors. "}var G=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),N=function(){return Math.random().toString(36).substring(7).split("").join(".")},Z={INIT:"@@redux/INIT"+N(),REPLACE:"@@redux/REPLACE"+N(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+N()}};function D(ve){if(typeof ve!="object"||ve===null)return!1;for(var Je=ve;Object.getPrototypeOf(Je)!==null;)Je=Object.getPrototypeOf(Je);return Object.getPrototypeOf(ve)===Je}function M(ve){if(ve===void 0)return"undefined";if(ve===null)return"null";var Je=typeof ve;switch(Je){case"boolean":case"string":case"number":case"symbol":case"function":return Je}if(Array.isArray(ve))return"array";if(q(ve))return"date";if(W(ve))return"error";var ze=y(ve);switch(ze){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return ze}return Je.slice(8,-1).toLowerCase().replace(/\s/g,"")}function y(ve){return typeof ve.constructor=="function"?ve.constructor.name:null}function W(ve){return ve instanceof Error||typeof ve.message=="string"&&ve.constructor&&typeof ve.constructor.stackTraceLimit=="number"}function q(ve){return ve instanceof Date?!0:typeof ve.toDateString=="function"&&typeof ve.getDate=="function"&&typeof ve.setDate=="function"}function ne(ve){var Je=typeof ve;return Je}function K(ve,Je,ze){var j;if(typeof Je=="function"&&typeof ze=="function"||typeof ze=="function"&&typeof arguments[3]=="function")throw new Error(We(0));if(typeof Je=="function"&&typeof ze=="undefined"&&(ze=Je,Je=void 0),typeof ze!="undefined"){if(typeof ze!="function")throw new Error(We(1));return ze(K)(ve,Je)}if(typeof ve!="function")throw new Error(We(2));var z=ve,we=Je,Ze=[],I=Ze,T=!1;function x(){I===Ze&&(I=Ze.slice())}function Me(){if(T)throw new Error(We(3));return we}function Ye(br){if(typeof br!="function")throw new Error(We(4));if(T)throw new Error(We(5));var Ve=!0;return x(),I.push(br),function(){if(Ve){if(T)throw new Error(We(6));Ve=!1,x();var Cr=I.indexOf(br);I.splice(Cr,1),Ze=null}}}function De(br){if(!D(br))throw new Error(We(7));if(typeof br.type=="undefined")throw new Error(We(8));if(T)throw new Error(We(9));try{T=!0,we=z(we,br)}finally{T=!1}for(var Ve=Ze=I,pe=0;pe0)return"Unexpected "+(Ze.length>1?"keys":"key")+" "+('"'+Ze.join('", "')+'" found in '+we+". ")+"Expected to find one of the known reducer keys instead: "+('"'+z.join('", "')+'". Unexpected keys will be ignored.')}function L(ve){Object.keys(ve).forEach(function(Je){var ze=ve[Je],j=ze(void 0,{type:Z.INIT});if(typeof j=="undefined")throw new Error(We(12));if(typeof ze(void 0,{type:Z.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(We(13))})}function te(ve){for(var Je=Object.keys(ve),ze={},j=0;j0?{done:!1,value:u}:{done:!0,value:void 0}:{done:!1,value:ne(u,h.value)}})}function J(m){if((m|=0)<0)throw new Error("invalid length");var u=this,h=this._array.length-this._index;if(this._index+m<=this._array.length)return Promise.resolve(this._array.subarray(this._index,this._index+=m));var E=new Uint8Array(m);return E.set(this._array.subarray(this._index)),function ee(){return u._source.read().then(function(Se){return Se.done?(u._array=W,u._index=0,h>0?E.subarray(0,h):null):h+Se.value.length>=m?(u._array=Se.value,u._index=m-h,E.set(Se.value.subarray(0,m-h),h),E):(E.set(Se.value,h),h+=Se.value.length,ee())})}()}function O(m){return typeof m.slice=="function"?m:new Y(typeof m.read=="function"?m:m.getReader())}function Y(m){this._source=m,this._array=W,this._index=0}Y.prototype.read=K,Y.prototype.slice=J,Y.prototype.cancel=q;function L(){return this._source.cancel()}function te(m){return/^[nf]$/i.test(m)?!1:/^[yt]$/i.test(m)?!0:null}function H(m){return new Date(+m.substring(0,4),m.substring(4,6)-1,+m.substring(6,8))}function se(m){return!(m=m.trim())||isNaN(m=+m)?null:m}function le(m){return m.trim()||null}var be={B:se,C:le,D:H,F:se,L:te,M:se,N:se};function ve(){var m=this,u=1;return m._source.slice(m._recordLength).then(function(h){return h&&h[0]!==26?{done:!1,value:m._fields.reduce(function(E,ee){return E[ee.name]=be[ee.type](m._decode(h.subarray(u,u+=ee.length))),E},{})}:{done:!0,value:void 0}})}function Je(m){return new DataView(m.buffer,m.byteOffset,m.byteLength)}function ze(m,u){return m=O(m),m.slice(32).then(function(h){var E=Je(h);return m.slice(E.getUint16(8,!0)-32).then(function(ee){return new j(m,u,E,Je(ee))})})}function j(m,u,h,E){this._source=m,this._decode=u.decode.bind(u),this._recordLength=h.getUint16(10,!0),this._fields=[];for(var ee=0;E.getUint8(ee)!==13;ee+=32){for(var Se=0;Se<11&&E.getUint8(ee+Se)!==0;++Se);this._fields.push({name:this._decode(new Uint8Array(E.buffer,E.byteOffset+ee,Se)),type:String.fromCharCode(E.getUint8(ee+11)),length:E.getUint8(ee+16)})}}var z=j.prototype;z.read=ve,z.cancel=L;function we(){return this._source.cancel()}function Ze(m){var u=40,h,E=m.getInt32(36,!0),ee=new Array(E);for(h=0;h=0}function Ye(m,u){for(var h=-1,E=u.length,ee;++h0;return!1}function De(m,u){for(var h=u[0],E=u[1],ee=-1,Se=0,oe=m.length,de=oe-1;SeE!=ar>E&&h<(ye-Re)*(E-cr)/(ar-cr)+Re&&(ee=-ee)}return ee}function Br(m,u,h){var E=h[0]-m[0],ee=h[1]-m[1];if(E===0&&ee===0)return!0;var Se=u[0]-m[0],oe=u[1]-m[1];if(Se===0&&oe===0)return!1;var de=(E*Se+ee*oe)/(Se*Se+oe*oe);return de<0||de>1?!1:de===0||de===1?!0:de*Se===E&&de*oe===ee}function Ge(m){var u=44,h,E=m.getInt32(36,!0),ee=m.getInt32(40,!0),Se=new Array(E),oe=new Array(ee);for(h=0;h-1})}var O="dnd-core/INIT_COORDS",Y="dnd-core/BEGIN_DRAG",L="dnd-core/PUBLISH_DRAG_SOURCE",te="dnd-core/HOVER",H="dnd-core/DROP",se="dnd-core/END_DRAG";function le(_e,Te){return{type:O,payload:{sourceClientOffset:Te||null,clientOffset:_e||null}}}var be={type:O,payload:{clientOffset:null,sourceClientOffset:null}};function ve(_e){return function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},Tr=er.publishSource,ht=Tr===void 0?!0:Tr,Gt=er.clientOffset,It=er.getSourceClientOffset,kn=_e.getMonitor(),Nn=_e.getRegistry();_e.dispatch(le(Gt)),Je(Ne,kn,Nn);var Xt=z(Ne,kn);if(Xt==null){_e.dispatch(be);return}var Yt=null;if(Gt){if(!It)throw new Error("getSourceClientOffset must be defined");ze(It),Yt=It(Xt)}_e.dispatch(le(Gt,Yt));var Mn=Nn.getSource(Xt),ea=Mn.beginDrag(kn,Xt);if(ea!=null){j(ea),Nn.pinSource(Xt);var pa=Nn.getSourceType(Xt);return{type:Y,payload:{itemType:pa,item:ea,sourceId:Xt,clientOffset:Gt||null,sourceClientOffset:Yt||null,isSourcePublic:!!ht}}}}}function Je(_e,Te,Ne){(0,D.k)(!Te.isDragging(),"Cannot call beginDrag while dragging."),_e.forEach(function(er){(0,D.k)(Ne.getSource(er),"Expected sourceIds to be registered.")})}function ze(_e){(0,D.k)(typeof _e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function j(_e){(0,D.k)(ne(_e),"Item must be an object.")}function z(_e,Te){for(var Ne=null,er=_e.length-1;er>=0;er--)if(Te.canDragSource(_e[er])){Ne=_e[er];break}return Ne}function we(_e,Te,Ne){return Te in _e?Object.defineProperty(_e,Te,{value:Ne,enumerable:!0,configurable:!0,writable:!0}):_e[Te]=Ne,_e}function Ze(_e){for(var Te=1;Te0&&arguments[0]!==void 0?arguments[0]:{},er=_e.getMonitor(),Tr=_e.getRegistry();T(er);var ht=Ye(er);ht.forEach(function(Gt,It){var kn=x(Gt,It,Tr,er),Nn={type:H,payload:{dropResult:Ze({},Ne,kn)}};_e.dispatch(Nn)})}}function T(_e){(0,D.k)(_e.isDragging(),"Cannot call drop while not dragging."),(0,D.k)(!_e.didDrop(),"Cannot call drop twice during one drag operation.")}function x(_e,Te,Ne,er){var Tr=Ne.getTarget(_e),ht=Tr?Tr.drop(er,_e):void 0;return Me(ht),typeof ht=="undefined"&&(ht=Te===0?{}:er.getDropResult()),ht}function Me(_e){(0,D.k)(typeof _e=="undefined"||ne(_e),"Drop result must either be an object or undefined.")}function Ye(_e){var Te=_e.getTargetIds().filter(_e.canDropOnTarget,_e);return Te.reverse(),Te}function De(_e){return function(){var Ne=_e.getMonitor(),er=_e.getRegistry();Br(Ne);var Tr=Ne.getSourceId();if(Tr!=null){var ht=er.getSource(Tr,!0);ht.endDrag(Ne,Tr),er.unpinSource()}return{type:se}}}function Br(_e){(0,D.k)(_e.isDragging(),"Cannot call endDrag while not dragging.")}function Ge(_e,Te){return Te===null?_e===null:Array.isArray(_e)?_e.some(function(Ne){return Ne===Te}):_e===Te}function br(_e){return function(Ne){var er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Tr=er.clientOffset;Ve(Ne);var ht=Ne.slice(0),Gt=_e.getMonitor(),It=_e.getRegistry(),kn=Gt.getItemType();return Cr(ht,It,kn),pe(ht,Gt,It),Er(ht,Gt,It),{type:te,payload:{targetIds:ht,clientOffset:Tr||null}}}}function Ve(_e){(0,D.k)(Array.isArray(_e),"Expected targetIds to be an array.")}function pe(_e,Te,Ne){(0,D.k)(Te.isDragging(),"Cannot call hover while not dragging."),(0,D.k)(!Te.didDrop(),"Cannot call hover after drop.");for(var er=0;er<_e.length;er++){var Tr=_e[er];(0,D.k)(_e.lastIndexOf(Tr)===er,"Expected targetIds to be unique in the passed array.");var ht=Ne.getTarget(Tr);(0,D.k)(ht,"Expected targetIds to be registered.")}}function Cr(_e,Te,Ne){for(var er=_e.length-1;er>=0;er--){var Tr=_e[er],ht=Te.getTargetType(Tr);Ge(ht,Ne)||_e.splice(er,1)}}function Er(_e,Te,Ne){_e.forEach(function(er){var Tr=Ne.getTarget(er);Tr.hover(Te,er)})}function wr(_e){return function(){var Ne=_e.getMonitor();if(Ne.isDragging())return{type:L}}}function Kr(_e){return{beginDrag:ve(_e),publishDragSource:wr(_e),hover:br(_e),drop:I(_e),endDrag:De(_e)}}var Ft=function(){function _e(Te,Ne){var er=this;N(this,_e),this.isSetUp=!1,this.handleRefCountChange=function(){var Tr=er.store.getState().refCount>0;er.backend&&(Tr&&!er.isSetUp?(er.backend.setup(),er.isSetUp=!0):!Tr&&er.isSetUp&&(er.backend.teardown(),er.isSetUp=!1))},this.store=Te,this.monitor=Ne,Te.subscribe(this.handleRefCountChange)}return Z(_e,[{key:"receiveBackend",value:function(Ne){this.backend=Ne}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var Ne=this,er=this.store.dispatch;function Tr(Gt){return function(){for(var It=arguments.length,kn=new Array(It),Nn=0;Nn0}var lr=function(){function _e(Te,Ne){N(this,_e),this.store=Te,this.registry=Ne}return Z(_e,[{key:"subscribeToStateChange",value:function(Ne){var er=this,Tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ht=Tr.handlerIds;(0,D.k)(typeof Ne=="function","listener must be a function."),(0,D.k)(typeof ht=="undefined"||Array.isArray(ht),"handlerIds, when specified, must be an array of strings.");var Gt=this.store.getState().stateId,It=function(){var Nn=er.store.getState(),Xt=Nn.stateId;try{var Yt=Xt===Gt||Xt===Gt+1&&!C(Nn.dirtyHandlerIds,ht);Yt||Ne()}finally{Gt=Xt}};return this.store.subscribe(It)}},{key:"subscribeToOffsetChange",value:function(Ne){var er=this;(0,D.k)(typeof Ne=="function","listener must be a function.");var Tr=this.store.getState().dragOffset,ht=function(){var It=er.store.getState().dragOffset;It!==Tr&&(Tr=It,Ne())};return this.store.subscribe(ht)}},{key:"canDragSource",value:function(Ne){if(!Ne)return!1;var er=this.registry.getSource(Ne);return(0,D.k)(er,"Expected to find a valid source. sourceId=".concat(Ne)),this.isDragging()?!1:er.canDrag(this,Ne)}},{key:"canDropOnTarget",value:function(Ne){if(!Ne)return!1;var er=this.registry.getTarget(Ne);if((0,D.k)(er,"Expected to find a valid target. targetId=".concat(Ne)),!this.isDragging()||this.didDrop())return!1;var Tr=this.registry.getTargetType(Ne),ht=this.getItemType();return Ge(Tr,ht)&&er.canDrop(this,Ne)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(Ne){if(!Ne)return!1;var er=this.registry.getSource(Ne,!0);if((0,D.k)(er,"Expected to find a valid source. sourceId=".concat(Ne)),!this.isDragging()||!this.isSourcePublic())return!1;var Tr=this.registry.getSourceType(Ne),ht=this.getItemType();return Tr!==ht?!1:er.isDragging(this,Ne)}},{key:"isOverTarget",value:function(Ne){var er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!Ne)return!1;var Tr=er.shallow;if(!this.isDragging())return!1;var ht=this.registry.getTargetType(Ne),Gt=this.getItemType();if(Gt&&!Ge(ht,Gt))return!1;var It=this.getTargetIds();if(!It.length)return!1;var kn=It.indexOf(Ne);return Tr?kn===It.length-1:kn>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return!!this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return lt(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return Et(this.store.getState().dragOffset)}}]),_e}();const m=typeof global!="undefined"?global:self,u=m.MutationObserver||m.WebKitMutationObserver;function h(_e){return function(){const Ne=setTimeout(Tr,0),er=setInterval(Tr,50);function Tr(){clearTimeout(Ne),clearInterval(er),_e()}}}function E(_e){let Te=1;const Ne=new u(_e),er=document.createTextNode("");return Ne.observe(er,{characterData:!0}),function(){Te=-Te,er.data=Te}}const ee=typeof u=="function"?E:h;class Se{enqueueTask(Te){const{queue:Ne,requestFlush:er}=this;Ne.length||(er(),this.flushing=!0),Ne[Ne.length]=Te}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:Te}=this;for(;this.indexthis.capacity){for(let er=0,Tr=Te.length-this.index;er{this.pendingErrors.push(Te),this.requestErrorThrow()},this.requestFlush=ee(this.flush),this.requestErrorThrow=h(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class oe{call(){try{this.task&&this.task()}catch(Te){this.onError(Te)}finally{this.task=null,this.release(this)}}constructor(Te,Ne){this.onError=Te,this.release=Ne,this.task=null}}class de{create(Te){const Ne=this.freeTasks,er=Ne.length?Ne.pop():new oe(this.onError,Tr=>Ne[Ne.length]=Tr);return er.task=Te,er}constructor(Te){this.onError=Te,this.freeTasks=[]}}const je=new Se,Re=new de(je.registerPendingError);function cr(_e){je.enqueueTask(Re.create(_e))}var B="dnd-core/ADD_SOURCE",ye="dnd-core/ADD_TARGET",ar="dnd-core/REMOVE_SOURCE",dr="dnd-core/REMOVE_TARGET";function Ur(_e){return{type:B,payload:{sourceId:_e}}}function vt(_e){return{type:ye,payload:{targetId:_e}}}function it(_e){return{type:ar,payload:{sourceId:_e}}}function ft(_e){return{type:dr,payload:{targetId:_e}}}function Wr(_e){(0,D.k)(typeof _e.canDrag=="function","Expected canDrag to be a function."),(0,D.k)(typeof _e.beginDrag=="function","Expected beginDrag to be a function."),(0,D.k)(typeof _e.endDrag=="function","Expected endDrag to be a function.")}function $r(_e){(0,D.k)(typeof _e.canDrop=="function","Expected canDrop to be a function."),(0,D.k)(typeof _e.hover=="function","Expected hover to be a function."),(0,D.k)(typeof _e.drop=="function","Expected beginDrag to be a function.")}function dt(_e,Te){if(Te&&Array.isArray(_e)){_e.forEach(function(Ne){return dt(Ne,!1)});return}(0,D.k)(typeof _e=="string"||M(_e)==="symbol",Te?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Xr;(function(_e){_e.SOURCE="SOURCE",_e.TARGET="TARGET"})(Xr||(Xr={}));var Mt=0;function rn(){return Mt++}function $e(_e){var Te=rn().toString();switch(_e){case Xr.SOURCE:return"S".concat(Te);case Xr.TARGET:return"T".concat(Te);default:throw new Error("Unknown Handler Role: ".concat(_e))}}function xr(_e){switch(_e[0]){case"S":return Xr.SOURCE;case"T":return Xr.TARGET;default:throw new Error("Cannot parse handler ID: ".concat(_e))}}function nr(_e,Te){var Ne=_e.entries(),er=!1;do{var Tr=Ne.next(),ht=Tr.done,Gt=Q(Tr.value,2),It=Gt[1];if(It===Te)return!0;er=!!ht}while(!er);return!1}var Mr=function(){function _e(Te){N(this,_e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=Te}return Z(_e,[{key:"addSource",value:function(Ne,er){dt(Ne),Wr(er);var Tr=this.addHandler(Xr.SOURCE,Ne,er);return this.store.dispatch(Ur(Tr)),Tr}},{key:"addTarget",value:function(Ne,er){dt(Ne,!0),$r(er);var Tr=this.addHandler(Xr.TARGET,Ne,er);return this.store.dispatch(vt(Tr)),Tr}},{key:"containsHandler",value:function(Ne){return nr(this.dragSources,Ne)||nr(this.dropTargets,Ne)}},{key:"getSource",value:function(Ne){var er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;(0,D.k)(this.isSourceId(Ne),"Expected a valid source ID.");var Tr=er&&Ne===this.pinnedSourceId,ht=Tr?this.pinnedSource:this.dragSources.get(Ne);return ht}},{key:"getTarget",value:function(Ne){return(0,D.k)(this.isTargetId(Ne),"Expected a valid target ID."),this.dropTargets.get(Ne)}},{key:"getSourceType",value:function(Ne){return(0,D.k)(this.isSourceId(Ne),"Expected a valid source ID."),this.types.get(Ne)}},{key:"getTargetType",value:function(Ne){return(0,D.k)(this.isTargetId(Ne),"Expected a valid target ID."),this.types.get(Ne)}},{key:"isSourceId",value:function(Ne){var er=xr(Ne);return er===Xr.SOURCE}},{key:"isTargetId",value:function(Ne){var er=xr(Ne);return er===Xr.TARGET}},{key:"removeSource",value:function(Ne){var er=this;(0,D.k)(this.getSource(Ne),"Expected an existing source."),this.store.dispatch(it(Ne)),cr(function(){er.dragSources.delete(Ne),er.types.delete(Ne)})}},{key:"removeTarget",value:function(Ne){(0,D.k)(this.getTarget(Ne),"Expected an existing target."),this.store.dispatch(ft(Ne)),this.dropTargets.delete(Ne),this.types.delete(Ne)}},{key:"pinSource",value:function(Ne){var er=this.getSource(Ne);(0,D.k)(er,"Expected an existing source."),this.pinnedSourceId=Ne,this.pinnedSource=er}},{key:"unpinSource",value:function(){(0,D.k)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(Ne,er,Tr){var ht=$e(Ne);return this.types.set(ht,er),Ne===Xr.SOURCE?this.dragSources.set(ht,Tr):Ne===Xr.TARGET&&this.dropTargets.set(ht,Tr),ht}}]),_e}(),Hr=function(Te,Ne){return Te===Ne};function Nr(_e,Te){return!_e&&!Te?!0:!_e||!Te?!1:_e.x===Te.x&&_e.y===Te.y}function qr(_e,Te){var Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hr;if(_e.length!==Te.length)return!1;for(var er=0;er<_e.length;++er)if(!Ne(_e[er],Te[er]))return!1;return!0}function At(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pt,Te=arguments.length>1?arguments[1]:void 0;switch(Te.type){case te:break;case B:case ye:case dr:case ar:return Pt;case Y:case L:case se:case H:default:return Ir}var Ne=Te.payload,er=Ne.targetIds,Tr=er===void 0?[]:er,ht=Ne.prevTargetIds,Gt=ht===void 0?[]:ht,It=K(Tr,Gt),kn=It.length>0||!qr(Tr,Gt);if(!kn)return Pt;var Nn=Gt[Gt.length-1],Xt=Tr[Tr.length-1];return Nn!==Xt&&(Nn&&It.push(Nn),Xt&&It.push(Xt)),It}function Ut(_e,Te,Ne){return Te in _e?Object.defineProperty(_e,Te,{value:Ne,enumerable:!0,configurable:!0,writable:!0}):_e[Te]=Ne,_e}function gt(_e){for(var Te=1;Te0&&arguments[0]!==void 0?arguments[0]:qt,Te=arguments.length>1?arguments[1]:void 0,Ne=Te.payload;switch(Te.type){case O:case Y:return{initialSourceClientOffset:Ne.sourceClientOffset,initialClientOffset:Ne.clientOffset,clientOffset:Ne.clientOffset};case te:return Nr(_e.clientOffset,Ne.clientOffset)?_e:gt({},_e,{clientOffset:Ne.clientOffset});case se:case H:return qt;default:return _e}}function Dn(_e,Te,Ne){return Te in _e?Object.defineProperty(_e,Te,{value:Ne,enumerable:!0,configurable:!0,writable:!0}):_e[Te]=Ne,_e}function yt(_e){for(var Te=1;Te0&&arguments[0]!==void 0?arguments[0]:Tn,Te=arguments.length>1?arguments[1]:void 0,Ne=Te.payload;switch(Te.type){case Y:return yt({},_e,{itemType:Ne.itemType,item:Ne.item,sourceId:Ne.sourceId,isSourcePublic:Ne.isSourcePublic,dropResult:null,didDrop:!1});case L:return yt({},_e,{isSourcePublic:!0});case te:return yt({},_e,{targetIds:Ne.targetIds});case dr:return _e.targetIds.indexOf(Ne.targetId)===-1?_e:yt({},_e,{targetIds:W(_e.targetIds,Ne.targetId)});case H:return yt({},_e,{dropResult:Ne.dropResult,didDrop:!0,targetIds:[]});case se:return yt({},_e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return _e}}function Pn(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Te=arguments.length>1?arguments[1]:void 0;switch(Te.type){case B:case ye:return _e+1;case ar:case dr:return _e-1;default:return _e}}function na(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return _e+1}function gn(_e,Te,Ne){return Te in _e?Object.defineProperty(_e,Te,{value:Ne,enumerable:!0,configurable:!0,writable:!0}):_e[Te]=Ne,_e}function ln(_e){for(var Te=1;Te0&&arguments[0]!==void 0?arguments[0]:{},Te=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:At(_e.dirtyHandlerIds,{type:Te.type,payload:ln({},Te.payload,{prevTargetIds:y(_e,"dragOperation.targetIds",[])})}),dragOffset:Qt(_e.dragOffset,Te),refCount:Pn(_e.refCount,Te),dragOperation:Bn(_e.dragOperation,Te),stateId:na(_e.stateId)}}function jn(_e){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},er=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Tr=Wa(er),ht=new lr(Tr,new Mr(Tr)),Gt=new Ft(Tr,ht),It=_e(Gt,Te,Ne);return Gt.receiveBackend(It),Gt}function Wa(_e){var Te=typeof window!="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION__;return(0,G.MT)($t,_e&&Te&&Te({name:"dnd-core",instanceId:"dnd-core"}))}var Da=V(87363),Ya=V(66814);function Ha(_e,Te){if(_e==null)return{};var Ne=ha(_e,Te),er,Tr;if(Object.getOwnPropertySymbols){var ht=Object.getOwnPropertySymbols(_e);for(Tr=0;Tr=0)&&Object.prototype.propertyIsEnumerable.call(_e,er)&&(Ne[er]=_e[er])}return Ne}function ha(_e,Te){if(_e==null)return{};var Ne={},er=Object.keys(_e),Tr,ht;for(ht=0;ht=0)&&(Ne[Tr]=_e[Tr]);return Ne}var Ga=0,Qr=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),ma=(0,Da.memo)(function(Te){var Ne=Te.children,er=Ha(Te,["children"]),Tr=vi(er),ht=Q(Tr,2),Gt=ht[0],It=ht[1];return(0,Da.useEffect)(function(){if(It){var kn=Sr();return++Ga,function(){--Ga===0&&(kn[Qr]=null)}}},[]),(0,We.jsx)(Ya.L.Provider,{value:Gt,children:Ne})});function vi(_e){if("manager"in _e){var Te={dragDropManager:_e.manager};return[Te,!1]}var Ne=Va(_e.backend,_e.context,_e.options,_e.debugMode),er=!_e.context;return[Ne,er]}function Va(_e){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sr(),Ne=arguments.length>2?arguments[2]:void 0,er=arguments.length>3?arguments[3]:void 0,Tr=Te;return Tr[Qr]||(Tr[Qr]={dragDropManager:jn(_e,Te,Ne,er)}),Tr[Qr]}function Sr(){return typeof global!="undefined"?global:window}},96916:function(Vr,fr,V){"use strict";V.d(fr,{J:function(){return M}});var Q=V(69024),We=V(66471),G=V(87363),N=V(21972);function Z(y,W,q){var ne=(0,G.useState)(function(){return W(y)}),K=Q(ne,2),J=K[0],O=K[1],Y=(0,G.useCallback)(function(){var L=W(y);We(J,L)||(O(L),q&&q())},[J,y,q]);return(0,N.L)(Y),[J,Y]}function D(y,W,q){var ne=Z(y,W,q),K=Q(ne,2),J=K[0],O=K[1];return(0,N.L)(function(){var L=y.getHandlerId();if(L!=null)return y.subscribeToStateChange(O,{handlerIds:[L]})},[y,O]),J}function M(y,W,q){return D(W,y||function(){return{}},function(){return q.reconnect()})}},6304:function(Vr,fr,V){"use strict";V.d(fr,{c:function(){return we}});var Q=V(47552),We=V(96916),G=V(43977),N=V(87363);function Z(Ze){return(0,N.useMemo)(function(){return Ze.hooks.dragSource()},[Ze])}function D(Ze){return(0,N.useMemo)(function(){return Ze.hooks.dragPreview()},[Ze])}var M=V(74245),y=V(14002),W=V(70006),q=V(56846),ne=V(22517),K=function(){function Ze(I){var T=this;M(this,Ze),this.hooks=(0,ne.p)({dragSource:function(Me,Ye){T.clearDragSource(),T.dragSourceOptions=Ye||null,(0,q.d)(Me)?T.dragSourceRef=Me:T.dragSourceNode=Me,T.reconnectDragSource()},dragPreview:function(Me,Ye){T.clearDragPreview(),T.dragPreviewOptions=Ye||null,(0,q.d)(Me)?T.dragPreviewRef=Me:T.dragPreviewNode=Me,T.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=I}return y(Ze,[{key:"receiveHandlerId",value:function(T){this.handlerId!==T&&(this.handlerId=T,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(T){this.dragSourceOptionsInternal=T}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(T){this.dragPreviewOptionsInternal=T}},{key:"reconnect",value:function(){var T=this.reconnectDragSource();this.reconnectDragPreview(T)}},{key:"reconnectDragSource",value:function(){var T=this.dragSource,x=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return x&&this.disconnectDragSource(),this.handlerId?T?(x&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=T,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,T,this.dragSourceOptions)),x):(this.lastConnectedDragSource=T,x):x}},{key:"reconnectDragPreview",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,x=this.dragPreview,Me=T||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(Me&&this.disconnectDragPreview(),!!this.handlerId){if(!x){this.lastConnectedDragPreview=x;return}Me&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=x,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,x,this.dragPreviewOptions))}}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!(0,W.w)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!(0,W.w)(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}]),Ze}(),J=V(63302),O=V(21972);function Y(Ze,I){var T=(0,J.N)(),x=(0,N.useMemo)(function(){return new K(T.getBackend())},[T]);return(0,O.L)(function(){return x.dragSourceOptions=Ze||null,x.reconnect(),function(){return x.disconnectDragSource()}},[x,Ze]),(0,O.L)(function(){return x.dragPreviewOptions=I||null,x.reconnect(),function(){return x.disconnectDragPreview()}},[x,I]),x}var L=!1,te=!1,H=function(){function Ze(I){M(this,Ze),this.sourceId=null,this.internalMonitor=I.getMonitor()}return y(Ze,[{key:"receiveHandlerId",value:function(T){this.sourceId=T}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){(0,Q.k)(!L,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return L=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{L=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;(0,Q.k)(!te,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return te=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{te=!1}}},{key:"subscribeToStateChange",value:function(T,x){return this.internalMonitor.subscribeToStateChange(T,x)}},{key:"isDraggingSource",value:function(T){return this.internalMonitor.isDraggingSource(T)}},{key:"isOverTarget",value:function(T,x){return this.internalMonitor.isOverTarget(T,x)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(T){return this.internalMonitor.subscribeToOffsetChange(T)}},{key:"canDragSource",value:function(T){return this.internalMonitor.canDragSource(T)}},{key:"canDropOnTarget",value:function(T){return this.internalMonitor.canDropOnTarget(T)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),Ze}();function se(){var Ze=(0,J.N)();return(0,N.useMemo)(function(){return new H(Ze)},[Ze])}var le=V(69024),be=V(22908),ve=V(58335),Je=function(){function Ze(I,T,x){M(this,Ze),this.spec=I,this.monitor=T,this.connector=x}return y(Ze,[{key:"beginDrag",value:function(){var T=this.spec,x=this.monitor,Me=null;return ve(T.item)==="object"?Me=T.item:typeof T.item=="function"?Me=T.item(x):Me={},Me!=null?Me:null}},{key:"canDrag",value:function(){var T=this.spec,x=this.monitor;return typeof T.canDrag=="boolean"?T.canDrag:typeof T.canDrag=="function"?T.canDrag(x):!0}},{key:"isDragging",value:function(T,x){var Me=this.spec,Ye=this.monitor,De=Me.isDragging;return De?De(Ye):x===T.getSourceId()}},{key:"endDrag",value:function(){var T=this.spec,x=this.monitor,Me=this.connector,Ye=T.end;Ye&&Ye(x.getItem(),x),Me.reconnect()}}]),Ze}();function ze(Ze,I,T){var x=(0,N.useMemo)(function(){return new Je(Ze,I,T)},[I,T]);return(0,N.useEffect)(function(){x.spec=Ze},[Ze]),x}function j(Ze){return(0,N.useMemo)(function(){var I=Ze.type;return(0,Q.k)(I!=null,"spec.type must be defined"),I},[Ze])}function z(Ze,I,T){var x=(0,J.N)(),Me=ze(Ze,I,T),Ye=j(Ze);(0,O.L)(function(){if(Ye!=null){var Br=(0,be.w)(Ye,Me,x),Ge=le(Br,2),br=Ge[0],Ve=Ge[1];return I.receiveHandlerId(br),T.receiveHandlerId(br),Ve}},[x,I,T,Me,Ye])}function we(Ze,I){var T=(0,G.w)(Ze,I);(0,Q.k)(!T.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var x=se(),Me=Y(T.options,T.previewOptions);return z(T,x,Me),[(0,We.J)(T.collect,x,Me),Z(Me),D(Me)]}},63302:function(Vr,fr,V){"use strict";V.d(fr,{N:function(){return N}});var Q=V(47552),We=V(87363),G=V(66814);function N(){var Z=(0,We.useContext)(G.L),D=Z.dragDropManager;return(0,Q.k)(D!=null,"Expected drag drop context"),D}},30711:function(Vr,fr,V){"use strict";V.d(fr,{L:function(){return ze}});var Q=V(96916),We=V(43977),G=V(87363);function N(j){return(0,G.useMemo)(function(){return j.hooks.dropTarget()},[j])}var Z=V(74245),D=V(14002),M=V(70006),y=V(56846),W=V(22517),q=function(){function j(z){var we=this;Z(this,j),this.hooks=(0,W.p)({dropTarget:function(I,T){we.clearDropTarget(),we.dropTargetOptions=T,(0,y.d)(I)?we.dropTargetRef=I:we.dropTargetNode=I,we.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=z}return D(j,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var we=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();we&&this.disconnectDropTarget();var Ze=this.dropTarget;if(this.handlerId){if(!Ze){this.lastConnectedDropTarget=Ze;return}we&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=Ze,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,Ze,this.dropTargetOptions))}}},{key:"receiveHandlerId",value:function(we){we!==this.handlerId&&(this.handlerId=we,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(we){this.dropTargetOptionsInternal=we}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!(0,M.w)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}]),j}(),ne=V(63302),K=V(21972);function J(j){var z=(0,ne.N)(),we=(0,G.useMemo)(function(){return new q(z.getBackend())},[z]);return(0,K.L)(function(){return we.dropTargetOptions=j||null,we.reconnect(),function(){return we.disconnectDropTarget()}},[j]),we}var O=V(47552),Y=!1,L=function(){function j(z){Z(this,j),this.targetId=null,this.internalMonitor=z.getMonitor()}return D(j,[{key:"receiveHandlerId",value:function(we){this.targetId=we}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(we,Ze){return this.internalMonitor.subscribeToStateChange(we,Ze)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;(0,O.k)(!Y,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Y=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Y=!1}}},{key:"isOver",value:function(we){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,we):!1}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),j}();function te(){var j=(0,ne.N)();return(0,G.useMemo)(function(){return new L(j)},[j])}var H=V(69024),se=V(22908);function le(j){var z=j.accept;return(0,G.useMemo)(function(){return(0,O.k)(j.accept!=null,"accept must be defined"),Array.isArray(z)?z:[z]},[z])}var be=function(){function j(z,we){Z(this,j),this.spec=z,this.monitor=we}return D(j,[{key:"canDrop",value:function(){var we=this.spec,Ze=this.monitor;return we.canDrop?we.canDrop(Ze.getItem(),Ze):!0}},{key:"hover",value:function(){var we=this.spec,Ze=this.monitor;we.hover&&we.hover(Ze.getItem(),Ze)}},{key:"drop",value:function(){var we=this.spec,Ze=this.monitor;if(we.drop)return we.drop(Ze.getItem(),Ze)}}]),j}();function ve(j,z){var we=(0,G.useMemo)(function(){return new be(j,z)},[z]);return(0,G.useEffect)(function(){we.spec=j},[j]),we}function Je(j,z,we){var Ze=(0,ne.N)(),I=ve(j,z),T=le(j);(0,K.L)(function(){var Me=(0,se.n)(T,I,Ze),Ye=H(Me,2),De=Ye[0],Br=Ye[1];return z.receiveHandlerId(De),we.receiveHandlerId(De),Br},[Ze,z,I,we,T.map(function(x){return x.toString()}).join("|")])}function ze(j,z){var we=(0,We.w)(j,z),Ze=te(),I=J(we.options);return Je(we,Ze,I),[(0,Q.J)(we.collect,Ze,I),N(I)]}},21972:function(Vr,fr,V){"use strict";V.d(fr,{L:function(){return We}});var Q=V(87363),We=typeof window!="undefined"?Q.useLayoutEffect:Q.useEffect},43977:function(Vr,fr,V){"use strict";V.d(fr,{w:function(){return G}});var Q=V(80445),We=V(87363);function G(N,Z){var D=Q(Z||[]);return Z==null&&typeof N!="function"&&D.push(N),(0,We.useMemo)(function(){return typeof N=="function"?N():N},D)}},56846:function(Vr,fr,V){"use strict";V.d(fr,{d:function(){return We}});var Q=V(58335);function We(G){return G!==null&&Q(G)==="object"&&Object.prototype.hasOwnProperty.call(G,"current")}},22908:function(Vr,fr,V){"use strict";V.d(fr,{n:function(){return Q},w:function(){return We}});function Q(G,N,Z){var D=Z.getRegistry(),M=D.addTarget(G,N);return[M,function(){return D.removeTarget(M)}]}function We(G,N,Z){var D=Z.getRegistry(),M=D.addSource(G,N);return[M,function(){return D.removeSource(M)}]}},22517:function(Vr,fr,V){"use strict";V.d(fr,{p:function(){return Z}});var Q=V(47552),We=V(87363);function G(y){if(typeof y.type!="string"){var W=y.type.displayName||y.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(W," into a
, or turn it into a ")+"drag source or a drop target itself.")}}function N(y){return function(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!(0,We.isValidElement)(W)){var ne=W;return y(ne,q),ne}var K=W;G(K);var J=q?function(O){return y(O,q)}:y;return M(K,J)}}function Z(y){var W={};return Object.keys(y).forEach(function(q){var ne=y[q];if(q.endsWith("Ref"))W[q]=y[q];else{var K=N(ne);W[q]=function(){return K}}}),W}function D(y,W){typeof y=="function"?y(W):y.current=W}function M(y,W){var q=y.ref;return(0,Q.k)(typeof q!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),q?(0,We.cloneElement)(y,{ref:function(K){D(q,K),D(W,K)}}):(0,We.cloneElement)(y,{ref:W})}},5188:function(Vr,fr,V){"use strict";V.d(fr,{Uy:function(){return h},vV:function(){return ve}});var Q=Symbol.for("immer-nothing"),We=Symbol.for("immer-draftable"),G=Symbol.for("immer-state"),N=[];function Z(B,...ye){throw new Error(`[Immer] minified error nr: ${B}. Full error at: https://bit.ly/3cXEKWf`)}var D=Object.getPrototypeOf;function M(B){return!!B&&!!B[G]}function y(B){var ye;return B?q(B)||Array.isArray(B)||!!B[We]||!!((ye=B.constructor)!=null&&ye[We])||H(B)||se(B):!1}var W=Object.prototype.constructor.toString();function q(B){if(!B||typeof B!="object")return!1;const ye=D(B);if(ye===null)return!0;const ar=Object.hasOwnProperty.call(ye,"constructor")&&ye.constructor;return ar===Object?!0:typeof ar=="function"&&Function.toString.call(ar)===W}function ne(B){return M(B)||Z(15,B),B[G].base_}function K(B,ye){J(B)===0?Reflect.ownKeys(B).forEach(ar=>{ye(ar,B[ar],B)}):B.forEach((ar,dr)=>ye(dr,ar,B))}function J(B){const ye=B[G];return ye?ye.type_:Array.isArray(B)?1:H(B)?2:se(B)?3:0}function O(B,ye){return J(B)===2?B.has(ye):Object.prototype.hasOwnProperty.call(B,ye)}function Y(B,ye){return J(B)===2?B.get(ye):B[ye]}function L(B,ye,ar){const dr=J(B);dr===2?B.set(ye,ar):dr===3?B.add(ar):B[ye]=ar}function te(B,ye){return B===ye?B!==0||1/B===1/ye:B!==B&&ye!==ye}function H(B){return B instanceof Map}function se(B){return B instanceof Set}function le(B){return B.copy_||B.base_}function be(B,ye){if(H(B))return new Map(B);if(se(B))return new Set(B);if(Array.isArray(B))return Array.prototype.slice.call(B);const ar=q(B);if(ye===!0||ye==="class_only"&&!ar){const dr=Object.getOwnPropertyDescriptors(B);delete dr[G];let Ur=Reflect.ownKeys(dr);for(let vt=0;vt1&&(B.set=B.add=B.clear=B.delete=Je),Object.freeze(B),ye&&Object.entries(B).forEach(([ar,dr])=>ve(dr,!0))),B}function Je(){Z(2)}function ze(B){return Object.isFrozen(B)}var j={};function z(B){const ye=j[B];return ye||Z(0,B),ye}function we(B,ye){j[B]||(j[B]=ye)}var Ze;function I(){return Ze}function T(B,ye){return{drafts_:[],parent_:B,immer_:ye,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function x(B,ye){ye&&(z("Patches"),B.patches_=[],B.inversePatches_=[],B.patchListener_=ye)}function Me(B){Ye(B),B.drafts_.forEach(Br),B.drafts_=null}function Ye(B){B===Ze&&(Ze=B.parent_)}function De(B){return Ze=T(Ze,B)}function Br(B){const ye=B[G];ye.type_===0||ye.type_===1?ye.revoke_():ye.revoked_=!0}function Ge(B,ye){ye.unfinalizedDrafts_=ye.drafts_.length;const ar=ye.drafts_[0];return B!==void 0&&B!==ar?(ar[G].modified_&&(Me(ye),Z(4)),y(B)&&(B=br(ye,B),ye.parent_||pe(ye,B)),ye.patches_&&z("Patches").generateReplacementPatches_(ar[G].base_,B,ye.patches_,ye.inversePatches_)):B=br(ye,ar,[]),Me(ye),ye.patches_&&ye.patchListener_(ye.patches_,ye.inversePatches_),B!==Q?B:void 0}function br(B,ye,ar){if(ze(ye))return ye;const dr=ye[G];if(!dr)return K(ye,(Ur,vt)=>Ve(B,dr,ye,Ur,vt,ar)),ye;if(dr.scope_!==B)return ye;if(!dr.modified_)return pe(B,dr.base_,!0),dr.base_;if(!dr.finalized_){dr.finalized_=!0,dr.scope_.unfinalizedDrafts_--;const Ur=dr.copy_;let vt=Ur,it=!1;dr.type_===3&&(vt=new Set(Ur),Ur.clear(),it=!0),K(vt,(ft,Wr)=>Ve(B,dr,Ur,ft,Wr,ar,it)),pe(B,Ur,!1),ar&&B.patches_&&z("Patches").generatePatches_(dr,ar,B.patches_,B.inversePatches_)}return dr.copy_}function Ve(B,ye,ar,dr,Ur,vt,it){if(M(Ur)){const ft=vt&&ye&&ye.type_!==3&&!O(ye.assigned_,dr)?vt.concat(dr):void 0,Wr=br(B,Ur,ft);if(L(ar,dr,Wr),M(Wr))B.canAutoFreeze_=!1;else return}else it&&ar.add(Ur);if(y(Ur)&&!ze(Ur)){if(!B.immer_.autoFreeze_&&B.unfinalizedDrafts_<1)return;br(B,Ur),(!ye||!ye.scope_.parent_)&&typeof dr!="symbol"&&Object.prototype.propertyIsEnumerable.call(ar,dr)&&pe(B,Ur)}}function pe(B,ye,ar=!1){!B.parent_&&B.immer_.autoFreeze_&&B.canAutoFreeze_&&ve(ye,ar)}function Cr(B,ye){const ar=Array.isArray(B),dr={type_:ar?1:0,scope_:ye?ye.scope_:I(),modified_:!1,finalized_:!1,assigned_:{},parent_:ye,base_:B,draft_:null,copy_:null,revoke_:null,isManual_:!1};let Ur=dr,vt=Er;ar&&(Ur=[dr],vt=wr);const{revoke:it,proxy:ft}=Proxy.revocable(Ur,vt);return dr.draft_=ft,dr.revoke_=it,ft}var Er={get(B,ye){if(ye===G)return B;const ar=le(B);if(!O(ar,ye))return Ft(B,ar,ye);const dr=ar[ye];return B.finalized_||!y(dr)?dr:dr===Kr(B.base_,ye)?(lt(B),B.copy_[ye]=Pt(dr,B)):dr},has(B,ye){return ye in le(B)},ownKeys(B){return Reflect.ownKeys(le(B))},set(B,ye,ar){const dr=Jr(le(B),ye);if(dr!=null&&dr.set)return dr.set.call(B.draft_,ar),!0;if(!B.modified_){const Ur=Kr(le(B),ye),vt=Ur==null?void 0:Ur[G];if(vt&&vt.base_===ar)return B.copy_[ye]=ar,B.assigned_[ye]=!1,!0;if(te(ar,Ur)&&(ar!==void 0||O(B.base_,ye)))return!0;lt(B),Dr(B)}return B.copy_[ye]===ar&&(ar!==void 0||ye in B.copy_)||Number.isNaN(ar)&&Number.isNaN(B.copy_[ye])||(B.copy_[ye]=ar,B.assigned_[ye]=!0),!0},deleteProperty(B,ye){return Kr(B.base_,ye)!==void 0||ye in B.base_?(B.assigned_[ye]=!1,lt(B),Dr(B)):delete B.assigned_[ye],B.copy_&&delete B.copy_[ye],!0},getOwnPropertyDescriptor(B,ye){const ar=le(B),dr=Reflect.getOwnPropertyDescriptor(ar,ye);return dr&&{writable:!0,configurable:B.type_!==1||ye!=="length",enumerable:dr.enumerable,value:ar[ye]}},defineProperty(){Z(11)},getPrototypeOf(B){return D(B.base_)},setPrototypeOf(){Z(12)}},wr={};K(Er,(B,ye)=>{wr[B]=function(){return arguments[0]=arguments[0][0],ye.apply(this,arguments)}}),wr.deleteProperty=function(B,ye){return wr.set.call(this,B,ye,void 0)},wr.set=function(B,ye,ar){return Er.set.call(this,B[0],ye,ar,B[0])};function Kr(B,ye){const ar=B[G];return(ar?le(ar):B)[ye]}function Ft(B,ye,ar){var Ur;const dr=Jr(ye,ar);return dr?"value"in dr?dr.value:(Ur=dr.get)==null?void 0:Ur.call(B.draft_):void 0}function Jr(B,ye){if(!(ye in B))return;let ar=D(B);for(;ar;){const dr=Object.getOwnPropertyDescriptor(ar,ye);if(dr)return dr;ar=D(ar)}}function Dr(B){B.modified_||(B.modified_=!0,B.parent_&&Dr(B.parent_))}function lt(B){B.copy_||(B.copy_=be(B.base_,B.scope_.immer_.useStrictShallowCopy_))}var Et=class{constructor(B){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(ye,ar,dr)=>{if(typeof ye=="function"&&typeof ar!="function"){const vt=ar;ar=ye;const it=this;return function(Wr=vt,...$r){return it.produce(Wr,dt=>ar.call(this,dt,...$r))}}typeof ar!="function"&&Z(6),dr!==void 0&&typeof dr!="function"&&Z(7);let Ur;if(y(ye)){const vt=De(this),it=Pt(ye,void 0);let ft=!0;try{Ur=ar(it),ft=!1}finally{ft?Me(vt):Ye(vt)}return x(vt,dr),Ge(Ur,vt)}else if(!ye||typeof ye!="object"){if(Ur=ar(ye),Ur===void 0&&(Ur=ye),Ur===Q&&(Ur=void 0),this.autoFreeze_&&ve(Ur,!0),dr){const vt=[],it=[];z("Patches").generateReplacementPatches_(ye,Ur,vt,it),dr(vt,it)}return Ur}else Z(1,ye)},this.produceWithPatches=(ye,ar)=>{if(typeof ye=="function")return(it,...ft)=>this.produceWithPatches(it,Wr=>ye(Wr,...ft));let dr,Ur;return[this.produce(ye,ar,(it,ft)=>{dr=it,Ur=ft}),dr,Ur]},typeof(B==null?void 0:B.autoFreeze)=="boolean"&&this.setAutoFreeze(B.autoFreeze),typeof(B==null?void 0:B.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(B.useStrictShallowCopy)}createDraft(B){y(B)||Z(8),M(B)&&(B=Ir(B));const ye=De(this),ar=Pt(B,void 0);return ar[G].isManual_=!0,Ye(ye),ar}finishDraft(B,ye){const ar=B&&B[G];(!ar||!ar.isManual_)&&Z(9);const{scope_:dr}=ar;return x(dr,ye),Ge(void 0,dr)}setAutoFreeze(B){this.autoFreeze_=B}setUseStrictShallowCopy(B){this.useStrictShallowCopy_=B}applyPatches(B,ye){let ar;for(ar=ye.length-1;ar>=0;ar--){const Ur=ye[ar];if(Ur.path.length===0&&Ur.op==="replace"){B=Ur.value;break}}ar>-1&&(ye=ye.slice(ar+1));const dr=z("Patches").applyPatches_;return M(B)?dr(B,ye):this.produce(B,Ur=>dr(Ur,ye))}};function Pt(B,ye){const ar=H(B)?z("MapSet").proxyMap_(B,ye):se(B)?z("MapSet").proxySet_(B,ye):Cr(B,ye);return(ye?ye.scope_:I()).drafts_.push(ar),ar}function Ir(B){return M(B)||Z(10,B),C(B)}function C(B){if(!y(B)||ze(B))return B;const ye=B[G];let ar;if(ye){if(!ye.modified_)return ye.base_;ye.finalized_=!0,ar=be(B,ye.scope_.immer_.useStrictShallowCopy_)}else ar=be(B,!0);return K(ar,(dr,Ur)=>{L(ar,dr,C(Ur))}),ye&&(ye.finalized_=!1),ar}function lr(){const ye="replace",ar="add",dr="remove";function Ur(Mt,rn,$e,xr){switch(Mt.type_){case 0:case 2:return it(Mt,rn,$e,xr);case 1:return vt(Mt,rn,$e,xr);case 3:return ft(Mt,rn,$e,xr)}}function vt(Mt,rn,$e,xr){let{base_:nr,assigned_:Mr}=Mt,Hr=Mt.copy_;Hr.length{const qr=Y(nr,Hr),At=Y(Mr,Hr),Ut=Nr?O(nr,Hr)?ye:ar:dr;if(qr===At&&Ut===ye)return;const gt=rn.concat(Hr);$e.push(Ut===dr?{op:Ut,path:gt}:{op:Ut,path:gt,value:At}),xr.push(Ut===ar?{op:dr,path:gt}:Ut===dr?{op:ar,path:gt,value:Xr(qr)}:{op:ye,path:gt,value:Xr(qr)})})}function ft(Mt,rn,$e,xr){let{base_:nr,copy_:Mr}=Mt,Hr=0;nr.forEach(Nr=>{if(!Mr.has(Nr)){const qr=rn.concat([Hr]);$e.push({op:dr,path:qr,value:Nr}),xr.unshift({op:ar,path:qr,value:Nr})}Hr++}),Hr=0,Mr.forEach(Nr=>{if(!nr.has(Nr)){const qr=rn.concat([Hr]);$e.push({op:ar,path:qr,value:Nr}),xr.unshift({op:dr,path:qr,value:Nr})}Hr++})}function Wr(Mt,rn,$e,xr){$e.push({op:ye,path:[],value:rn===Q?void 0:rn}),xr.push({op:ye,path:[],value:Mt})}function $r(Mt,rn){return rn.forEach($e=>{const{path:xr,op:nr}=$e;let Mr=Mt;for(let At=0;At[$e,dt(xr)]));if(se(Mt))return new Set(Array.from(Mt).map(dt));const rn=Object.create(D(Mt));for(const $e in Mt)rn[$e]=dt(Mt[$e]);return O(Mt,We)&&(rn[We]=Mt[We]),rn}function Xr(Mt){return M(Mt)?dt(Mt):Mt}we("Patches",{applyPatches_:$r,generatePatches_:Ur,generateReplacementPatches_:Wr})}function m(){class B extends Map{constructor(Wr,$r){super(),this[G]={type_:2,parent_:$r,scope_:$r?$r.scope_:I(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:Wr,draft_:this,isManual_:!1,revoked_:!1}}get size(){return le(this[G]).size}has(Wr){return le(this[G]).has(Wr)}set(Wr,$r){const dt=this[G];return it(dt),(!le(dt).has(Wr)||le(dt).get(Wr)!==$r)&&(ar(dt),Dr(dt),dt.assigned_.set(Wr,!0),dt.copy_.set(Wr,$r),dt.assigned_.set(Wr,!0)),this}delete(Wr){if(!this.has(Wr))return!1;const $r=this[G];return it($r),ar($r),Dr($r),$r.base_.has(Wr)?$r.assigned_.set(Wr,!1):$r.assigned_.delete(Wr),$r.copy_.delete(Wr),!0}clear(){const Wr=this[G];it(Wr),le(Wr).size&&(ar(Wr),Dr(Wr),Wr.assigned_=new Map,K(Wr.base_,$r=>{Wr.assigned_.set($r,!1)}),Wr.copy_.clear())}forEach(Wr,$r){const dt=this[G];le(dt).forEach((Xr,Mt,rn)=>{Wr.call($r,this.get(Mt),Mt,this)})}get(Wr){const $r=this[G];it($r);const dt=le($r).get(Wr);if($r.finalized_||!y(dt)||dt!==$r.base_.get(Wr))return dt;const Xr=Pt(dt,$r);return ar($r),$r.copy_.set(Wr,Xr),Xr}keys(){return le(this[G]).keys()}values(){const Wr=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const $r=Wr.next();return $r.done?$r:{done:!1,value:this.get($r.value)}}}}entries(){const Wr=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const $r=Wr.next();if($r.done)return $r;const dt=this.get($r.value);return{done:!1,value:[$r.value,dt]}}}}[Symbol.iterator](){return this.entries()}}function ye(ft,Wr){return new B(ft,Wr)}function ar(ft){ft.copy_||(ft.assigned_=new Map,ft.copy_=new Map(ft.base_))}class dr extends Set{constructor(Wr,$r){super(),this[G]={type_:3,parent_:$r,scope_:$r?$r.scope_:I(),modified_:!1,finalized_:!1,copy_:void 0,base_:Wr,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return le(this[G]).size}has(Wr){const $r=this[G];return it($r),$r.copy_?!!($r.copy_.has(Wr)||$r.drafts_.has(Wr)&&$r.copy_.has($r.drafts_.get(Wr))):$r.base_.has(Wr)}add(Wr){const $r=this[G];return it($r),this.has(Wr)||(vt($r),Dr($r),$r.copy_.add(Wr)),this}delete(Wr){if(!this.has(Wr))return!1;const $r=this[G];return it($r),vt($r),Dr($r),$r.copy_.delete(Wr)||($r.drafts_.has(Wr)?$r.copy_.delete($r.drafts_.get(Wr)):!1)}clear(){const Wr=this[G];it(Wr),le(Wr).size&&(vt(Wr),Dr(Wr),Wr.copy_.clear())}values(){const Wr=this[G];return it(Wr),vt(Wr),Wr.copy_.values()}entries(){const Wr=this[G];return it(Wr),vt(Wr),Wr.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(Wr,$r){const dt=this.values();let Xr=dt.next();for(;!Xr.done;)Wr.call($r,Xr.value,Xr.value,this),Xr=dt.next()}}function Ur(ft,Wr){return new dr(ft,Wr)}function vt(ft){ft.copy_||(ft.copy_=new Set,ft.base_.forEach(Wr=>{if(y(Wr)){const $r=Pt(Wr,ft);ft.drafts_.set(Wr,$r),ft.copy_.add($r)}else ft.copy_.add(Wr)}))}function it(ft){ft.revoked_&&Z(3,JSON.stringify(le(ft)))}we("MapSet",{proxyMap_:ye,proxySet_:Ur})}var u=new Et,h=u.produce,E=u.produceWithPatches.bind(u),ee=u.setAutoFreeze.bind(u),Se=u.setUseStrictShallowCopy.bind(u),oe=u.applyPatches.bind(u),de=u.createDraft.bind(u),je=u.finishDraft.bind(u);function Re(B){return B}function cr(B){return B}},51953:function(Vr,fr,V){"use strict";V.d(fr,{PD:function(){return Ze}});var Q={};V.r(Q),V.d(Q,{FILE:function(){return M},HTML:function(){return q},TEXT:function(){return W},URL:function(){return y}});function We(I){let T=null;return()=>(T==null&&(T=I()),T)}function G(I,T){return I.filter(x=>x!==T)}function N(I,T){const x=new Set,Me=De=>x.add(De);I.forEach(Me),T.forEach(Me);const Ye=[];return x.forEach(De=>Ye.push(De)),Ye}class Z{enter(T){const x=this.entered.length,Me=Ye=>this.isNodeInDocument(Ye)&&(!Ye.contains||Ye.contains(T));return this.entered=N(this.entered.filter(Me),[T]),x===0&&this.entered.length>0}leave(T){const x=this.entered.length;return this.entered=G(this.entered.filter(this.isNodeInDocument),T),x>0&&this.entered.length===0}reset(){this.entered=[]}constructor(T){this.entered=[],this.isNodeInDocument=T}}class D{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(T=>{Object.defineProperty(this.item,T,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${T}" until the drop event.`),null}})})}loadDataTransfer(T){if(T){const x={};Object.keys(this.config.exposeProperties).forEach(Me=>{const Ye=this.config.exposeProperties[Me];Ye!=null&&(x[Me]={value:Ye(T,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,x)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(T,x){return x===T.getSourceId()}endDrag(){}constructor(T){this.config=T,this.item={},this.initializeExposedProperties()}}const M="__NATIVE_FILE__",y="__NATIVE_URL__",W="__NATIVE_TEXT__",q="__NATIVE_HTML__";function ne(I,T,x){const Me=T.reduce((Ye,De)=>Ye||I.getData(De),"");return Me!=null?Me:x}const K={[M]:{exposeProperties:{files:I=>Array.prototype.slice.call(I.files),items:I=>I.items,dataTransfer:I=>I},matchesTypes:["Files"]},[q]:{exposeProperties:{html:(I,T)=>ne(I,T,""),dataTransfer:I=>I},matchesTypes:["Html","text/html"]},[y]:{exposeProperties:{urls:(I,T)=>ne(I,T,"").split(` +`),dataTransfer:I=>I},matchesTypes:["Url","text/uri-list"]},[W]:{exposeProperties:{text:(I,T)=>ne(I,T,""),dataTransfer:I=>I},matchesTypes:["Text","text/plain"]}};function J(I,T){const x=K[I];if(!x)throw new Error(`native type ${I} has no configuration`);const Me=new D(x);return Me.loadDataTransfer(T),Me}function O(I){if(!I)return null;const T=Array.prototype.slice.call(I.types||[]);return Object.keys(K).filter(x=>{const Me=K[x];return Me!=null&&Me.matchesTypes?Me.matchesTypes.some(Ye=>T.indexOf(Ye)>-1):!1})[0]||null}const Y=We(()=>/firefox/i.test(navigator.userAgent)),L=We(()=>!!window.safari);class te{interpolate(T){const{xs:x,ys:Me,c1s:Ye,c2s:De,c3s:Br}=this;let Ge=x.length-1;if(T===x[Ge])return Me[Ge];let br=0,Ve=Br.length-1,pe;for(;br<=Ve;){pe=Math.floor(.5*(br+Ve));const wr=x[pe];if(wrT)Ve=pe-1;else return Me[pe]}Ge=Math.max(0,Ve);const Cr=T-x[Ge],Er=Cr*Cr;return Me[Ge]+Ye[Ge]*Cr+De[Ge]*Er+Br[Ge]*Cr*Er}constructor(T,x){const{length:Me}=T,Ye=[];for(let Kr=0;KrT[Kr]{let C=new te([0,.5,1],[br.y,br.y/pe*Kr,br.y+Kr-pe]).interpolate(Er);return L()&&De&&(C+=(window.devicePixelRatio-1)*Kr),C},Jr=()=>new te([0,.5,1],[br.x,br.x/Ve*wr,br.x+wr-Ve]).interpolate(Cr),{offsetX:Dr,offsetY:lt}=Ye,Et=Dr===0||Dr,Pt=lt===0||lt;return{x:Et?Dr:Jr(),y:Pt?lt:Ft()}}class ze{get window(){if(this.globalContext)return this.globalContext;if(typeof window!="undefined")return window}get document(){var T;return!((T=this.globalContext)===null||T===void 0)&&T.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var T;return((T=this.optionsArgs)===null||T===void 0?void 0:T.rootElement)||this.window}constructor(T,x){this.ownerDocument=null,this.globalContext=T,this.optionsArgs=x}}function j(I,T,x){return T in I?Object.defineProperty(I,T,{value:x,enumerable:!0,configurable:!0,writable:!0}):I[T]=x,I}function z(I){for(var T=1;T{this.sourcePreviewNodes.delete(T),this.sourcePreviewNodeOptions.delete(T)}}connectDragSource(T,x,Me){this.sourceNodes.set(T,x),this.sourceNodeOptions.set(T,Me);const Ye=Br=>this.handleDragStart(Br,T),De=Br=>this.handleSelectStart(Br);return x.setAttribute("draggable","true"),x.addEventListener("dragstart",Ye),x.addEventListener("selectstart",De),()=>{this.sourceNodes.delete(T),this.sourceNodeOptions.delete(T),x.removeEventListener("dragstart",Ye),x.removeEventListener("selectstart",De),x.setAttribute("draggable","false")}}connectDropTarget(T,x){const Me=Br=>this.handleDragEnter(Br,T),Ye=Br=>this.handleDragOver(Br,T),De=Br=>this.handleDrop(Br,T);return x.addEventListener("dragenter",Me),x.addEventListener("dragover",Ye),x.addEventListener("drop",De),()=>{x.removeEventListener("dragenter",Me),x.removeEventListener("dragover",Ye),x.removeEventListener("drop",De)}}addEventListeners(T){T.addEventListener&&(T.addEventListener("dragstart",this.handleTopDragStart),T.addEventListener("dragstart",this.handleTopDragStartCapture,!0),T.addEventListener("dragend",this.handleTopDragEndCapture,!0),T.addEventListener("dragenter",this.handleTopDragEnter),T.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),T.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),T.addEventListener("dragover",this.handleTopDragOver),T.addEventListener("dragover",this.handleTopDragOverCapture,!0),T.addEventListener("drop",this.handleTopDrop),T.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(T){T.removeEventListener&&(T.removeEventListener("dragstart",this.handleTopDragStart),T.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),T.removeEventListener("dragend",this.handleTopDragEndCapture,!0),T.removeEventListener("dragenter",this.handleTopDragEnter),T.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),T.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),T.removeEventListener("dragover",this.handleTopDragOver),T.removeEventListener("dragover",this.handleTopDragOverCapture,!0),T.removeEventListener("drop",this.handleTopDrop),T.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const T=this.monitor.getSourceId(),x=this.sourceNodeOptions.get(T);return z({dropEffect:this.altKeyPressed?"copy":"move"},x||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const T=this.monitor.getSourceId(),x=this.sourcePreviewNodeOptions.get(T);return z({anchorX:.5,anchorY:.5,captureDraggingState:!1},x||{})}isDraggingNativeItem(){const T=this.monitor.getItemType();return Object.keys(Q).some(x=>Q[x]===T)}beginDragNativeItem(T,x){this.clearCurrentDragSourceNode(),this.currentNativeSource=J(T,x),this.currentNativeHandle=this.registry.addSource(T,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(T){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=T;const x=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var Me;return(Me=this.rootElement)===null||Me===void 0?void 0:Me.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},x)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var T;(T=this.window)===null||T===void 0||T.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(T,x){T.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(x))}handleDragEnter(T,x){this.dragEnterTargetIds.unshift(x)}handleDragOver(T,x){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(x)}handleDrop(T,x){this.dropTargetIds.unshift(x)}constructor(T,x,Me){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=Ye=>{const De=this.sourceNodes.get(Ye);return De&&se(De)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=Ye=>!!(Ye&&this.document&&this.document.body&&this.document.body.contains(Ye)),this.endDragIfSourceWasRemovedFromDOM=()=>{const Ye=this.currentDragSourceNode;Ye==null||this.isNodeInDocument(Ye)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=Ye=>{this.hoverRafId===null&&typeof requestAnimationFrame!="undefined"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(Ye||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame!="undefined"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=Ye=>{if(Ye.defaultPrevented)return;const{dragStartSourceIds:De}=this;this.dragStartSourceIds=null;const Br=le(Ye);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(De||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:Br});const{dataTransfer:Ge}=Ye,br=O(Ge);if(this.monitor.isDragging()){if(Ge&&typeof Ge.setDragImage=="function"){const pe=this.monitor.getSourceId(),Cr=this.sourceNodes.get(pe),Er=this.sourcePreviewNodes.get(pe)||Cr;if(Er){const{anchorX:wr,anchorY:Kr,offsetX:Ft,offsetY:Jr}=this.getCurrentSourcePreviewNodeOptions(),Et=Je(Cr,Er,Br,{anchorX:wr,anchorY:Kr},{offsetX:Ft,offsetY:Jr});Ge.setDragImage(Er,Et.x,Et.y)}}try{Ge==null||Ge.setData("application/json",{})}catch(pe){}this.setCurrentDragSourceNode(Ye.target);const{captureDraggingState:Ve}=this.getCurrentSourcePreviewNodeOptions();Ve?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(br)this.beginDragNativeItem(br);else{if(Ge&&!Ge.types&&(Ye.target&&!Ye.target.hasAttribute||!Ye.target.hasAttribute("draggable")))return;Ye.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=Ye=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var De;(De=this.currentNativeSource)===null||De===void 0||De.loadDataTransfer(Ye.dataTransfer)}if(!this.enterLeaveCounter.enter(Ye.target)||this.monitor.isDragging())return;const{dataTransfer:Ge}=Ye,br=O(Ge);br&&this.beginDragNativeItem(br,Ge)},this.handleTopDragEnter=Ye=>{const{dragEnterTargetIds:De}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=Ye.altKey,De.length>0&&this.actions.hover(De,{clientOffset:le(Ye)}),De.some(Ge=>this.monitor.canDropOnTarget(Ge))&&(Ye.preventDefault(),Ye.dataTransfer&&(Ye.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=Ye=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var De;(De=this.currentNativeSource)===null||De===void 0||De.loadDataTransfer(Ye.dataTransfer)}},this.handleTopDragOver=Ye=>{const{dragOverTargetIds:De}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){Ye.preventDefault(),Ye.dataTransfer&&(Ye.dataTransfer.dropEffect="none");return}this.altKeyPressed=Ye.altKey,this.lastClientOffset=le(Ye),this.scheduleHover(De),(De||[]).some(Ge=>this.monitor.canDropOnTarget(Ge))?(Ye.preventDefault(),Ye.dataTransfer&&(Ye.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?Ye.preventDefault():(Ye.preventDefault(),Ye.dataTransfer&&(Ye.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=Ye=>{this.isDraggingNativeItem()&&Ye.preventDefault(),this.enterLeaveCounter.leave(Ye.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=Ye=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var De;Ye.preventDefault(),(De=this.currentNativeSource)===null||De===void 0||De.loadDataTransfer(Ye.dataTransfer)}else O(Ye.dataTransfer)&&Ye.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=Ye=>{const{dropTargetIds:De}=this;this.dropTargetIds=[],this.actions.hover(De,{clientOffset:le(Ye)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=Ye=>{const De=Ye.target;typeof De.dragDrop=="function"&&(De.tagName==="INPUT"||De.tagName==="SELECT"||De.tagName==="TEXTAREA"||De.isContentEditable||(Ye.preventDefault(),De.dragDrop()))},this.options=new ze(x,Me),this.actions=T.getActions(),this.monitor=T.getMonitor(),this.registry=T.getRegistry(),this.enterLeaveCounter=new Z(this.isNodeInDocument)}}const Ze=function(T,x,Me){return new we(T,x,Me)}},34522:function(Vr,fr,V){"use strict";V.d(fr,{P6:function(){return M2},cW:function(){return Sl},ij:function(){return _l}});var Q=V(36786).Buffer,We=V(27061);var G={};G.version="0.18.5";var N=1200,Z=1252,D=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],M={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},y=function(e){D.indexOf(e)!=-1&&(Z=M[0]=e)};function W(){y(1252)}var q=function(e){N=e,y(e)};function ne(){q(1200),W()}function K(e){for(var t=[],r=0,n=e.length;r>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r)+(e.charCodeAt(2*r+1)<<8));return t.join("")}function O(e){for(var t=[],r=0;r>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return t.join("")}var Y=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return t==255&&r==254?J(e.slice(2)):t==254&&r==255?O(e.slice(2)):t==65279?e.slice(1):e},L=function(t){return String.fromCharCode(t)},te=function(t){return String.fromCharCode(t)},H;function se(e){H=e,q=function(t){N=t,y(t)},Y=function(t){return t.charCodeAt(0)===255&&t.charCodeAt(1)===254?H.utils.decode(1200,K(t.slice(2))):t},L=function(r){return N===1200?String.fromCharCode(r):H.utils.decode(N,[r&255,r>>8])[0]},te=function(r){return H.utils.decode(Z,[r])[0]},Ba()}var le=null,be=!0,ve="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Je(e){for(var t="",r=0,n=0,a=0,i=0,s=0,c=0,d=0,p=0;p>2,n=e.charCodeAt(p++),s=(r&3)<<4|n>>4,a=e.charCodeAt(p++),c=(n&15)<<2|a>>6,d=a&63,isNaN(n)?c=d=64:isNaN(a)&&(d=64),t+=ve.charAt(i)+ve.charAt(s)+ve.charAt(c)+ve.charAt(d);return t}function ze(e){var t="",r=0,n=0,a=0,i=0,s=0,c=0,d=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var p=0;p>4,t+=String.fromCharCode(r),c=ve.indexOf(e.charAt(p++)),n=(s&15)<<4|c>>2,c!==64&&(t+=String.fromCharCode(n)),d=ve.indexOf(e.charAt(p++)),a=(c&3)<<6|d,d!==64&&(t+=String.fromCharCode(a));return t}var j=function(){return typeof Q!="undefined"&&typeof We!="undefined"&&typeof We.versions!="undefined"&&!!We.versions.node}(),z=function(){if(typeof Q!="undefined"){var e=!Q.from;if(!e)try{Q.from("foo","utf8")}catch(t){e=!0}return e?function(t,r){return r?new Q(t,r):new Q(t)}:Q.from.bind(Q)}return function(){}}();function we(e){return j?Q.alloc?Q.alloc(e):new Q(e):typeof Uint8Array!="undefined"?new Uint8Array(e):new Array(e)}function Ze(e){return j?Q.allocUnsafe?Q.allocUnsafe(e):new Q(e):typeof Uint8Array!="undefined"?new Uint8Array(e):new Array(e)}var I=function(t){return j?z(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function T(e){if(typeof ArrayBuffer=="undefined")return I(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!=e.length;++n)r[n]=e.charCodeAt(n)&255;return t}function x(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var t=[],r=0;r>6&31,a[r++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var c=e.charCodeAt(++i)&1023;a[r++]=240|s>>8&7,a[r++]=128|s>>2&63,a[r++]=128|c>>6&15|(s&3)<<4,a[r++]=128|c&63}else a[r++]=224|s>>12&15,a[r++]=128|s>>6&63,a[r++]=128|s&63;r>n&&(t.push(a.slice(0,r)),r=0,a=we(65535),n=65530)}return t.push(a.slice(0,r)),De(t)}var Ge=/\u0000/g,br=/[\u0001-\u0006]/g;function Ve(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function pe(e,t){var r=""+e;return r.length>=t?r:On("0",t-r.length)+r}function Cr(e,t){var r=""+e;return r.length>=t?r:On(" ",t-r.length)+r}function Er(e,t){var r=""+e;return r.length>=t?r:r+On(" ",t-r.length)}function wr(e,t){var r=""+Math.round(e);return r.length>=t?r:On("0",t-r.length)+r}function Kr(e,t){var r=""+e;return r.length>=t?r:On("0",t-r.length)+r}var Ft=Math.pow(2,32);function Jr(e,t){if(e>Ft||e<-Ft)return wr(e,t);var r=Math.round(e);return Kr(r,t)}function Dr(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var lt=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],Et=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function Pt(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"\u4E0A\u5348/\u4E0B\u5348 "hh"\u6642"mm"\u5206"ss"\u79D2 "',e}var Ir={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"\u4E0A\u5348/\u4E0B\u5348 "hh"\u6642"mm"\u5206"ss"\u79D2 "'},C={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},lr={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function m(e,t,r){for(var n=e<0?-1:1,a=e*n,i=0,s=1,c=0,d=1,p=0,v=0,S=Math.floor(a);pt&&(p>t?(v=d,c=i):(v=p,c=s)),!r)return[0,n*c,v];var k=Math.floor(n*c/v);return[k,n*c-k*v,v]}function u(e,t,r){if(e>2958465||e<0)return null;var n=e|0,a=Math.floor(86400*(e-n)),i=0,s=[],c={D:n,T:a,u:86400*(e-n)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(c.u)<1e-6&&(c.u=0),t&&t.date1904&&(n+=1462),c.u>.9999&&(c.u=0,++a==86400&&(c.T=a=0,++n,++c.D)),n===60)s=r?[1317,10,29]:[1900,2,29],i=3;else if(n===0)s=r?[1317,8,29]:[1900,1,0],i=6;else{n>60&&--n;var d=new Date(1900,0,1);d.setDate(d.getDate()+n-1),s=[d.getFullYear(),d.getMonth()+1,d.getDate()],i=d.getDay(),n<60&&(i=(i+6)%7),r&&(i=ye(d,s))}return c.y=s[0],c.m=s[1],c.d=s[2],c.S=a%60,a=Math.floor(a/60),c.M=a%60,a=Math.floor(a/60),c.H=a,c.q=i,c}var h=new Date(1899,11,31,0,0,0),E=h.getTime(),ee=new Date(1900,2,1,0,0,0);function Se(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=ee&&(r+=24*60*60*1e3),(r-(E+(e.getTimezoneOffset()-h.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function oe(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function de(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function je(e){var t=e<0?12:11,r=oe(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function Re(e){var t=oe(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function cr(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return t>=-4&&t<=-1?r=e.toPrecision(10+t):Math.abs(t)<=9?r=je(e):t===10?r=e.toFixed(10).substr(0,12):r=Re(e),oe(de(r.toUpperCase()))}function B(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):cr(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return gn(14,Se(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function ye(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function ar(e,t,r,n){var a="",i=0,s=0,c=r.y,d,p=0;switch(e){case 98:c=r.y+543;case 121:switch(t.length){case 1:case 2:d=c%100,p=2;break;default:d=c%1e4,p=4;break}break;case 109:switch(t.length){case 1:case 2:d=r.m,p=t.length;break;case 3:return Et[r.m-1][1];case 5:return Et[r.m-1][0];default:return Et[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:d=r.d,p=t.length;break;case 3:return lt[r.q][0];default:return lt[r.q][1]}break;case 104:switch(t.length){case 1:case 2:d=1+(r.H+11)%12,p=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:d=r.H,p=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:d=r.M,p=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return r.u===0&&(t=="s"||t=="ss")?pe(r.S,t.length):(n>=2?s=n===3?1e3:100:s=n===1?10:1,i=Math.round(s*(r.S+r.u)),i>=60*s&&(i=0),t==="s"?i===0?"0":""+i/s:(a=pe(i,2+n),t==="ss"?a.substr(0,2):"."+a.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":d=r.D*24+r.H;break;case"[m]":case"[mm]":d=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":d=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}p=t.length===3?1:2;break;case 101:d=c,p=1;break}var v=p>0?pe(d,p):"";return v}function dr(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,n=e.substr(0,r);r!=e.length;r+=t)n+=(n.length>0?",":"")+e.substr(r,t);return n}var Ur=/%/g;function vt(e,t,r){var n=t.replace(Ur,""),a=t.length-n.length;return qt(e,n,r*Math.pow(10,2*a))+On("%",a)}function it(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return qt(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function ft(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+ft(e,-t);var a=e.indexOf(".");a===-1&&(a=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%a;if(i<0&&(i+=a),r=(t/Math.pow(10,i)).toPrecision(n+1+(a+i)%a),r.indexOf("e")===-1){var s=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+i):r+="E+"+(s-i);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,a)+"."+r.substr(2+a),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(c,d,p,v){return d+p+v.substr(0,(a+i)%a)+"."+v.substr(i)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var Wr=/# (\?+)( ?)\/( ?)(\d+)/;function $r(e,t,r){var n=parseInt(e[4],10),a=Math.round(t*n),i=Math.floor(a/n),s=a-i*n,c=n;return r+(i===0?"":""+i)+" "+(s===0?On(" ",e[1].length+1+e[4].length):Cr(s,e[1].length)+e[2]+"/"+e[3]+pe(c,e[4].length))}function dt(e,t,r){return r+(t===0?"":""+t)+On(" ",e[1].length+2+e[4].length)}var Xr=/^#*0*\.([0#]+)/,Mt=/\).*[0#]/,rn=/\(###\) ###\\?-####/;function $e(e){for(var t="",r,n=0;n!=e.length;++n)switch(r=e.charCodeAt(n)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function xr(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function nr(e,t){var r=e-Math.floor(e),n=Math.pow(10,t);return t<(""+Math.round(r*n)).length?0:Math.round(r*n)}function Mr(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function Hr(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function Nr(e,t,r){if(e.charCodeAt(0)===40&&!t.match(Mt)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Nr("n",n,r):"("+Nr("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return it(e,t,r);if(t.indexOf("%")!==-1)return vt(e,t,r);if(t.indexOf("E")!==-1)return ft(t,r);if(t.charCodeAt(0)===36)return"$"+Nr(e,t.substr(t.charAt(1)==" "?2:1),r);var a,i,s,c,d=Math.abs(r),p=r<0?"-":"";if(t.match(/^00+$/))return p+Jr(d,t.length);if(t.match(/^[#?]+$/))return a=Jr(r,0),a==="0"&&(a=""),a.length>t.length?a:$e(t.substr(0,t.length-a.length))+a;if(i=t.match(Wr))return $r(i,d,p);if(t.match(/^#+0+$/))return p+Jr(d,t.length-t.indexOf("0"));if(i=t.match(Xr))return a=xr(r,i[1].length).replace(/^([^\.]+)$/,"$1."+$e(i[1])).replace(/\.$/,"."+$e(i[1])).replace(/\.(\d*)$/,function(P,_){return"."+_+On("0",$e(i[1]).length-_.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return p+xr(d,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return p+dr(Jr(d,0));if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Nr(e,t,-r):dr(""+(Math.floor(r)+Mr(r,i[1].length)))+"."+pe(nr(r,i[1].length),i[1].length);if(i=t.match(/^#,#*,#0/))return Nr(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=Ve(Nr(e,t.replace(/[\\-]/g,""),r)),s=0,Ve(Ve(t.replace(/\\/g,"")).replace(/[0#]/g,function(P){return s=0?gt("n",n,r):"("+gt("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return qr(e,t,r);if(t.indexOf("%")!==-1)return At(e,t,r);if(t.indexOf("E")!==-1)return Ut(t,r);if(t.charCodeAt(0)===36)return"$"+gt(e,t.substr(t.charAt(1)==" "?2:1),r);var a,i,s,c,d=Math.abs(r),p=r<0?"-":"";if(t.match(/^00+$/))return p+pe(d,t.length);if(t.match(/^[#?]+$/))return a=""+r,r===0&&(a=""),a.length>t.length?a:$e(t.substr(0,t.length-a.length))+a;if(i=t.match(Wr))return dt(i,d,p);if(t.match(/^#+0+$/))return p+pe(d,t.length-t.indexOf("0"));if(i=t.match(Xr))return a=(""+r).replace(/^([^\.]+)$/,"$1."+$e(i[1])).replace(/\.$/,"."+$e(i[1])),a=a.replace(/\.(\d*)$/,function(P,_){return"."+_+On("0",$e(i[1]).length-_.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return p+(""+d).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return p+dr(""+d);if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+gt(e,t,-r):dr(""+r)+"."+On("0",i[1].length);if(i=t.match(/^#,#*,#0/))return gt(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=Ve(gt(e,t.replace(/[\\-]/g,""),r)),s=0,Ve(Ve(t.replace(/\\/g,"")).replace(/[0#]/g,function(P){return s-1||r=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t-1;);break;case" ":++t;break;default:++t;break}return!1}function Tn(e,t,r,n){for(var a=[],i="",s=0,c="",d="t",p,v,S,k="H";s=12?"P":"A"),_.t="T",k="h",s+=3):e.substr(s,5).toUpperCase()==="AM/PM"?(p!=null&&(_.v=p.H>=12?"PM":"AM"),_.t="T",s+=5,k="h"):e.substr(s,5).toUpperCase()==="\u4E0A\u5348/\u4E0B\u5348"?(p!=null&&(_.v=p.H>=12?"\u4E0B\u5348":"\u4E0A\u5348"),_.t="T",s+=5,k="h"):(_.t="t",++s),p==null&&_.t==="T")return"";a[a.length]=_,d=c;break;case"[":for(i=c;e.charAt(s++)!=="]"&&s-1&&(i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$",yt(e)||(a[a.length]={t:"t",v:i}));break;case".":if(p!=null){for(i=c;++s-1;)i+=c;a[a.length]={t:"n",v:i};break;case"?":for(i=c;e.charAt(++s)===c;)i+=c;a[a.length]={t:c,v:i},d=c;break;case"*":++s,(e.charAt(s)==" "||e.charAt(s)=="*")&&++s;break;case"(":case")":a[a.length]={t:n===1?"t":c,v:c},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(i=c;s-1;)i+=e.charAt(s);a[a.length]={t:"D",v:i};break;case" ":a[a.length]={t:c,v:c},++s;break;case"$":a[a.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=\u20ACacfijklopqrtuvwxzP".indexOf(c)===-1)throw new Error("unrecognized character "+c+" in "+e);a[a.length]={t:"t",v:c},++s;break}var U=0,me=0,xe;for(s=a.length-1,d="t";s>=0;--s)switch(a[s].t){case"h":case"H":a[s].t=k,d="h",U<1&&(U=1);break;case"s":(xe=a[s].v.match(/\.0+$/))&&(me=Math.max(me,xe[0].length-1)),U<3&&(U=3);case"d":case"y":case"M":case"e":d=a[s].t;break;case"m":d==="s"&&(a[s].t="M",U<2&&(U=2));break;case"X":break;case"Z":U<1&&a[s].v.match(/[Hh]/)&&(U=1),U<2&&a[s].v.match(/[Mm]/)&&(U=2),U<3&&a[s].v.match(/[Ss]/)&&(U=3)}switch(U){case 0:break;case 1:p.u>=.5&&(p.u=0,++p.S),p.S>=60&&(p.S=0,++p.M),p.M>=60&&(p.M=0,++p.H);break;case 2:p.u>=.5&&(p.u=0,++p.S),p.S>=60&&(p.S=0,++p.M);break}var ie="",rr;for(s=0;s0){ie.charCodeAt(0)==40?(qe=t<0&&ie.charCodeAt(0)===45?-t:t,Ie=qt("n",ie,qe)):(qe=t<0&&n>1?-t:t,Ie=qt("n",ie,qe),qe<0&&a[0]&&a[0].t=="t"&&(Ie=Ie.substr(1),a[0].v="-"+a[0].v)),rr=Ie.length-1;var tr=a.length;for(s=0;s-1){tr=s;break}var Qe=a.length;if(tr===a.length&&Ie.indexOf("E")===-1){for(s=a.length-1;s>=0;--s)a[s]==null||"n?".indexOf(a[s].t)===-1||(rr>=a[s].v.length-1?(rr-=a[s].v.length,a[s].v=Ie.substr(rr+1,a[s].v.length)):rr<0?a[s].v="":(a[s].v=Ie.substr(0,rr+1),rr=-1),a[s].t="t",Qe=s);rr>=0&&Qe=0;--s)if(!(a[s]==null||"n?".indexOf(a[s].t)===-1)){for(v=a[s].v.indexOf(".")>-1&&s===tr?a[s].v.indexOf(".")-1:a[s].v.length-1,or=a[s].v.substr(v+1);v>=0;--v)rr>=0&&(a[s].v.charAt(v)==="0"||a[s].v.charAt(v)==="#")&&(or=Ie.charAt(rr--)+or);a[s].v=or,a[s].t="t",Qe=s}for(rr>=0&&Qe-1&&s===tr?a[s].v.indexOf(".")+1:0,or=a[s].v.substr(0,v);v-1&&(qe=n>1&&t<0&&s>0&&a[s-1].v==="-"?-t:t,a[s].v=qt(a[s].t,a[s].v,qe),a[s].t="t");var yr="";for(s=0;s!==a.length;++s)a[s]!=null&&(yr+=a[s].v);return yr}var Bn=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Pn(e,t){if(t==null)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function na(e,t){var r=Qt(e),n=r.length,a=r[n-1].indexOf("@");if(n<4&&a>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||a>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=a>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=a>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=a>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break;case 4:break}var i=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,i];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var s=r[0].match(Bn),c=r[1].match(Bn);return Pn(t,s)?[n,r[0]]:Pn(t,c)?[n,r[1]]:[n,r[s!=null&&c!=null?2:1]]}return[n,i]}function gn(e,t,r){r==null&&(r={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&r.dateNF?n=r.dateNF:n=e;break;case"number":e==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:Ir)[e],n==null&&(n=r.table&&r.table[C[e]]||Ir[C[e]]),n==null&&(n=lr[e]||"General");break}if(Dr(n,0))return B(t,r);t instanceof Date&&(t=Se(t,r.date1904));var a=na(n,t);if(Dr(a[1]))return B(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return Tn(a[1],t,r,a[0])}function ln(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(Ir[r]==null){t<0&&(t=r);continue}if(Ir[r]==e){t=r;break}}t<0&&(t=391)}return Ir[t]=e,t}function $t(e){for(var t=0;t!=392;++t)e[t]!==void 0&&ln(e[t],t)}function jn(){Ir=Pt()}var Wa={format:gn,load:ln,_table:Ir,load_table:$t,parse_date_code:u,is_date:yt,get_table:function(){return Wa._table=Ir}},Da={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},Ya=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function Ha(e){var t=typeof e=="number"?Ir[e]:e;return t=t.replace(Ya,"(\\d+)"),new RegExp("^"+t+"$")}function ha(e,t,r){var n=-1,a=-1,i=-1,s=-1,c=-1,d=-1;(t.match(Ya)||[]).forEach(function(S,k){var A=parseInt(r[k+1],10);switch(S.toLowerCase().charAt(0)){case"y":n=A;break;case"d":i=A;break;case"h":s=A;break;case"s":d=A;break;case"m":s>=0?c=A:a=A;break}}),d>=0&&c==-1&&a>=0&&(c=a,a=-1);var p=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(a>=1?a:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);p.length==7&&(p="0"+p),p.length==8&&(p="20"+p);var v=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2)+":"+("00"+(d>=0?d:0)).slice(-2);return s==-1&&c==-1&&d==-1?p:n==-1&&a==-1&&i==-1?v:p+"T"+v}var Ga=function(){var e={};e.version="1.2.0";function t(){for(var Ie=0,tr=new Array(256),Qe=0;Qe!=256;++Qe)Ie=Qe,Ie=Ie&1?-306674912^Ie>>>1:Ie>>>1,Ie=Ie&1?-306674912^Ie>>>1:Ie>>>1,Ie=Ie&1?-306674912^Ie>>>1:Ie>>>1,Ie=Ie&1?-306674912^Ie>>>1:Ie>>>1,Ie=Ie&1?-306674912^Ie>>>1:Ie>>>1,Ie=Ie&1?-306674912^Ie>>>1:Ie>>>1,Ie=Ie&1?-306674912^Ie>>>1:Ie>>>1,Ie=Ie&1?-306674912^Ie>>>1:Ie>>>1,tr[Qe]=Ie;return typeof Int32Array!="undefined"?new Int32Array(tr):tr}var r=t();function n(Ie){var tr=0,Qe=0,yr=0,_r=typeof Int32Array!="undefined"?new Int32Array(4096):new Array(4096);for(yr=0;yr!=256;++yr)_r[yr]=Ie[yr];for(yr=0;yr!=256;++yr)for(Qe=Ie[yr],tr=256+yr;tr<4096;tr+=256)Qe=_r[tr]=Qe>>>8^Ie[Qe&255];var sr=[];for(yr=1;yr!=16;++yr)sr[yr-1]=typeof Int32Array!="undefined"?_r.subarray(yr*256,yr*256+256):_r.slice(yr*256,yr*256+256);return sr}var a=n(r),i=a[0],s=a[1],c=a[2],d=a[3],p=a[4],v=a[5],S=a[6],k=a[7],A=a[8],P=a[9],_=a[10],U=a[11],me=a[12],xe=a[13],ie=a[14];function rr(Ie,tr){for(var Qe=tr^-1,yr=0,_r=Ie.length;yr<_r;)Qe=Qe>>>8^r[(Qe^Ie.charCodeAt(yr++))&255];return~Qe}function or(Ie,tr){for(var Qe=tr^-1,yr=Ie.length-15,_r=0;_r>8&255]^me[Ie[_r++]^Qe>>16&255]^U[Ie[_r++]^Qe>>>24]^_[Ie[_r++]]^P[Ie[_r++]]^A[Ie[_r++]]^k[Ie[_r++]]^S[Ie[_r++]]^v[Ie[_r++]]^p[Ie[_r++]]^d[Ie[_r++]]^c[Ie[_r++]]^s[Ie[_r++]]^i[Ie[_r++]]^r[Ie[_r++]];for(yr+=15;_r>>8^r[(Qe^Ie[_r++])&255];return~Qe}function qe(Ie,tr){for(var Qe=tr^-1,yr=0,_r=Ie.length,sr=0,nt=0;yr<_r;)sr=Ie.charCodeAt(yr++),sr<128?Qe=Qe>>>8^r[(Qe^sr)&255]:sr<2048?(Qe=Qe>>>8^r[(Qe^(192|sr>>6&31))&255],Qe=Qe>>>8^r[(Qe^(128|sr&63))&255]):sr>=55296&&sr<57344?(sr=(sr&1023)+64,nt=Ie.charCodeAt(yr++)&1023,Qe=Qe>>>8^r[(Qe^(240|sr>>8&7))&255],Qe=Qe>>>8^r[(Qe^(128|sr>>2&63))&255],Qe=Qe>>>8^r[(Qe^(128|nt>>6&15|(sr&3)<<4))&255],Qe=Qe>>>8^r[(Qe^(128|nt&63))&255]):(Qe=Qe>>>8^r[(Qe^(224|sr>>12&15))&255],Qe=Qe>>>8^r[(Qe^(128|sr>>6&63))&255],Qe=Qe>>>8^r[(Qe^(128|sr&63))&255]);return~Qe}return e.table=r,e.bstr=rr,e.buf=or,e.str=qe,e}(),Qr=function(){var t={};t.version="1.2.1";function r(X,ke){for(var ce=X.split("/"),ge=ke.split("/"),Ae=0,Fe=0,ur=Math.min(ce.length,ge.length);Ae>>1,X.write_shift(2,ce);var ge=ke.getFullYear()-1980;ge=ge<<4|ke.getMonth()+1,ge=ge<<5|ke.getDate(),X.write_shift(2,ge)}function s(X){var ke=X.read_shift(2)&65535,ce=X.read_shift(2)&65535,ge=new Date,Ae=ce&31;ce>>>=5;var Fe=ce&15;ce>>>=4,ge.setMilliseconds(0),ge.setFullYear(ce+1980),ge.setMonth(Fe-1),ge.setDate(Ae);var ur=ke&31;ke>>>=5;var kr=ke&63;return ke>>>=6,ge.setHours(ke),ge.setMinutes(kr),ge.setSeconds(ur<<1),ge}function c(X){pn(X,0);for(var ke={},ce=0;X.l<=X.length-4;){var ge=X.read_shift(2),Ae=X.read_shift(2),Fe=X.l+Ae,ur={};switch(ge){case 21589:ce=X.read_shift(1),ce&1&&(ur.mtime=X.read_shift(4)),Ae>5&&(ce&2&&(ur.atime=X.read_shift(4)),ce&4&&(ur.ctime=X.read_shift(4))),ur.mtime&&(ur.mt=new Date(ur.mtime*1e3));break}X.l=Fe,ke[ge]=ur}return ke}var d;function p(){return d||(d={})}function v(X,ke){if(X[0]==80&&X[1]==75)return kh(X,ke);if((X[0]|32)==109&&(X[1]|32)==105)return J2(X,ke);if(X.length<512)throw new Error("CFB file size "+X.length+" < 512");var ce=3,ge=512,Ae=0,Fe=0,ur=0,kr=0,vr=0,hr=[],mr=X.slice(0,512);pn(mr,0);var Yr=S(mr);switch(ce=Yr[0],ce){case 3:ge=512;break;case 4:ge=4096;break;case 0:if(Yr[1]==0)return kh(X,ke);default:throw new Error("Major Version: Expected 3 or 4 saw "+ce)}ge!==512&&(mr=X.slice(0,ge),pn(mr,28));var ot=X.slice(0,ge);k(mr,ce);var Bt=mr.read_shift(4,"i");if(ce===3&&Bt!==0)throw new Error("# Directory Sectors: Expected 0 saw "+Bt);mr.l+=4,ur=mr.read_shift(4,"i"),mr.l+=4,mr.chk("00100000","Mini Stream Cutoff Size: "),kr=mr.read_shift(4,"i"),Ae=mr.read_shift(4,"i"),vr=mr.read_shift(4,"i"),Fe=mr.read_shift(4,"i");for(var ct=-1,mt=0;mt<109&&(ct=mr.read_shift(4,"i"),!(ct<0));++mt)hr[mt]=ct;var sn=A(X,ge);U(vr,Fe,sn,ge,hr);var da=xe(sn,ur,hr,ge);da[ur].name="!Directory",Ae>0&&kr!==nt&&(da[kr].name="!MiniFAT"),da[hr[0]].name="!FAT",da.fat_addrs=hr,da.ssz=ge;var Zi={},Ka=[],as=[],Tf=[];ie(ur,da,sn,Ka,Ae,Zi,as,kr),P(as,Tf,Ka),Ka.shift();var kf={FileIndex:as,FullPaths:Tf};return ke&&ke.raw&&(kf.raw={header:ot,sectors:sn}),kf}function S(X){if(X[X.l]==80&&X[X.l+1]==75)return[0,0];X.chk(Ct,"Header Signature: "),X.l+=16;var ke=X.read_shift(2,"u");return[X.read_shift(2,"u"),ke]}function k(X,ke){var ce=9;switch(X.l+=2,ce=X.read_shift(2)){case 9:if(ke!=3)throw new Error("Sector Shift: Expected 9 saw "+ce);break;case 12:if(ke!=4)throw new Error("Sector Shift: Expected 12 saw "+ce);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+ce)}X.chk("0600","Mini Sector Shift: "),X.chk("000000000000","Reserved: ")}function A(X,ke){for(var ce=Math.ceil(X.length/ke)-1,ge=[],Ae=1;Ae0&&ur>=0;)Fe.push(ke.slice(ur*sr,ur*sr+sr)),Ae-=sr,ur=ei(ce,ur*4);return Fe.length===0?gr(0):De(Fe).slice(0,X.size)}function U(X,ke,ce,ge,Ae){var Fe=nt;if(X===nt){if(ke!==0)throw new Error("DIFAT chain shorter than expected")}else if(X!==-1){var ur=ce[X],kr=(ge>>>2)-1;if(!ur)return;for(var vr=0;vr=0;){Ae[vr]=!0,Fe[Fe.length]=vr,ur.push(X[vr]);var mr=ce[Math.floor(vr*4/ge)];if(hr=vr*4&kr,ge<4+hr)throw new Error("FAT boundary crossed: "+vr+" 4 "+ge);if(!X[mr])break;vr=ei(X[mr],hr)}return{nodes:Fe,data:Ot([ur])}}function xe(X,ke,ce,ge){var Ae=X.length,Fe=[],ur=[],kr=[],vr=[],hr=ge-1,mr=0,Yr=0,ot=0,Bt=0;for(mr=0;mr=Ae&&(ot-=Ae),!ur[ot]){vr=[];var ct=[];for(Yr=ot;Yr>=0;){ct[Yr]=!0,ur[Yr]=!0,kr[kr.length]=Yr,vr.push(X[Yr]);var mt=ce[Math.floor(Yr*4/ge)];if(Bt=Yr*4&hr,ge<4+Bt)throw new Error("FAT boundary crossed: "+Yr+" 4 "+ge);if(!X[mt]||(Yr=ei(X[mt],Bt),ct[Yr]))break}Fe[ot]={nodes:kr,data:Ot([vr])}}return Fe}function ie(X,ke,ce,ge,Ae,Fe,ur,kr){for(var vr=0,hr=ge.length?2:0,mr=ke[X].data,Yr=0,ot=0,Bt;Yr0&&vr!==nt&&(ke[vr].name="!StreamData")):mt.size>=4096?(mt.storage="fat",ke[mt.start]===void 0&&(ke[mt.start]=me(ce,mt.start,ke.fat_addrs,ke.ssz)),ke[mt.start].name=mt.name,mt.content=ke[mt.start].data.slice(0,mt.size)):(mt.storage="minifat",mt.size<0?mt.size=0:vr!==nt&&mt.start!==nt&&ke[vr]&&(mt.content=_(mt,ke[vr].data,(ke[kr]||{}).data))),mt.content&&pn(mt.content,0),Fe[Bt]=mt,ur.push(mt)}}function rr(X,ke){return new Date((zn(X,ke+4)/1e7*Math.pow(2,32)+zn(X,ke)/1e7-11644473600)*1e3)}function or(X,ke){return p(),v(d.readFileSync(X),ke)}function qe(X,ke){var ce=ke&&ke.type;switch(ce||j&&Q.isBuffer(X)&&(ce="buffer"),ce||"base64"){case"file":return or(X,ke);case"base64":return v(I(ze(X)),ke);case"binary":return v(I(X),ke)}return v(X,ke)}function Ie(X,ke){var ce=ke||{},ge=ce.root||"Root Entry";if(X.FullPaths||(X.FullPaths=[]),X.FileIndex||(X.FileIndex=[]),X.FullPaths.length!==X.FileIndex.length)throw new Error("inconsistent CFB structure");X.FullPaths.length===0&&(X.FullPaths[0]=ge+"/",X.FileIndex[0]={name:ge,type:5}),ce.CLSID&&(X.FileIndex[0].clsid=ce.CLSID),tr(X)}function tr(X){var ke="Sh33tJ5";if(!Qr.find(X,"/"+ke)){var ce=gr(4);ce[0]=55,ce[1]=ce[3]=50,ce[2]=54,X.FileIndex.push({name:ke,type:2,content:ce,size:4,L:69,R:69,C:69}),X.FullPaths.push(X.FullPaths[0]+ke),Qe(X)}}function Qe(X,ke){Ie(X);for(var ce=!1,ge=!1,Ae=X.FullPaths.length-1;Ae>=0;--Ae){var Fe=X.FileIndex[Ae];switch(Fe.type){case 0:ge?ce=!0:(X.FileIndex.pop(),X.FullPaths.pop());break;case 1:case 2:case 5:ge=!0,isNaN(Fe.R*Fe.L*Fe.C)&&(ce=!0),Fe.R>-1&&Fe.L>-1&&Fe.R==Fe.L&&(ce=!0);break;default:ce=!0;break}}if(!(!ce&&!ke)){var ur=new Date(1987,1,19),kr=0,vr=Object.create?Object.create(null):{},hr=[];for(Ae=0;Ae1?1:-1,Yr.size=0,Yr.type=5;else if(ot.slice(-1)=="/"){for(kr=Ae+1;kr=hr.length?-1:kr,kr=Ae+1;kr=hr.length?-1:kr,Yr.type=1}else n(X.FullPaths[Ae+1]||"")==n(ot)&&(Yr.R=Ae+1),Yr.type=2}}}function yr(X,ke){var ce=ke||{};if(ce.fileType=="mad")return q2(X,ce);switch(Qe(X),ce.fileType){case"zip":return j2(X,ce)}var ge=function(Bt){for(var ct=0,mt=0,sn=0;sn0&&(Zi<4096?ct+=Zi+63>>6:mt+=Zi+511>>9)}}for(var Ka=Bt.FullPaths.length+3>>2,as=ct+7>>3,Tf=ct+127>>7,kf=as+mt+Ka+Tf,Wo=kf+127>>7,sd=Wo<=109?0:Math.ceil((Wo-109)/127);kf+Wo+sd+127>>7>Wo;)sd=++Wo<=109?0:Math.ceil((Wo-109)/127);var io=[1,sd,Wo,Tf,Ka,mt,ct,0];return Bt.FileIndex[0].size=ct<<6,io[7]=(Bt.FileIndex[0].start=io[0]+io[1]+io[2]+io[3]+io[4]+io[5])+(io[6]+7>>3),io}(X),Ae=gr(ge[7]<<9),Fe=0,ur=0;{for(Fe=0;Fe<8;++Fe)Ae.write_shift(1,at[Fe]);for(Fe=0;Fe<8;++Fe)Ae.write_shift(2,0);for(Ae.write_shift(2,62),Ae.write_shift(2,3),Ae.write_shift(2,65534),Ae.write_shift(2,9),Ae.write_shift(2,6),Fe=0;Fe<3;++Fe)Ae.write_shift(2,0);for(Ae.write_shift(4,0),Ae.write_shift(4,ge[2]),Ae.write_shift(4,ge[0]+ge[1]+ge[2]+ge[3]-1),Ae.write_shift(4,0),Ae.write_shift(4,4096),Ae.write_shift(4,ge[3]?ge[0]+ge[1]+ge[2]-1:nt),Ae.write_shift(4,ge[3]),Ae.write_shift(-4,ge[1]?ge[0]-1:nt),Ae.write_shift(4,ge[1]),Fe=0;Fe<109;++Fe)Ae.write_shift(-4,Fe>9)));for(kr(ge[6]+7>>3);Ae.l&511;)Ae.write_shift(-4,Rt.ENDOFCHAIN);for(ur=Fe=0,vr=0;vr=4096)&&(mr.start=ur,kr(hr+63>>6)));for(;Ae.l&511;)Ae.write_shift(-4,Rt.ENDOFCHAIN);for(Fe=0;Fe=4096)if(Ae.l=mr.start+1<<9,j&&Q.isBuffer(mr.content))mr.content.copy(Ae,Ae.l,0,mr.size),Ae.l+=mr.size+511&-512;else{for(vr=0;vr0&&mr.size<4096)if(j&&Q.isBuffer(mr.content))mr.content.copy(Ae,Ae.l,0,mr.size),Ae.l+=mr.size+63&-64;else{for(vr=0;vr>16|ke>>8|ke)&255}for(var rt=typeof Uint8Array!="undefined",Lr=rt?new Uint8Array(256):[],un=0;un<256;++un)Lr[un]=et(un);function Pe(X,ke){var ce=Lr[X&255];return ke<=8?ce>>>8-ke:(ce=ce<<8|Lr[X>>8&255],ke<=16?ce>>>16-ke:(ce=ce<<8|Lr[X>>16&255],ce>>>24-ke))}function qn(X,ke){var ce=ke&7,ge=ke>>>3;return(X[ge]|(ce<=6?0:X[ge+1]<<8))>>>ce&3}function Cn(X,ke){var ce=ke&7,ge=ke>>>3;return(X[ge]|(ce<=5?0:X[ge+1]<<8))>>>ce&7}function Qn(X,ke){var ce=ke&7,ge=ke>>>3;return(X[ge]|(ce<=4?0:X[ge+1]<<8))>>>ce&15}function An(X,ke){var ce=ke&7,ge=ke>>>3;return(X[ge]|(ce<=3?0:X[ge+1]<<8))>>>ce&31}function bt(X,ke){var ce=ke&7,ge=ke>>>3;return(X[ge]|(ce<=1?0:X[ge+1]<<8))>>>ce&127}function Ua(X,ke,ce){var ge=ke&7,Ae=ke>>>3,Fe=(1<>>ge;return ce<8-ge||(ur|=X[Ae+1]<<8-ge,ce<16-ge)||(ur|=X[Ae+2]<<16-ge,ce<24-ge)||(ur|=X[Ae+3]<<24-ge),ur&Fe}function ms(X,ke,ce){var ge=ke&7,Ae=ke>>>3;return ge<=5?X[Ae]|=(ce&7)<>8-ge),ke+3}function Ws(X,ke,ce){var ge=ke&7,Ae=ke>>>3;return ce=(ce&1)<>>3;return ce<<=ge,X[Ae]|=ce&255,ce>>>=8,X[Ae+1]=ce,ke+8}function Ef(X,ke,ce){var ge=ke&7,Ae=ke>>>3;return ce<<=ge,X[Ae]|=ce&255,ce>>>=8,X[Ae+1]=ce&255,X[Ae+2]=ce>>>8,ke+16}function wo(X,ke){var ce=X.length,ge=2*ce>ke?2*ce:ke+5,Ae=0;if(ce>=ke)return X;if(j){var Fe=Ze(ge);if(X.copy)X.copy(Fe);else for(;Ae>ge-Yr,ur=(1<=0;--ur)ke[kr|ur<0;)vr[vr.l++]=kr[hr++]}return vr.l}function ur(kr,vr){for(var hr=0,mr=0,Yr=rt?new Uint16Array(32768):[];mr0;)vr[vr.l++]=kr[mr++];hr=vr.l*8;continue}hr=ms(vr,hr,+(mr+ot==kr.length)+2);for(var Bt=0;ot-- >0;){var ct=kr[mr];Bt=(Bt<<5^ct)&32767;var mt=-1,sn=0;if((mt=Yr[Bt])&&(mt|=mr&-32768,mt>mr&&(mt-=32768),mt2){ct=Ae[sn],ct<=22?hr=no(vr,hr,Lr[ct+1]>>1)-1:(no(vr,hr,3),hr+=5,no(vr,hr,Lr[ct-23]>>5),hr+=3);var da=ct<8?0:ct-4>>2;da>0&&(Ef(vr,hr,sn-Ar[ct]),hr+=da),ct=ke[mr-mt],hr=no(vr,hr,Lr[ct]>>3),hr-=3;var Zi=ct<4?0:ct-2>>1;Zi>0&&(Ef(vr,hr,mr-mt-pt[ct]),hr+=Zi);for(var Ka=0;Ka>8-ct;for(var mt=(1<<7-ct)-1;mt>=0;--mt)ii[Bt|mt<>>=3){case 16:for(Fe=3+qn(X,ke),ke+=2,Bt=sn[sn.length-1];Fe-- >0;)sn.push(Bt);break;case 17:for(Fe=3+Cn(X,ke),ke+=3;Fe-- >0;)sn.push(0);break;case 18:for(Fe=11+bt(X,ke),ke+=7;Fe-- >0;)sn.push(0);break;default:sn.push(Bt),vr>>0,kr=0,vr=0;!(ge&1);){if(ge=Cn(X,ce),ce+=3,ge>>>1)ge>>1==1?(kr=9,vr=5):(ce=H2(X,ce),kr=zo,vr=Eh);else{ce&7&&(ce+=8-(ce&7));var hr=X[ce>>>3]|X[(ce>>>3)+1]<<8;if(ce+=32,hr>0)for(!ke&&ur0;)Ae[Fe++]=X[ce>>>3],ce+=8;continue}for(;;){!ke&&ur>>1==1?_o[mr]:za[mr];if(ce+=Yr&15,Yr>>>=4,!(Yr>>>8&255))Ae[Fe++]=Yr;else{if(Yr==256)break;Yr-=257;var ot=Yr<8?0:Yr-4>>2;ot>5&&(ot=0);var Bt=Fe+Ar[Yr];ot>0&&(Bt+=Ua(X,ce,ot),ce+=ot),mr=Ua(X,ce,vr),Yr=ge>>>1==1?Sf[mr]:xs[mr],ce+=Yr&15,Yr>>>=4;var ct=Yr<4?0:Yr-2>>1,mt=pt[Yr];for(ct>0&&(mt+=Ua(X,ce,ct),ce+=ct),!ke&&ur>>3]:[Ae.slice(0,Fe),ce+7>>>3]}function Sh(X,ke){var ce=X.slice(X.l||0),ge=G2(ce,ke);return X.l+=ge[1],ge[0]}function Th(X,ke){if(X)typeof console!="undefined"&&console.error(ke);else throw new Error(ke)}function kh(X,ke){var ce=X;pn(ce,0);var ge=[],Ae=[],Fe={FileIndex:ge,FullPaths:Ae};Ie(Fe,{root:ke.root});for(var ur=ce.length-4;(ce[ur]!=80||ce[ur+1]!=75||ce[ur+2]!=5||ce[ur+3]!=6)&&ur>=0;)--ur;ce.l=ur+4,ce.l+=4;var kr=ce.read_shift(2);ce.l+=6;var vr=ce.read_shift(4);for(ce.l=vr,ur=0;ur0&&(ce=ce.slice(0,ce.length-1),ce=ce.slice(0,ce.lastIndexOf("/")+1),Fe.slice(0,ce.length)!=ce););var ur=(ge[1]||"").match(/boundary="(.*?)"/);if(!ur)throw new Error("MAD cannot find boundary");var kr="--"+(ur[1]||""),vr=[],hr=[],mr={FileIndex:vr,FullPaths:hr};Ie(mr);var Yr,ot=0;for(Ae=0;Ae=32&&Bt<128&&++Yr;var mt=Yr>=ot*4/5;Ae.push(ge),Ae.push("Content-Location: "+(ce.root||"file:///C:/SheetJS/")+ur),Ae.push("Content-Transfer-Encoding: "+(mt?"quoted-printable":"base64")),Ae.push("Content-Type: "+$2(kr,ur)),Ae.push(""),Ae.push(mt?Z2(mr):X2(mr))}return Ae.push(ge+`--\r +`),Ae.join(`\r +`)}function Q2(X){var ke={};return Ie(ke,X),ke}function id(X,ke,ce,ge){var Ae=ge&&ge.unsafe;Ae||Ie(X);var Fe=!Ae&&Qr.find(X,ke);if(!Fe){var ur=X.FullPaths[0];ke.slice(0,ur.length)==ur?ur=ke:(ur.slice(-1)!="/"&&(ur+="/"),ur=(ur+ke).replace("//","/")),Fe={name:a(ke),type:2},X.FileIndex.push(Fe),X.FullPaths.push(ur),Ae||Qr.utils.cfb_gc(X)}return Fe.content=ce,Fe.size=ce?ce.length:0,ge&&(ge.CLSID&&(Fe.clsid=ge.CLSID),ge.mt&&(Fe.mt=ge.mt),ge.ct&&(Fe.ct=ge.ct)),Fe}function ey(X,ke){Ie(X);var ce=Qr.find(X,ke);if(ce){for(var ge=0;ge3&&(n=!0),a[i].slice(a[i].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+a[i].slice(a[i].length-1));case"D":r*=24;case"H":r*=60;case"M":if(n)r*=60;else throw new Error("Unsupported ISO Duration Field: M");case"S":break}t+=r*parseInt(a[i],10)}return t}var ea=new Date("2017-02-19T19:06:09.000Z"),pa=isNaN(ea.getFullYear())?new Date("2/19/17"):ea,si=pa.getFullYear()==2017;function mn(e,t){var r=new Date(e);if(si)return t>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):t<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(pa.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var a=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return e.indexOf("Z")>-1&&(i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3)),i}function Yn(e,t){if(j&&Q.isBuffer(e)){if(t){if(e[0]==255&&e[1]==254)return fa(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return fa(O(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder!="undefined")try{if(t){if(e[0]==255&&e[1]==254)return fa(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return fa(new TextDecoder("utf-16be").decode(e.slice(2)))}var r={"\u20AC":"\x80","\u201A":"\x82",\u0192:"\x83","\u201E":"\x84","\u2026":"\x85","\u2020":"\x86","\u2021":"\x87","\u02C6":"\x88","\u2030":"\x89",\u0160:"\x8A","\u2039":"\x8B",\u0152:"\x8C",\u017D:"\x8E","\u2018":"\x91","\u2019":"\x92","\u201C":"\x93","\u201D":"\x94","\u2022":"\x95","\u2013":"\x96","\u2014":"\x97","\u02DC":"\x98","\u2122":"\x99",\u0161:"\x9A","\u203A":"\x9B",\u0153:"\x9C",\u017E:"\x9E",\u0178:"\x9F"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(i){return r[i]||i})}catch(i){}for(var n=[],a=0;a!=e.length;++a)n.push(String.fromCharCode(e[a]));return n.join("")}function xn(e){if(typeof JSON!="undefined"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=xn(e[r]));return t}function On(e,t){for(var r="";r.length3&&_i.indexOf(s)==-1)return r}else if(s.match(/[a-z]/))return r;return n<0||n>8099?r:(a>0||i>1)&&n!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}var Ei=function(){var e="abacaba".split(/(:?b)/i).length==5;return function(r,n,a){if(e||typeof n=="string")return r.split(n);for(var i=r.split(n),s=[i[0]],c=1;c\r +`,ys=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,ci=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,_a=/<[^>]*>/g,ra=In.match(ci)?ci:_a,Fa=/<\w*:/,Oa=/<(\/?)\w+:/;function zt(e,t,r){for(var n={},a=0,i=0;a!==e.length&&!((i=e.charCodeAt(a))===32||i===10||i===13);++a);if(t||(n[0]=e.slice(0,a)),a===e.length)return n;var s=e.match(ys),c=0,d="",p=0,v="",S="",k=1;if(s)for(p=0;p!=s.length;++p){for(S=s[p],i=0;i!=S.length&&S.charCodeAt(i)!==61;++i);for(v=S.slice(0,i).trim();S.charCodeAt(i+1)==32;)++i;for(k=(a=S.charCodeAt(i+1))==34||a==39?1:0,d=S.slice(i+1+k,S.length-k),c=0;c!=v.length&&v.charCodeAt(c)!==58;++c);if(c===v.length)v.indexOf("_")>0&&(v=v.slice(0,v.indexOf("_"))),n[v]=d,r||(n[v.toLowerCase()]=d);else{var A=(c===5&&v.slice(0,5)==="xmlns"?"xmlns":"")+v.slice(c+1);if(n[A]&&v.slice(c-3,c)=="ext")continue;n[A]=d,r||(n[A.toLowerCase()]=d)}}return n}function Ra(e){return e.replace(Oa,"<$1")}var aa={""":'"',"'":"'",">":">","<":"<","&":"&"},Gn=er(aa),Ht=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig,t=/_x([\da-fA-F]{4})_/ig;return function r(n){var a=n+"",i=a.indexOf("-1?16:10))||c}).replace(t,function(c,d){return String.fromCharCode(parseInt(d,16))});var s=a.indexOf("]]>");return r(a.slice(0,i))+a.slice(i+9,s)+r(a.slice(s+3))}}(),Vn=/[&<>'"]/g,Yi=/[\u0000-\u0008\u000b-\u001f]/g;function hn(e){var t=e+"";return t.replace(Vn,function(r){return Gn[r]}).replace(Yi,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function zi(e){return hn(e).replace(/ /g,"_x0020_")}var Ji=/[\u0000-\u001f]/g;function Wi(e){var t=e+"";return t.replace(Vn,function(r){return Gn[r]}).replace(/\n/g,"
").replace(Ji,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function Ii(e){var t=e+"";return t.replace(Vn,function(r){return Gn[r]}).replace(Ji,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}var Qa=function(){var e=/&#(\d+);/g;function t(r,n){return String.fromCharCode(parseInt(n,10))}return function(n){return n.replace(e,t)}}();function Gs(e){return e.replace(/(\r\n|[\r\n])/g," ")}function Rn(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Hi(e){for(var t="",r=0,n=0,a=0,i=0,s=0,c=0;r191&&n<224){s=(n&31)<<6,s|=a&63,t+=String.fromCharCode(s);continue}if(i=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(a&63)<<6|i&63);continue}s=e.charCodeAt(r++),c=((n&7)<<18|(a&63)<<12|(i&63)<<6|s&63)-65536,t+=String.fromCharCode(55296+(c>>>10&1023)),t+=String.fromCharCode(56320+(c&1023))}return t}function ss(e){var t=we(2*e.length),r,n,a=1,i=0,s=0,c;for(n=0;n>>10&1023),r=56320+(r&1023)),s!==0&&(t[i++]=s&255,t[i++]=s>>>8,s=0),t[i++]=r%256,t[i++]=r>>>8;return t.slice(0,i).toString("ucs2")}function fi(e){return z(e,"binary").toString("utf8")}var gi="foo bar baz\xE2\x98\x83\xF0\x9F\x8D\xA3",tn=j&&(fi(gi)==Hi(gi)&&fi||ss(gi)==Hi(gi)&&ss)||Hi,fa=j?function(e){return z(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,a=0;r>6))),t.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,a=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(a>>18&7))),t.push(String.fromCharCode(144+(a>>12&63))),t.push(String.fromCharCode(128+(a>>6&63))),t.push(String.fromCharCode(128+(a&63)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(n&63)))}return t.join("")},Pa=function(){var e={};return function(r,n){var a=r+"|"+(n||"");return e[a]?e[a]:e[a]=new RegExp("<(?:\\w+:)?"+r+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)",n||"")}}(),os=function(){var e=[["nbsp"," "],["middot","\xB7"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,` +`).replace(/<[^>]*>/g,""),a=0;a([\\s\\S]*?)","g")}}(),bs=/<\/?(?:vt:)?variant>/g,ws=/<(?:vt:)([^>]*)>([\s\S]*)"+t+""}function mi(e){return Te(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function jr(e,t,r){return"<"+e+(r!=null?mi(r):"")+(t!=null?(t.match(Ea)?' xml:space="preserve"':"")+">"+t+""}function re(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function Oe(e,t){switch(typeof e){case"string":var r=jr("vt:lpwstr",hn(e));return t&&(r=r.replace(/"/g,"_x0022_")),r;case"number":return jr((e|0)==e?"vt:i4":"vt:r8",hn(String(e)));case"boolean":return jr("vt:bool",e?"true":"false")}if(e instanceof Date)return jr("vt:filetime",re(e));throw new Error("Unable to serialize "+e)}function He(e){if(j&&Q.isBuffer(e))return e.toString("utf8");if(typeof e=="string")return e;if(typeof Uint8Array!="undefined"&&e instanceof Uint8Array)return tn(x(Ye(e)));throw new Error("Bad input format: expected Buffer or string")}var ae=/<(\/?)([^\s?>:\/]+)(?:[\s?:\/][^>]*)?>/mg,Be={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Rr=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Or={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function tt(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),a=e[t+6]&15,i=5;i>=0;--i)a=a*256+e[t+i];return n==2047?a==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,a+=Math.pow(2,52)),r*Math.pow(2,n-52)*a)}function Nt(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,a=0,i=0,s=n?-t:t;isFinite(s)?s==0?a=i=0:(a=Math.floor(Math.log(s)/Math.LN2),i=s*Math.pow(2,52-a),a<=-1023&&(!isFinite(i)||i>4|n}var St=function(e){for(var t=[],r=10240,n=0;n0&&Q.isBuffer(e[0][0])?Q.concat(e[0].map(function(t){return Q.isBuffer(t)?t:z(t)})):St(e)}:St,wt=function(e,t,r){for(var n=[],a=t;a0?wn(e,t+4,t+4+r-1):""},Xn=sa,ia=function(e,t){var r=zn(e,t);return r>0?wn(e,t+4,t+4+r-1):""},Sa=ia,Na=function(e,t){var r=2*zn(e,t);return r>0?wn(e,t+4,t+4+r-1):""},li=Na,Fi=function(t,r){var n=zn(t,r);return n>0?kt(t,r+4,r+4+n):""},xi=Fi,yi=function(e,t){var r=zn(e,t);return r>0?wn(e,t+4,t+4+r):""},Un=yi,ga=function(e,t){return tt(e,t)},bi=ga,ta=function(t){return Array.isArray(t)||typeof Uint8Array!="undefined"&&t instanceof Uint8Array};j&&(Xn=function(t,r){if(!Q.isBuffer(t))return sa(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},Sa=function(t,r){if(!Q.isBuffer(t))return ia(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},li=function(t,r){if(!Q.isBuffer(t))return Na(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},xi=function(t,r){if(!Q.isBuffer(t))return Fi(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},Un=function(t,r){if(!Q.isBuffer(t))return yi(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},bi=function(t,r){return Q.isBuffer(t)?t.readDoubleLE(r):ga(t,r)},ta=function(t){return Q.isBuffer(t)||Array.isArray(t)||typeof Uint8Array!="undefined"&&t instanceof Uint8Array});function Ba(){kt=function(e,t,r){return H.utils.decode(1200,e.slice(t,r)).replace(Ge,"")},wn=function(e,t,r){return H.utils.decode(65001,e.slice(t,r))},Xn=function(e,t){var r=zn(e,t);return r>0?H.utils.decode(Z,e.slice(t+4,t+4+r-1)):""},Sa=function(e,t){var r=zn(e,t);return r>0?H.utils.decode(N,e.slice(t+4,t+4+r-1)):""},li=function(e,t){var r=2*zn(e,t);return r>0?H.utils.decode(1200,e.slice(t+4,t+4+r-1)):""},xi=function(e,t){var r=zn(e,t);return r>0?H.utils.decode(1200,e.slice(t+4,t+4+r)):""},Un=function(e,t){var r=zn(e,t);return r>0?H.utils.decode(65001,e.slice(t+4,t+4+r)):""}}typeof H!="undefined"&&Ba();var ba=function(e,t){return e[t]},Ta=function(e,t){return e[t+1]*256+e[t]},Oi=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},zn=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},ei=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},cs=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Vi(e,t){var r="",n,a,i=[],s,c,d,p;switch(t){case"dbcs":if(p=this.l,j&&Q.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(d=0;d0?ei:cs)(this,this.l),this.l+=4,n):(a=zn(this,this.l),this.l+=4,a);case 8:case-8:if(t==="f")return e==8?a=bi(this,this.l):a=bi([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,a;e=8;case 16:r=Wt(this,this.l,e);break}}return this.l+=e,r}var Vs=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},js=function(e,t,r){e[r]=t&255,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},Dt=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function Zt(e,t,r){var n=0,a=0;if(r==="dbcs"){for(a=0;a!=t.length;++a)Dt(this,t.charCodeAt(a),this.l+2*a);n=2*t.length}else if(r==="sbcs"){if(typeof H!="undefined"&&Z==874)for(a=0;a!=t.length;++a){var i=H.utils.encode(Z,t.charAt(a));this[this.l+a]=i[0]}else for(t=t.replace(/[^\x00-\x7F]/g,"_"),a=0;a!=t.length;++a)this[this.l+a]=t.charCodeAt(a)&255;n=t.length}else if(r==="hex"){for(;a>8}for(;this.l>>=8,this[this.l+1]=t&255;break;case 3:n=3,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255,t>>>=8,this[this.l+2]=t&255;break;case 4:n=4,Vs(this,t,this.l);break;case 8:if(n=8,r==="f"){Nt(this,t,this.l);break}case 16:break;case-4:n=4,js(this,t,this.l);break}return this.l+=n,this}function Fn(e,t){var r=Wt(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function pn(e,t){e.l=t,e.read_shift=Vi,e.chk=Fn,e.write_shift=Zt}function fn(e,t){e.l+=t}function gr(e){var t=we(e);return pn(t,0),t}function ri(e,t,r){if(e){var n,a,i;pn(e,e.l||0);for(var s=e.length,c=0,d=0;e.ln.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n),n=null)},i=function(p){return n&&p=128?1:0)+1,n>=128&&++i,n>=16384&&++i,n>=2097152&&++i;var s=e.next(i);a<=127?s.write_shift(1,a):(s.write_shift(1,(a&127)+128),s.write_shift(1,a>>7));for(var c=0;c!=4;++c)if(n>=128)s.write_shift(1,(n&127)+128),n>>=7;else{s.write_shift(1,n);break}n>0&&ta(r)&&e.push(r)}}function Ds(e,t,r){var n=xn(e);if(t.s?(n.cRel&&(n.c+=t.s.c),n.rRel&&(n.r+=t.s.r)):(n.cRel&&(n.c+=t.c),n.rRel&&(n.r+=t.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function Ho(e,t,r){var n=xn(e);return n.s=Ds(n.s,t.s,r),n.e=Ds(n.e,t.s,r),n}function Is(e,t){if(e.cRel&&e.c<0)for(e=xn(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=xn(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=Kt(e);return!e.cRel&&e.cRel!=null&&(r=Ma(r)),!e.rRel&&e.rRel!=null&&(r=xc(r)),r}function $s(e,t){return e.s.r==0&&!e.s.rRel&&e.e.r==(t.biff>=12?1048575:t.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+Jn(e.s.c)+":"+(e.e.cRel?"":"$")+Jn(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+Zn(e.s.r)+":"+(e.e.rRel?"":"$")+Zn(e.e.r):Is(e.s,t.biff)+":"+Is(e.e,t.biff)}function _s(e){return parseInt(yc(e),10)-1}function Zn(e){return""+(e+1)}function xc(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function yc(e){return e.replace(/\$(\d+)$/,"$1")}function Eo(e){for(var t=Qi(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function Jn(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function Ma(e){return e.replace(/^([A-Z])/,"$$$1")}function Qi(e){return e.replace(/^\$([A-Z])/,"$1")}function fs(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function ca(e){for(var t=0,r=0,n=0;n=48&&a<=57?t=10*t+(a-48):a>=65&&a<=90&&(r=26*r+(a-64))}return{c:r-1,r:t-1}}function Kt(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function wi(e){var t=e.indexOf(":");return t==-1?{s:ca(e),e:ca(e)}:{s:ca(e.slice(0,t)),e:ca(e.slice(t+1))}}function nn(e,t){return typeof t=="undefined"||typeof t=="number"?nn(e.s,e.e):(typeof e!="string"&&(e=Kt(e)),typeof t!="string"&&(t=Kt(t)),e==t?e:e+":"+t)}function _n(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,a=0,i=e.length;for(r=0;n26);++n)r=26*r+a;for(t.s.c=--r,r=0;n9);++n)r=10*r+a;if(t.s.r=--r,n===i||a!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=i&&!((a=e.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(t.e.c=--r,r=0;n!=i&&!((a=e.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;return t.e.r=--r,t}function Cf(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=gn(e.z,r?It(t):t)}catch(n){}try{return e.w=gn((e.XF||{}).numFmtId||(r?14:0),r?It(t):t)}catch(n){return""+t}}function ls(e,t,r){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),e.t=="e"?Ts[e.v]||e.v:t==null?Cf(e,e.v):Cf(e,t))}function Fs(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function Af(e,t,r){var n=r||{},a=e?Array.isArray(e):n.dense;le!=null&&a==null&&(a=le);var i=e||(a?[]:{}),s=0,c=0;if(i&&n.origin!=null){if(typeof n.origin=="number")s=n.origin;else{var d=typeof n.origin=="string"?ca(n.origin):n.origin;s=d.r,c=d.c}i["!ref"]||(i["!ref"]="A1:A1")}var p={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var v=_n(i["!ref"]);p.s.c=v.s.c,p.s.r=v.s.r,p.e.c=Math.max(p.e.c,v.e.c),p.e.r=Math.max(p.e.r,v.e.r),s==-1&&(p.e.r=s=v.e.r+1)}for(var S=0;S!=t.length;++S)if(t[S]){if(!Array.isArray(t[S]))throw new Error("aoa_to_sheet expects an array of arrays");for(var k=0;k!=t[S].length;++k)if(typeof t[S][k]!="undefined"){var A={v:t[S][k]},P=s+S,_=c+k;if(p.s.r>P&&(p.s.r=P),p.s.c>_&&(p.s.c=_),p.e.r0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function Al(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function Dl(e,t){return t||(t=gr(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0),t}function bc(e,t){var r=e.l,n=e.read_shift(1),a=ui(e),i=[],s={t:a,h:a};if(n&1){for(var c=e.read_shift(4),d=0;d!=c;++d)i.push(Al(e));s.r=i}else s.r=[{ich:0,ifnt:0}];return e.l=r+t,s}function wc(e,t){var r=!1;return t==null&&(r=!0,t=gr(15+4*e.t.length)),t.write_shift(1,0),ja(e.t,t),r?t.slice(0,t.l):t}var Il=bc;function _c(e,t){var r=!1;return t==null&&(r=!0,t=gr(23+4*e.t.length)),t.write_shift(1,1),ja(e.t,t),t.write_shift(4,1),Dl({ich:0,ifnt:0},t),r?t.slice(0,t.l):t}function Ri(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function Xs(e,t){return t==null&&(t=gr(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function Os(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function oo(e,t){return t==null&&(t=gr(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var Fl=ui,If=ja;function Ec(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function co(e,t){var r=!1;return t==null&&(r=!0,t=gr(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var So=ui,To=Ec,Es=co;function Zs(e){var t=e.slice(e.l,e.l+4),r=t[0]&1,n=t[0]&2;e.l+=4;var a=n===0?bi([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):ei(t,0)>>2;return r?a/100:a}function Sc(e,t){t==null&&(t=gr(4));var r=0,n=0,a=e*100;if(e==(e|0)&&e>=-(1<<29)&&e<1<<29?n=1:a==(a|0)&&a>=-(1<<29)&&a<1<<29&&(n=1,r=1),n)t.write_shift(-4,((r?a:e)<<2)+(r+2));else throw new Error("unsupported RkNumber "+e)}function Go(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function Tc(e,t){return t||(t=gr(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var Rs=Go,fo=Tc;function ti(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Ks(e,t){return(t||gr(8)).write_shift(8,e,"f")}function Ol(e){var t={},r=e.read_shift(1),n=r>>>1,a=e.read_shift(1),i=e.read_shift(2,"i"),s=e.read_shift(1),c=e.read_shift(1),d=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=a;var p=Ss[a];p&&(t.rgb=ki(p));break;case 2:t.rgb=ki([s,c,d]);break;case 3:t.theme=a;break}return i!=0&&(t.tint=i>0?i/32767:i/32768),t}function Vo(e,t){if(t||(t=gr(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;e.index!=null?(t.write_shift(1,2),t.write_shift(1,e.index)):e.theme!=null?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),!e.rgb||e.theme!=null)t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),t.write_shift(1,parseInt(n.slice(0,2),16)),t.write_shift(1,parseInt(n.slice(2,4),16)),t.write_shift(1,parseInt(n.slice(4,6),16)),t.write_shift(1,255)}return t}function Rl(e){var t=e.read_shift(1);e.l++;var r={fBold:t&1,fItalic:t&2,fUnderline:t&4,fStrikeout:t&8,fOutline:t&16,fShadow:t&32,fCondense:t&64,fExtend:t&128};return r}function Pl(e,t){t||(t=gr(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,r),t.write_shift(1,0),t}function kc(e,t){var r={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},n=e.read_shift(4);switch(n){case 0:return"";case 4294967295:case 4294967294:return r[e.read_shift(4)]||""}if(n>400)throw new Error("Unsupported Clipboard: "+n.toString(16));return e.l-=4,e.read_shift(0,t==1?"lpstr":"lpwstr")}function Nl(e){return kc(e,1)}function Bl(e){return kc(e,2)}var Cc=2,Si=3,jo=11,Ff=12,$o=19,cd=30,Xo=64,ko=65,Zo=71,Of=4096,Ml=4108,Ll=4126,$a=80,Rf=81,Ul=[$a,Rf],Ac={1:{n:"CodePage",t:Cc},2:{n:"Category",t:$a},3:{n:"PresentationFormat",t:$a},4:{n:"ByteCount",t:Si},5:{n:"LineCount",t:Si},6:{n:"ParagraphCount",t:Si},7:{n:"SlideCount",t:Si},8:{n:"NoteCount",t:Si},9:{n:"HiddenCount",t:Si},10:{n:"MultimediaClipCount",t:Si},11:{n:"ScaleCrop",t:jo},12:{n:"HeadingPairs",t:Ml},13:{n:"TitlesOfParts",t:Ll},14:{n:"Manager",t:$a},15:{n:"Company",t:$a},16:{n:"LinksUpToDate",t:jo},17:{n:"CharacterCount",t:Si},19:{n:"SharedDoc",t:jo},22:{n:"HyperlinksChanged",t:jo},23:{n:"AppVersion",t:Si,p:"version"},24:{n:"DigSig",t:ko},26:{n:"ContentType",t:$a},27:{n:"ContentStatus",t:$a},28:{n:"Language",t:$a},29:{n:"Version",t:$a},255:{},2147483648:{n:"Locale",t:$o},2147483651:{n:"Behavior",t:$o},1919054434:{}},Dc={1:{n:"CodePage",t:Cc},2:{n:"Title",t:$a},3:{n:"Subject",t:$a},4:{n:"Author",t:$a},5:{n:"Keywords",t:$a},6:{n:"Comments",t:$a},7:{n:"Template",t:$a},8:{n:"LastAuthor",t:$a},9:{n:"RevNumber",t:$a},10:{n:"EditTime",t:Xo},11:{n:"LastPrinted",t:Xo},12:{n:"CreatedDate",t:Xo},13:{n:"ModifiedDate",t:Xo},14:{n:"PageCount",t:Si},15:{n:"WordCount",t:Si},16:{n:"CharCount",t:Si},17:{n:"Thumbnail",t:Zo},18:{n:"Application",t:$a},19:{n:"DocSecurity",t:Si},255:{},2147483648:{n:"Locale",t:$o},2147483651:{n:"Behavior",t:$o},1919054434:{}},Pf={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},zl=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function Wl(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var Hl=Wl([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Ss=xn(Hl),Ts={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Ic={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},Ko={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Co={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function Fc(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function Gl(e){var t=Fc();if(!e||!e.match)return t;var r={};if((e.match(ra)||[]).forEach(function(n){var a=zt(n);switch(a[0].replace(Fa,"<")){case"0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=r,delete t.calcchains,t}function Oc(e,t){var r=ht(Ko),n=[],a;n[n.length]=In,n[n.length]=jr("Types",null,{xmlns:Be.CT,"xmlns:xsd":Be.xsd,"xmlns:xsi":Be.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(d){return jr("Default",null,{Extension:d[0],ContentType:d[1]})}));var i=function(d){e[d]&&e[d].length>0&&(a=e[d][0],n[n.length]=jr("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:Co[d][t.bookType]||Co[d].xlsx}))},s=function(d){(e[d]||[]).forEach(function(p){n[n.length]=jr("Override",null,{PartName:(p[0]=="/"?"":"/")+p,ContentType:Co[d][t.bookType]||Co[d].xlsx})})},c=function(d){(e[d]||[]).forEach(function(p){n[n.length]=jr("Override",null,{PartName:(p[0]=="/"?"":"/")+p,ContentType:r[d][0]})})};return i("workbooks"),s("sheets"),s("charts"),c("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(c),c("vba"),c("comments"),c("threadedcomments"),c("drawings"),s("metadata"),c("people"),n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var an={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function lo(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function Ao(e,t){var r={"!id":{}};if(!e)return r;t.charAt(0)!=="/"&&(t="/"+t);var n={};return(e.match(ra)||[]).forEach(function(a){var i=zt(a);if(i[0]==="2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function Wn(e,t,r,n,a,i){if(a||(a={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,a.Id="rId"+t,a.Type=n,a.Target=r,i?a.TargetMode=i:[an.HLINK,an.XPATH,an.XMISS].indexOf(a.Type)>-1&&(a.TargetMode="External"),e["!id"][a.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][a.Id]=a,e[("/"+a.Target).replace("//","/")]=a,t}var Vl="application/vnd.oasis.opendocument.spreadsheet";function Ps(e,t){for(var r=He(e),n,a;n=ae.exec(r);)switch(n[3]){case"manifest":break;case"file-entry":if(a=zt(n[0],!1),a.path=="/"&&a.type!==Vl)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(t&&t.WTF)throw n}}function jl(e){var t=[In];t.push(` +`),t.push(` +`);for(var r=0;r +`);return t.push(""),t.join("")}function Rc(e,t,r){return[' +`,' +`,` +`].join("")}function Pc(e,t){return[' +`,' +`,` +`].join("")}function $l(e){var t=[In];t.push(` +`);for(var r=0;r!=e.length;++r)t.push(Rc(e[r][0],e[r][1])),t.push(Pc("",e[r][0]));return t.push(Rc("","Document","pkg")),t.push(""),t.join("")}function Nc(){return'SheetJS '+G.version+""}var Pi=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],Xl=function(){for(var e=new Array(Pi.length),t=0;t]*>([\\s\\S]*?)")}return e}();function Bc(e){var t={};e=tn(e);for(var r=0;r0&&(t[n[1]]=Ht(a[1])),n[2]==="date"&&t[n[1]]&&(t[n[1]]=mn(t[n[1]]))}return t}function Yo(e,t,r,n,a){a[e]!=null||t==null||t===""||(a[e]=t,t=hn(t),n[n.length]=r?jr(e,t,r):va(e,t))}function Nf(e,t){var r=t||{},n=[In,jr("cp:coreProperties",null,{"xmlns:cp":Be.CORE_PROPS,"xmlns:dc":Be.dc,"xmlns:dcterms":Be.dcterms,"xmlns:dcmitype":Be.dcmitype,"xmlns:xsi":Be.xsi})],a={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&Yo("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:re(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a),e.ModifiedDate!=null&&Yo("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:re(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a));for(var i=0;i!=Pi.length;++i){var s=Pi[i],c=r.Props&&r.Props[s[1]]!=null?r.Props[s[1]]:e?e[s[1]]:null;c===!0?c="1":c===!1?c="0":typeof c=="number"&&(c=String(c)),c!=null&&Yo(s[0],c,null,n,a)}return n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var Ys=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],Mc=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function Bf(e,t,r,n){var a=[];if(typeof e=="string")a=Gi(e,n);else for(var i=0;i0)for(var p=0;p!==a.length;p+=2){switch(d=+a[p+1].v,a[p].v){case"Worksheets":case"\u5DE5\u4F5C\u8868":case"\u041B\u0438\u0441\u0442\u044B":case"\u0623\u0648\u0631\u0627\u0642 \u0627\u0644\u0639\u0645\u0644":case"\u30EF\u30FC\u30AF\u30B7\u30FC\u30C8":case"\u05D2\u05DC\u05D9\u05D5\u05E0\u05D5\u05EA \u05E2\u05D1\u05D5\u05D3\u05D4":case"Arbeitsbl\xE4tter":case"\xC7al\u0131\u015Fma Sayfalar\u0131":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de c\xE1lculo":case"Planilhas":case"Regneark":case"Hojas de c\xE1lculo":case"Werkbladen":r.Worksheets=d,r.SheetNames=s.slice(c,c+d);break;case"Named Ranges":case"Rangos con nombre":case"\u540D\u524D\u4ED8\u304D\u4E00\u89A7":case"Benannte Bereiche":case"Navngivne omr\xE5der":r.NamedRanges=d,r.DefinedNames=s.slice(c,c+d);break;case"Charts":case"Diagramme":r.Chartsheets=d,r.ChartNames=s.slice(c,c+d);break}c+=d}}function Lc(e,t,r){var n={};return t||(t={}),e=tn(e),Ys.forEach(function(a){var i=(e.match(Pa(a[0]))||[])[1];switch(a[2]){case"string":i&&(t[a[1]]=Ht(i));break;case"bool":t[a[1]]=i==="true";break;case"raw":var s=e.match(new RegExp("<"+a[0]+"[^>]*>([\\s\\S]*?)"));s&&s.length>0&&(n[a[1]]=s[1]);break}}),n.HeadingPairs&&n.TitlesOfParts&&Bf(n.HeadingPairs,n.TitlesOfParts,t,r),t}function Uc(e){var t=[],r=jr;return e||(e={}),e.Application="SheetJS",t[t.length]=In,t[t.length]=jr("Properties",null,{xmlns:Be.EXT_PROPS,"xmlns:vt":Be.vt}),Ys.forEach(function(n){if(e[n[1]]!==void 0){var a;switch(n[2]){case"string":a=hn(String(e[n[1]]));break;case"bool":a=e[n[1]]?"true":"false";break}a!==void 0&&(t[t.length]=r(n[0],a))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","Worksheets")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map(function(n){return""+hn(n)+""}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}var zc=/<[^>]+>[^<]*/g;function Zl(e,t){var r={},n="",a=e.match(zc);if(a)for(var i=0;i!=a.length;++i){var s=a[i],c=zt(s);switch(c[0]){case"":n=null;break;default:if(s.indexOf(""),p=d[0].slice(4),v=d[1];switch(p){case"lpstr":case"bstr":case"lpwstr":r[n]=Ht(v);break;case"bool":r[n]=Rn(v);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":r[n]=parseInt(v,10);break;case"r4":case"r8":case"decimal":r[n]=parseFloat(v);break;case"filetime":case"date":r[n]=mn(v);break;case"cy":case"error":r[n]=Ht(v);break;default:if(p.slice(-1)=="/")break;t.WTF&&typeof console!="undefined"&&console.warn("Unexpected",s,p,d)}}else if(s.slice(0,2)!=="2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}var Wc={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"},Hc;function Kl(e,t,r){Hc||(Hc=er(Wc)),t=Hc[t]||t,e[t]=r}function Mf(e,t){var r=[];return Te(Wc).map(function(n){for(var a=0;a'+a.join("")+""}function Gc(e){var t=e.read_shift(4),r=e.read_shift(4);return new Date((r/1e7*Math.pow(2,32)+t/1e7-11644473600)*1e3).toISOString().replace(/\.000/,"")}function Jl(e){var t=typeof e=="string"?new Date(Date.parse(e)):e,r=t.getTime()/1e3+11644473600,n=r%Math.pow(2,32),a=(r-n)/Math.pow(2,32);n*=1e7,a*=1e7;var i=n/Math.pow(2,32)|0;i>0&&(n=n%Math.pow(2,32),a+=i);var s=gr(8);return s.write_shift(4,n),s.write_shift(4,a),s}function Js(e,t,r){var n=e.l,a=e.read_shift(0,"lpstr-cp");if(r)for(;e.l-n&3;)++e.l;return a}function qs(e,t,r){var n=e.read_shift(0,"lpwstr");return r&&(e.l+=4-(n.length+1&3)&3),n}function qo(e,t,r){return t===31?qs(e):Js(e,t,r)}function Vc(e,t,r){return qo(e,t,r===!1?0:4)}function Lf(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return qo(e,t,0)}function ql(e){for(var t=e.read_shift(4),r=[],n=0;n!=t;++n){var a=e.l;r[n]=e.read_shift(0,"lpwstr").replace(Ge,""),e.l-a&2&&(e.l+=2)}return r}function Do(e){for(var t=e.read_shift(4),r=[],n=0;n!=t;++n)r[n]=e.read_shift(0,"lpstr-cp").replace(Ge,"");return r}function Ql(e){var t=e.l,r=ec(e,Rf);e[e.l]==0&&e[e.l+1]==0&&e.l-t&2&&(e.l+=2);var n=ec(e,Si);return[r,n]}function eu(e){for(var t=e.read_shift(4),r=[],n=0;n>3<<2),n}function Qo(e){var t=e.read_shift(4),r=e.slice(e.l,e.l+t);return e.l+=t,(t&3)>0&&(e.l+=4-(t&3)&3),r}function Uf(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}function ec(e,t,r){var n=e.read_shift(2),a,i=r||{};if(e.l+=2,t!==Ff&&n!==t&&Ul.indexOf(t)===-1&&!((t&65534)==4126&&(n&65534)==4126))throw new Error("Expected type "+t+" saw "+n);switch(t===Ff?n:t){case 2:return a=e.read_shift(2,"i"),i.raw||(e.l+=2),a;case 3:return a=e.read_shift(4,"i"),a;case 11:return e.read_shift(4)!==0;case 19:return a=e.read_shift(4),a;case 30:return Js(e,n,4).replace(Ge,"");case 31:return qs(e);case 64:return Gc(e);case 65:return Qo(e);case 71:return Uf(e);case 80:return Vc(e,n,!i.raw).replace(Ge,"");case 81:return Lf(e,n).replace(Ge,"");case 4108:return eu(e);case 4126:case 4127:return n==4127?ql(e):Do(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+n)}}function jc(e,t){var r=gr(4),n=gr(4);switch(r.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,t);break;case 5:n=gr(8),n.write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=Jl(t);break;case 31:case 80:for(n=gr(4+2*(t.length+1)+(t.length%2?0:2)),n.write_shift(4,t.length+1),n.write_shift(0,t,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return De([r,n])}function ho(e,t){var r=e.l,n=e.read_shift(4),a=e.read_shift(4),i=[],s=0,c=0,d=-1,p={};for(s=0;s!=a;++s){var v=e.read_shift(4),S=e.read_shift(4);i[s]=[v,S+r]}i.sort(function(xe,ie){return xe[1]-ie[1]});var k={};for(s=0;s!=a;++s){if(e.l!==i[s][1]){var A=!0;if(s>0&&t)switch(t[i[s-1][0]].t){case 2:e.l+2===i[s][1]&&(e.l+=2,A=!1);break;case 80:e.l<=i[s][1]&&(e.l=i[s][1],A=!1);break;case 4108:e.l<=i[s][1]&&(e.l=i[s][1],A=!1);break}if((!t||s==0)&&e.l<=i[s][1]&&(A=!1,e.l=i[s][1]),A)throw new Error("Read Error: Expected address "+i[s][1]+" at "+e.l+" :"+s)}if(t){var P=t[i[s][0]];if(k[P.n]=ec(e,P.t,{raw:!0}),P.p==="version"&&(k[P.n]=String(k[P.n]>>16)+"."+("0000"+String(k[P.n]&65535)).slice(-4)),P.n=="CodePage")switch(k[P.n]){case 0:k[P.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:q(c=k[P.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+k[P.n])}}else if(i[s][0]===1){if(c=k.CodePage=ec(e,Cc),q(c),d!==-1){var _=e.l;e.l=i[d][1],p=Ti(e,c),e.l=_}}else if(i[s][0]===0){if(c===0){d=s,e.l=i[s+1][1];continue}p=Ti(e,c)}else{var U=p[i[s][0]],me;switch(e[e.l]){case 65:e.l+=4,me=Qo(e);break;case 30:e.l+=4,me=Vc(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,me=Vc(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,me=e.read_shift(4,"i");break;case 19:e.l+=4,me=e.read_shift(4);break;case 5:e.l+=4,me=e.read_shift(8,"f");break;case 11:e.l+=4,me=wa(e,4);break;case 64:e.l+=4,me=mn(Gc(e));break;default:throw new Error("unparsed value: "+e[e.l])}k[U]=me}}return e.l=r+n,k}var $c=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function ru(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function zf(e,t,r){var n=gr(8),a=[],i=[],s=8,c=0,d=gr(8),p=gr(8);if(d.write_shift(4,2),d.write_shift(4,1200),p.write_shift(4,1),i.push(d),a.push(p),s+=8+d.length,!t){p=gr(8),p.write_shift(4,0),a.unshift(p);var v=[gr(4)];for(v[0].write_shift(4,e.length),c=0;c-1||Mc.indexOf(e[c][0])>-1)&&e[c][1]!=null){var k=e[c][1],A=0;if(t){A=+t[e[c][0]];var P=r[A];if(P.p=="version"&&typeof k=="string"){var _=k.split(".");k=(+_[0]<<16)+(+_[1]||0)}d=jc(P.t,k)}else{var U=ru(k);U==-1&&(U=31,k=String(k)),d=jc(U,k)}i.push(d),p=gr(8),p.write_shift(4,t?A:2+c),a.push(p),s+=8+d.length}var me=8*(i.length+1);for(c=0;c=12?2:1),a="sbcs-cont",i=N;if(r&&r.biff>=8&&(N=1200),!r||r.biff==8){var s=e.read_shift(1);s&&(a="dbcs-cont")}else r.biff==12&&(a="wstr");r.biff>=2&&r.biff<=5&&(a="cpstr");var c=n?e.read_shift(n,a):"";return N=i,c}function iu(e){var t=N;N=1200;var r=e.read_shift(2),n=e.read_shift(1),a=n&4,i=n&8,s=1+(n&1),c=0,d,p={};i&&(c=e.read_shift(2)),a&&(d=e.read_shift(4));var v=s==2?"dbcs-cont":"sbcs-cont",S=r===0?"":e.read_shift(r,v);return i&&(e.l+=4*c),a&&(e.l+=d),p.t=S,i||(p.raw=""+p.t+"",p.r=p.t),N=t,p}function su(e){var t=e.t||"",r=1,n=gr(3+(r>1?2:0));n.write_shift(2,t.length),n.write_shift(1,(r>1?8:0)|1),r>1&&n.write_shift(2,r);var a=gr(2*t.length);a.write_shift(2*t.length,t,"utf16le");var i=[n,a];return De(i)}function Bs(e,t,r){var n;if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}var a=e.read_shift(1);return a===0?n=e.read_shift(t,"sbcs-cont"):n=e.read_shift(t,"dbcs-cont"),n}function Io(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):Bs(e,n,r)}function Qs(e,t,r){if(r.biff>5)return Io(e,t,r);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function ou(e,t,r){return r||(r=gr(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function cu(e){var t=e.read_shift(1);e.l++;var r=e.read_shift(2);return e.l+=2,[t,r]}function fd(e){var t=e.read_shift(4),r=e.l,n=!1;t>24&&(e.l+=t-24,e.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(n=!0),e.l=r);var a=e.read_shift((n?t-24:t)>>1,"utf16le").replace(Ge,"");return n&&(e.l+=24),a}function Fo(e){for(var t=e.read_shift(2),r="";t-- >0;)r+="../";var n=e.read_shift(0,"lpstr-ansi");if(e.l+=2,e.read_shift(2)!=57005)throw new Error("Bad FileMoniker");var a=e.read_shift(4);if(a===0)return r+n.replace(/\\/g,"/");var i=e.read_shift(4);if(e.read_shift(2)!=3)throw new Error("Bad FileMoniker");var s=e.read_shift(i>>1,"utf16le").replace(Ge,"");return r+s}function fu(e,t){var r=e.read_shift(16);switch(t-=16,r){case"e0c9ea79f9bace118c8200aa004ba90b":return fd(e,t);case"0303000000000000c000000000000046":return Fo(e,t);default:throw new Error("Unsupported Moniker "+r)}}function po(e){var t=e.read_shift(4),r=t>0?e.read_shift(t,"utf16le").replace(Ge,""):"";return r}function Gf(e,t){t||(t=gr(6+e.length*2)),t.write_shift(4,1+e.length);for(var r=0;r-1?31:23;switch(n.charAt(0)){case"#":i=28;break;case".":i&=-3;break}t.write_shift(4,2),t.write_shift(4,i);var s=[8,6815827,6619237,4849780,83];for(r=0;r-1?n.slice(0,a):n;for(t.write_shift(4,2*(c.length+1)),r=0;r-1?n.slice(a+1):"",t)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r8?4:2,a=e.read_shift(n),i=e.read_shift(n,"i"),s=e.read_shift(n,"i");return[a,i,s]}function Vf(e){var t=e.read_shift(2),r=Zs(e);return[t,r]}function vu(e,t,r){e.l+=4,t-=4;var n=e.l+t,a=Ns(e,t,r),i=e.read_shift(2);if(n-=e.l,i!==n)throw new Error("Malformed AddinUdf: padding = "+n+" != "+i);return e.l+=i,a}function ac(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),a=e.read_shift(2);return{s:{c:n,r:t},e:{c:a,r}}}function Oo(e,t){return t||(t=gr(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function jf(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(1),a=e.read_shift(1);return{s:{c:n,r:t},e:{c:a,r}}}var $f=jf;function Ro(e){e.l+=4;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2);return e.l+=12,[r,t,n]}function Xf(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t}function Zf(e){var t={};return e.l+=4,e.cf=e.read_shift(2),t}function hi(e){e.l+=2,e.l+=e.read_shift(2)}var Kf={0:hi,4:hi,5:hi,6:hi,7:Zf,8:hi,9:hi,10:hi,11:hi,12:hi,13:Xf,14:hi,15:hi,16:hi,17:hi,18:hi,19:hi,20:hi,21:Ro};function gu(e,t){for(var r=e.l+t,n=[];e.l=2&&(r.dt=e.read_shift(2),e.l-=2),r.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+r.BIFFVer)}return e.read_shift(t),r}function Ms(e,t,r){var n=1536,a=16;switch(r.bookType){case"biff8":break;case"biff5":n=1280,a=8;break;case"biff4":n=4,a=6;break;case"biff3":n=3,a=6;break;case"biff2":n=2,a=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var i=gr(a);return i.write_shift(2,n),i.write_shift(2,t),a>4&&i.write_shift(2,29282),a>6&&i.write_shift(2,1997),a>8&&(i.write_shift(2,49161),i.write_shift(2,1),i.write_shift(2,1798),i.write_shift(2,0)),i}function mu(e,t){return t===0||e.read_shift(2),1200}function xu(e,t,r){if(r.enc)return e.l+=t,"";var n=e.l,a=Qs(e,0,r);return e.read_shift(t+n-e.l),a}function yu(e,t){var r=!t||t.biff==8,n=gr(r?112:54);for(n.write_shift(t.biff==8?2:1,7),r&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(r?0:536870912));n.l=8?2:1,n=gr(8+r*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),t.biff>=8&&n.write_shift(1,1),n.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var a=n.slice(0,n.l);return a.l=n.l,a}function _u(e,t){for(var r=e.l+t,n=e.read_shift(4),a=e.read_shift(4),i=[],s=0;s!=a&&e.l>15),a&=32767);var i={Unsynced:n&1,DyZero:(n&2)>>1,ExAsc:(n&4)>>2,ExDsc:(n&8)>>3};return[i,a]}function Au(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),a=e.read_shift(2),i=e.read_shift(2),s=e.read_shift(2),c=e.read_shift(2),d=e.read_shift(2),p=e.read_shift(2);return{Pos:[t,r],Dim:[n,a],Flags:i,CurTab:s,FirstTab:c,Selected:d,TabRatio:p}}function Du(){var e=gr(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function Iu(e,t,r){if(r&&r.biff>=2&&r.biff<5)return{};var n=e.read_shift(2);return{RTL:n&64}}function Fu(e){var t=gr(18),r=1718;return e&&e.RTL&&(r|=64),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}function Yf(){}function Ou(e,t,r){var n={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(r&&r.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10;break}return n.name=Ns(e,0,r),n}function Ru(e,t){var r=e.name||"Arial",n=t&&t.biff==5,a=n?15+r.length:16+2*r.length,i=gr(a);return i.write_shift(2,(e.sz||12)*20),i.write_shift(4,0),i.write_shift(2,400),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(1,r.length),n||i.write_shift(1,1),i.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),i}function Pu(e){var t=us(e);return t.isst=e.read_shift(4),t}function Nu(e,t,r,n){var a=gr(10);return eo(e,t,n,a),a.write_shift(4,r),a}function Bu(e,t,r){r.biffguess&&r.biff==2&&(r.biff=5);var n=e.l+t,a=us(e,6);r.biff==2&&e.l++;var i=Io(e,n-e.l,r);return a.val=i,a}function Mu(e,t,r,n,a){var i=!a||a.biff==8,s=gr(8+ +i+(1+i)*r.length);return eo(e,t,n,s),s.write_shift(2,r.length),i&&s.write_shift(1,1),s.write_shift((1+i)*r.length,r,i?"utf16le":"sbcs"),s}function sc(e,t,r){var n=e.read_shift(2),a=Qs(e,0,r);return[n,a]}function Jf(e,t,r,n){var a=r&&r.biff==5;n||(n=gr(a?3+t.length:5+2*t.length)),n.write_shift(2,e),n.write_shift(a?1:2,t.length),a||n.write_shift(1,1),n.write_shift((a?1:2)*t.length,t,a?"sbcs":"utf16le");var i=n.length>n.l?n.slice(0,n.l):n;return i.l==null&&(i.l=i.length),i}var Lu=Qs;function qf(e,t,r){var n=e.l+t,a=r.biff==8||!r.biff?4:2,i=e.read_shift(a),s=e.read_shift(a),c=e.read_shift(2),d=e.read_shift(2);return e.l=n,{s:{r:i,c},e:{r:s,c:d}}}function Uu(e,t){var r=t.biff==8||!t.biff?4:2,n=gr(2*r+6);return n.write_shift(r,e.s.r),n.write_shift(r,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}function zu(e){var t=e.read_shift(2),r=e.read_shift(2),n=Vf(e);return{r:t,c:r,ixfe:n[0],rknum:n[1]}}function Po(e,t){for(var r=e.l+t-2,n=e.read_shift(2),a=e.read_shift(2),i=[];e.l>26],n.cellStyles&&(a.alc=i&7,a.fWrap=i>>3&1,a.alcV=i>>4&7,a.fJustLast=i>>7&1,a.trot=i>>8&255,a.cIndent=i>>16&15,a.fShrinkToFit=i>>20&1,a.iReadOrder=i>>22&2,a.fAtrNum=i>>26&1,a.fAtrFnt=i>>27&1,a.fAtrAlc=i>>28&1,a.fAtrBdr=i>>29&1,a.fAtrPat=i>>30&1,a.fAtrProt=i>>31&1,a.dgLeft=s&15,a.dgRight=s>>4&15,a.dgTop=s>>8&15,a.dgBottom=s>>12&15,a.icvLeft=s>>16&127,a.icvRight=s>>23&127,a.grbitDiag=s>>30&3,a.icvTop=c&127,a.icvBottom=c>>7&127,a.icvDiag=c>>14&127,a.dgDiag=c>>21&15,a.icvFore=d&127,a.icvBack=d>>7&127,a.fsxButton=d>>14&1),a}function Hu(e,t,r){var n={};return n.ifnt=e.read_shift(2),n.numFmtId=e.read_shift(2),n.flags=e.read_shift(2),n.fStyle=n.flags>>2&1,t-=6,n.data=Qf(e,t,n.fStyle,r),n}function el(e,t,r,n){var a=r&&r.biff==5;n||(n=gr(a?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,e.numFmtId||0),n.write_shift(2,t<<4));var i=0;return e.numFmtId>0&&a&&(i|=1024),n.write_shift(4,i),n.write_shift(4,0),a||n.write_shift(4,0),n.write_shift(2,0),n}function ld(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(t[0]!==0&&t[0]--,t[1]!==0&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}function Gu(e){var t=gr(8);return t.write_shift(4,0),t.write_shift(2,e[0]?e[0]+1:0),t.write_shift(2,e[1]?e[1]+1:0),t}function oc(e,t,r){var n=us(e,6);(r.biff==2||t==9)&&++e.l;var a=au(e,2);return n.val=a,n.t=a===!0||a===!1?"b":"e",n}function Vu(e,t,r,n,a,i){var s=gr(8);return eo(e,t,n,s),Hf(r,i,s),s}function ju(e,t,r){r.biffguess&&r.biff==2&&(r.biff=5);var n=us(e,6),a=ti(e,8);return n.val=a,n}function $u(e,t,r,n){var a=gr(14);return eo(e,t,n,a),Ks(r,a),a}var Yc=hu;function Xu(e,t,r){var n=e.l+t,a=e.read_shift(2),i=e.read_shift(2);if(r.sbcch=i,i==1025||i==14849)return[i,a];if(i<1||i>255)throw new Error("Unexpected SupBook type: "+i);for(var s=Bs(e,i),c=[];n>e.l;)c.push(Io(e));return[i,a,s,c]}function Jc(e,t,r){var n=e.read_shift(2),a,i={fBuiltIn:n&1,fWantAdvise:n>>>1&1,fWantPict:n>>>2&1,fOle:n>>>3&1,fOleLink:n>>>4&1,cf:n>>>5&1023,fIcon:n>>>15&1};return r.sbcch===14849&&(a=vu(e,t-2,r)),i.body=a||e.read_shift(t-2),typeof a=="string"&&(i.Name=a),i}var Zu=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function qc(e,t,r){var n=e.l+t,a=e.read_shift(2),i=e.read_shift(1),s=e.read_shift(1),c=e.read_shift(r&&r.biff==2?1:2),d=0;(!r||r.biff>=5)&&(r.biff!=5&&(e.l+=2),d=e.read_shift(2),r.biff==5&&(e.l+=2),e.l+=4);var p=Bs(e,s,r);a&32&&(p=Zu[p.charCodeAt(0)]);var v=n-e.l;r&&r.biff==2&&--v;var S=n==e.l||c===0||!(v>0)?[]:fg(e,v,r,c);return{chKey:i,Name:p,itab:d,rgce:S}}function Ku(e,t,r){if(r.biff<8)return Qc(e,t,r);for(var n=[],a=e.l+t,i=e.read_shift(r.biff>8?4:2);i--!==0;)n.push(pu(e,r.biff>8?12:6,r));if(e.l!=a)throw new Error("Bad ExternSheet: "+e.l+" != "+a);return n}function Qc(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=Ns(e,t,r);return n.charCodeAt(0)==3?n.slice(1):n}function Yu(e,t,r){if(r.biff<8){e.l+=t;return}var n=e.read_shift(2),a=e.read_shift(2),i=Bs(e,n,r),s=Bs(e,a,r);return[i,s]}function Ju(e,t,r){var n=jf(e,6);e.l++;var a=e.read_shift(1);return t-=8,[lg(e,t,r),a,n]}function rl(e,t,r){var n=$f(e,6);switch(r.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[n,og(e,t,r,n)]}function qu(e){var t=e.read_shift(4)!==0,r=e.read_shift(4)!==0,n=e.read_shift(4);return[t,r,n]}function Qu(e,t,r){if(!(r.biff<8)){var n=e.read_shift(2),a=e.read_shift(2),i=e.read_shift(2),s=e.read_shift(2),c=Qs(e,0,r);return r.biff<8&&e.read_shift(1),[{r:n,c:a},c,s,i]}}function e0(e,t,r){return Qu(e,t,r)}function r0(e,t){for(var r=[],n=e.read_shift(2);n--;)r.push(ac(e,t));return r}function tl(e){var t=gr(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r=(v?c:2*c))break}if(a.length!==c&&a.length!==c*2)throw new Error("cchText: "+c+" != "+a.length);return e.l=n+t,{t:a}}catch(k){return e.l=n+t,{t:a}}}function nl(e,t){var r=ac(e,8);e.l+=16;var n=lu(e,t-24);return[r,n]}function n0(e){var t=gr(24),r=ca(e[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),a=0;a<16;++a)t.write_shift(1,parseInt(n[a],16));return De([t,uu(e[1])])}function a0(e,t){e.read_shift(2);var r=ac(e,8),n=e.read_shift((t-10)/2,"dbcs-cont");return n=n.replace(Ge,""),[r,n]}function i0(e){var t=e[1].Tooltip,r=gr(10+2*(t.length+1));r.write_shift(2,2048);var n=ca(e[0]);r.write_shift(2,n.r),r.write_shift(2,n.r),r.write_shift(2,n.c),r.write_shift(2,n.c);for(var a=0;a0;)r.push(Xc(e,8));return r}function tf(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(Xc(e,8));return r}function nf(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t}function il(e,t,r){if(!r.cellStyles)return fn(e,t);var n=r&&r.biff>=12?4:2,a=e.read_shift(n),i=e.read_shift(n),s=e.read_shift(n),c=e.read_shift(n),d=e.read_shift(2);n==2&&(e.l+=2);var p={s:a,e:i,w:s,ixfe:c,flags:d};return(r.biff>=5||!r.biff)&&(p.level=d>>8&7),p}function o0(e,t){var r=gr(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,e.width*256),r.write_shift(2,0);var n=0;return e.hidden&&(n|=1),r.write_shift(1,n),n=e.level||0,r.write_shift(1,n),r.write_shift(2,0),r}function c0(e,t){var r={};return t<32||(e.l+=16,r.header=ti(e,8),r.footer=ti(e,8),e.l+=2),r}function f0(e,t,r){var n={area:!1};if(r.biff!=5)return e.l+=t,n;var a=e.read_shift(1);return e.l+=3,a&16&&(n.area=!0),n}function l0(e){for(var t=gr(2*e),r=0;r1048576&&(_=1e6),S!=2&&(U=v.read_shift(2));var me=v.read_shift(2),xe=d.codepage||1252;S!=2&&(v.l+=16,v.read_shift(1),v[v.l]!==0&&(xe=e[v[v.l]]),v.l+=1,v.l+=2),P&&(v.l+=36);for(var ie=[],rr={},or=Math.min(v.length,S==2?521:U-10-(A?264:0)),qe=P?32:11;v.l0;){if(v[v.l]===42){v.l+=me;continue}for(++v.l,p[++Ie]=[],tr=0,tr=0;tr!=ie.length;++tr){var Qe=v.slice(v.l,v.l+ie[tr].len);v.l+=ie[tr].len,pn(Qe,0);var yr=H.utils.decode(xe,Qe);switch(ie[tr].type){case"C":yr.trim().length&&(p[Ie][tr]=yr.replace(/\s+$/,""));break;case"D":yr.length===8?p[Ie][tr]=new Date(+yr.slice(0,4),+yr.slice(4,6)-1,+yr.slice(6,8)):p[Ie][tr]=yr;break;case"F":p[Ie][tr]=parseFloat(yr.trim());break;case"+":case"I":p[Ie][tr]=P?Qe.read_shift(-4,"i")^2147483648:Qe.read_shift(4,"i");break;case"L":switch(yr.trim().toUpperCase()){case"Y":case"T":p[Ie][tr]=!0;break;case"N":case"F":p[Ie][tr]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+yr+"|")}break;case"M":if(!k)throw new Error("DBF Unexpected MEMO for type "+S.toString(16));p[Ie][tr]="##MEMO##"+(P?parseInt(yr.trim(),10):Qe.read_shift(4));break;case"N":yr=yr.replace(/\u0000/g,"").trim(),yr&&yr!="."&&(p[Ie][tr]=+yr||0);break;case"@":p[Ie][tr]=new Date(Qe.read_shift(-8,"f")-621356832e5);break;case"T":p[Ie][tr]=new Date((Qe.read_shift(4)-2440588)*864e5+Qe.read_shift(4));break;case"Y":p[Ie][tr]=Qe.read_shift(4,"i")/1e4+Qe.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":p[Ie][tr]=-Qe.read_shift(-8,"f");break;case"B":if(A&&ie[tr].len==8){p[Ie][tr]=Qe.read_shift(8,"f");break}case"G":case"P":Qe.l+=ie[tr].len;break;case"0":if(ie[tr].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+ie[tr].type)}}}if(S!=2&&v.l=0&&q(+p.codepage),p.type=="string")throw new Error("Cannot write DBF to JS string");var v=oa(),S=Tl(c,{header:1,raw:!0,cellDates:!0}),k=S[0],A=S.slice(1),P=c["!cols"]||[],_=0,U=0,me=0,xe=1;for(_=0;_250&&(Qe=250),tr=((P[_]||{}).DBF||{}).type,tr=="C"&&P[_].DBF.len>Qe&&(Qe=P[_].DBF.len),Ie=="B"&&tr=="N"&&(Ie="N",qe[_]=P[_].DBF.dec,Qe=P[_].DBF.len),or[_]=Ie=="C"||tr=="N"?Qe:i[Ie]||0,xe+=or[_],rr[_]=Ie}var _r=v.next(32);for(_r.write_shift(4,318902576),_r.write_shift(4,A.length),_r.write_shift(2,296+32*me),_r.write_shift(2,xe),_=0;_<4;++_)_r.write_shift(4,0);for(_r.write_shift(4,0|(+t[Z]||3)<<8),_=0,U=0;_":190,"?":191,"{":223},t=new RegExp("\x1BN("+Te(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(k,A){var P=e[A];return typeof P=="number"?te(P):P},n=function(k,A,P){var _=A.charCodeAt(0)-32<<4|P.charCodeAt(0)-48;return _==59?k:te(_)};e["|"]=254;function a(k,A){switch(A.type){case"base64":return i(ze(k),A);case"binary":return i(k,A);case"buffer":return i(j&&Q.isBuffer(k)?k.toString("binary"):x(k),A);case"array":return i(Yn(k),A)}throw new Error("Unrecognized type "+A.type)}function i(k,A){var P=k.split(/[\n\r]+/),_=-1,U=-1,me=0,xe=0,ie=[],rr=[],or=null,qe={},Ie=[],tr=[],Qe=[],yr=0,_r;for(+A.codepage>=0&&q(+A.codepage);me!==P.length;++me){yr=0;var sr=P[me].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),nt=sr.replace(/;;/g,"\0").split(";").map(function(Xe){return Xe.replace(/\u0000/g,";")}),Ct=nt[0],at;if(sr.length>0)switch(Ct){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":nt[1].charAt(0)=="P"&&rr.push(sr.slice(3).replace(/;;/g,";"));break;case"C":var jt=!1,Rt=!1,En=!1,xt=!1,Lt=-1,Pr=-1;for(xe=1;xe-1&&ie[Lt][Pr];if(!pr||!pr[1])throw new Error("SYLK shared formula cannot find base");ie[_][U][1]=yd(pr[1],{r:_-Lt,c:U-Pr})}break;case"F":var Ke=0;for(xe=1;xe0?(Ie[_].hpt=yr,Ie[_].hpx=Cs(yr)):yr===0&&(Ie[_].hidden=!0);break;default:if(A&&A.WTF)throw new Error("SYLK bad record "+sr)}Ke<1&&(or=null);break;default:if(A&&A.WTF)throw new Error("SYLK bad record "+sr)}}return Ie.length>0&&(qe["!rows"]=Ie),tr.length>0&&(qe["!cols"]=tr),A&&A.sheetRows&&(ie=ie.slice(0,A.sheetRows)),[ie,qe]}function s(k,A){var P=a(k,A),_=P[0],U=P[1],me=so(_,A);return Te(U).forEach(function(xe){me[xe]=U[xe]}),me}function c(k,A){return Fs(s(k,A),A)}function d(k,A,P,_){var U="C;Y"+(P+1)+";X"+(_+1)+";K";switch(k.t){case"n":U+=k.v||0,k.f&&!k.F&&(U+=";E"+B0(k.f,{r:P,c:_}));break;case"b":U+=k.v?"TRUE":"FALSE";break;case"e":U+=k.w||k.v;break;case"d":U+='"'+(k.w||k.v)+'"';break;case"s":U+='"'+k.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return U}function p(k,A){A.forEach(function(P,_){var U="F;W"+(_+1)+" "+(_+1)+" ";P.hidden?U+="0":(typeof P.width=="number"&&!P.wpx&&(P.wpx=ts(P.width)),typeof P.wpx=="number"&&!P.wch&&(P.wch=Xi(P.wpx)),typeof P.wch=="number"&&(U+=Math.round(P.wch))),U.charAt(U.length-1)!=" "&&k.push(U)})}function v(k,A){A.forEach(function(P,_){var U="F;";P.hidden?U+="M0;":P.hpt?U+="M"+20*P.hpt+";":P.hpx&&(U+="M"+20*hs(P.hpx)+";"),U.length>2&&k.push(U+"R"+(_+1))})}function S(k,A){var P=["ID;PWXL;N;E"],_=[],U=_n(k["!ref"]),me,xe=Array.isArray(k),ie=`\r +`;P.push("P;PGeneral"),P.push("F;P0;DG0G8;M255"),k["!cols"]&&p(P,k["!cols"]),k["!rows"]&&v(P,k["!rows"]),P.push("B;Y"+(U.e.r-U.s.r+1)+";X"+(U.e.c-U.s.c+1)+";D"+[U.s.c,U.s.r,U.e.c,U.e.r].join(" "));for(var rr=U.s.r;rr<=U.e.r;++rr)for(var or=U.s.c;or<=U.e.c;++or){var qe=Kt({r:rr,c:or});me=xe?(k[rr]||[])[or]:k[qe],!(!me||me.v==null&&(!me.f||me.F))&&_.push(d(me,k,rr,or,A))}return P.join(ie)+ie+_.join(ie)+ie+"E"+ie}return{to_workbook:c,to_sheet:s,from_sheet:S}}(),ol=function(){function e(i,s){switch(s.type){case"base64":return t(ze(i),s);case"binary":return t(i,s);case"buffer":return t(j&&Q.isBuffer(i)?i.toString("binary"):x(i),s);case"array":return t(Yn(i),s)}throw new Error("Unrecognized type "+s.type)}function t(i,s){for(var c=i.split(` +`),d=-1,p=-1,v=0,S=[];v!==c.length;++v){if(c[v].trim()==="BOT"){S[++d]=[],p=0;continue}if(!(d<0)){var k=c[v].trim().split(","),A=k[0],P=k[1];++v;for(var _=c[v]||"";(_.match(/["]/g)||[]).length&1&&v=0&&P[_].length===0;)--_;for(var U=10,me=0,xe=0;xe<=_;++xe)me=P[xe].indexOf(" "),me==-1?me=P[xe].length:me++,U=Math.max(U,me);for(xe=0;xe<=_;++xe){A[xe]=[];var ie=0;for(e(P[xe].slice(0,U).trim(),A,xe,ie,k),ie=1;ie<=(P[xe].length-U)/10+1;++ie)e(P[xe].slice(U+(ie-1)*10,U+ie*10).trim(),A,xe,ie,k)}return k.sheetRows&&(A=A.slice(0,k.sheetRows)),A}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function a(v){for(var S={},k=!1,A=0,P=0;A0&&yr(),P["!ref"]=nn(_),P}function s(v,S){return!(S&&S.PRN)||S.FS||v.slice(0,4)=="sep="||v.indexOf(" ")>=0||v.indexOf(",")>=0||v.indexOf(";")>=0?i(v,S):so(t(v,S),S)}function c(v,S){var k="",A=S.type=="string"?[0,0,0,0]:Q0(v,S);switch(S.type){case"base64":k=ze(v);break;case"binary":k=v;break;case"buffer":S.codepage==65001?k=v.toString("utf8"):S.codepage&&typeof H!="undefined"?k=H.utils.decode(S.codepage,v):k=j&&Q.isBuffer(v)?v.toString("binary"):x(v);break;case"array":k=Yn(v);break;case"string":k=v;break;default:throw new Error("Unrecognized type "+S.type)}return A[0]==239&&A[1]==187&&A[2]==191?k=tn(k.slice(3)):S.type!="string"&&S.type!="buffer"&&S.codepage==65001?k=tn(k):S.type=="binary"&&typeof H!="undefined"&&S.codepage&&(k=H.utils.decode(S.codepage,H.utils.encode(28591,k))),k.slice(0,19)=="socialcalc:version:"?cl.to_sheet(S.type=="string"?k:tn(k),S):s(k,S)}function d(v,S){return Fs(c(v,S),S)}function p(v){for(var S=[],k=_n(v["!ref"]),A,P=Array.isArray(v),_=k.s.r;_<=k.e.r;++_){for(var U=[],me=k.s.c;me<=k.e.c;++me){var xe=Kt({r:_,c:me});if(A=P?(v[_]||[])[me]:v[xe],!A||A.v==null){U.push(" ");continue}for(var ie=(A.w||(ls(A),A.w)||"").slice(0,10);ie.length<10;)ie+=" ";U.push(ie+(me===0?" ":""))}S.push(U.join(""))}return S.join(` +`)}return{to_workbook:d,to_sheet:c,from_sheet:p}}();function fl(e,t){var r=t||{},n=!!r.WTF;r.WTF=!0;try{var a=af.to_workbook(e,r);return r.WTF=n,a}catch(i){if(r.WTF=n,!i.message.match(/SYLK bad record ID/)&&n)throw i;return vo.to_workbook(e,t)}}var ro=function(){function e(Ue,pr,Ke){if(Ue){pn(Ue,Ue.l||0);for(var Xe=Ke.Enum||Lt;Ue.l=16&&Ue[14]==5&&Ue[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(Ue[2]==2)Ke.Enum=Lt,e(Ue,function(bt,Ua,ms){switch(ms){case 0:Ke.vers=bt,bt>=4096&&(Ke.qpro=!0);break;case 6:Pe=bt;break;case 204:bt&&(pt=bt);break;case 222:pt=bt;break;case 15:case 51:Ke.qpro||(bt[1].v=bt[1].v.slice(1));case 13:case 14:case 16:ms==14&&(bt[2]&112)==112&&(bt[2]&15)>1&&(bt[2]&15)<15&&(bt[1].z=Ke.dateNF||Ir[14],Ke.cellDates&&(bt[1].t="d",bt[1].v=Yt(bt[1].v))),Ke.qpro&&bt[3]>et&&(Xe["!ref"]=nn(Pe),rt[Ar]=Xe,Lr.push(Ar),Xe=Ke.dense?[]:{},Pe={s:{r:0,c:0},e:{r:0,c:0}},et=bt[3],Ar=pt||"Sheet"+(et+1),pt="");var Ws=Ke.dense?(Xe[bt[0].r]||[])[bt[0].c]:Xe[Kt(bt[0])];if(Ws){Ws.t=bt[1].t,Ws.v=bt[1].v,bt[1].z!=null&&(Ws.z=bt[1].z),bt[1].f!=null&&(Ws.f=bt[1].f);break}Ke.dense?(Xe[bt[0].r]||(Xe[bt[0].r]=[]),Xe[bt[0].r][bt[0].c]=bt[1]):Xe[Kt(bt[0])]=bt[1];break;default:}},Ke);else if(Ue[2]==26||Ue[2]==14)Ke.Enum=Pr,Ue[2]==14&&(Ke.qpro=!0,Ue.l=0),e(Ue,function(bt,Ua,ms){switch(ms){case 204:Ar=bt;break;case 22:bt[1].v=bt[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(bt[3]>et&&(Xe["!ref"]=nn(Pe),rt[Ar]=Xe,Lr.push(Ar),Xe=Ke.dense?[]:{},Pe={s:{r:0,c:0},e:{r:0,c:0}},et=bt[3],Ar="Sheet"+(et+1)),qn>0&&bt[0].r>=qn)break;Ke.dense?(Xe[bt[0].r]||(Xe[bt[0].r]=[]),Xe[bt[0].r][bt[0].c]=bt[1]):Xe[Kt(bt[0])]=bt[1],Pe.e.c=0&&q(+Ke.codepage),Ke.type=="string")throw new Error("Cannot write WK1 to JS string");var Xe=oa(),Ar=_n(Ue["!ref"]),pt=Array.isArray(Ue),et=[];st(Xe,0,i(1030)),st(Xe,6,d(Ar));for(var rt=Math.min(Ar.e.r,8191),Lr=Ar.s.r;Lr<=rt;++Lr)for(var un=Zn(Lr),Pe=Ar.s.c;Pe<=Ar.e.c;++Pe){Lr===Ar.s.r&&(et[Pe]=Jn(Pe));var qn=et[Pe]+un,Cn=pt?(Ue[Lr]||[])[Pe]:Ue[qn];if(!(!Cn||Cn.t=="z"))if(Cn.t=="n")(Cn.v|0)==Cn.v&&Cn.v>=-32768&&Cn.v<=32767?st(Xe,13,A(Lr,Pe,Cn.v)):st(Xe,14,_(Lr,Pe,Cn.v));else{var Qn=ls(Cn);st(Xe,15,S(Lr,Pe,Qn.slice(0,239)))}}return st(Xe,1),Xe.end()}function a(Ue,pr){var Ke=pr||{};if(+Ke.codepage>=0&&q(+Ke.codepage),Ke.type=="string")throw new Error("Cannot write WK3 to JS string");var Xe=oa();st(Xe,0,s(Ue));for(var Ar=0,pt=0;Ar8191&&(Ke=8191),pr.write_shift(2,Ke),pr.write_shift(1,Ar),pr.write_shift(1,Xe),pr.write_shift(2,0),pr.write_shift(2,0),pr.write_shift(1,1),pr.write_shift(1,2),pr.write_shift(4,0),pr.write_shift(4,0),pr}function c(Ue,pr,Ke){var Xe={s:{c:0,r:0},e:{c:0,r:0}};return pr==8&&Ke.qpro?(Xe.s.c=Ue.read_shift(1),Ue.l++,Xe.s.r=Ue.read_shift(2),Xe.e.c=Ue.read_shift(1),Ue.l++,Xe.e.r=Ue.read_shift(2),Xe):(Xe.s.c=Ue.read_shift(2),Xe.s.r=Ue.read_shift(2),pr==12&&Ke.qpro&&(Ue.l+=2),Xe.e.c=Ue.read_shift(2),Xe.e.r=Ue.read_shift(2),pr==12&&Ke.qpro&&(Ue.l+=2),Xe.s.c==65535&&(Xe.s.c=Xe.e.c=Xe.s.r=Xe.e.r=0),Xe)}function d(Ue){var pr=gr(8);return pr.write_shift(2,Ue.s.c),pr.write_shift(2,Ue.s.r),pr.write_shift(2,Ue.e.c),pr.write_shift(2,Ue.e.r),pr}function p(Ue,pr,Ke){var Xe=[{c:0,r:0},{t:"n",v:0},0,0];return Ke.qpro&&Ke.vers!=20768?(Xe[0].c=Ue.read_shift(1),Xe[3]=Ue.read_shift(1),Xe[0].r=Ue.read_shift(2),Ue.l+=2):(Xe[2]=Ue.read_shift(1),Xe[0].c=Ue.read_shift(2),Xe[0].r=Ue.read_shift(2)),Xe}function v(Ue,pr,Ke){var Xe=Ue.l+pr,Ar=p(Ue,pr,Ke);if(Ar[1].t="s",Ke.vers==20768){Ue.l++;var pt=Ue.read_shift(1);return Ar[1].v=Ue.read_shift(pt,"utf8"),Ar}return Ke.qpro&&Ue.l++,Ar[1].v=Ue.read_shift(Xe-Ue.l,"cstr"),Ar}function S(Ue,pr,Ke){var Xe=gr(7+Ke.length);Xe.write_shift(1,255),Xe.write_shift(2,pr),Xe.write_shift(2,Ue),Xe.write_shift(1,39);for(var Ar=0;Ar=128?95:pt)}return Xe.write_shift(1,0),Xe}function k(Ue,pr,Ke){var Xe=p(Ue,pr,Ke);return Xe[1].v=Ue.read_shift(2,"i"),Xe}function A(Ue,pr,Ke){var Xe=gr(7);return Xe.write_shift(1,255),Xe.write_shift(2,pr),Xe.write_shift(2,Ue),Xe.write_shift(2,Ke,"i"),Xe}function P(Ue,pr,Ke){var Xe=p(Ue,pr,Ke);return Xe[1].v=Ue.read_shift(8,"f"),Xe}function _(Ue,pr,Ke){var Xe=gr(13);return Xe.write_shift(1,255),Xe.write_shift(2,pr),Xe.write_shift(2,Ue),Xe.write_shift(8,Ke,"f"),Xe}function U(Ue,pr,Ke){var Xe=Ue.l+pr,Ar=p(Ue,pr,Ke);if(Ar[1].v=Ue.read_shift(8,"f"),Ke.qpro)Ue.l=Xe;else{var pt=Ue.read_shift(2);rr(Ue.slice(Ue.l,Ue.l+pt),Ar),Ue.l+=pt}return Ar}function me(Ue,pr,Ke){var Xe=pr&32768;return pr&=-32769,pr=(Xe?Ue:0)+(pr>=8192?pr-16384:pr),(Xe?"":"$")+(Ke?Jn(pr):Zn(pr))}var xe={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},ie=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function rr(Ue,pr){pn(Ue,0);for(var Ke=[],Xe=0,Ar="",pt="",et="",rt="";Ue.lKe.length){console.error("WK1 bad formula parse 0x"+Lr.toString(16)+":|"+Ke.join("|")+"|");return}var Cn=Ke.slice(-Xe);Ke.length-=Xe,Ke.push(xe[Lr][0]+"("+Cn.join(",")+")")}else return Lr<=7?console.error("WK1 invalid opcode "+Lr.toString(16)):Lr<=24?console.error("WK1 unsupported op "+Lr.toString(16)):Lr<=30?console.error("WK1 invalid opcode "+Lr.toString(16)):Lr<=115?console.error("WK1 unsupported function opcode "+Lr.toString(16)):console.error("WK1 unrecognized opcode "+Lr.toString(16))}}Ke.length==1?pr[1].f=""+Ke[0]:console.error("WK1 bad formula parse |"+Ke.join("|")+"|")}function or(Ue){var pr=[{c:0,r:0},{t:"n",v:0},0];return pr[0].r=Ue.read_shift(2),pr[3]=Ue[Ue.l++],pr[0].c=Ue[Ue.l++],pr}function qe(Ue,pr){var Ke=or(Ue,pr);return Ke[1].t="s",Ke[1].v=Ue.read_shift(pr-4,"cstr"),Ke}function Ie(Ue,pr,Ke,Xe){var Ar=gr(6+Xe.length);Ar.write_shift(2,Ue),Ar.write_shift(1,Ke),Ar.write_shift(1,pr),Ar.write_shift(1,39);for(var pt=0;pt=128?95:et)}return Ar.write_shift(1,0),Ar}function tr(Ue,pr){var Ke=or(Ue,pr);Ke[1].v=Ue.read_shift(2);var Xe=Ke[1].v>>1;if(Ke[1].v&1)switch(Xe&7){case 0:Xe=(Xe>>3)*5e3;break;case 1:Xe=(Xe>>3)*500;break;case 2:Xe=(Xe>>3)/20;break;case 3:Xe=(Xe>>3)/200;break;case 4:Xe=(Xe>>3)/2e3;break;case 5:Xe=(Xe>>3)/2e4;break;case 6:Xe=(Xe>>3)/16;break;case 7:Xe=(Xe>>3)/64;break}return Ke[1].v=Xe,Ke}function Qe(Ue,pr){var Ke=or(Ue,pr),Xe=Ue.read_shift(4),Ar=Ue.read_shift(4),pt=Ue.read_shift(2);if(pt==65535)return Xe===0&&Ar===3221225472?(Ke[1].t="e",Ke[1].v=15):Xe===0&&Ar===3489660928?(Ke[1].t="e",Ke[1].v=42):Ke[1].v=0,Ke;var et=pt&32768;return pt=(pt&32767)-16446,Ke[1].v=(1-et*2)*(Ar*Math.pow(2,pt+32)+Xe*Math.pow(2,pt)),Ke}function yr(Ue,pr,Ke,Xe){var Ar=gr(14);if(Ar.write_shift(2,Ue),Ar.write_shift(1,Ke),Ar.write_shift(1,pr),Xe==0)return Ar.write_shift(4,0),Ar.write_shift(4,0),Ar.write_shift(2,65535),Ar;var pt=0,et=0,rt=0,Lr=0;return Xe<0&&(pt=1,Xe=-Xe),et=Math.log2(Xe)|0,Xe/=Math.pow(2,et-31),Lr=Xe>>>0,Lr&2147483648||(Xe/=2,++et,Lr=Xe>>>0),Xe-=Lr,Lr|=2147483648,Lr>>>=0,Xe*=Math.pow(2,32),rt=Xe>>>0,Ar.write_shift(4,rt),Ar.write_shift(4,Lr),et+=16383+(pt?32768:0),Ar.write_shift(2,et),Ar}function _r(Ue,pr){var Ke=Qe(Ue,14);return Ue.l+=pr-14,Ke}function sr(Ue,pr){var Ke=or(Ue,pr),Xe=Ue.read_shift(4);return Ke[1].v=Xe>>6,Ke}function nt(Ue,pr){var Ke=or(Ue,pr),Xe=Ue.read_shift(8,"f");return Ke[1].v=Xe,Ke}function Ct(Ue,pr){var Ke=nt(Ue,14);return Ue.l+=pr-10,Ke}function at(Ue,pr){return Ue[Ue.l+pr-1]==0?Ue.read_shift(pr,"cstr"):""}function jt(Ue,pr){var Ke=Ue[Ue.l++];Ke>pr-1&&(Ke=pr-1);for(var Xe="";Xe.length127?95:Ar}return Ke[Ke.l++]=0,Ke}var Lt={0:{n:"BOF",f:ka},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:c},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:k},14:{n:"NUMBER",f:P},15:{n:"LABEL",f:v},16:{n:"FORMULA",f:U},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:v},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:at},222:{n:"SHEETNAMELP",f:jt},65535:{n:""}},Pr={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:qe},23:{n:"NUMBER17",f:Qe},24:{n:"NUMBER18",f:tr},25:{n:"FORMULA19",f:_r},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:En},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:sr},38:{n:"??"},39:{n:"NUMBER27",f:nt},40:{n:"FORMULA28",f:Ct},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:at},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:Rt},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:a,to_workbook:t}}();function E0(e){var t={},r=e.match(ra),n=0,a=!1;if(r)for(;n!=r.length;++n){var i=zt(r[n]);switch(i[0].replace(/\w*:/g,"")){case"":case"":t.shadow=1;break;case"":break;case"":case"":t.outline=1;break;case"":break;case"":case"":t.strike=1;break;case"":break;case"":case"":t.u=1;break;case"":break;case"":case"":t.b=1;break;case"":break;case"":case"":t.i=1;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":a=!1;break;default:if(i[0].charCodeAt(1)!==47&&!a)throw new Error("Unrecognized rich format "+i[0])}}return t}var S0=function(){var e=Pa("t"),t=Pa("rPr");function r(i){var s=i.match(e);if(!s)return{t:"s",v:""};var c={t:"s",v:Ht(s[1])},d=i.match(t);return d&&(c.s=E0(d[1])),c}var n=/<(?:\w+:)?r>/g,a=/<\/(?:\w+:)?r>/;return function(s){return s.replace(n,"").split(a).map(r).filter(function(c){return c.v})}}(),T0=function(){var t=/(\r\n|\n)/g;function r(a,i,s){var c=[];a.u&&c.push("text-decoration: underline;"),a.uval&&c.push("text-underline-style:"+a.uval+";"),a.sz&&c.push("font-size:"+a.sz+"pt;"),a.outline&&c.push("text-effect: outline;"),a.shadow&&c.push("text-shadow: auto;"),i.push(''),a.b&&(i.push(""),s.push("")),a.i&&(i.push(""),s.push("")),a.strike&&(i.push(""),s.push(""));var d=a.valign||"";return d=="superscript"||d=="super"?d="sup":d=="subscript"&&(d="sub"),d!=""&&(i.push("<"+d+">"),s.push("")),s.push(""),a}function n(a){var i=[[],a.v,[]];return a.v?(a.s&&r(a.s,i[0],i[2]),i[0].join("")+i[1].replace(t,"
")+i[2].join("")):""}return function(i){return i.map(n).join("")}}(),k0=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,ll=/<(?:\w+:)?r>/,C0=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function sf(e,t){var r=t?t.cellHTML:!0,n={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(n.t=Ht(tn(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),n.r=tn(e),r&&(n.h=Wi(n.t))):e.match(ll)&&(n.r=tn(e),n.t=Ht(tn((e.replace(C0,"").match(k0)||[]).join("").replace(ra,""))),r&&(n.h=T0(S0(n.r)))),n):{t:""}}var of=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,ul=/<(?:\w+:)?(?:si|sstItem)>/g,A0=/<\/(?:\w+:)?(?:si|sstItem)>/;function D0(e,t){var r=[],n="";if(!e)return r;var a=e.match(of);if(a){n=a[2].replace(ul,"").split(A0);for(var i=0;i!=n.length;++i){var s=sf(n[i].trim(),t);s!=null&&(r[r.length]=s)}a=zt(a[1]),r.Count=a.count,r.Unique=a.uniqueCount}return r}var I0=/^\s|\s$|[\t\n\r]/;function dl(e,t){if(!t.bookSST)return"";var r=[In];r[r.length]=jr("sst",null,{xmlns:Rr[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var a=e[n],i="";a.r?i+=a.r:(i+=""),i+="",r[r.length]=i}return r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function hl(e){return[e.read_shift(4),e.read_shift(4)]}function o(e,t){var r=[],n=!1;return ri(e,function(i,s,c){switch(c){case 159:r.Count=i[0],r.Unique=i[1];break;case 19:r.push(i);break;case 160:return!0;case 35:n=!0;break;case 36:n=!1;break;default:if(s.T,!n||t.WTF)throw new Error("Unexpected record 0x"+c.toString(16))}}),r}function f(e,t){return t||(t=gr(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var l=wc;function g(e){var t=oa();Fr(t,159,f(e));for(var r=0;r=4&&(e.l+=t-4),r}function F(e){var t={};return t.id=e.read_shift(0,"lpp4"),t.R=w(e,4),t.U=w(e,4),t.W=w(e,4),t}function R(e){for(var t=e.read_shift(4),r=e.l+t-4,n={},a=e.read_shift(4),i=[];a-- >0;)i.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(n.name=e.read_shift(0,"lpp4"),n.comps=i,e.l!=r)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+r);return n}function fe(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(R(e));return t}function Ce(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(e.read_shift(0,"lpp4"));return t}function Ee(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=w(e,4),t.U=w(e,4),t.W=w(e,4),t}function ue(e){var t=Ee(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),e.read_shift(4)!=4)throw new Error("Bad !Primary record");return t}function he(e,t){var r=e.l+t,n={};n.Flags=e.read_shift(4)&63,e.l+=4,n.AlgID=e.read_shift(4);var a=!1;switch(n.AlgID){case 26126:case 26127:case 26128:a=n.Flags==36;break;case 26625:a=n.Flags==4;break;case 0:a=n.Flags==16||n.Flags==4||n.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+n.AlgID}if(!a)throw new Error("Encryption Flags/AlgID mismatch");return n.AlgIDHash=e.read_shift(4),n.KeySize=e.read_shift(4),n.ProviderType=e.read_shift(4),e.l+=8,n.CSPName=e.read_shift(r-e.l>>1,"utf16le"),e.l=r,n}function Le(e,t){var r={},n=e.l+t;return e.l+=4,r.Salt=e.slice(e.l,e.l+16),e.l+=16,r.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),r.VerifierHash=e.slice(e.l,n),e.l=n,r}function ir(e){var t=w(e);switch(t.Minor){case 2:return[t.Minor,zr(e,t)];case 3:return[t.Minor,Gr(e,t)];case 4:return[t.Minor,Zr(e,t)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}function zr(e){var t=e.read_shift(4);if((t&63)!=36)throw new Error("EncryptionInfo mismatch");var r=e.read_shift(4),n=he(e,r),a=Le(e,e.length-e.l);return{t:"Std",h:n,v:a}}function Gr(){throw new Error("File is password-protected: ECMA-376 Extensible")}function Zr(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var r=e.read_shift(e.length-e.l,"utf8"),n={};return r.replace(ra,function(i){var s=zt(i);switch(Ra(s[0])){case"":break;case"":case"":break;case"":break;case"4||n.Major<2)throw new Error("unrecognized major version code: "+n.Major);r.Flags=e.read_shift(4),t-=4;var a=e.read_shift(4);return t-=4,r.EncryptionHeader=he(e,a),t-=a,r.EncryptionVerifier=Le(e,t),r}function _t(e){var t={},r=t.EncryptionVersionInfo=w(e,4);if(r.Major!=1||r.Minor!=1)throw"unrecognized version code "+r.Major+" : "+r.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}function Tt(e){var t=0,r,n=b(e),a=n.length+1,i,s,c,d,p;for(r=we(a),r[0]=n.length,i=1;i!=a;++i)r[i]=n[i-1];for(i=a-1;i>=0;--i)s=r[i],c=t&16384?1:0,d=t<<1&32767,p=c|d,t=p^s;return t^52811}var en=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],r=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],n=function(s){return(s/2|s*128)&255},a=function(s,c){return n(s^c)},i=function(s){for(var c=t[s.length-1],d=104,p=s.length-1;p>=0;--p)for(var v=s[p],S=0;S!=7;++S)v&64&&(c^=r[d]),v*=2,--d;return c};return function(s){for(var c=b(s),d=i(c),p=c.length,v=we(16),S=0;S!=16;++S)v[S]=0;var k,A,P;for((p&1)===1&&(k=d>>8,v[p]=a(e[0],k),--p,k=d&255,A=c[c.length-1],v[p]=a(A,k));p>0;)--p,k=d>>8,v[p]=a(c[p],k),--p,k=d&255,v[p]=a(c[p],k);for(p=15,P=15-c.length;P>0;)k=d>>8,v[p]=a(e[P],k),--p,--P,k=d&255,v[p]=a(c[p],k),--p,--P;return v}}(),Jt=function(e,t,r,n,a){a||(a=t),n||(n=en(e));var i,s;for(i=0;i!=t.length;++i)s=t[i],s^=n[r],s=(s>>5|s<<3)&255,a[i]=s,++r;return[a,r,n]},vn=function(e){var t=0,r=en(e);return function(n){var a=Jt("",n,t,r);return t=a[1],a[0]}};function la(e,t,r,n){var a={key:ka(e),verificationBytes:ka(e)};return r.password&&(a.verifier=Tt(r.password)),n.valid=a.verificationBytes===a.verifier,n.valid&&(n.insitu=vn(r.password)),a}function yn(e,t,r){var n=r||{};return n.Info=e.read_shift(2),e.l-=2,n.Info===1?n.Data=_t(e,t):n.Data=ut(e,t),n}function ua(e,t,r){var n={Type:r.biff>=8?e.read_shift(2):0};return n.Type?yn(e,t-2,n):la(e,r.biff>=8?t:t-2,r,n),n}var La=function(){function e(a,i){switch(i.type){case"base64":return t(ze(a),i);case"binary":return t(a,i);case"buffer":return t(j&&Q.isBuffer(a)?a.toString("binary"):x(a),i);case"array":return t(Yn(a),i)}throw new Error("Unrecognized type "+i.type)}function t(a,i){var s=i||{},c=s.dense?[]:{},d=a.match(/\\trowd.*?\\row\b/g);if(!d.length)throw new Error("RTF missing table");var p={s:{c:0,r:0},e:{c:0,r:d.length-1}};return d.forEach(function(v,S){Array.isArray(c)&&(c[S]=[]);for(var k=/\\\w+\b/g,A=0,P,_=-1;P=k.exec(v);){switch(P[0]){case"\\cell":var U=v.slice(A,k.lastIndex-P[0].length);if(U[0]==" "&&(U=U.slice(1)),++_,U.length){var me={v:U,t:"s"};Array.isArray(c)?c[S][_]=me:c[Kt({r:S,c:_})]=me}break}A=k.lastIndex}_>p.e.c&&(p.e.c=_)}),c["!ref"]=nn(p),c}function r(a,i){return Fs(e(a,i),i)}function n(a){for(var i=["{\\rtf1\\ansi"],s=_n(a["!ref"]),c,d=Array.isArray(a),p=s.s.r;p<=s.e.r;++p){i.push("\\trowd\\trautofit1");for(var v=s.s.c;v<=s.e.c;++v)i.push("\\cellx"+(v+1));for(i.push("\\pard\\intbl"),v=s.s.c;v<=s.e.c;++v){var S=Kt({r:p,c:v});c=d?(a[p]||[])[v]:a[S],!(!c||c.v==null&&(!c.f||c.F))&&(i.push(" "+(c.w||(ls(c),c.w))),i.push("\\cell"))}i.push("\\pard\\intbl\\row")}return i.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:n}}();function ni(e){var t=e.slice(e[0]==="#"?1:0).slice(0,6);return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function ki(e){for(var t=0,r=1;t!=3;++t)r=r*256+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}function rs(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.max(t,r,n),i=Math.min(t,r,n),s=a-i;if(s===0)return[0,0,t];var c=0,d=0,p=a+i;switch(d=s/(p>1?2-p:p),a){case t:c=((r-n)/s+6)%6;break;case r:c=(n-t)/s+2;break;case n:c=(t-r)/s+4;break}return[c/6,d,p/2]}function Ni(e){var t=e[0],r=e[1],n=e[2],a=r*2*(n<.5?n:1-n),i=n-a/2,s=[i,i,i],c=6*t,d;if(r!==0)switch(c|0){case 0:case 6:d=a*c,s[0]+=a,s[1]+=d;break;case 1:d=a*(2-c),s[0]+=d,s[1]+=a;break;case 2:d=a*(c-2),s[1]+=a,s[2]+=d;break;case 3:d=a*(4-c),s[1]+=d,s[2]+=a;break;case 4:d=a*(c-4),s[2]+=a,s[0]+=d;break;case 5:d=a*(6-c),s[2]+=d,s[0]+=a;break}for(var p=0;p!=3;++p)s[p]=Math.round(s[p]*255);return s}function Bi(e,t){if(t===0)return e;var r=rs(ni(e));return t<0?r[2]=r[2]*(1+t):r[2]=1-(1-r[2])*(1-t),ki(Ni(r))}var Xa=6,Ls=15,ds=1,Ca=Xa;function ts(e){return Math.floor((e+Math.round(128/Ca)/256)*Ca)}function Xi(e){return Math.floor((e-5)/Ca*100+.5)/100}function Mi(e){return Math.round((e*Ca+5)/Ca*256)/256}function ks(e){return Mi(Xi(ts(e)))}function go(e){var t=Math.abs(e-ks(e)),r=Ca;if(t>.005)for(Ca=ds;Ca":case"":break;case"":case"":a={},c.diagonalUp&&(a.diagonalUp=Rn(c.diagonalUp)),c.diagonalDown&&(a.diagonalDown=Rn(c.diagonalDown)),t.Borders.push(a);break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":break;case"":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+c[0]+" in borders")}})}function F0(e,t,r,n){t.Fills=[];var a={},i=!1;(e[0].match(ra)||[]).forEach(function(s){var c=zt(s);switch(Ra(c[0])){case"":case"":break;case"":case"":a={},t.Fills.push(a);break;case"":break;case"":break;case"":t.Fills.push(a),a={};break;case"":c.patternType&&(a.patternType=c.patternType);break;case"":case"":break;case"":case"":break;case"":case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+c[0]+" in fills")}})}function dc(e,t,r,n){t.Fonts=[];var a={},i=!1;(e[0].match(ra)||[]).forEach(function(s){var c=zt(s);switch(Ra(c[0])){case"":case"":break;case"":break;case"":case"":t.Fonts.push(a),a={};break;case"":case"":break;case"":a.bold=1;break;case"":a.italic=1;break;case"":a.underline=1;break;case"":a.strike=1;break;case"":a.outline=1;break;case"":a.shadow=1;break;case"":a.condense=1;break;case"":a.extend=1;break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":i=!1;break;case"":case"":break;case"":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+c[0]+" in fonts")}})}function O0(e,t,r){t.NumberFmt=[];for(var n=Te(Ir),a=0;a":case"":case"":break;case"0){if(d>392){for(d=392;d>60&&t.NumberFmt[d]!=null;--d);t.NumberFmt[d]=c}ln(c,d)}}break;case"":break;default:if(r.WTF)throw new Error("unrecognized "+s[0]+" in numFmts")}}}function vl(e){var t=[""];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)e[n]!=null&&(t[t.length]=jr("numFmt",null,{numFmtId:n,formatCode:hn(e[n])}))}),t.length===1?"":(t[t.length]="",t[0]=jr("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}var mo=["numFmtId","fillId","fontId","borderId","xfId"],to=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function gl(e,t,r){t.CellXf=[];var n,a=!1;(e[0].match(ra)||[]).forEach(function(i){var s=zt(i),c=0;switch(Ra(s[0])){case"":case"":case"":break;case"":for(n=s,delete n[0],c=0;c392){for(c=392;c>60;--c)if(t.NumberFmt[n.numFmtId]==t.NumberFmt[c]){n.numFmtId=c;break}}t.CellXf.push(n);break;case"":break;case"":var d={};s.vertical&&(d.vertical=s.vertical),s.horizontal&&(d.horizontal=s.horizontal),s.textRotation!=null&&(d.textRotation=s.textRotation),s.indent&&(d.indent=s.indent),s.wrapText&&(d.wrapText=Rn(s.wrapText)),n.alignment=d;break;case"":break;case"":case"":break;case"":a=!1;break;case"":case"":break;case"":a=!1;break;default:if(r&&r.WTF&&!a)throw new Error("unrecognized "+s[0]+" in cellXfs")}})}function cf(e){var t=[];return t[t.length]=jr("cellXfs",null),e.forEach(function(r){t[t.length]=jr("xf",null,r)}),t[t.length]="",t.length===2?"":(t[0]=jr("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}var ff=function(){var t=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,r=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,a=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,i=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(c,d,p){var v={};if(!c)return v;c=c.replace(//mg,"").replace(//gm,"");var S;return(S=c.match(t))&&O0(S,v,p),(S=c.match(a))&&dc(S,v,d,p),(S=c.match(n))&&F0(S,v,d,p),(S=c.match(i))&&pl(S,v,d,p),(S=c.match(r))&&gl(S,v,p),v}}();function ml(e,t){var r=[In,jr("styleSheet",null,{xmlns:Rr[0],"xmlns:vt":Be.vt})],n;return e.SSF&&(n=vl(e.SSF))!=null&&(r[r.length]=n),r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',(n=cf(t.cellXfs))&&(r[r.length]=n),r[r.length]='',r[r.length]='',r[r.length]='',r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function Mo(e,t){var r=e.read_shift(2),n=ui(e,t-2);return[r,n]}function lf(e,t,r){r||(r=gr(6+4*t.length)),r.write_shift(2,e),ja(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function Ih(e,t,r){var n={};n.sz=e.read_shift(2)/20;var a=Rl(e,2,r);a.fItalic&&(n.italic=1),a.fCondense&&(n.condense=1),a.fExtend&&(n.extend=1),a.fShadow&&(n.shadow=1),a.fOutline&&(n.outline=1),a.fStrikeout&&(n.strike=1);var i=e.read_shift(2);switch(i===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var s=e.read_shift(1);s!=0&&(n.underline=s);var c=e.read_shift(1);c>0&&(n.family=c);var d=e.read_shift(1);switch(d>0&&(n.charset=d),e.l++,n.color=Ol(e,8),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=ui(e,t-21),n}function Fh(e,t){t||(t=gr(25+4*32)),t.write_shift(2,e.sz*20),Pl(e,t),t.write_shift(2,e.bold?700:400);var r=0;e.vertAlign=="superscript"?r=1:e.vertAlign=="subscript"&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),Vo(e.color,t);var n=0;return e.scheme=="major"&&(n=1),e.scheme=="minor"&&(n=2),t.write_shift(1,n),ja(e.name,t),t.length>t.l?t.slice(0,t.l):t}var Oh=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],R0,Rh=fn;function ud(e,t){t||(t=gr(4*3+8*7+16*1)),R0||(R0=er(Oh));var r=R0[e.patternType];r==null&&(r=40),t.write_shift(4,r);var n=0;if(r!=40)for(Vo({auto:1},t),Vo({auto:1},t);n<12;++n)t.write_shift(4,0);else{for(;n<4;++n)t.write_shift(4,0);for(;n<12;++n)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function Ph(e,t){var r=e.l+t,n=e.read_shift(2),a=e.read_shift(2);return e.l=r,{ixfe:n,numFmtId:a}}function dd(e,t,r){r||(r=gr(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var n=0;return r.write_shift(1,n),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function uf(e,t){return t||(t=gr(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var Nh=fn;function Bh(e,t){return t||(t=gr(51)),t.write_shift(1,0),uf(null,t),uf(null,t),uf(null,t),uf(null,t),uf(null,t),t.length>t.l?t.slice(0,t.l):t}function Mh(e,t){return t||(t=gr(12+4*10)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,+e.builtinId),t.write_shift(1,0),co(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function Lh(e,t,r){var n=gr(2052);return n.write_shift(4,e),co(t,n),co(r,n),n.length>n.l?n.slice(0,n.l):n}function Uh(e,t,r){var n={};n.NumberFmt=[];for(var a in Ir)n.NumberFmt[a]=Ir[a];n.CellXf=[],n.Fonts=[];var i=[],s=!1;return ri(e,function(d,p,v){switch(v){case 44:n.NumberFmt[d[0]]=d[1],ln(d[1],d[0]);break;case 43:n.Fonts.push(d),d.color.theme!=null&&t&&t.themeElements&&t.themeElements.clrScheme&&(d.color.rgb=Bi(t.themeElements.clrScheme[d.color.theme].rgb,d.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:i[i.length-1]==617&&n.CellXf.push(d);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:i.push(v),s=!0;break;case 38:i.pop(),s=!1;break;default:if(p.T>0)i.push(v);else if(p.T<0)i.pop();else if(!s||r.WTF&&i[i.length-1]!=37)throw new Error("Unexpected record 0x"+v.toString(16))}}),n}function zh(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&++r}),r!=0&&(Fr(e,615,es(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&Fr(e,44,lf(a,t[a]))}),Fr(e,616))}}function Wh(e){var t=1;t!=0&&(Fr(e,611,es(t)),Fr(e,43,Fh({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),Fr(e,612))}function Hh(e){var t=2;t!=0&&(Fr(e,603,es(t)),Fr(e,45,ud({patternType:"none"})),Fr(e,45,ud({patternType:"gray125"})),Fr(e,604))}function Gh(e){var t=1;t!=0&&(Fr(e,613,es(t)),Fr(e,46,Bh({})),Fr(e,614))}function Vh(e){var t=1;Fr(e,626,es(t)),Fr(e,47,dd({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),Fr(e,627)}function jh(e,t){Fr(e,617,es(t.length)),t.forEach(function(r){Fr(e,47,dd(r,0))}),Fr(e,618)}function $h(e){var t=1;Fr(e,619,es(t)),Fr(e,48,Mh({xfId:0,builtinId:0,name:"Normal"})),Fr(e,620)}function Xh(e){var t=0;Fr(e,505,es(t)),Fr(e,506)}function Zh(e){var t=0;Fr(e,508,Lh(t,"TableStyleMedium9","PivotStyleMedium4")),Fr(e,509)}function cy(){}function Kh(e,t){var r=oa();return Fr(r,278),zh(r,e.SSF),Wh(r,e),Hh(r,e),Gh(r,e),Vh(r,e),jh(r,t.cellXfs),$h(r,e),Xh(r,e),Zh(r,e),Fr(r,279),r.end()}var Yh=["","","","","","","","","","","",""];function Jh(e,t,r){t.themeElements.clrScheme=[];var n={};(e[0].match(ra)||[]).forEach(function(a){var i=zt(a);switch(i[0]){case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":i[0].charAt(1)==="/"?(t.themeElements.clrScheme[Yh.indexOf(i[0])]=n,n={}):n.name=i[0].slice(3,i[0].length-1);break;default:if(r&&r.WTF)throw new Error("Unrecognized "+i[0]+" in clrScheme")}})}function qh(){}function Qh(){}var ep=/]*)>[\s\S]*<\/a:clrScheme>/,rp=/]*)>[\s\S]*<\/a:fontScheme>/,tp=/]*)>[\s\S]*<\/a:fmtScheme>/;function np(e,t,r){t.themeElements={};var n;[["clrScheme",ep,Jh],["fontScheme",rp,qh],["fmtScheme",tp,Qh]].forEach(function(a){if(!(n=e.match(a[1])))throw new Error(a[0]+" not found in themeElements");a[2](n,t,r)})}var ap=/]*)>[\s\S]*<\/a:themeElements>/;function hd(e,t){(!e||e.length===0)&&(e=P0());var r,n={};if(!(r=e.match(ap)))throw new Error("themeElements not found in theme");return np(r[0],n,t),n.raw=e,n}function P0(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[In];return r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r.join("")}function ip(e,t,r){var n=e.l+t,a=e.read_shift(4);if(a!==124226){if(!r.cellStyles){e.l=n;return}var i=e.slice(e.l);e.l=n;var s;try{s=ya(i,{type:"array"})}catch(d){return}var c=xa(s,"theme/theme/theme1.xml",!0);if(c)return hd(c,r)}}function sp(e){return e.read_shift(4)}function op(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:e.l+=4;break;case 1:t.xclrValue=cp(e,4);break;case 2:t.xclrValue=nc(e,4);break;case 3:t.xclrValue=sp(e,4);break;case 4:e.l+=4;break}return e.l+=8,t}function cp(e,t){return fn(e,t)}function fp(e,t){return fn(e,t)}function lp(e){var t=e.read_shift(2),r=e.read_shift(2)-4,n=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:n[1]=op(e,r);break;case 6:n[1]=fp(e,r);break;case 14:case 15:n[1]=e.read_shift(r===1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+r)}return n}function up(e,t){var r=e.l+t;e.l+=2;var n=e.read_shift(2);e.l+=2;for(var a=e.read_shift(2),i=[];a-- >0;)i.push(lp(e,r-e.l));return{ixfe:n,ext:i}}function dp(e,t){t.forEach(function(r){switch(r[0]){case 4:break;case 5:break;case 6:break;case 7:break;case 8:break;case 9:break;case 10:break;case 11:break;case 13:break;case 14:break;case 15:break}})}function hp(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:ui(e,t-8)}}function pp(e){var t=gr(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),ja(e.name,t),t.slice(0,t.l)}function vp(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function gp(e){var t=gr(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":i=2;break;case"":i=2;break;case"":case"":case"":break;case"":a=!1;break;case" + + + + + + + + + + + + + + + + + +`),e.join("")}function Ep(e){var t=[];if(!e)return t;var r=1;return(e.match(ra)||[]).forEach(function(n){var a=zt(n);switch(a[0]){case"":case"":break;case"]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][r].Target}var hc=1024;function vd(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),a=[jr("xml",null,{"xmlns:v":Or.v,"xmlns:o":Or.o,"xmlns:x":Or.x,"xmlns:mv":Or.mv}).replace(/\/>/,">"),jr("o:shapelayout",jr("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),jr("v:shapetype",[jr("v:stroke",null,{joinstyle:"miter"}),jr("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];hc",p,jr("v:shadow",null,v),jr("v:path",null,{"o:connecttype":"none"}),'
','',"","",va("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),va("x:AutoFill","False"),va("x:Row",String(s.r)),va("x:Column",String(s.c)),i[1].hidden?"":"","",""])}),a.push(""),a.join("")}function gd(e,t,r,n){var a=Array.isArray(e),i;t.forEach(function(s){var c=ca(s.ref);if(a?(e[c.r]||(e[c.r]=[]),i=e[c.r][c.c]):i=e[s.ref],!i){i={t:"z"},a?e[c.r][c.c]=i:e[s.ref]=i;var d=_n(e["!ref"]||"BDWGO1000001:A1");d.s.r>c.r&&(d.s.r=c.r),d.e.rc.c&&(d.s.c=c.c),d.e.c=0;--S){if(!r&&i.c[S].T)return;r&&!i.c[S].T&&i.c.splice(S,1)}if(r&&n){for(S=0;S/))return[];var r=[],n=[],a=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);a&&a[1]&&a[1].split(/<\/\w*:?author>/).forEach(function(s){if(!(s===""||s.trim()==="")){var c=s.match(/<(?:\w+:)?author[^>]*>(.*)/);c&&r.push(c[1])}});var i=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return i&&i[1]&&i[1].split(/<\/\w*:?comment>/).forEach(function(s){if(!(s===""||s.trim()==="")){var c=s.match(/<(?:\w+:)?comment[^>]*>/);if(c){var d=zt(c[0]),p={author:d.authorId&&r[d.authorId]||"sheetjsghost",ref:d.ref,guid:d.guid},v=ca(d.ref);if(!(t.sheetRows&&t.sheetRows<=v.r)){var S=s.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),k=!!S&&!!S[1]&&sf(S[1])||{r:"",t:"",h:""};p.r=k.r,k.r==""&&(k.t=k.h=""),p.t=(k.t||"").replace(/\r\n/g,` +`).replace(/\r/g,` +`),t.cellHTML&&(p.h=k.h),n.push(p)}}}}),n}function md(e){var t=[In,jr("comments",null,{xmlns:Rr[0]})],r=[];return t.push(""),e.forEach(function(n){n[1].forEach(function(a){var i=hn(a.a);r.indexOf(i)==-1&&(r.push(i),t.push(""+i+"")),a.T&&a.ID&&r.indexOf("tc="+a.ID)==-1&&(r.push("tc="+a.ID),t.push("tc="+a.ID+""))})}),r.length==0&&(r.push("SheetJ5"),t.push("SheetJ5")),t.push(""),t.push(""),e.forEach(function(n){var a=0,i=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?a=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(d){d.a&&(a=r.indexOf(hn(d.a))),i.push(d.t||"")}),t.push(''),i.length<=1)t.push(va("t",hn(i[0]||"")));else{for(var s=`Comment: + `+i[0]+` +`,c=1;c")}),t.push(""),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function Dp(e,t){var r=[],n=!1,a={},i=0;return e.replace(ra,function(c,d){var p=zt(c);switch(Ra(p[0])){case"":break;case"":a.t!=null&&r.push(a);break;case"":case"":a.t=e.slice(i,d).replace(/\r\n/g,` +`).replace(/\r/g,` +`);break;case"":n=!0;break;case"":n=!1;break;case"":case"
":case"":break;case"":n=!1;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+p[0]+" in threaded comments")}return c}),r}function Ip(e,t,r){var n=[In,jr("ThreadedComments",null,{xmlns:Be.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(a){var i="";(a[1]||[]).forEach(function(s,c){if(!s.T){delete s.ID;return}s.a&&t.indexOf(s.a)==-1&&t.push(s.a);var d={ref:a[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};c==0?i=d.id:d.parentId=i,s.ID=d.id,s.a&&(d.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(s.a)).slice(-12)+"}"),n.push(jr("threadedComment",va("text",s.t||""),d))})}),n.push(""),n.join("")}function Fp(e,t){var r=[],n=!1;return e.replace(ra,function(i){var s=zt(i);switch(Ra(s[0])){case"":break;case"":break;case"":case"":case"":break;case"":n=!1;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+s[0]+" in threaded comments")}return i}),r}function Op(e){var t=[In,jr("personList",null,{xmlns:Be.TCMNT,"xmlns:x":Rr[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push(jr("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push(""),t.join("")}function Rp(e){var t={};t.iauthor=e.read_shift(4);var r=Rs(e,16);return t.rfx=r.s,t.ref=Kt(r.s),e.l+=16,t}function Pp(e,t){return t==null&&(t=gr(36)),t.write_shift(4,e[1].iauthor),fo(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var Np=ui;function Bp(e){return ja(e.slice(0,54))}function Mp(e,t){var r=[],n=[],a={},i=!1;return ri(e,function(c,d,p){switch(p){case 632:n.push(c);break;case 635:a=c;break;case 637:a.t=c.t,a.h=c.h,a.r=c.r;break;case 636:if(a.author=n[a.iauthor],delete a.iauthor,t.sheetRows&&a.rfx&&t.sheetRows<=a.rfx.r)break;a.t||(a.t=""),delete a.rfx,r.push(a);break;case 3072:break;case 35:i=!0;break;case 36:i=!1;break;case 37:break;case 38:break;default:if(!d.T){if(!i||t.WTF)throw new Error("Unexpected record 0x"+p.toString(16))}}}),r}function Lp(e){var t=oa(),r=[];return Fr(t,628),Fr(t,630),e.forEach(function(n){n[1].forEach(function(a){r.indexOf(a.a)>-1||(r.push(a.a.slice(0,54)),Fr(t,632,Bp(a.a)))})}),Fr(t,631),Fr(t,633),e.forEach(function(n){n[1].forEach(function(a){a.iauthor=r.indexOf(a.a);var i={s:ca(n[0]),e:ca(n[0])};Fr(t,635,Pp([i,a])),a.t&&a.t.length>0&&Fr(t,637,_c(a)),Fr(t,636),delete a.iauthor})}),Fr(t,634),Fr(t,629),t.end()}var Up="application/vnd.ms-office.vbaProject";function zp(e){var t=Qr.utils.cfb_new({root:"R"});return e.FullPaths.forEach(function(r,n){if(!(r.slice(-1)==="/"||!r.match(/_VBA_PROJECT_CUR/))){var a=r.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");Qr.utils.cfb_add(t,a,e.FileIndex[n].content)}}),Qr.write(t)}function Wp(e,t){t.FullPaths.forEach(function(r,n){if(n!=0){var a=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");a.slice(-1)!=="/"&&Qr.utils.cfb_add(e,a,t.FileIndex[n].content)}})}var xd=["xlsb","xlsm","xlam","biff8","xla"];function Hp(){return{"!type":"dialog"}}function Gp(){return{"!type":"dialog"}}function Vp(){return{"!type":"macro"}}function jp(){return{"!type":"macro"}}var pc=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(n,a,i,s){var c=!1,d=!1;i.length==0?d=!0:i.charAt(0)=="["&&(d=!0,i=i.slice(1,-1)),s.length==0?c=!0:s.charAt(0)=="["&&(c=!0,s=s.slice(1,-1));var p=i.length>0?parseInt(i,10)|0:0,v=s.length>0?parseInt(s,10)|0:0;return c?v+=t.c:--v,d?p+=t.r:--p,a+(c?"":"$")+Jn(v)+(d?"":"$")+Zn(p)}return function(a,i){return t=i,a.replace(e,r)}}(),N0=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,B0=function(){return function(t,r){return t.replace(N0,function(n,a,i,s,c,d){var p=Eo(s)-(i?0:r.c),v=_s(d)-(c?0:r.r),S=v==0?"":c?v+1:"["+v+"]",k=p==0?"":i?p+1:"["+p+"]";return a+"R"+S+"C"+k})}}();function yd(e,t){return e.replace(N0,function(r,n,a,i,s,c){return n+(a=="$"?a+i:Jn(Eo(i)+t.c))+(s=="$"?s+c:Zn(_s(c)+t.r))})}function $p(e,t,r){var n=wi(t),a=n.s,i=ca(r),s={r:i.r-a.r,c:i.c-a.c};return yd(e,s)}function Xp(e){return e.length!=1}function bd(e){return e.replace(/_xlfn\./g,"")}function Za(e){e.l+=1}function xo(e,t){var r=e.read_shift(t==1?1:2);return[r&16383,r>>14&1,r>>15&1]}function wd(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return _d(e,t,r);r.biff==12&&(n=4)}var a=e.read_shift(n),i=e.read_shift(n),s=xo(e,2),c=xo(e,2);return{s:{r:a,c:s[0],cRel:s[1],rRel:s[2]},e:{r:i,c:c[0],cRel:c[1],rRel:c[2]}}}function _d(e){var t=xo(e,2),r=xo(e,2),n=e.read_shift(1),a=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:a,cRel:r[1],rRel:r[2]}}}function Zp(e,t,r){if(r.biff<8)return _d(e,t,r);var n=e.read_shift(r.biff==12?4:2),a=e.read_shift(r.biff==12?4:2),i=xo(e,2),s=xo(e,2);return{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:a,c:s[0],cRel:s[1],rRel:s[2]}}}function Ed(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return Kp(e,t,r);var n=e.read_shift(r&&r.biff==12?4:2),a=xo(e,2);return{r:n,c:a[0],cRel:a[1],rRel:a[2]}}function Kp(e){var t=xo(e,2),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function Yp(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function Jp(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return qp(e,t,r);var a=e.read_shift(n>=12?4:2),i=e.read_shift(2),s=(i&16384)>>14,c=(i&32768)>>15;if(i&=16383,c==1)for(;a>524287;)a-=1048576;if(s==1)for(;i>8191;)i=i-16384;return{r:a,c:i,cRel:s,rRel:c}}function qp(e){var t=e.read_shift(2),r=e.read_shift(1),n=(t&32768)>>15,a=(t&16384)>>14;return t&=16383,n==1&&t>=8192&&(t=t-16384),a==1&&r>=128&&(r=r-256),{r:t,c:r,cRel:a,rRel:n}}function Qp(e,t,r){var n=(e[e.l++]&96)>>5,a=wd(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,a]}function ev(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2,"i"),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}var s=wd(e,i,r);return[n,a,s]}function rv(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}function tv(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}return e.l+=i,[n,a]}function nv(e,t,r){var n=(e[e.l++]&96)>>5,a=Zp(e,t-1,r);return[n,a]}function av(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function Sd(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function iv(e,t,r){e.l+=2;for(var n=e.read_shift(r&&r.biff==2?1:2),a=[],i=0;i<=n;++i)a.push(e.read_shift(r&&r.biff==2?1:2));return a}function sv(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function ov(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function cv(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function fv(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function Td(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function lv(e){return e.read_shift(2),Td(e,2)}function uv(e){return e.read_shift(2),Td(e,2)}function dv(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=Ed(e,0,r);return[n,a]}function hv(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=Jp(e,0,r);return[n,a]}function pv(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var i=Ed(e,0,r);return[n,a,i]}function vv(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(r&&r.biff<=3?1:2);return[xg[a],Id[a],n]}function gv(e,t,r){var n=e[e.l++],a=e.read_shift(1),i=r&&r.biff<=3?[n==88?-1:0,e.read_shift(1)]:mv(e);return[a,(i[0]===0?Id:mg)[i[1]]]}function mv(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function xv(e,t,r){e.l+=r&&r.biff==2?3:4}function yv(e,t,r){if(e.l++,r&&r.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function bv(e){return e.l++,Ts[e.read_shift(1)]}function wv(e){return e.l++,e.read_shift(2)}function _v(e){return e.l++,e.read_shift(1)!==0}function Ev(e){return e.l++,ti(e,8)}function Sv(e,t,r){return e.l++,Ns(e,t-1,r)}function Tv(e,t){var r=[e.read_shift(1)];if(t==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=wa(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=Ts[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=ti(e,8);break;case 2:r[1]=Qs(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function kv(e,t,r){for(var n=e.read_shift(r.biff==12?4:2),a=[],i=0;i!=n;++i)a.push((r.biff==12?Rs:ac)(e,8));return a}function Cv(e,t,r){var n=0,a=0;r.biff==12?(n=e.read_shift(4),a=e.read_shift(4)):(a=1+e.read_shift(1),n=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--a==0&&(a=256));for(var i=0,s=[];i!=n&&(s[i]=[]);++i)for(var c=0;c!=a;++c)s[i][c]=Tv(e,r.biff);return s}function Av(e,t,r){var n=e.read_shift(1)>>>5&3,a=!r||r.biff>=8?4:2,i=e.read_shift(a);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,i]}function Dv(e,t,r){if(r.biff==5)return Iv(e,t,r);var n=e.read_shift(1)>>>5&3,a=e.read_shift(2),i=e.read_shift(4);return[n,a,i]}function Iv(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[t,r,n]}function Fv(e,t,r){var n=e.read_shift(1)>>>5&3;e.l+=r&&r.biff==2?3:4;var a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function Ov(e,t,r){var n=e.read_shift(1)>>>5&3,a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function Rv(e,t,r){var n=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,r.biff==12&&(e.l+=2),[n]}function Pv(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),i=4;if(r)switch(r.biff){case 5:i=15;break;case 12:i=6;break}return e.l+=i,[n,a]}var Nv=fn,Bv=fn,Mv=fn;function df(e,t,r){return e.l+=2,[Yp(e,4,r)]}function M0(e){return e.l+=6,[]}var Lv=df,Uv=M0,zv=M0,Wv=df;function kd(e){return e.l+=2,[ka(e),e.read_shift(2)&1]}var Hv=df,Gv=kd,Vv=M0,jv=df,$v=df,Xv=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function Zv(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),a=e.read_shift(2),i=e.read_shift(2),s=Xv[r>>2&31];return{ixti:t,coltype:r&3,rt:s,idx:n,c:a,C:i}}function Kv(e){return e.l+=2,[e.read_shift(4)]}function Yv(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function Jv(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function qv(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function Qv(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function eg(e){return e.l+=4,[0,0]}var Cd={1:{n:"PtgExp",f:yv},2:{n:"PtgTbl",f:Mv},3:{n:"PtgAdd",f:Za},4:{n:"PtgSub",f:Za},5:{n:"PtgMul",f:Za},6:{n:"PtgDiv",f:Za},7:{n:"PtgPower",f:Za},8:{n:"PtgConcat",f:Za},9:{n:"PtgLt",f:Za},10:{n:"PtgLe",f:Za},11:{n:"PtgEq",f:Za},12:{n:"PtgGe",f:Za},13:{n:"PtgGt",f:Za},14:{n:"PtgNe",f:Za},15:{n:"PtgIsect",f:Za},16:{n:"PtgUnion",f:Za},17:{n:"PtgRange",f:Za},18:{n:"PtgUplus",f:Za},19:{n:"PtgUminus",f:Za},20:{n:"PtgPercent",f:Za},21:{n:"PtgParen",f:Za},22:{n:"PtgMissArg",f:Za},23:{n:"PtgStr",f:Sv},26:{n:"PtgSheet",f:Yv},27:{n:"PtgEndSheet",f:Jv},28:{n:"PtgErr",f:bv},29:{n:"PtgBool",f:_v},30:{n:"PtgInt",f:wv},31:{n:"PtgNum",f:Ev},32:{n:"PtgArray",f:av},33:{n:"PtgFunc",f:vv},34:{n:"PtgFuncVar",f:gv},35:{n:"PtgName",f:Av},36:{n:"PtgRef",f:dv},37:{n:"PtgArea",f:Qp},38:{n:"PtgMemArea",f:Fv},39:{n:"PtgMemErr",f:Nv},40:{n:"PtgMemNoMem",f:Bv},41:{n:"PtgMemFunc",f:Ov},42:{n:"PtgRefErr",f:Rv},43:{n:"PtgAreaErr",f:rv},44:{n:"PtgRefN",f:hv},45:{n:"PtgAreaN",f:nv},46:{n:"PtgMemAreaN",f:qv},47:{n:"PtgMemNoMemN",f:Qv},57:{n:"PtgNameX",f:Dv},58:{n:"PtgRef3d",f:pv},59:{n:"PtgArea3d",f:ev},60:{n:"PtgRefErr3d",f:Pv},61:{n:"PtgAreaErr3d",f:tv},255:{}},rg={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},tg={1:{n:"PtgElfLel",f:kd},2:{n:"PtgElfRw",f:jv},3:{n:"PtgElfCol",f:Lv},6:{n:"PtgElfRwV",f:$v},7:{n:"PtgElfColV",f:Wv},10:{n:"PtgElfRadical",f:Hv},11:{n:"PtgElfRadicalS",f:Vv},13:{n:"PtgElfColS",f:Uv},15:{n:"PtgElfColSV",f:zv},16:{n:"PtgElfRadicalLel",f:Gv},25:{n:"PtgList",f:Zv},29:{n:"PtgSxName",f:Kv},255:{}},ng={0:{n:"PtgAttrNoop",f:eg},1:{n:"PtgAttrSemi",f:fv},2:{n:"PtgAttrIf",f:ov},4:{n:"PtgAttrChoose",f:iv},8:{n:"PtgAttrGoto",f:sv},16:{n:"PtgAttrSum",f:xv},32:{n:"PtgAttrBaxcel",f:Sd},33:{n:"PtgAttrBaxcel",f:Sd},64:{n:"PtgAttrSpace",f:lv},65:{n:"PtgAttrSpaceSemi",f:uv},128:{n:"PtgAttrIfError",f:cv},255:{}};function hf(e,t,r,n){if(n.biff<8)return fn(e,t);for(var a=e.l+t,i=[],s=0;s!==r.length;++s)switch(r[s][0]){case"PtgArray":r[s][1]=Cv(e,0,n),i.push(r[s][1]);break;case"PtgMemArea":r[s][2]=kv(e,r[s][1],n),i.push(r[s][2]);break;case"PtgExp":n&&n.biff==12&&(r[s][1][1]=e.read_shift(4),i.push(r[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[s][0];default:break}return t=a-e.l,t!==0&&i.push(fn(e,t)),i}function pf(e,t,r){for(var n=e.l+t,a,i,s=[];n!=e.l;)t=n-e.l,i=e[e.l],a=Cd[i]||Cd[rg[i]],(i===24||i===25)&&(a=(i===24?tg:ng)[e[e.l+1]]),!a||!a.f?fn(e,t):s.push([a.n,a.f(e,t,r)]);return s}function ag(e){for(var t=[],r=0;r=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function sg(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function Ad(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),t==0?"":e.XTI[t-1];if(!n)return"SH33TJSERR1";var a="";if(r.biff>8)switch(e[n[0]][0]){case 357:return a=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 358:return r.SID!=null?e.SheetNames[r.SID]:"SH33TJSSAME"+e[n[0]][0];case 355:default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return a=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(i){return i.Name}).join(";;");default:return e[n[0]][0][3]?(a=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?a:a+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function Dd(e,t,r){var n=Ad(e,t,r);return n=="#REF"?n:sg(n,r)}function Ci(e,t,r,n,a){var i=a&&a.biff||8,s={s:{c:0,r:0},e:{c:0,r:0}},c=[],d,p,v,S=0,k=0,A,P="";if(!e[0]||!e[0][0])return"";for(var _=-1,U="",me=0,xe=e[0].length;me=0){switch(e[0][_][1][0]){case 0:U=On(" ",e[0][_][1][1]);break;case 1:U=On("\r",e[0][_][1][1]);break;default:if(U="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][_][1][0])}p=p+U,_=-1}c.push(p+ig[ie[0]]+d);break;case"PtgIsect":d=c.pop(),p=c.pop(),c.push(p+" "+d);break;case"PtgUnion":d=c.pop(),p=c.pop(),c.push(p+","+d);break;case"PtgRange":d=c.pop(),p=c.pop(),c.push(p+":"+d);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":v=Ds(ie[1][1],s,a),c.push(Is(v,i));break;case"PtgRefN":v=r?Ds(ie[1][1],r,a):ie[1][1],c.push(Is(v,i));break;case"PtgRef3d":S=ie[1][1],v=Ds(ie[1][2],s,a),P=Dd(n,S,a);var rr=P;c.push(P+"!"+Is(v,i));break;case"PtgFunc":case"PtgFuncVar":var or=ie[1][0],qe=ie[1][1];or||(or=0),or&=127;var Ie=or==0?[]:c.slice(-or);c.length-=or,qe==="User"&&(qe=Ie.shift()),c.push(qe+"("+Ie.join(",")+")");break;case"PtgBool":c.push(ie[1]?"TRUE":"FALSE");break;case"PtgInt":c.push(ie[1]);break;case"PtgNum":c.push(String(ie[1]));break;case"PtgStr":c.push('"'+ie[1].replace(/"/g,'""')+'"');break;case"PtgErr":c.push(ie[1]);break;case"PtgAreaN":A=Ho(ie[1][1],r?{s:r}:s,a),c.push($s(A,a));break;case"PtgArea":A=Ho(ie[1][1],s,a),c.push($s(A,a));break;case"PtgArea3d":S=ie[1][1],A=ie[1][2],P=Dd(n,S,a),c.push(P+"!"+$s(A,a));break;case"PtgAttrSum":c.push("SUM("+c.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":k=ie[1][2];var tr=(n.names||[])[k-1]||(n[0]||[])[k],Qe=tr?tr.Name:"SH33TJSNAME"+String(k);Qe&&Qe.slice(0,6)=="_xlfn."&&!a.xlfn&&(Qe=Qe.slice(6)),c.push(Qe);break;case"PtgNameX":var yr=ie[1][1];k=ie[1][2];var _r;if(a.biff<=5)yr<0&&(yr=-yr),n[yr]&&(_r=n[yr][k]);else{var sr="";if(((n[yr]||[])[0]||[])[0]==14849||(((n[yr]||[])[0]||[])[0]==1025?n[yr][k]&&n[yr][k].itab>0&&(sr=n.SheetNames[n[yr][k].itab-1]+"!"):sr=n.SheetNames[k-1]+"!"),n[yr]&&n[yr][k])sr+=n[yr][k].Name;else if(n[0]&&n[0][k])sr+=n[0][k].Name;else{var nt=(Ad(n,yr,a)||"").split(";;");nt[k-1]?sr=nt[k-1]:sr+="SH33TJSERRX"}c.push(sr);break}_r||(_r={Name:"SH33TJSERRY"}),c.push(_r.Name);break;case"PtgParen":var Ct="(",at=")";if(_>=0){switch(U="",e[0][_][1][0]){case 2:Ct=On(" ",e[0][_][1][1])+Ct;break;case 3:Ct=On("\r",e[0][_][1][1])+Ct;break;case 4:at=On(" ",e[0][_][1][1])+at;break;case 5:at=On("\r",e[0][_][1][1])+at;break;default:if(a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][_][1][0])}_=-1}c.push(Ct+c.pop()+at);break;case"PtgRefErr":c.push("#REF!");break;case"PtgRefErr3d":c.push("#REF!");break;case"PtgExp":v={c:ie[1][1],r:ie[1][0]};var jt={c:r.c,r:r.r};if(n.sharedf[Kt(v)]){var Rt=n.sharedf[Kt(v)];c.push(Ci(Rt,s,jt,n,a))}else{var En=!1;for(d=0;d!=n.arrayf.length;++d)if(p=n.arrayf[d],!(v.cp[0].e.c)&&!(v.rp[0].e.r)){c.push(Ci(p[1],s,jt,n,a)),En=!0;break}En||c.push(ie[1])}break;case"PtgArray":c.push("{"+ag(ie[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":_=me;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":c.push("");break;case"PtgAreaErr":c.push("#REF!");break;case"PtgAreaErr3d":c.push("#REF!");break;case"PtgList":c.push("Table"+ie[1].idx+"[#"+ie[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(ie));default:throw new Error("Unrecognized Formula Token: "+String(ie))}var xt=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(a.biff!=3&&_>=0&&xt.indexOf(e[0][me][0])==-1){ie=e[0][_];var Lt=!0;switch(ie[1][0]){case 4:Lt=!1;case 0:U=On(" ",ie[1][1]);break;case 5:Lt=!1;case 1:U=On("\r",ie[1][1]);break;default:if(U="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+ie[1][0])}c.push((Lt?U:"")+c.pop()+(Lt?"":U)),_=-1}}if(c.length>1&&a.WTF)throw new Error("bad formula stack");return c[0]}function og(e,t,r){var n=e.l+t,a=r.biff==2?1:2,i,s=e.read_shift(a);if(s==65535)return[[],fn(e,t-2)];var c=pf(e,s,r);return t!==s+a&&(i=hf(e,t-s-a,c,r)),e.l=n,[c,i]}function cg(e,t,r){var n=e.l+t,a=r.biff==2?1:2,i,s=e.read_shift(a);if(s==65535)return[[],fn(e,t-2)];var c=pf(e,s,r);return t!==s+a&&(i=hf(e,t-s-a,c,r)),e.l=n,[c,i]}function fg(e,t,r,n){var a=e.l+t,i=pf(e,n,r),s;return a!==e.l&&(s=hf(e,a-e.l,i,r)),[i,s]}function lg(e,t,r){var n=e.l+t,a,i=e.read_shift(2),s=pf(e,i,r);return i==65535?[[],fn(e,t-2)]:(t!==i+2&&(a=hf(e,n-i-2,s,r)),[s,a])}function ug(e){var t;if(Ta(e,e.l+6)!==65535)return[ti(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=e[e.l+2]===1,e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}function dg(e){if(e==null){var t=gr(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}else if(typeof e=="number")return Ks(e);return Ks(0)}function L0(e,t,r){var n=e.l+t,a=us(e,6);r.biff==2&&++e.l;var i=ug(e,8),s=e.read_shift(1);r.biff!=2&&(e.read_shift(1),r.biff>=5&&e.read_shift(4));var c=cg(e,n-e.l,r);return{cell:a,val:i[0],formula:c,shared:s>>3&1,tt:i[1]}}function hg(e,t,r,n,a){var i=eo(t,r,a),s=dg(e.v),c=gr(6),d=33;c.write_shift(2,d),c.write_shift(4,0);for(var p=gr(e.bf.length),v=0;v0?hf(e,i,a,r):null;return[a,s]}var pg=xl,yl=xl,vg=xl,gg=xl,mg={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Id={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},xg={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function Fd(e){return e.slice(0,3)=="of:"&&(e=e.slice(3)),e.charCodeAt(0)==61&&(e=e.slice(1),e.charCodeAt(0)==61&&(e=e.slice(1))),e=e.replace(/COM\.MICROSOFT\./g,""),e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(t,r){return r.replace(/\./g,"")}),e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),e.replace(/[;~]/g,",").replace(/\|/g,";")}function yg(e){var t="of:="+e.replace(N0,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function U0(e){var t=e.split(":"),r=t[0].split(".")[0];return[r,t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}function bg(e){return e.replace(/\./,"!")}var vf={},vc={},gf=typeof Map!="undefined";function z0(e,t,r){var n=0,a=e.length;if(r){if(gf?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var i=gf?r.get(t):r[t];n-1?(r.width=Mi(n),r.customWidth=1):t.width!=null&&(r.width=t.width),t.hidden&&(r.hidden=!0),t.level!=null&&(r.outlineLevel=r.level=t.level),r}function Lo(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];t=="xlml"&&(r=[1,1,1,1,.5,.5]),e.left==null&&(e.left=r[0]),e.right==null&&(e.right=r[1]),e.top==null&&(e.top=r[2]),e.bottom==null&&(e.bottom=r[3]),e.header==null&&(e.header=r[4]),e.footer==null&&(e.footer=r[5])}}function yo(e,t,r){var n=r.revssf[t.z!=null?t.z:"General"],a=60,i=e.length;if(n==null&&r.ssf){for(;a<392;++a)if(r.ssf[a]==null){ln(t.z,a),r.ssf[a]=t.z,r.revssf[t.z]=n=a;break}}for(a=0;a!=i;++a)if(e[a].numFmtId===n)return a;return e[i]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function Od(e,t,r,n,a,i){try{n.cellNF&&(e.z=Ir[t])}catch(c){if(n.WTF)throw c}if(!(e.t==="z"&&!n.cellStyles)){if(e.t==="d"&&typeof e.v=="string"&&(e.v=mn(e.v)),(!n||n.cellText!==!1)&&e.t!=="z")try{if(Ir[t]==null&&ln(Da[t]||"General",t),e.t==="e")e.w=e.w||Ts[e.v];else if(t===0)if(e.t==="n")(e.v|0)===e.v?e.w=e.v.toString(10):e.w=cr(e.v);else if(e.t==="d"){var s=It(e.v);(s|0)===s?e.w=s.toString(10):e.w=cr(s)}else{if(e.v===void 0)return"";e.w=B(e.v,vc)}else e.t==="d"?e.w=gn(t,It(e.v),vc):e.w=gn(t,e.v,vc)}catch(c){if(n.WTF)throw c}if(n.cellStyles&&r!=null)try{e.s=i.Fills[r],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=Bi(a.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),n.WTF&&(e.s.fgColor.raw_rgb=a.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=Bi(a.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),n.WTF&&(e.s.bgColor.raw_rgb=a.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(c){if(n.WTF&&i.Fills)throw c}}}function wg(e,t,r){if(e&&e["!ref"]){var n=_n(e["!ref"]);if(n.e.c=0&&r.s.c>=0&&(e["!ref"]=nn(r))}var Eg=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,Sg=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,Tg=/<(?:\w:)?hyperlink [^>]*>/mg,kg=/"(\w*:\w*)"/,Cg=/<(?:\w:)?col\b[^>]*[\/]?>/g,Ag=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,Dg=/<(?:\w:)?pageMargins[^>]*\/>/g,Rd=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,Ig=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,Fg=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function Og(e,t,r,n,a,i,s){if(!e)return e;n||(n={"!id":{}}),le!=null&&t.dense==null&&(t.dense=le);var c=t.dense?[]:{},d={s:{r:2e6,c:2e6},e:{r:0,c:0}},p="",v="",S=e.match(Sg);S?(p=e.slice(0,S.index),v=e.slice(S.index+S[0].length)):p=v=e;var k=p.match(Rd);k?W0(k[0],c,a,r):(k=p.match(Ig))&&Pg(k[0],k[1]||"",c,a,r,s,i);var A=(p.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(A>0){var P=p.slice(A,A+50).match(kg);P&&_g(c,P[1])}var _=p.match(Fg);_&&_[1]&&Xg(_[1],a);var U=[];if(t.cellStyles){var me=p.match(Cg);me&&Hg(U,me)}S&&Yg(S[1],c,t,d,i,s);var xe=v.match(Ag);xe&&(c["!autofilter"]=Vg(xe[0]));var ie=[],rr=v.match(Eg);if(rr)for(A=0;A!=rr.length;++A)ie[A]=_n(rr[A].slice(rr[A].indexOf('"')+1));var or=v.match(Tg);or&&Ug(c,or,n);var qe=v.match(Dg);if(qe&&(c["!margins"]=zg(zt(qe[0]))),!c["!ref"]&&d.e.c>=d.s.c&&d.e.r>=d.s.r&&(c["!ref"]=nn(d)),t.sheetRows>0&&c["!ref"]){var Ie=_n(c["!ref"]);t.sheetRows<=+Ie.e.r&&(Ie.e.r=t.sheetRows-1,Ie.e.r>d.e.r&&(Ie.e.r=d.e.r),Ie.e.rd.e.c&&(Ie.e.c=d.e.c),Ie.e.c0&&(c["!cols"]=U),ie.length>0&&(c["!merges"]=ie),c}function Rg(e){if(e.length===0)return"";for(var t='',r=0;r!=e.length;++r)t+='';return t+""}function W0(e,t,r,n){var a=zt(e);r.Sheets[n]||(r.Sheets[n]={}),a.codeName&&(r.Sheets[n].CodeName=Ht(tn(a.codeName)))}function Pg(e,t,r,n,a){W0(e.slice(0,e.indexOf(">")),r,n,a)}function Ng(e,t,r,n,a){var i=!1,s={},c=null;if(n.bookType!=="xlsx"&&t.vbaraw){var d=t.SheetNames[r];try{t.Workbook&&(d=t.Workbook.Sheets[r].CodeName||d)}catch(v){}i=!0,s.codeName=fa(hn(d))}if(e&&e["!outline"]){var p={summaryBelow:1,summaryRight:1};e["!outline"].above&&(p.summaryBelow=0),e["!outline"].left&&(p.summaryRight=0),c=(c||"")+jr("outlinePr",null,p)}!i&&!c||(a[a.length]=jr("sheetPr",c,s))}var Bg=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Mg=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function Lg(e){var t={sheet:1};return Bg.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),Mg.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=Tt(e.password).toString(16).toUpperCase()),jr("sheetProtection",null,t)}function Ug(e,t,r){for(var n=Array.isArray(e),a=0;a!=t.length;++a){var i=zt(tn(t[a]),!0);if(!i.ref)return;var s=((r||{})["!id"]||[])[i.id];s?(i.Target=s.Target,i.location&&(i.Target+="#"+Ht(i.location))):(i.Target="#"+Ht(i.location),s={Target:i.Target,TargetMode:"Internal"}),i.Rel=s,i.tooltip&&(i.Tooltip=i.tooltip,delete i.tooltip);for(var c=_n(i.ref),d=c.s.r;d<=c.e.r;++d)for(var p=c.s.c;p<=c.e.c;++p){var v=Kt({c:p,r:d});n?(e[d]||(e[d]=[]),e[d][p]||(e[d][p]={t:"z",v:void 0}),e[d][p].l=i):(e[v]||(e[v]={t:"z",v:void 0}),e[v].l=i)}}}function zg(e){var t={};return["left","right","top","bottom","header","footer"].forEach(function(r){e[r]&&(t[r]=parseFloat(e[r]))}),t}function Wg(e){return Lo(e),jr("pageMargins",null,e)}function Hg(e,t){for(var r=!1,n=0;n!=t.length;++n){var a=zt(t[n],!0);a.hidden&&(a.hidden=Rn(a.hidden));var i=parseInt(a.min,10)-1,s=parseInt(a.max,10)-1;for(a.outlineLevel&&(a.level=+a.outlineLevel||0),delete a.min,delete a.max,a.width=+a.width,!r&&a.width&&(r=!0,go(a.width)),ai(a);i<=s;)e[i++]=xn(a)}}function Gg(e,t){for(var r=[""],n,a=0;a!=t.length;++a)(n=t[a])&&(r[r.length]=jr("col",null,bl(a,n)));return r[r.length]="",r.join("")}function Vg(e){var t={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return t}function jg(e,t,r,n){var a=typeof e.ref=="string"?e.ref:nn(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var i=r.Workbook.Names,s=wi(a);s.s.r==s.e.r&&(s.e.r=wi(t["!ref"]).e.r,a=nn(s));for(var c=0;ca-z][^>]*)?\/?>/;function Xg(e,t){t.Views||(t.Views=[{}]),(e.match($g)||[]).forEach(function(r,n){var a=zt(r);t.Views[n]||(t.Views[n]={}),+a.zoomScale&&(t.Views[n].zoom=+a.zoomScale),Rn(a.rightToLeft)&&(t.Views[n].RTL=!0)})}function Zg(e,t,r,n){var a={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(a.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),jr("sheetViews",jr("sheetView",null,a),{})}function Kg(e,t,r,n){if(e.c&&r["!comments"].push([t,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var a="",i=e.t,s=e.v;if(e.t!=="z")switch(e.t){case"b":a=e.v?"1":"0";break;case"n":a=""+e.v;break;case"e":a=Ts[e.v];break;case"d":n&&n.cellDates?a=mn(e.v,-1).toISOString():(e=xn(e),e.t="n",a=""+(e.v=It(mn(e.v)))),typeof e.z=="undefined"&&(e.z=Ir[14]);break;default:a=e.v;break}var c=va("v",hn(a)),d={r:t},p=yo(n.cellXfs,e,n);switch(p!==0&&(d.s=p),e.t){case"n":break;case"d":d.t="d";break;case"b":d.t="b";break;case"e":d.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){c=va("v",""+z0(n.Strings,e.v,n.revStrings)),d.t="s";break}d.t="str";break}if(e.t!=i&&(e.t=i,e.v=s),typeof e.f=="string"&&e.f){var v=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;c=jr("f",hn(e.f),v)+(e.v!=null?c:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(d.cm=1),jr("c",c,d)}var Yg=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,r=/r=["']([^"']*)["']/,n=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,a=/ref=["']([^"']*)["']/,i=Pa("v"),s=Pa("f");return function(d,p,v,S,k,A){for(var P=0,_="",U=[],me=[],xe=0,ie=0,rr=0,or="",qe,Ie,tr=0,Qe=0,yr,_r,sr=0,nt=0,Ct=Array.isArray(A.CellXf),at,jt=[],Rt=[],En=Array.isArray(p),xt=[],Lt={},Pr=!1,Ue=!!v.sheetStubs,pr=d.split(t),Ke=0,Xe=pr.length;Ke!=Xe;++Ke){_=pr[Ke].trim();var Ar=_.length;if(Ar!==0){var pt=0;e:for(P=0;P":if(_[P-1]!="/"){++P;break e}if(v&&v.cellStyles){if(Ie=zt(_.slice(pt,P),!0),tr=Ie.r!=null?parseInt(Ie.r,10):tr+1,Qe=-1,v.sheetRows&&v.sheetRows=P)break;if(Ie=zt(_.slice(pt,P),!0),tr=Ie.r!=null?parseInt(Ie.r,10):tr+1,Qe=-1,!(v.sheetRows&&v.sheetRowstr-1&&(S.s.r=tr-1),S.e.r":"")+_,me!=null&&me.length===2){for(xe=0,or=me[1],ie=0;ie!=or.length&&!((rr=or.charCodeAt(ie)-64)<1||rr>26);++ie)xe=26*xe+rr;--xe,Qe=xe}else++Qe;for(ie=0;ie!=_.length&&_.charCodeAt(ie)!==62;++ie);if(++ie,Ie=zt(_.slice(0,ie),!0),Ie.r||(Ie.r=Kt({r:tr-1,c:Qe})),or=_.slice(ie),qe={t:""},(me=or.match(i))!=null&&me[1]!==""&&(qe.v=Ht(me[1])),v.cellFormula){if((me=or.match(s))!=null&&me[1]!==""){if(qe.f=Ht(tn(me[1])).replace(/\r\n/g,` +`),v.xlfn||(qe.f=bd(qe.f)),me[0].indexOf('t="array"')>-1)qe.F=(or.match(a)||[])[1],qe.F.indexOf(":")>-1&&jt.push([_n(qe.F),qe.F]);else if(me[0].indexOf('t="shared"')>-1){_r=zt(me[0]);var rt=Ht(tn(me[1]));v.xlfn||(rt=bd(rt)),Rt[parseInt(_r.si,10)]=[_r,rt,Ie.r]}}else(me=or.match(/]*\/>/))&&(_r=zt(me[0]),Rt[_r.si]&&(qe.f=$p(Rt[_r.si][1],Rt[_r.si][2],Ie.r)));var Lr=ca(Ie.r);for(ie=0;ie=jt[ie][0].s.r&&Lr.r<=jt[ie][0].e.r&&Lr.c>=jt[ie][0].s.c&&Lr.c<=jt[ie][0].e.c&&(qe.F=jt[ie][1])}if(Ie.t==null&&qe.v===void 0)if(qe.f||qe.F)qe.v=0,qe.t="n";else if(Ue)qe.t="z";else continue;else qe.t=Ie.t||"n";switch(S.s.c>Qe&&(S.s.c=Qe),S.e.c0&&(p["!rows"]=xt)}}();function Jg(e,t,r,n){var a=[],i=[],s=_n(e["!ref"]),c="",d,p="",v=[],S=0,k=0,A=e["!rows"],P=Array.isArray(e),_={r:p},U,me=-1;for(k=s.s.c;k<=s.e.c;++k)v[k]=Jn(k);for(S=s.s.r;S<=s.e.r;++S){for(i=[],p=Zn(S),k=s.s.c;k<=s.e.c;++k){d=v[k]+p;var xe=P?(e[S]||[])[k]:e[d];xe!==void 0&&(c=Kg(xe,d,e,t,r,n))!=null&&i.push(c)}(i.length>0||A&&A[S])&&(_={r:p},A&&A[S]&&(U=A[S],U.hidden&&(_.hidden=1),me=-1,U.hpx?me=hs(U.hpx):U.hpt&&(me=U.hpt),me>-1&&(_.ht=me,_.customHeight=1),U.level&&(_.outlineLevel=U.level)),a[a.length]=jr("row",i.join(""),_))}if(A)for(;S-1&&(_.ht=me,_.customHeight=1),U.level&&(_.outlineLevel=U.level),a[a.length]=jr("row","",_));return a.join("")}function Pd(e,t,r,n){var a=[In,jr("worksheet",null,{xmlns:Rr[0],"xmlns:r":Be.r})],i=r.SheetNames[e],s=0,c="",d=r.Sheets[i];d==null&&(d={});var p=d["!ref"]||"A1",v=_n(p);if(v.e.c>16383||v.e.r>1048575){if(t.WTF)throw new Error("Range "+p+" exceeds format limit A1:XFD1048576");v.e.c=Math.min(v.e.c,16383),v.e.r=Math.min(v.e.c,1048575),p=nn(v)}n||(n={}),d["!comments"]=[];var S=[];Ng(d,r,e,t,a),a[a.length]=jr("dimension",null,{ref:p}),a[a.length]=Zg(d,t,e,r),t.sheetFormat&&(a[a.length]=jr("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),d["!cols"]!=null&&d["!cols"].length>0&&(a[a.length]=Gg(d,d["!cols"])),a[s=a.length]="",d["!links"]=[],d["!ref"]!=null&&(c=Jg(d,t,e,r,n),c.length>0&&(a[a.length]=c)),a.length>s+1&&(a[a.length]="",a[s]=a[s].replace("/>",">")),d["!protect"]&&(a[a.length]=Lg(d["!protect"])),d["!autofilter"]!=null&&(a[a.length]=jg(d["!autofilter"],d,r,e)),d["!merges"]!=null&&d["!merges"].length>0&&(a[a.length]=Rg(d["!merges"]));var k=-1,A,P=-1;return d["!links"].length>0&&(a[a.length]="",d["!links"].forEach(function(_){_[1].Target&&(A={ref:_[0]},_[1].Target.charAt(0)!="#"&&(P=Wn(n,-1,hn(_[1].Target).replace(/#.*$/,""),an.HLINK),A["r:id"]="rId"+P),(k=_[1].Target.indexOf("#"))>-1&&(A.location=hn(_[1].Target.slice(k+1))),_[1].Tooltip&&(A.tooltip=hn(_[1].Tooltip)),a[a.length]=jr("hyperlink",null,A))}),a[a.length]=""),delete d["!links"],d["!margins"]!=null&&(a[a.length]=Wg(d["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(a[a.length]=va("ignoredErrors",jr("ignoredError",null,{numberStoredAsText:1,sqref:p}))),S.length>0&&(P=Wn(n,-1,"../drawings/drawing"+(e+1)+".xml",an.DRAW),a[a.length]=jr("drawing",null,{"r:id":"rId"+P}),d["!drawing"]=S),d["!comments"].length>0&&(P=Wn(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",an.VML),a[a.length]=jr("legacyDrawing",null,{"r:id":"rId"+P}),d["!legacy"]=P),a.length>1&&(a[a.length]="",a[1]=a[1].replace("/>",">")),a.join("")}function qg(e,t){var r={},n=e.l+t;r.r=e.read_shift(4),e.l+=4;var a=e.read_shift(2);e.l+=1;var i=e.read_shift(1);return e.l=n,i&7&&(r.level=i&7),i&16&&(r.hidden=!0),i&32&&(r.hpt=a/20),r}function Qg(e,t,r){var n=gr(145),a=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var i=320;a.hpx?i=hs(a.hpx)*20:a.hpt&&(i=a.hpt*20),n.write_shift(2,i),n.write_shift(1,0);var s=0;a.level&&(s|=a.level),a.hidden&&(s|=16),(a.hpx||a.hpt)&&(s|=32),n.write_shift(1,s),n.write_shift(1,0);var c=0,d=n.l;n.l+=4;for(var p={r:e,c:0},v=0;v<16;++v)if(!(t.s.c>v+1<<10||t.e.cn.l?n.slice(0,n.l):n}function e1(e,t,r,n){var a=Qg(n,r,t);(a.length>17||(t["!rows"]||[])[n])&&Fr(e,0,a)}var r1=Rs,t1=fo;function n1(){}function a1(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=Fl(e,t-19),r}function i1(e,t,r){r==null&&(r=gr(84+4*e.length));var n=192;t&&(t.above&&(n&=-65),t.left&&(n&=-129)),r.write_shift(1,n);for(var a=1;a<3;++a)r.write_shift(1,0);return Vo({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),If(e,r),r.slice(0,r.l)}function s1(e){var t=Ri(e);return[t]}function o1(e,t,r){return r==null&&(r=gr(8)),Xs(t,r)}function c1(e){var t=Os(e);return[t]}function f1(e,t,r){return r==null&&(r=gr(4)),oo(t,r)}function l1(e){var t=Ri(e),r=e.read_shift(1);return[t,r,"b"]}function u1(e,t,r){return r==null&&(r=gr(9)),Xs(t,r),r.write_shift(1,e.v?1:0),r}function d1(e){var t=Os(e),r=e.read_shift(1);return[t,r,"b"]}function h1(e,t,r){return r==null&&(r=gr(5)),oo(t,r),r.write_shift(1,e.v?1:0),r}function p1(e){var t=Ri(e),r=e.read_shift(1);return[t,r,"e"]}function v1(e,t,r){return r==null&&(r=gr(9)),Xs(t,r),r.write_shift(1,e.v),r}function g1(e){var t=Os(e),r=e.read_shift(1);return[t,r,"e"]}function m1(e,t,r){return r==null&&(r=gr(8)),oo(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function x1(e){var t=Ri(e),r=e.read_shift(4);return[t,r,"s"]}function y1(e,t,r){return r==null&&(r=gr(12)),Xs(t,r),r.write_shift(4,t.v),r}function b1(e){var t=Os(e),r=e.read_shift(4);return[t,r,"s"]}function w1(e,t,r){return r==null&&(r=gr(8)),oo(t,r),r.write_shift(4,t.v),r}function _1(e){var t=Ri(e),r=ti(e);return[t,r,"n"]}function E1(e,t,r){return r==null&&(r=gr(16)),Xs(t,r),Ks(e.v,r),r}function Nd(e){var t=Os(e),r=ti(e);return[t,r,"n"]}function S1(e,t,r){return r==null&&(r=gr(12)),oo(t,r),Ks(e.v,r),r}function T1(e){var t=Ri(e),r=Zs(e);return[t,r,"n"]}function k1(e,t,r){return r==null&&(r=gr(12)),Xs(t,r),Sc(e.v,r),r}function C1(e){var t=Os(e),r=Zs(e);return[t,r,"n"]}function A1(e,t,r){return r==null&&(r=gr(8)),oo(t,r),Sc(e.v,r),r}function D1(e){var t=Ri(e),r=bc(e);return[t,r,"is"]}function I1(e){var t=Ri(e),r=ui(e);return[t,r,"str"]}function F1(e,t,r){return r==null&&(r=gr(12+4*e.v.length)),Xs(t,r),ja(e.v,r),r.length>r.l?r.slice(0,r.l):r}function O1(e){var t=Os(e),r=ui(e);return[t,r,"str"]}function R1(e,t,r){return r==null&&(r=gr(8+4*e.v.length)),oo(t,r),ja(e.v,r),r.length>r.l?r.slice(0,r.l):r}function P1(e,t,r){var n=e.l+t,a=Ri(e);a.r=r["!row"];var i=e.read_shift(1),s=[a,i,"b"];if(r.cellFormula){e.l+=2;var c=yl(e,n-e.l,r);s[3]=Ci(c,null,a,r.supbooks,r)}else e.l=n;return s}function N1(e,t,r){var n=e.l+t,a=Ri(e);a.r=r["!row"];var i=e.read_shift(1),s=[a,i,"e"];if(r.cellFormula){e.l+=2;var c=yl(e,n-e.l,r);s[3]=Ci(c,null,a,r.supbooks,r)}else e.l=n;return s}function B1(e,t,r){var n=e.l+t,a=Ri(e);a.r=r["!row"];var i=ti(e),s=[a,i,"n"];if(r.cellFormula){e.l+=2;var c=yl(e,n-e.l,r);s[3]=Ci(c,null,a,r.supbooks,r)}else e.l=n;return s}function M1(e,t,r){var n=e.l+t,a=Ri(e);a.r=r["!row"];var i=ui(e),s=[a,i,"str"];if(r.cellFormula){e.l+=2;var c=yl(e,n-e.l,r);s[3]=Ci(c,null,a,r.supbooks,r)}else e.l=n;return s}var L1=Rs,U1=fo;function z1(e,t){return t==null&&(t=gr(4)),t.write_shift(4,e),t}function W1(e,t){var r=e.l+t,n=Rs(e,16),a=Ec(e),i=ui(e),s=ui(e),c=ui(e);e.l=r;var d={rfx:n,relId:a,loc:i,display:c};return s&&(d.Tooltip=s),d}function H1(e,t){var r=gr(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));fo({s:ca(e[0]),e:ca(e[0])},r),Es("rId"+t,r);var n=e[1].Target.indexOf("#"),a=n==-1?"":e[1].Target.slice(n+1);return ja(a||"",r),ja(e[1].Tooltip||"",r),ja("",r),r.slice(0,r.l)}function G1(){}function V1(e,t,r){var n=e.l+t,a=Go(e,16),i=e.read_shift(1),s=[a];if(s[2]=i,r.cellFormula){var c=pg(e,n-e.l,r);s[1]=c}else e.l=n;return s}function j1(e,t,r){var n=e.l+t,a=Rs(e,16),i=[a];if(r.cellFormula){var s=gg(e,n-e.l,r);i[1]=s,e.l=n}else e.l=n;return i}function $1(e,t,r){r==null&&(r=gr(18));var n=bl(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,(n.width||10)*256),r.write_shift(4,0);var a=0;return t.hidden&&(a|=1),typeof n.width=="number"&&(a|=2),t.level&&(a|=t.level<<8),r.write_shift(2,a),r}var Bd=["left","right","top","bottom","header","footer"];function X1(e){var t={};return Bd.forEach(function(r){t[r]=ti(e,8)}),t}function Z1(e,t){return t==null&&(t=gr(6*8)),Lo(e),Bd.forEach(function(r){Ks(e[r],t)}),t}function K1(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function Y1(e,t,r){r==null&&(r=gr(30));var n=924;return(((t||{}).Views||[])[0]||{}).RTL&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function J1(e){var t=gr(24);return t.write_shift(4,4),t.write_shift(4,1),fo(e,t),t}function q1(e,t){return t==null&&(t=gr(16*4+2)),t.write_shift(2,e.password?Tt(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?t.write_shift(4,e[r[0]]!=null&&!e[r[0]]?1:0):t.write_shift(4,e[r[0]]!=null&&e[r[0]]?0:1)}),t}function Q1(){}function em(){}function rm(e,t,r,n,a,i,s){if(!e)return e;var c=t||{};n||(n={"!id":{}}),le!=null&&c.dense==null&&(c.dense=le);var d=c.dense?[]:{},p,v={s:{r:2e6,c:2e6},e:{r:0,c:0}},S=[],k=!1,A=!1,P,_,U,me,xe,ie,rr,or,qe,Ie=[];c.biff=12,c["!row"]=0;var tr=0,Qe=!1,yr=[],_r={},sr=c.supbooks||a.supbooks||[[]];if(sr.sharedf=_r,sr.arrayf=yr,sr.SheetNames=a.SheetNames||a.Sheets.map(function(Lt){return Lt.name}),!c.supbooks&&(c.supbooks=sr,a.Names))for(var nt=0;nt=Ke[0].s.r&&P.r<=Ke[0].e.r&&xe>=Ke[0].s.c&&xe<=Ke[0].e.c&&(_.F=nn(Ke[0]),Qe=!0)}!Qe&&Pr.length>3&&(_.f=Pr[3])}if(v.s.r>P.r&&(v.s.r=P.r),v.s.c>xe&&(v.s.c=xe),v.e.rP.r&&(v.s.r=P.r),v.s.c>xe&&(v.s.c=xe),v.e.r=Pr.s;)Ct[Pr.e--]={width:Pr.w/256,hidden:!!(Pr.flags&1),level:Pr.level},jt||(jt=!0,go(Pr.w/256)),ai(Ct[Pr.e+1]);break;case 161:d["!autofilter"]={ref:nn(Pr)};break;case 476:d["!margins"]=Pr;break;case 147:a.Sheets[r]||(a.Sheets[r]={}),Pr.name&&(a.Sheets[r].CodeName=Pr.name),(Pr.above||Pr.left)&&(d["!outline"]={above:Pr.above,left:Pr.left});break;case 137:a.Views||(a.Views=[{}]),a.Views[0]||(a.Views[0]={}),Pr.RTL&&(a.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:k=!0;break;case 36:k=!1;break;case 37:S.push(pr),k=!0;break;case 38:S.pop(),k=!1;break;default:if(!Ue.T){if(!k||c.WTF)throw new Error("Unexpected record 0x"+pr.toString(16))}}},c),delete c.supbooks,delete c["!row"],!d["!ref"]&&(v.s.r<2e6||p&&(p.e.r>0||p.e.c>0||p.s.r>0||p.s.c>0))&&(d["!ref"]=nn(p||v)),c.sheetRows&&d["!ref"]){var xt=_n(d["!ref"]);c.sheetRows<=+xt.e.r&&(xt.e.r=c.sheetRows-1,xt.e.r>v.e.r&&(xt.e.r=v.e.r),xt.e.rv.e.c&&(xt.e.c=v.e.c),xt.e.c0&&(d["!merges"]=Ie),Ct.length>0&&(d["!cols"]=Ct),at.length>0&&(d["!rows"]=at),d}function tm(e,t,r,n,a,i,s){if(t.v===void 0)return!1;var c="";switch(t.t){case"b":c=t.v?"1":"0";break;case"d":t=xn(t),t.z=t.z||Ir[14],t.v=It(mn(t.v)),t.t="n";break;case"n":case"e":c=""+t.v;break;default:c=t.v;break}var d={r,c:n};switch(d.s=yo(a.cellXfs,t,a),t.l&&i["!links"].push([Kt(d),t.l]),t.c&&i["!comments"].push([Kt(d),t.c]),t.t){case"s":case"str":return a.bookSST?(c=z0(a.Strings,t.v,a.revStrings),d.t="s",d.v=c,s?Fr(e,18,w1(t,d)):Fr(e,7,y1(t,d))):(d.t="str",s?Fr(e,17,R1(t,d)):Fr(e,6,F1(t,d))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?s?Fr(e,13,A1(t,d)):Fr(e,2,k1(t,d)):s?Fr(e,16,S1(t,d)):Fr(e,5,E1(t,d)),!0;case"b":return d.t="b",s?Fr(e,15,h1(t,d)):Fr(e,4,u1(t,d)),!0;case"e":return d.t="e",s?Fr(e,14,m1(t,d)):Fr(e,3,v1(t,d)),!0}return s?Fr(e,12,f1(t,d)):Fr(e,1,o1(t,d)),!0}function nm(e,t,r,n){var a=_n(t["!ref"]||"A1"),i,s="",c=[];Fr(e,145);var d=Array.isArray(t),p=a.e.r;t["!rows"]&&(p=Math.max(a.e.r,t["!rows"].length-1));for(var v=a.s.r;v<=p;++v){s=Zn(v),e1(e,t,a,v);var S=!1;if(v<=a.e.r)for(var k=a.s.c;k<=a.e.c;++k){v===a.s.r&&(c[k]=Jn(k)),i=c[k]+s;var A=d?(t[v]||[])[k]:t[i];if(!A){S=!1;continue}S=tm(e,A,v,k,n,t,S)}}Fr(e,146)}function am(e,t){!t||!t["!merges"]||(Fr(e,177,z1(t["!merges"].length)),t["!merges"].forEach(function(r){Fr(e,176,U1(r))}),Fr(e,178))}function im(e,t){!t||!t["!cols"]||(Fr(e,390),t["!cols"].forEach(function(r,n){r&&Fr(e,60,$1(n,r))}),Fr(e,391))}function sm(e,t){!t||!t["!ref"]||(Fr(e,648),Fr(e,649,J1(_n(t["!ref"]))),Fr(e,650))}function om(e,t,r){t["!links"].forEach(function(n){if(n[1].Target){var a=Wn(r,-1,n[1].Target.replace(/#.*$/,""),an.HLINK);Fr(e,494,H1(n,a))}}),delete t["!links"]}function cm(e,t,r,n){if(t["!comments"].length>0){var a=Wn(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",an.VML);Fr(e,551,Es("rId"+a)),t["!legacy"]=a}}function fm(e,t,r,n){if(t["!autofilter"]){var a=t["!autofilter"],i=typeof a.ref=="string"?a.ref:nn(a.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var s=r.Workbook.Names,c=wi(i);c.s.r==c.e.r&&(c.e.r=wi(t["!ref"]).e.r,i=nn(c));for(var d=0;d16383||d.e.r>1048575){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");d.e.c=Math.min(d.e.c,16383),d.e.r=Math.min(d.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],Fr(a,129),(r.vbaraw||s["!outline"])&&Fr(a,147,i1(c,s["!outline"])),Fr(a,148,t1(d)),lm(a,s,r.Workbook),im(a,s,e,t,r),nm(a,s,e,t,r),um(a,s),fm(a,s,r,e),am(a,s),om(a,s,n),s["!margins"]&&Fr(a,476,Z1(s["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&sm(a,s),cm(a,s,e,n),Fr(a,130),a.end()}function hm(e){var t=[],r=e.match(/^/),n;(e.match(/(.*?)<\/c:pt>/mg)||[]).forEach(function(i){var s=i.match(/(.*)<\/c:v><\/c:pt>/);s&&(t[+s[1]]=r?+s[2]:s[2])});var a=Ht((e.match(/([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/(.*?)<\/c:f>/mg)||[]).forEach(function(i){n=i.replace(/<.*?>/g,"")}),[t,a,n]}function pm(e,t,r,n,a,i){var s=i||{"!type":"chart"};if(!e)return i;var c=0,d=0,p="A",v={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(S){var k=hm(S);v.s.r=v.s.c=0,v.e.c=c,p=Jn(c),k[0].forEach(function(A,P){s[p+Zn(P)]={t:"n",v:A,z:k[1]},d=P}),v.e.r0&&(s["!ref"]=nn(v)),s}function vm(e,t,r,n,a){if(!e)return e;n||(n={"!id":{}});var i={"!type":"chart","!drawel":null,"!rel":""},s,c=e.match(Rd);return c&&W0(c[0],i,a,r),(s=e.match(/drawing r:id="(.*?)"/))&&(i["!rel"]=s[1]),n["!id"][i["!rel"]]&&(i["!drawel"]=n["!id"][i["!rel"]]),i}function gm(e,t,r,n){var a=[In,jr("chartsheet",null,{xmlns:Rr[0],"xmlns:r":Be.r})];return a[a.length]=jr("drawing",null,{"r:id":"rId1"}),Wn(n,-1,"../drawings/drawing"+(e+1)+".xml",an.DRAW),a.length>2&&(a[a.length]="",a[1]=a[1].replace("/>",">")),a.join("")}function mm(e,t){e.l+=10;var r=ui(e,t-10);return{name:r}}function xm(e,t,r,n,a){if(!e)return e;n||(n={"!id":{}});var i={"!type":"chart","!drawel":null,"!rel":""},s=[],c=!1;return ri(e,function(p,v,S){switch(S){case 550:i["!rel"]=p;break;case 651:a.Sheets[r]||(a.Sheets[r]={}),p.name&&(a.Sheets[r].CodeName=p.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:c=!0;break;case 36:c=!1;break;case 37:s.push(S);break;case 38:s.pop();break;default:if(v.T>0)s.push(S);else if(v.T<0)s.pop();else if(!c||t.WTF)throw new Error("Unexpected record 0x"+S.toString(16))}},t),n["!id"][i["!rel"]]&&(i["!drawel"]=n["!id"][i["!rel"]]),i}function ym(){var e=oa();return Fr(e,129),Fr(e,130),e.end()}var H0=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],bm=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],wm=[],_m=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function Md(e,t){for(var r=0;r!=e.length;++r)for(var n=e[r],a=0;a!=t.length;++a){var i=t[a];if(n[i[0]]==null)n[i[0]]=i[1];else switch(i[2]){case"bool":typeof n[i[0]]=="string"&&(n[i[0]]=Rn(n[i[0]]));break;case"int":typeof n[i[0]]=="string"&&(n[i[0]]=parseInt(n[i[0]],10));break}}}function Ld(e,t){for(var r=0;r!=t.length;++r){var n=t[r];if(e[n[0]]==null)e[n[0]]=n[1];else switch(n[2]){case"bool":typeof e[n[0]]=="string"&&(e[n[0]]=Rn(e[n[0]]));break;case"int":typeof e[n[0]]=="string"&&(e[n[0]]=parseInt(e[n[0]],10));break}}}function Ud(e){Ld(e.WBProps,H0),Ld(e.CalcPr,_m),Md(e.WBView,bm),Md(e.Sheets,wm),vc.date1904=Rn(e.WBProps.date1904)}function Em(e){return!e.Workbook||!e.Workbook.WBProps?"false":Rn(e.Workbook.WBProps.date1904)?"true":"false"}var Sm="][*?/\\".split("");function zd(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var r=!0;return Sm.forEach(function(n){if(e.indexOf(n)!=-1){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");r=!1}}),r}function Tm(e,t,r){e.forEach(function(n,a){zd(n);for(var i=0;i22)throw new Error("Bad Code Name: Worksheet"+s)}})}function Wd(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];Tm(e.SheetNames,t,!!e.vbaraw);for(var r=0;r":break;case"":case"":break;case"":break;case"":H0.forEach(function(S){if(v[S[0]]!=null)switch(S[2]){case"bool":r.WBProps[S[0]]=Rn(v[S[0]]);break;case"int":r.WBProps[S[0]]=parseInt(v[S[0]],10);break;default:r.WBProps[S[0]]=v[S[0]]}}),v.codeName&&(r.WBProps.CodeName=tn(v.codeName));break;case"":break;case"":break;case"":case"":break;case"":delete v[0],r.WBView.push(v);break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":n=!1;break;case"":i.Ref=Ht(tn(e.slice(s,p))),r.Names.push(i);break;case"":break;case"":delete v[0],r.CalcPr=v;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":case"":break;case"":n=!1;break;case"":n=!0;break;case"":n=!1;break;case"0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(H0.forEach(function(c){e.Workbook.WBProps[c[0]]!=null&&e.Workbook.WBProps[c[0]]!=c[1]&&(n[c[0]]=e.Workbook.WBProps[c[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),t[t.length]=jr("workbookPr",null,n);var a=e.Workbook&&e.Workbook.Sheets||[],i=0;if(a&&a[0]&&a[0].Hidden){for(t[t.length]="",i=0;i!=e.SheetNames.length&&!(!a[i]||!a[i].Hidden);++i);i==e.SheetNames.length&&(i=0),t[t.length]='',t[t.length]=""}for(t[t.length]="",i=0;i!=e.SheetNames.length;++i){var s={name:hn(e.SheetNames[i].slice(0,31))};if(s.sheetId=""+(i+1),s["r:id"]="rId"+(i+1),a[i])switch(a[i].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break}t[t.length]=jr("sheet",null,s)}return t[t.length]="",r&&(t[t.length]="",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(c){var d={name:c.Name};c.Comment&&(d.comment=c.Comment),c.Sheet!=null&&(d.localSheetId=""+c.Sheet),c.Hidden&&(d.hidden="1"),c.Ref&&(t[t.length]=jr("definedName",hn(c.Ref),d))}),t[t.length]=""),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function Am(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=To(e,t-8),r.name=ui(e),r}function Dm(e,t){return t||(t=gr(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),Es(e.strRelID,t),ja(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function Im(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var a=t>8?ui(e):"";return a.length>0&&(r.CodeName=a),r.autoCompressPictures=!!(n&65536),r.backupFile=!!(n&64),r.checkCompatibility=!!(n&4096),r.date1904=!!(n&1),r.filterPrivacy=!!(n&8),r.hidePivotFieldList=!!(n&1024),r.promptedSolutions=!!(n&16),r.publishItems=!!(n&2048),r.refreshAllConnections=!!(n&262144),r.saveExternalLinkValues=!!(n&128),r.showBorderUnselectedTables=!!(n&4),r.showInkAnnotation=!!(n&32),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(n&32768),r.updateLinks=["userSet","never","always"][n>>8&3],r}function Fm(e,t){t||(t=gr(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),If(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function Om(e,t){var r={};return e.read_shift(4),r.ArchID=e.read_shift(4),e.l+=t-8,r}function Rm(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var a=e.read_shift(4),i=So(e),s=vg(e,0,r),c=Ec(e);e.l=n;var d={Name:i,Ptg:s};return a<268435455&&(d.Sheet=a),c&&(d.Comment=c),d}function Pm(e,t){var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},n=[],a=!1;t||(t={}),t.biff=12;var i=[],s=[[]];return s.SheetNames=[],s.XTI=[],yf[16]={n:"BrtFRTArchID$",f:Om},ri(e,function(d,p,v){switch(v){case 156:s.SheetNames.push(d.name),r.Sheets.push(d);break;case 153:r.WBProps=d;break;case 39:d.Sheet!=null&&(t.SID=d.Sheet),d.Ref=Ci(d.Ptg,null,null,s,t),delete t.SID,delete d.Ptg,i.push(d);break;case 1036:break;case 357:case 358:case 355:case 667:s[0].length?s.push([v,d]):s[0]=[v,d],s[s.length-1].XTI=[];break;case 362:s.length===0&&(s[0]=[],s[0].XTI=[]),s[s.length-1].XTI=s[s.length-1].XTI.concat(d),s.XTI=s.XTI.concat(d);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:n.push(v),a=!0;break;case 36:n.pop(),a=!1;break;case 37:n.push(v),a=!0;break;case 38:n.pop(),a=!1;break;case 16:break;default:if(!p.T){if(!a||t.WTF&&n[n.length-1]!=37&&n[n.length-1]!=35)throw new Error("Unexpected record 0x"+v.toString(16))}}},t),Ud(r),r.Names=i,r.supbooks=s,r}function Nm(e,t){Fr(e,143);for(var r=0;r!=t.SheetNames.length;++r){var n=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,a={Hidden:n,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]};Fr(e,156,Dm(a))}Fr(e,144)}function Bm(e,t){t||(t=gr(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return ja("SheetJS",t),ja(G.version,t),ja(G.version,t),ja("7262",t),t.length>t.l?t.slice(0,t.l):t}function Mm(e,t){t||(t=gr(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var r=120;return t.write_shift(1,r),t.length>t.l?t.slice(0,t.l):t}function Lm(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var r=t.Workbook.Sheets,n=0,a=-1,i=-1;na||(Fr(e,135),Fr(e,158,Mm(a)),Fr(e,136))}}function Um(e,t){var r=oa();return Fr(r,131),Fr(r,128,Bm()),Fr(r,153,Fm(e.Workbook&&e.Workbook.WBProps||null)),Lm(r,e,t),Nm(r,e,t),Fr(r,132),r.end()}function zm(e,t,r){return t.slice(-4)===".bin"?Pm(e,r):Cm(e,r)}function Wm(e,t,r,n,a,i,s,c){return t.slice(-4)===".bin"?rm(e,n,r,a,i,s,c):Og(e,n,r,a,i,s,c)}function Hm(e,t,r,n,a,i,s,c){return t.slice(-4)===".bin"?xm(e,n,r,a,i,s,c):vm(e,n,r,a,i,s,c)}function Gm(e,t,r,n,a,i,s,c){return t.slice(-4)===".bin"?Vp(e,n,r,a,i,s,c):jp(e,n,r,a,i,s,c)}function Vm(e,t,r,n,a,i,s,c){return t.slice(-4)===".bin"?Hp(e,n,r,a,i,s,c):Gp(e,n,r,a,i,s,c)}function jm(e,t,r,n){return t.slice(-4)===".bin"?Uh(e,r,n):ff(e,r,n)}function $m(e,t,r){return hd(e,r)}function Xm(e,t,r){return t.slice(-4)===".bin"?o(e,r):D0(e,r)}function Zm(e,t,r){return t.slice(-4)===".bin"?Mp(e,r):Ap(e,r)}function Km(e,t,r){return t.slice(-4)===".bin"?Tp(e,t,r):Ep(e,t,r)}function Ym(e,t,r,n){return r.slice(-4)===".bin"?kp(e,t,r,n):void 0}function Jm(e,t,r){return t.slice(-4)===".bin"?bp(e,t,r):_p(e,t,r)}function qm(e,t,r){return(t.slice(-4)===".bin"?Um:Hd)(e,r)}function Qm(e,t,r,n,a){return(t.slice(-4)===".bin"?dm:Pd)(e,r,n,a)}function uy(e,t,r,n,a){return(t.slice(-4)===".bin"?ym:gm)(e,r,n,a)}function ex(e,t,r){return(t.slice(-4)===".bin"?Kh:ml)(e,r)}function rx(e,t,r){return(t.slice(-4)===".bin"?g:dl)(e,r)}function tx(e,t,r){return(t.slice(-4)===".bin"?Lp:md)(e,r)}function nx(e){return(e.slice(-4)===".bin"?wp:pd)()}var Gd=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,Vd=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function As(e,t){var r=e.split(/\s+/),n=[];if(t||(n[0]=r[0]),r.length===1)return n;var a=e.match(Gd),i,s,c,d;if(a)for(d=0;d!=a.length;++d)i=a[d].match(Vd),(s=i[1].indexOf(":"))===-1?n[i[1]]=i[2].slice(1,i[2].length-1):(i[1].slice(0,6)==="xmlns:"?c="xmlns"+i[1].slice(6):c=i[1].slice(s+1),n[c]=i[2].slice(1,i[2].length-1));return n}function ax(e){var t=e.split(/\s+/),r={};if(t.length===1)return r;var n=e.match(Gd),a,i,s,c;if(n)for(c=0;c!=n.length;++c)a=n[c].match(Vd),(i=a[1].indexOf(":"))===-1?r[a[1]]=a[2].slice(1,a[2].length-1):(a[1].slice(0,6)==="xmlns:"?s="xmlns"+a[1].slice(6):s=a[1].slice(i+1),r[s]=a[2].slice(1,a[2].length-1));return r}var mf;function ix(e,t){var r=mf[e]||Ht(e);return r==="General"?B(t):gn(r,t)}function sx(e,t,r,n){var a=n;switch((r[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":a=Rn(n);break;case"i2":case"int":a=parseInt(n,10);break;case"r4":case"float":a=parseFloat(n);break;case"date":case"dateTime.tz":a=mn(n);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+r[0])}e[Ht(t)]=a}function ox(e,t,r){if(e.t!=="z"){if(!r||r.cellText!==!1)try{e.t==="e"?e.w=e.w||Ts[e.v]:t==="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=cr(e.v):e.w=B(e.v):e.w=ix(t||"General",e.v)}catch(i){if(r.WTF)throw i}try{var n=mf[t]||t||"General";if(r.cellNF&&(e.z=n),r.cellDates&&e.t=="n"&&yt(n)){var a=u(e.v);a&&(e.t="d",e.v=new Date(a.y,a.m-1,a.d,a.H,a.M,a.S,a.u))}}catch(i){if(r.WTF)throw i}}}function cx(e,t,r){if(r.cellStyles&&t.Interior){var n=t.Interior;n.Pattern&&(n.patternType=uc[n.Pattern]||n.Pattern)}e[t.ID]=t}function fx(e,t,r,n,a,i,s,c,d,p){var v="General",S=n.StyleID,k={};p=p||{};var A=[],P=0;for(S===void 0&&c&&(S=c.StyleID),S===void 0&&s&&(S=s.StyleID);i[S]!==void 0&&(i[S].nf&&(v=i[S].nf),i[S].Interior&&A.push(i[S].Interior),!!i[S].Parent);)S=i[S].Parent;switch(r.Type){case"Boolean":n.t="b",n.v=Rn(e);break;case"String":n.t="s",n.r=Qa(Ht(e)),n.v=e.indexOf("<")>-1?Ht(t||e).replace(/<.*?>/g,""):n.r;break;case"DateTime":e.slice(-1)!="Z"&&(e+="Z"),n.v=(mn(e)-new Date(Date.UTC(1899,11,30)))/(24*60*60*1e3),n.v!==n.v?n.v=Ht(e):n.v<60&&(n.v=n.v-1),(!v||v=="General")&&(v="yyyy-mm-dd");case"Number":n.v===void 0&&(n.v=+e),n.t||(n.t="n");break;case"Error":n.t="e",n.v=Ic[e],p.cellText!==!1&&(n.w=e);break;default:e==""&&t==""?n.t="z":(n.t="s",n.v=Qa(t||e));break}if(ox(n,v,p),p.cellFormula!==!1)if(n.Formula){var _=Ht(n.Formula);_.charCodeAt(0)==61&&(_=_.slice(1)),n.f=pc(_,a),delete n.Formula,n.ArrayRange=="RC"?n.F=pc("RC:RC",a):n.ArrayRange&&(n.F=pc(n.ArrayRange,a),d.push([_n(n.F),n.F]))}else for(P=0;P=d[P][0].s.r&&a.r<=d[P][0].e.r&&a.c>=d[P][0].s.c&&a.c<=d[P][0].e.c&&(n.F=d[P][1]);p.cellStyles&&(A.forEach(function(U){!k.patternType&&U.patternType&&(k.patternType=U.patternType)}),n.s=k),n.StyleID!==void 0&&(n.ixfe=n.StyleID)}function lx(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,` +`).replace(/\r/g,` +`),e.v=e.w=e.ixfe=void 0}function G0(e,t){var r=t||{};jn();var n=Y(He(e));(r.type=="binary"||r.type=="array"||r.type=="base64")&&(typeof H!="undefined"?n=H.utils.decode(65001,K(n)):n=tn(n));var a=n.slice(0,1024).toLowerCase(),i=!1;if(a=a.replace(/".*?"/g,""),(a.indexOf(">")&1023)>Math.min(a.indexOf(",")&1023,a.indexOf(";")&1023)){var s=xn(r);return s.type="string",vo.to_workbook(n,s)}if(a.indexOf("=0&&(i=!0)}),i)return $x(n,r);mf={"General Number":"General","General Date":Ir[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":Ir[15],"Short Date":Ir[14],"Long Time":Ir[19],"Medium Time":Ir[18],"Short Time":Ir[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:Ir[2],Standard:Ir[4],Percent:Ir[10],Scientific:Ir[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var c,d=[],p;le!=null&&r.dense==null&&(r.dense=le);var v={},S=[],k=r.dense?[]:{},A="",P={},_={},U=As(''),me=0,xe=0,ie=0,rr={s:{r:2e6,c:2e6},e:{r:0,c:0}},or={},qe={},Ie="",tr=0,Qe=[],yr={},_r={},sr=0,nt=[],Ct=[],at={},jt=[],Rt,En=!1,xt=[],Lt=[],Pr={},Ue=0,pr=0,Ke={Sheets:[],WBProps:{date1904:!1}},Xe={};ae.lastIndex=0,n=n.replace(//mg,"");for(var Ar="";c=ae.exec(n);)switch(c[3]=(Ar=c[3]).toLowerCase()){case"data":if(Ar=="data"){if(c[1]==="/"){if((p=d.pop())[0]!==c[3])throw new Error("Bad state: "+p.join("|"))}else c[0].charAt(c[0].length-2)!=="/"&&d.push([c[3],!0]);break}if(d[d.length-1][1])break;c[1]==="/"?fx(n.slice(me,c.index),Ie,U,d[d.length-1][0]=="comment"?at:P,{c:xe,r:ie},or,jt[xe],_,xt,r):(Ie="",U=As(c[0]),me=c.index+c[0].length);break;case"cell":if(c[1]==="/")if(Ct.length>0&&(P.c=Ct),(!r.sheetRows||r.sheetRows>ie)&&P.v!==void 0&&(r.dense?(k[ie]||(k[ie]=[]),k[ie][xe]=P):k[Jn(xe)+Zn(ie)]=P),P.HRef&&(P.l={Target:Ht(P.HRef)},P.HRefScreenTip&&(P.l.Tooltip=P.HRefScreenTip),delete P.HRef,delete P.HRefScreenTip),(P.MergeAcross||P.MergeDown)&&(Ue=xe+(parseInt(P.MergeAcross,10)|0),pr=ie+(parseInt(P.MergeDown,10)|0),Qe.push({s:{c:xe,r:ie},e:{c:Ue,r:pr}})),!r.sheetStubs)P.MergeAcross?xe=Ue+1:++xe;else if(P.MergeAcross||P.MergeDown){for(var pt=xe;pt<=Ue;++pt)for(var et=ie;et<=pr;++et)(pt>xe||et>ie)&&(r.dense?(k[et]||(k[et]=[]),k[et][pt]={t:"z"}):k[Jn(pt)+Zn(et)]={t:"z"});xe=Ue+1}else++xe;else P=ax(c[0]),P.Index&&(xe=+P.Index-1),xerr.e.c&&(rr.e.c=xe),c[0].slice(-2)==="/>"&&++xe,Ct=[];break;case"row":c[1]==="/"||c[0].slice(-2)==="/>"?(ierr.e.r&&(rr.e.r=ie),c[0].slice(-2)==="/>"&&(_=As(c[0]),_.Index&&(ie=+_.Index-1)),xe=0,++ie):(_=As(c[0]),_.Index&&(ie=+_.Index-1),Pr={},(_.AutoFitHeight=="0"||_.Height)&&(Pr.hpx=parseInt(_.Height,10),Pr.hpt=hs(Pr.hpx),Lt[ie]=Pr),_.Hidden=="1"&&(Pr.hidden=!0,Lt[ie]=Pr));break;case"worksheet":if(c[1]==="/"){if((p=d.pop())[0]!==c[3])throw new Error("Bad state: "+p.join("|"));S.push(A),rr.s.r<=rr.e.r&&rr.s.c<=rr.e.c&&(k["!ref"]=nn(rr),r.sheetRows&&r.sheetRows<=rr.e.r&&(k["!fullref"]=k["!ref"],rr.e.r=r.sheetRows-1,k["!ref"]=nn(rr))),Qe.length&&(k["!merges"]=Qe),jt.length>0&&(k["!cols"]=jt),Lt.length>0&&(k["!rows"]=Lt),v[A]=k}else rr={s:{r:2e6,c:2e6},e:{r:0,c:0}},ie=xe=0,d.push([c[3],!1]),p=As(c[0]),A=Ht(p.Name),k=r.dense?[]:{},Qe=[],xt=[],Lt=[],Xe={name:A,Hidden:0},Ke.Sheets.push(Xe);break;case"table":if(c[1]==="/"){if((p=d.pop())[0]!==c[3])throw new Error("Bad state: "+p.join("|"))}else{if(c[0].slice(-2)=="/>")break;d.push([c[3],!1]),jt=[],En=!1}break;case"style":c[1]==="/"?cx(or,qe,r):qe=As(c[0]);break;case"numberformat":qe.nf=Ht(As(c[0]).Format||"General"),mf[qe.nf]&&(qe.nf=mf[qe.nf]);for(var rt=0;rt!=392&&Ir[rt]!=qe.nf;++rt);if(rt==392){for(rt=57;rt!=392;++rt)if(Ir[rt]==null){ln(qe.nf,rt);break}}break;case"column":if(d[d.length-1][0]!=="table")break;if(Rt=As(c[0]),Rt.Hidden&&(Rt.hidden=!0,delete Rt.Hidden),Rt.Width&&(Rt.wpx=parseInt(Rt.Width,10)),!En&&Rt.wpx>10){En=!0,Ca=Xa;for(var Lr=0;Lr0&&(qn.Sheet=Ke.Sheets.length-1),Ke.Names.push(qn);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if(c[0].slice(-2)==="/>")break;c[1]==="/"?Ie+=n.slice(tr,c.index):tr=c.index+c[0].length;break;case"interior":if(!r.cellStyles)break;qe.Interior=As(c[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if(c[0].slice(-2)==="/>")break;c[1]==="/"?Kl(yr,Ar,n.slice(sr,c.index)):sr=c.index+c[0].length;break;case"paragraphs":break;case"styles":case"workbook":if(c[1]==="/"){if((p=d.pop())[0]!==c[3])throw new Error("Bad state: "+p.join("|"))}else d.push([c[3],!1]);break;case"comment":if(c[1]==="/"){if((p=d.pop())[0]!==c[3])throw new Error("Bad state: "+p.join("|"));lx(at),Ct.push(at)}else d.push([c[3],!1]),p=As(c[0]),at={a:p.Author};break;case"autofilter":if(c[1]==="/"){if((p=d.pop())[0]!==c[3])throw new Error("Bad state: "+p.join("|"))}else if(c[0].charAt(c[0].length-2)!=="/"){var Cn=As(c[0]);k["!autofilter"]={ref:pc(Cn.Range).replace(/\$/g,"")},d.push([c[3],!0])}break;case"name":break;case"datavalidation":if(c[1]==="/"){if((p=d.pop())[0]!==c[3])throw new Error("Bad state: "+p.join("|"))}else c[0].charAt(c[0].length-2)!=="/"&&d.push([c[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if(c[1]==="/"){if((p=d.pop())[0]!==c[3])throw new Error("Bad state: "+p.join("|"))}else c[0].charAt(c[0].length-2)!=="/"&&d.push([c[3],!0]);break;case"null":break;default:if(d.length==0&&c[3]=="document"||d.length==0&&c[3]=="uof")return sh(n,r);var Qn=!0;switch(d[d.length-1][0]){case"officedocumentsettings":switch(c[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:Qn=!1}break;case"componentoptions":switch(c[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:Qn=!1}break;case"excelworkbook":switch(c[3]){case"date1904":Ke.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:Qn=!1}break;case"workbookoptions":switch(c[3]){case"owcversion":break;case"height":break;case"width":break;default:Qn=!1}break;case"worksheetoptions":switch(c[3]){case"visible":if(c[0].slice(-2)!=="/>")if(c[1]==="/")switch(n.slice(sr,c.index)){case"SheetHidden":Xe.Hidden=1;break;case"SheetVeryHidden":Xe.Hidden=2;break}else sr=c.index+c[0].length;break;case"header":k["!margins"]||Lo(k["!margins"]={},"xlml"),isNaN(+zt(c[0]).Margin)||(k["!margins"].header=+zt(c[0]).Margin);break;case"footer":k["!margins"]||Lo(k["!margins"]={},"xlml"),isNaN(+zt(c[0]).Margin)||(k["!margins"].footer=+zt(c[0]).Margin);break;case"pagemargins":var An=zt(c[0]);k["!margins"]||Lo(k["!margins"]={},"xlml"),isNaN(+An.Top)||(k["!margins"].top=+An.Top),isNaN(+An.Left)||(k["!margins"].left=+An.Left),isNaN(+An.Right)||(k["!margins"].right=+An.Right),isNaN(+An.Bottom)||(k["!margins"].bottom=+An.Bottom);break;case"displayrighttoleft":Ke.Views||(Ke.Views=[]),Ke.Views[0]||(Ke.Views[0]={}),Ke.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":k["!outline"]||(k["!outline"]={}),k["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":k["!outline"]||(k["!outline"]={}),k["!outline"].left=!0;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:Qn=!1}break;case"pivottable":case"pivotcache":switch(c[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:Qn=!1}break;case"pagebreaks":switch(c[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:Qn=!1}break;case"autofilter":switch(c[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:Qn=!1}break;case"querytable":switch(c[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:Qn=!1}break;case"datavalidation":switch(c[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:Qn=!1}break;case"sorting":case"conditionalformatting":switch(c[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:Qn=!1}break;case"mapinfo":case"schema":case"data":switch(c[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:Qn=!1}break;case"smarttags":break;default:Qn=!1;break}if(Qn||c[3].match(/!\[CDATA/))break;if(!d[d.length-1][1])throw"Unrecognized tag: "+c[3]+"|"+d.join("|");if(d[d.length-1][0]==="customdocumentproperties"){if(c[0].slice(-2)==="/>")break;c[1]==="/"?sx(_r,Ar,nt,n.slice(sr,c.index)):(nt=c,sr=c.index+c[0].length);break}if(r.WTF)throw"Unrecognized tag: "+c[3]+"|"+d.join("|")}var bt={};return!r.bookSheets&&!r.bookProps&&(bt.Sheets=v),bt.SheetNames=S,bt.Workbook=Ke,bt.SSF=xn(Ir),bt.Props=yr,bt.Custprops=_r,bt}function V0(e,t){switch(J0(t=t||{}),t.type||"base64"){case"base64":return G0(ze(e),t);case"binary":case"buffer":case"file":return G0(e,t);case"array":return G0(x(e),t)}}function ux(e,t){var r=[];return e.Props&&r.push(Mf(e.Props,t)),e.Custprops&&r.push(Yl(e.Props,e.Custprops,t)),r.join("")}function dx(){return""}function hx(e,t){var r=[''];return t.cellXfs.forEach(function(n,a){var i=[];i.push(jr("NumberFormat",null,{"ss:Format":hn(Ir[n.numFmtId])}));var s={"ss:ID":"s"+(21+a)};r.push(jr("Style",i.join(""),s))}),jr("Styles",r.join(""))}function jd(e){return jr("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+B0(e.Ref,{r:0,c:0})})}function px(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],n=0;n"),e["!margins"].header&&a.push(jr("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&a.push(jr("Footer",null,{"x:Margin":e["!margins"].footer})),a.push(jr("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),a.push("")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)a.push(jr("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&a.push(""),e["!protect"]&&(a.push(va("ProtectContents","True")),e["!protect"].objects&&a.push(va("ProtectObjects","True")),e["!protect"].scenarios&&a.push(va("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?a.push(va("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&a.push(va("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(s){e["!protect"][s[0]]&&a.push("<"+s[1]+"/>")})),a.length==0?"":jr("WorksheetOptions",a.join(""),{xmlns:Or.x})}function mx(e){return e.map(function(t){var r=Gs(t.t||""),n=jr("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return jr("Comment",n,{"ss:Author":t.a})}).join("")}function xx(e,t,r,n,a,i,s){if(!e||e.v==null&&e.f==null)return"";var c={};if(e.f&&(c["ss:Formula"]="="+hn(B0(e.f,s))),e.F&&e.F.slice(0,t.length)==t){var d=ca(e.F.slice(t.length+1));c["ss:ArrayRange"]="RC:R"+(d.r==s.r?"":"["+(d.r-s.r)+"]")+"C"+(d.c==s.c?"":"["+(d.c-s.c)+"]")}if(e.l&&e.l.Target&&(c["ss:HRef"]=hn(e.l.Target),e.l.Tooltip&&(c["x:HRefScreenTip"]=hn(e.l.Tooltip))),r["!merges"])for(var p=r["!merges"],v=0;v!=p.length;++v)p[v].s.c!=s.c||p[v].s.r!=s.r||(p[v].e.c>p[v].s.c&&(c["ss:MergeAcross"]=p[v].e.c-p[v].s.c),p[v].e.r>p[v].s.r&&(c["ss:MergeDown"]=p[v].e.r-p[v].s.r));var S="",k="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":S="Number",k=String(e.v);break;case"b":S="Boolean",k=e.v?"1":"0";break;case"e":S="Error",k=Ts[e.v];break;case"d":S="DateTime",k=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||Ir[14]);break;case"s":S="String",k=Ii(e.v||"");break}var A=yo(n.cellXfs,e,n);c["ss:StyleID"]="s"+(21+A),c["ss:Index"]=s.c+1;var P=e.v!=null?k:"",_=e.t=="z"?"":''+P+"";return(e.c||[]).length>0&&(_+=mx(e.c)),jr("Cell",_,c)}function yx(e,t){var r='"}function bx(e,t,r,n){if(!e["!ref"])return"";var a=_n(e["!ref"]),i=e["!merges"]||[],s=0,c=[];e["!cols"]&&e["!cols"].forEach(function(U,me){ai(U);var xe=!!U.width,ie=bl(me,U),rr={"ss:Index":me+1};xe&&(rr["ss:Width"]=ts(ie.width)),U.hidden&&(rr["ss:Hidden"]="1"),c.push(jr("Column",null,rr))});for(var d=Array.isArray(e),p=a.s.r;p<=a.e.r;++p){for(var v=[yx(p,(e["!rows"]||[])[p])],S=a.s.c;S<=a.e.c;++S){var k=!1;for(s=0;s!=i.length;++s)if(!(i[s].s.c>S)&&!(i[s].s.r>p)&&!(i[s].e.c"),v.length>2&&c.push(v.join(""))}return c.join("")}function wx(e,t,r){var n=[],a=r.SheetNames[e],i=r.Sheets[a],s=i?vx(i,t,e,r):"";return s.length>0&&n.push(""+s+""),s=i?bx(i,t,e,r):"",s.length>0&&n.push(""+s+"
"),n.push(gx(i,t,e,r)),n.join("")}function _x(e,t){t||(t={}),e.SSF||(e.SSF=xn(Ir)),e.SSF&&(jn(),$t(e.SSF),t.revssf=Tr(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],yo(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(ux(e,t)),r.push(dx(e,t)),r.push(""),r.push("");for(var n=0;n40||(r.l-=4,t.Reserved1=r.read_shift(0,"lpstr-ansi"),r.length-r.l<=4)||(n=r.read_shift(4),n!==1907505652)||(t.UnicodeClipboardFormat=Bl(r),n=r.read_shift(4),n==0||n>40))return t;r.l-=4,t.Reserved2=r.read_shift(0,"lpwstr")}var Sx=[60,1084,2066,2165,2175];function Tx(e,t,r,n,a){var i=n,s=[],c=r.slice(r.l,r.l+i);if(a&&a.enc&&a.enc.insitu&&c.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:break;case 133:break;default:a.enc.insitu(c)}s.push(c),r.l+=i;for(var d=Ta(r,r.l),p=j0[d],v=0;p!=null&&Sx.indexOf(d)>-1;)i=Ta(r,r.l+2),v=r.l+4,d==2066?v+=4:(d==2165||d==2175)&&(v+=12),c=r.slice(v,r.l+4+i),s.push(c),r.l+=4+i,p=j0[d=Ta(r,r.l)];var S=De(s);pn(S,0);var k=0;S.lens=[];for(var A=0;A1)&&!(xs.sheetRows&&Sn.r>=xs.sheetRows)){if(xs.cellStyles&&za.XF&&za.XF.data&&yr(Sn,za,xs),delete za.ixfe,delete za.XF,S=Sn,k=Kt(Sn),(!s||!s.s||!s.e)&&(s={s:{r:0,c:0},e:{r:0,c:0}}),Sn.rs.e.r&&(s.e.r=Sn.r+1),Sn.c+1>s.e.c&&(s.e.c=Sn.c+1),xs.cellFormula&&za.f){for(var ii=0;iiSn.c||xe[ii][0].s.r>Sn.r)&&!(xe[ii][0].e.c>8)!==et)throw new Error("rt mismatch: "+un+"!="+et);Lr.r==12&&(e.l+=10,rt-=10)}var Pe={};if(et===10?Pe=Lr.f(e,rt,sr):Pe=Tx(et,Lr,e,rt,sr),Pr==0&&[9,521,1033,2057].indexOf(Lt)===-1)continue;switch(et){case 34:r.opts.Date1904=Ie.WBProps.date1904=Pe;break;case 134:r.opts.WriteProtect=!0;break;case 47:if(sr.enc||(e.l=0),sr.enc=Pe,!t.password)throw new Error("File is password-protected");if(Pe.valid==null)throw new Error("Encryption scheme unsupported");if(!Pe.valid)throw new Error("Password is incorrect");break;case 92:sr.lastuser=Pe;break;case 66:var qn=Number(Pe);switch(qn){case 21010:qn=1200;break;case 32768:qn=1e4;break;case 32769:qn=1252;break}q(sr.codepage=qn),Ar=!0;break;case 317:sr.rrtabid=Pe;break;case 25:sr.winlocked=Pe;break;case 439:r.opts.RefreshAll=Pe;break;case 12:r.opts.CalcCount=Pe;break;case 16:r.opts.CalcDelta=Pe;break;case 17:r.opts.CalcIter=Pe;break;case 13:r.opts.CalcMode=Pe;break;case 14:r.opts.CalcPrecision=Pe;break;case 95:r.opts.CalcSaveRecalc=Pe;break;case 15:sr.CalcRefMode=Pe;break;case 2211:r.opts.FullCalc=Pe;break;case 129:Pe.fDialog&&(a["!type"]="dialog"),Pe.fBelow||((a["!outline"]||(a["!outline"]={})).above=!0),Pe.fRight||((a["!outline"]||(a["!outline"]={})).left=!0);break;case 224:or.push(Pe);break;case 430:xt.push([Pe]),xt[xt.length-1].XTI=[];break;case 35:case 547:xt[xt.length-1].push(Pe);break;case 24:case 536:Xe={Name:Pe.Name,Ref:Ci(Pe.rgce,s,null,xt,sr)},Pe.itab>0&&(Xe.Sheet=Pe.itab-1),xt.names.push(Xe),xt[0]||(xt[0]=[],xt[0].XTI=[]),xt[xt.length-1].push(Pe),Pe.Name=="_xlnm._FilterDatabase"&&Pe.itab>0&&Pe.rgce&&Pe.rgce[0]&&Pe.rgce[0][0]&&Pe.rgce[0][0][0]=="PtgArea3d"&&(Ke[Pe.itab-1]={ref:nn(Pe.rgce[0][0][1][2])});break;case 22:sr.ExternCount=Pe;break;case 23:xt.length==0&&(xt[0]=[],xt[0].XTI=[]),xt[xt.length-1].XTI=xt[xt.length-1].XTI.concat(Pe),xt.XTI=xt.XTI.concat(Pe);break;case 2196:if(sr.biff<8)break;Xe!=null&&(Xe.Comment=Pe[1]);break;case 18:a["!protect"]=Pe;break;case 19:Pe!==0&&sr.WTF&&console.error("Password verifier: "+Pe);break;case 133:i[Pe.pos]=Pe,sr.snames.push(Pe.name);break;case 10:{if(--Pr)break;if(s.e){if(s.e.r>0&&s.e.c>0){if(s.e.r--,s.e.c--,a["!ref"]=nn(s),t.sheetRows&&t.sheetRows<=s.e.r){var Cn=s.e.r;s.e.r=t.sheetRows-1,a["!fullref"]=a["!ref"],a["!ref"]=nn(s),s.e.r=Cn}s.e.r++,s.e.c++}Ct.length>0&&(a["!merges"]=Ct),at.length>0&&(a["!objects"]=at),jt.length>0&&(a["!cols"]=jt),Rt.length>0&&(a["!rows"]=Rt),Ie.Sheets.push(tr)}p===""?v=a:n[p]=a,a=t.dense?[]:{}}break;case 9:case 521:case 1033:case 2057:{if(sr.biff===8&&(sr.biff={9:2,521:3,1033:4}[et]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[Pe.BIFFVer]||8),sr.biffguess=Pe.BIFFVer==0,Pe.BIFFVer==0&&Pe.dt==4096&&(sr.biff=5,Ar=!0,q(sr.codepage=28591)),sr.biff==8&&Pe.BIFFVer==0&&Pe.dt==16&&(sr.biff=2),Pr++)break;if(a=t.dense?[]:{},sr.biff<8&&!Ar&&(Ar=!0,q(sr.codepage=t.codepage||1252)),sr.biff<5||Pe.BIFFVer==0&&Pe.dt==4096){p===""&&(p="Sheet1"),s={s:{r:0,c:0},e:{r:0,c:0}};var Qn={pos:e.l-rt,name:p};i[Qn.pos]=Qn,sr.snames.push(p)}else p=(i[pt]||{name:""}).name;Pe.dt==32&&(a["!type"]="chart"),Pe.dt==64&&(a["!type"]="macro"),Ct=[],at=[],sr.arrayf=xe=[],jt=[],Rt=[],En=!1,tr={Hidden:(i[pt]||{hs:0}).hs,name:p}}break;case 515:case 3:case 2:a["!type"]=="chart"&&(t.dense?(a[Pe.r]||[])[Pe.c]:a[Kt({c:Pe.c,r:Pe.r})])&&++Pe.c,ie={ixfe:Pe.ixfe,XF:or[Pe.ixfe]||{},v:Pe.val,t:"n"},Ue>0&&(ie.z=pr[ie.ixfe>>8&63]),Us(ie,t,r.opts.Date1904),_r({c:Pe.c,r:Pe.r},ie,t);break;case 5:case 517:ie={ixfe:Pe.ixfe,XF:or[Pe.ixfe],v:Pe.val,t:Pe.t},Ue>0&&(ie.z=pr[ie.ixfe>>8&63]),Us(ie,t,r.opts.Date1904),_r({c:Pe.c,r:Pe.r},ie,t);break;case 638:ie={ixfe:Pe.ixfe,XF:or[Pe.ixfe],v:Pe.rknum,t:"n"},Ue>0&&(ie.z=pr[ie.ixfe>>8&63]),Us(ie,t,r.opts.Date1904),_r({c:Pe.c,r:Pe.r},ie,t);break;case 189:for(var An=Pe.c;An<=Pe.C;++An){var bt=Pe.rkrec[An-Pe.c][0];ie={ixfe:bt,XF:or[bt],v:Pe.rkrec[An-Pe.c][1],t:"n"},Ue>0&&(ie.z=pr[ie.ixfe>>8&63]),Us(ie,t,r.opts.Date1904),_r({c:An,r:Pe.r},ie,t)}break;case 6:case 518:case 1030:{if(Pe.val=="String"){c=Pe;break}if(ie=wl(Pe.val,Pe.cell.ixfe,Pe.tt),ie.XF=or[ie.ixfe],t.cellFormula){var Ua=Pe.formula;if(Ua&&Ua[0]&&Ua[0][0]&&Ua[0][0][0]=="PtgExp"){var ms=Ua[0][0][1][0],Ws=Ua[0][0][1][1],no=Kt({r:ms,c:Ws});me[no]?ie.f=""+Ci(Pe.formula,s,Pe.cell,xt,sr):ie.F=((t.dense?(a[ms]||[])[Ws]:a[no])||{}).F}else ie.f=""+Ci(Pe.formula,s,Pe.cell,xt,sr)}Ue>0&&(ie.z=pr[ie.ixfe>>8&63]),Us(ie,t,r.opts.Date1904),_r(Pe.cell,ie,t),c=Pe}break;case 7:case 519:if(c)c.val=Pe,ie=wl(Pe,c.cell.ixfe,"s"),ie.XF=or[ie.ixfe],t.cellFormula&&(ie.f=""+Ci(c.formula,s,c.cell,xt,sr)),Ue>0&&(ie.z=pr[ie.ixfe>>8&63]),Us(ie,t,r.opts.Date1904),_r(c.cell,ie,t),c=null;else throw new Error("String record expects Formula");break;case 33:case 545:{xe.push(Pe);var Ef=Kt(Pe[0].s);if(A=t.dense?(a[Pe[0].s.r]||[])[Pe[0].s.c]:a[Ef],t.cellFormula&&A){if(!c||!Ef||!A)break;A.f=""+Ci(Pe[1],s,Pe[0],xt,sr),A.F=nn(Pe[0])}}break;case 1212:{if(!t.cellFormula)break;if(k){if(!c)break;me[Kt(c.cell)]=Pe[0],A=t.dense?(a[c.cell.r]||[])[c.cell.c]:a[Kt(c.cell)],(A||{}).f=""+Ci(Pe[0],s,S,xt,sr)}}break;case 253:ie=wl(d[Pe.isst].t,Pe.ixfe,"s"),d[Pe.isst].h&&(ie.h=d[Pe.isst].h),ie.XF=or[ie.ixfe],Ue>0&&(ie.z=pr[ie.ixfe>>8&63]),Us(ie,t,r.opts.Date1904),_r({c:Pe.c,r:Pe.r},ie,t);break;case 513:t.sheetStubs&&(ie={ixfe:Pe.ixfe,XF:or[Pe.ixfe],t:"z"},Ue>0&&(ie.z=pr[ie.ixfe>>8&63]),Us(ie,t,r.opts.Date1904),_r({c:Pe.c,r:Pe.r},ie,t));break;case 190:if(t.sheetStubs)for(var wo=Pe.c;wo<=Pe.C;++wo){var ns=Pe.ixfe[wo-Pe.c];ie={ixfe:ns,XF:or[ns],t:"z"},Ue>0&&(ie.z=pr[ie.ixfe>>8&63]),Us(ie,t,r.opts.Date1904),_r({c:wo,r:Pe.r},ie,t)}break;case 214:case 516:case 4:ie=wl(Pe.val,Pe.ixfe,"s"),ie.XF=or[ie.ixfe],Ue>0&&(ie.z=pr[ie.ixfe>>8&63]),Us(ie,t,r.opts.Date1904),_r({c:Pe.c,r:Pe.r},ie,t);break;case 0:case 512:Pr===1&&(s=Pe);break;case 252:d=Pe;break;case 1054:if(sr.biff==4){pr[Ue++]=Pe[1];for(var ao=0;ao=163&&ln(Pe[1],Ue+163)}else ln(Pe[1],Pe[0]);break;case 30:{pr[Ue++]=Pe;for(var _o=0;_o=163&&ln(Pe,Ue+163)}break;case 229:Ct=Ct.concat(Pe);break;case 93:at[Pe.cmo[0]]=sr.lastobj=Pe;break;case 438:sr.lastobj.TxO=Pe;break;case 127:sr.lastobj.ImData=Pe;break;case 440:for(U=Pe[0].s.r;U<=Pe[0].e.r;++U)for(_=Pe[0].s.c;_<=Pe[0].e.c;++_)A=t.dense?(a[U]||[])[_]:a[Kt({c:_,r:U})],A&&(A.l=Pe[1]);break;case 2048:for(U=Pe[0].s.r;U<=Pe[0].e.r;++U)for(_=Pe[0].s.c;_<=Pe[0].e.c;++_)A=t.dense?(a[U]||[])[_]:a[Kt({c:_,r:U})],A&&A.l&&(A.l.Tooltip=Pe[1]);break;case 28:{if(sr.biff<=5&&sr.biff>=2)break;A=t.dense?(a[Pe[0].r]||[])[Pe[0].c]:a[Kt(Pe[0])];var Sf=at[Pe[2]];A||(t.dense?(a[Pe[0].r]||(a[Pe[0].r]=[]),A=a[Pe[0].r][Pe[0].c]={t:"z"}):A=a[Kt(Pe[0])]={t:"z"},s.e.r=Math.max(s.e.r,Pe[0].r),s.s.r=Math.min(s.s.r,Pe[0].r),s.e.c=Math.max(s.e.c,Pe[0].c),s.s.c=Math.min(s.s.c,Pe[0].c)),A.c||(A.c=[]),P={a:Pe[1],t:Sf.TxO.t},A.c.push(P)}break;case 2173:dp(or[Pe.ixfe],Pe.ext);break;case 125:{if(!sr.cellStyles)break;for(;Pe.e>=Pe.s;)jt[Pe.e--]={width:Pe.w/256,level:Pe.level||0,hidden:!!(Pe.flags&1)},En||(En=!0,go(Pe.w/256)),ai(jt[Pe.e+1])}break;case 520:{var Li={};Pe.level!=null&&(Rt[Pe.r]=Li,Li.level=Pe.level),Pe.hidden&&(Rt[Pe.r]=Li,Li.hidden=!0),Pe.hpt&&(Rt[Pe.r]=Li,Li.hpt=Pe.hpt,Li.hpx=Cs(Pe.hpt))}break;case 38:case 39:case 40:case 41:a["!margins"]||Lo(a["!margins"]={}),a["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[et]]=Pe;break;case 161:a["!margins"]||Lo(a["!margins"]={}),a["!margins"].header=Pe.header,a["!margins"].footer=Pe.footer;break;case 574:Pe.RTL&&(Ie.Views[0].RTL=!0);break;case 146:qe=Pe;break;case 2198:nt=Pe;break;case 140:rr=Pe;break;case 442:p?tr.CodeName=Pe||tr.name:Ie.WBProps.CodeName=Pe||"ThisWorkbook";break}}else Lr||console.error("Missing Info for XLS Record 0x"+et.toString(16)),e.l+=rt}return r.SheetNames=Te(i).sort(function(Hs,Sn){return Number(Hs)-Number(Sn)}).map(function(Hs){return i[Hs].name}),t.bookSheets||(r.Sheets=n),!r.SheetNames.length&&v["!ref"]?(r.SheetNames.push("Sheet1"),r.Sheets&&(r.Sheets.Sheet1=v)):r.Preamble=v,r.Sheets&&Ke.forEach(function(Hs,Sn){r.Sheets[r.SheetNames[Sn]]["!autofilter"]=Hs}),r.Strings=d,r.SSF=xn(Ir),sr.enc&&(r.Encryption=sr.enc),nt&&(r.Themes=nt),r.Metadata={},rr!==void 0&&(r.Metadata.Country=rr),xt.names.length>0&&(Ie.Names=xt.names),r.Workbook=Ie,r}var xf={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function Cx(e,t,r){var n=Qr.find(e,"/!DocumentSummaryInformation");if(n&&n.size>0)try{var a=Wf(n,Ac,xf.DSI);for(var i in a)t[i]=a[i]}catch(p){if(r.WTF)throw p}var s=Qr.find(e,"/!SummaryInformation");if(s&&s.size>0)try{var c=Wf(s,Dc,xf.SI);for(var d in c)t[d]==null&&(t[d]=c[d])}catch(p){if(r.WTF)throw p}t.HeadingPairs&&t.TitlesOfParts&&(Bf(t.HeadingPairs,t.TitlesOfParts,t,r),delete t.HeadingPairs,delete t.TitlesOfParts)}function Ax(e,t){var r=[],n=[],a=[],i=0,s,c=Ne(Ac,"n"),d=Ne(Dc,"n");if(e.Props)for(s=Te(e.Props),i=0;i-1||Mc.indexOf(a[i][0])>-1||a[i][1]!=null&&p.push(a[i]);n.length&&Qr.utils.cfb_add(t,"/SummaryInformation",rc(n,xf.SI,d,Dc)),(r.length||p.length)&&Qr.utils.cfb_add(t,"/DocumentSummaryInformation",rc(r,xf.DSI,c,Ac,p.length?p:null,xf.UDI))}function $d(e,t){t||(t={}),J0(t),ne(),t.codepage&&y(t.codepage);var r,n;if(e.FullPaths){if(Qr.find(e,"/encryption"))throw new Error("File is password-protected");r=Qr.find(e,"!CompObj"),n=Qr.find(e,"/Workbook")||Qr.find(e,"/Book")}else{switch(t.type){case"base64":e=I(ze(e));break;case"binary":e=I(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e));break}pn(e,0),n={content:e}}var a,i;if(r&&Ex(r),t.bookProps&&!t.bookSheets)a={};else{var s=j?"buffer":"array";if(n&&n.content)a=kx(n.content,t);else if((i=Qr.find(e,"PerfectOffice_MAIN"))&&i.content)a=ro.to_workbook(i.content,(t.type=s,t));else if((i=Qr.find(e,"NativeContent_MAIN"))&&i.content)a=ro.to_workbook(i.content,(t.type=s,t));else throw(i=Qr.find(e,"MN0"))&&i.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");t.bookVBA&&e.FullPaths&&Qr.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(a.vbaraw=zp(e))}var c={};return e.FullPaths&&Cx(e,c,t),a.Props=a.Custprops=c,t.bookFiles&&(a.cfb=e),a}function Dx(e,t){var r=t||{},n=Qr.utils.cfb_new({root:"R"}),a="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":a="/Workbook",r.biff=8;break;case"biff5":a="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return Qr.utils.cfb_add(n,a,Xd(e,r)),r.biff==8&&(e.Props||e.Custprops)&&Ax(e,n),r.biff==8&&e.vbaraw&&Wp(n,Qr.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var yf={0:{f:qg},1:{f:s1},2:{f:T1},3:{f:p1},4:{f:l1},5:{f:_1},6:{f:I1},7:{f:x1},8:{f:M1},9:{f:B1},10:{f:P1},11:{f:N1},12:{f:c1},13:{f:C1},14:{f:g1},15:{f:d1},16:{f:Nd},17:{f:O1},18:{f:b1},19:{f:bc},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:Rm},40:{},42:{},43:{f:Ih},44:{f:Mo},45:{f:Rh},46:{f:Nh},47:{f:Ph},48:{},49:{f:Df},50:{},51:{f:vp},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:il},62:{f:D1},63:{f:Sp},64:{f:Q1},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:fn,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:K1},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:a1},148:{f:r1,p:16},151:{f:G1},152:{},153:{f:Im},154:{},155:{},156:{f:Am},157:{},158:{},159:{T:1,f:hl},160:{T:-1},161:{T:1,f:Rs},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:L1},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:hp},336:{T:-1},337:{f:xp,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:To},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Ku},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:V1},427:{f:j1},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:X1},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:n1},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:W1},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:To},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Np},633:{T:1},634:{T:-1},635:{T:1,f:Rp},636:{T:-1},637:{f:Il},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:mm},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:em},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},j0={6:{f:L0},10:{f:ji},12:{f:ka},13:{f:ka},14:{f:wa},15:{f:wa},16:{f:ti},17:{f:wa},18:{f:wa},19:{f:ka},20:{f:Yc},21:{f:Yc},23:{f:Ku},24:{f:qc},25:{f:wa},26:{},27:{},28:{f:e0},29:{},34:{f:wa},35:{f:Jc},38:{f:ti},39:{f:ti},40:{f:ti},41:{f:ti},42:{f:wa},43:{f:wa},47:{f:ua},49:{f:Ou},51:{f:ka},60:{},61:{f:Au},64:{f:wa},65:{f:Yf},66:{f:ka},77:{},80:{},81:{},82:{},85:{f:ka},89:{},90:{},91:{},92:{f:xu},93:{f:cc},94:{},95:{f:wa},96:{},97:{},99:{f:wa},125:{f:il},128:{f:ld},129:{f:bu},130:{f:ka},131:{f:wa},132:{f:wa},133:{f:Zc},134:{},140:{f:s0},141:{f:ka},144:{},146:{f:tf},151:{},152:{},153:{},154:{},155:{},156:{f:ka},157:{},158:{},160:{f:u0},161:{f:c0},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:Po},190:{f:Wu},193:{f:ji},197:{},198:{},199:{},200:{},201:{},202:{f:wa},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:ka},220:{},221:{f:wa},222:{},224:{f:Hu},225:{f:mu},226:{f:ji},227:{},229:{f:r0},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:_u},253:{f:Pu},255:{f:Su},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:tc},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:wa},353:{f:ji},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:Xu},431:{f:wa},432:{},433:{},434:{},437:{},438:{f:ef},439:{f:wa},440:{f:nl},441:{},442:{f:Io},443:{},444:{f:ka},445:{},446:{},448:{f:ji},449:{f:Cu,r:2},450:{f:ji},512:{f:qf},513:{f:sl},515:{f:ju},516:{f:Bu},517:{f:oc},519:{f:d0},520:{f:Tu},523:{},545:{f:rl},549:{f:Kc},566:{},574:{f:Iu},638:{f:zu},659:{},1048:{},1054:{f:sc},1084:{},1212:{f:Ju},2048:{f:a0},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:ic},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:ji},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:nf,r:12},2173:{f:up,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:wa,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:Yu,r:12},2197:{},2198:{f:ip,r:12},2199:{},2200:{},2201:{},2202:{f:qu,r:12},2203:{f:ji},2204:{},2205:{},2206:{},2207:{},2211:{f:ku},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:ka},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:f0},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:al},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:qf},1:{},2:{f:m0},3:{f:v0},4:{f:p0},5:{f:oc},7:{f:y0},8:{},9:{f:ic},11:{},22:{f:ka},30:{f:Lu},31:{},32:{},33:{f:rl},36:{},37:{f:Kc},50:{f:b0},62:{},52:{},67:{},68:{f:ka},69:{},86:{},126:{},127:{f:h0},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:w0},223:{},234:{},354:{},421:{},518:{f:L0},521:{f:ic},536:{f:qc},547:{f:Jc},561:{},579:{},1030:{f:L0},1033:{f:ic},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function st(e,t,r,n){var a=t;if(!isNaN(a)){var i=n||(r||[]).length||0,s=e.next(4);s.write_shift(2,a),s.write_shift(2,i),i>0&&ta(r)&&e.push(r)}}function Ix(e,t,r,n){var a=n||(r||[]).length||0;if(a<=8224)return st(e,t,r,a);var i=t;if(!isNaN(i)){for(var s=r.parts||[],c=0,d=0,p=0;p+(s[c]||8224)<=8224;)p+=s[c]||8224,c++;var v=e.next(4);for(v.write_shift(2,i),v.write_shift(2,p),e.push(r.slice(d,d+p)),d+=p;d=0&&a<65536?st(e,2,x0(r,n,a)):st(e,3,g0(r,n,a));return;case"b":case"e":st(e,5,Fx(r,n,t.v,t.t));return;case"s":case"str":st(e,4,Ox(r,n,(t.v||"").slice(0,255)));return}st(e,1,bf(null,r,n))}function Px(e,t,r,n){var a=Array.isArray(t),i=_n(t["!ref"]||"A1"),s,c="",d=[];if(i.e.c>255||i.e.r>16383){if(n.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");i.e.c=Math.min(i.e.c,255),i.e.r=Math.min(i.e.c,16383),s=nn(i)}for(var p=i.s.r;p<=i.e.r;++p){c=Zn(p);for(var v=i.s.c;v<=i.e.c;++v){p===i.s.r&&(d[v]=Jn(v)),s=d[v]+c;var S=a?(t[p]||[])[v]:t[s];S&&Rx(e,S,p,v,n)}}}function Nx(e,t){var r=t||{};le!=null&&r.dense==null&&(r.dense=le);for(var n=oa(),a=0,i=0;i255||A.e.r>=P){if(t.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");A.e.c=Math.min(A.e.c,255),A.e.r=Math.min(A.e.c,P-1)}st(n,2057,Ms(r,16,t)),st(n,13,$i(1)),st(n,12,$i(100)),st(n,15,di(!0)),st(n,17,di(!1)),st(n,16,Ks(.001)),st(n,95,di(!0)),st(n,42,di(!1)),st(n,43,di(!1)),st(n,130,$i(1)),st(n,128,Gu([0,0])),st(n,131,di(!1)),st(n,132,di(!1)),p&&Wx(n,i["!cols"]),st(n,512,Uu(A,t)),p&&(i["!links"]=[]);for(var _=A.s.r;_<=A.e.r;++_){S=Zn(_);for(var U=A.s.c;U<=A.e.c;++U){_===A.s.r&&(k[U]=Jn(U)),v=k[U]+S;var me=d?(i[_]||[])[U]:i[v];me&&(Hx(n,me,_,U,t),p&&me.l&&i["!links"].push([v,me.l]))}}var xe=c.CodeName||c.name||a;return p&&st(n,574,Fu((s.Views||[])[0])),p&&(i["!merges"]||[]).length&&st(n,229,tl(i["!merges"])),p&&zx(n,i),st(n,442,ou(xe,t)),p&&Lx(n,i),st(n,10),n.end()}function Vx(e,t,r){var n=oa(),a=(e||{}).Workbook||{},i=a.Sheets||[],s=a.WBProps||{},c=r.biff==8,d=r.biff==5;if(st(n,2057,Ms(e,5,r)),r.bookType=="xla"&&st(n,135),st(n,225,c?$i(1200):null),st(n,193,tu(2)),d&&st(n,191),d&&st(n,192),st(n,226),st(n,92,yu("SheetJS",r)),st(n,66,$i(c?1200:1252)),c&&st(n,353,$i(0)),c&&st(n,448),st(n,317,l0(e.SheetNames.length)),c&&e.vbaraw&&st(n,211),c&&e.vbaraw){var p=s.CodeName||"ThisWorkbook";st(n,442,ou(p,r))}st(n,156,$i(17)),st(n,25,di(!1)),st(n,18,di(!1)),st(n,19,$i(0)),c&&st(n,431,di(!1)),c&&st(n,444,$i(0)),st(n,61,Du(r)),st(n,64,di(!1)),st(n,141,$i(0)),st(n,34,di(Em(e)=="true")),st(n,14,di(!0)),c&&st(n,439,di(!1)),st(n,218,$i(0)),Bx(n,e,r),Mx(n,e.SSF,r),Ux(n,r),c&&st(n,352,di(!1));var v=n.end(),S=oa();c&&st(S,140,rf()),c&&r.Strings&&Ix(S,252,Eu(r.Strings,r)),st(S,10);var k=S.end(),A=oa(),P=0,_=0;for(_=0;_255&&typeof console!="undefined"&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255). Data may be lost.")}}var i=t||{};switch(i.biff||2){case 8:case 5:return jx(e,t);case 4:case 3:case 2:return Nx(e,t)}throw new Error("invalid type "+i.bookType+" for BIFF")}function Zd(e,t){var r=t||{};le!=null&&r.dense==null&&(r.dense=le);var n=r.dense?[]:{};e=e.replace(//g,"");var a=e.match(/");var i=e.match(/<\/table/i),s=a.index,c=i&&i.index||e.length,d=Ei(e.slice(s,c),/(:?]*>)/i,""),p=-1,v=0,S=0,k=0,A={s:{r:1e7,c:1e7},e:{r:0,c:0}},P=[];for(s=0;s/i);for(c=0;c"))>-1;)ie=ie.slice(rr+1);for(var or=0;or")));k=Ie.colspan?+Ie.colspan:1,((S=+Ie.rowspan)>1||k>1)&&P.push({s:{r:p,c:v},e:{r:p+(S||1)-1,c:v+k-1}});var tr=Ie.t||Ie["data-t"]||"";if(!ie.length){v+=k;continue}if(ie=os(ie),A.s.r>p&&(A.s.r=p),A.e.rv&&(A.s.c=v),A.e.cr||a[p].s.c>s)&&!(a[p].e.r1&&(A.rowspan=c),d>1&&(A.colspan=d),n.editable?k=''+k+"":S&&(A["data-t"]=S&&S.t||"z",S.v!=null&&(A["data-v"]=S.v),S.z!=null&&(A["data-z"]=S.z),S.l&&(S.l.Target||"#").charAt(0)!="#"&&(k=''+k+"")),A.id=(n.id||"sjs")+"-"+v,i.push(jr("td",k,A))}}var P="";return P+i.join("")+""}var Yd='SheetJS Table Export',Jd="";function $x(e,t){var r=e.match(/[\s\S]*?<\/table>/gi);if(!r||r.length==0)throw new Error("Invalid HTML: could not find
");if(r.length==1)return Fs(Zd(r[0],t),t);var n=nd();return r.forEach(function(a,i){ad(n,Zd(a,t),"Sheet"+(i+1))}),n}function qd(e,t,r){var n=[];return n.join("")+""}function Qd(e,t){var r=t||{},n=r.header!=null?r.header:Yd,a=r.footer!=null?r.footer:Jd,i=[n],s=wi(e["!ref"]);r.dense=Array.isArray(e),i.push(qd(e,s,r));for(var c=s.s.r;c<=s.e.r;++c)i.push(Kd(e,s,c,r));return i.push("
"+a),i.join("")}function eh(e,t,r){var n=r||{};le!=null&&(n.dense=le);var a=0,i=0;if(n.origin!=null)if(typeof n.origin=="number")a=n.origin;else{var s=typeof n.origin=="string"?ca(n.origin):n.origin;a=s.r,i=s.c}var c=t.getElementsByTagName("tr"),d=Math.min(n.sheetRows||1e7,c.length),p={s:{r:0,c:0},e:{r:a,c:i}};if(e["!ref"]){var v=wi(e["!ref"]);p.s.r=Math.min(p.s.r,v.s.r),p.s.c=Math.min(p.s.c,v.s.c),p.e.r=Math.max(p.e.r,v.e.r),p.e.c=Math.max(p.e.c,v.e.c),a==-1&&(p.e.r=a=v.e.r+1)}var S=[],k=0,A=e["!rows"]||(e["!rows"]=[]),P=0,_=0,U=0,me=0,xe=0,ie=0;for(e["!cols"]||(e["!cols"]=[]);P1||ie>1)&&S.push({s:{r:_+a,c:me+i},e:{r:_+a+(xe||1)-1,c:me+i+(ie||1)-1}});var yr={t:"s",v:Ie},_r=qe.getAttribute("data-t")||qe.getAttribute("t")||"";Ie!=null&&(Ie.length==0?yr.t=_r||"z":n.raw||Ie.trim().length==0||_r=="s"||(Ie==="TRUE"?yr={t:"b",v:!0}:Ie==="FALSE"?yr={t:"b",v:!1}:isNaN(Ln(Ie))?isNaN(bn(Ie).getDate())||(yr={t:"d",v:mn(Ie)},n.cellDates||(yr={t:"n",v:It(yr.v)}),yr.z=n.dateNF||Ir[14]):yr={t:"n",v:Ln(Ie)})),yr.z===void 0&&tr!=null&&(yr.z=tr);var sr="",nt=qe.getElementsByTagName("A");if(nt&&nt.length)for(var Ct=0;Ct=d&&(e["!fullref"]=nn((p.e.r=c.length-P+_-1+a,p))),e}function rh(e,t){var r=t||{},n=r.dense?[]:{};return eh(n,e,t)}function Xx(e,t){return Fs(rh(e,t),t)}function th(e){var t="",r=Zx(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function Zx(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}function Kx(e){var t=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,function(n,a){return Array(parseInt(a,10)+1).join(" ")}).replace(/]*\/>/g," ").replace(//g,` +`),r=Ht(t.replace(/<[^>]*>/g,""));return[r]}var nh={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function ah(e,t){var r=t||{};le!=null&&r.dense==null&&(r.dense=le);var n=He(e),a=[],i,s,c={name:""},d="",p=0,v,S,k={},A=[],P=r.dense?[]:{},_,U,me={value:""},xe="",ie=0,rr,or=[],qe=-1,Ie=-1,tr={s:{r:1e6,c:1e7},e:{r:0,c:0}},Qe=0,yr={},_r=[],sr={},nt=0,Ct=0,at=[],jt=1,Rt=1,En=[],xt={Names:[]},Lt={},Pr=["",""],Ue=[],pr={},Ke="",Xe=0,Ar=!1,pt=!1,et=0;for(ae.lastIndex=0,n=n.replace(//mg,"").replace(//gm,"");_=ae.exec(n);)switch(_[3]=_[3].replace(/_.*$/,"")){case"table":case"\u5DE5\u4F5C\u8868":_[1]==="/"?(tr.e.c>=tr.s.c&&tr.e.r>=tr.s.r?P["!ref"]=nn(tr):P["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=tr.e.r&&(P["!fullref"]=P["!ref"],tr.e.r=r.sheetRows-1,P["!ref"]=nn(tr)),_r.length&&(P["!merges"]=_r),at.length&&(P["!rows"]=at),v.name=v.\u540D\u79F0||v.name,typeof JSON!="undefined"&&JSON.stringify(v),A.push(v.name),k[v.name]=P,pt=!1):_[0].charAt(_[0].length-2)!=="/"&&(v=zt(_[0],!1),qe=Ie=-1,tr.s.r=tr.s.c=1e7,tr.e.r=tr.e.c=0,P=r.dense?[]:{},_r=[],at=[],pt=!0);break;case"table-row-group":_[1]==="/"?--Qe:++Qe;break;case"table-row":case"\u884C":if(_[1]==="/"){qe+=jt,jt=1;break}if(S=zt(_[0],!1),S.\u884C\u53F7?qe=S.\u884C\u53F7-1:qe==-1&&(qe=0),jt=+S["number-rows-repeated"]||1,jt<10)for(et=0;et0&&(at[qe+et]={level:Qe});Ie=-1;break;case"covered-table-cell":_[1]!=="/"&&++Ie,r.sheetStubs&&(r.dense?(P[qe]||(P[qe]=[]),P[qe][Ie]={t:"z"}):P[Kt({r:qe,c:Ie})]={t:"z"}),xe="",or=[];break;case"table-cell":case"\u6570\u636E":if(_[0].charAt(_[0].length-2)==="/")++Ie,me=zt(_[0],!1),Rt=parseInt(me["number-columns-repeated"]||"1",10),U={t:"z",v:null},me.formula&&r.cellFormula!=!1&&(U.f=Fd(Ht(me.formula))),(me.\u6570\u636E\u7C7B\u578B||me["value-type"])=="string"&&(U.t="s",U.v=Ht(me["string-value"]||""),r.dense?(P[qe]||(P[qe]=[]),P[qe][Ie]=U):P[Kt({r:qe,c:Ie})]=U),Ie+=Rt-1;else if(_[1]!=="/"){++Ie,xe="",ie=0,or=[],Rt=1;var rt=jt?qe+jt-1:qe;if(Ie>tr.e.c&&(tr.e.c=Ie),Ietr.e.r&&(tr.e.r=rt),me=zt(_[0],!1),Ue=[],pr={},U={t:me.\u6570\u636E\u7C7B\u578B||me["value-type"],v:null},r.cellFormula)if(me.formula&&(me.formula=Ht(me.formula)),me["number-matrix-columns-spanned"]&&me["number-matrix-rows-spanned"]&&(nt=parseInt(me["number-matrix-rows-spanned"],10)||0,Ct=parseInt(me["number-matrix-columns-spanned"],10)||0,sr={s:{r:qe,c:Ie},e:{r:qe+nt-1,c:Ie+Ct-1}},U.F=nn(sr),En.push([sr,U.F])),me.formula)U.f=Fd(me.formula);else for(et=0;et=En[et][0].s.r&&qe<=En[et][0].e.r&&Ie>=En[et][0].s.c&&Ie<=En[et][0].e.c&&(U.F=En[et][1]);switch((me["number-columns-spanned"]||me["number-rows-spanned"])&&(nt=parseInt(me["number-rows-spanned"],10)||0,Ct=parseInt(me["number-columns-spanned"],10)||0,sr={s:{r:qe,c:Ie},e:{r:qe+nt-1,c:Ie+Ct-1}},_r.push(sr)),me["number-columns-repeated"]&&(Rt=parseInt(me["number-columns-repeated"],10)),U.t){case"boolean":U.t="b",U.v=Rn(me["boolean-value"]);break;case"float":U.t="n",U.v=parseFloat(me.value);break;case"percentage":U.t="n",U.v=parseFloat(me.value);break;case"currency":U.t="n",U.v=parseFloat(me.value);break;case"date":U.t="d",U.v=mn(me["date-value"]),r.cellDates||(U.t="n",U.v=It(U.v)),U.z="m/d/yy";break;case"time":U.t="n",U.v=Mn(me["time-value"])/86400,r.cellDates&&(U.t="d",U.v=Yt(U.v)),U.z="HH:MM:SS";break;case"number":U.t="n",U.v=parseFloat(me.\u6570\u636E\u6570\u503C);break;default:if(U.t==="string"||U.t==="text"||!U.t)U.t="s",me["string-value"]!=null&&(xe=Ht(me["string-value"]),or=[]);else throw new Error("Unsupported value type "+U.t)}}else{if(Ar=!1,U.t==="s"&&(U.v=xe||"",or.length&&(U.R=or),Ar=ie==0),Lt.Target&&(U.l=Lt),Ue.length>0&&(U.c=Ue,Ue=[]),xe&&r.cellText!==!1&&(U.w=xe),Ar&&(U.t="z",delete U.v),(!Ar||r.sheetStubs)&&!(r.sheetRows&&r.sheetRows<=qe))for(var Lr=0;Lr0;)P[qe+Lr][Ie+Rt]=xn(U);else for(P[Kt({r:qe+Lr,c:Ie})]=U;--Rt>0;)P[Kt({r:qe+Lr,c:Ie+Rt})]=xn(U);tr.e.c<=Ie&&(tr.e.c=Ie)}Rt=parseInt(me["number-columns-repeated"]||"1",10),Ie+=Rt-1,Rt=0,U={},xe="",or=[]}Lt={};break;case"document":case"document-content":case"\u7535\u5B50\u8868\u683C\u6587\u6863":case"spreadsheet":case"\u4E3B\u4F53":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(_[1]==="/"){if((i=a.pop())[0]!==_[3])throw"Bad state: "+i}else _[0].charAt(_[0].length-2)!=="/"&&a.push([_[3],!0]);break;case"annotation":if(_[1]==="/"){if((i=a.pop())[0]!==_[3])throw"Bad state: "+i;pr.t=xe,or.length&&(pr.R=or),pr.a=Ke,Ue.push(pr)}else _[0].charAt(_[0].length-2)!=="/"&&a.push([_[3],!1]);Ke="",Xe=0,xe="",ie=0,or=[];break;case"creator":_[1]==="/"?Ke=n.slice(Xe,_.index):Xe=_.index+_[0].length;break;case"meta":case"\u5143\u6570\u636E":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(_[1]==="/"){if((i=a.pop())[0]!==_[3])throw"Bad state: "+i}else _[0].charAt(_[0].length-2)!=="/"&&a.push([_[3],!1]);xe="",ie=0,or=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(_[1]==="/"){if(yr[c.name]=d,(i=a.pop())[0]!==_[3])throw"Bad state: "+i}else _[0].charAt(_[0].length-2)!=="/"&&(d="",c=zt(_[0],!1),a.push([_[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(a[a.length-1][0]){case"time-style":case"date-style":s=zt(_[0],!1),d+=nh[_[3]][s.style==="long"?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(a[a.length-1][0]){case"time-style":case"date-style":s=zt(_[0],!1),d+=nh[_[3]][s.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(_[0].slice(-2)==="/>")break;if(_[1]==="/")switch(a[a.length-1][0]){case"number-style":case"date-style":case"time-style":d+=n.slice(p,_.index);break}else p=_.index+_[0].length;break;case"named-range":s=zt(_[0],!1),Pr=U0(s["cell-range-address"]);var un={Name:s.name,Ref:Pr[0]+"!"+Pr[1]};pt&&(un.Sheet=A.length),xt.Names.push(un);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"\u7535\u5B50\u8868\u683C":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"\u6587\u672C\u4E32":if(["master-styles"].indexOf(a[a.length-1][0])>-1)break;if(_[1]==="/"&&(!me||!me["string-value"])){var Pe=Kx(n.slice(ie,_.index),rr);xe=(xe.length>0?xe+` +`:"")+Pe[0]}else rr=zt(_[0],!1),ie=_.index+_[0].length;break;case"s":break;case"database-range":if(_[1]==="/")break;try{Pr=U0(zt(_[0])["target-range-address"]),k[Pr[0]]["!autofilter"]={ref:Pr[1]}}catch(Cn){}break;case"date":break;case"object":break;case"title":case"\u6807\u9898":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if(_[1]!=="/"){if(Lt=zt(_[0],!1),!Lt.href)break;Lt.Target=Ht(Lt.href),delete Lt.href,Lt.Target.charAt(0)=="#"&&Lt.Target.indexOf(".")>-1?(Pr=U0(Lt.Target.slice(1)),Lt.Target="#"+Pr[0]+"!"+Pr[1]):Lt.Target.match(/^\.\.[\\\/]/)&&(Lt.Target=Lt.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(_[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"\u8868:":case"\u5B57:":break;default:if(r.WTF)throw new Error(_)}}var qn={Sheets:k,SheetNames:A,Workbook:xt};return r.bookSheets&&delete qn.Sheets,qn}function ih(e,t){t=t||{},$n(e,"META-INF/manifest.xml")&&Ps(dn(e,"META-INF/manifest.xml"),t);var r=xa(e,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var n=ah(tn(r),t);return $n(e,"meta.xml")&&(n.Props=Bc(dn(e,"meta.xml"))),n}function sh(e,t){return ah(e,t)}var Yx=function(){var e=["",'',"",'',"",'',"",""].join(""),t=""+e+"";return function(){return In+t}}(),oh=function(){var e=function(i){return hn(i).replace(/ +/g,function(s){return''}).replace(/\t/g,"").replace(/\n/g,"").replace(/^ /,"").replace(/ $/,"")},t=` +`,r=` +`,n=function(i,s,c){var d=[];d.push(' +`);var p=0,v=0,S=wi(i["!ref"]||"A1"),k=i["!merges"]||[],A=0,P=Array.isArray(i);if(i["!cols"])for(v=0;v<=S.e.c;++v)d.push(" +`);var _="",U=i["!rows"]||[];for(p=0;p +`);for(;p<=S.e.r;++p){for(_=U[p]?' table:style-name="ro'+U[p].ods+'"':"",d.push(" +`),v=0;vv)&&!(k[A].s.r>p)&&!(k[A].e.c +`)}return d.push(` +`),d.join("")},a=function(i,s){i.push(` +`),i.push(` +`),i.push(` +`),i.push(` / +`),i.push(` +`),i.push(` / +`),i.push(` +`),i.push(` +`);var c=0;s.SheetNames.map(function(p){return s.Sheets[p]}).forEach(function(p){if(p&&p["!cols"]){for(var v=0;v +`),i.push(' +`),i.push(` +`),++c}}});var d=0;s.SheetNames.map(function(p){return s.Sheets[p]}).forEach(function(p){if(p&&p["!rows"]){for(var v=0;v +`),i.push(' +`),i.push(` +`),++d}}}),i.push(` +`),i.push(` +`),i.push(` +`),i.push(` +`),i.push(` +`)};return function(s,c){var d=[In],p=mi({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),v=mi({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});c.bookType=="fods"?(d.push(" +`),d.push(Nc().replace(/office:document-meta/g,"office:meta"))):d.push(" +`),a(d,s),d.push(` +`),d.push(` +`);for(var S=0;S!=s.SheetNames.length;++S)d.push(n(s.Sheets[s.SheetNames[S]],s,S,c));return d.push(` +`),d.push(` +`),c.bookType=="fods"?d.push(""):d.push(""),d.join("")}}();function ch(e,t){if(t.bookType=="fods")return oh(e,t);var r=Di(),n="",a=[],i=[];return n="mimetype",Vt(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",Vt(r,n,oh(e,t)),a.push([n,"text/xml"]),i.push([n,"ContentFile"]),n="styles.xml",Vt(r,n,Yx(e,t)),a.push([n,"text/xml"]),i.push([n,"StylesFile"]),n="meta.xml",Vt(r,n,In+Nc()),a.push([n,"text/xml"]),i.push([n,"MetadataFile"]),n="manifest.rdf",Vt(r,n,$l(i)),a.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",Vt(r,n,jl(a)),r}function Uo(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function $0(e){return typeof TextDecoder!="undefined"?new TextDecoder().decode(e):tn(x(e))}function Jx(e){return typeof TextEncoder!="undefined"?new TextEncoder().encode(e):I(fa(e))}function qx(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function Qx(e,t){for(var r=(e[t+15]&127)<<7|e[t+14]>>1,n=e[t+14]&1,a=t+13;a>=t;--a)n=n*256+e[a];return(e[t+15]&128?-n:n)*Math.pow(10,r-6176)}function e2(e,t,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,a=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(n&127)<<1;for(var i=0;a>=1;++i,a/=256)e[t+i]=a&255;e[t+15]|=r>=0?0:128}function wf(e,t){var r=t?t[0]:0,n=e[r]&127;e:if(e[r++]>=128&&(n|=(e[r]&127)<<7,e[r++]<128||(n|=(e[r]&127)<<14,e[r++]<128)||(n|=(e[r]&127)<<21,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return t&&(t[0]=r),n}function Kn(e){var t=new Uint8Array(7);t[0]=e&127;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383||(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)||(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)||(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)||(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103))break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function Aa(e){var t=0,r=e[t]&127;e:if(e[t++]>=128){if(r|=(e[t]&127)<<7,e[t++]<128||(r|=(e[t]&127)<<14,e[t++]<128)||(r|=(e[t]&127)<<21,e[t++]<128))break e;r|=(e[t]&127)<<28}return r}function Hn(e){for(var t=[],r=[0];r[0]=128;);c=e.slice(d,r[0])}break;case 5:s=4,c=e.slice(r[0],r[0]+s),r[0]+=s;break;case 1:s=8,c=e.slice(r[0],r[0]+s),r[0]+=s;break;case 2:s=wf(e,r),c=e.slice(r[0],r[0]+s),r[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(i," for Field ").concat(a," at offset ").concat(n))}var p={data:c,type:i};t[a]==null?t[a]=[p]:t[a].push(p)}return t}function pi(e){var t=[];return e.forEach(function(r,n){r.forEach(function(a){a.data&&(t.push(Kn(n*8+a.type)),a.type==2&&t.push(Kn(a.data.length)),t.push(a.data))})}),bo(t)}function X0(e,t){return(e==null?void 0:e.map(function(r){return t(r.data)}))||[]}function ps(e){for(var t,r=[],n=[0];n[0]>>0>0),r.push(s)}return r}function gc(e){var t=[];return e.forEach(function(r){var n=[];n[1]=[{data:Kn(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:Kn(+!!r.merge),type:0}]);var a=[];r.messages.forEach(function(s){a.push(s.data),s.meta[3]=[{type:0,data:Kn(s.data.length)}],n[2].push({data:pi(s.meta),type:2})});var i=pi(n);t.push(Kn(i.length)),t.push(i),a.forEach(function(s){return t.push(s)})}),bo(t)}function r2(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=wf(t,r),a=[];r[0]>2;if(s<60)++s;else{var c=s-59;s=t[r[0]],c>1&&(s|=t[r[0]+1]<<8),c>2&&(s|=t[r[0]+2]<<16),c>3&&(s|=t[r[0]+3]<<24),s>>>=0,s++,r[0]+=c}a.push(t.slice(r[0],r[0]+s)),r[0]+=s;continue}else{var d=0,p=0;if(i==1?(p=(t[r[0]]>>2&7)+4,d=(t[r[0]++]&224)<<3,d|=t[r[0]++]):(p=(t[r[0]++]>>2)+1,i==2?(d=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(d=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),a=[bo(a)],d==0)throw new Error("Invalid offset 0");if(d>a[0].length)throw new Error("Invalid offset beyond length");if(p>=d)for(a.push(a[0].slice(-d)),p-=d;p>=a[a.length-1].length;)a.push(a[a.length-1]),p-=a[a.length-1].length;a.push(a[0].slice(-d,-d+p))}}var v=bo(a);if(v.length!=n)throw new Error("Unexpected length: ".concat(v.length," != ").concat(n));return v}function vs(e){for(var t=[],r=0;r>8&255]))):n<=16777216?(s+=4,t.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(s+=5,t.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),t.push(e.slice(r,r+n)),s+=n,a[0]=0,a[1]=s&255,a[2]=s>>8&255,a[3]=s>>16&255,r+=n}return bo(t)}function t2(e,t,r,n){var a=Uo(e),i=a.getUint32(4,!0),s=(n>1?12:8)+fh(i&(n>1?3470:398))*4,c=-1,d=-1,p=NaN,v=new Date(2001,0,1);i&512&&(c=a.getUint32(s,!0),s+=4),s+=fh(i&(n>1?12288:4096))*4,i&16&&(d=a.getUint32(s,!0),s+=4),i&32&&(p=a.getFloat64(s,!0),s+=8),i&64&&(v.setTime(v.getTime()+a.getFloat64(s,!0)*1e3),s+=8);var S;switch(e[2]){case 0:break;case 2:S={t:"n",v:p};break;case 3:S={t:"s",v:t[d]};break;case 5:S={t:"d",v};break;case 6:S={t:"b",v:p>0};break;case 7:S={t:"n",v:p/86400};break;case 8:S={t:"e",v:0};break;case 9:if(c>-1)S={t:"s",v:r[c]};else if(d>-1)S={t:"s",v:t[d]};else if(!isNaN(p))S={t:"n",v:p};else throw new Error("Unsupported cell type ".concat(e.slice(0,4)));break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return S}function n2(e,t,r){var n=Uo(e),a=n.getUint32(8,!0),i=12,s=-1,c=-1,d=NaN,p=NaN,v=new Date(2001,0,1);a&1&&(d=Qx(e,i),i+=16),a&2&&(p=n.getFloat64(i,!0),i+=8),a&4&&(v.setTime(v.getTime()+n.getFloat64(i,!0)*1e3),i+=8),a&8&&(c=n.getUint32(i,!0),i+=4),a&16&&(s=n.getUint32(i,!0),i+=4);var S;switch(e[1]){case 0:break;case 2:S={t:"n",v:d};break;case 3:S={t:"s",v:t[c]};break;case 5:S={t:"d",v};break;case 6:S={t:"b",v:p>0};break;case 7:S={t:"n",v:p/86400};break;case 8:S={t:"e",v:0};break;case 9:if(s>-1)S={t:"s",v:r[s]};else throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(a&31," : ").concat(e.slice(0,4)));break;case 10:S={t:"n",v:d};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(a&31," : ").concat(e.slice(0,4)))}return S}function Z0(e,t){var r=new Uint8Array(32),n=Uo(r),a=12,i=0;switch(r[0]=5,e.t){case"n":r[1]=2,e2(r,a,e.v),i|=1,a+=16;break;case"b":r[1]=6,n.setFloat64(a,e.v?1:0,!0),i|=2,a+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,n.setUint32(a,t.indexOf(e.v),!0),i|=8,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,i,!0),r.slice(0,a)}function K0(e,t){var r=new Uint8Array(32),n=Uo(r),a=12,i=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setFloat64(a,e.v,!0),i|=32,a+=8;break;case"b":r[2]=6,n.setFloat64(a,e.v?1:0,!0),i|=32,a+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,n.setUint32(a,t.indexOf(e.v),!0),i|=16,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,i,!0),r.slice(0,a)}function a2(e,t,r){switch(e[0]){case 0:case 1:case 2:case 3:return t2(e,t,r,e[0]);case 5:return n2(e,t,r);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function Ai(e){var t=Hn(e);return wf(t[1][0].data)}function dy(e){var t=[];return t[1]=[{type:0,data:Kn(e)}],pi(t)}function lh(e,t){var r=Hn(t.data),n=Aa(r[1][0].data),a=r[3],i=[];return(a||[]).forEach(function(s){var c=Hn(s.data),d=Aa(c[1][0].data)>>>0;switch(n){case 1:i[d]=$0(c[3][0].data);break;case 8:{var p=e[Ai(c[9][0].data)][0],v=Hn(p.data),S=e[Ai(v[1][0].data)][0],k=Aa(S.meta[1][0].data);if(k!=2001)throw new Error("2000 unexpected reference to ".concat(k));var A=Hn(S.data);i[d]=A[3].map(function(P){return $0(P.data)}).join("")}break}}),i}function i2(e,t){var r,n,a,i,s,c,d,p,v,S,k,A,P,_,U=Hn(e),me=Aa(U[1][0].data)>>>0,xe=Aa(U[2][0].data)>>>0,ie=((n=(r=U[8])==null?void 0:r[0])==null?void 0:n.data)&&Aa(U[8][0].data)>0||!1,rr,or;if((i=(a=U[7])==null?void 0:a[0])!=null&&i.data&&t!=0)rr=(c=(s=U[7])==null?void 0:s[0])==null?void 0:c.data,or=(p=(d=U[6])==null?void 0:d[0])==null?void 0:p.data;else if((S=(v=U[4])==null?void 0:v[0])!=null&&S.data&&t!=1)rr=(A=(k=U[4])==null?void 0:k[0])==null?void 0:A.data,or=(_=(P=U[3])==null?void 0:P[0])==null?void 0:_.data;else throw"NUMBERS Tile missing ".concat(t," cell storage");for(var qe=ie?4:1,Ie=Uo(rr),tr=[],Qe=0;Qe=1&&(_r[tr[tr.length-1][0]]=or.subarray(tr[tr.length-1][1]*qe)),{R:me,cells:_r}}function s2(e,t){var r,n=Hn(t.data),a=(r=n==null?void 0:n[7])!=null&&r[0]?Aa(n[7][0].data)>>>0>0?1:0:-1,i=X0(n[5],function(s){return i2(s,a)});return{nrows:Aa(n[4][0].data)>>>0,data:i.reduce(function(s,c){return s[c.R]||(s[c.R]=[]),c.cells.forEach(function(d,p){if(s[c.R][p])throw new Error("Duplicate cell r=".concat(c.R," c=").concat(p));s[c.R][p]=d}),s},[])}}function o2(e,t,r){var n,a=Hn(t.data),i={s:{r:0,c:0},e:{r:0,c:0}};if(i.e.r=(Aa(a[6][0].data)>>>0)-1,i.e.r<0)throw new Error("Invalid row varint ".concat(a[6][0].data));if(i.e.c=(Aa(a[7][0].data)>>>0)-1,i.e.c<0)throw new Error("Invalid col varint ".concat(a[7][0].data));r["!ref"]=nn(i);var s=Hn(a[4][0].data),c=lh(e,e[Ai(s[4][0].data)][0]),d=(n=s[17])!=null&&n[0]?lh(e,e[Ai(s[17][0].data)][0]):[],p=Hn(s[3][0].data),v=0;p[1].forEach(function(S){var k=Hn(S.data),A=e[Ai(k[2][0].data)][0],P=Aa(A.meta[1][0].data);if(P!=6002)throw new Error("6001 unexpected reference to ".concat(P));var _=s2(e,A);_.data.forEach(function(U,me){U.forEach(function(xe,ie){var rr=Kt({r:v+me,c:ie}),or=a2(xe,c,d);or&&(r[rr]=or)})}),v+=_.nrows})}function c2(e,t){var r=Hn(t.data),n={"!ref":"A1"},a=e[Ai(r[2][0].data)],i=Aa(a[0].meta[1][0].data);if(i!=6001)throw new Error("6000 unexpected reference to ".concat(i));return o2(e,a[0],n),n}function f2(e,t){var r,n=Hn(t.data),a={name:(r=n[1])!=null&&r[0]?$0(n[1][0].data):"",sheets:[]},i=X0(n[2],Ai);return i.forEach(function(s){e[s].forEach(function(c){var d=Aa(c.meta[1][0].data);d==6e3&&a.sheets.push(c2(e,c))})}),a}function l2(e,t){var r=nd(),n=Hn(t.data),a=X0(n[1],Ai);if(a.forEach(function(i){e[i].forEach(function(s){var c=Aa(s.meta[1][0].data);if(c==2){var d=f2(e,s);d.sheets.forEach(function(p,v){ad(r,p,v==0?d.name:d.name+"_"+v,!0)})}})}),r.SheetNames.length==0)throw new Error("Empty NUMBERS file");return r}function Y0(e){var t,r,n,a,i={},s=[];if(e.FullPaths.forEach(function(d){if(d.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),e.FileIndex.forEach(function(d){if(d.name.match(/\.iwa$/)){var p;try{p=vs(d.content)}catch(S){return console.log("?? "+d.content.length+" "+(S.message||S))}var v;try{v=ps(p)}catch(S){return console.log("## "+(S.message||S))}v.forEach(function(S){i[S.id]=S.messages,s.push(S.id)})}}),!s.length)throw new Error("File has no messages");var c=((a=(n=(r=(t=i==null?void 0:i[1])==null?void 0:t[0])==null?void 0:r.meta)==null?void 0:n[1])==null?void 0:a[0].data)&&Aa(i[1][0].meta[1][0].data)==1&&i[1][0];if(c||s.forEach(function(d){i[d].forEach(function(p){var v=Aa(p.meta[1][0].data)>>>0;if(v==1)if(!c)c=p;else throw new Error("Document has multiple roots")})}),!c)throw new Error("Cannot find Document root");return l2(i,c)}function u2(e,t,r){var n,a,i,s;if(!((n=e[6])!=null&&n[0])||!((a=e[7])!=null&&a[0]))throw"Mutation only works on post-BNC storages!";var c=((s=(i=e[8])==null?void 0:i[0])==null?void 0:s.data)&&Aa(e[8][0].data)>0||!1;if(c)throw"Math only works with normal offsets";for(var d=0,p=Uo(e[7][0].data),v=0,S=[],k=Uo(e[4][0].data),A=0,P=[],_=0;_1&&console.error("The Numbers writer currently writes only the first table");var n=wi(r["!ref"]);n.s.r=n.s.c=0;var a=!1;n.e.c>9&&(a=!0,n.e.c=9),n.e.r>49&&(a=!0,n.e.r=49),a&&console.error("The Numbers writer is currently limited to ".concat(nn(n)));var i=Tl(r,{range:n,header:1}),s=["~Sh33tJ5~"];i.forEach(function(Ke){return Ke.forEach(function(Xe){typeof Xe=="string"&&s.push(Xe)})});var c={},d=[],p=Qr.read(t.numbers,{type:"base64"});p.FileIndex.map(function(Ke,Xe){return[Ke,p.FullPaths[Xe]]}).forEach(function(Ke){var Xe=Ke[0],Ar=Ke[1];if(Xe.type==2&&Xe.name.match(/\.iwa/)){var pt=Xe.content,et=vs(pt),rt=ps(et);rt.forEach(function(Lr){d.push(Lr.id),c[Lr.id]={deps:[],location:Ar,type:Aa(Lr.messages[0].meta[1][0].data)}})}}),d.sort(function(Ke,Xe){return Ke-Xe});var v=d.filter(function(Ke){return Ke>1}).map(function(Ke){return[Ke,Kn(Ke)]});p.FileIndex.map(function(Ke,Xe){return[Ke,p.FullPaths[Xe]]}).forEach(function(Ke){var Xe=Ke[0],Ar=Ke[1];if(Xe.name.match(/\.iwa/)){var pt=ps(vs(Xe.content));pt.forEach(function(et){et.messages.forEach(function(rt){v.forEach(function(Lr){et.messages.some(function(un){return Aa(un.meta[1][0].data)!=11006&&qx(un.data,Lr[1])})&&c[Lr[0]].deps.push(et.id)})})})}});function S(){for(var Ke=927262;Ke<2e6;++Ke)if(!c[Ke])return Ke;throw new Error("Too many messages")}for(var k=Qr.find(p,c[1].location),A=ps(vs(k.content)),P,_=0;_-1?"sheet":an.CS&&e==an.CS?"chart":an.DS&&e==an.DS?"dialog":an.MS&&e==an.MS?"macro":e&&e.length?e:"sheet"}function p2(e,t){if(!e)return 0;try{e=t.map(function(n){return n.id||(n.id=n.strRelID),[n.name,e["!id"][n.id].Target,h2(e["!id"][n.id].Type)]})}catch(r){return null}return!e||e.length===0?null:e}function v2(e,t,r,n,a,i,s,c,d,p,v,S){try{i[n]=Ao(xa(e,r,!0),t);var k=dn(e,t),A;switch(c){case"sheet":A=Wm(k,t,a,d,i[n],p,v,S);break;case"chart":if(A=Hm(k,t,a,d,i[n],p,v,S),!A||!A["!drawel"])break;var P=Ui(A["!drawel"].Target,t),_=lo(P),U=Cp(xa(e,P,!0),Ao(xa(e,_,!0),P)),me=Ui(U,P),xe=lo(me);A=pm(xa(e,me,!0),me,d,Ao(xa(e,xe,!0),me),p,A);break;case"macro":A=Gm(k,t,a,d,i[n],p,v,S);break;case"dialog":A=Vm(k,t,a,d,i[n],p,v,S);break;default:throw new Error("Unrecognized sheet type "+c)}s[n]=A;var ie=[];i&&i[n]&&Te(i[n]).forEach(function(rr){var or="";if(i[n][rr].Type==an.CMNT){or=Ui(i[n][rr].Target,t);var qe=Zm(dn(e,or,!0),or,d);if(!qe||!qe.length)return;gd(A,qe,!1)}i[n][rr].Type==an.TCMNT&&(or=Ui(i[n][rr].Target,t),ie=ie.concat(Dp(dn(e,or,!0),d)))}),ie&&ie.length&&gd(A,ie,!0,d.people||[])}catch(rr){if(d.WTF)throw rr}}function gs(e){return e.charAt(0)=="/"?e.slice(1):e}function g2(e,t){if(jn(),t=t||{},J0(t),$n(e,"META-INF/manifest.xml")||$n(e,"objectdata.xml"))return ih(e,t);if($n(e,"Index/Document.iwa")){if(typeof Uint8Array=="undefined")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof Y0!="undefined"){if(e.FileIndex)return Y0(e);var r=Qr.utils.cfb_new();return qa(e).forEach(function(Ct){Vt(r,Ct,oi(e,Ct))}),Y0(r)}throw new Error("Unsupported NUMBERS file")}if(!$n(e,"[Content_Types].xml"))throw $n(e,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):$n(e,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var n=qa(e),a=Gl(xa(e,"[Content_Types].xml")),i=!1,s,c;if(a.workbooks.length===0&&(c="xl/workbook.xml",dn(e,c,!0)&&a.workbooks.push(c)),a.workbooks.length===0){if(c="xl/workbook.bin",!dn(e,c,!0))throw new Error("Could not find workbook");a.workbooks.push(c),i=!0}a.workbooks[0].slice(-3)=="bin"&&(i=!0);var d={},p={};if(!t.bookSheets&&!t.bookProps){if(vf=[],a.sst)try{vf=Xm(dn(e,gs(a.sst)),a.sst,t)}catch(Ct){if(t.WTF)throw Ct}t.cellStyles&&a.themes.length&&(d=$m(xa(e,a.themes[0].replace(/^\//,""),!0)||"",a.themes[0],t)),a.style&&(p=jm(dn(e,gs(a.style)),a.style,d,t))}a.links.map(function(Ct){try{var at=Ao(xa(e,lo(gs(Ct))),Ct);return Ym(dn(e,gs(Ct)),at,Ct,t)}catch(jt){}});var v=zm(dn(e,gs(a.workbooks[0])),a.workbooks[0],t),S={},k="";a.coreprops.length&&(k=dn(e,gs(a.coreprops[0]),!0),k&&(S=Bc(k)),a.extprops.length!==0&&(k=dn(e,gs(a.extprops[0]),!0),k&&Lc(k,S,t)));var A={};(!t.bookSheets||t.bookProps)&&a.custprops.length!==0&&(k=xa(e,gs(a.custprops[0]),!0),k&&(A=Zl(k,t)));var P={};if((t.bookSheets||t.bookProps)&&(v.Sheets?s=v.Sheets.map(function(at){return at.name}):S.Worksheets&&S.SheetNames.length>0&&(s=S.SheetNames),t.bookProps&&(P.Props=S,P.Custprops=A),t.bookSheets&&typeof s!="undefined"&&(P.SheetNames=s),t.bookSheets?P.SheetNames:t.bookProps))return P;s={};var _={};t.bookDeps&&a.calcchain&&(_=Km(dn(e,gs(a.calcchain)),a.calcchain,t));var U=0,me={},xe,ie;{var rr=v.Sheets;S.Worksheets=rr.length,S.SheetNames=[];for(var or=0;or!=rr.length;++or)S.SheetNames[or]=rr[or].name}var qe=i?"bin":"xml",Ie=a.workbooks[0].lastIndexOf("/"),tr=(a.workbooks[0].slice(0,Ie+1)+"_rels/"+a.workbooks[0].slice(Ie+1)+".rels").replace(/^\//,"");$n(e,tr)||(tr="xl/_rels/workbook."+qe+".rels");var Qe=Ao(xa(e,tr,!0),tr.replace(/_rels.*/,"s5s"));(a.metadata||[]).length>=1&&(t.xlmeta=Jm(dn(e,gs(a.metadata[0])),a.metadata[0],t)),(a.people||[]).length>=1&&(t.people=Fp(dn(e,gs(a.people[0])),t)),Qe&&(Qe=p2(Qe,v.Sheets));var yr=dn(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(U=0;U!=S.Worksheets;++U){var _r="sheet";if(Qe&&Qe[U]?(xe="xl/"+Qe[U][1].replace(/[\/]?xl\//,""),$n(e,xe)||(xe=Qe[U][1]),$n(e,xe)||(xe=tr.replace(/_rels\/.*$/,"")+Qe[U][1]),_r=Qe[U][2]):(xe="xl/worksheets/sheet"+(U+1-yr)+"."+qe,xe=xe.replace(/sheet0\./,"sheet.")),ie=xe.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&t.sheets!=null)switch(typeof t.sheets){case"number":if(U!=t.sheets)continue e;break;case"string":if(S.SheetNames[U].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var sr=!1,nt=0;nt!=t.sheets.length;++nt)typeof t.sheets[nt]=="number"&&t.sheets[nt]==U&&(sr=1),typeof t.sheets[nt]=="string"&&t.sheets[nt].toLowerCase()==S.SheetNames[U].toLowerCase()&&(sr=1);if(!sr)continue e}}v2(e,xe,ie,S.SheetNames[U],U,me,s,_r,t,v,d,p)}return P={Directory:a,Workbook:v,Props:S,Custprops:A,Deps:_,Sheets:s,SheetNames:S.SheetNames,Strings:vf,Styles:p,Themes:d,SSF:xn(Ir)},t&&t.bookFiles&&(e.files?(P.keys=n,P.files=e.files):(P.keys=[],P.files={},e.FullPaths.forEach(function(Ct,at){Ct=Ct.replace(/^Root Entry[\/]/,""),P.keys.push(Ct),P.files[Ct]=e.FileIndex[at]}))),t&&t.bookVBA&&(a.vba.length>0?P.vbaraw=dn(e,gs(a.vba[0]),!0):a.defaults&&a.defaults.bin===Up&&(P.vbaraw=dn(e,"xl/vbaProject.bin",!0))),P}function m2(e,t){var r=t||{},n="Workbook",a=Qr.find(e,n);try{if(n="/!DataSpaces/Version",a=Qr.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(F(a.content),n="/!DataSpaces/DataSpaceMap",a=Qr.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);var i=fe(a.content);if(i.length!==1||i[0].comps.length!==1||i[0].comps[0].t!==0||i[0].name!=="StrongEncryptionDataSpace"||i[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",a=Qr.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);var s=Ce(a.content);if(s.length!=1||s[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",a=Qr.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);ue(a.content)}catch(d){}if(n="/EncryptionInfo",a=Qr.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);var c=ir(a.content);if(n="/EncryptedPackage",a=Qr.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(c[0]==4&&typeof decrypt_agile!="undefined")return decrypt_agile(c[1],a.content,r.password||"",r);if(c[0]==2&&typeof decrypt_std76!="undefined")return decrypt_std76(c[1],a.content,r.password||"",r);throw new Error("File is password-protected")}function x2(e,t){return t.bookType=="ods"?ch(e,t):t.bookType=="numbers"?d2(e,t):t.bookType=="xlsb"?y2(e,t):dh(e,t)}function y2(e,t){hc=1024,e&&!e.SSF&&(e.SSF=xn(Ir)),e&&e.SSF&&(jn(),$t(e.SSF),t.revssf=Tr(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,gf?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",n=xd.indexOf(t.bookType)>-1,a=Fc();q0(t=t||{});var i=Di(),s="",c=0;if(t.cellXfs=[],yo(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",Vt(i,s,Nf(e.Props,t)),a.coreprops.push(s),Wn(t.rels,2,s,an.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var d=[],p=0;p0&&(s="docProps/custom.xml",Vt(i,s,Jo(e.Custprops,t)),a.custprops.push(s),Wn(t.rels,4,s,an.CUST_PROPS)),c=1;c<=e.SheetNames.length;++c){var v={"!id":{}},S=e.Sheets[e.SheetNames[c-1]],k=(S||{})["!type"]||"sheet";switch(k){case"chart":default:s="xl/worksheets/sheet"+c+"."+r,Vt(i,s,Qm(c-1,s,t,e,v)),a.sheets.push(s),Wn(t.wbrels,-1,"worksheets/sheet"+c+"."+r,an.WS[0])}if(S){var A=S["!comments"],P=!1,_="";A&&A.length>0&&(_="xl/comments"+c+"."+r,Vt(i,_,tx(A,_,t)),a.comments.push(_),Wn(v,-1,"../comments"+c+"."+r,an.CMNT),P=!0),S["!legacy"]&&P&&Vt(i,"xl/drawings/vmlDrawing"+c+".vml",vd(c,S["!comments"])),delete S["!comments"],delete S["!legacy"]}v["!id"].rId1&&Vt(i,lo(s),uo(v))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+r,Vt(i,s,rx(t.Strings,s,t)),a.strs.push(s),Wn(t.wbrels,-1,"sharedStrings."+r,an.SST)),s="xl/workbook."+r,Vt(i,s,qm(e,s,t)),a.workbooks.push(s),Wn(t.rels,1,s,an.WB),s="xl/theme/theme1.xml",Vt(i,s,P0(e.Themes,t)),a.themes.push(s),Wn(t.wbrels,-1,"theme/theme1.xml",an.THEME),s="xl/styles."+r,Vt(i,s,ex(e,s,t)),a.styles.push(s),Wn(t.wbrels,-1,"styles."+r,an.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",Vt(i,s,e.vbaraw),a.vba.push(s),Wn(t.wbrels,-1,"vbaProject.bin",an.VBA)),s="xl/metadata."+r,Vt(i,s,nx(s)),a.metadata.push(s),Wn(t.wbrels,-1,"metadata."+r,an.XLMETA),Vt(i,"[Content_Types].xml",Oc(a,t)),Vt(i,"_rels/.rels",uo(t.rels)),Vt(i,"xl/_rels/workbook."+r+".rels",uo(t.wbrels)),delete t.revssf,delete t.ssf,i}function dh(e,t){hc=1024,e&&!e.SSF&&(e.SSF=xn(Ir)),e&&e.SSF&&(jn(),$t(e.SSF),t.revssf=Tr(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,gf?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=xd.indexOf(t.bookType)>-1,a=Fc();q0(t=t||{});var i=Di(),s="",c=0;if(t.cellXfs=[],yo(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",Vt(i,s,Nf(e.Props,t)),a.coreprops.push(s),Wn(t.rels,2,s,an.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var d=[],p=0;p0&&(s="docProps/custom.xml",Vt(i,s,Jo(e.Custprops,t)),a.custprops.push(s),Wn(t.rels,4,s,an.CUST_PROPS));var v=["SheetJ5"];for(t.tcid=0,c=1;c<=e.SheetNames.length;++c){var S={"!id":{}},k=e.Sheets[e.SheetNames[c-1]],A=(k||{})["!type"]||"sheet";switch(A){case"chart":default:s="xl/worksheets/sheet"+c+"."+r,Vt(i,s,Pd(c-1,t,e,S)),a.sheets.push(s),Wn(t.wbrels,-1,"worksheets/sheet"+c+"."+r,an.WS[0])}if(k){var P=k["!comments"],_=!1,U="";if(P&&P.length>0){var me=!1;P.forEach(function(xe){xe[1].forEach(function(ie){ie.T==!0&&(me=!0)})}),me&&(U="xl/threadedComments/threadedComment"+c+"."+r,Vt(i,U,Ip(P,v,t)),a.threadedcomments.push(U),Wn(S,-1,"../threadedComments/threadedComment"+c+"."+r,an.TCMNT)),U="xl/comments"+c+"."+r,Vt(i,U,md(P,t)),a.comments.push(U),Wn(S,-1,"../comments"+c+"."+r,an.CMNT),_=!0}k["!legacy"]&&_&&Vt(i,"xl/drawings/vmlDrawing"+c+".vml",vd(c,k["!comments"])),delete k["!comments"],delete k["!legacy"]}S["!id"].rId1&&Vt(i,lo(s),uo(S))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+r,Vt(i,s,dl(t.Strings,t)),a.strs.push(s),Wn(t.wbrels,-1,"sharedStrings."+r,an.SST)),s="xl/workbook."+r,Vt(i,s,Hd(e,t)),a.workbooks.push(s),Wn(t.rels,1,s,an.WB),s="xl/theme/theme1.xml",Vt(i,s,P0(e.Themes,t)),a.themes.push(s),Wn(t.wbrels,-1,"theme/theme1.xml",an.THEME),s="xl/styles."+r,Vt(i,s,ml(e,t)),a.styles.push(s),Wn(t.wbrels,-1,"styles."+r,an.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",Vt(i,s,e.vbaraw),a.vba.push(s),Wn(t.wbrels,-1,"vbaProject.bin",an.VBA)),s="xl/metadata."+r,Vt(i,s,pd()),a.metadata.push(s),Wn(t.wbrels,-1,"metadata."+r,an.XLMETA),v.length>1&&(s="xl/persons/person.xml",Vt(i,s,Op(v,t)),a.people.push(s),Wn(t.wbrels,-1,"persons/person.xml",an.PEOPLE)),Vt(i,"[Content_Types].xml",Oc(a,t)),Vt(i,"_rels/.rels",uo(t.rels)),Vt(i,"xl/_rels/workbook."+r+".rels",uo(t.wbrels)),delete t.revssf,delete t.ssf,i}function Q0(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=ze(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function b2(e,t){return Qr.find(e,"EncryptedPackage")?m2(e,t):$d(e,t)}function w2(e,t){var r,n=e,a=t||{};return a.type||(a.type=j&&Q.isBuffer(e)?"buffer":"base64"),r=ya(n,a),g2(r,a)}function hh(e,t){var r=0;e:for(;r=2&&a[3]===0||a[2]===0&&(a[3]===8||a[3]===9)))return ro.to_workbook(n,r);break;case 3:case 131:case 139:case 140:return lc.to_workbook(n,r);case 123:if(a[1]===92&&a[2]===114&&a[3]===116)return La.to_workbook(n,r);break;case 10:case 13:case 32:return _2(n,r);case 137:if(a[1]===80&&a[2]===78&&a[3]===71)throw new Error("PNG Image File is not a spreadsheet");break}return _0.indexOf(a[0])>-1&&a[2]<=12&&a[3]<=31?lc.to_workbook(n,r):ed(e,n,r,i)}function hy(e,t){var r=t||{};return r.type="file",_l(e,r)}function ph(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return Sr(t.file,Qr.write(e,{type:j?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return Qr.write(e,t)}function T2(e,t){var r=xn(t||{}),n=x2(e,r);return vh(n,r)}function k2(e,t){var r=xn(t||{}),n=dh(e,r);return vh(n,r)}function vh(e,t){var r={},n=j?"nodebuffer":typeof Uint8Array!="undefined"?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=n;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+t.type)}var a=e.FullPaths?Qr.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if(typeof Deno!="undefined"&&typeof a=="string"){if(t.type=="binary"||t.type=="base64")return a;a=new Uint8Array(T(a))}return t.password&&typeof encrypt_agile!="undefined"?ph(encrypt_agile(a,t.password),t):t.type==="file"?Sr(t.file,a):t.type=="string"?tn(a):a}function C2(e,t){var r=t||{},n=Dx(e,r);return ph(n,r)}function zs(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return Je(fa(n));case"binary":return fa(n);case"string":return e;case"file":return Sr(t.file,n,"utf8");case"buffer":return j?z(n,"utf8"):typeof TextEncoder!="undefined"?new TextEncoder().encode(n):zs(n,{type:"binary"}).split("").map(function(a){return a.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function A2(e,t){switch(t.type){case"base64":return Je(e);case"binary":return e;case"string":return e;case"file":return Sr(t.file,e,"binary");case"buffer":return j?z(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function El(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",n=0;n0&&(a=0);var S=Zn(d.s.r),k=[],A=[],P=0,_=0,U=Array.isArray(e),me=d.s.r,xe=0,ie={};U&&!e[me]&&(e[me]=[]);var rr=p.skipHidden&&e["!cols"]||[],or=p.skipHidden&&e["!rows"]||[];for(xe=d.s.c;xe<=d.e.c;++xe)if(!(rr[xe]||{}).hidden)switch(k[xe]=Jn(xe),r=U?e[me][xe]:e[k[xe]+S],n){case 1:i[xe]=xe-d.s.c;break;case 2:i[xe]=k[xe];break;case 3:i[xe]=p.header[xe-d.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),c=s=ls(r,null,p),_=ie[s]||0,!_)ie[s]=1;else{do c=s+"_"+_++;while(ie[c]);ie[s]=_,ie[c]=1}i[xe]=c}for(me=d.s.r+a;me<=d.e.r;++me)if(!(or[me]||{}).hidden){var qe=mh(e,d,me,k,n,i,U,p);(qe.isempty===!1||(n===1?p.blankrows!==!1:p.blankrows))&&(A[P++]=qe.row)}return A.length=P,A}var xh=/"/g;function yh(e,t,r,n,a,i,s,c){for(var d=!0,p=[],v="",S=Zn(r),k=t.s.c;k<=t.e.c;++k)if(n[k]){var A=c.dense?(e[r]||[])[k]:e[n[k]+S];if(A==null)v="";else if(A.v!=null){d=!1,v=""+(c.rawNumbers&&A.t=="n"?A.v:ls(A,null,c));for(var P=0,_=0;P!==v.length;++P)if((_=v.charCodeAt(P))===a||_===i||_===34||c.forceQuotes){v='"'+v.replace(xh,'""')+'"';break}v=="ID"&&(v='"ID"')}else A.f!=null&&!A.F?(d=!1,v="="+A.f,v.indexOf(",")>=0&&(v='"'+v.replace(xh,'""')+'"')):v="";p.push(v)}return c.blankrows===!1&&d?null:p.join(s)}function td(e,t){var r=[],n=t==null?{}:t;if(e==null||e["!ref"]==null)return"";var a=_n(e["!ref"]),i=n.FS!==void 0?n.FS:",",s=i.charCodeAt(0),c=n.RS!==void 0?n.RS:` +`,d=c.charCodeAt(0),p=new RegExp((i=="|"?"\\|":i)+"+$"),v="",S=[];n.dense=Array.isArray(e);for(var k=n.skipHidden&&e["!cols"]||[],A=n.skipHidden&&e["!rows"]||[],P=a.s.c;P<=a.e.c;++P)(k[P]||{}).hidden||(S[P]=Jn(P));for(var _=0,U=a.s.r;U<=a.e.r;++U)(A[U]||{}).hidden||(v=yh(e,a,U,S,s,d,i,n),v!=null&&(n.strip&&(v=v.replace(p,"")),(v||n.blankrows!==!1)&&r.push((_++?c:"")+v)));return delete n.dense,r.join("")}function bh(e,t){t||(t={}),t.FS=" ",t.RS=` +`;var r=td(e,t);if(typeof H=="undefined"||t.type=="string")return r;var n=H.utils.encode(1200,r,"str");return"\xFF\xFE"+n}function D2(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var a=_n(e["!ref"]),i="",s=[],c,d=[],p=Array.isArray(e);for(c=a.s.c;c<=a.e.c;++c)s[c]=Jn(c);for(var v=a.s.r;v<=a.e.r;++v)for(i=Zn(v),c=a.s.c;c<=a.e.c;++c)if(t=s[c]+i,r=p?(e[v]||[])[c]:e[t],n="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;n=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}d[d.length]=t+"="+n}return d}function wh(e,t,r){var n=r||{},a=+!n.skipHeader,i=e||{},s=0,c=0;if(i&&n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var d=typeof n.origin=="string"?ca(n.origin):n.origin;s=d.r,c=d.c}var p,v={s:{c:0,r:0},e:{c,r:s+t.length-1+a}};if(i["!ref"]){var S=_n(i["!ref"]);v.e.c=Math.max(v.e.c,S.e.c),v.e.r=Math.max(v.e.r,S.e.r),s==-1&&(s=S.e.r+1,v.e.r=s+t.length-1+a)}else s==-1&&(s=0,v.e.r=t.length-1+a);var k=n.header||[],A=0;t.forEach(function(_,U){Te(_).forEach(function(me){(A=k.indexOf(me))==-1&&(k[A=k.length]=me);var xe=_[me],ie="z",rr="",or=Kt({c:c+A,r:s+U+a});p=_f(i,or),xe&&typeof xe=="object"&&!(xe instanceof Date)?i[or]=xe:(typeof xe=="number"?ie="n":typeof xe=="boolean"?ie="b":typeof xe=="string"?ie="s":xe instanceof Date?(ie="d",n.cellDates||(ie="n",xe=It(xe)),rr=n.dateNF||Ir[14]):xe===null&&n.nullError&&(ie="e",xe=0),p?(p.t=ie,p.v=xe,delete p.w,delete p.R,rr&&(p.z=rr)):i[or]=p={t:ie,v:xe},rr&&(p.z=rr))})}),v.e.c=Math.max(v.e.c,c+k.length-1);var P=Zn(s);if(a)for(A=0;A=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function nd(){return{SheetNames:[],Sheets:{}}}function ad(e,t,r,n){var a=1;if(!r)for(;a<=65535&&e.SheetNames.indexOf(r="Sheet"+a)!=-1;++a,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);a=i&&+i[2]||0;var s=i&&i[1]||r;for(++a;a<=65535&&e.SheetNames.indexOf(r=s+a)!=-1;++a);}if(zd(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function O2(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=F2(e,t);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r}function R2(e,t){return e.z=t,e}function _h(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function P2(e,t,r){return _h(e,"#"+t,r)}function N2(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function B2(e,t,r,n){for(var a=typeof t!="string"?t:_n(t),i=typeof t=="string"?t:nn(t),s=a.s.r;s<=a.e.r;++s)for(var c=a.s.c;c<=a.e.c;++c){var d=_f(e,s,c);d.t="n",d.F=i,delete d.v,s==a.s.r&&c==a.s.c&&(d.f=r,n&&(d.D=!0))}return e}var M2={encode_col:Jn,encode_row:Zn,encode_cell:Kt,encode_range:nn,decode_col:Eo,decode_row:_s,split_cell:fs,decode_cell:ca,decode_range:wi,format_cell:ls,sheet_add_aoa:Af,sheet_add_json:wh,sheet_add_dom:eh,aoa_to_sheet:so,json_to_sheet:I2,table_to_sheet:rh,table_to_book:Xx,sheet_to_csv:td,sheet_to_txt:bh,sheet_to_json:Tl,sheet_to_html:Qd,sheet_to_formulae:D2,sheet_to_row_object_array:Tl,sheet_get_cell:_f,book_new:nd,book_append_sheet:ad,book_set_sheet_visibility:O2,cell_set_number_format:R2,cell_set_hyperlink:_h,cell_set_internal_link:P2,cell_add_comment:N2,sheet_set_array_formula:B2,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}},kl;function L2(e){kl=e}function U2(e,t){var r=kl(),n=t==null?{}:t;if(e==null||e["!ref"]==null)return r.push(null),r;var a=_n(e["!ref"]),i=n.FS!==void 0?n.FS:",",s=i.charCodeAt(0),c=n.RS!==void 0?n.RS:` +`,d=c.charCodeAt(0),p=new RegExp((i=="|"?"\\|":i)+"+$"),v="",S=[];n.dense=Array.isArray(e);for(var k=n.skipHidden&&e["!cols"]||[],A=n.skipHidden&&e["!rows"]||[],P=a.s.c;P<=a.e.c;++P)(k[P]||{}).hidden||(S[P]=Jn(P));var _=a.s.r,U=!1,me=0;return r._read=function(){if(!U)return U=!0,r.push("\uFEFF");for(;_<=a.e.r;)if(++_,!(A[_-1]||{}).hidden&&(v=yh(e,a,_-1,S,s,d,i,n),v!=null&&(n.strip&&(v=v.replace(p,"")),v||n.blankrows!==!1)))return r.push((me++?c:"")+v);return r.push(null)},r}function z2(e,t){var r=kl(),n=t||{},a=n.header!=null?n.header:Yd,i=n.footer!=null?n.footer:Jd;r.push(a);var s=wi(e["!ref"]);n.dense=Array.isArray(e),r.push(qd(e,s,n));var c=s.s.r,d=!1;return r._read=function(){if(c>s.e.r)return d||(d=!0,r.push(""+i)),r.push(null);for(;c<=s.e.r;){r.push(Kd(e,s,c,n)),++c;break}},r}function W2(e,t){var r=kl({objectMode:!0});if(e==null||e["!ref"]==null)return r.push(null),r;var n={t:"n",v:0},a=0,i=1,s=[],c=0,d="",p={s:{r:0,c:0},e:{r:0,c:0}},v=t||{},S=v.range!=null?v.range:e["!ref"];switch(v.header===1?a=1:v.header==="A"?a=2:Array.isArray(v.header)&&(a=3),typeof S){case"string":p=_n(S);break;case"number":p=_n(e["!ref"]),p.s.r=S;break;default:p=S}a>0&&(i=0);var k=Zn(p.s.r),A=[],P=0,_=Array.isArray(e),U=p.s.r,me=0,xe={};_&&!e[U]&&(e[U]=[]);var ie=v.skipHidden&&e["!cols"]||[],rr=v.skipHidden&&e["!rows"]||[];for(me=p.s.c;me<=p.e.c;++me)if(!(ie[me]||{}).hidden)switch(A[me]=Jn(me),n=_?e[U][me]:e[A[me]+k],a){case 1:s[me]=me-p.s.c;break;case 2:s[me]=A[me];break;case 3:s[me]=v.header[me-p.s.c];break;default:if(n==null&&(n={w:"__EMPTY",t:"s"}),d=c=ls(n,null,v),P=xe[c]||0,!P)xe[c]=1;else{do d=c+"_"+P++;while(xe[d]);xe[c]=P,xe[d]=1}s[me]=d}return U=p.s.r+i,r._read=function(){for(;U<=p.e.r;)if(!(rr[U-1]||{}).hidden){var or=mh(e,p,U,A,a,s,_,v);if(++U,or.isempty===!1||(a===1?v.blankrows!==!1:v.blankrows)){r.push(or.row);return}}return r.push(null)},r}var my={to_json:W2,to_html:z2,to_csv:U2,set_readable:L2};const xy=G.version}}]); +}()); \ No newline at end of file diff --git a/697.1b719830.chunk.css b/697.1b719830.chunk.css new file mode 100644 index 00000000..62efaa4a --- /dev/null +++ b/697.1b719830.chunk.css @@ -0,0 +1 @@ +.weave-chart-container .chartContainer{display:flex;flex-direction:row;height:100%;overflow:hidden}.weave-chart-container .chartContainer .empty{display:flex;align-items:center;justify-content:center}.weave-chart-container .chartContainer .g2Container{height:100%}.weave-chart-container .chartContainer .settings{width:148px;height:100%;margin-right:8px;margin-left:8px;padding-right:8px;border-right:1px solid rgba(0,0,0,.1)}.weave-chart-container .chartContainer .splitLabel{display:flex;align-items:center}.weave-chart-container .chartContainer .value{margin-bottom:12px}.weave-chart-container .chartContainer .content{flex:1 1;height:calc(100% - 40px)}.weave-chart-container .chartContainer .content.empty{display:flex;align-items:center;justify-content:center} diff --git a/697.6a1839dc.async.js b/697.6a1839dc.async.js new file mode 100644 index 00000000..292efa02 --- /dev/null +++ b/697.6a1839dc.async.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunk_antv_li_website=self.webpackChunk_antv_li_website||[]).push([[697],{74121:function(z,D,l){l.r(D);var h=l(87363),r=l.n(h),L=l(36248),I=l(90005),R=l.n(I),M=l(81821),H=l.n(M),_=l(15934),C=l(30095),T=l(14214),W=l(89446),X=l(86610);function K(a,n){return N(a)||j(a,n)||S(a,n)||F()}function F(){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 S(a,n){if(a){if(typeof a=="string")return P(a,n);var e=Object.prototype.toString.call(a).slice(8,-1);if(e==="Object"&&a.constructor&&(e=a.constructor.name),e==="Map"||e==="Set")return Array.from(a);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return P(a,n)}}function P(a,n){(n==null||n>a.length)&&(n=a.length);for(var e=0,o=new Array(n);e1){var i=(0,_.jm)(t.x,t.y,t.aggregation,e,t.split);A(i),p(i)}else x()},[e,d]),(0,W.YP)(t,function(){if(t.x&&t.y&&e.length>1){var i=(0,_.jm)(t.x,t.y,t.aggregation,e,t.split);A(i),p(i)}else x()});var y=function(s,E){t[s]=E},B=t.x&&t.y;return r().createElement("div",{className:"chartContainer"},g&&r().createElement("div",{className:"settings"},r().createElement("div",{className:"item"},r().createElement(C.Z,{label:"X\u8F74",value:t.x,onChange:function(s){y("x",s)},columns:u}),r().createElement(C.Z,{label:r().createElement("div",{className:"splitLabel"},r().createElement("div",null,"Y\u8F74"),r().createElement(T.Z,{value:t.aggregation,onChange:function(s){y("aggregation",s)}})),value:t.y,onChange:function(s){y("y",s)},columns:u}),r().createElement(C.Z,{label:"\u62C6\u5206",value:t.split,onChange:function(s){y("split",s)},columns:u}))),r().createElement("div",{className:R()("content",{empty:!B})},B?r().createElement("div",{id:o,className:"g2Container"}):r().createElement(M.Empty,null)))};D.default=r().memo(V)}}]); diff --git a/706.1444e281.async.js b/706.1444e281.async.js new file mode 100644 index 00000000..8d9f45b4 --- /dev/null +++ b/706.1444e281.async.js @@ -0,0 +1,1021 @@ +(self.webpackChunk_antv_li_website=self.webpackChunk_antv_li_website||[]).push([[706],{93707:function(Pt,ot,J){"use strict";J.d(ot,{wy:function(){return i},QR:function(){return lt},nK:function(){return Ue},z2:function(){return q}});var Se=J(69024),P=J.n(Se),ne=J(81821),N=J(40795),i=function(){var U=ne.Modal.useModal(),ue=P()(U,2),be=ue[0],xe=ue[1],ie=(0,N.TH)(),M=function(){ie.pathname.includes("/builder/")||ie.pathname.includes("/app/")?N.m8.push({pathname:"/project"}):N.m8.push({pathname:"/case"})};return{emptyModal:function(H){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M,$=5,le,fe,Pe=be.warning({title:H,content:"".concat($," \u79D2\u540E\u4F1A\u81EA\u52A8\u9000\u5230\u4E0A\u4E00\u9875\u9762\u3002"),onOk:function(){le&&clearInterval(le),fe&&clearTimeout(fe),X()}});le=setInterval(function(){$-=1,Pe.update({content:"".concat($," \u79D2\u540E\u81EA\u52A8\u4F1A\u9000\u5230\u4E0A\u4E00\u9875\u9762\u3002")})},1e3),fe=setTimeout(function(){clearInterval(le),Pe.destroy(),X()},$*1e3)},emptyContextHolder:xe}},Le=J(87363);function I(Q){var U="https://private-alipayobjects.alipay.com/alipay-rmsdeploy-image/rmsportal/RKuAiriJqrUhyqW.png",ue=new Image,be,xe=function(M){be||(be=!0,ue.src="",Q(M))};return ue.onload=function(){return xe("responded")},ue.onerror=function(){return xe("error")},ue.src=U,setTimeout(function(){return xe("timeout")},1500)}var re="L7VP_DOT_NOT_SHOW_PROMPT_MODAL",je;function Ue(){var Q=(0,Le.useState)(!1),U=P()(Q,2),ue=U[0],be=U[1];return(0,Le.useEffect)(function(){var xe;(xe=je)!==null&&xe!==void 0||(je=new Promise(function(ie){I(function(M){return ie(M!=="timeout"&&M!=="error")})})),je.then(be)},[]),ue}function lt(){var Q=["li.antv.antgroup.com","locationinsight.antv.antgroup.com"].includes(window.location.hostname),U=Ue(),ue=ne.Modal.useModal(),be=P()(ue,2),xe=be[0],ie=be[1],M=Q&&U;return(0,Le.useEffect)(function(){if(M){var me=window.localStorage.getItem(re);if(!(me&&me!=="true"&&Date.now()-new Date(me).getTime()<5*24*60*60*1e3)){var H=function(){window.localStorage.setItem(re,new Date().toISOString())},X=function(){var le=window.location.href.replace(window.location.host,"li.antgroup-inc.cn");window.location.replace(le)};xe.confirm({icon:null,title:"\u63D0\u793A",content:"\u5185\u7F51\u7528\u6237\u63A8\u8350\u8BBF\u95EE\u5185\u7F51\u7248\u4EE5\u83B7\u5F97\u5B8C\u6574\u7684\u529F\u80FD\u4F53\u9A8C\uFF5E",cancelText:"5 \u5929\u5185\u4E0D\u518D\u663E\u793A",okText:"\u7ACB\u5373\u524D\u5F80",onCancel:H,onOk:X})}}},[M]),ie}var G=J(51490),$e=J.n(G),tt=J(91055),et=J.n(tt),pe=J(88104),ae=J.n(pe),se=J(25435),ve=J(6079),Ae=J(12611),Ie=J(9256),Ce=J(74090),q=function(U){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},be=(0,Le.useState)([]),xe=P()(be,2),ie=xe[0],M=xe[1],me=(0,Le.useState)(!1),H=P()(me,2),X=H[0],$=H[1],le=(0,Le.useState)(null),fe=P()(le,2),Pe=fe[0],Ne=fe[1],Ze=function(){var ge=ae()($e()().mark(function _e(){var Oe,Re,Ye;return $e()().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return $(!0),Xe.prev=1,Xe.next=4,(0,Ce.nl)();case 4:return Oe=Xe.sent,Array.isArray(U)&&(Oe=Oe.filter(function(ze){return U.includes(ze.assetId)})),Oe=Oe.map(function(ze){return ze.enable===!1?et()(et()({},ze),{},{urls:[]}):ze}),Re=ue.sandbox?et()(et()({},(0,Ae.isObject)(ue.sandbox)?ue.sandbox:{}),{},{injectEnv:(0,Ie.Rz)()}):!1,Xe.next=10,(0,se.loadAssetPackages)(Oe,et()(et()({},ue),{},{sandbox:Re}));case 10:Ye=Xe.sent,M(Ye),Xe.next=17;break;case 14:Xe.prev=14,Xe.t0=Xe.catch(1),Ne(new Error("\u8D44\u4EA7\u8BF7\u6C42\u6216\u52A0\u8F7D\u5931\u8D25, ".concat(Xe.t0)));case 17:return Xe.prev=17,$(!1),Xe.finish(17);case 20:case"end":return Xe.stop()}},_e,null,[[1,14,17,20]])}));return function(){return ge.apply(this,arguments)}}();return(0,ve.Z)(function(){Ze()},[U]),{assets:ie,loading:X,error:Pe}}},84533:function(Pt,ot,J){"use strict";J.d(ot,{oy:function(){return Le},C_:function(){return ne},sP:function(){return Se},Vw:function(){return G},TL:function(){return lt},wd:function(){return P},c3:function(){return N},QC:function(){return i},tE:function(){return re},zi:function(){return Ue},e8:function(){return je}});var Se="v0.1",P={version:Se,metadata:{name:"li application",description:"li empty application"},datasets:[],spec:{map:{basemap:"Gaode",config:{zoom:3,center:[120.153576,30.287459],pitch:0,bearing:0,style:"light"}},layers:[],widgets:[]}};window._AMapSecurityConfig={securityJsCode:"8803c38931b6fddc9bbfeee69df8824d"};var ne="f0230f884bbd54e2913c890cdf45aa7e",N="pk.eyJ1IjoibGl1dmlnb25nenVvc2hpIiwiYSI6ImNsYWx2dHlxOTA5NGYzeW9icGd6aDE2NnoifQ.T3wEAOe8HReAyoeu6d6HJw",i=[["lat","lng"],["lat","lon"],["lat","long"],["latitude","longitude"],["\u7EAC\u5EA6","\u7ECF\u5EA6"],["\u8D77\u70B9\u7EAC\u5EA6","\u8D77\u70B9\u7ECF\u5EA6"],["\u7EC8\u70B9\u7EAC\u5EA6","\u7EC8\u70B9\u7ECF\u5EA6"]],Le=["alt","altitude","\u6D77\u62D4"],I=J(36268),re=[I.rd,I.G9,I.kk,I.I6,I.u0,I.Sf,I.a,I.T,I.sP,I.D7,I.gt],je=new Map([["Layout","\u5E03\u5C40\u7EC4\u4EF6"],["Container","\u5BB9\u5668\u7EC4\u4EF6"],["LayerInteraction","\u56FE\u5C42\u4EA4\u4E92\u7EC4\u4EF6"],["DataAnalysis","\u6570\u636E\u5206\u6790\u7EC4\u4EF6"],["MapControl","\u5730\u56FE\u63A7\u4EF6\u7EC4\u4EF6"],["MapInteraction","\u5730\u56FE\u4EA4\u4E92\u7EC4\u4EF6"]]),Ue={Layout:"Layout",Container:"Container",Atom:"Atom",Auto:"Auto"},lt=["Atom","Container"],G={id:"",slot:""}},66154:function(Pt,ot,J){"use strict";J.d(ot,{Sr:function(){return pe},OA:function(){return i},UT:function(){return Le},ox:function(){return ne},sZ:function(){return N},F8:function(){return ae}});var Se=J(87363),P=J(613),ne=function(){var ve=(0,P._)(),Ae=ve.appService,Ie=ve.editorService;return{appService:Ae,editorService:Ie}},N=function(){var ve=ne(),Ae=ve.editorService,Ie=Ae.editorState,Ce=(0,Se.useSyncExternalStore)(function(U){return Ie.subscribe(U)},function(){return Ie.getSnapshot()}),q=(0,Se.useMemo)(function(){return Ie.setState.bind(Ie)},[Ie]),Q={state:Ce,updateState:q};return Q},i=function(ve){var Ae=ne(),Ie=Ae.editorService,Ce=Ie.editorDatasetManager,q=(0,Se.useSyncExternalStore)(function(U){return Ce.subscribe(U)},function(){return Ce.getSnapshot()}),Q=q.find(function(U){return U.id===ve});return Q},Le=function(){var ve=ne(),Ae=ve.editorService,Ie=Ae.editorDatasetManager,Ce=(0,Se.useSyncExternalStore)(function(Q){return Ie.subscribe(Q)},function(){return Ie.getSnapshot()}),q=Ie.isLoading;return{editorDatasets:Ce,isLoading:q}},I=J(81821);function re(se){"@babel/helpers - typeof";return re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ve){return typeof ve}:function(ve){return ve&&typeof Symbol=="function"&&ve.constructor===Symbol&&ve!==Symbol.prototype?"symbol":typeof ve},re(se)}function je(se,ve){var Ae=Object.keys(se);if(Object.getOwnPropertySymbols){var Ie=Object.getOwnPropertySymbols(se);ve&&(Ie=Ie.filter(function(Ce){return Object.getOwnPropertyDescriptor(se,Ce).enumerable})),Ae.push.apply(Ae,Ie)}return Ae}function Ue(se){for(var ve=1;vev.length)&&(d=v.length);for(var O=0,T=new Array(d);Ov.length)&&(d=v.length);for(var O=0,T=new Array(d);O1&&arguments[1]!==void 0?arguments[1]:"datasets";return Za(this,O),te=d.call(this),Qo(Ko(te),"state",void 0),te.initState(T,Ee),te}return Vo(O,[{key:"initState",value:function(te,Ee){var De=U(te),Ke=De.metadata,Be=De.datasets,Qe=De.spec,ut=Qe.map,dt=Qe.layers,mt=Qe.widgets,Ot=(0,cr.vV)({activeNavMenuKey:Ee,collapsed:!1,metadata:Ke,map:ut,datasets:Be.map(function(nt){return(0,cr.vV)(nt,!1)}),layers:dt,widgets:mt});this.state=Ot,this.notify()}},{key:"setState",value:function(te){te!==this.state&&(typeof te=="function"?this.state=(0,cr.Uy)(this.state,te):this.state=(0,cr.vV)(Uo(Uo({},te),{},{datasets:te.datasets.map(function(Ee){return(0,cr.vV)(Ee,!1)})})),this.notify())}},{key:"notify",value:function(){var te=this;this.listeners.forEach(function(Ee){Ee(te.state)})}},{key:"getSnapshot",value:function(){return this.state}},{key:"destroy",value:function(){this.listeners=new Set}}]),O}(i.Subscribable);function fr(v){"@babel/helpers - typeof";return fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},fr(v)}function $a(v,d){var O=typeof Symbol!="undefined"&&v[Symbol.iterator]||v["@@iterator"];if(!O){if(Array.isArray(v)||(O=ei(v))||d&&v&&typeof v.length=="number"){O&&(v=O);var T=0,te=function(){};return{s:te,n:function(){return T>=v.length?{done:!0}:{done:!1,value:v[T++]}},e:function(Qe){throw Qe},f:te}}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 Ee=!0,De=!1,Ke;return{s:function(){O=O.call(v)},n:function(){var Qe=O.next();return Ee=Qe.done,Qe},e:function(Qe){De=!0,Ke=Qe},f:function(){try{!Ee&&O.return!=null&&O.return()}finally{if(De)throw Ke}}}}function ei(v,d){if(v){if(typeof v=="string")return Mr(v,d);var O=Object.prototype.toString.call(v).slice(8,-1);if(O==="Object"&&v.constructor&&(O=v.constructor.name),O==="Map"||O==="Set")return Array.from(v);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return Mr(v,d)}}function Mr(v,d){(d==null||d>v.length)&&(d=v.length);for(var O=0,T=new Array(d);O0&&arguments[0]!==void 0?arguments[0]:[];Zo(this,v),Cr(this,"widgets",new Map),this.installWidgets(d)}return Jo(v,[{key:"registerWidget",value:function(O){this.widgets.set(O.metadata.name,O)}},{key:"getWidget",value:function(O){var T=this.widgets.get(O);if(!T){var te={component:function(){return"\u7EC4\u4EF6 ".concat(O," \u672A\u6CE8\u518C\u6210\u529F.")},metadata:{}};return te}return T}},{key:"getAllWidgets",value:function(){var O=[],T=$a(this.widgets.values()),te;try{for(T.s();!(te=T.n()).done;){var Ee=te.value;O.push(Ee)}}catch(De){T.e(De)}finally{T.f()}return O}},{key:"installWidgets",value:function(){var O=this,T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];T.forEach(function(te){return O.registerWidget(te)})}},{key:"getContainerWithinSideNavWidgets",value:function(O){var T=[];return this.widgets.forEach(function(te){te.container.type==="SideNav"&&((0,tt.isUndefined)(O)||te.container.slot===O)&&T.push(te)}),T}},{key:"getNavSlotMenuPanelWidgets",value:function(){var O=this.getContainerWithinSideNavWidgets("menuPanel");return O}},{key:"getNavSlotBottomWidgets",value:function(){var O=this.getContainerWithinSideNavWidgets("bottom");return O}}]),v}(),ni=ri;function mr(v){"@babel/helpers - typeof";return mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},mr(v)}function Br(v){return kr(v)||ii(v)||ai(v)||oi()}function oi(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ai(v,d){if(v){if(typeof v=="string")return Yr(v,d);var O=Object.prototype.toString.call(v).slice(8,-1);if(O==="Object"&&v.constructor&&(O=v.constructor.name),O==="Map"||O==="Set")return Array.from(v);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return Yr(v,d)}}function ii(v){if(typeof Symbol!="undefined"&&v[Symbol.iterator]!=null||v["@@iterator"]!=null)return Array.from(v)}function kr(v){if(Array.isArray(v))return Yr(v)}function Yr(v,d){(d==null||d>v.length)&&(d=v.length);for(var O=0,T=new Array(d);O1?te-1:0),De=1;De=0)&&Object.prototype.propertyIsEnumerable.call(v,T)&&(O[T]=v[T])}return O}function di(v,d){if(v==null)return{};var O={},T=Object.keys(v),te,Ee;for(Ee=0;Ee=0)&&(O[te]=v[te]);return O}var Nl=null,Ml=null},6691:function(Pt,ot,J){"use strict";J.d(ot,{r:function(){return M}});var Se=J(25435),P=J.n(Se),ne=J(12611),N=J.n(ne),i=J(73788),Le=J(77331),I=J(42432);function re(H){"@babel/helpers - typeof";return re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(X){return typeof X}:function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},re(H)}function je(H,X){if(typeof X!="function"&&X!==null)throw new TypeError("Super expression must either be null or a function");H.prototype=Object.create(X&&X.prototype,{constructor:{value:H,writable:!0,configurable:!0}}),Object.defineProperty(H,"prototype",{writable:!1}),X&&Ue(H,X)}function Ue(H,X){return Ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(le,fe){return le.__proto__=fe,le},Ue(H,X)}function lt(H){var X=tt();return function(){var le=et(H),fe;if(X){var Pe=et(this).constructor;fe=Reflect.construct(le,arguments,Pe)}else fe=le.apply(this,arguments);return G(this,fe)}}function G(H,X){if(X&&(re(X)==="object"||typeof X=="function"))return X;if(X!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $e(H)}function $e(H){if(H===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return H}function tt(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(H){return!1}}function et(H){return et=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($){return $.__proto__||Object.getPrototypeOf($)},et(H)}function pe(H,X){var $=Object.keys(H);if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(H);X&&(le=le.filter(function(fe){return Object.getOwnPropertyDescriptor(H,fe).enumerable})),$.push.apply($,le)}return $}function ae(H){for(var X=1;XH.length)&&(X=H.length);for(var $=0,le=new Array(X);$0&&arguments[0]!==void 0?arguments[0]:5e3,le=this.data.length,fe=Math.max(Math.floor(le/$),1),Pe=[],Ne=0;Ne1&&arguments[1]!==void 0?arguments[1]:[];return Q(this,$),fe=X.call(this),be($e(fe),"schemas",void 0),be($e(fe),"datasets",void 0),be($e(fe),"appService",void 0),be($e(fe),"differenceDatasets",function(Ne,Ze){var ge=[];return Ne.forEach(function(_e,Oe){Ze.has(Oe)||ge.push(_e)}),ge}),be($e(fe),"onQueryStateChange",function(Ne,Ze){var ge=fe.datasets.findIndex(function(Re){return Re.id===Ne});if(ge!==-1){var _e=Array.isArray(Ze.data)?Ze.data:[],Oe=fe.datasets.slice(0);Oe[ge]=fe.copyEditorDataset(Oe[ge]).updateData(_e),fe.datasets=Oe,fe.notify()}}),fe.appService=le,fe.schemas=Pe,fe.datasets=Pe.map(function(Ne){return new M(Ne,fe.appService)}),fe}return ue($,[{key:"isLoading",get:function(){return this.getDatasetList().some(function(fe){return fe.isLoading})}},{key:"getDatasetById",value:function(fe){return this.datasets.find(function(Pe){return Pe.id===fe})}},{key:"getDatasetList",value:function(){return this.datasets}},{key:"copyEditorDataset",value:function(fe){return Object.assign(Object.create(Object.getPrototypeOf(fe)),fe)}},{key:"copyEditorDatasetAndUpdateSchema",value:function(fe,Pe){return this.copyEditorDataset(fe).setSchema(Pe)}},{key:"update",value:function(fe,Pe){var Ne=this,Ze=this.schemas!==fe;if(Ze){this.schemas=fe;var ge=this.datasets,_e=new Map(ge.map(function(ze){return[ze.id,ze]})),Oe=fe.map(function(ze){var at=_e.get(ze.id);if(at){if(ze===at.schema)return at}else return new M(ze,Ne.appService);return Ne.copyEditorDatasetAndUpdateSchema(at,ze)}),Re=Oe.some(function(ze){return ze!==_e.get(ze.id)});if(!(_e.size===Oe.length&&!Re)){var Ye=new Map(Oe.map(function(ze){return[ze.id,ze]}));this.datasets=Oe;var Ge=this.differenceDatasets(Ye,_e);this.hasListeners()&&(Ge.forEach(function(ze){ze.subscribeQuery(function(at){Ne.onQueryStateChange(ze.id,at)})}),this.differenceDatasets(_e,Ye).forEach(function(ze){ze.unAllSubscribeQuery()}),this.notify());var Xe=(0,I.xw)(Ge);Xe.length&&Pe&&(0,i.Kk)(function(){Pe(Ne.getAutoCreateSchema(Ge))})}}}},{key:"getAutoCreateSchema",value:function(fe){var Pe=this,Ne=(0,I.f3)(fe).filter(function(Oe){return Pe.appService.getImplementLayer(Oe.type)!==void 0}).map(function(Oe){return ae(ae({},Oe),{},{visConfig:ae(ae({},Pe.appService.getImplementLayerDefaultVis(Oe.type)),Oe.visConfig)})}),Ze=(0,I.Tf)(Ne,fe),ge=(0,I.vI)(Ne,fe)||void 0,_e={layers:Ne,layerPopup:Ze,bounds:ge};return _e}},{key:"onSubscribe",value:function(){var fe=this;this.listeners.size===1&&this.datasets.forEach(function(Pe){Pe.subscribeQuery(function(Ne){fe.onQueryStateChange(Pe.id,Ne)})})}},{key:"onUnsubscribe",value:function(){this.listeners.size||(this.listeners=new Set,this.datasets.forEach(function(fe){fe.unAllSubscribeQuery()}))}},{key:"notify",value:function(){var fe=this;this.listeners.forEach(function(Pe){Pe(fe.getDatasetList())})}},{key:"getSnapshot",value:function(){return this.datasets}},{key:"destroy",value:function(){this.listeners=new Set}}]),$}(Se.Subscribable);ot.Z=me},67196:function(Pt,ot,J){"use strict";J.d(ot,{ZQ:function(){return tt},Kx:function(){return et},sk:function(){return G},kF:function(){return $e}});var Se=J(25435),P=J(46381),ne=J.n(P),N=J(34522),i=function(ae){return ae instanceof Object&&ae.type==="FeatureCollection"&&Array.isArray(ae.features)?"geojson":"json"};function Le(pe){"@babel/helpers - typeof";return Le=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ae){return typeof ae}:function(ae){return ae&&typeof Symbol=="function"&&ae.constructor===Symbol&&ae!==Symbol.prototype?"symbol":typeof ae},Le(pe)}function I(pe,ae){var se=Object.keys(pe);if(Object.getOwnPropertySymbols){var ve=Object.getOwnPropertySymbols(pe);ae&&(ve=ve.filter(function(Ae){return Object.getOwnPropertyDescriptor(pe,Ae).enumerable})),se.push.apply(se,ve)}return se}function re(pe){for(var ae=1;ae-1}),{lngIdx:be,altIdx:xe}}var tt=function(q){for(var Q=q.filter(function(le){return le.type==="number"}),U=Q.map(function(le){return le.name.toLowerCase()}),ue=[],be=0;be=0;--He){var We=this.tryEntries[He],rt=We.completion;if(We.tryLoc==="root")return Me("end");if(We.tryLoc<=this.prev){var Ve=H.call(We,"catchLoc"),it=H.call(We,"finallyLoc");if(Ve&&it){if(this.prev=0;--Me){var He=this.tryEntries[Me];if(He.tryLoc<=this.prev&&H.call(He,"finallyLoc")&&this.prev=0;--he){var Me=this.tryEntries[he];if(Me.finallyLoc===de)return this.complete(Me.completion,Me.afterLoc),Ft(Me),Ge}},catch:function(de){for(var he=this.tryEntries.length-1;he>=0;--he){var Me=this.tryEntries[he];if(Me.tryLoc===de){var He=Me.completion;if(He.type==="throw"){var We=He.arg;Ft(Me)}return We}}throw new Error("illegal catch attempt")},delegateYield:function(de,he,Me){return this.delegate={iterator:Lt(de),resultName:he,nextLoc:Me},this.method==="next"&&(this.arg=ie),Ge}},M}var et=Se.A.filter(function(ie){return ie.type==="sequential"&&ie.colors.length===4}).map(function(ie){return ie.colors}),pe=tt().mark(function ie(){var M;return tt().wrap(function(H){for(;;)switch(H.prev=H.next){case 0:M=0;case 1:if(!(M ").concat(M.fieldPairs[1].displayName),{datasetId:me,parser:{type:"json",x:M.fieldPairs[0].pair.lng,y:M.fieldPairs[0].pair.lat,x1:M.fieldPairs[1].pair.lng,y1:M.fieldPairs[1].pair.lat}});return[X]}],["ChoroplethLayer",function(ie){var M=ie.dataset,me=ie.colorField,H=M.id,X=M.name,$=M.geoFields.filter(function(le){return le.geoType==="Polygon"}).map(function(le){return Ae("ChoroplethLayer","".concat(X,"_").concat(le.displayName||le.name),{datasetId:H,parser:{type:"json",geometry:le.name}},{fillColor:ae(me)})});return $}],["H3HexagonLayer",function(ie){var M=ie.dataset,me=ie.colorField,H=M.id,X=M.name,$=M.h3Fields.map(function(le){return Ae("H3HexagonLayer","".concat(X,"_H3_").concat(le.name),{datasetId:H,parser:{type:"json",hexagonId:le.name}},{fillColor:ae(me)})});return $}]]),Ce=function(M){var me=(0,I.d)(M),H=Array.from(Ie.values()).reverse().map(function(X){return X({dataset:M,colorField:me})}).flat();return H},q=function(M){var me=M.map(function(H){return Ce(H)}).flat();return me},Q=function(M,me){var H=M.fieldPairs.map(function($){return Object.values($.pair)}).flat(),X=M.columns.filter(function($){var le=$.name,fe=$.type;return!H.includes(le)&&fe!=="geo"&&fe!=="h3"});return X.slice(0,me).map(function($){var le=$.name;return{field:le}})},U=function(M,me){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:6,X=M.map(function(le){var fe=me.find(function(Pe){return Pe.id===le.sourceConfig.datasetId});return{layerId:le.id,fields:fe?Q(fe,H):[]}}),$={id:"LayerPopup",type:"LayerPopup",metadata:{name:"\u4FE1\u606F\u6846"},properties:{isOpen:!0,trigger:"hover",items:X},container:{id:"x",slot:"controls"}};return $},ue=function(M,me){var H;if(((H=me.sourceConfig)===null||H===void 0?void 0:H.parser)===void 0)return null;var X=me.sourceConfig.parser,$=X.x,le=X.y,fe=X.geometry,Pe=M.getSampleData();if($&&le){var Ne=Pe.map(function(ge){return[ge[$],ge[le]]});return(0,I.gb)(Ne)}else if(fe){var Ze=Pe.map(function(ge){return ge[fe]});return(0,I.fj)(Ze)}return null},be=new Map([["BubbleLayer",ue],["GridLayer",ue],["HeatmapLayer",ue],["HexbinLayer",ue],["IconLayer",ue],["LineLayer",function(ie,M){var me;if(((me=M.sourceConfig)===null||me===void 0?void 0:me.parser)===void 0)return null;var H=M.sourceConfig.parser,X=H.x,$=H.y,le=H.x1,fe=H.y1,Pe=H.geometry,Ne=ie.getSampleData();if(X&&$&&le&&fe){var Ze=(0,I.gb)(Ne.map(function(Re){return[Re[X],Re[$]]})),ge=(0,I.gb)(Ne.map(function(Re){return[Re[le],Re[fe]]})),_e=ge&&Ze?[[Math.min(Ze[0][0],ge[0][0]),Math.min(Ze[0][1],ge[0][1])],[Math.max(Ze[1][0],ge[1][0]),Math.max(Ze[1][1],ge[1][1])]]:Ze||ge;return _e}else if(Pe){var Oe=Ne.map(function(Re){return Re[Pe]});return(0,I.fj)(Oe)}return null}],["ArcLayer",function(ie,M){var me;if(((me=M.sourceConfig)===null||me===void 0?void 0:me.parser)===void 0)return null;var H=M.sourceConfig.parser,X=H.x,$=H.y,le=H.x1,fe=H.y1,Pe=ie.getSampleData();if(X&&$&&le&&fe){var Ne=(0,I.gb)(Pe.map(function(_e){return[_e[X],_e[$]]})),Ze=(0,I.gb)(Pe.map(function(_e){return[_e[le],_e[fe]]})),ge=Ze&&Ne?[[Math.min(Ne[0][0],Ze[0][0]),Math.min(Ne[0][1],Ze[0][1])],[Math.max(Ne[1][0],Ze[1][0]),Math.max(Ne[1][1],Ze[1][1])]]:Ne||Ze;return ge}return null}],["ChoroplethLayer",function(ie,M){var me;if(((me=M.sourceConfig)===null||me===void 0?void 0:me.parser)===void 0)return null;var H=M.sourceConfig.parser.geometry,X=ie.getSampleData(1e4);if(H){var $=X.map(function(le){return le[H]});return(0,I.fj)($)}return null}],["H3HexagonLayer",function(ie,M){var me;if(((me=M.sourceConfig)===null||me===void 0?void 0:me.parser)===void 0)return null;var H=M.sourceConfig.parser.hexagonId,X=ie.getSampleData(1e4);if(H){var $=X.map(function(le){var fe=le[H];return(0,N.BT)(fe)?(0,N.rS)(fe).reverse():null}).filter(function(le){return le!==null});return(0,I.gb)($)}return null}]]),xe=function(M,me){var H=M.map(function(fe){var Pe=me.find(function(Ze){return Ze.id===fe.sourceConfig.datasetId}),Ne=be.get(fe.type);return!Pe||!Ne?null:Ne(Pe,fe)}),X=H.filter(function(fe){return fe!==null});if(X.length===0)return null;var $=X.reduce(function(fe,Pe){return[[Math.min(fe[0][0],Pe[0][0]),Math.min(fe[0][1],Pe[0][1])],[Math.max(fe[1][0],Pe[1][0]),Math.max(fe[1][1],Pe[1][1])]]},X[0]),le=[[Math.max($[0][0],-180),Math.max($[0][1],-90)],[Math.min($[1][0],180),Math.min($[1][1],90)]];return le}},8177:function(Pt,ot,J){"use strict";J.d(ot,{DN:function(){return q},KE:function(){return tt},Rv:function(){return et},TL:function(){return ae},ZA:function(){return $e},iS:function(){return Ce},lw:function(){return Ie},pw:function(){return pe},t3:function(){return ve},zW:function(){return G}});var Se=J(25435),P=J.n(Se),ne=J(12611),N=J.n(ne),i=J(84533);function Le(Q){"@babel/helpers - typeof";return Le=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},Le(Q)}function I(Q,U){var ue=Object.keys(Q);if(Object.getOwnPropertySymbols){var be=Object.getOwnPropertySymbols(Q);U&&(be=be.filter(function(xe){return Object.getOwnPropertyDescriptor(Q,xe).enumerable})),ue.push.apply(ue,be)}return ue}function re(Q){for(var U=1;U=q.length?{done:!0}:{done:!1,value:q[ue++]}},e:function(H){throw H},f:be}}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 xe=!0,ie=!1,M;return{s:function(){U=U.call(q)},n:function(){var H=U.next();return xe=H.done,H},e:function(H){ie=!0,M=H},f:function(){try{!xe&&U.return!=null&&U.return()}finally{if(ie)throw M}}}}function lt(q,Q){if(q){if(typeof q=="string")return G(q,Q);var U=Object.prototype.toString.call(q).slice(8,-1);if(U==="Object"&&q.constructor&&(U=q.constructor.name),U==="Map"||U==="Set")return Array.from(q);if(U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return G(q,Q)}}function G(q,Q){(Q==null||Q>q.length)&&(Q=q.length);for(var U=0,ue=new Array(Q);Uge.length)&&(_e=ge.length);for(var Oe=0,Re=new Array(_e);Oe<_e;Oe++)Re[Oe]=ge[Oe];return Re}function fe(ge,_e){var Oe=ge==null?null:typeof Symbol!="undefined"&&ge[Symbol.iterator]||ge["@@iterator"];if(Oe!=null){var Re,Ye,Ge,Xe,ze=[],at=!0,_t=!1;try{if(Ge=(Oe=Oe.call(ge)).next,_e===0){if(Object(Oe)!==Oe)return;at=!1}else for(;!(at=(Re=Ge.call(Oe)).done)&&(ze.push(Re.value),ze.length!==_e);at=!0);}catch(gt){_t=!0,Ye=gt}finally{try{if(!at&&Oe.return!=null&&(Xe=Oe.return(),Object(Xe)!==Xe))return}finally{if(_t)throw Ye}}return ze}}function Pe(ge){if(Array.isArray(ge))return ge}var Ne=function(_e){var Oe=_e.visible,Re=_e.onVisbleChange,Ye=(0,I.F8)("export-data"),Ge=be(),Xe=Se.Form.useForm(),ze=H(Xe,1),at=ze[0],_t=(0,I.UT)(),gt=_t.editorDatasets,bt=gt.filter(function(At){return At.isLocalOrRemoteDataset}),Ct=Se.message.useMessage(),xt=H(Ct,2),It=xt[0],Qt=xt[1],Ut=[{label:"JSON",value:"json"},{label:"CSV",value:"csv"},{label:"Excel",value:"xlsx"},{label:"GeoJSON",value:"geojson"}],Zt=bt.length?[{label:"\u5168\u90E8",value:"all"}].concat(xe(bt.map(function(At){return{label:At.metadata.name,value:At.id}}))):[],Ft=function(){var Lt=at.getFieldsValue(!0),we=Lt.dataSourceId,de=Lt.type,he=bt.find(function(Ve){return Ve.id===we});if(we=="all")try{de==="json"&&bt.forEach(function(Ve){(0,N.Di)("".concat(Ve.metadata.name,".").concat(de),JSON.stringify(Ve.data))}),de==="geojson"&&bt.forEach(function(Ve){var it=Ve.columns.find(function(jt){return jt.type==="geo"});if(it!=null&&it.name){var Et=Ve.data[0][it.name].type,wt=Ie(Ve,Et,it);(0,N.Di)("".concat(Ve.metadata.name,".json"),JSON.stringify(wt))}else It.error("".concat(Ve.metadata.name,"\u6570\u636E\u4E0D\u652F\u6301 GeoJSON \u683C\u5F0F\u8F93\u51FA"))}),de==="csv"&&bt.forEach(function(Ve){(0,N.Di)("".concat(Ve.metadata.name,".").concat(de),ve(Ve))}),de==="xlsx"&&bt.forEach(function(Ve){var it=Ae(Ve);it?(0,N.lm)("".concat(Ve.metadata.name,".").concat(de),it):It.error("".concat(Ve.metadata.name,"\u6570\u636E\u4E0D\u652F\u6301 xlsx \u683C\u5F0F\u8F93\u51FA"))}),Re(!1)}catch(Ve){throw Ve}else if(he)try{if(de==="json"&&(0,N.Di)("".concat(he.metadata.name,".").concat(de),JSON.stringify(he.data)),de==="geojson"){var Me=he.columns.find(function(Ve){return Ve.type==="geo"});if(Me!=null&&Me.name){var He=he.data[0][Me.name].type,We=Ie(he,He,Me);(0,N.Di)("".concat(he.metadata.name,".json"),JSON.stringify(We))}else It.error("\u6B64\u6570\u636E\u4E0D\u652F\u6301 GeoJSON \u683C\u5F0F\u8F93\u51FA")}if(de==="csv"&&(0,N.Di)("".concat(he.metadata.name,".").concat(de),ve(he)),de==="xlsx"){var rt=Ae(he);rt?(0,N.lm)("".concat(he.metadata.name,".").concat(de),rt):It.error("".concat(he.metadata.name,"\u6570\u636E\u4E0D\u652F\u6301 xlsx \u683C\u5F0F\u8F93\u51FA"))}Re(!1)}catch(Ve){throw Ve}};return Le().createElement(Se.Modal,{className:Ye,destroyOnClose:!0,open:Oe,onCancel:function(){return Re(!1)},title:"\u5BFC\u51FA\u6570\u636E",width:600,onOk:Ft,okText:"\u5BFC\u51FA",cancelText:"\u8FD4\u56DE"},Qt,Le().createElement(Se.Form,{colon:!1,form:at},Le().createElement(Se.Form.Item,{name:"dataSourceId",label:Le().createElement("div",{className:ne()("".concat(Ye,"__form-label"),Ge.formLabel)},Le().createElement("span",null,"\u6570\u636E\u96C6"),Le().createElement("span",{className:ne()("".concat(Ye,"__form-desc"),Ge.formDesc)},"\u9009\u62E9\u8981\u5BFC\u51FA\u7684\u6570\u636E\u96C6")),style:{padding:20},initialValue:bt.length?"all":void 0},Le().createElement(Se.Select,{options:Zt})),Le().createElement(Se.Form.Item,{name:"type",label:Le().createElement("div",{className:ne()("".concat(Ye,"__form-label"),Ge.formLabel)},Le().createElement("span",null,"\u6570\u636E\u7C7B\u578B"),Le().createElement("span",{className:ne()("".concat(Ye,"__form-desc"),Ge.formDesc)},"\u9009\u62E9\u8981\u5BFC\u51FA\u7684\u6570\u636E\u7C7B\u578B")),style:{padding:20},initialValue:"json"},Le().createElement(Se.Radio.Group,{optionType:"button",buttonStyle:"solid",options:Ut}))))},Ze=Ne},36268:function(Pt,ot,J){"use strict";J.d(ot,{T:function(){return ie},rd:function(){return ei},D7:function(){return si},a:function(){return Jp},G9:function(){return fd},gt:function(){return yd},kk:function(){return SO},sP:function(){return VO},Sf:function(){return CE},u0:function(){return vA},I6:function(){return Dj}});var Se=J(73788),P=J(81821),ne=J(12611),N=J(87363),i=J.n(N),Le=J(90005),I=J.n(Le),re=J(66154),je=J(25435),Ue=function(t){var r=t.type,n=je.DATASET_FIELD_TYPE_MAP[r],o=n.color,a=n.value;return i().createElement(P.Tag,{color:o},a)},lt=Ue,G=J(87651),$e,tt,et,pe;function ae(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var se=function(){return{datasetPreview:(0,G.iv)($e||($e=ae([` + min-width: 600px; + `]))),datasetPreviewClamp:(0,G.iv)(tt||(tt=ae([` + display: inline-block; + width: 150px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + `]))),datasetPreviewTable:(0,G.iv)(et||(et=ae([` + width: 100%; + padding: 20px; + `]))),datasetPreviewClampTitle:(0,G.iv)(pe||(pe=ae([` + width: 100%; + `])))}},ve=se;function Ae(e){"@babel/helpers - typeof";return Ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ae(e)}function Ie(e,t){return ue(e)||U(e,t)||q(e,t)||Ce()}function Ce(){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 q(e,t){if(e){if(typeof e=="string")return Q(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Q(e,t)}}function Q(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r20?i().createElement(P.Tooltip,{title:L},i().createElement("span",{className:I()("".concat(y,"__clamp"),A.datasetPreviewClamp)},L)):i().createElement("span",{className:I()("".concat(y,"__clamp"),A.datasetPreviewClamp)},L):i().createElement("span",{className:I()("".concat(y,"__clamp"),A.datasetPreviewClamp)},L)},title:function(){return i().createElement("div",{className:I()("".concat(y,"__clamp-title"),A.datasetPreviewClampTitle)},i().createElement(lt,{type:D.type}),i().createElement("span",{title:D.name},D.name))}})}),j};return i().createElement(P.Modal,{className:I()(y,A.datasetPreview),title:"".concat(s.metadata.name),open:n,destroyOnClose:!0,width:"calc(100vw - 200px)",footer:null,onCancel:function(){return o()}},i().createElement(P.Table,{className:I()("".concat(y,"__table"),A.datasetPreviewTable),dataSource:h,rowKey:function(j){return(0,ne.uniqueId)("location-insight".concat(j.id))},bordered:!0,sticky:!0,size:"small",columns:C(),scroll:{x:380,y:"calc(80vh - 100px)"},pagination:{showSizeChanger:!1,showQuickJumper:!0,showTitle:!0,pageSize:c.pageSize,onChange:function(j,D){l({current:j,pageSize:D})},showTotal:function(j){return i().createElement("span",null,j,"\u6761")}}}))},xe=be,ie=(0,Se.BP)({version:"v0.1",component:xe,metadata:{name:"DatasetPreview",displayName:"\u6570\u636E\u9884\u89C8",description:"\u9884\u89C8\u6570\u636E\u96C6"},container:{type:"Datasets",slot:"preview"}}),M=J(16640),me=J.n(M),H=J(613);function X(e,t){return Ne(e)||Pe(e,t)||le(e,t)||$()}function $(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function le(e,t){if(e){if(typeof e=="string")return fe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fe(e,t)}}function fe(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&i().createElement(P.Segmented,{options:g,onChange:function(j){_(j)},defaultValue:h,style:{marginBottom:20}}),i().createElement(C,{onCancel:a,onSubmit:u}))},ge=Ze,_e=J(6691),Oe=J(42432);function Re(e){"@babel/helpers - typeof";return Re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Re(e)}function Ye(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ge(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r * { + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } + `]))),infoName:(0,G.iv)(jt||(jt=Nt([` + color: #979a9d; + font-size: 12px; + `]))),infoCount:(0,G.iv)(Do||(Do=Nt([` + color: #979a9d; + `]))),popconfirmTitle:(0,G.iv)(To||(To=Nt([` + margin-bottom: 0; + color: #bbb; + font-size: 10px; + `]))),popconfirmLayersCount:(0,G.iv)(Tr||(Tr=Nt([` + color: #faad14; + `])))}},Lo=Fo;function Jt(e){"@babel/helpers - typeof";return Jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jt(e)}function Fr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function lr(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Nl(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}var Ml=function(t){var r=t.fieldName,n=(0,re.F8)("dynamic-form-item"),o=na();return i().createElement(P.Form.List,{name:r},function(a,u){var c=u.add,l=u.remove;return i().createElement(i().Fragment,null,a.map(function(s){var y=s.key,A=s.name,E=di(s,Ll);return i().createElement(P.Space,{key:y,align:"baseline",className:I()("".concat(n,"__item"),o.dynamicFormItem)},i().createElement(P.Form.Item,zr({},E,{name:[A,"field"],className:I()("".concat(n,"__item__field"),o.itemField)}),i().createElement(P.Input,{placeholder:"name"})),i().createElement("div",{className:I()("".concat(n,"__item__icon"),o.itemIcon)},":"),i().createElement(P.Form.Item,zr({},E,{name:[A,"value"],className:I()("".concat(n,"__item__value"),o.itemValue)}),i().createElement(yi,null)),i().createElement(M.MinusCircleOutlined,{onClick:function(){return l(A)}}))}),i().createElement(P.Form.Item,{className:I()("".concat(n,"__add-btn"),o.dynamicFormAddBtn)},i().createElement(P.Button,{onClick:function(){return c()},block:!0,icon:i().createElement(M.PlusOutlined,null)},"\u6DFB\u52A0")))})},v=Ml,d;function O(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var T=function(){return{fetchDataset:(0,G.iv)(d||(d=O([` + width: 800px; + `])))}},te=T;function Ee(e,t){return ut(e)||Qe(e,t)||Ke(e,t)||De()}function De(){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 Ke(e,t){if(e){if(typeof e=="string")return Be(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Be(e,t)}}function Be(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r[] \u6570\u7EC4\u5BF9\u8C61\u6570\u636E\u7ED3\u6784 +function onComplete(res) { + return res.data; +}`,key:g.key}:{name:g.label,value:`function onError(err) { + +}`,key:g.key},x=[].concat(Bl(s.current),[C]);y(x)},E=function(g){var C=s.current.filter(function(x){return x.key!==g});y(C)},h=function(g,C){var x=s.current.map(function(D){return D.key===C?la(la({},D),{},{value:g}):D}),j=nt(x);r&&r(j),s.current=x};return i().createElement("div",{className:n},i().createElement("div",{className:"".concat(n,"__btn")},i().createElement(P.Dropdown,{menu:{items:c.map(function(_){return la(la({},_),{},{onClick:function(){return A(_)}})})},disabled:c.length===0},i().createElement(P.Button,null,"\u9009\u62E9\u6DFB\u52A0 ",i().createElement(M.DownOutlined,null)))),s.current.map(function(_){return i().createElement("div",{className:I()("".concat(n,"__success-and-err"),o.successAndErr),key:_.key},i().createElement("p",null,_.name,":"),i().createElement("div",{className:I()("".concat(n,"__success-and-err__content"),o.content)},i().createElement("div",{className:I()("".concat(n,"__success-and-err__content-js"),o.contentJs)},i().createElement(Ot.ZP,{language:"javascript",options:{lineNumbers:"off",minimap:{enabled:!1},overviewRulerBorder:!1},onChange:function(C){return h(C,_.key)},theme:"vs-dark",defaultValue:_.value})),i().createElement("div",{className:I()("".concat(n,"__success-and-err__content-icon"),o.contentIcon)},i().createElement(M.MinusCircleOutlined,{onClick:function(){E(_.key)}}))))}))},Yp=kp;function ua(e){"@babel/helpers - typeof";return ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ua(e)}var Wp=["name"];function gi(){"use strict";gi=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(p,f,m){p[f]=m.value},a=typeof Symbol=="function"?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(p,f,m){return Object.defineProperty(p,f,{value:m,enumerable:!0,configurable:!0,writable:!0}),p[f]}try{s({},"")}catch(p){s=function(m,b,w){return m[b]=w}}function y(p,f,m,b){var w=f&&f.prototype instanceof x?f:x,S=Object.create(w.prototype),V=new ee(b||[]);return o(S,"_invoke",{value:W(p,m,V)}),S}function A(p,f,m){try{return{type:"normal",arg:p.call(f,m)}}catch(b){return{type:"throw",arg:b}}}t.wrap=y;var E="suspendedStart",h="suspendedYield",_="executing",g="completed",C={};function x(){}function j(){}function D(){}var F={};s(F,u,function(){return this});var L=Object.getPrototypeOf,k=L&&L(L(oe([])));k&&k!==r&&n.call(k,u)&&(F=k);var Y=D.prototype=x.prototype=Object.create(F);function Z(p){["next","throw","return"].forEach(function(f){s(p,f,function(m){return this._invoke(f,m)})})}function B(p,f){function m(w,S,V,ce){var ye=A(p[w],p,S);if(ye.type!=="throw"){var Te=ye.arg,Fe=Te.value;return Fe&&ua(Fe)=="object"&&n.call(Fe,"__await")?f.resolve(Fe.__await).then(function(ke){m("next",ke,V,ce)},function(ke){m("throw",ke,V,ce)}):f.resolve(Fe).then(function(ke){Te.value=ke,V(Te)},function(ke){return m("throw",ke,V,ce)})}ce(ye.arg)}var b;o(this,"_invoke",{value:function(S,V){function ce(){return new f(function(ye,Te){m(S,V,ye,Te)})}return b=b?b.then(ce,ce):ce()}})}function W(p,f,m){var b=E;return function(w,S){if(b===_)throw new Error("Generator is already running");if(b===g){if(w==="throw")throw S;return{value:e,done:!0}}for(m.method=w,m.arg=S;;){var V=m.delegate;if(V){var ce=z(V,m);if(ce){if(ce===C)continue;return ce}}if(m.method==="next")m.sent=m._sent=m.arg;else if(m.method==="throw"){if(b===E)throw b=g,m.arg;m.dispatchException(m.arg)}else m.method==="return"&&m.abrupt("return",m.arg);b=_;var ye=A(p,f,m);if(ye.type==="normal"){if(b=m.done?g:h,ye.arg===C)continue;return{value:ye.arg,done:m.done}}ye.type==="throw"&&(b=g,m.method="throw",m.arg=ye.arg)}}}function z(p,f){var m=f.method,b=p.iterator[m];if(b===e)return f.delegate=null,m==="throw"&&p.iterator.return&&(f.method="return",f.arg=e,z(p,f),f.method==="throw")||m!=="return"&&(f.method="throw",f.arg=new TypeError("The iterator does not provide a '"+m+"' method")),C;var w=A(b,p.iterator,f.arg);if(w.type==="throw")return f.method="throw",f.arg=w.arg,f.delegate=null,C;var S=w.arg;return S?S.done?(f[p.resultName]=S.value,f.next=p.nextLoc,f.method!=="return"&&(f.method="next",f.arg=e),f.delegate=null,C):S:(f.method="throw",f.arg=new TypeError("iterator result is not an object"),f.delegate=null,C)}function R(p){var f={tryLoc:p[0]};1 in p&&(f.catchLoc=p[1]),2 in p&&(f.finallyLoc=p[2],f.afterLoc=p[3]),this.tryEntries.push(f)}function K(p){var f=p.completion||{};f.type="normal",delete f.arg,p.completion=f}function ee(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(R,this),this.reset(!0)}function oe(p){if(p||p===""){var f=p[u];if(f)return f.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var m=-1,b=function w(){for(;++m=0;--w){var S=this.tryEntries[w],V=S.completion;if(S.tryLoc==="root")return b("end");if(S.tryLoc<=this.prev){var ce=n.call(S,"catchLoc"),ye=n.call(S,"finallyLoc");if(ce&&ye){if(this.prev=0;--b){var w=this.tryEntries[b];if(w.tryLoc<=this.prev&&n.call(w,"finallyLoc")&&this.prev=0;--m){var b=this.tryEntries[m];if(b.finallyLoc===f)return this.complete(b.completion,b.afterLoc),K(b),C}},catch:function(f){for(var m=this.tryEntries.length-1;m>=0;--m){var b=this.tryEntries[m];if(b.tryLoc===f){var w=b.completion;if(w.type==="throw"){var S=w.arg;K(b)}return S}}throw new Error("illegal catch attempt")},delegateYield:function(f,m,b){return this.delegate={iterator:oe(f),resultName:m,nextLoc:b},this.method==="next"&&(this.arg=e),C}},t}function Hp(e,t){if(e==null)return{};var r=zp(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zp(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function Wl(e,t,r,n,o,a,u){try{var c=e[a](u),l=c.value}catch(s){r(s);return}c.done?t(l):Promise.resolve(l).then(n,o)}function Up(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function u(l){Wl(a,n,o,u,c,"next",l)}function c(l){Wl(a,n,o,u,c,"throw",l)}u(void 0)})}}function Hl(e,t){return Qp(e)||Kp(e,t)||Gp(e,t)||Vp()}function Vp(){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 Gp(e,t){if(e){if(typeof e=="string")return zl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zl(e,t)}}function zl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r","<"].includes(o)&&i().createElement(i().Fragment,null,h.picker?i().createElement(P.DatePicker,{size:n,className:"".concat(Gr,"-picker"),value:g,picker:h.picker,format:h.value,onChange:x}):i().createElement(P.DatePicker,{size:n,className:"".concat(Gr,"-picker"),value:g,showTime:{format:h.value},format:h.value,onChange:x})),["BETWEEN"].includes(o)&&i().createElement(i().Fragment,null,h.picker?i().createElement(Zl,{size:n,className:"".concat(Gr,"-picker"),value:g,picker:h.picker,onChange:x,format:h.value}):i().createElement(Zl,{size:n,className:"".concat(Gr,"-picker"),value:g,showTime:{format:h.value},onChange:x,format:h.value})))};function Kr(e){"@babel/helpers - typeof";return Kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kr(e)}function hi(){return hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"},{label:"\u5927\u4E8E\u7B49\u4E8E",value:">="},{label:"\u7B49\u4E8E",value:"="},{label:"\u5C0F\u4E8E",value:"<"},{label:"\u5C0F\u4E8E\u7B49\u4E8E",value:"<="},{label:"\u4ECB\u4E8E",value:"BETWEEN"}],Ay=[{label:"\u5927\u4E8E",value:">"},{label:"\u5C0F\u4E8E",value:"<"},{label:"\u4ECB\u4E8E",value:"BETWEEN"}],wy={string:Oy,number:Ey,date:Ay};function Zr(e){"@babel/helpers - typeof";return Zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zr(e)}function eu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ca(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r",value:0}:R==="date"?K={id:g.id,type:"date",field:W,operator:">",value:"",granularity:"day"}:K={id:g.id,type:"string",field:W,operator:"IN",value:[]},C(K),t.onChange(K)}},Z=function(W){var z="";g.type==="number"?W==="BETWEEN"?z=(0,ne.isArray)(g.value)&&g.value.length===2?g.value:Xl:z=(0,ne.isArray)(g.value)?g.value[0]:g.value:g.type==="date"?W==="BETWEEN"?z=(0,ne.isArray)(g.value)&&g.value.length===2?g.value:[]:z=(0,ne.isArray)(g.value)?g.value[0]:g.value:g.type==="string"&&(["IN","NOT_IN"].includes(W)?z=Array.isArray(g.value)?g.value:[g.value]:z=Array.isArray(g.value)?"":g.value);var R=ca(ca({},g),{},{operator:W,value:z});C(R),t.onChange(R)};return i().createElement("div",{className:"".concat(yr),style:{borderColor:D.colorBorder}},i().createElement("div",{className:"".concat(yr,"__filter-field")},i().createElement("span",null,"\u8FC7\u6EE4\u5B57\u6BB5"),o&&i().createElement("div",{className:"".concat(yr,"__del-filter")},i().createElement(P.Popconfirm,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u7B5B\u9009\u5B57\u6BB5\uFF1F",onConfirm:y,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88"},i().createElement(M.DeleteOutlined,null)))),i().createElement("div",{className:"".concat(yr,"__field-operator")},i().createElement(P.Select,{showSearch:!0,className:"".concat(yr,"__select-field"),style:{marginRight:10},size:E,placeholder:"\u8BF7\u9009\u62E9\u7B5B\u9009\u5B57\u6BB5",value:x,options:F,popupMatchSelectWidth:!1,filterOption:function(W,z){var R;return((R=z==null?void 0:z.title)!==null&&R!==void 0?R:"").includes(W)},onChange:function(W){return Y(W)}}),i().createElement(P.Select,{className:"".concat(yr,"__select-operator"),size:E,placeholder:"\u8BF7\u9009\u62E9\u7B5B\u9009\u65B9\u5F0F",options:L,value:g.operator,onChange:function(W){return Z(W)}})),g.field&&i().createElement(i().Fragment,null,i().createElement("div",{className:"".concat(yr,"__filter-content-title")},i().createElement("span",null,"\u8FC7\u6EE4\u5185\u5BB9")),g.type==="number"&&i().createElement(_y,{size:E,field:g.field,operator:g.operator,value:g.value,onChange:function(W){return k(W)}}),g.type==="string"&&i().createElement(Cy,{size:E,field:g.field,data:u,operator:g.operator,value:g.value,onChange:function(W){return k(W)}}),g.type==="date"&&i().createElement(uy,{size:E,format:(r=(n=c.find(function(B){return B.name===g.field}))===null||n===void 0?void 0:n.format)!==null&&r!==void 0?r:"YYYY-MM-DD HH:mm:ss",defaultGranularity:g.granularity,operator:g.operator,value:g.value,onChange:function(W,z){return k(W,z)}})))};function Ry(e){return Yy(e)||ky(e)||ru(e)||By()}function By(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ky(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yy(e){if(Array.isArray(e))return Ci(e)}function Wy(e,t){return Uy(e)||zy(e,t)||ru(e,t)||Hy()}function Hy(){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 ru(e,t){if(e){if(typeof e=="string")return Ci(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ci(e,t)}}function Ci(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Md(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function Eu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Au(e){for(var t=1;t-1){var l;n.push({name:a,props:Au(Au({},o==null?void 0:o["x-component-props"]),{},{key:(o==null||(l=o["x-component-props"])===null||l===void 0?void 0:l.key)||a}),schema:o})}}),n},wu=function(t){var r=(0,Cu.model)({activeKeys:t,setActiveKeys:function(o){r.activeKeys=o},hasActiveKey:function(o){if(Array.isArray(r.activeKeys)){if(r.activeKeys.includes(o))return!0}else if(r.activeKeys===o)return!0;return!1},addActiveKey:function(o){r.hasActiveKey(o)||(r.activeKeys=(0,Ad.toArr)(r.activeKeys).concat(o))},removeActiveKey:function(o){Array.isArray(r.activeKeys)?r.activeKeys=r.activeKeys.filter(function(a){return a!==o}):r.activeKeys=""},toggleActiveKey:function(o){r.hasActiveKey(o)?r.removeActiveKey(o):r.addActiveKey(o)}});return(0,Cu.markRaw)(r)},Wd=(0,st.observer)(function(e){var t=e.formCollapse,r=Nd(e,jd),n=(0,st.useField)(),o=Yd(),a=(0,Je.F)("formily-collapse",r),u=Id(a),c=xd(u,2),l=c[0],s=c[1],y=(0,N.useMemo)(function(){return t||wu(r.defaultActiveKey)},[]),A=function(){var _;return r.activeKey?r.activeKey:y!=null&&y.activeKeys?y==null?void 0:y.activeKeys:r.accordion?(_=o[0])===null||_===void 0?void 0:_.name:o.map(function(g){return g.name})},E=function(_,g){var C=n.form.queryFeedbacks({type:"error",address:"".concat(n.address.concat(_),".*")});return C.length?i().createElement(P.Badge,{size:"small",className:"errors-badge",count:C.length},g.header):g.header};return l(i().createElement(P.Collapse,ma({},r,{className:I()(a,r.className,s),activeKey:A(),onChange:function(_){var g,C;r==null||(g=r.onChange)===null||g===void 0||g.call(r,_),y==null||(C=y.setActiveKeys)===null||C===void 0||C.call(y,_)},expandIcon:function(_){var g=_.isActive;return i().createElement(M.CaretRightOutlined,{rotate:g?90:0})}}),o.map(function(h,_){var g=h.props,C=h.schema,x=h.name;return i().createElement(P.Collapse.Panel,ma({key:_},g,{header:E(x,g),forceRender:!0}),i().createElement(st.RecursionField,{schema:C,name:x}))})))}),Hd=function(t){var r=t.children;return i().createElement(N.Fragment,null,r)},zd=Object.assign(Wd,{CollapsePanel:Hd,createFormCollapse:wu}),Ei=zd,pa=J(90158);function rn(e){"@babel/helpers - typeof";return rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rn(e)}function ya(e,t,r){return t=Ud(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ud(e){var t=Vd(e,"string");return rn(t)=="symbol"?t:String(t)}function Vd(e,t){if(rn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gd=(0,qe.l)("field-select",function(e){var t=e.componentCls,r=e.controlItemBgActive,n=e.controlItemBgHover;return ya({},t,ya(ya(ya({},"".concat(t,"-dropdown"),{maxHeight:256,overflow:"auto",position:"relative"}),"".concat(t,"-dropdown-container"),{position:"absolute",minWidth:"100%",paddingTop:7}),"".concat(t,"-item"),{height:"32px",lineHeight:"32px",whiteSpace:"nowrap",padding:"0 12px",fontSize:"14px",borderRadius:4,cursor:"pointer","&:hover":{background:n},"&_selected":{background:r}}))});function nn(e){"@babel/helpers - typeof";return nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nn(e)}var Kd=["options","open"];function Ai(){return Ai=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rv(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}var nv=function(t){var r=t.options,n=t.open,o=n===void 0?!1:n,a=tv(t,Kd),u=(0,Je.F)("formily-field-select"),c=Gd(u),l=Pu(c,2),s=l[0],y=l[1],A=(0,N.useState)(o),E=Pu(A,2),h=E[0],_=E[1],g=a.mode;(0,pa.Z)(function(){_(o)},[o]);var C=function(j){if(t.onChange){if(!g)t.onChange(j,r!=null?r:[]),_(!1);else if(!t.value)t.onChange([j],r!=null?r:[]);else if(Array.isArray(t.value)){var D=Array.from(new Set(t.value.concat(j)));t.onChange(D,r!=null?r:[])}}};return s(i().createElement(P.Select,Ai({},a,{popupClassName:I()("".concat(u),y),open:h,onDropdownVisibleChange:function(j){return _(j)},dropdownRender:function(){if(!(r!=null&&r.length))return i().createElement(P.Empty,{description:"\u6682\u65E0\u6570\u636E",image:P.Empty.PRESENTED_IMAGE_SIMPLE});var j=32*r.length<256?32*r.length+14:256;return i().createElement("div",{className:"".concat(u,"-dropdown"),style:{height:j}},i().createElement("div",{className:"".concat(u,"-dropdown-container")},r==null?void 0:r.map(function(D,F){var L,k=g?(L=t.value)===null||L===void 0?void 0:L.includes(D.value):D.value===t.value;return i().createElement("div",{className:I()("".concat(u,"-item"),y,Qd({},"".concat(u,"-item_selected"),k)),key:F,onClick:function(){return C(D.value)}},(0,ne.isUndefined)(D.type)?i().createElement(P.Tag,null,"\u672A\u77E5"):i().createElement(P.Tag,{color:D.typeColor},(0,ne.isUndefined)(D.typeName)?D.type:D.typeName),i().createElement("span",null,D.label))})))}}),r==null?void 0:r.map(function(x,j){return i().createElement(P.Select.Option,{value:x.value,key:j},i().createElement("div",{className:I()("".concat(u,"-item"),y)},(0,ne.isUndefined)(x.type)?i().createElement(P.Tag,null,"\u672A\u77E5"):i().createElement(P.Tag,{color:x.typeColor},(0,ne.isUndefined)(x.typeName)?x.type:x.typeName),i().createElement("span",{title:x.label},x.label)))})))},ju=nv;function on(e){"@babel/helpers - typeof";return on=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},on(e)}function xu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Du(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ev(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}var Av=function(t){var r=t.options,n=t.onChange,o=Ov(t,dv),a=t.className,u=(0,re.F8)("vis-type-select"),c=yv(),l=(0,N.useState)(!1),s=bv(l,2),y=s[0],A=s[1],E=function(_){var g;(g=t.onChange)===null||g===void 0||g.call(t,_,r),A(!1)};return i().createElement(P.Select,Ii({},o,{open:y,virtual:!1,onDropdownVisibleChange:function(_){return A(_)},className:I()(u,a),dropdownRender:function(){return i().createElement("div",{className:I()("".concat(u,"__drop-down"),c.dropDown)},r==null?void 0:r.map(function(_,g){var C=_.value===o.value;return i().createElement("div",{className:I()("".concat(u,"__select-item"),c.selectItem),onClick:function(){return E(_.value)},key:g},i().createElement("div",{className:I()("".concat(u,"__item-icon"),c.itemIcon,Hu(Hu({},"".concat(u,"__item-icon_selected"),C),c.itemIconSelected,C))},i().createElement(me(),{component:_.icon})),i().createElement("span",{className:I()("".concat(u,"__item-label"),c.itemLabel)},_.label))}))}}),r==null?void 0:r.map(function(h,_){return i().createElement(P.Select.Option,{value:h.value,key:_},i().createElement("div",{className:I()("".concat(u,"__selected-option"),c.selectedOption)},i().createElement("div",{className:I()("".concat(u,"__selected-icon"),c.selectedIcon)},i().createElement(me(),{component:h.icon})),i().createElement("span",{className:I()("".concat(u,"__selected-label"),c.selectedLabel)},h.label)))}))},wv=Av,Pv=(0,st.connect)(wv,(0,st.mapProps)({dataSource:"options"},function(e){return e})),Iv=Pv,jv=(0,st.createSchemaField)({components:{FormItem:vt.FormItem,Input:vt.Input,Select:vt.Select,FormCollapse:Ei,FieldSelect:wi,Radio:vt.Radio,VisTypeSelect:Iv}}),xv=function(t){var r=(0,re.ox)(),n=r.appService,o=(0,N.useMemo)(function(){var u=n.getImplementLayers(),c=u.map(function(l){return{value:l.metadata.name,label:l.metadata.displayName,type:l.metadata.name,icon:l.metadata.icon}});return c},[n]),a=(0,N.useMemo)(function(){return mv(t.sourceList,o)},[t.sourceList,o]);return i().createElement(jv,{schema:a})},Dv=xv,Uu;function Tv(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Fv=function(){var t=(0,re.Sr)(),r=t.antCls,n=t.colorBgContainer,o=t.colorText,a=t.colorSplit,u=t.colorTextSecondary,c=t.borderRadius;return{layerForm:(0,G.iv)(Uu||(Uu=Tv([` + overflow-y: auto; + + `,`-badge-count { + color: `,`; + box-shadow: none; + } + + `,`-formily-item-label { + color: `,`; + } + + `,`-formily-item-asterisk { + color: `,`; + } + + `,`-formily-item-label-tooltip-icon { + color: `,`; + } + + `,"-collapse-item ",`-collapse-header { + padding: 6px 13px !important; + background-color: `,`; + border: 1px solid `,`; + border-radius: `,`px !important; + } + + `,"-collapse-item ","-collapse-content ",`-collapse-content-box { + padding: 10px 0 !important; + } + + `,`-collapse { + margin-bottom: 10px; + } + `])),r,o,r,o,r,u,r,u,r,r,n,a,c,r,r,r,r)}},Lv=Fv;function ln(e){"@babel/helpers - typeof";return ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ln(e)}function ji(e,t,r){return t=Nv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nv(e){var t=Mv(e,"string");return ln(t)=="symbol"?t:String(t)}function Mv(e,t){if(ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rv=(0,qe.l)("offset",function(e){var t=e.componentCls,r=e.antCls;return ji({},t,ji({display:"inline-block",verticalAlign:"middle",width:"100%"},"".concat(t,"__input-group"),ji({display:"flex ",justifyContent:"space-between"},"".concat(r,"-input-number"),{width:"70px !important"})))});function Vu(e,t){return Wv(e)||Yv(e,t)||kv(e,t)||Bv()}function Bv(){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 kv(e,t){if(e){if(typeof e=="string")return Gu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gu(e,t)}}function Gu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vg(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}function gg(e,t){return _g(e)||Sg(e,t)||hg(e,t)||bg()}function bg(){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 hg(e,t){if(e){if(typeof e=="string")return Xu(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xu(e,t)}}function Xu(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Kb(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}var Qb={min:0,max:100,step:1},Zb=function(t){var r,n,o=(0,Je.F)("formily-slider-range",t),a=t.showSlider,u=a===void 0?!0:a,c=Gb(t,Rb),l=Mb(o),s=Wb(l,2),y=s[0],A=s[1],E=gc(gc({},Qb),c),h=(0,ne.isArray)(t.value)?t.value:t.defaultValue||[0,100],_=function(C){var x;(x=t.onChange)===null||x===void 0||x.call(t,C)};return y(i().createElement("div",{className:I()("".concat(o),A)},u&&i().createElement(P.Slider,Bi({},E,{range:!0,onChange:function(C){var x;(x=t.onChange)===null||x===void 0||x.call(t,C)}})),i().createElement("div",{className:"".concat(o,"__input-number")},i().createElement(P.InputNumber,{min:E.min,max:(r=h[1])!==null&&r!==void 0?r:E.max,size:"small",value:h[0],onChange:function(C){Number(C)<=h[1]&&_([Number(C),h[1]])}}),i().createElement(P.InputNumber,{min:(n=h[0])!==null&&n!==void 0?n:E.min,max:E.max,size:"small",value:h[1],onChange:function(C){Number(C)>=h[0]&&_([h[0],Number(C)])}}))))},Jb=(0,st.connect)(Zb),qb=Jb,hc="custom",Xb=[{label:"\u7B49\u95F4\u8DDD",value:"quantize",type:"number"},{label:"\u7B49\u5206\u4F4D",value:"quantile",type:"number"},{label:"\u679A\u4E3E",value:"cat",type:"string"},{label:"\u81EA\u5B9A\u4E49\u5206\u7C7B",value:"custom",type:"string"},{label:"\u81EA\u5B9A\u4E49\u5206\u6BB5",value:"custom",type:"number"}],$b={string:["#bdd7e7","#6baed6","#3182bd"],number:["#ffeda0","#feb24c","#f03b20"]};function On(e){"@babel/helpers - typeof";return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},On(e)}function Sc(e,t,r){return t=eh(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eh(e){var t=th(e,"string");return On(t)=="symbol"?t:String(t)}function th(e,t){if(On(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(On(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rh=(0,qe.l)("scale-selector__custom-input__number",function(e){var t=e.componentCls,r=e.antCls;return Sc({},t,{width:"100%",textAlign:"right",display:"flex",flex:1,justifyContent:"space-between","&__input":Sc({"&-desc":{fontSize:"12px !important",width:"50px"}},"".concat(r,"-input-number-input-wrap"),{input:{fontSize:"12px"}})})});function _c(e,t){return ih(e)||ah(e,t)||oh(e,t)||nh()}function nh(){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 oh(e,t){if(e){if(typeof e=="string")return Cc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cc(e,t)}}function Cc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?[j[0],Y]:[-1/0,Y];y(W),D(W)}};return(0,N.useEffect)(function(){D(o)},[o]),_(i().createElement("div",{className:I()("".concat(A),g)},s==="first"&&i().createElement(i().Fragment,null,i().createElement(P.Input,{size:n,value:"MIN",bordered:!1,className:"".concat(A,"__input-desc")}),i().createElement("span",{style:{margin:"0 2px"}},"-"),i().createElement(P.Tooltip,{title:j==null?void 0:j[1]},i().createElement(P.InputNumber,{controls:!1,size:n,min:u,max:l,value:j==null?void 0:j[1],className:"".concat(A,"__input"),onChange:function(Y){return L(Y)}}))),s==="last"&&i().createElement(i().Fragment,null,i().createElement(P.Tooltip,{title:j==null?void 0:j[0]},i().createElement(P.InputNumber,{controls:!1,size:n,min:u,max:l,value:j==null?void 0:j[0],className:"".concat(A,"__input"),onChange:function(Y){return L(Y)}})),i().createElement("span",{style:{margin:"0 2px"}},"-"),i().createElement(P.Input,{size:n,value:"MAX",bordered:!1,className:"".concat(A,"__input-desc")})),!s&&i().createElement(i().Fragment,null,i().createElement(P.Tooltip,{title:j==null?void 0:j[0]},i().createElement(P.InputNumber,{controls:!1,size:n,min:u,max:j==null?void 0:j[1],value:j==null?void 0:j[0],className:"".concat(A,"__input"),onChange:function(Y){return F(Y)}})),i().createElement("span",{style:{margin:"0 2px"}},"-"),i().createElement(P.Tooltip,{title:j==null?void 0:j[1]},i().createElement(P.InputNumber,{controls:!1,size:n,min:j==null?void 0:j[0],max:l,value:j==null?void 0:j[1],className:"".concat(A,"__input"),onChange:function(Y){return L(Y)}})))))},uh=lh;function En(e){"@babel/helpers - typeof";return En=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},En(e)}function Ar(e,t,r){return t=ch(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ch(e){var t=sh(e,"string");return En(t)=="symbol"?t:String(t)}function sh(e,t){if(En(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(En(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fh=(0,qe.l)("scale-selector__custom-content__custom-number__input",function(e){var t=e.componentCls,r=e.antCls,n=e.colorTextDescription,o=e.colorBorder,a=e.lineType;return Ar(Ar(Ar(Ar({},t,Ar({display:"flex",alignItems:"center",padding:"5px 0",borderRadius:"4px"},"".concat(t,"__infor"),{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",cursor:"pointer","&__color":{width:"18px",height:"18px",border:"1px ".concat(o," ").concat(a),borderRadius:"4px"},"&__content":{flex:1,width:"100%",overflow:"hidden",margin:"0 3px"},"&__delete-icon":{width:"14px",padding:0,color:n}})),"".concat(r,"-select-dropdown"),{zIndex:1}),"".concat(r,"-popover"),Ar({zIndex:"4 !important"},"".concat(r,"-color-picker-presets ").concat(r,"-collapse-item ").concat(r,"-collapse-header"),{display:"none"})),"".concat(r,"-color-picker ").concat(r,"-color-picker-panel ").concat(r,"-color-picker-inner-panel-divider"),{margin:"3px 8px "})});function mh(e,t){return vh(e)||dh(e,t)||yh(e,t)||ph()}function ph(){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 yh(e,t){if(e){if(typeof e=="string")return Oc(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Oc(e,t)}}function Oc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?n.length-1:0,s=(0,ne.fill)(Array(l),void 0).map(function(C,x){var j=Number(a)+c*(x+1);return j%1===0?Number(j):Number(j.toFixed(2))}),y={isCustom:!0,type:"threshold",domain:s,range:n,unknown:"#f000"};return y}else{var A=n.map(function(C,x){return x+1===n.length?{color:C,value:r.slice(x)}:{color:C,value:[r[x]]}}),E=Bc(A),h=E.domain,_=E.range,g={isCustom:!0,type:"cat",domain:h,range:_,unknown:"#f000"};return g}},U0=function(t){var r=t.type,n=t.list,o=t.unknown,a=o===void 0?"#f000":o;if(r==="number"){var u=n.map(function(h){return h.color}),c=n.map(function(h){return Number(h.value[1])}).slice(0,-1),l={isCustom:!0,type:"threshold",domain:c,range:u,unknown:a};return l}var s=Bc(n),y=s.domain,A=s.range,E={isCustom:!0,type:"cat",domain:y,range:A,unknown:a};return E},V0=function(t,r){if(r.isCustom){var n=r.domain,o=n===void 0?[]:n,a=r.range,u=a===void 0?[]:a;if(t==="number"){var c=u.map(function(_,g){var C,x;return{value:[(C=o[g-1])!==null&&C!==void 0?C:-1/0,(x=o[g])!==null&&x!==void 0?x:1/0],color:_}}),l={type:hc,list:c};return l}for(var s=o.map(function(_,g){return{value:_,color:u[g]}}),y={},A=0;Ae.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?n.length:0;if(t==="custom"){var s=(0,ne.fill)(Array(l-1),void 0).map(function(E,h){var _=Number(a)+c*(h+1);return _%1===0?Number(_):Number(_.toFixed(2))});return{type:t,positions:s,colors:n}}else{var y=(0,ne.fill)(Array(l),void 0).map(function(E,h){var _=c>h?Number(a)+h:+Number(a)+c*h;return _%1===0?Number(_):Number(_.toFixed(2))}),A={type:t,positions:y,colors:n};return A}},a_=function(t){var r=t.type,n=t.list,o=n.map(function(s){return s.color});if(r==="custom"){var a=n.map(function(s){return Number(s.value[1])}).slice(0,-1),u={type:r,positions:a,colors:o};return u}var c=n.map(function(s){return Number(s.value[0])}),l={type:r,positions:c,colors:o};return l},i_=function(t){var r=t.type,n=t.positions,o=n===void 0?[]:n,a=t.colors,u=a===void 0?[]:a;if(r==="custom"){var c=u.map(function(A,E){var h,_;return{value:[(h=o[E-1])!==null&&h!==void 0?h:-1/0,(_=o[E])!==null&&_!==void 0?_:1/0],color:A}}),l={type:r,list:c};return l}if(r==="cat"||r==="linear"){var s=u.map(function(A,E){return{color:A,value:[o[E]]}}),y={type:r,list:s};return y}};function Yn(e){"@babel/helpers - typeof";return Yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yn(e)}function va(e,t,r){return t=l_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l_(e){var t=u_(e,"string");return Yn(t)=="symbol"?t:String(t)}function u_(e,t){if(Yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var c_=(0,qe.l)("rester-scale-selector",function(e){var t=e.componentCls,r=e.controlItemBgHover,n=e.controlItemBgActive,o=e.colorTextBase;return va(va(va({},"".concat(t,"-dropdown"),va({},"".concat(t,"-custom"),{display:"flex",justifyContent:"space-between",alignItems:"center"})),"".concat(t,"-select-option"),{cursor:"pointer",height:"32px",padding:"5px 12px",borderRadius:"4px",fontSize:"14px",color:o,"&:hover":{background:r}}),"".concat(t,"-select-option-selected"),{background:n})});function Wn(e){"@babel/helpers - typeof";return Wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wn(e)}function ts(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function rs(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r5?t.slice(0,5):t,n=r.map(function(o,a){return{id:Wt.K[a].id,value:o,name:Wt.K[a].name,url:Wt.K[a].url}});return n},ps=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0,n={domain:t.map(function(o){return o.value}),range:t.map(function(o){return o.id}),unknown:r};return n},$_=function(t){var r=t.domain,n=r===void 0?[]:r,o=t.range,a=o===void 0?[]:o,u=a.map(function(c,l){var s=Wt.K.find(function(y){return y.id===c})||Wt.K[0];return{id:s.id,url:s.url,name:s.name,value:n==null?void 0:n[l]}});return u};function Gn(e){"@babel/helpers - typeof";return Gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gn(e)}function Kn(e,t,r){return t=eC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eC(e){var t=tC(e,"string");return Gn(t)=="symbol"?t:String(t)}function tC(e,t){if(Gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rC=(0,qe.l)("icon-scale-selector",function(e){var t=e.antCls,r=e.componentCls,n=e.lineWidth,o=e.lineType,a=e.colorBorder,u=e.colorTextSecondary,c=e.colorInfoTextHover;return Kn(Kn(Kn(Kn({},r,Kn({},"".concat(t,"-select-selection-item"),{display:"flex",img:{width:"20px",marginRight:"10px"}})),"".concat(r,"__customItem"),{margin:"10px 0"}),"".concat(r,"__add-item"),{paddingLeft:"0 !important",cursor:"pointer",color:u,"&:hover":{color:"".concat(c," !important")}}),"".concat(r,"__btn"),{display:"flex",alignItems:"center",justifyContent:"right",marginTop:"10px",paddingTop:"10px",textAlign:"right",borderTop:"".concat(n,"px ").concat(o," ").concat(a),span:{marginLeft:"20px",color:u,cursor:"pointer"},"span:hover":{color:c}})});function ba(e,t){return iC(e)||aC(e,t)||oC(e,t)||nC()}function nC(){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 oC(e,t){if(e){if(typeof e=="string")return ys(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ys(e,t)}}function ys(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function TO(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}var Xs=function(){return{AMAP_KEY:"d76a81e912e36130d498216d1085db31",PRIVATE_KEY:atob("ZWJkZmNjNjkzOTI1Nzg2NGJjOTEzMmY3NDE4MTEwNDM")}},$s=function(t){var r=t.currentMapCenter,n=t.larkMap,o=t.onSubmit,a=t.zoomValue,u=t.setZoomValue,c=t.mapCenterModalOpen,l=DO(t,wO),s=(0,re.F8)("map-setting"),y=AO(),A=(0,N.useState)(null),E=Ca(A,2),h=E[0],_=E[1],g=(0,N.useState)(null),C=Ca(g,2),x=C[0],j=C[1],D=P.message.useMessage(),F=Ca(D,2),L=F[0],k=F[1],Y=function(K){_(K),K.setZoomAndCenter(a,r)};(0,N.useEffect)(function(){if(c&&r){var R=Ca(r,2),K=R[0],ee=R[1];j({lng:K,lat:ee}),h==null||h.setZoomAndCenter(a,r)}},[c]);var Z=function(){h&&j(h.getCenter())},B=function(){h&&j(h.getCenter())},W=function(){if(x){var K=x.lng,ee=x.lat;o([K,ee])}h&&u(h.getZoom())},z=function(K,ee){if(ee&&h){var oe=ee.longitude,p=ee.latitude;h.setZoomAndCenter(16,[oe,p]),j({lng:oe,lat:p}),L.success("\u5730\u56FE\u79FB\u52A8\u81F3 ".concat(K))}};return i().createElement(P.Modal,_a({},l,{onOk:W}),i().createElement(rl.LarkMap,_a({},n,{onSceneLoaded:Y,onDragEnd:Z,onZoomEnd:B}),i().createElement("div",{className:I()("".concat(s,"__map-center"),y.mapCenter)}),i().createElement(rl.CustomControl,{className:I()("".concat(s,"__control"),y.control)},k,i().createElement(rl.LocationSearch,{searchParams:{key:Xs().AMAP_KEY,privateKey:Xs().PRIVATE_KEY},showDistrict:!0,showAddress:!0,autoFocus:!0,bordered:!1,value:null,notFoundContent:i().createElement(P.Empty,{image:P.Empty.PRESENTED_IMAGE_SIMPLE,description:!1}),onChange:z,popupClassName:I()("".concat(s,"__location-search"),y.locationSearch)}))))};$s.defaultProps={width:900,title:"\u7ED8\u5236\u6570\u636E",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",maskClosable:!1,destroyOnClose:!1,larkMap:{mapType:"Gaode",mapOptions:{style:"dark",jogEnable:!1},style:{height:400}}};var ef,tf,rf,nf,of,af,lf,uf,cf,sf,ff,mf,pf,yf,df,vf,gf,bf;function St(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var FO=function(){var t=(0,re.Sr)(),r=t.antCls,n=t.colorSplit,o=t.colorPrimaryText,a=t.colorTextSecondary,u=t.borderRadius;return{mapSetting:(0,G.iv)(ef||(ef=St([` + display: flex; + justify-content: space-between; + padding-top: 10px !important; + + `,`-form-item { + margin-bottom: 10px !important; + } + + , + `,`-input-number { + width: 100px; + } + `])),r,r),settingDesc:(0,G.iv)(tf||(tf=St([` + margin-bottom: 0; + color: `,`; + font-size: 12px; + `])),a),settingBtn:(0,G.iv)(rf||(rf=St([` + width: 100%; + margin-bottom: 10px; + `]))),mapContent:(0,G.iv)(nf||(nf=St([` + display: flex; + align-items: center; + `]))),selectMapCenter:(0,G.iv)(of||(of=St([` + display: flex; + justify-content: flex-end; + margin-bottom: 20px; + `]))),selectMapCenterText:(0,G.iv)(af||(af=St([` + color: `,`; + `])),o),mapType:(0,G.iv)(lf||(lf=St([` + display: flex; + align-items: center; + justify-content: space-between; + `]))),viewMode:(0,G.iv)(uf||(uf=St([` + display: flex; + align-items: center; + justify-content: space-between; + margin-bottom: 10px; + `]))),viewAngle:(0,G.iv)(cf||(cf=St([` + display: flex; + justify-content: space-between; + margin-bottom: 10px; + `]))),viewAngleItem:(0,G.iv)(sf||(sf=St([` + display: flex; + align-items: center; + `]))),viewAngleItemInput:(0,G.iv)(ff||(ff=St([` + display: flex; + justify-content: space-between; + width: 100px; + margin-left: 10px; + `]))),settingStyle:(0,G.iv)(mf||(mf=St([` + display: flex; + flex-wrap: wrap; + justify-content: space-around; + max-height: 250px; + margin-top: 10px; + overflow-y: auto; + `]))),settingStyleContent:(0,G.iv)(pf||(pf=St([` + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + margin: 0 12px 12px 0; + cursor: pointer; + + &:hover { + box-shadow: 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); + } + `]))),settingStyleItem:(0,G.iv)(yf||(yf=St([` + border: solid 1px `,`; + border-radius: `,`px; + + &:nth-child(3n) { + margin-right: 0; + } + `])),n,u),settingStyleItemActive:(0,G.iv)(df||(df=St([` + box-sizing: content-box; + border: solid 1px `,`; + border-radius: 4px; + `])),o),settingStyleItemText:(0,G.iv)(vf||(vf=St([` + display: flex; + flex-direction: column; + align-items: center; + `]))),settingStyleItemTextActive:(0,G.iv)(gf||(gf=St([` + display: flex; + flex-direction: column; + align-items: center; + color: `,`; + `])),o),settingStyleItemImg:(0,G.iv)(bf||(bf=St([` + border-radius: `,`px; + `])),u)}},LO=FO;function to(e){"@babel/helpers - typeof";return to=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},to(e)}function hf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Sf(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--w){var S=this.tryEntries[w],V=S.completion;if(S.tryLoc==="root")return b("end");if(S.tryLoc<=this.prev){var ce=n.call(S,"catchLoc"),ye=n.call(S,"finallyLoc");if(ce&&ye){if(this.prev=0;--b){var w=this.tryEntries[b];if(w.tryLoc<=this.prev&&n.call(w,"finallyLoc")&&this.prev=0;--m){var b=this.tryEntries[m];if(b.finallyLoc===f)return this.complete(b.completion,b.afterLoc),K(b),C}},catch:function(f){for(var m=this.tryEntries.length-1;m>=0;--m){var b=this.tryEntries[m];if(b.tryLoc===f){var w=b.completion;if(w.type==="throw"){var S=w.arg;K(b)}return S}}throw new Error("illegal catch attempt")},delegateYield:function(f,m,b){return this.delegate={iterator:oe(f),resultName:m,nextLoc:b},this.method==="next"&&(this.arg=e),C}},t}function Of(e,t,r,n,o,a,u){try{var c=e[a](u),l=c.value}catch(s){r(s);return}c.done?t(l):Promise.resolve(l).then(n,o)}function GO(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function u(l){Of(a,n,o,u,c,"next",l)}function c(l){Of(a,n,o,u,c,"throw",l)}u(void 0)})}}function il(e,t){return JO(e)||ZO(e,t)||QO(e,t)||KO()}function KO(){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 QO(e,t){if(e){if(typeof e=="string")return Ef(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ef(e,t)}}function Ef(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--w){var S=this.tryEntries[w],V=S.completion;if(S.tryLoc==="root")return b("end");if(S.tryLoc<=this.prev){var ce=n.call(S,"catchLoc"),ye=n.call(S,"finallyLoc");if(ce&&ye){if(this.prev=0;--b){var w=this.tryEntries[b];if(w.tryLoc<=this.prev&&n.call(w,"finallyLoc")&&this.prev=0;--m){var b=this.tryEntries[m];if(b.finallyLoc===f)return this.complete(b.completion,b.afterLoc),K(b),C}},catch:function(f){for(var m=this.tryEntries.length-1;m>=0;--m){var b=this.tryEntries[m];if(b.tryLoc===f){var w=b.completion;if(w.type==="throw"){var S=w.arg;K(b)}return S}}throw new Error("illegal catch attempt")},delegateYield:function(f,m,b){return this.delegate={iterator:oe(f),resultName:m,nextLoc:b},this.method==="next"&&(this.arg=e),C}},t}function jf(e,t,r,n,o,a,u){try{var c=e[a](u),l=c.value}catch(s){r(s);return}c.done?t(l):Promise.resolve(l).then(n,o)}function lE(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function u(l){jf(a,n,o,u,c,"next",l)}function c(l){jf(a,n,o,u,c,"throw",l)}u(void 0)})}}function xf(e,t){return fE(e)||sE(e,t)||cE(e,t)||uE()}function uE(){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 cE(e,t){if(e){if(typeof e=="string")return Df(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Df(e,t)}}function Df(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--w){var S=this.tryEntries[w],V=S.completion;if(S.tryLoc==="root")return b("end");if(S.tryLoc<=this.prev){var ce=n.call(S,"catchLoc"),ye=n.call(S,"finallyLoc");if(ce&&ye){if(this.prev=0;--b){var w=this.tryEntries[b];if(w.tryLoc<=this.prev&&n.call(w,"finallyLoc")&&this.prev=0;--m){var b=this.tryEntries[m];if(b.finallyLoc===f)return this.complete(b.completion,b.afterLoc),K(b),C}},catch:function(f){for(var m=this.tryEntries.length-1;m>=0;--m){var b=this.tryEntries[m];if(b.tryLoc===f){var w=b.completion;if(w.type==="throw"){var S=w.arg;K(b)}return S}}throw new Error("illegal catch attempt")},delegateYield:function(f,m,b){return this.delegate={iterator:oe(f),resultName:m,nextLoc:b},this.method==="next"&&(this.arg=e),C}},t}function YE(e,t){return UE(e)||zE(e,t)||HE(e,t)||WE()}function WE(){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 HE(e,t){if(e){if(typeof e=="string")return zf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zf(e,t)}}function zf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--w){var S=this.tryEntries[w],V=S.completion;if(S.tryLoc==="root")return b("end");if(S.tryLoc<=this.prev){var ce=n.call(S,"catchLoc"),ye=n.call(S,"finallyLoc");if(ce&&ye){if(this.prev=0;--b){var w=this.tryEntries[b];if(w.tryLoc<=this.prev&&n.call(w,"finallyLoc")&&this.prev=0;--m){var b=this.tryEntries[m];if(b.finallyLoc===f)return this.complete(b.completion,b.afterLoc),K(b),C}},catch:function(f){for(var m=this.tryEntries.length-1;m>=0;--m){var b=this.tryEntries[m];if(b.tryLoc===f){var w=b.completion;if(w.type==="throw"){var S=w.arg;K(b)}return S}}throw new Error("illegal catch attempt")},delegateYield:function(f,m,b){return this.delegate={iterator:oe(f),resultName:m,nextLoc:b},this.method==="next"&&(this.arg=e),C}},t}function Vf(e,t,r,n,o,a,u){try{var c=e[a](u),l=c.value}catch(s){r(s);return}c.done?t(l):Promise.resolve(l).then(n,o)}function ml(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function u(l){Vf(a,n,o,u,c,"next",l)}function c(l){Vf(a,n,o,u,c,"throw",l)}u(void 0)})}}var KE=function(){var e=ml(gr().mark(function t(r,n,o){var a,u,c;return gr().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return a=r.name,u=a.substring(a.lastIndexOf(".")+1),s.prev=2,s.next=5,sl(r);case 5:c=s.sent,s.next=11;break;case 8:throw s.prev=8,s.t0=s.catch(2),s.t0;case 11:if(u!=="json"){s.next=15;break}return s.abrupt("return",(0,oo.kF)(c,n,o));case 15:if(u!=="geojson"){s.next=19;break}return s.abrupt("return",(0,oo.sk)(c,n,o));case 19:return s.abrupt("return",(0,oo.ZQ)(c,n,o));case 20:case"end":return s.stop()}},t,null,[[2,8]])}));return function(r,n,o){return e.apply(this,arguments)}}(),QE=function(){var e=ml(gr().mark(function t(r,n,o){var a;return gr().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,c.next=3,cl(r);case 3:a=c.sent,c.next=9;break;case 6:throw c.prev=6,c.t0=c.catch(0),c.t0;case 9:return c.abrupt("return",(0,oo.Kx)(a,n,o));case 10:case"end":return c.stop()}},t,null,[[0,6]])}));return function(r,n,o){return e.apply(this,arguments)}}(),ZE=function(){var e=ml(gr().mark(function t(r,n,o){var a,u,c,l,s,y,A,E,h,_,g,C,x;return gr().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(a=r.map(function(F){var L=F.name.substring(F.name.lastIndexOf("."));return L}),!(r.length>1)){D.next=10;break}if(u=[".shp",".dbf",".prj"],c=u.filter(function(F){return!a.includes(F)}),l=c.length>=1,!l){D.next=8;break}return s="\u8BF7\u5B8C\u6574\u4E0A\u4F20 shapefile \u6587\u4EF6(\u7F3A\u5C11 ".concat(c.join("\u3001")," \u6587\u4EF6)"),D.abrupt("return",Promise.reject(s));case 8:D.next=12;break;case 10:return y="\u8BF7\u5B8C\u6574\u4E0A\u4F20 shapefile \u6587\u4EF6(\u5305\u62EC .shp, .dbf, .prj \u6587\u4EF6\u7B49)",D.abrupt("return",Promise.reject(y));case 12:return r.forEach(function(F){var L=F.name.slice(-3).toLowerCase();L==="shp"?A=F:L==="dbf"?E=F:L==="prj"?h=F:L==="cpg"&&(_=F)}),D.prev=13,D.next=16,GE(A,E,h,_);case 16:g=D.sent.geoJson,D.next=24;break;case 19:return D.prev=19,D.t0=D.catch(13),console.error(D.t0),C="shapefile \u6587\u4EF6\u89E3\u6790\u5931\u8D25",D.abrupt("return",Promise.reject(C));case 24:return x=(0,oo.sk)(JSON.stringify(g),n,o),D.abrupt("return",x);case 26:case"end":return D.stop()}},t,null,[[13,19]])}));return function(r,n,o){return e.apply(this,arguments)}}(),JE=J(82858),qE=J.n(JE),XE=function(t){return qE().loadAsync(t).then(function(r){var n=[];return r.forEach(function(o,a){if(!o.match(/^__MACOSX\//)){var u=a.async("arraybuffer").then(function(c){var l=new File([c],a.name);return l});n.push(u)}}),Promise.all(n).then(function(o){return o})}).catch(function(r){return Promise.reject(r)})};function Ia(e){"@babel/helpers - typeof";return Ia=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ia(e)}function pl(){"use strict";pl=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(p,f,m){p[f]=m.value},a=typeof Symbol=="function"?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(p,f,m){return Object.defineProperty(p,f,{value:m,enumerable:!0,configurable:!0,writable:!0}),p[f]}try{s({},"")}catch(p){s=function(m,b,w){return m[b]=w}}function y(p,f,m,b){var w=f&&f.prototype instanceof x?f:x,S=Object.create(w.prototype),V=new ee(b||[]);return o(S,"_invoke",{value:W(p,m,V)}),S}function A(p,f,m){try{return{type:"normal",arg:p.call(f,m)}}catch(b){return{type:"throw",arg:b}}}t.wrap=y;var E="suspendedStart",h="suspendedYield",_="executing",g="completed",C={};function x(){}function j(){}function D(){}var F={};s(F,u,function(){return this});var L=Object.getPrototypeOf,k=L&&L(L(oe([])));k&&k!==r&&n.call(k,u)&&(F=k);var Y=D.prototype=x.prototype=Object.create(F);function Z(p){["next","throw","return"].forEach(function(f){s(p,f,function(m){return this._invoke(f,m)})})}function B(p,f){function m(w,S,V,ce){var ye=A(p[w],p,S);if(ye.type!=="throw"){var Te=ye.arg,Fe=Te.value;return Fe&&Ia(Fe)=="object"&&n.call(Fe,"__await")?f.resolve(Fe.__await).then(function(ke){m("next",ke,V,ce)},function(ke){m("throw",ke,V,ce)}):f.resolve(Fe).then(function(ke){Te.value=ke,V(Te)},function(ke){return m("throw",ke,V,ce)})}ce(ye.arg)}var b;o(this,"_invoke",{value:function(S,V){function ce(){return new f(function(ye,Te){m(S,V,ye,Te)})}return b=b?b.then(ce,ce):ce()}})}function W(p,f,m){var b=E;return function(w,S){if(b===_)throw new Error("Generator is already running");if(b===g){if(w==="throw")throw S;return{value:e,done:!0}}for(m.method=w,m.arg=S;;){var V=m.delegate;if(V){var ce=z(V,m);if(ce){if(ce===C)continue;return ce}}if(m.method==="next")m.sent=m._sent=m.arg;else if(m.method==="throw"){if(b===E)throw b=g,m.arg;m.dispatchException(m.arg)}else m.method==="return"&&m.abrupt("return",m.arg);b=_;var ye=A(p,f,m);if(ye.type==="normal"){if(b=m.done?g:h,ye.arg===C)continue;return{value:ye.arg,done:m.done}}ye.type==="throw"&&(b=g,m.method="throw",m.arg=ye.arg)}}}function z(p,f){var m=f.method,b=p.iterator[m];if(b===e)return f.delegate=null,m==="throw"&&p.iterator.return&&(f.method="return",f.arg=e,z(p,f),f.method==="throw")||m!=="return"&&(f.method="throw",f.arg=new TypeError("The iterator does not provide a '"+m+"' method")),C;var w=A(b,p.iterator,f.arg);if(w.type==="throw")return f.method="throw",f.arg=w.arg,f.delegate=null,C;var S=w.arg;return S?S.done?(f[p.resultName]=S.value,f.next=p.nextLoc,f.method!=="return"&&(f.method="next",f.arg=e),f.delegate=null,C):S:(f.method="throw",f.arg=new TypeError("iterator result is not an object"),f.delegate=null,C)}function R(p){var f={tryLoc:p[0]};1 in p&&(f.catchLoc=p[1]),2 in p&&(f.finallyLoc=p[2],f.afterLoc=p[3]),this.tryEntries.push(f)}function K(p){var f=p.completion||{};f.type="normal",delete f.arg,p.completion=f}function ee(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(R,this),this.reset(!0)}function oe(p){if(p||p===""){var f=p[u];if(f)return f.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var m=-1,b=function w(){for(;++m=0;--w){var S=this.tryEntries[w],V=S.completion;if(S.tryLoc==="root")return b("end");if(S.tryLoc<=this.prev){var ce=n.call(S,"catchLoc"),ye=n.call(S,"finallyLoc");if(ce&&ye){if(this.prev=0;--b){var w=this.tryEntries[b];if(w.tryLoc<=this.prev&&n.call(w,"finallyLoc")&&this.prev=0;--m){var b=this.tryEntries[m];if(b.finallyLoc===f)return this.complete(b.completion,b.afterLoc),K(b),C}},catch:function(f){for(var m=this.tryEntries.length-1;m>=0;--m){var b=this.tryEntries[m];if(b.tryLoc===f){var w=b.completion;if(w.type==="throw"){var S=w.arg;K(b)}return S}}throw new Error("illegal catch attempt")},delegateYield:function(f,m,b){return this.delegate={iterator:oe(f),resultName:m,nextLoc:b},this.method==="next"&&(this.arg=e),C}},t}function Gf(e,t,r,n,o,a,u){try{var c=e[a](u),l=c.value}catch(s){r(s);return}c.done?t(l):Promise.resolve(l).then(n,o)}function $E(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function u(l){Gf(a,n,o,u,c,"next",l)}function c(l){Gf(a,n,o,u,c,"throw",l)}u(void 0)})}}var Kf=function(){var e=$E(pl().mark(function t(r){var n,o,a,u,c;return pl().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(n=r.name,o=n.substring(0,n.lastIndexOf(".")),a=n.substring(n.lastIndexOf(".")+1),a!=="zip"){s.next=18;break}return s.prev=4,s.next=7,XE(r);case 7:return c=s.sent,s.next=10,ZE(c,o,(0,je.getUniqueId)());case 10:u=s.sent,s.next=16;break;case 13:return s.prev=13,s.t0=s.catch(4),s.abrupt("return",Promise.reject(s.t0));case 16:s.next=34;break;case 18:if(s.prev=18,!["xlsx","xls"].includes(a)){s.next=25;break}return s.next=22,QE(r,o,(0,je.getUniqueId)());case 22:u=s.sent,s.next=29;break;case 25:if(!["csv","geojson","json"].includes(a)){s.next=29;break}return s.next=28,KE(r,o,(0,je.getUniqueId)());case 28:u=s.sent;case 29:s.next=34;break;case 31:return s.prev=31,s.t1=s.catch(18),s.abrupt("return",Promise.reject("\u6587\u4EF6\u89E3\u6790\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u6587\u4EF6\u683C\u5F0F\u3002"));case 34:return s.abrupt("return",u);case 35:case"end":return s.stop()}},t,null,[[4,13],[18,31]])}));return function(r){return e.apply(this,arguments)}}();function ja(e){"@babel/helpers - typeof";return ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ja(e)}function yl(){"use strict";yl=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(p,f,m){p[f]=m.value},a=typeof Symbol=="function"?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(p,f,m){return Object.defineProperty(p,f,{value:m,enumerable:!0,configurable:!0,writable:!0}),p[f]}try{s({},"")}catch(p){s=function(m,b,w){return m[b]=w}}function y(p,f,m,b){var w=f&&f.prototype instanceof x?f:x,S=Object.create(w.prototype),V=new ee(b||[]);return o(S,"_invoke",{value:W(p,m,V)}),S}function A(p,f,m){try{return{type:"normal",arg:p.call(f,m)}}catch(b){return{type:"throw",arg:b}}}t.wrap=y;var E="suspendedStart",h="suspendedYield",_="executing",g="completed",C={};function x(){}function j(){}function D(){}var F={};s(F,u,function(){return this});var L=Object.getPrototypeOf,k=L&&L(L(oe([])));k&&k!==r&&n.call(k,u)&&(F=k);var Y=D.prototype=x.prototype=Object.create(F);function Z(p){["next","throw","return"].forEach(function(f){s(p,f,function(m){return this._invoke(f,m)})})}function B(p,f){function m(w,S,V,ce){var ye=A(p[w],p,S);if(ye.type!=="throw"){var Te=ye.arg,Fe=Te.value;return Fe&&ja(Fe)=="object"&&n.call(Fe,"__await")?f.resolve(Fe.__await).then(function(ke){m("next",ke,V,ce)},function(ke){m("throw",ke,V,ce)}):f.resolve(Fe).then(function(ke){Te.value=ke,V(Te)},function(ke){return m("throw",ke,V,ce)})}ce(ye.arg)}var b;o(this,"_invoke",{value:function(S,V){function ce(){return new f(function(ye,Te){m(S,V,ye,Te)})}return b=b?b.then(ce,ce):ce()}})}function W(p,f,m){var b=E;return function(w,S){if(b===_)throw new Error("Generator is already running");if(b===g){if(w==="throw")throw S;return{value:e,done:!0}}for(m.method=w,m.arg=S;;){var V=m.delegate;if(V){var ce=z(V,m);if(ce){if(ce===C)continue;return ce}}if(m.method==="next")m.sent=m._sent=m.arg;else if(m.method==="throw"){if(b===E)throw b=g,m.arg;m.dispatchException(m.arg)}else m.method==="return"&&m.abrupt("return",m.arg);b=_;var ye=A(p,f,m);if(ye.type==="normal"){if(b=m.done?g:h,ye.arg===C)continue;return{value:ye.arg,done:m.done}}ye.type==="throw"&&(b=g,m.method="throw",m.arg=ye.arg)}}}function z(p,f){var m=f.method,b=p.iterator[m];if(b===e)return f.delegate=null,m==="throw"&&p.iterator.return&&(f.method="return",f.arg=e,z(p,f),f.method==="throw")||m!=="return"&&(f.method="throw",f.arg=new TypeError("The iterator does not provide a '"+m+"' method")),C;var w=A(b,p.iterator,f.arg);if(w.type==="throw")return f.method="throw",f.arg=w.arg,f.delegate=null,C;var S=w.arg;return S?S.done?(f[p.resultName]=S.value,f.next=p.nextLoc,f.method!=="return"&&(f.method="next",f.arg=e),f.delegate=null,C):S:(f.method="throw",f.arg=new TypeError("iterator result is not an object"),f.delegate=null,C)}function R(p){var f={tryLoc:p[0]};1 in p&&(f.catchLoc=p[1]),2 in p&&(f.finallyLoc=p[2],f.afterLoc=p[3]),this.tryEntries.push(f)}function K(p){var f=p.completion||{};f.type="normal",delete f.arg,p.completion=f}function ee(p){this.tryEntries=[{tryLoc:"root"}],p.forEach(R,this),this.reset(!0)}function oe(p){if(p||p===""){var f=p[u];if(f)return f.call(p);if(typeof p.next=="function")return p;if(!isNaN(p.length)){var m=-1,b=function w(){for(;++m=0;--w){var S=this.tryEntries[w],V=S.completion;if(S.tryLoc==="root")return b("end");if(S.tryLoc<=this.prev){var ce=n.call(S,"catchLoc"),ye=n.call(S,"finallyLoc");if(ce&&ye){if(this.prev=0;--b){var w=this.tryEntries[b];if(w.tryLoc<=this.prev&&n.call(w,"finallyLoc")&&this.prev=0;--m){var b=this.tryEntries[m];if(b.finallyLoc===f)return this.complete(b.completion,b.afterLoc),K(b),C}},catch:function(f){for(var m=this.tryEntries.length-1;m>=0;--m){var b=this.tryEntries[m];if(b.tryLoc===f){var w=b.completion;if(w.type==="throw"){var S=w.arg;K(b)}return S}}throw new Error("illegal catch attempt")},delegateYield:function(f,m,b){return this.delegate={iterator:oe(f),resultName:m,nextLoc:b},this.method==="next"&&(this.arg=e),C}},t}function Qf(e,t,r,n,o,a,u){try{var c=e[a](u),l=c.value}catch(s){r(s);return}c.done?t(l):Promise.resolve(l).then(n,o)}function eA(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function u(l){Qf(a,n,o,u,c,"next",l)}function c(l){Qf(a,n,o,u,c,"throw",l)}u(void 0)})}}function dl(e,t){return oA(e)||nA(e,t)||rA(e,t)||tA()}function tA(){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 rA(e,t){if(e){if(typeof e=="string")return Zf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zf(e,t)}}function Zf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r20?i().createElement(P.Tooltip,{title:E.metadata.description},E.metadata.description):E.metadata.description,g=E.metadata.icon?i().createElement(me(),{component:E.metadata.icon}):i().createElement(M.GroupOutlined,null);return i().createElement(P.Card,{bodyStyle:{overflow:"hidden",padding:0},key:E.metadata.name,className:I()("".concat(a,"__content-item"),u.contentItem,hm(hm({},u.contentItemSelected,s.includes(E.metadata.name)),"".concat(a,"__content-item_selected"),s.includes(E.metadata.name)))},i().createElement("div",{onClick:function(){return A(E)},className:I()("".concat(a,"__content-item-content"),u.itemContent)},i().createElement("div",{className:I()("".concat(a,"__content-item-content__img"),u.itemContentImg)},g),i().createElement("div",{className:I()("".concat(a,"__content-item-content__info"),u.itemContentInfo)},i().createElement("div",{className:I()("".concat(a,"__content-item-content__info-title"),u.itemContentInfoTitle)},E.metadata.displayName),i().createElement("div",{className:I()("".concat(a,"__content-item-content__info-description"),u.itemContentInfoDescription)},_)),s.includes(E.metadata.name)&&i().createElement("div",{className:I()("".concat(a,"__content-item-selected"),u.itemContentSelected)},i().createElement(M.CheckOutlined,null))))}))},wA=AA;function io(e){"@babel/helpers - typeof";return io=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},io(e)}function _m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function lo(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r ",`-collapse-content-box { + padding: 10px 0; + } + `])),r,r,r,r),widgetGroup:(0,G.iv)(Am||(Am=xa([` + & + & { + margin-top: 20px; + } + `]))),widgetGroupTitle:(0,G.iv)(wm||(wm=xa([` + margin-bottom: 0; + padding-bottom: 10px; + color: `,`; + font-weight: 400; + font-size: 14px; + `])),n),panel:(0,G.iv)(Pm||(Pm=xa([` + `,`-collapse-header { + padding: 6px 13px !important; + overflow: hidden; + background-color: `,` !important; + border: 1px solid `,` !important; + border-radius: `,`px !important; + + `,`-collapse-extra { + cursor: pointer !important; + } + } + `])),r,o,a,u,r)}},Im=kA,YA=function(t,r){var n=(0,N.useRef)(),o=(0,N.useMemo)(function(){var a=t.filter(function(c){return c.id!==r});if(n.current)if(a.length===n.current.length){var u=(0,ne.isEqual)(a.map(function(c){return(0,ne.omit)(c,"properties")}),n.current.map(function(c){return(0,ne.omit)(c,"properties")}));u||(n.current=a)}else n.current=a;else n.current=a;return n.current},[r,t]);return o},WA=[{value:"topleft",label:"\u5DE6\u4E0A(\u7EB5\u5411)"},{value:"lefttop",label:"\u5DE6\u4E0A(\u6A2A\u5411)"},{value:"topright",label:"\u53F3\u4E0A(\u7EB5\u5411)"},{value:"righttop",label:"\u53F3\u4E0A(\u6A2A\u5411)"},{value:"bottomleft",label:"\u5DE6\u4E0B(\u7EB5\u5411)"},{value:"leftbottom",label:"\u5DE6\u4E0B(\u6A2A\u5411)"},{value:"bottomright",label:"\u53F3\u4E0B(\u7EB5\u5411)"},{value:"rightbottom",label:"\u53F3\u4E0B(\u6A2A\u5411)"}],HA=["options"];function _l(){return _l=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function UA(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}var VA=function(t){var r=t.options,n=zA(t,HA);return i().createElement(P.Select,_l({},n,{options:r!=null?r:WA}))},GA=VA;function uo(e){"@babel/helpers - typeof";return uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uo(e)}function jm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function KA(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cw(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a=0)&&(r[o]=e[o]);return r}var sw=function(t){var r=t.options,n=t.value,o=t.type,a=uw(t,nw),u=(0,Je.F)("formily-time-granularity-select"),c=rw(u),l=Dm(c,2),s=l[0],y=l[1],A=(0,N.useState)(n),E=Dm(A,2),h=E[0],_=E[1],g=(0,N.useMemo)(function(){return r!=null&&r.length?r:$A(o)},[r,o]);(0,N.useEffect)(function(){var x,j=h&&g.find(function(F){return F.value===h});if(!(j||(0,ne.isUndefined)(o))){var D=g.length>1?g[1].value:g[0].value;_(D),(x=t.onChange)===null||x===void 0||x.call(t,D,g)}},[g,o]);var C=function(j){var D;_(j),(D=t.onChange)===null||D===void 0||D.call(t,j,g)};return s(i().createElement(P.Select,Ol({value:h},a,{popupClassName:I()("".concat(u),y),options:g,onChange:C})))},fw=sw;function so(e){"@babel/helpers - typeof";return so=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},so(e)}function Fm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Lm(e){for(var t=1;t=",value:void 0};return u},El=[{label:"\u79D2",value:"YYYY-MM-DD HH:mm:ss",other:"YYYY/MM/DD HH:mm:ss",otherLabel:"\u79D2",granularity:"second"},{label:"\u5206\u949F",value:"YYYY-MM-DD HH:mm",other:"YYYY/MM/DD HH:mm",otherLabel:"\u5206\u949F",granularity:"minute"},{label:"\u5C0F\u65F6",value:"YYYY-MM-DD HH",other:"YYYY/MM/DD HH",otherLabel:"\u5C0F\u65F6",granularity:"hour"},{label:"\u65E5",value:"YYYY-MM-DD",other:"YYYY/MM/DD",otherLabel:"\u65E5",granularity:"day",picker:"date"},{label:"\u6708",value:"YYYY-MM",other:"YYYY/MM",otherLabel:"\u6708",granularity:"month",picker:"month"},{label:"\u5E74",value:"YYYY",other:"YYYY",otherLabel:"\u5E74",granularity:"year",picker:"year"}],bw={"YYYY/MM/DD HH:mm:ss":{format:"YYYY/MM/DD HH:mm:ss",granularity:"second"},"YYYY-MM-DD HH:mm:ss":{format:"YYYY-MM-DD HH:mm:ss",granularity:"second"},"YYYY/MM/DD HH:mm":{format:"YYYY/MM/DD HH:mm:ss",granularity:"minute"},"YYYY-MM-DD HH:mm":{format:"YYYY-MM-DD HH:mm:ss",granularity:"minute"},"YYYY/MM/DD HH":{format:"YYYY/MM/DD HH:mm:ss",granularity:"hour"},"YYYY-MM-DD HH":{format:"YYYY-MM-DD HH:mm:ss",granularity:"hour"},"YYYY/MM/DD":{format:"YYYY/MM/DD HH:mm:ss",granularity:"day"},"YYYY-MM-DD":{format:"YYYY-MM-DD HH:mm:ss",granularity:"day"},"YYYY/MM":{format:"YYYY/MM/DD HH:mm:ss",granularity:"month"},"YYYY-MM":{format:"YYYY-MM-DD HH:mm:ss",granularity:"month"},YYYY:{format:"YYYY-MM-DD HH:mm:ss",granularity:"year"}},jr=function(t,r){var n=bw[r],o=typeof t=="string"?pt()(t).format(r):[pt()(t[0]).format(r),pt()(t[1]).format(r)];if(n){if(typeof o=="string"){var a=[pt()(o).format(n.format),pt()(o).endOf(n.granularity).format(n.format)];return a}var u=[pt()(o[0]).format(n.format),pt()(o[1]).endOf(n.granularity).format(n.format)];return u}},hw=function(t){var r=t.indexOf("/")===-1,n=El.map(function(o){return{picker:o.picker,granularity:o.granularity,label:r?o.label:o.otherLabel,value:r?o.value:o.other,key:r?o.value:o.other}});return n};function fo(e){"@babel/helpers - typeof";return fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fo(e)}function Nm(e,t,r){return t=Sw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sw(e){var t=_w(e,"string");return fo(t)=="symbol"?t:String(t)}function _w(e,t){if(fo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(fo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cw=(0,qe.l)("filter-setting-date",function(e){var t=e.componentCls,r=e.antCls,n=e.colorPrimary,o=e.colorPrimaryHover,a=e.colorTextDescription;return Nm(Nm({},t,{display:"flex"}),"".concat(t,"__item"),{marginRight:"10px","&__info":{color:n,"&:hover":{color:o}}})});function mo(e){"@babel/helpers - typeof";return mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mo(e)}function Mm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ar(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r="?E([r,null]):n==="<="&&E([null,r]):E(r))},[r]);var h=function(g){var C=Hm(g,2),x=C[0],j=C[1];E(g),x?j?x="):l(j||void 0,"<=")};return i().createElement("div",null,i().createElement(P.InputNumber,{placeholder:"\u6700\u5C0F\u503C",bordered:c,size:a,value:A[0],onChange:function(g){return h([g,A[1]])}}),i().createElement("span",{style:{margin:"0 10px"}},"-"),i().createElement(P.InputNumber,{placeholder:"\u6700\u5927\u503C",bordered:c,size:a,value:A[1],onChange:function(g){return h([A[0],g])}}))},qw=Jw;function vo(e){"@babel/helpers - typeof";return vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vo(e)}function Xw(e,t,r){return t=$w(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $w(e){var t=eP(e,"string");return vo(t)=="symbol"?t:String(t)}function eP(e,t){if(vo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(vo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tP=(0,qe.l)("filter-setting-modal-number-item",function(e){var t=e.componentCls,r=e.colorText;return Xw({},t,{"&__filter":{marginBottom:"8px"},"&__field":{fontSize:"12px",fontWeight:700,color:r,height:"20px",lineHeight:"20px",marginBottom:"8px"}})});function go(e){"@babel/helpers - typeof";return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},go(e)}function Um(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Vm(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);rpe.length)&&(ae=pe.length);for(var se=0,ve=new Array(ae);sea.length)&&(n=a.length);for(var e=0,o=new Array(n);e1){var i=(0,_.jm)(t.x,t.y,t.aggregation,e,t.split);A(i),p(i)}else B()},[e,d]),(0,K.YP)(t,function(){if(t.x&&t.y&&e.length>1){var i=(0,_.jm)(t.x,t.y,t.aggregation,e,t.split);A(i),p(i)}else B()});var y=function(s,E){t[s]=E},U=t.x&&t.y;return r().createElement("div",{className:"chartContainer"},g&&r().createElement("div",{className:"settings"},r().createElement("div",{className:"item"},r().createElement(C.Z,{label:"X\u8F74",value:t.x,onChange:function(s){y("x",s)},columns:u}),r().createElement(C.Z,{label:r().createElement("div",{className:"splitLabel"},r().createElement("div",null,"Y\u8F74"),r().createElement(W.Z,{value:t.aggregation,onChange:function(s){y("aggregation",s)}})),value:t.y,onChange:function(s){y("y",s)},columns:u}),r().createElement(C.Z,{label:"\u62C6\u5206",value:t.split,onChange:function(s){y("split",s)},columns:u}))),r().createElement("div",{className:T()("content",{empty:!U})},U?r().createElement("div",{id:o,className:"g2Container"}):r().createElement(M.Empty,null)))};D.default=r().memo(V)}}]); diff --git a/781.84da0ba1.async.js b/781.84da0ba1.async.js new file mode 100644 index 00000000..8bfe1396 --- /dev/null +++ b/781.84da0ba1.async.js @@ -0,0 +1,337 @@ +(self.webpackChunk_antv_li_website=self.webpackChunk_antv_li_website||[]).push([[781],{80052:function(ti,On,rt){"use strict";var Ve=rt(47165),Ce=/rgba?\(([\s.,0-9]+)\)/,lt=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,oe=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,fr=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,re=function(Gt){return/^[r,R,L,l]{1}[\s]*\(/.test(Gt)},ie=function(){var Gt=document.createElement("i");return Gt.title="Web Colour Picker",Gt.style.display="none",document.body.appendChild(Gt),Gt},Nt=function(Gt,tr,ar,Tt){return Gt[Tt]+(tr[Tt]-Gt[Tt])*ar};function Rt(Gt){return"#"+Ft(Gt[0])+Ft(Gt[1])+Ft(Gt[2])}var rr=function(Gt){return[parseInt(Gt.substr(1,2),16),parseInt(Gt.substr(3,2),16),parseInt(Gt.substr(5,2),16)]},Ft=function(Gt){var tr=Math.round(Gt).toString(16);return tr.length===1?"0"+tr:tr},Dt=function(Gt,tr){var ar=isNaN(Number(tr))||tr<0?0:tr>1?1:Number(tr),Tt=Gt.length-1,Ct=Math.floor(Tt*ar),nr=Tt*ar-Ct,It=Gt[Ct],Bt=Ct===Tt?It:Gt[Ct+1];return Rt([Nt(It,Bt,nr,0),Nt(It,Bt,nr,1),Nt(It,Bt,nr,2)])},U,D=function(Gt){if(Gt[0]==="#"&&Gt.length===7)return Gt;U||(U=ie()),U.style.color=Gt;var tr=document.defaultView.getComputedStyle(U,"").getPropertyValue("color"),ar=Ce.exec(tr),Tt=ar[1].split(/\s*,\s*/).map(function(Ct){return Number(Ct)});return tr=Rt(Tt),tr},Pt=function(Gt){var tr=(0,Ve.HD)(Gt)?Gt.split("-"):Gt,ar=(0,Ve.UI)(tr,function(Tt){return rr(Tt.indexOf("#")===-1?D(Tt):Tt)});return function(Tt){return Dt(ar,Tt)}},ot=function(Gt){if(re(Gt)){var tr,ar=void 0;if(Gt[0]==="l"){var Tt=lt.exec(Gt),Ct=+Tt[1]+90;ar=Tt[2],tr="linear-gradient("+Ct+"deg, "}else if(Gt[0]==="r"){tr="radial-gradient(";var Tt=oe.exec(Gt);ar=Tt[4]}var nr=ar.match(fr);return(0,Ve.S6)(nr,function(It,Bt){var Ir=It.split(":");tr+=Ir[1]+" "+Ir[0]*100+"%",Bt!==nr.length-1&&(tr+=", ")}),tr+=")",tr}return Gt};On.Z={rgb2arr:rr,gradient:Pt,toRGB:(0,Ve.HP)(D),toCSSGradient:ot}},22680:function(ti,On,rt){"use strict";var Ve=rt(85556),Ce=rt(75262),lt=rt(37898),oe=function(fr){(0,Ve.ZT)(re,fr);function re(ie){var Nt=fr.call(this)||this;Nt.destroyed=!1;var Rt=Nt.getDefaultCfg();return Nt.cfg=(0,lt.CD)(Rt,ie),Nt}return re.prototype.getDefaultCfg=function(){return{}},re.prototype.get=function(ie){return this.cfg[ie]},re.prototype.set=function(ie,Nt){this.cfg[ie]=Nt},re.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},re}(Ce.Z);On.Z=oe},59294:function(ti,On,rt){"use strict";rt.d(On,{Z:function(){return Yf}});var Ve=rt(85556),Ce=rt(32655),lt=rt(40023),oe=rt(37898),fr=rt(47165),re=0,ie=0,Nt=0,Rt=1e3,rr,Ft,Dt=0,U=0,D=0,Pt=typeof performance=="object"&&performance.now?performance:Date,ot=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(St){setTimeout(St,17)};function Gt(){return U||(ot(tr),U=Pt.now()+D)}function tr(){U=0}function ar(){this._call=this._time=this._next=null}ar.prototype=Tt.prototype={constructor:ar,restart:function(St,Be,bt){if(typeof St!="function")throw new TypeError("callback is not a function");bt=(bt==null?Gt():+bt)+(Be==null?0:+Be),!this._next&&Ft!==this&&(Ft?Ft._next=this:rr=this,Ft=this),this._call=St,this._time=bt,Ir()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ir())}};function Tt(St,Be,bt){var Qt=new ar;return Qt.restart(St,Be,bt),Qt}function Ct(){Gt(),++re;for(var St=rr,Be;St;)(Be=U-St._time)>=0&&St._call.call(null,Be),St=St._next;--re}function nr(){U=(Dt=Pt.now())+D,re=ie=0;try{Ct()}finally{re=0,Bt(),U=0}}function It(){var St=Pt.now(),Be=St-Dt;Be>Rt&&(D-=Be,Dt=St)}function Bt(){for(var St,Be=rr,bt,Qt=1/0;Be;)Be._call?(Qt>Be._time&&(Qt=Be._time),St=Be,Be=Be._next):(bt=Be._next,Be._next=null,Be=St?St._next=bt:rr=bt);Ft=St,Ir(Qt)}function Ir(St){if(!re){ie&&(ie=clearTimeout(ie));var Be=St-U;Be>24?(St<1/0&&(ie=setTimeout(nr,St-Pt.now()-D)),Nt&&(Nt=clearInterval(Nt))):(Nt||(Dt=Pt.now(),Nt=setInterval(It,Rt)),re=1,ot(nr))}}var yr=rt(58335);function Xr(St,Be,bt){St.prototype=Be.prototype=bt,bt.constructor=St}function Tr(St,Be){var bt=Object.create(St.prototype);for(var Qt in Be)bt[Qt]=Be[Qt];return bt}function fn(){}var jn=.7,ai=1/jn,ri="\\s*([+-]?\\d+)\\s*",ze="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Et="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Pr=/^#([0-9a-f]{3,8})$/,zt=new RegExp("^rgb\\(".concat(ri,",").concat(ri,",").concat(ri,"\\)$")),Vt=new RegExp("^rgb\\(".concat(Et,",").concat(Et,",").concat(Et,"\\)$")),ir=new RegExp("^rgba\\(".concat(ri,",").concat(ri,",").concat(ri,",").concat(ze,"\\)$")),be=new RegExp("^rgba\\(".concat(Et,",").concat(Et,",").concat(Et,",").concat(ze,"\\)$")),Oe=new RegExp("^hsl\\(".concat(ze,",").concat(Et,",").concat(Et,"\\)$")),Re=new RegExp("^hsla\\(".concat(ze,",").concat(Et,",").concat(Et,",").concat(ze,"\\)$")),Ie={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};Xr(fn,fe,{copy:function(Be){return Object.assign(new this.constructor,this,Be)},displayable:function(){return this.rgb().displayable()},hex:ct,formatHex:ct,formatHex8:qt,formatHsl:et,formatRgb:mt,toString:mt});function ct(){return this.rgb().formatHex()}function qt(){return this.rgb().formatHex8()}function et(){return tt(this).formatHsl()}function mt(){return this.rgb().formatRgb()}function fe(St){var Be,bt;return St=(St+"").trim().toLowerCase(),(Be=Pr.exec(St))?(bt=Be[1].length,Be=parseInt(Be[1],16),bt===6?pt(Be):bt===3?new cr(Be>>8&15|Be>>4&240,Be>>4&15|Be&240,(Be&15)<<4|Be&15,1):bt===8?wt(Be>>24&255,Be>>16&255,Be>>8&255,(Be&255)/255):bt===4?wt(Be>>12&15|Be>>8&240,Be>>8&15|Be>>4&240,Be>>4&15|Be&240,((Be&15)<<4|Be&15)/255):null):(Be=zt.exec(St))?new cr(Be[1],Be[2],Be[3],1):(Be=Vt.exec(St))?new cr(Be[1]*255/100,Be[2]*255/100,Be[3]*255/100,1):(Be=ir.exec(St))?wt(Be[1],Be[2],Be[3],Be[4]):(Be=be.exec(St))?wt(Be[1]*255/100,Be[2]*255/100,Be[3]*255/100,Be[4]):(Be=Oe.exec(St))?Jr(Be[1],Be[2]/100,Be[3]/100,1):(Be=Re.exec(St))?Jr(Be[1],Be[2]/100,Be[3]/100,Be[4]):Ie.hasOwnProperty(St)?pt(Ie[St]):St==="transparent"?new cr(NaN,NaN,NaN,0):null}function pt(St){return new cr(St>>16&255,St>>8&255,St&255,1)}function wt(St,Be,bt,Qt){return Qt<=0&&(St=Be=bt=NaN),new cr(St,Be,bt,Qt)}function er(St){return St instanceof fn||(St=fe(St)),St?(St=St.rgb(),new cr(St.r,St.g,St.b,St.opacity)):new cr}function Lt(St,Be,bt,Qt){return arguments.length===1?er(St):new cr(St,Be,bt,Qt==null?1:Qt)}function cr(St,Be,bt,Qt){this.r=+St,this.g=+Be,this.b=+bt,this.opacity=+Qt}Xr(cr,Lt,Tr(fn,{brighter:function(Be){return Be=Be==null?ai:Math.pow(ai,Be),new cr(this.r*Be,this.g*Be,this.b*Be,this.opacity)},darker:function(Be){return Be=Be==null?jn:Math.pow(jn,Be),new cr(this.r*Be,this.g*Be,this.b*Be,this.opacity)},rgb:function(){return this},clamp:function(){return new cr(Xn(this.r),Xn(this.g),Xn(this.b),cn(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:dr,formatHex:dr,formatHex8:jr,formatRgb:vn,toString:vn}));function dr(){return"#".concat(un(this.r)).concat(un(this.g)).concat(un(this.b))}function jr(){return"#".concat(un(this.r)).concat(un(this.g)).concat(un(this.b)).concat(un((isNaN(this.opacity)?1:this.opacity)*255))}function vn(){var St=cn(this.opacity);return"".concat(St===1?"rgb(":"rgba(").concat(Xn(this.r),", ").concat(Xn(this.g),", ").concat(Xn(this.b)).concat(St===1?")":", ".concat(St,")"))}function cn(St){return isNaN(St)?1:Math.max(0,Math.min(1,St))}function Xn(St){return Math.max(0,Math.min(255,Math.round(St)||0))}function un(St){return St=Xn(St),(St<16?"0":"")+St.toString(16)}function Jr(St,Be,bt,Qt){return Qt<=0?St=Be=bt=NaN:bt<=0||bt>=1?St=Be=NaN:Be<=0&&(St=NaN),new ve(St,Be,bt,Qt)}function tt(St){if(St instanceof ve)return new ve(St.h,St.s,St.l,St.opacity);if(St instanceof fn||(St=fe(St)),!St)return new ve;if(St instanceof ve)return St;St=St.rgb();var Be=St.r/255,bt=St.g/255,Qt=St.b/255,Mr=Math.min(Be,bt,Qt),an=Math.max(Be,bt,Qt),wn=NaN,gn=an-Mr,Mi=(an+Mr)/2;return gn?(Be===an?wn=(bt-Qt)/gn+(bt0&&Mi<1?0:wn,new ve(wn,gn,Mi,St.opacity)}function de(St,Be,bt,Qt){return arguments.length===1?tt(St):new ve(St,Be,bt,Qt==null?1:Qt)}function ve(St,Be,bt,Qt){this.h=+St,this.s=+Be,this.l=+bt,this.opacity=+Qt}Xr(ve,de,Tr(fn,{brighter:function(Be){return Be=Be==null?ai:Math.pow(ai,Be),new ve(this.h,this.s,this.l*Be,this.opacity)},darker:function(Be){return Be=Be==null?jn:Math.pow(jn,Be),new ve(this.h,this.s,this.l*Be,this.opacity)},rgb:function(){var Be=this.h%360+(this.h<0)*360,bt=isNaN(Be)||isNaN(this.s)?0:this.s,Qt=this.l,Mr=Qt+(Qt<.5?Qt:1-Qt)*bt,an=2*Qt-Mr;return new cr(xe(Be>=240?Be-240:Be+120,an,Mr),xe(Be,an,Mr),xe(Be<120?Be+240:Be-120,an,Mr),this.opacity)},clamp:function(){return new ve(ce(this.h),we(this.s),we(this.l),cn(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 Be=cn(this.opacity);return"".concat(Be===1?"hsl(":"hsla(").concat(ce(this.h),", ").concat(we(this.s)*100,"%, ").concat(we(this.l)*100,"%").concat(Be===1?")":", ".concat(Be,")"))}}));function ce(St){return St=(St||0)%360,St<0?St+360:St}function we(St){return Math.max(0,Math.min(1,St||0))}function xe(St,Be,bt){return(St<60?Be+(bt-Be)*St/60:St<180?bt:St<240?Be+(bt-Be)*(240-St)/60:Be)*255}function ke(St,Be,bt,Qt,Mr){var an=St*St,wn=an*St;return((1-3*St+3*an-wn)*Be+(4-6*an+3*wn)*bt+(1+3*St+3*an-3*wn)*Qt+wn*Mr)/6}function Te(St){var Be=St.length-1;return function(bt){var Qt=bt<=0?bt=0:bt>=1?(bt=1,Be-1):Math.floor(bt*Be),Mr=St[Qt],an=St[Qt+1],wn=Qt>0?St[Qt-1]:2*Mr-an,gn=Qt180||bt<-180?bt-360*Math.round(bt/360):bt):constant(isNaN(St)?Be:St)}function vr(St){return(St=+St)==1?Gr:function(Be,bt){return bt-Be?Yt(Be,bt,St):xt(isNaN(Be)?bt:Be)}}function Gr(St,Be){var bt=Be-St;return bt?Ht(St,bt):xt(isNaN(St)?Be:St)}var Zt=function St(Be){var bt=vr(Be);function Qt(Mr,an){var wn=bt((Mr=Lt(Mr)).r,(an=Lt(an)).r),gn=bt(Mr.g,an.g),Mi=bt(Mr.b,an.b),Ba=Gr(Mr.opacity,an.opacity);return function(Wo){return Mr.r=wn(Wo),Mr.g=gn(Wo),Mr.b=Mi(Wo),Mr.opacity=Ba(Wo),Mr+""}}return Qt.gamma=St,Qt}(1);function Nr(St){return function(Be){var bt=Be.length,Qt=new Array(bt),Mr=new Array(bt),an=new Array(bt),wn,gn;for(wn=0;wnbt&&(an=Be.slice(bt,an),gn[wn]?gn[wn]+=an:gn[++wn]=an),(Qt=Qt[0])===(Mr=Mr[0])?gn[wn]?gn[wn]+=Mr:gn[++wn]=Mr:(gn[++wn]=null,Mi.push({i:wn,x:ba(Qt,Mr)})),bt=Ur.lastIndex;return btBa.length?(Mi=oa.parsePathString(an[gn]),Ba=oa.parsePathString(Mr[gn]),Ba=oa.fillPathByDiff(Ba,Mi),Ba=oa.formatPath(Ba,Mi),Be.fromAttrs.path=Ba,Be.toAttrs.path=Mi):Be.pathFormatted||(Mi=oa.parsePathString(an[gn]),Ba=oa.parsePathString(Mr[gn]),Ba=oa.formatPath(Ba,Mi),Be.fromAttrs.path=Ba,Be.toAttrs.path=Mi,Be.pathFormatted=!0),Qt[gn]=[];for(var Wo=0;Wo0){for(var gn=Be.animators.length-1;gn>=0;gn--){if(Qt=Be.animators[gn],Qt.destroyed){Be.removeAnimator(gn);continue}if(!Qt.isAnimatePaused()){Mr=Qt.get("animations");for(var Mi=Mr.length-1;Mi>=0;Mi--)an=Mr[Mi],bt=ys(Qt,an,wn),bt&&(Mr.splice(Mi,1),bt=!1,an.callback&&an.callback())}Mr.length===0&&Be.removeAnimator(gn)}var Ba=Be.canvas.get("autoDraw");Ba||Be.canvas.draw()}})},St.prototype.addAnimator=function(Be){this.animators.push(Be)},St.prototype.removeAnimator=function(Be){this.animators.splice(Be,1)},St.prototype.isAnimating=function(){return!!this.animators.length},St.prototype.stop=function(){this.timer&&this.timer.stop()},St.prototype.stopAllAnimations=function(Be){Be===void 0&&(Be=!0),this.animators.forEach(function(bt){bt.stopAnimate(Be)}),this.animators=[],this.canvas.draw()},St.prototype.getTime=function(){return this.current},St}(),Qs=al,Du=rt(64727),Uf=40,Lu=0,Js=":",Cs=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function bs(St,Be){for(var bt in St)if(St.hasOwnProperty(bt)&&bt.indexOf(Js+Be)>=0)return!0;return!1}function kh(St,Be,bt){bt.name=Be,bt.target=St,bt.currentTarget=St,bt.delegateTarget=St,St.emit(Be,bt)}function pf(St,Be,bt){if(bt.bubbles){var Qt=void 0,Mr=!1;if(Be==="mouseenter"?(Qt=bt.fromShape,Mr=!0):Be==="mouseleave"&&(Mr=!0,Qt=bt.toShape),St.isCanvas()&&Mr)return;if(Qt&&(0,oe.UY)(St,Qt)){bt.bubbles=!1;return}bt.name=Be,bt.currentTarget=St,bt.delegateTarget=St,St.emit(Be,bt)}}var la=function(){function St(Be){var bt=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(Qt){var Mr=Qt.type;bt._triggerEvent(Mr,Qt)},this._onDocumentMove=function(Qt){var Mr=bt.canvas,an=Mr.get("el");if(an!==Qt.target&&(bt.dragging||bt.currentShape)){var wn=bt._getPointInfo(Qt);bt.dragging&&bt._emitEvent("drag",Qt,wn,bt.draggingShape)}},this._onDocumentMouseUp=function(Qt){var Mr=bt.canvas,an=Mr.get("el");if(an!==Qt.target&&bt.dragging){var wn=bt._getPointInfo(Qt);bt.draggingShape&&bt._emitEvent("drop",Qt,wn,null),bt._emitEvent("dragend",Qt,wn,bt.draggingShape),bt._afterDrag(bt.draggingShape,wn,Qt)}},this.canvas=Be.canvas}return St.prototype.init=function(){this._bindEvents()},St.prototype._bindEvents=function(){var Be=this,bt=this.canvas.get("el");(0,oe.S6)(Cs,function(Qt){bt.addEventListener(Qt,Be._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},St.prototype._clearEvents=function(){var Be=this,bt=this.canvas.get("el");(0,oe.S6)(Cs,function(Qt){bt.removeEventListener(Qt,Be._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},St.prototype._getEventObj=function(Be,bt,Qt,Mr,an,wn){var gn=new Du.Z(Be,bt);return gn.fromShape=an,gn.toShape=wn,gn.x=Qt.x,gn.y=Qt.y,gn.clientX=Qt.clientX,gn.clientY=Qt.clientY,gn.propagationPath.push(Mr),gn},St.prototype._getShape=function(Be,bt){return this.canvas.getShape(Be.x,Be.y,bt)},St.prototype._getPointInfo=function(Be){var bt=this.canvas,Qt=bt.getClientByEvent(Be),Mr=bt.getPointByEvent(Be);return{x:Mr.x,y:Mr.y,clientX:Qt.x,clientY:Qt.y}},St.prototype._triggerEvent=function(Be,bt){var Qt=this._getPointInfo(bt),Mr=this._getShape(Qt,bt),an=this["_on"+Be],wn=!1;if(an)an.call(this,Qt,Mr,bt);else{var gn=this.currentShape;Be==="mouseenter"||Be==="dragenter"||Be==="mouseover"?(this._emitEvent(Be,bt,Qt,null,null,Mr),Mr&&this._emitEvent(Be,bt,Qt,Mr,null,Mr),Be==="mouseenter"&&this.draggingShape&&this._emitEvent("dragenter",bt,Qt,null)):Be==="mouseleave"||Be==="dragleave"||Be==="mouseout"?(wn=!0,gn&&this._emitEvent(Be,bt,Qt,gn,gn,null),this._emitEvent(Be,bt,Qt,null,gn,null),Be==="mouseleave"&&this.draggingShape&&this._emitEvent("dragleave",bt,Qt,null)):this._emitEvent(Be,bt,Qt,Mr,null,null)}if(wn||(this.currentShape=Mr),Mr&&!Mr.get("destroyed")){var Mi=this.canvas,Ba=Mi.get("el");Ba.style.cursor=Mr.attr("cursor")||Mi.get("cursor")}},St.prototype._onmousedown=function(Be,bt,Qt){Qt.button===Lu&&(this.mousedownShape=bt,this.mousedownPoint=Be,this.mousedownTimeStamp=Qt.timeStamp),this._emitEvent("mousedown",Qt,Be,bt,null,null)},St.prototype._emitMouseoverEvents=function(Be,bt,Qt,Mr){var an=this.canvas.get("el");Qt!==Mr&&(Qt&&(this._emitEvent("mouseout",Be,bt,Qt,Qt,Mr),this._emitEvent("mouseleave",Be,bt,Qt,Qt,Mr),(!Mr||Mr.get("destroyed"))&&(an.style.cursor=this.canvas.get("cursor"))),Mr&&(this._emitEvent("mouseover",Be,bt,Mr,Qt,Mr),this._emitEvent("mouseenter",Be,bt,Mr,Qt,Mr)))},St.prototype._emitDragoverEvents=function(Be,bt,Qt,Mr,an){Mr?(Mr!==Qt&&(Qt&&this._emitEvent("dragleave",Be,bt,Qt,Qt,Mr),this._emitEvent("dragenter",Be,bt,Mr,Qt,Mr)),an||this._emitEvent("dragover",Be,bt,Mr)):Qt&&this._emitEvent("dragleave",Be,bt,Qt,Qt,Mr),an&&this._emitEvent("dragover",Be,bt,Mr)},St.prototype._afterDrag=function(Be,bt,Qt){Be&&(Be.set("capture",!0),this.draggingShape=null),this.dragging=!1;var Mr=this._getShape(bt,Qt);Mr!==Be&&this._emitMouseoverEvents(Qt,bt,Be,Mr),this.currentShape=Mr},St.prototype._onmouseup=function(Be,bt,Qt){if(Qt.button===Lu){var Mr=this.draggingShape;this.dragging?(Mr&&this._emitEvent("drop",Qt,Be,bt),this._emitEvent("dragend",Qt,Be,Mr),this._afterDrag(Mr,Be,Qt)):(this._emitEvent("mouseup",Qt,Be,bt),bt===this.mousedownShape&&this._emitEvent("click",Qt,Be,bt),this.mousedownShape=null,this.mousedownPoint=null)}},St.prototype._ondragover=function(Be,bt,Qt){Qt.preventDefault();var Mr=this.currentShape;this._emitDragoverEvents(Qt,Be,Mr,bt,!0)},St.prototype._onmousemove=function(Be,bt,Qt){var Mr=this.canvas,an=this.currentShape,wn=this.draggingShape;if(this.dragging)wn&&this._emitDragoverEvents(Qt,Be,an,bt,!1),this._emitEvent("drag",Qt,Be,wn);else{var gn=this.mousedownPoint;if(gn){var Mi=this.mousedownShape,Ba=Qt.timeStamp,Wo=Ba-this.mousedownTimeStamp,ol=gn.clientX-Be.clientX,Ps=gn.clientY-Be.clientY,ho=ol*ol+Ps*Ps;Wo>120||ho>Uf?Mi&&Mi.get("draggable")?(wn=this.mousedownShape,wn.set("capture",!1),this.draggingShape=wn,this.dragging=!0,this._emitEvent("dragstart",Qt,Be,wn),this.mousedownShape=null,this.mousedownPoint=null):!Mi&&Mr.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",Qt,Be,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(Qt,Be,an,bt),this._emitEvent("mousemove",Qt,Be,bt)):(this._emitMouseoverEvents(Qt,Be,an,bt),this._emitEvent("mousemove",Qt,Be,bt))}else this._emitMouseoverEvents(Qt,Be,an,bt),this._emitEvent("mousemove",Qt,Be,bt)}},St.prototype._emitEvent=function(Be,bt,Qt,Mr,an,wn){var gn=this._getEventObj(Be,bt,Qt,Mr,an,wn);if(Mr){gn.shape=Mr,kh(Mr,Be,gn);for(var Mi=Mr.getParent();Mi;)Mi.emitDelegation(Be,gn),gn.propagationStopped||pf(Mi,Be,gn),gn.propagationPath.push(Mi),Mi=Mi.getParent()}else{var Ba=this.canvas;kh(Ba,Be,gn)}},St.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},St}(),ea=la,hc="px",Rl=(0,Ce.qY)(),Kl=Rl&&Rl.name==="firefox",Nc=function(St){(0,Ve.ZT)(Be,St);function Be(bt){var Qt=St.call(this,bt)||this;return Qt.initContainer(),Qt.initDom(),Qt.initEvents(),Qt.initTimeline(),Qt}return Be.prototype.getDefaultCfg=function(){var bt=St.prototype.getDefaultCfg.call(this);return bt.cursor="default",bt.supportCSSTransform=!1,bt},Be.prototype.initContainer=function(){var bt=this.get("container");(0,oe.HD)(bt)&&(bt=document.getElementById(bt),this.set("container",bt))},Be.prototype.initDom=function(){var bt=this.createDom();this.set("el",bt);var Qt=this.get("container");Qt.appendChild(bt),this.setDOMSize(this.get("width"),this.get("height"))},Be.prototype.initEvents=function(){var bt=new ea({canvas:this});bt.init(),this.set("eventController",bt)},Be.prototype.initTimeline=function(){var bt=new Qs(this);this.set("timeline",bt)},Be.prototype.setDOMSize=function(bt,Qt){var Mr=this.get("el");oe.jU&&(Mr.style.width=bt+hc,Mr.style.height=Qt+hc)},Be.prototype.changeSize=function(bt,Qt){this.setDOMSize(bt,Qt),this.set("width",bt),this.set("height",Qt),this.onCanvasChange("changeSize")},Be.prototype.getRenderer=function(){return this.get("renderer")},Be.prototype.getCursor=function(){return this.get("cursor")},Be.prototype.setCursor=function(bt){this.set("cursor",bt);var Qt=this.get("el");oe.jU&&Qt&&(Qt.style.cursor=bt)},Be.prototype.getPointByEvent=function(bt){var Qt=this.get("supportCSSTransform");if(Qt){if(Kl&&!(0,oe.kK)(bt.layerX)&&bt.layerX!==bt.offsetX)return{x:bt.layerX,y:bt.layerY};if(!(0,oe.kK)(bt.offsetX))return{x:bt.offsetX,y:bt.offsetY}}var Mr=this.getClientByEvent(bt),an=Mr.x,wn=Mr.y;return this.getPointByClient(an,wn)},Be.prototype.getClientByEvent=function(bt){var Qt=bt;return bt.touches&&(bt.type==="touchend"?Qt=bt.changedTouches[0]:Qt=bt.touches[0]),{x:Qt.clientX,y:Qt.clientY}},Be.prototype.getPointByClient=function(bt,Qt){var Mr=this.get("el"),an=Mr.getBoundingClientRect();return{x:bt-an.left,y:Qt-an.top}},Be.prototype.getClientByPoint=function(bt,Qt){var Mr=this.get("el"),an=Mr.getBoundingClientRect();return{x:bt+an.left,y:Qt+an.top}},Be.prototype.draw=function(){},Be.prototype.removeDom=function(){var bt=this.get("el");bt.parentNode.removeChild(bt)},Be.prototype.clearEvents=function(){var bt=this.get("eventController");bt.destroy()},Be.prototype.isCanvas=function(){return!0},Be.prototype.getParent=function(){return null},Be.prototype.destroy=function(){var bt=this.get("timeline");this.get("destroyed")||(this.clear(),bt&&bt.stop(),this.clearEvents(),this.removeDom(),St.prototype.destroy.call(this))},Be}(lt.Z),Yf=Nc},40023:function(ti,On,rt){"use strict";var Ve=rt(85556),Ce=rt(32494),lt=rt(37898),oe={},fr="_INDEX";function re(Dt,U){if(Dt.set("canvas",U),Dt.isGroup()){var D=Dt.get("children");D.length&&D.forEach(function(Pt){re(Pt,U)})}}function ie(Dt,U){if(Dt.set("timeline",U),Dt.isGroup()){var D=Dt.get("children");D.length&&D.forEach(function(Pt){ie(Pt,U)})}}function Nt(Dt,U){var D=Dt.getChildren();return D.indexOf(U)>=0}function Rt(Dt,U,D){D===void 0&&(D=!0),D?U.destroy():(U.set("parent",null),U.set("canvas",null)),(0,lt.As)(Dt.getChildren(),U)}function rr(Dt){return function(U,D){var Pt=Dt(U,D);return Pt===0?U[fr]-D[fr]:Pt}}var Ft=function(Dt){(0,Ve.ZT)(U,Dt);function U(){return Dt!==null&&Dt.apply(this,arguments)||this}return U.prototype.isCanvas=function(){return!1},U.prototype.getBBox=function(){var D=1/0,Pt=-1/0,ot=1/0,Gt=-1/0,tr=this.getChildren().filter(function(Tt){return Tt.get("visible")&&(!Tt.isGroup()||Tt.isGroup()&&Tt.getChildren().length>0)});tr.length>0?(0,lt.S6)(tr,function(Tt){var Ct=Tt.getBBox(),nr=Ct.minX,It=Ct.maxX,Bt=Ct.minY,Ir=Ct.maxY;nrPt&&(Pt=It),BtGt&&(Gt=Ir)}):(D=0,Pt=0,ot=0,Gt=0);var ar={x:D,y:ot,minX:D,minY:ot,maxX:Pt,maxY:Gt,width:Pt-D,height:Gt-ot};return ar},U.prototype.getCanvasBBox=function(){var D=1/0,Pt=-1/0,ot=1/0,Gt=-1/0,tr=this.getChildren().filter(function(Tt){return Tt.get("visible")&&(!Tt.isGroup()||Tt.isGroup()&&Tt.getChildren().length>0)});tr.length>0?(0,lt.S6)(tr,function(Tt){var Ct=Tt.getCanvasBBox(),nr=Ct.minX,It=Ct.maxX,Bt=Ct.minY,Ir=Ct.maxY;nrPt&&(Pt=It),BtGt&&(Gt=Ir)}):(D=0,Pt=0,ot=0,Gt=0);var ar={x:D,y:ot,minX:D,minY:ot,maxX:Pt,maxY:Gt,width:Pt-D,height:Gt-ot};return ar},U.prototype.getDefaultCfg=function(){var D=Dt.prototype.getDefaultCfg.call(this);return D.children=[],D},U.prototype.onAttrChange=function(D,Pt,ot){if(Dt.prototype.onAttrChange.call(this,D,Pt,ot),D==="matrix"){var Gt=this.getTotalMatrix();this._applyChildrenMarix(Gt)}},U.prototype.applyMatrix=function(D){var Pt=this.getTotalMatrix();Dt.prototype.applyMatrix.call(this,D);var ot=this.getTotalMatrix();ot!==Pt&&this._applyChildrenMarix(ot)},U.prototype._applyChildrenMarix=function(D){var Pt=this.getChildren();(0,lt.S6)(Pt,function(ot){ot.applyMatrix(D)})},U.prototype.addShape=function(){for(var D=[],Pt=0;Pt=0;ar--){var Tt=D[ar];if((0,lt.pP)(Tt)&&(Tt.isGroup()?tr=Tt.getShape(Pt,ot,Gt):Tt.isHit(Pt,ot)&&(tr=Tt)),tr)break}return tr},U.prototype.add=function(D){var Pt=this.getCanvas(),ot=this.getChildren(),Gt=this.get("timeline"),tr=D.getParent();tr&&Rt(tr,D,!1),D.set("parent",this),Pt&&re(D,Pt),Gt&&ie(D,Gt),ot.push(D),D.onCanvasChange("add"),this._applyElementMatrix(D)},U.prototype._applyElementMatrix=function(D){var Pt=this.getTotalMatrix();Pt&&D.applyMatrix(Pt)},U.prototype.getChildren=function(){return this.get("children")||[]},U.prototype.sort=function(){var D=this.getChildren();(0,lt.S6)(D,function(Pt,ot){return Pt[fr]=ot,Pt}),D.sort(rr(function(Pt,ot){return Pt.get("zIndex")-ot.get("zIndex")})),this.onCanvasChange("sort")},U.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var D=this.getChildren(),Pt=D.length-1;Pt>=0;Pt--)D[Pt].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},U.prototype.destroy=function(){this.get("destroyed")||(this.clear(),Dt.prototype.destroy.call(this))},U.prototype.getFirst=function(){return this.getChildByIndex(0)},U.prototype.getLast=function(){var D=this.getChildren();return this.getChildByIndex(D.length-1)},U.prototype.getChildByIndex=function(D){var Pt=this.getChildren();return Pt[D]},U.prototype.getCount=function(){var D=this.getChildren();return D.length},U.prototype.contain=function(D){var Pt=this.getChildren();return Pt.indexOf(D)>-1},U.prototype.removeChild=function(D,Pt){Pt===void 0&&(Pt=!0),this.contain(D)&&D.remove(Pt)},U.prototype.findAll=function(D){var Pt=[],ot=this.getChildren();return(0,lt.S6)(ot,function(Gt){D(Gt)&&Pt.push(Gt),Gt.isGroup()&&(Pt=Pt.concat(Gt.findAll(D)))}),Pt},U.prototype.find=function(D){var Pt=null,ot=this.getChildren();return(0,lt.S6)(ot,function(Gt){if(D(Gt)?Pt=Gt:Gt.isGroup()&&(Pt=Gt.find(D)),Pt)return!1}),Pt},U.prototype.findById=function(D){return this.find(function(Pt){return Pt.get("id")===D})},U.prototype.findByClassName=function(D){return this.find(function(Pt){return Pt.get("className")===D})},U.prototype.findAllByName=function(D){return this.findAll(function(Pt){return Pt.get("name")===D})},U}(Ce.Z);On.Z=Ft},32494:function(ti,On,rt){"use strict";var Ve=rt(85556),Ce=rt(47165),lt=rt(73432),oe=rt(37898),fr=rt(92615),re=rt(22680),ie=lt.vs,Nt="matrix",Rt=["zIndex","capture","visible","type"],rr=["repeat"],Ft=":",Dt="*";function U(tr){for(var ar=[],Tt=0;TtBt.delay&&(0,Ce.S6)(ar.toAttrs,function(Ir,yr){It.call(Bt.toAttrs,yr)&&(delete Bt.toAttrs[yr],delete Bt.fromAttrs[yr])})}),tr}var Gt=function(tr){(0,Ve.ZT)(ar,tr);function ar(Tt){var Ct=tr.call(this,Tt)||this;Ct.attrs={};var nr=Ct.getDefaultAttrs();return(0,Ce.CD)(nr,Tt.attrs),Ct.attrs=nr,Ct.initAttrs(nr),Ct.initAnimate(),Ct}return ar.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},ar.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},ar.prototype.onCanvasChange=function(Tt){},ar.prototype.initAttrs=function(Tt){},ar.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},ar.prototype.isGroup=function(){return!1},ar.prototype.getParent=function(){return this.get("parent")},ar.prototype.getCanvas=function(){return this.get("canvas")},ar.prototype.attr=function(){for(var Tt,Ct=[],nr=0;nr0?It=ot(It,ir):nr.addAnimator(this),It.push(ir),this.set("animations",It),this.set("_pause",{isPaused:!1})}},ar.prototype.stopAnimate=function(Tt){var Ct=this;Tt===void 0&&(Tt=!0);var nr=this.get("animations");(0,Ce.S6)(nr,function(It){Tt&&(It.onFrame?Ct.attr(It.onFrame(1)):Ct.attr(It.toAttrs)),It.callback&&It.callback()}),this.set("animating",!1),this.set("animations",[])},ar.prototype.pauseAnimate=function(){var Tt=this.get("timeline"),Ct=this.get("animations"),nr=Tt.getTime();return(0,Ce.S6)(Ct,function(It){It._paused=!0,It._pauseTime=nr,It.pauseCallback&&It.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:nr}),this},ar.prototype.resumeAnimate=function(){var Tt=this.get("timeline"),Ct=Tt.getTime(),nr=this.get("animations"),It=this.get("_pause").pauseTime;return(0,Ce.S6)(nr,function(Bt){Bt.startTime=Bt.startTime+(Ct-It),Bt._paused=!1,Bt._pauseTime=null,Bt.resumeCallback&&Bt.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",nr),this},ar.prototype.emitDelegation=function(Tt,Ct){var nr=this,It=Ct.propagationPath,Bt=this.getEvents(),Ir;Tt==="mouseenter"?Ir=Ct.fromShape:Tt==="mouseleave"&&(Ir=Ct.toShape);for(var yr=function(jn){var ai=It[jn],ri=ai.get("name");if(ri){if((ai.isGroup()||ai.isCanvas&&ai.isCanvas())&&Ir&&(0,oe.UY)(ai,Ir))return"break";(0,Ce.kJ)(ri)?(0,Ce.S6)(ri,function(ze){nr.emitDelegateEvent(ai,ze,Ct)}):Xr.emitDelegateEvent(ai,ri,Ct)}},Xr=this,Tr=0;Tr=ie&&Rt.minY<=Nt&&Rt.maxY>=Nt},re.prototype.afterAttrsChange=function(ie){fr.prototype.afterAttrsChange.call(this,ie),this.clearCacheBBox()},re.prototype.getBBox=function(){var ie=this.cfg.bbox;return ie||(ie=this.calculateBBox(),this.set("bbox",ie)),ie},re.prototype.getCanvasBBox=function(){var ie=this.cfg.canvasBBox;return ie||(ie=this.calculateCanvasBBox(),this.set("canvasBBox",ie)),ie},re.prototype.applyMatrix=function(ie){fr.prototype.applyMatrix.call(this,ie),this.set("canvasBBox",null)},re.prototype.calculateCanvasBBox=function(){var ie=this.getBBox(),Nt=this.getTotalMatrix(),Rt=ie.minX,rr=ie.minY,Ft=ie.maxX,Dt=ie.maxY;if(Nt){var U=(0,lt.rG)(Nt,[ie.minX,ie.minY]),D=(0,lt.rG)(Nt,[ie.maxX,ie.minY]),Pt=(0,lt.rG)(Nt,[ie.minX,ie.maxY]),ot=(0,lt.rG)(Nt,[ie.maxX,ie.maxY]);Rt=Math.min(U[0],D[0],Pt[0],ot[0]),Ft=Math.max(U[0],D[0],Pt[0],ot[0]),rr=Math.min(U[1],D[1],Pt[1],ot[1]),Dt=Math.max(U[1],D[1],Pt[1],ot[1])}var Gt=this.attrs;if(Gt.shadowColor){var tr=Gt.shadowBlur,ar=tr===void 0?0:tr,Tt=Gt.shadowOffsetX,Ct=Tt===void 0?0:Tt,nr=Gt.shadowOffsetY,It=nr===void 0?0:nr,Bt=Rt-ar+Ct,Ir=Ft+ar+Ct,yr=rr-ar+It,Xr=Dt+ar+It;Rt=Math.min(Rt,Bt),Ft=Math.max(Ft,Ir),rr=Math.min(rr,yr),Dt=Math.max(Dt,Xr)}return{x:Rt,y:rr,minX:Rt,minY:rr,maxX:Ft,maxY:Dt,width:Ft-Rt,height:Dt-rr}},re.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},re.prototype.isClipShape=function(){return this.get("isClipShape")},re.prototype.isInShape=function(ie,Nt){return!1},re.prototype.isOnlyHitBox=function(){return!1},re.prototype.isHit=function(ie,Nt){var Rt=this.get("startArrowShape"),rr=this.get("endArrowShape"),Ft=[ie,Nt,1];Ft=this.invertFromMatrix(Ft);var Dt=Ft[0],U=Ft[1],D=this._isInBBox(Dt,U);return this.isOnlyHitBox()?D:!!(D&&!this.isClipped(Dt,U)&&(this.isInShape(Dt,U)||Rt&&Rt.isHit(Dt,U)||rr&&rr.isHit(Dt,U)))},re}(Ce.Z);On.Z=oe},71055:function(ti,On,rt){"use strict";rt.d(On,{_:function(){return wt},C:function(){return er}});var Ve={};rt.r(Ve),rt.d(Ve,{easeBack:function(){return Re},easeBackIn:function(){return be},easeBackInOut:function(){return Re},easeBackOut:function(){return Oe},easeBounce:function(){return zt},easeBounceIn:function(){return Pr},easeBounceInOut:function(){return Vt},easeBounceOut:function(){return zt},easeCircle:function(){return Bt},easeCircleIn:function(){return nr},easeCircleInOut:function(){return Bt},easeCircleOut:function(){return It},easeCubic:function(){return Nt},easeCubicIn:function(){return re},easeCubicInOut:function(){return Nt},easeCubicOut:function(){return ie},easeElastic:function(){return mt},easeElasticIn:function(){return et},easeElasticInOut:function(){return fe},easeElasticOut:function(){return mt},easeExp:function(){return Ct},easeExpIn:function(){return ar},easeExpInOut:function(){return Ct},easeExpOut:function(){return Tt},easeLinear:function(){return Ce},easePoly:function(){return Dt},easePolyIn:function(){return rr},easePolyInOut:function(){return Dt},easePolyOut:function(){return Ft},easeQuad:function(){return fr},easeQuadIn:function(){return lt},easeQuadInOut:function(){return fr},easeQuadOut:function(){return oe},easeSin:function(){return Gt},easeSinIn:function(){return Pt},easeSinInOut:function(){return Gt},easeSinOut:function(){return ot}});function Ce(Lt){return+Lt}function lt(Lt){return Lt*Lt}function oe(Lt){return Lt*(2-Lt)}function fr(Lt){return((Lt*=2)<=1?Lt*Lt:--Lt*(2-Lt)+1)/2}function re(Lt){return Lt*Lt*Lt}function ie(Lt){return--Lt*Lt*Lt+1}function Nt(Lt){return((Lt*=2)<=1?Lt*Lt*Lt:(Lt-=2)*Lt*Lt+2)/2}var Rt=3,rr=function Lt(cr){cr=+cr;function dr(jr){return Math.pow(jr,cr)}return dr.exponent=Lt,dr}(Rt),Ft=function Lt(cr){cr=+cr;function dr(jr){return 1-Math.pow(1-jr,cr)}return dr.exponent=Lt,dr}(Rt),Dt=function Lt(cr){cr=+cr;function dr(jr){return((jr*=2)<=1?Math.pow(jr,cr):2-Math.pow(2-jr,cr))/2}return dr.exponent=Lt,dr}(Rt),U=Math.PI,D=U/2;function Pt(Lt){return+Lt==1?1:1-Math.cos(Lt*D)}function ot(Lt){return Math.sin(Lt*D)}function Gt(Lt){return(1-Math.cos(U*Lt))/2}function tr(Lt){return(Math.pow(2,-10*Lt)-.0009765625)*1.0009775171065494}function ar(Lt){return tr(1-+Lt)}function Tt(Lt){return 1-tr(Lt)}function Ct(Lt){return((Lt*=2)<=1?tr(1-Lt):2-tr(Lt-1))/2}function nr(Lt){return 1-Math.sqrt(1-Lt*Lt)}function It(Lt){return Math.sqrt(1- --Lt*Lt)}function Bt(Lt){return((Lt*=2)<=1?1-Math.sqrt(1-Lt*Lt):Math.sqrt(1-(Lt-=2)*Lt)+1)/2}var Ir=4/11,yr=6/11,Xr=8/11,Tr=3/4,fn=9/11,jn=10/11,ai=15/16,ri=21/22,ze=63/64,Et=1/Ir/Ir;function Pr(Lt){return 1-zt(1-Lt)}function zt(Lt){return(Lt=+Lt)st?ie(ce,we,xe,ke):this.pointToLine(de,ve,ce,we,xe,ke)},pointToLine:function(de,ve,ce,we,xe,ke){var Te=[ce-de,we-ve];if(Dt.I6(Te,[0,0]))return Math.sqrt((xe-de)*(xe-de)+(ke-ve)*(ke-ve));var st=[-Te[1],Te[0]];Dt.Fv(st,st);var xt=[xe-de,ke-ve];return Math.abs(Dt.AK(xt,st))},tangentAngle:function(de,ve,ce,we){return Math.atan2(we-ve,ce-de)}},D=1e-4;function Pt(de,ve,ce,we,xe,ke){var Te,st=1/0,xt=[ce,we],Ht=20;ke&&ke>200&&(Ht=ke/10);for(var Yt=1/Ht,lr=Yt/10,vr=0;vr<=Ht;vr++){var Gr=vr*Yt,Zt=[xe.apply(null,de.concat([Gr])),xe.apply(null,ve.concat([Gr]))],Nr=ie(xt[0],xt[1],Zt[0],Zt[1]);Nr=0&&Nr=0?[xe]:[]}function ar(de,ve,ce,we){return 2*(1-we)*(ve-de)+2*we*(ce-ve)}function Tt(de,ve,ce,we,xe,ke,Te){var st=Gt(de,ce,xe,Te),xt=Gt(ve,we,ke,Te),Ht=U.pointAt(de,ve,ce,we,Te),Yt=U.pointAt(ce,we,xe,ke,Te);return[[de,ve,Ht.x,Ht.y,st,xt],[st,xt,Yt.x,Yt.y,xe,ke]]}function Ct(de,ve,ce,we,xe,ke,Te){if(Te===0)return(ie(de,ve,ce,we)+ie(ce,we,xe,ke)+ie(de,ve,xe,ke))/2;var st=Tt(de,ve,ce,we,xe,ke,.5),xt=st[0],Ht=st[1];return xt.push(Te-1),Ht.push(Te-1),Ct.apply(null,xt)+Ct.apply(null,Ht)}var nr={box:function(de,ve,ce,we,xe,ke){var Te=tr(de,ce,xe)[0],st=tr(ve,we,ke)[0],xt=[de,xe],Ht=[ve,ke];return Te!==void 0&&xt.push(Gt(de,ce,xe,Te)),st!==void 0&&Ht.push(Gt(ve,we,ke,st)),Rt(xt,Ht)},length:function(de,ve,ce,we,xe,ke){return Ct(de,ve,ce,we,xe,ke,3)},nearestPoint:function(de,ve,ce,we,xe,ke,Te,st){return Pt([de,ce,xe],[ve,we,ke],Te,st,Gt)},pointDistance:function(de,ve,ce,we,xe,ke,Te,st){var xt=this.nearestPoint(de,ve,ce,we,xe,ke,Te,st);return ie(xt.x,xt.y,Te,st)},interpolationAt:Gt,pointAt:function(de,ve,ce,we,xe,ke,Te){return{x:Gt(de,ce,xe,Te),y:Gt(ve,we,ke,Te)}},divide:function(de,ve,ce,we,xe,ke,Te){return Tt(de,ve,ce,we,xe,ke,Te)},tangentAngle:function(de,ve,ce,we,xe,ke,Te){var st=ar(de,ce,xe,Te),xt=ar(ve,we,ke,Te),Ht=Math.atan2(xt,st);return Ft(Ht)}};function It(de,ve,ce,we,xe){var ke=1-xe;return ke*ke*ke*de+3*ve*xe*ke*ke+3*ce*xe*xe*ke+we*xe*xe*xe}function Bt(de,ve,ce,we,xe){var ke=1-xe;return 3*(ke*ke*(ve-de)+2*ke*xe*(ce-ve)+xe*xe*(we-ce))}function Ir(de,ve,ce,we){var xe=-3*de+9*ve-9*ce+3*we,ke=6*de-12*ve+6*ce,Te=3*ve-3*de,st=[],xt,Ht,Yt;if(Nt(xe,0))Nt(ke,0)||(xt=-Te/ke,xt>=0&&xt<=1&&st.push(xt));else{var lr=ke*ke-4*xe*Te;Nt(lr,0)?st.push(-ke/(2*xe)):lr>0&&(Yt=Math.sqrt(lr),xt=(-ke+Yt)/(2*xe),Ht=(-ke-Yt)/(2*xe),xt>=0&&xt<=1&&st.push(xt),Ht>=0&&Ht<=1&&st.push(Ht))}return st}function yr(de,ve,ce,we,xe,ke,Te,st,xt){var Ht=It(de,ce,xe,Te,xt),Yt=It(ve,we,ke,st,xt),lr=U.pointAt(de,ve,ce,we,xt),vr=U.pointAt(ce,we,xe,ke,xt),Gr=U.pointAt(xe,ke,Te,st,xt),Zt=U.pointAt(lr.x,lr.y,vr.x,vr.y,xt),Nr=U.pointAt(vr.x,vr.y,Gr.x,Gr.y,xt);return[[de,ve,lr.x,lr.y,Zt.x,Zt.y,Ht,Yt],[Ht,Yt,Nr.x,Nr.y,Gr.x,Gr.y,Te,st]]}function Xr(de,ve,ce,we,xe,ke,Te,st,xt){if(xt===0)return ot([de,ce,xe,Te],[ve,we,ke,st]);var Ht=yr(de,ve,ce,we,xe,ke,Te,st,.5),Yt=Ht[0],lr=Ht[1];return Yt.push(xt-1),lr.push(xt-1),Xr.apply(null,Yt)+Xr.apply(null,lr)}var Tr={extrema:Ir,box:function(de,ve,ce,we,xe,ke,Te,st){for(var xt=[de,Te],Ht=[ve,st],Yt=Ir(de,ce,xe,Te),lr=Ir(ve,we,ke,st),vr=0;vr0?ce:ce*-1}var jn={box:function(de,ve,ce,we){return{x:de-ce,y:ve-we,width:ce*2,height:we*2}},length:function(de,ve,ce,we){return Math.PI*(3*(ce+we)-Math.sqrt((3*ce+we)*(ce+3*we)))},nearestPoint:function(de,ve,ce,we,xe,ke){var Te=ce,st=we;if(Te===0||st===0)return{x:de,y:ve};for(var xt=xe-de,Ht=ke-ve,Yt=Math.abs(xt),lr=Math.abs(Ht),vr=Te*Te,Gr=st*st,Zt=Math.PI/4,Nr,en,Sn=0;Sn<4;Sn++){Nr=Te*Math.cos(Zt),en=st*Math.sin(Zt);var kn=(vr-Gr)*Math.pow(Math.cos(Zt),3)/Te,Sr=(Gr-vr)*Math.pow(Math.sin(Zt),3)/st,qn=Nr-kn,An=en-Sr,vi=Yt-kn,ba=lr-Sr,Ai=Math.hypot(An,qn),Za=Math.hypot(ba,vi),Ur=Ai*Math.asin((qn*ba-An*vi)/(Ai*Za)),ni=Ur/Math.sqrt(vr+Gr-Nr*Nr-en*en);Zt+=ni,Zt=Math.min(Math.PI/2,Math.max(0,Zt))}return{x:de+fn(Nr,xt),y:ve+fn(en,Ht)}},pointDistance:function(de,ve,ce,we,xe,ke){var Te=this.nearestPoint(de,ve,ce,we,xe,ke);return ie(Te.x,Te.y,xe,ke)},pointAt:function(de,ve,ce,we,xe){var ke=2*Math.PI*xe;return{x:de+ce*Math.cos(ke),y:ve+we*Math.sin(ke)}},tangentAngle:function(de,ve,ce,we,xe){var ke=2*Math.PI*xe,Te=Math.atan2(we*Math.cos(ke),-ce*Math.sin(ke));return Ft(Te)}};function ai(de,ve,ce,we,xe,ke,Te,st){return-1*ce*Math.cos(xe)*Math.sin(st)-we*Math.sin(xe)*Math.cos(st)}function ri(de,ve,ce,we,xe,ke,Te,st){return-1*ce*Math.sin(xe)*Math.sin(st)+we*Math.cos(xe)*Math.cos(st)}function ze(de,ve,ce){return Math.atan(-ve/de*Math.tan(ce))}function Et(de,ve,ce){return Math.atan(ve/(de*Math.tan(ce)))}function Pr(de,ve,ce,we,xe,ke){return ce*Math.cos(xe)*Math.cos(ke)-we*Math.sin(xe)*Math.sin(ke)+de}function zt(de,ve,ce,we,xe,ke){return ce*Math.sin(xe)*Math.cos(ke)+we*Math.cos(xe)*Math.sin(ke)+ve}function Vt(de,ve,ce,we){var xe=Math.atan2(we*de,ce*ve);return(xe+Math.PI*2)%(Math.PI*2)}function ir(de,ve,ce){return{x:de*Math.cos(ce),y:ve*Math.sin(ce)}}function be(de,ve,ce){var we=Math.cos(ce),xe=Math.sin(ce);return[de*we-ve*xe,de*xe+ve*we]}var Oe={box:function(de,ve,ce,we,xe,ke,Te){for(var st=ze(ce,we,xe),xt=1/0,Ht=-1/0,Yt=[ke,Te],lr=-Math.PI*2;lr<=Math.PI*2;lr+=Math.PI){var vr=st+lr;keHt&&(Ht=Gr)}for(var Zt=Et(ce,we,xe),Nr=1/0,en=-1/0,Sn=[ke,Te],lr=-Math.PI*2;lr<=Math.PI*2;lr+=Math.PI){var kn=Zt+lr;keen&&(en=Sr)}return{x:xt,y:Nr,width:Ht-xt,height:en-Nr}},length:function(de,ve,ce,we,xe,ke,Te){},nearestPoint:function(de,ve,ce,we,xe,ke,Te,st,xt){var Ht=be(st-de,xt-ve,-xe),Yt=Ht[0],lr=Ht[1],vr=jn.nearestPoint(0,0,ce,we,Yt,lr),Gr=Vt(ce,we,vr.x,vr.y);GrTe&&(vr=ir(ce,we,Te));var Zt=be(vr.x,vr.y,xe);return{x:Zt[0]+de,y:Zt[1]+ve}},pointDistance:function(de,ve,ce,we,xe,ke,Te,st,xt){var Ht=this.nearestPoint(de,ve,ce,we,st,xt);return ie(Ht.x,Ht.y,st,xt)},pointAt:function(de,ve,ce,we,xe,ke,Te,st){var xt=(Te-ke)*st+ke;return{x:Pr(de,ve,ce,we,xe,xt),y:zt(de,ve,ce,we,xe,xt)}},tangentAngle:function(de,ve,ce,we,xe,ke,Te,st){var xt=(Te-ke)*st+ke,Ht=ai(de,ve,ce,we,xe,ke,Te,xt),Yt=ri(de,ve,ce,we,xe,ke,Te,xt);return Ft(Math.atan2(Yt,Ht))}};function Re(de){for(var ve=0,ce=[],we=0;we1||ve<0||de.length<2)return null;var ce=Re(de),we=ce.segments,xe=ce.totalLength;if(xe===0)return{x:de[0][0],y:de[0][1]};for(var ke=0,Te=null,st=0;st=ke&&ve<=ke+lr){var vr=(ve-ke)/lr;Te=U.pointAt(Ht[0],Ht[1],Yt[0],Yt[1],vr);break}ke+=lr}return Te}function qt(de,ve){if(ve>1||ve<0||de.length<2)return 0;for(var ce=Re(de),we=ce.segments,xe=ce.totalLength,ke=0,Te=0,st=0;st=ke&&ve<=ke+lr){Te=Math.atan2(Yt[1]-Ht[1],Yt[0]-Ht[0]);break}ke+=lr}return Te}function et(de,ve,ce){for(var we=1/0,xe=0;xeMath.PI/2?Math.PI-Ht:Ht,Yt=Yt>Math.PI/2?Math.PI-Yt:Yt;var lr={xExtra:Math.cos(xt/2-Ht)*(ve/2*(1/Math.sin(xt/2)))-ve/2||0,yExtra:Math.cos(Yt-xt/2)*(ve/2*(1/Math.sin(xt/2)))-ve/2||0};return lr}function un(de){var ve=de.attr(),ce=ve.path,we=ve.stroke,xe=we?ve.lineWidth:0,ke=de.get("segments")||(0,vn.zx)(ce),Te=cn(ke,xe),st=Te.x,xt=Te.y,Ht=Te.width,Yt=Te.height,lr={minX:st,minY:xt,maxX:st+Ht,maxY:xt+Yt};return lr=er(de,lr),{x:lr.minX,y:lr.minY,width:lr.maxX-lr.minX,height:lr.maxY-lr.minY}}function Jr(de){var ve=de.attr(),ce=ve.x1,we=ve.y1,xe=ve.x2,ke=ve.y2,Te=Math.min(ce,xe),st=Math.max(ce,xe),xt=Math.min(we,ke),Ht=Math.max(we,ke),Yt={minX:Te,maxX:st,minY:xt,maxY:Ht};return Yt=er(de,Yt),{x:Yt.minX,y:Yt.minY,width:Yt.maxX-Yt.minX,height:Yt.maxY-Yt.minY}}function tt(de){var ve=de.attr(),ce=ve.x,we=ve.y,xe=ve.rx,ke=ve.ry;return{x:ce-xe,y:we-ke,width:xe*2,height:ke*2}}Ce("rect",oe),Ce("image",oe),Ce("circle",fr),Ce("marker",fr),Ce("polyline",Lt),Ce("polygon",cr),Ce("text",jr),Ce("path",un),Ce("line",Jr),Ce("ellipse",tt)},64727:function(ti,On){"use strict";var rt=function(){function Ve(Ce,lt){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=Ce,this.name=Ce,this.originalEvent=lt,this.timeStamp=lt.timeStamp}return Ve.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},Ve.prototype.stopPropagation=function(){this.propagationStopped=!0},Ve.prototype.toString=function(){var Ce=this.type;return"[Event (type="+Ce+")]"},Ve.prototype.save=function(){},Ve.prototype.restore=function(){},Ve}();On.Z=rt},58881:function(ti,On,rt){"use strict";rt.r(On),rt.d(On,{AbstractCanvas:function(){return rr.Z},AbstractGroup:function(){return Ft.Z},AbstractShape:function(){return Dt.Z},Base:function(){return Rt.Z},Event:function(){return Nt.Z},PathUtil:function(){return Ve},assembleFont:function(){return D.$O},getBBoxMethod:function(){return U.b},getOffScreenContext:function(){return Gt.L},getTextHeight:function(){return D.FE},invert:function(){return ot.U_},isAllowCapture:function(){return Pt.pP},multiplyVec2:function(){return ot.rG},registerBBox:function(){return U.W},registerEasing:function(){return tr.C},version:function(){return ar}});var Ve=rt(20939),Ce=rt(64205),lt=rt.n(Ce),ie={};for(var oe in Ce)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(oe)<0&&(ie[oe]=function(Tt){return Ce[Tt]}.bind(0,oe));rt.d(On,ie);var fr=rt(12309),re=rt.n(fr),ie={};for(var oe in fr)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(oe)<0&&(ie[oe]=function(Ct){return fr[Ct]}.bind(0,oe));rt.d(On,ie);var Nt=rt(64727),Rt=rt(22680),rr=rt(59294),Ft=rt(66531),Dt=rt(3649),U=rt(5997),D=rt(6226),Pt=rt(37898),ot=rt(92615),Gt=rt(18554),tr=rt(71055),ar="0.5.11"},12309:function(){},64205:function(){},92615:function(ti,On,rt){"use strict";rt.d(On,{U_:function(){return lt},rG:function(){return Ce},xq:function(){return Ve}});function Ve(oe,fr){var re=[],ie=oe[0],Nt=oe[1],Rt=oe[2],rr=oe[3],Ft=oe[4],Dt=oe[5],U=oe[6],D=oe[7],Pt=oe[8],ot=fr[0],Gt=fr[1],tr=fr[2],ar=fr[3],Tt=fr[4],Ct=fr[5],nr=fr[6],It=fr[7],Bt=fr[8];return re[0]=ot*ie+Gt*rr+tr*U,re[1]=ot*Nt+Gt*Ft+tr*D,re[2]=ot*Rt+Gt*Dt+tr*Pt,re[3]=ar*ie+Tt*rr+Ct*U,re[4]=ar*Nt+Tt*Ft+Ct*D,re[5]=ar*Rt+Tt*Dt+Ct*Pt,re[6]=nr*ie+It*rr+Bt*U,re[7]=nr*Nt+It*Ft+Bt*D,re[8]=nr*Rt+It*Dt+Bt*Pt,re}function Ce(oe,fr){var re=[],ie=fr[0],Nt=fr[1];return re[0]=oe[0]*ie+oe[3]*Nt+oe[6],re[1]=oe[1]*ie+oe[4]*Nt+oe[7],re}function lt(oe){var fr=[],re=oe[0],ie=oe[1],Nt=oe[2],Rt=oe[3],rr=oe[4],Ft=oe[5],Dt=oe[6],U=oe[7],D=oe[8],Pt=D*rr-Ft*U,ot=-D*Rt+Ft*Dt,Gt=U*Rt-rr*Dt,tr=re*Pt+ie*ot+Nt*Gt;return tr?(tr=1/tr,fr[0]=Pt*tr,fr[1]=(-D*ie+Nt*U)*tr,fr[2]=(Ft*ie-Nt*rr)*tr,fr[3]=ot*tr,fr[4]=(D*re-Nt*Dt)*tr,fr[5]=(-Ft*re+Nt*Rt)*tr,fr[6]=Gt*tr,fr[7]=(-U*re+ie*Dt)*tr,fr[8]=(rr*re-ie*Rt)*tr,fr):null}},18554:function(ti,On,rt){"use strict";rt.d(On,{L:function(){return Ce}});var Ve=null;function Ce(){if(!Ve){var lt=document.createElement("canvas");lt.width=1,lt.height=1,Ve=lt.getContext("2d")}return Ve}},20939:function(ti,On,rt){"use strict";rt.r(On),rt.d(On,{catmullRomToBezier:function(){return re},fillPath:function(){return ai},fillPathByDiff:function(){return Pr},formatPath:function(){return ir},intersection:function(){return Xr},parsePathArray:function(){return D},parsePathString:function(){return fr},pathToAbsolute:function(){return Nt},pathToCurve:function(){return Dt},rectPath:function(){return Tt}});var Ve=rt(47165),Ce=` +\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,lt=new RegExp("([a-z])["+Ce+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+Ce+"]*,?["+Ce+"]*)+)","ig"),oe=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+Ce+"]*,?["+Ce+"]*","ig"),fr=function(be){if(!be)return null;if((0,Ve.kJ)(be))return be;var Oe={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},Re=[];return String(be).replace(lt,function(Ie,ct,qt){var et=[],mt=ct.toLowerCase();if(qt.replace(oe,function(fe,pt){pt&&et.push(+pt)}),mt==="m"&&et.length>2&&(Re.push([ct].concat(et.splice(0,2))),mt="l",ct=ct==="m"?"l":"L"),mt==="o"&&et.length===1&&Re.push([ct,et[0]]),mt==="r")Re.push([ct].concat(et));else for(;et.length>=Oe[mt]&&(Re.push([ct].concat(et.splice(0,Oe[mt]))),!!Oe[mt]););return be}),Re},re=function(be,Oe){for(var Re=[],Ie=0,ct=be.length;ct-2*!Oe>Ie;Ie+=2){var qt=[{x:+be[Ie-2],y:+be[Ie-1]},{x:+be[Ie],y:+be[Ie+1]},{x:+be[Ie+2],y:+be[Ie+3]},{x:+be[Ie+4],y:+be[Ie+5]}];Oe?Ie?ct-4===Ie?qt[3]={x:+be[0],y:+be[1]}:ct-2===Ie&&(qt[2]={x:+be[0],y:+be[1]},qt[3]={x:+be[2],y:+be[3]}):qt[0]={x:+be[ct-2],y:+be[ct-1]}:ct-4===Ie?qt[3]=qt[2]:Ie||(qt[0]={x:+be[Ie],y:+be[Ie+1]}),Re.push(["C",(-qt[0].x+6*qt[1].x+qt[2].x)/6,(-qt[0].y+6*qt[1].y+qt[2].y)/6,(qt[1].x+6*qt[2].x-qt[3].x)/6,(qt[1].y+6*qt[2].y-qt[3].y)/6,qt[2].x,qt[2].y])}return Re},ie=function(be,Oe,Re,Ie,ct){var qt=[];if(ct===null&&Ie===null&&(Ie=Re),be=+be,Oe=+Oe,Re=+Re,Ie=+Ie,ct!==null){var et=Math.PI/180,mt=be+Re*Math.cos(-Ie*et),fe=be+Re*Math.cos(-ct*et),pt=Oe+Re*Math.sin(-Ie*et),wt=Oe+Re*Math.sin(-ct*et);qt=[["M",mt,pt],["A",Re,Re,0,+(ct-Ie>180),0,fe,wt]]}else qt=[["M",be,Oe],["m",0,-Ie],["a",Re,Ie,0,1,1,0,2*Ie],["a",Re,Ie,0,1,1,0,-2*Ie],["z"]];return qt},Nt=function(be){if(be=fr(be),!be||!be.length)return[["M",0,0]];var Oe=[],Re=0,Ie=0,ct=0,qt=0,et=0,mt,fe;be[0][0]==="M"&&(Re=+be[0][1],Ie=+be[0][2],ct=Re,qt=Ie,et++,Oe[0]=["M",Re,Ie]);for(var pt=be.length===3&&be[0][0]==="M"&&be[1][0].toUpperCase()==="R"&&be[2][0].toUpperCase()==="Z",wt=void 0,er=void 0,Lt=et,cr=be.length;Lt1&&(tt=Math.sqrt(tt),Re=tt*Re,Ie=tt*Ie);var de=Re*Re,ve=Ie*Ie,ce=(qt===et?-1:1)*Math.sqrt(Math.abs((de*ve-de*Jr*Jr-ve*un*un)/(de*Jr*Jr+ve*un*un)));vn=ce*Re*Jr/Ie+(be+mt)/2,cn=ce*-Ie*un/Re+(Oe+fe)/2,dr=Math.asin(((Oe-cn)/Ie).toFixed(9)),jr=Math.asin(((fe-cn)/Ie).toFixed(9)),dr=bejr&&(dr=dr-Math.PI*2),!et&&jr>dr&&(jr=jr-Math.PI*2)}var we=jr-dr;if(Math.abs(we)>wt){var xe=jr,ke=mt,Te=fe;jr=dr+wt*(et&&jr>dr?1:-1),mt=vn+Re*Math.cos(jr),fe=cn+Ie*Math.sin(jr),Lt=Ft(mt,fe,Re,Ie,ct,0,et,ke,Te,[jr,xe,vn,cn])}we=jr-dr;var st=Math.cos(dr),xt=Math.sin(dr),Ht=Math.cos(jr),Yt=Math.sin(jr),lr=Math.tan(we/4),vr=4/3*Re*lr,Gr=4/3*Ie*lr,Zt=[be,Oe],Nr=[be+vr*xt,Oe-Gr*st],en=[mt+vr*Yt,fe-Gr*Ht],Sn=[mt,fe];if(Nr[0]=2*Zt[0]-Nr[0],Nr[1]=2*Zt[1]-Nr[1],pt)return[Nr,en,Sn].concat(Lt);Lt=[Nr,en,Sn].concat(Lt).join().split(",");for(var kn=[],Sr=0,qn=Lt.length;Sr7){un[Jr].shift();for(var tt=un[Jr];tt.length;)et[Jr]="A",Ie&&(mt[Jr]="A"),un.splice(Jr++,0,["C"].concat(tt.splice(0,6)));un.splice(Jr,1),wt=Math.max(Re.length,Ie&&Ie.length||0)}},cr=function(un,Jr,tt,de,ve){un&&Jr&&un[ve][0]==="M"&&Jr[ve][0]!=="M"&&(Jr.splice(ve,0,["M",de.x,de.y]),tt.bx=0,tt.by=0,tt.x=un[ve][1],tt.y=un[ve][2],wt=Math.max(Re.length,Ie&&Ie.length||0))};wt=Math.max(Re.length,Ie&&Ie.length||0);for(var dr=0;dr1?1:fe<0?0:fe;for(var pt=fe/2,wt=12,er=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],Lt=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],cr=0,dr=0;dr0&&cr<1&&fe.push(cr);continue}var jr=er*er-4*Lt*wt,vn=Math.sqrt(jr);if(!(jr<0)){var cn=(-er+vn)/(2*wt);cn>0&&cn<1&&fe.push(cn);var Xn=(-er-vn)/(2*wt);Xn>0&&Xn<1&&fe.push(Xn)}}for(var un=fe.length,Jr=un,tt;un--;)cr=fe[un],tt=1-cr,pt[0][un]=tt*tt*tt*be+3*tt*tt*cr*Re+3*tt*cr*cr*ct+cr*cr*cr*et,pt[1][un]=tt*tt*tt*Oe+3*tt*tt*cr*Ie+3*tt*cr*cr*qt+cr*cr*cr*mt;return pt[0][Jr]=be,pt[1][Jr]=Oe,pt[0][Jr+1]=et,pt[1][Jr+1]=mt,pt[0].length=pt[1].length=Jr+2,{min:{x:Math.min.apply(0,pt[0]),y:Math.min.apply(0,pt[1])},max:{x:Math.max.apply(0,pt[0]),y:Math.max.apply(0,pt[1])}}},tr=function(be,Oe,Re,Ie,ct,qt,et,mt){if(!(Math.max(be,Re)Math.max(ct,et)||Math.max(Oe,Ie)Math.max(qt,mt))){var fe=(be*Ie-Oe*Re)*(ct-et)-(be-Re)*(ct*mt-qt*et),pt=(be*Ie-Oe*Re)*(qt-mt)-(Oe-Ie)*(ct*mt-qt*et),wt=(be-Re)*(qt-mt)-(Oe-Ie)*(ct-et);if(wt){var er=fe/wt,Lt=pt/wt,cr=+er.toFixed(2),dr=+Lt.toFixed(2);if(!(cr<+Math.min(be,Re).toFixed(2)||cr>+Math.max(be,Re).toFixed(2)||cr<+Math.min(ct,et).toFixed(2)||cr>+Math.max(ct,et).toFixed(2)||dr<+Math.min(Oe,Ie).toFixed(2)||dr>+Math.max(Oe,Ie).toFixed(2)||dr<+Math.min(qt,mt).toFixed(2)||dr>+Math.max(qt,mt).toFixed(2)))return{x:er,y:Lt}}}},ar=function(be,Oe,Re){return Oe>=be.x&&Oe<=be.x+be.width&&Re>=be.y&&Re<=be.y+be.height},Tt=function(be,Oe,Re,Ie,ct){if(ct)return[["M",+be+ +ct,Oe],["l",Re-ct*2,0],["a",ct,ct,0,0,1,ct,ct],["l",0,Ie-ct*2],["a",ct,ct,0,0,1,-ct,ct],["l",ct*2-Re,0],["a",ct,ct,0,0,1,-ct,-ct],["l",0,ct*2-Ie],["a",ct,ct,0,0,1,ct,-ct],["z"]];var qt=[["M",be,Oe],["l",Re,0],["l",0,Ie],["l",-Re,0],["z"]];return qt.parsePathArray=D,qt},Ct=function(be,Oe,Re,Ie){return be===null&&(be=Oe=Re=Ie=0),Oe===null&&(Oe=be.y,Re=be.width,Ie=be.height,be=be.x),{x:be,y:Oe,width:Re,w:Re,height:Ie,h:Ie,x2:be+Re,y2:Oe+Ie,cx:be+Re/2,cy:Oe+Ie/2,r1:Math.min(Re,Ie)/2,r2:Math.max(Re,Ie)/2,r0:Math.sqrt(Re*Re+Ie*Ie)/2,path:Tt(be,Oe,Re,Ie),vb:[be,Oe,Re,Ie].join(" ")}},nr=function(be,Oe){return be=Ct(be),Oe=Ct(Oe),ar(Oe,be.x,be.y)||ar(Oe,be.x2,be.y)||ar(Oe,be.x,be.y2)||ar(Oe,be.x2,be.y2)||ar(be,Oe.x,Oe.y)||ar(be,Oe.x2,Oe.y)||ar(be,Oe.x,Oe.y2)||ar(be,Oe.x2,Oe.y2)||(be.xOe.x||Oe.xbe.x)&&(be.yOe.y||Oe.ybe.y)},It=function(be,Oe,Re,Ie,ct,qt,et,mt){(0,Ve.kJ)(be)||(be=[be,Oe,Re,Ie,ct,qt,et,mt]);var fe=Gt.apply(null,be);return Ct(fe.min.x,fe.min.y,fe.max.x-fe.min.x,fe.max.y-fe.min.y)},Bt=function(be,Oe,Re,Ie,ct,qt,et,mt,fe){var pt=1-fe,wt=Math.pow(pt,3),er=Math.pow(pt,2),Lt=fe*fe,cr=Lt*fe,dr=wt*be+er*3*fe*Re+pt*3*fe*fe*ct+cr*et,jr=wt*Oe+er*3*fe*Ie+pt*3*fe*fe*qt+cr*mt,vn=be+2*fe*(Re-be)+Lt*(ct-2*Re+be),cn=Oe+2*fe*(Ie-Oe)+Lt*(qt-2*Ie+Oe),Xn=Re+2*fe*(ct-Re)+Lt*(et-2*ct+Re),un=Ie+2*fe*(qt-Ie)+Lt*(mt-2*qt+Ie),Jr=pt*be+fe*Re,tt=pt*Oe+fe*Ie,de=pt*ct+fe*et,ve=pt*qt+fe*mt,ce=90-Math.atan2(vn-Xn,cn-un)*180/Math.PI;return{x:dr,y:jr,m:{x:vn,y:cn},n:{x:Xn,y:un},start:{x:Jr,y:tt},end:{x:de,y:ve},alpha:ce}},Ir=function(be,Oe,Re){var Ie=It(be),ct=It(Oe);if(!nr(Ie,ct))return Re?0:[];for(var qt=ot.apply(0,be),et=ot.apply(0,Oe),mt=~~(qt/8),fe=~~(et/8),pt=[],wt=[],er={},Lt=Re?0:[],cr=0;cr=0&&ve<=1&&ce>=0&&ce<=1&&(Re?Lt+=1:Lt.push({x:de.x,y:de.y,t1:ve,t2:ce}))}}return Lt},yr=function(be,Oe,Re){be=Dt(be),Oe=Dt(Oe);for(var Ie,ct,qt,et,mt,fe,pt,wt,er,Lt,cr=Re?0:[],dr=0,jr=be.length;dr=3&&(er.length===3&&Lt.push("Q"),Lt=Lt.concat(er[1])),er.length===2&&Lt.push("L"),Lt=Lt.concat(er[er.length-1]),Lt});return wt}var jn=function(be,Oe,Re){if(Re===1)return[[].concat(be)];var Ie=[];if(Oe[0]==="L"||Oe[0]==="C"||Oe[0]==="Q")Ie=Ie.concat(fn(be,Oe,Re));else{var ct=[].concat(be);ct[0]==="M"&&(ct[0]="L");for(var qt=0;qt<=Re-1;qt++)Ie.push(ct)}return Ie},ai=function(be,Oe){if(be.length===1)return be;var Re=be.length-1,Ie=Oe.length-1,ct=Re/Ie,qt=[];if(be.length===1&&be[0][0]==="M"){for(var et=0;et=0;fe--)et=qt[fe].index,qt[fe].type==="add"?be.splice(et,0,[].concat(be[et])):be.splice(et,1)}Ie=be.length;var er=ct-Ie;if(Ie0)Re=zt(Re,be[Ie-1],1);else{be[Ie]=Oe[Ie];break}be[Ie]=["Q"].concat(Re.reduce(function(ct,qt){return ct.concat(qt)},[]));break;case"T":be[Ie]=["T"].concat(Re[0]);break;case"C":if(Re.length<3)if(Ie>0)Re=zt(Re,be[Ie-1],2);else{be[Ie]=Oe[Ie];break}be[Ie]=["C"].concat(Re.reduce(function(ct,qt){return ct.concat(qt)},[]));break;case"S":if(Re.length<2)if(Ie>0)Re=zt(Re,be[Ie-1],1);else{be[Ie]=Oe[Ie];break}be[Ie]=["S"].concat(Re.reduce(function(ct,qt){return ct.concat(qt)},[]));break;default:be[Ie]=Oe[Ie]}return be}},6226:function(ti,On,rt){"use strict";rt.d(On,{$O:function(){return re},FE:function(){return lt},mY:function(){return fr}});var Ve=rt(37898),Ce=rt(18554);function lt(ie,Nt,Rt){var rr=1;if((0,Ve.HD)(ie)&&(rr=ie.split(` +`).length),rr>1){var Ft=oe(Nt,Rt);return Nt*rr+Ft*(rr-1)}return Nt}function oe(ie,Nt){return Nt?Nt-ie:ie*.14}function fr(ie,Nt){var Rt=(0,Ce.L)(),rr=0;if((0,Ve.kK)(ie)||ie==="")return rr;if(Rt.save(),Rt.font=Nt,(0,Ve.HD)(ie)&&ie.includes(` +`)){var Ft=ie.split(` +`);(0,Ve.S6)(Ft,function(Dt){var U=Rt.measureText(Dt).width;rr]*>/,Et={tr:document.createElement("tbody"),tbody:ai,thead:ai,tfoot:ai,td:ri,th:ri,"*":document.createElement("div")}}function zt(h){ai||Pr();var f=ze.test(h)&&RegExp.$1;(!f||!(f in Et))&&(f="*");var t=Et[f];h=typeof h=="string"?h.replace(/(^\s*)|(\s*$)/g,""):h,t.innerHTML=""+h;var c=t.childNodes[0];return c&&t.contains(c)&&t.removeChild(c),c}function Vt(h,f){if(h)for(var t in f)f.hasOwnProperty(t)&&(h.style[t]=f[t]);return h}function ir(h){var f=getComputedStyle(h);return{width:(h.clientWidth||parseInt(f.width,10))-parseInt(f.paddingLeft,10)-parseInt(f.paddingRight,10),height:(h.clientHeight||parseInt(f.height,10))-parseInt(f.paddingTop,10)-parseInt(f.paddingBottom,10)}}function be(h){return typeof h=="number"&&!isNaN(h)}function Oe(h,f,t,c){var v=t,m=c;if(f){var b=ir(h);v=b.width?b.width:v,m=b.height?b.height:m}return{width:Math.max(be(v)?v:Ir,Ir),height:Math.max(be(m)?m:yr,yr)}}function Re(h){var f=h.parentNode;f&&f.removeChild(h)}var Ie=rt(75262),ct=function(h){(0,U.ZT)(f,h);function f(t){var c=h.call(this)||this;c.destroyed=!1;var v=t.visible,m=v===void 0?!0:v;return c.visible=m,c}return f.prototype.show=function(){var t=this.visible;t||this.changeVisible(!0)},f.prototype.hide=function(){var t=this.visible;t&&this.changeVisible(!1)},f.prototype.destroy=function(){this.off(),this.destroyed=!0},f.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},f}(Ie.Z),qt=ct,et=rt(58881),mt=0,fe=1/2,pt=1/2,wt=.05,er=function(){function h(f){var t=f.xField,c=f.yField,v=f.adjustNames,m=v===void 0?["x","y"]:v,b=f.dimValuesMap;this.adjustNames=m,this.xField=t,this.yField=c,this.dimValuesMap=b}return h.prototype.isAdjust=function(f){return this.adjustNames.indexOf(f)>=0},h.prototype.getAdjustRange=function(f,t,c){var v=this.yField,m=c.indexOf(t),b=c.length,M,A;return!v&&this.isAdjust("y")?(M=0,A=1):b>1?(M=c[m===0?0:m-1],A=c[m===b-1?b-1:m+1],m!==0?M+=(t-M)/2:M-=(A-t)/2,m!==b-1?A-=(A-t)/2:A+=(t-c[b-2])/2):(M=t===0?0:t-.5,A=t===0?1:t+.5),{pre:M,next:A}},h.prototype.adjustData=function(f,t){var c=this,v=this.getDimValues(t);D.S6(f,function(m,b){D.S6(v,function(M,A){c.adjustDim(A,M,m,b)})})},h.prototype.groupData=function(f,t){return D.S6(f,function(c){c[t]===void 0&&(c[t]=mt)}),D.vM(f,t)},h.prototype.adjustDim=function(f,t,c,v){},h.prototype.getDimValues=function(f){var t=this,c=t.xField,v=t.yField,m=D.f0({},this.dimValuesMap),b=[];if(c&&this.isAdjust("x")&&b.push(c),v&&this.isAdjust("y")&&b.push(v),b.forEach(function(A){m&&m[A]||(m[A]=D.I(f,A).sort(function(B,H){return B-H}))}),!v&&this.isAdjust("y")){var M="y";m[M]=[mt,1]}return m},h}(),Lt=er,cr={},dr=function(h){return cr[h.toLowerCase()]},jr=function(h,f){if(dr(h))throw new Error("Adjust type '"+h+"' existed.");cr[h.toLowerCase()]=f},vn=rt(58335);var cn=function(f,t){return cn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var m in v)v.hasOwnProperty(m)&&(c[m]=v[m])},cn(f,t)};function Xn(h,f){cn(h,f);function t(){this.constructor=h}h.prototype=f===null?Object.create(f):(t.prototype=f.prototype,new t)}var un=function(){return un=Object.assign||function(t){for(var c,v=1,m=arguments.length;v=0;M--)(b=h[M])&&(m=(v<3?b(m):v>3?b(f,t,m):b(f,t))||m);return v>3&&m&&Object.defineProperty(f,t,m),m}function de(h,f){return function(t,c){f(t,c,h)}}function ve(h,f){if((typeof Reflect=="undefined"?"undefined":_typeof(Reflect))==="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(h,f)}function ce(h,f,t,c){function v(m){return m instanceof t?m:new t(function(b){b(m)})}return new(t||(t=Promise))(function(m,b){function M(H){try{B(c.next(H))}catch(W){b(W)}}function A(H){try{B(c.throw(H))}catch(W){b(W)}}function B(H){H.done?m(H.value):v(H.value).then(M,A)}B((c=c.apply(h,f||[])).next())})}function we(h,f){var t={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},c,v,m,b;return b={next:M(0),throw:M(1),return:M(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function M(B){return function(H){return A([B,H])}}function A(B){if(c)throw new TypeError("Generator is already executing.");for(;t;)try{if(c=1,v&&(m=B[0]&2?v.return:B[0]?v.throw||((m=v.return)&&m.call(v),0):v.next)&&!(m=m.call(v,B[1])).done)return m;switch(v=0,m&&(B=[B[0]&2,m.value]),B[0]){case 0:case 1:m=B;break;case 4:return t.label++,{value:B[1],done:!1};case 5:t.label++,v=B[1],B=[0];continue;case 7:B=t.ops.pop(),t.trys.pop();continue;default:if(m=t.trys,!(m=m.length>0&&m[m.length-1])&&(B[0]===6||B[0]===2)){t=0;continue}if(B[0]===3&&(!m||B[1]>m[0]&&B[1]=h.length&&(h=void 0),{value:h&&h[c++],done:!h}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")}function st(h,f){var t=typeof Symbol=="function"&&h[Symbol.iterator];if(!t)return h;var c=t.call(h),v,m=[],b;try{for(;(f===void 0||f-- >0)&&!(v=c.next()).done;)m.push(v.value)}catch(M){b={error:M}}finally{try{v&&!v.done&&(t=c.return)&&t.call(c)}finally{if(b)throw b.error}}return m}function xt(){for(var h=[],f=0;f1||M(Y,Q)})})}function M(Y,Q){try{A(c[Y](Q))}catch(te){W(m[0][3],te)}}function A(Y){Y.value instanceof Yt?Promise.resolve(Y.value.v).then(B,H):W(m[0][2],Y)}function B(Y){M("next",Y)}function H(Y){M("throw",Y)}function W(Y,Q){Y(Q),m.shift(),m.length&&M(m[0][0],m[0][1])}}function vr(h){var f,t;return f={},c("next"),c("throw",function(v){throw v}),c("return"),f[Symbol.iterator]=function(){return this},f;function c(v,m){f[v]=h[v]?function(b){return(t=!t)?{value:Yt(h[v](b)),done:v==="return"}:m?m(b):b}:m}}function Gr(h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var f=h[Symbol.asyncIterator],t;return f?f.call(h):(h=typeof Te=="function"?Te(h):h[Symbol.iterator](),t={},c("next"),c("throw"),c("return"),t[Symbol.asyncIterator]=function(){return this},t);function c(m){t[m]=h[m]&&function(b){return new Promise(function(M,A){b=h[m](b),v(M,A,b.done,b.value)})}}function v(m,b,M,A){Promise.resolve(A).then(function(B){m({value:B,done:M})},b)}}function Zt(h,f){return Object.defineProperty?Object.defineProperty(h,"raw",{value:f}):h.raw=f,h}function Nr(h){if(h&&h.__esModule)return h;var f={};if(h!=null)for(var t in h)Object.hasOwnProperty.call(h,t)&&(f[t]=h[t]);return f.default=h,f}function en(h){return h&&h.__esModule?h:{default:h}}function Sn(h,f){if(!f.has(h))throw new TypeError("attempted to get private field on non-instance");return f.get(h)}function kn(h,f,t){if(!f.has(h))throw new TypeError("attempted to set private field on non-instance");return f.set(h,t),t}var Sr=function(h){Xn(f,h);function f(t){var c=h.call(this,t)||this;c.cacheMap={},c.adjustDataArray=[],c.mergeData=[];var v=t.marginRatio,m=v===void 0?fe:v,b=t.dodgeRatio,M=b===void 0?pt:b,A=t.dodgeBy,B=t.intervalPadding,H=t.dodgePadding,W=t.xDimensionLength,Y=t.groupNum,Q=t.defaultSize,te=t.maxColumnWidth,he=t.minColumnWidth,Ee=t.columnWidthRatio,Fe=t.customOffset;return c.marginRatio=m,c.dodgeRatio=M,c.dodgeBy=A,c.intervalPadding=B,c.dodgePadding=H,c.xDimensionLegenth=W,c.groupNum=Y,c.defaultSize=Q,c.maxColumnWidth=te,c.minColumnWidth=he,c.columnWidthRatio=Ee,c.customOffset=Fe,c}return f.prototype.process=function(t){var c=D.d9(t),v=D.xH(c),m=this.dodgeBy,b=m?D.ru(v,m):c;return this.cacheMap={},this.adjustDataArray=b,this.mergeData=v,this.adjustData(b,v),this.adjustDataArray=[],this.mergeData=[],c},f.prototype.adjustDim=function(t,c,v,m){var b=this,M=this.customOffset,A=this.getDistribution(t),B=this.groupData(v,t);return D.S6(B,function(H,W){var Y;c.length===1?Y={pre:c[0]-1,next:c[0]+1}:Y=b.getAdjustRange(t,parseFloat(W),c),D.S6(H,function(Q){var te=Q[t],he=A[te],Ee=he.indexOf(m);if(D.UM(M))Q[t]=b.getDodgeOffset(Y,Ee,he.length);else{var Fe=Y.pre,qe=Y.next;Q[t]=D.mf(M)?M(Q,Y):(Fe+qe)/2+M}})}),[]},f.prototype.getDodgeOffset=function(t,c,v){var m=this,b=m.dodgeRatio,M=m.marginRatio,A=m.intervalPadding,B=m.dodgePadding,H=t.pre,W=t.next,Y=W-H,Q;if(!D.UM(A)&&D.UM(B)&&A>=0){var te=this.getIntervalOnlyOffset(v,c);Q=H+te}else if(!D.UM(B)&&D.UM(A)&&B>=0){var te=this.getDodgeOnlyOffset(v,c);Q=H+te}else if(!D.UM(A)&&!D.UM(B)&&A>=0&&B>=0){var te=this.getIntervalAndDodgeOffset(v,c);Q=H+te}else{var he=Y*b/v,Ee=M*he,te=1/2*(Y-v*he-(v-1)*Ee)+((c+1)*he+c*Ee)-1/2*he-1/2*Y;Q=(H+W)/2+te}return Q},f.prototype.getIntervalOnlyOffset=function(t,c){var v=this,m=v.defaultSize,b=v.intervalPadding,M=v.xDimensionLegenth,A=v.groupNum,B=v.dodgeRatio,H=v.maxColumnWidth,W=v.minColumnWidth,Y=v.columnWidthRatio,Q=b/M,te=(1-(A-1)*Q)/A*B/(t-1),he=((1-Q*(A-1))/A-te*(t-1))/t;if(he=D.UM(Y)?he:1/A/t*Y,!D.UM(H)){var Ee=H/M;he=Math.min(he,Ee)}if(!D.UM(W)){var Fe=W/M;he=Math.max(he,Fe)}he=m?m/M:he,te=((1-(A-1)*Q)/A-t*he)/(t-1);var qe=((1/2+c)*he+c*te+1/2*Q)*A-Q/2;return qe},f.prototype.getDodgeOnlyOffset=function(t,c){var v=this,m=v.defaultSize,b=v.dodgePadding,M=v.xDimensionLegenth,A=v.groupNum,B=v.marginRatio,H=v.maxColumnWidth,W=v.minColumnWidth,Y=v.columnWidthRatio,Q=b/M,te=1*B/(A-1),he=((1-te*(A-1))/A-Q*(t-1))/t;if(he=Y?1/A/t*Y:he,!D.UM(H)){var Ee=H/M;he=Math.min(he,Ee)}if(!D.UM(W)){var Fe=W/M;he=Math.max(he,Fe)}he=m?m/M:he,te=(1-(he*t+Q*(t-1))*A)/(A-1);var qe=((1/2+c)*he+c*Q+1/2*te)*A-te/2;return qe},f.prototype.getIntervalAndDodgeOffset=function(t,c){var v=this,m=v.intervalPadding,b=v.dodgePadding,M=v.xDimensionLegenth,A=v.groupNum,B=m/M,H=b/M,W=((1-B*(A-1))/A-H*(t-1))/t,Y=((1/2+c)*W+c*H+1/2*B)*A-B/2;return Y},f.prototype.getDistribution=function(t){var c=this.adjustDataArray,v=this.cacheMap,m=v[t];return m||(m={},D.S6(c,function(b,M){var A=D.I(b,t);A.length||A.push(0),D.S6(A,function(B){m[B]||(m[B]=[]),m[B].push(M)})}),v[t]=m),m},f}(Lt),qn=Sr;function An(h,f){return(f-h)*Math.random()+h}var vi=function(h){Xn(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.process=function(t){var c=D.d9(t),v=D.xH(c);return this.adjustData(c,v),c},f.prototype.adjustDim=function(t,c,v){var m=this,b=this.groupData(v,t);return D.S6(b,function(M,A){return m.adjustGroup(M,t,parseFloat(A),c)})},f.prototype.getAdjustOffset=function(t){var c=t.pre,v=t.next,m=(v-c)*wt;return An(c+m,v-m)},f.prototype.adjustGroup=function(t,c,v,m){var b=this,M=this.getAdjustRange(c,v,m);return D.S6(t,function(A){A[c]=b.getAdjustOffset(M)}),t},f}(Lt),ba=vi,Ai=D.Ct,Za=function(h){Xn(f,h);function f(t){var c=h.call(this,t)||this,v=t.adjustNames,m=v===void 0?["y"]:v,b=t.height,M=b===void 0?NaN:b,A=t.size,B=A===void 0?10:A,H=t.reverseOrder,W=H===void 0?!1:H;return c.adjustNames=m,c.height=M,c.size=B,c.reverseOrder=W,c}return f.prototype.process=function(t){var c=this,v=c.yField,m=c.reverseOrder,b=v?this.processStack(t):this.processOneDimStack(t);return m?this.reverse(b):b},f.prototype.reverse=function(t){return t.slice(0).reverse()},f.prototype.processStack=function(t){var c=this,v=c.xField,m=c.yField,b=c.reverseOrder,M=b?this.reverse(t):t,A=new Ai,B=new Ai;return M.map(function(H){return H.map(function(W){var Y,Q=D.U2(W,v,0),te=D.U2(W,[m]),he=Q.toString();if(te=D.kJ(te)?te[1]:te,!D.UM(te)){var Ee=te>=0?A:B;Ee.has(he)||Ee.set(he,0);var Fe=Ee.get(he),qe=te+Fe;return Ee.set(he,qe),un(un({},W),(Y={},Y[m]=[Fe,qe],Y))}return W})})},f.prototype.processOneDimStack=function(t){var c=this,v=this,m=v.xField,b=v.height,M=v.reverseOrder,A="y",B=M?this.reverse(t):t,H=new Ai;return B.map(function(W){return W.map(function(Y){var Q,te=c.size,he=Y[m],Ee=te*2/b;H.has(he)||H.set(he,Ee/2);var Fe=H.get(he);return H.set(he,Fe+Ee),un(un({},Y),(Q={},Q[A]=Fe,Q))})})},f}(Lt),Ur=Za,ni=function(h){Xn(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.process=function(t){var c=D.xH(t),v=this,m=v.xField,b=v.yField,M=this.getXValuesMaxMap(c),A=Math.max.apply(Math,Object.keys(M).map(function(B){return M[B]}));return D.UI(t,function(B){return D.UI(B,function(H){var W,Y,Q=H[b],te=H[m];if(D.kJ(Q)){var he=(A-M[te])/2;return un(un({},H),(W={},W[b]=D.UI(Q,function(Fe){return he+Fe}),W))}var Ee=(A-Q)/2;return un(un({},H),(Y={},Y[b]=[Ee,Q+Ee],Y))})})},f.prototype.getXValuesMaxMap=function(t){var c=this,v=this,m=v.xField,b=v.yField,M=D.vM(t,function(A){return A[m]});return D.Q8(M,function(A){return c.getDimMaxValue(A,b)})},f.prototype.getDimMaxValue=function(t,c){var v=D.UI(t,function(b){return D.U2(b,c,[])}),m=D.xH(v);return Math.max.apply(Math,m)},f}(Lt),qs=ni;jr("Dodge",qn),jr("Jitter",ba),jr("Stack",Ur),jr("Symmetric",qs);var Ka=function(h,f){return(0,D.HD)(f)?f:h.invert(h.scale(f))},Ma=function(){function h(f){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(f)}return h.prototype.mapping=function(){for(var f=this,t=[],c=0;cthis.max?NaN:this.values[m]},f.prototype.getText=function(t){for(var c=[],v=1;v1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},f}(pf),ea=la,hc=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Rl="\\d\\d?",Kl="\\d\\d",Nc="\\d{3}",Yf="\\d{4}",St="[^\\s]+",Be=/\[([^]*?)\]/gm;function bt(h,f){for(var t=[],c=0,v=h.length;c-1?v:null}};function Mr(h){for(var f=[],t=1;t3?0:(h-h%10!==10?1:0)*h%10]}},Wo=Mr({},Ba),ol=function(h){return Wo=Mr(Wo,h)},Ps=function(h){return h.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},ho=function(h,f){for(f===void 0&&(f=2),h=String(h);h.length0?"-":"+")+ho(Math.floor(Math.abs(f)/60)*100+Math.abs(f)%60,4)},Z:function(h){var f=h.getTimezoneOffset();return(f>0?"-":"+")+ho(Math.floor(Math.abs(f)/60),2)+":"+ho(Math.abs(f)%60,2)}},Bs=function(h){return+h-1},Fh=[null,Rl],Hc=[null,St],_d=["isPm",St,function(h,f){var t=h.toLowerCase();return t===f.amPm[0]?0:t===f.amPm[1]?1:null}],pe=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(h){var f=(h+"").match(/([+-]|\d\d)/gi);if(f){var t=+f[1]*60+parseInt(f[2],10);return f[0]==="+"?t:-t}return 0}],Ae={D:["day",Rl],DD:["day",Kl],Do:["day",Rl+St,function(h){return parseInt(h,10)}],M:["month",Rl,Bs],MM:["month",Kl,Bs],YY:["year",Kl,function(h){var f=new Date,t=+(""+f.getFullYear()).substr(0,2);return+(""+(+h>68?t-1:t)+h)}],h:["hour",Rl,void 0,"isPm"],hh:["hour",Kl,void 0,"isPm"],H:["hour",Rl],HH:["hour",Kl],m:["minute",Rl],mm:["minute",Kl],s:["second",Rl],ss:["second",Kl],YYYY:["year",Yf],S:["millisecond","\\d",function(h){return+h*100}],SS:["millisecond",Kl,function(h){return+h*10}],SSS:["millisecond",Nc],d:Fh,dd:Fh,ddd:Hc,dddd:Hc,MMM:["month",St,Qt("monthNamesShort")],MMMM:["month",St,Qt("monthNames")],a:_d,A:_d,ZZ:pe,Z:pe},Ke={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"},jt=function(h){return Mr(Ke,h)},Lr=function(h,f,t){if(f===void 0&&(f=Ke.default),t===void 0&&(t={}),typeof h=="number"&&(h=new Date(h)),Object.prototype.toString.call(h)!=="[object Date]"||isNaN(h.getTime()))throw new Error("Invalid Date pass to format");f=Ke[f]||f;var c=[];f=f.replace(Be,function(m,b){return c.push(b),"@@@"});var v=Mr(Mr({},Wo),t);return f=f.replace(hc,function(m){return ql[m](h,v)}),f.replace(/@@@/g,function(){return c.shift()})};function qr(h,f,t){if(t===void 0&&(t={}),typeof f!="string")throw new Error("Invalid format in fecha parse");if(f=Ke[f]||f,h.length>1e3)return null;var c=new Date,v={year:c.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},m=[],b=[],M=f.replace(Be,function(ht,Jt){return b.push(Ps(Jt)),"@@@"}),A={},B={};M=Ps(M).replace(hc,function(ht){var Jt=Ae[ht],Er=Jt[0],Or=Jt[1],Rr=Jt[3];if(A[Er])throw new Error("Invalid format. "+Er+" specified twice in format");return A[Er]=!0,Rr&&(B[Rr]=!0),m.push(Jt),"("+Or+")"}),Object.keys(B).forEach(function(ht){if(!A[ht])throw new Error("Invalid format. "+ht+" is required in specified format")}),M=M.replace(/@@@/g,function(){return b.shift()});var H=h.match(new RegExp(M,"i"));if(!H)return null;for(var W=Mr(Mr({},Wo),t),Y=1;Y11||v.month<0||v.day>31||v.day<1||v.hour>23||v.hour<0||v.minute>59||v.minute<0||v.second>59||v.second<0)return null;return Fe}var Ln={format:Lr,parse:qr,defaultI18n:Ba,setGlobalDateI18n:ol,setGlobalDateMasks:jt},si=Ln;function Pn(h){return function(f,t,c,v){for(var m=(0,D.UM)(c)?0:c,b=(0,D.UM)(v)?f.length:v;m>>1;h(f[M])>t?b=M:m=M+1}return m}}var fi="format";function wi(h,f){var t=Ve[fi]||si[fi];return t(h,f)}function ci(h){return(0,D.HD)(h)&&(h.indexOf("T")>0?h=new Date(h).getTime():h=new Date(h.replace(/-/gi,"/")).getTime()),(0,D.J_)(h)&&(h=h.getTime()),h}var Vr=1e3,Dn=60*Vr,Ci=60*Dn,oi=24*Ci,Gn=oi*31,Wi=oi*365,Gi=[["HH:mm:ss",Vr],["HH:mm:ss",Vr*10],["HH:mm:ss",Vr*30],["HH:mm",Dn],["HH:mm",Dn*10],["HH:mm",Dn*30],["HH",Ci],["HH",Ci*6],["HH",Ci*12],["YYYY-MM-DD",oi],["YYYY-MM-DD",oi*4],["YYYY-WW",oi*7],["YYYY-MM",Gn],["YYYY-MM",Gn*4],["YYYY-MM",Gn*6],["YYYY",oi*380]];function pa(h,f,t){var c=(f-h)/t,v=Pn(function(b){return b[1]})(Gi,c)-1,m=Gi[v];return v<0?m=Gi[0]:v>=Gi.length&&(m=(0,D.Z$)(Gi)),m}var Ao=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.type="timeCat",t}return f.prototype.translate=function(t){t=ci(t);var c=this.values.indexOf(t);return c===-1&&((0,D.hj)(t)&&t-1){var m=this.values[v],b=this.formatter;return m=b?b(m,c):wi(m,this.mask),m}return t},f.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},f.prototype.setDomain=function(){var t=this.values;(0,D.S6)(t,function(c,v){t[v]=ci(c)}),t.sort(function(c,v){return c-v}),h.prototype.setDomain.call(this)},f}(ea),ll=Ao,vo=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.isContinuous=!0,t}return f.prototype.scale=function(t){if((0,D.UM)(t))return NaN;var c=this.rangeMin(),v=this.rangeMax(),m=this.max,b=this.min;if(m===b)return c;var M=this.getScalePercent(t);return c+M*(v-c)},f.prototype.init=function(){h.prototype.init.call(this);var t=this.ticks,c=(0,D.YM)(t),v=(0,D.Z$)(t);cthis.max&&(this.max=v),(0,D.UM)(this.minLimit)||(this.min=c),(0,D.UM)(this.maxLimit)||(this.max=v)},f.prototype.setDomain=function(){var t=(0,D.rx)(this.values),c=t.min,v=t.max;(0,D.UM)(this.min)&&(this.min=c),(0,D.UM)(this.max)&&(this.max=v),this.min>this.max&&(this.min=c,this.max=v)},f.prototype.calculateTicks=function(){var t=this,c=h.prototype.calculateTicks.call(this);return this.nice||(c=(0,D.hX)(c,function(v){return v>=t.min&&v<=t.max})),c},f.prototype.getScalePercent=function(t){var c=this.max,v=this.min;return(t-v)/(c-v)},f.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},f}(pf),Dl=vo,eu=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.type="linear",t.isLinear=!0,t}return f.prototype.invert=function(t){var c=this.getInvertPercent(t);return this.min+c*(this.max-this.min)},f.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},f}(Dl),ks=eu;function ws(h,f){var t=Math.E,c;return f>=0?c=Math.pow(t,Math.log(f)/h):c=Math.pow(t,Math.log(-f)/h)*-1,c}function sl(h,f){return h===1?1:Math.log(f)/Math.log(h)}function yu(h,f,t){(0,D.UM)(t)&&(t=Math.max.apply(null,h));var c=t;return(0,D.S6)(h,function(v){v>0&&v1&&(c=1),c}function xs(h){var f=h.toString().split(/[eE]/),t=(f[0].split(".")[1]||"").length-+(f[1]||0);return t>0?t:0}function Cu(h,f){var t=xs(h),c=xs(f),v=Math.pow(10,Math.max(t,c));return(h*v+f*v)/v}var ta=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.type="log",t}return f.prototype.invert=function(t){var c=this.base,v=sl(c,this.max),m=this.rangeMin(),b=this.rangeMax()-m,M,A=this.positiveMin;if(A){if(t===0)return 0;M=sl(c,A/c);var B=1/(v-M)*b;if(t=0?1:-1;return Math.pow(M,v)*A},f.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},f.prototype.getScalePercent=function(t){var c=this.max,v=this.min;if(c===v)return 0;var m=this.exponent,b=(ws(m,t)-ws(m,v))/(ws(m,c)-ws(m,v));return b},f}(Dl),Bn=Qr,Ri=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.type="time",t}return f.prototype.getText=function(t,c){var v=this.translate(t),m=this.formatter;return m?m(v,c):wi(v,this.mask)},f.prototype.scale=function(t){var c=t;return((0,D.HD)(c)||(0,D.J_)(c))&&(c=this.translate(c)),h.prototype.scale.call(this,c)},f.prototype.translate=function(t){return ci(t)},f.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},f.prototype.setDomain=function(){var t=this.values,c=this.getConfig("min"),v=this.getConfig("max");if((!(0,D.UM)(c)||!(0,D.hj)(c))&&(this.min=this.translate(this.min)),(!(0,D.UM)(v)||!(0,D.hj)(v))&&(this.max=this.translate(this.max)),t&&t.length){var m=[],b=1/0,M=b,A=0;(0,D.S6)(t,function(B){var H=ci(B);if(isNaN(H))throw new TypeError("Invalid Time: "+B+" in time scale!");b>H?(M=b,b=H):M>H&&(M=H),A1&&(this.minTickInterval=M-b),(0,D.UM)(c)&&(this.min=b),(0,D.UM)(v)&&(this.max=A)}},f}(ks),qi=Ri,$i=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.type="quantize",t}return f.prototype.invert=function(t){var c=this.ticks,v=c.length,m=this.getInvertPercent(t),b=Math.floor(m*(v-1));if(b>=v-1)return(0,D.Z$)(c);if(b<0)return(0,D.YM)(c);var M=c[b],A=c[b+1],B=b/(v-1),H=(b+1)/(v-1);return M+(m-B)/(H-B)*(A-M)},f.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},f.prototype.calculateTicks=function(){var t=h.prototype.calculateTicks.call(this);return this.nice||((0,D.Z$)(t)!==this.max&&t.push(this.max),(0,D.YM)(t)!==this.min&&t.unshift(this.min)),t},f.prototype.getScalePercent=function(t){var c=this.ticks;if(t<(0,D.YM)(c))return 0;if(t>(0,D.Z$)(c))return 1;var v=0;return(0,D.S6)(c,function(m,b){if(t>=m)v=b;else return!1}),v/(c.length-1)},f}(Dl),Io=$i,Oi=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.type="quantile",t}return f.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},f}(Io),Ro=Oi,po={};function Jo(h){return po[h]}function bl(h,f){if(Jo(h))throw new Error("type '"+h+"' existed.");po[h]=f}var wl=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.type="identity",t.isIdentity=!0,t}return f.prototype.calculateTicks=function(){return this.values},f.prototype.scale=function(t){return this.values[0]!==t&&(0,D.hj)(t)?t:this.range[0]},f.prototype.invert=function(t){var c=this.range;return tc[1]?NaN:this.values[0]},f}(pf),Pu=wl;function Fs(h){var f=h.values,t=h.tickInterval,c=h.tickCount,v=h.showLast;if((0,D.hj)(t)){var m=(0,D.hX)(f,function(te,he){return he%t===0}),b=(0,D.Z$)(f);return v&&(0,D.Z$)(m)!==b&&m.push(b),m}var M=f.length,A=h.min,B=h.max;if((0,D.UM)(A)&&(A=0),(0,D.UM)(B)&&(B=f.length-1),!(0,D.hj)(c)||c>=M)return f.slice(A,B+1);if(c<=0||B<=0)return[];for(var H=c===1?M:Math.floor(M/(c-1)),W=[],Y=A,Q=0;Q=B);Q++)Y=Math.min(A+Q*H,B),Q===c-1&&v?W.push(f[B]):W.push(f[Y]);return W}function Ed(h){var f=h.min,t=h.max,c=h.nice,v=h.tickCount,m=new Mv;return m.domain([f,t]),c&&m.nice(v),m.ticks(v)}var Ev=5,Md=Math.sqrt(50),oo=Math.sqrt(10),xl=Math.sqrt(2),Mv=function(){function h(){this._domain=[0,1]}return h.prototype.domain=function(f){return f?(this._domain=Array.from(f,Number),this):this._domain.slice()},h.prototype.nice=function(f){var t,c;f===void 0&&(f=Ev);var v=this._domain.slice(),m=0,b=this._domain.length-1,M=this._domain[m],A=this._domain[b],B;return A0?(M=Math.floor(M/B)*B,A=Math.ceil(A/B)*B,B=jf(M,A,f)):B<0&&(M=Math.ceil(M*B)/B,A=Math.floor(A*B)/B,B=jf(M,A,f)),B>0?(v[m]=Math.floor(M/B)*B,v[b]=Math.ceil(A/B)*B,this.domain(v)):B<0&&(v[m]=Math.ceil(M*B)/B,v[b]=Math.floor(A*B)/B,this.domain(v)),this},h.prototype.ticks=function(f){return f===void 0&&(f=Ev),Ns(this._domain[0],this._domain[this._domain.length-1],f||Ev)},h}();function Ns(h,f,t){var c,v=-1,m,b,M;if(f=+f,h=+h,t=+t,h===f&&t>0)return[h];if((c=f0)for(h=Math.ceil(h/M),f=Math.floor(f/M),b=new Array(m=Math.ceil(f-h+1));++v=0?(m>=Md?10:m>=oo?5:m>=xl?2:1)*Math.pow(10,v):-Math.pow(10,-v)/(m>=Md?10:m>=oo?5:m>=xl?2:1)}function De(h,f,t){var c;return t==="ceil"?c=Math.ceil(h/f):t==="floor"?c=Math.floor(h/f):c=Math.round(h/f),c*f}function dt(h,f,t){var c=De(h,t,"floor"),v=De(f,t,"ceil");c=(0,D.ri)(c,t),v=(0,D.ri)(v,t);for(var m=[],b=Math.max((v-c)/(Math.pow(2,12)-1),t),M=c;M<=v;M=M+b){var A=(0,D.ri)(M,b);m.push(A)}return{min:c,max:v,ticks:m}}function Xt(h,f,t){var c,v=h.minLimit,m=h.maxLimit,b=h.min,M=h.max,A=h.tickCount,B=A===void 0?5:A,H=(0,D.UM)(v)?(0,D.UM)(f)?b:f:v,W=(0,D.UM)(m)?(0,D.UM)(t)?M:t:m;if(H>W&&(c=[H,W],W=c[0],H=c[1]),B<=2)return[H,W];for(var Y=(W-H)/(B-1),Q=[],te=0;te=0&&(A=1),1-M/(b-1)-t+A}function Td(h,f,t){var c=(0,D.dp)(f),v=(0,D.cq)(f,h),m=1;return 1-v/(c-1)-t+m}function Nh(h,f,t,c,v,m){var b=(h-1)/(m-v),M=(f-1)/(Math.max(m,c)-Math.min(t,v));return 2-Math.max(b/M,M/b)}function Ty(h,f){return h>=f?2-(h-1)/(f-1):1}function xx(h,f,t,c){var v=f-h;return 1-.5*(Math.pow(f-c,2)+Math.pow(h-t,2))/Math.pow(.1*v,2)}function h0(h,f,t){var c=f-h;if(t>c){var v=(t-c)/2;return 1-Math.pow(v,2)/Math.pow(.1*c,2)}return 1}function Tv(){return 1}function Ov(h,f,t,c,v,m){t===void 0&&(t=5),c===void 0&&(c=!0),v===void 0&&(v=En),m===void 0&&(m=[.25,.2,.5,.05]);var b=t<0?0:Math.round(t);if(Number.isNaN(h)||Number.isNaN(f)||typeof h!="number"||typeof f!="number"||!b)return{min:0,max:0,ticks:[]};if(f-h<1e-15||b===1)return{min:h,max:f,ticks:[h]};if(f-h>1e148){var M=t||5,A=(f-h)/M;return{min:h,max:f,ticks:Array(M).fill(null).map(function(pv,A1){return Br(h+A*A1)})}}for(var B={score:-2,lmin:0,lmax:0,lstep:0},H=1;H<1/0;){for(var W=0;WB.score&&(!c||Rr<=h&&tn>=f)&&(B.lmin=Rr,B.lmax=tn,B.lstep=ln,B.score=io)}Fe+=1}te+=1}}H+=1}var Iu=Br(B.lmax),ds=Br(B.lmin),Lc=Br(B.lstep),Po=Math.floor(Sl((Iu-ds)/Lc))+1,sf=new Array(Po);sf[0]=Br(ds);for(var W=1;W0)b=Math.floor(sl(f,c));else{var A=yu(m,f,v);b=Math.floor(sl(f,A))}for(var B=M-b,H=Math.ceil(B/t),W=[],Y=b;Y=0?1:-1;return Math.pow(b,f)*M})}function dc(h,f){var t=h.length*f;return f===1?h[h.length-1]:f===0?h[0]:t%1!==0?h[Math.ceil(t)-1]:h.length%2===0?(h[t-1]+h[t])/2:h[t]}function Ta(h){var f=h.tickCount,t=h.values;if(!t||!t.length)return[];for(var c=t.slice().sort(function(M,A){return M-A}),v=[],m=0;m1&&(v=v*Math.ceil(M)),c&&vWi)for(var A=Bu(t),B=Math.ceil(m/Wi),H=M;H<=A+B;H=H+B)b.push(d0(H));else if(m>Gn)for(var W=Math.ceil(m/Gn),Y=Av(f),Q=Iv(f,t),H=0;H<=Q+W;H=H+W)b.push(gf(M,H+Y));else if(m>oi)for(var te=new Date(f),he=te.getFullYear(),Ee=te.getMonth(),Fe=te.getDate(),qe=Math.ceil(m/oi),nt=bu(f,t),H=0;HCi)for(var te=new Date(f),he=te.getFullYear(),Ee=te.getMonth(),qe=te.getDate(),ht=te.getHours(),Jt=Math.ceil(m/Ci),Er=us(f,t),H=0;H<=Er+Jt;H=H+Jt)b.push(new Date(he,Ee,qe,ht+H).getTime());else if(m>Dn)for(var Or=Ay(f,t),Rr=Math.ceil(m/Dn),H=0;H<=Or+Rr;H=H+Rr)b.push(f+H*Dn);else{var tn=m;tn=512&&console.warn("Notice: current ticks length("+b.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+m+") is too small, increase the value to solve the problem!"),b}bs("cat",Fs),bs("time-cat",Oy),bs("wilkinson-extended",Gp),bs("r-pretty",z1),bs("time",tu),bs("time-pretty",wu),bs("log",$p),bs("pow",gi),bs("quantile",Ta),bs("d3-linear",pr),bl("cat",ea),bl("category",ea),bl("identity",Pu),bl("linear",ks),bl("log",$n),bl("pow",Bn),bl("time",qi),bl("timeCat",ll),bl("quantize",Io),bl("quantile",Ro);var W1={},Up=function(h){return W1[h.toLowerCase()]},Hh=function(h,f){if(Up(h))throw new Error("Attribute type '".concat(h,"' existed."));W1[h.toLowerCase()]=f};Hh("Color",Qo),Hh("Opacity",Il),Hh("Position",al),Hh("Shape",Du),Hh("Size",Lu);var zc=rt(90968);function Yp(){var h=new zc.WT(3);return zc.WT!=Float32Array&&(h[0]=0,h[1]=0,h[2]=0),h}function O_(h){var f=new glMatrix.ARRAY_TYPE(3);return f[0]=h[0],f[1]=h[1],f[2]=h[2],f}function Sx(h){var f=h[0],t=h[1],c=h[2];return Math.hypot(f,t,c)}function A_(h,f,t){var c=new glMatrix.ARRAY_TYPE(3);return c[0]=h,c[1]=f,c[2]=t,c}function Rv(h,f){return h[0]=f[0],h[1]=f[1],h[2]=f[2],h}function _x(h,f,t,c){return h[0]=f,h[1]=t,h[2]=c,h}function jp(h,f,t){return h[0]=f[0]+t[0],h[1]=f[1]+t[1],h[2]=f[2]+t[2],h}function Vp(h,f,t){return h[0]=f[0]-t[0],h[1]=f[1]-t[1],h[2]=f[2]-t[2],h}function G1(h,f,t){return h[0]=f[0]*t[0],h[1]=f[1]*t[1],h[2]=f[2]*t[2],h}function Iy(h,f,t){return h[0]=f[0]/t[0],h[1]=f[1]/t[1],h[2]=f[2]/t[2],h}function Ry(h,f){return h[0]=Math.ceil(f[0]),h[1]=Math.ceil(f[1]),h[2]=Math.ceil(f[2]),h}function Ex(h,f){return h[0]=Math.floor(f[0]),h[1]=Math.floor(f[1]),h[2]=Math.floor(f[2]),h}function Mx(h,f,t){return h[0]=Math.min(f[0],t[0]),h[1]=Math.min(f[1],t[1]),h[2]=Math.min(f[2],t[2]),h}function Ll(h,f,t){return h[0]=Math.max(f[0],t[0]),h[1]=Math.max(f[1],t[1]),h[2]=Math.max(f[2],t[2]),h}function Od(h,f){return h[0]=Math.round(f[0]),h[1]=Math.round(f[1]),h[2]=Math.round(f[2]),h}function Vf(h,f,t){return h[0]=f[0]*t,h[1]=f[1]*t,h[2]=f[2]*t,h}function Tx(h,f,t,c){return h[0]=f[0]+t[0]*c,h[1]=f[1]+t[1]*c,h[2]=f[2]+t[2]*c,h}function Dv(h,f){var t=f[0]-h[0],c=f[1]-h[1],v=f[2]-h[2];return Math.hypot(t,c,v)}function v0(h,f){var t=f[0]-h[0],c=f[1]-h[1],v=f[2]-h[2];return t*t+c*c+v*v}function Xp(h){var f=h[0],t=h[1],c=h[2];return f*f+t*t+c*c}function Fn(h,f){return h[0]=-f[0],h[1]=-f[1],h[2]=-f[2],h}function Lv(h,f){return h[0]=1/f[0],h[1]=1/f[1],h[2]=1/f[2],h}function Dy(h,f){var t=f[0],c=f[1],v=f[2],m=t*t+c*c+v*v;return m>0&&(m=1/Math.sqrt(m)),h[0]=f[0]*m,h[1]=f[1]*m,h[2]=f[2]*m,h}function Hs(h,f){return h[0]*f[0]+h[1]*f[1]+h[2]*f[2]}function p0(h,f,t){var c=f[0],v=f[1],m=f[2],b=t[0],M=t[1],A=t[2];return h[0]=v*A-m*M,h[1]=m*b-c*A,h[2]=c*M-v*b,h}function Pv(h,f,t,c){var v=f[0],m=f[1],b=f[2];return h[0]=v+c*(t[0]-v),h[1]=m+c*(t[1]-m),h[2]=b+c*(t[2]-b),h}function $1(h,f,t,c,v,m){var b=m*m,M=b*(2*m-3)+1,A=b*(m-2)+m,B=b*(m-1),H=b*(3-2*m);return h[0]=f[0]*M+t[0]*A+c[0]*B+v[0]*H,h[1]=f[1]*M+t[1]*A+c[1]*B+v[1]*H,h[2]=f[2]*M+t[2]*A+c[2]*B+v[2]*H,h}function Ly(h,f,t,c,v,m){var b=1-m,M=b*b,A=m*m,B=M*b,H=3*m*M,W=3*A*b,Y=A*m;return h[0]=f[0]*B+t[0]*H+c[0]*W+v[0]*Y,h[1]=f[1]*B+t[1]*H+c[1]*W+v[1]*Y,h[2]=f[2]*B+t[2]*H+c[2]*W+v[2]*Y,h}function zh(h,f){f=f||1;var t=glMatrix.RANDOM()*2*Math.PI,c=glMatrix.RANDOM()*2-1,v=Math.sqrt(1-c*c)*f;return h[0]=Math.cos(t)*v,h[1]=Math.sin(t)*v,h[2]=c*f,h}function U1(h,f,t){var c=f[0],v=f[1],m=f[2],b=t[3]*c+t[7]*v+t[11]*m+t[15];return b=b||1,h[0]=(t[0]*c+t[4]*v+t[8]*m+t[12])/b,h[1]=(t[1]*c+t[5]*v+t[9]*m+t[13])/b,h[2]=(t[2]*c+t[6]*v+t[10]*m+t[14])/b,h}function Ad(h,f,t){var c=f[0],v=f[1],m=f[2];return h[0]=c*t[0]+v*t[3]+m*t[6],h[1]=c*t[1]+v*t[4]+m*t[7],h[2]=c*t[2]+v*t[5]+m*t[8],h}function Y1(h,f,t){var c=t[0],v=t[1],m=t[2],b=t[3],M=f[0],A=f[1],B=f[2],H=v*B-m*A,W=m*M-c*B,Y=c*A-v*M,Q=v*Y-m*W,te=m*H-c*Y,he=c*W-v*H,Ee=b*2;return H*=Ee,W*=Ee,Y*=Ee,Q*=2,te*=2,he*=2,h[0]=M+H+Q,h[1]=A+W+te,h[2]=B+Y+he,h}function Py(h,f,t,c){var v=[],m=[];return v[0]=f[0]-t[0],v[1]=f[1]-t[1],v[2]=f[2]-t[2],m[0]=v[0],m[1]=v[1]*Math.cos(c)-v[2]*Math.sin(c),m[2]=v[1]*Math.sin(c)+v[2]*Math.cos(c),h[0]=m[0]+t[0],h[1]=m[1]+t[1],h[2]=m[2]+t[2],h}function Zp(h,f,t,c){var v=[],m=[];return v[0]=f[0]-t[0],v[1]=f[1]-t[1],v[2]=f[2]-t[2],m[0]=v[2]*Math.sin(c)+v[0]*Math.cos(c),m[1]=v[1],m[2]=v[2]*Math.cos(c)-v[0]*Math.sin(c),h[0]=m[0]+t[0],h[1]=m[1]+t[1],h[2]=m[2]+t[2],h}function By(h,f,t,c){var v=[],m=[];return v[0]=f[0]-t[0],v[1]=f[1]-t[1],v[2]=f[2]-t[2],m[0]=v[0]*Math.cos(c)-v[1]*Math.sin(c),m[1]=v[0]*Math.sin(c)+v[1]*Math.cos(c),m[2]=v[2],h[0]=m[0]+t[0],h[1]=m[1]+t[1],h[2]=m[2]+t[2],h}function Bv(h,f){var t=h[0],c=h[1],v=h[2],m=f[0],b=f[1],M=f[2],A=Math.sqrt(t*t+c*c+v*v),B=Math.sqrt(m*m+b*b+M*M),H=A*B,W=H&&Hs(h,f)/H;return Math.acos(Math.min(Math.max(W,-1),1))}function Id(h){return h[0]=0,h[1]=0,h[2]=0,h}function Kp(h){return"vec3("+h[0]+", "+h[1]+", "+h[2]+")"}function kv(h,f){return h[0]===f[0]&&h[1]===f[1]&&h[2]===f[2]}function qp(h,f){var t=h[0],c=h[1],v=h[2],m=f[0],b=f[1],M=f[2];return Math.abs(t-m)<=glMatrix.EPSILON*Math.max(1,Math.abs(t),Math.abs(m))&&Math.abs(c-b)<=glMatrix.EPSILON*Math.max(1,Math.abs(c),Math.abs(b))&&Math.abs(v-M)<=glMatrix.EPSILON*Math.max(1,Math.abs(v),Math.abs(M))}var ky=null,g0=null,Fy=null,j1=null,Ny=null,Qp=null,m0=null,Hy=function(){var h=Yp();return function(f,t,c,v,m,b){var M,A;for(t||(t=3),c||(c=0),v?A=Math.min(v*t+c,f.length):A=f.length,M=c;M=0&&this.radius<=1&&(c=c*this.radius),this.d=Math.floor(c*(1-this.innerRadius)/t),this.a=this.d/(Math.PI*2),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*c,end:this.innerRadius*c+this.d*.99}},f.prototype.convertPoint=function(t){var c,v=t.x,m=t.y;this.isTransposed&&(c=[m,v],v=c[0],m=c[1]);var b=this.convertDim(v,"x"),M=this.a*b,A=this.convertDim(m,"y");return{x:this.center.x+Math.cos(b)*(M+A),y:this.center.y+Math.sin(b)*(M+A)}},f.prototype.invertPoint=function(t){var c,v=this.d+this.y.start,m=Ki.$X([0,0],[t.x,t.y],[this.center.x,this.center.y]),b=La.Dg(m,[1,0],!0),M=b*this.a;Ki.kE(m)this.width/c?(M=this.width/c,this.circleCenter={x:this.center.x-(.5-m)*this.width,y:this.center.y-(.5-b)*M*v}):(M=this.height/v,this.circleCenter={x:this.center.x-(.5-m)*M*c,y:this.center.y-(.5-b)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=M*this.radius:(this.radius<=0||this.radius>M)&&(this.polarRadius=M):this.polarRadius=M,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},f.prototype.getRadius=function(){return this.polarRadius},f.prototype.convertPoint=function(t){var c,v=this.getCenter(),m=t.x,b=t.y;return this.isTransposed&&(c=[b,m],m=c[0],b=c[1]),m=this.convertDim(m,"x"),b=this.convertDim(b,"y"),{x:v.x+Math.cos(m)*b,y:v.y+Math.sin(m)*b}},f.prototype.invertPoint=function(t){var c,v=this.getCenter(),m=[t.x-v.x,t.y-v.y],b=this,M=b.startAngle,A=b.endAngle;this.isReflect("x")&&(c=[A,M],M=c[0],A=c[1]);var B=[1,0,0,0,1,0,0,0,1];La.zu(B,B,M);var H=[1,0,0];Ad(H,H,B);var W=[H[0],H[1]],Y=La.Dg(W,m,A0?te:-te;var he=this.invertDim(Q,"y"),Ee={x:0,y:0};return Ee.x=this.isTransposed?he:te,Ee.y=this.isTransposed?te:he,Ee},f.prototype.getCenter=function(){return this.circleCenter},f.prototype.getOneBox=function(){var t=this.startAngle,c=this.endAngle;if(Math.abs(c-t)>=Math.PI*2)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var v=[0,Math.cos(t),Math.cos(c)],m=[0,Math.sin(t),Math.sin(c)],b=Math.min(t,c);b=0;c--)h.removeChild(f[c])}function Jl(h,f){return!!h.className.match(new RegExp("(\\s|^)"+f+"(\\s|$)"))}function jh(h){var f=h.start,t=h.end,c=Math.min(f.x,t.x),v=Math.min(f.y,t.y),m=Math.max(f.x,t.x),b=Math.max(f.y,t.y);return{x:c,y:v,minX:c,minY:v,maxX:m,maxY:b,width:m-c,height:b-v}}function eg(h){var f=h.map(function(M){return M.x}),t=h.map(function(M){return M.y}),c=Math.min.apply(Math,f),v=Math.min.apply(Math,t),m=Math.max.apply(Math,f),b=Math.max.apply(Math,t);return{x:c,y:v,minX:c,minY:v,maxX:m,maxY:b,width:m-c,height:b-v}}function lo(h,f,t,c){var v=h+t,m=f+c;return{x:h,y:f,width:t,height:c,minX:h,minY:f,maxX:isNaN(v)?0:v,maxY:isNaN(m)?0:m}}function Ss(h,f,t){return(1-t)*h+f*t}function Vh(h,f,t){return{x:h.x+Math.cos(t)*f,y:h.y+Math.sin(t)*f}}function Zf(h,f){var t=f.x-h.x,c=f.y-h.y;return Math.sqrt(t*t+c*c)}var Ox=function(h){return new Promise(function(f){setTimeout(f,h)})},Xh=function(h,f,t){return t===void 0&&(t=Math.pow(Number.EPSILON,.5)),[h,f].includes(1/0)?Math.abs(h)===Math.abs(f):Math.abs(h-f)0?(0,D.S6)(A,function(B){if(B.get("visible")){if(B.isGroup()&&B.get("children").length===0)return!0;var H=$v(B),W=B.applyToMatrix([H.minX,H.minY,1]),Y=B.applyToMatrix([H.minX,H.maxY,1]),Q=B.applyToMatrix([H.maxX,H.minY,1]),te=B.applyToMatrix([H.maxX,H.maxY,1]),he=Math.min(W[0],Y[0],Q[0],te[0]),Ee=Math.max(W[0],Y[0],Q[0],te[0]),Fe=Math.min(W[1],Y[1],Q[1],te[1]),qe=Math.max(W[1],Y[1],Q[1],te[1]);hem&&(m=Ee),FeM&&(M=qe)}}):(v=0,m=0,b=0,M=0),c=lo(v,b,m-v,M-b)}return t?tg(c,t):c}function V1(h,f){if(!(!h.getClip()&&!f.getClip())){var t=f.getClip();if(!t){h.setClip(null);return}var c={type:t.get("type"),attrs:t.attr()};h.setClip(c)}}function zs(h){return h+"px"}function Kf(h,f,t,c){var v=Zf(h,f),m=c/v,b=0;return t==="start"?b=0-m:t==="end"&&(b=1+m),{x:Ss(h.x,f.x,b),y:Ss(h.y,f.y,b)}}var X1={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},Dd=function(h){(0,U.ZT)(f,h);function f(t){var c=h.call(this,t)||this;return c.initCfg(),c}return f.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},f.prototype.clear=function(){},f.prototype.update=function(t){var c=this,v=this.get("defaultCfg")||{};(0,D.S6)(t,function(m,b){var M=c.get(b),A=m;M!==m&&((0,D.Kn)(m)&&v[b]&&(A=(0,D.b$)({},v[b],m)),c.set(b,A))}),this.updateInner(t),this.afterUpdate(t)},f.prototype.updateInner=function(t){},f.prototype.afterUpdate=function(t){(0,D.wH)(t,"visible")&&(t.visible?this.show():this.hide()),(0,D.wH)(t,"capture")&&this.setCapture(t.capture)},f.prototype.getLayoutBBox=function(){return this.getBBox()},f.prototype.getLocationType=function(){return this.get("locationType")},f.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},f.prototype.setOffset=function(t,c){this.update({offsetX:t,offsetY:c})},f.prototype.setLocation=function(t){var c=(0,U.pi)({},t);this.update(c)},f.prototype.getLocation=function(){var t=this,c={},v=this.get("locationType"),m=X1[v];return(0,D.S6)(m,function(b){c[b]=t.get(b)}),c},f.prototype.isList=function(){return!1},f.prototype.isSlider=function(){return!1},f.prototype.init=function(){},f.prototype.initCfg=function(){var t=this,c=this.get("defaultCfg");(0,D.S6)(c,function(v,m){var b=t.get(m);if((0,D.Kn)(b)){var M=(0,D.b$)({},v,b);t.set(m,M)}})},f}(et.Base),Gy=Dd,Nu="update_status",Uv=["visible","tip","delegateObject"],$y=["container","group","shapesMap","isRegister","isUpdating","destroyed"],Uy=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},f.prototype.remove=function(){this.clear();var t=this.get("group");t.remove()},f.prototype.clear=function(){var t=this.get("group");t.clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},f.prototype.getChildComponentById=function(t){var c=this.getElementById(t),v=c&&c.get("component");return v},f.prototype.getElementById=function(t){return this.get("shapesMap")[t]},f.prototype.getElementByLocalId=function(t){var c=this.getElementId(t);return this.getElementById(c)},f.prototype.getElementsByName=function(t){var c=[];return(0,D.S6)(this.get("shapesMap"),function(v){v.get("name")===t&&c.push(v)}),c},f.prototype.getContainer=function(){return this.get("container")},f.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},f.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var c=this.get("group");this.updateElements(t,c),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},f.prototype.show=function(){var t=this.get("group");t.show(),this.set("visible",!0)},f.prototype.hide=function(){var t=this.get("group");t.hide(),this.set("visible",!1)},f.prototype.setCapture=function(t){var c=this.get("group");c.set("capture",t),this.set("capture",t)},f.prototype.destroy=function(){this.removeEvent(),this.remove(),h.prototype.destroy.call(this)},f.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},f.prototype.getLayoutBBox=function(){var t=this.get("group"),c=this.getInnerLayoutBBox(),v=t.getTotalMatrix();return v&&(c=Jp(v,c)),c},f.prototype.on=function(t,c,v){var m=this.get("group");return m.on(t,c,v),this},f.prototype.off=function(t,c){var v=this.get("group");return v&&v.off(t,c),this},f.prototype.emit=function(t,c){var v=this.get("group");v.emit(t,c)},f.prototype.init=function(){h.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},f.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},f.prototype.delegateEmit=function(t,c){var v=this.get("group");c.target=v,v.emit(t,c),xu(v,t,c)},f.prototype.createOffScreenGroup=function(){var t=this.get("group"),c=t.getGroupBase(),v=new c({delegateObject:this.getDelegateObject()});return v},f.prototype.applyOffset=function(){var t=this.get("offsetX"),c=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:c})},f.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},f.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",$v(t)),t},f.prototype.addGroup=function(t,c){this.appendDelegateObject(t,c);var v=t.addGroup(c);return this.get("isRegister")&&this.registerElement(v),v},f.prototype.addShape=function(t,c){this.appendDelegateObject(t,c);var v=t.addShape(c);return this.get("isRegister")&&this.registerElement(v),v},f.prototype.addComponent=function(t,c){var v=c.id,m=c.component,b=(0,U._T)(c,["id","component"]),M=new m((0,U.pi)((0,U.pi)({},b),{id:v,container:t,updateAutoRender:this.get("updateAutoRender")}));return M.init(),M.render(),this.get("isRegister")&&this.registerElement(M.get("group")),M},f.prototype.initEvent=function(){},f.prototype.removeEvent=function(){var t=this.get("group");t.off()},f.prototype.getElementId=function(t){var c=this.get("id"),v=this.get("name");return c+"-"+v+"-"+t},f.prototype.registerElement=function(t){var c=t.get("id");this.get("shapesMap")[c]=t},f.prototype.unregisterElement=function(t){var c=t.get("id");delete this.get("shapesMap")[c]},f.prototype.moveElementTo=function(t,c){var v=ku(c);t.attr("matrix",v)},f.prototype.addAnimation=function(t,c,v){var m=c.attr("opacity");(0,D.UM)(m)&&(m=1),c.attr("opacity",0),c.animate({opacity:m},v)},f.prototype.removeAnimation=function(t,c,v){c.animate({opacity:0},v)},f.prototype.updateAnimation=function(t,c,v,m){c.animate(v,m)},f.prototype.updateElements=function(t,c){var v=this,m=this.get("animate"),b=this.get("animateOption"),M=t.getChildren().slice(0),A;(0,D.S6)(M,function(B){var H=B.get("id"),W=v.getElementById(H),Y=B.get("name");if(W)if(B.get("isComponent")){var Q=B.get("component"),te=W.get("component"),he=(0,D.ei)(Q.cfg,(0,D.e5)((0,D.XP)(Q.cfg),$y));te.update(he),W.set(Nu,"update")}else{var Ee=v.getReplaceAttrs(W,B);m&&b.update?v.updateAnimation(Y,W,Ee,b.update):W.attr(Ee),B.isGroup()&&v.updateElements(B,W),(0,D.S6)(Uv,function(ht){W.set(ht,B.get(ht))}),V1(W,B),A=W,W.set(Nu,"update")}else{c.add(B);var Fe=c.getChildren();if(Fe.splice(Fe.length-1,1),A){var qe=Fe.indexOf(A);Fe.splice(qe+1,0,B)}else Fe.unshift(B);if(v.registerElement(B),B.set(Nu,"add"),B.get("isComponent")){var Q=B.get("component");Q.set("container",c)}else B.isGroup()&&v.registerNewGroup(B);if(A=B,m){var nt=v.get("isInit")?b.appear:b.enter;nt&&v.addAnimation(Y,B,nt)}}})},f.prototype.clearUpdateStatus=function(t){var c=t.getChildren();(0,D.S6)(c,function(v){v.set(Nu,null)})},f.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},f.prototype.getDelegateObject=function(){var t,c=this.get("name"),v=(t={},t[c]=this,t.component=this,t);return v},f.prototype.appendDelegateObject=function(t,c){var v=t.get("delegateObject");c.delegateObject||(c.delegateObject={}),(0,D.CD)(c.delegateObject,v)},f.prototype.getReplaceAttrs=function(t,c){var v=t.attr(),m=c.attr();return(0,D.S6)(v,function(b,M){m[M]===void 0&&(m[M]=void 0)}),m},f.prototype.registerNewGroup=function(t){var c=this,v=t.getChildren();(0,D.S6)(v,function(m){c.registerElement(m),m.set(Nu,"add"),m.isGroup()&&c.registerNewGroup(m)})},f.prototype.deleteElements=function(){var t=this,c=this.get("shapesMap"),v=[];(0,D.S6)(c,function(M,A){!M.get(Nu)||M.destroyed?v.push([A,M]):M.set(Nu,null)});var m=this.get("animate"),b=this.get("animateOption");(0,D.S6)(v,function(M){var A=M[0],B=M[1];if(!B.destroyed){var H=B.get("name");if(m&&b.leave){var W=(0,D.CD)({callback:function(){t.removeElement(B)}},b.leave);t.removeAnimation(H,B,W)}else t.removeElement(B)}delete c[A]})},f.prototype.removeElement=function(t){if(t.get("isGroup")){var c=t.get("component");c&&c.destroy()}t.remove()},f}(Gy),Bl=Uy,Su="\u2026";function Wc(h){for(var f=0,t=0;t0&&h.charCodeAt(f)<128?1:2}function So(h,f,t){t===void 0&&(t="tail");var c=h.length,v="";if(t==="tail"){for(var m=0,b=0;m=19968&&M<=40869?m+=2:m+=1}m>t&&(t=m,c=v)}return h[c].getBBox().width}function Hu(h){if(h.length>Ld)return Zh(h);var f=0;return(0,D.S6)(h,function(t){var c=t.getBBox(),v=c.width;f=0?Y=So(m,W,c):Y=Yv,Y&&(f.attr("text",Y),H=!0)}return H?f.set("tip",m):f.set("tip",null),H}function Jf(h,f){var t=f.x,c=f.y,v=f.content,m=f.style,b=f.id,M=f.name,A=f.rotate,B=f.maxLength,H=f.autoEllipsis,W=f.isVertical,Y=f.ellipsisPosition,Q=f.background,te=h.addGroup({id:b+"-group",name:M+"-group",attrs:{x:t,y:c}}),he=te.addShape({type:"text",id:b,name:M,attrs:(0,U.pi)({x:0,y:0,text:v},m)}),Ee=Fu((0,D.U2)(Q,"padding",0));if(B&&H){var Fe=B-(Ee[1]+Ee[3]);Qf(!W,he,Fe,Y)}if(Q){var qe=(0,D.U2)(Q,"style",{}),nt=he.getCanvasBBox(),ht=nt.minX,Jt=nt.minY,Er=nt.width,Or=nt.height,Rr=te.addShape("rect",{id:b+"-bg",name:b+"-bg",attrs:(0,U.pi)({x:ht-Ee[3],y:Jt-Ee[0],width:Er+Ee[1]+Ee[3],height:Or+Ee[0]+Ee[2]},qe)});Rr.toBack()}Wv(te,t,c),zv(te,A,t,c)}var Di={fontFamily:` + BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", + Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", + SimSun, "sans-serif"`,textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"},Pd=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:Di.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:Di.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:Di.lineColor,lineWidth:1}}}})},f.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},f.prototype.renderLine=function(t){var c=this.get("start"),v=this.get("end"),m=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:(0,U.pi)({x1:c.x,y1:c.y,x2:v.x,y2:v.y},m)})},f.prototype.getLabelPoint=function(t,c,v){var m;return v==="start"?m=0:v==="center"?m=.5:(0,D.HD)(v)&&v.indexOf("%")!==-1?m=parseInt(v,10)/100:(0,D.hj)(v)?m=v:m=1,(m>1||m<0)&&(m=1),{x:Ss(t.x,c.x,m),y:Ss(t.y,c.y,m)}},f.prototype.renderLabel=function(t){var c=this.get("text"),v=this.get("start"),m=this.get("end"),b=c.position,M=c.content,A=c.style,B=c.offsetX,H=c.offsetY,W=c.autoRotate,Y=c.maxLength,Q=c.autoEllipsis,te=c.ellipsisPosition,he=c.background,Ee=c.isVertical,Fe=Ee===void 0?!1:Ee,qe=this.getLabelPoint(v,m,b),nt=qe.x+B,ht=qe.y+H,Jt={id:this.getElementId("line-text"),name:"annotation-line-text",x:nt,y:ht,content:M,style:A,maxLength:Y,autoEllipsis:Q,ellipsisPosition:te,background:he,isVertical:Fe};if(W){var Er=[m.x-v.x,m.y-v.y];Jt.rotate=Math.atan2(Er[1],Er[0])}Jf(t,Jt)},f}(Bl),Z1=Pd,K1=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:Di.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:Di.fontFamily}}})},f.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},f.prototype.renderInner=function(t){var c=this.getLocation(),v=c.x,m=c.y,b=this.get("content"),M=this.get("style"),A=this.getElementId("text"),B=this.get("name")+"-text",H=this.get("maxLength"),W=this.get("autoEllipsis"),Y=this.get("isVertical"),Q=this.get("ellipsisPosition"),te=this.get("background"),he=this.get("rotate"),Ee={id:A,name:B,x:v,y:m,content:b,style:M,maxLength:H,autoEllipsis:W,isVertical:Y,ellipsisPosition:Q,background:te,rotate:he};Jf(t,Ee)},f.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var c=this.getLocation(),v=c.x,m=c.y,b=this.get("rotate");Wv(t,v,m),zv(t,b,v,m)}},f}(Bl),Ax=K1,Gc=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2,style:{stroke:"#999",lineWidth:1}})},f.prototype.renderInner=function(t){this.renderArc(t)},f.prototype.getArcPath=function(){var t=this.getLocation(),c=t.center,v=t.radius,m=t.startAngle,b=t.endAngle,M=Vh(c,v,m),A=Vh(c,v,b),B=b-m>Math.PI?1:0,H=[["M",M.x,M.y]];if(b-m===Math.PI*2){var W=Vh(c,v,m+Math.PI);H.push(["A",v,v,0,B,1,W.x,W.y]),H.push(["A",v,v,0,B,1,A.x,A.y])}else H.push(["A",v,v,0,B,1,A.x,A.y]);return H},f.prototype.renderArc=function(t){var c=this.getArcPath(),v=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:(0,U.pi)({path:c},v)})},f}(Bl),Yy=Gc,Bd=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:Di.regionColor,opacity:.4}}})},f.prototype.renderInner=function(t){this.renderRegion(t)},f.prototype.renderRegion=function(t){var c=this.get("start"),v=this.get("end"),m=this.get("style"),b=jh({start:c,end:v});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:(0,U.pi)({x:b.x,y:b.y,width:b.width,height:b.height},m)})},f}(Bl),b0=Bd,w0=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},f.prototype.renderInner=function(t){this.renderImage(t)},f.prototype.getImageAttrs=function(){var t=this.get("start"),c=this.get("end"),v=this.get("style"),m=jh({start:t,end:c}),b=this.get("src");return(0,U.pi)({x:m.x,y:m.y,img:b,width:m.width,height:m.height},v)},f.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},f}(Bl),jv=w0,jy=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:Di.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:Di.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:Di.fontFamily}}}})},f.prototype.renderInner=function(t){(0,D.U2)(this.get("line"),"display")&&this.renderLine(t),(0,D.U2)(this.get("text"),"display")&&this.renderText(t),(0,D.U2)(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},f.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},f.prototype.renderPoint=function(t){var c=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:c})},f.prototype.renderLine=function(t){var c=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:c})},f.prototype.renderText=function(t){var c=this.getShapeAttrs().text,v=c.x,m=c.y,b=c.text,M=(0,U._T)(c,["x","y","text"]),A=this.get("text"),B=A.background,H=A.maxLength,W=A.autoEllipsis,Y=A.isVertival,Q=A.ellipsisPosition,te={x:v,y:m,id:this.getElementId("text"),name:"annotation-text",content:b,style:M,background:B,maxLength:H,autoEllipsis:W,isVertival:Y,ellipsisPosition:Q};Jf(t,te)},f.prototype.autoAdjust=function(t){var c=this.get("direction"),v=this.get("x"),m=this.get("y"),b=(0,D.U2)(this.get("line"),"length",0),M=this.get("coordinateBBox"),A=t.getBBox(),B=A.minX,H=A.maxX,W=A.minY,Y=A.maxY,Q=t.findById(this.getElementId("text-group")),te=t.findById(this.getElementId("text")),he=t.findById(this.getElementId("line"));if(M&&Q){var Ee=Q.attr("x"),Fe=Q.attr("y"),qe=te.getCanvasBBox(),nt=qe.width,ht=qe.height,Jt=0,Er=0;if(v+B<=M.minX)if(c==="leftward")Jt=1;else{var Or=M.minX-(v+B);Ee=Q.attr("x")+Or}else if(v+H>=M.maxX)if(c==="rightward")Jt=-1;else{var Or=v+H-M.maxX;Ee=Q.attr("x")-Or}if(Jt&&(he&&he.attr("path",[["M",0,0],["L",b*Jt,0]]),Ee=(b+2+nt)*Jt),m+W<=M.minY)if(c==="upward")Er=1;else{var Or=M.minY-(m+W);Fe=Q.attr("y")+Or}else if(m+Y>=M.maxY)if(c==="downward")Er=-1;else{var Or=m+Y-M.maxY;Fe=Q.attr("y")-Or}Er&&(he&&he.attr("path",[["M",0,0],["L",0,b*Er]]),Fe=(b+2+ht)*Er),(Ee!==Q.attr("x")||Fe!==Q.attr("y"))&&Wv(Q,Ee,Fe)}},f.prototype.getShapeAttrs=function(){var t=(0,D.U2)(this.get("line"),"display"),c=(0,D.U2)(this.get("point"),"style",{}),v=(0,D.U2)(this.get("line"),"style",{}),m=(0,D.U2)(this.get("text"),"style",{}),b=this.get("direction"),M=t?(0,D.U2)(this.get("line"),"length",0):0,A=0,B=0,H="top",W="start";switch(b){case"upward":B=-1,H="bottom";break;case"downward":B=1,H="top";break;case"leftward":A=-1,W="end";break;case"rightward":A=1,W="start";break}return{point:(0,U.pi)({x:0,y:0},c),line:(0,U.pi)({path:[["M",0,0],["L",M*A,M*B]]},v),text:(0,U.pi)({x:(M+2)*A,y:(M+2)*B,text:(0,D.U2)(this.get("text"),"content",""),textBaseline:H,textAlign:W},m)}},f}(Bl),vc=jy,Vv=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:Di.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:Di.textColor,fontFamily:Di.fontFamily}}}})},f.prototype.renderInner=function(t){var c=(0,D.U2)(this.get("region"),"style",{}),v=(0,D.U2)(this.get("text"),"style",{}),m=this.get("lineLength")||0,b=this.get("points");if(b.length){var M=eg(b),A=[];A.push(["M",b[0].x,M.minY-m]),b.forEach(function(H){A.push(["L",H.x,H.y])}),A.push(["L",b[b.length-1].x,b[b.length-1].y-m]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:(0,U.pi)({path:A},c)});var B=(0,U.pi)({id:this.getElementId("text"),name:"annotation-text",x:(M.minX+M.maxX)/2,y:M.minY-m},this.get("text"));Jf(t,B)}},f}(Bl),Vy=Vv,zu=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},f.prototype.renderInner=function(t){var c=this,v=this.get("start"),m=this.get("end"),b=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});(0,D.S6)(this.get("shapes"),function(A,B){var H=A.get("type"),W=(0,D.d9)(A.attr());c.adjustShapeAttrs(W),c.addShape(b,{id:c.getElementId("shape-"+H+"-"+B),capture:!1,type:H,attrs:W})});var M=jh({start:v,end:m});b.setClip({type:"rect",attrs:{x:M.minX,y:M.minY,width:M.width,height:M.height}})},f.prototype.adjustShapeAttrs=function(t){var c=this.get("color");t.fill&&(t.fill=t.fillStyle=c),t.stroke=t.strokeStyle=c},f}(Bl),x0=zu,Ix=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{name:"annotation",type:"shape",draw:D.ZT})},f.prototype.renderInner=function(t){var c=this.get("render");(0,D.mf)(c)&&c(t)},f}(Bl),q1=Ix;function ru(h,f,t){var c;try{c=window.getComputedStyle?window.getComputedStyle(h,null)[f]:h.style[f]}catch(v){}finally{c=c===void 0?t:c}return c}function Q1(h,f){var t=ru(h,"width",f);return t==="auto"&&(t=h.offsetWidth),parseFloat(t)}function kd(h,f){var t=Q1(h,f),c=parseFloat(ru(h,"borderLeftWidth"))||0,v=parseFloat(ru(h,"paddingLeft"))||0,m=parseFloat(ru(h,"paddingRight"))||0,b=parseFloat(ru(h,"borderRightWidth"))||0,M=parseFloat(ru(h,"marginRight"))||0,A=parseFloat(ru(h,"marginLeft"))||0;return t+c+b+v+m+A+M}function Fd(h,f){var t=ru(h,"height",f);return t==="auto"&&(t=h.offsetHeight),parseFloat(t)}function J1(h,f){var t=Fd(h,f),c=parseFloat(ru(h,"borderTopWidth"))||0,v=parseFloat(ru(h,"paddingTop"))||0,m=parseFloat(ru(h,"paddingBottom"))||0,b=parseFloat(ru(h,"borderBottomWidth"))||0,M=parseFloat(ru(h,"marginTop"))||0,A=parseFloat(ru(h,"marginBottom"))||0;return t+c+b+v+m+M+A}var Xy=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{container:null,containerTpl:"
",updateAutoRender:!0,containerClassName:"",parent:null})},f.prototype.getContainer=function(){return this.get("container")},f.prototype.show=function(){var t=this.get("container");t.style.display="",this.set("visible",!0)},f.prototype.hide=function(){var t=this.get("container");t.style.display="none",this.set("visible",!1)},f.prototype.setCapture=function(t){var c=this.getContainer(),v=t?"auto":"none";c.style.pointerEvents=v,this.set("capture",t)},f.prototype.getBBox=function(){var t=this.getContainer(),c=parseFloat(t.style.left)||0,v=parseFloat(t.style.top)||0;return lo(c,v,t.clientWidth,t.clientHeight)},f.prototype.clear=function(){var t=this.get("container");Gv(t)},f.prototype.destroy=function(){this.removeEvent(),this.removeDom(),h.prototype.destroy.call(this)},f.prototype.init=function(){h.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},f.prototype.initCapture=function(){this.setCapture(this.get("capture"))},f.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},f.prototype.initDom=function(){},f.prototype.initContainer=function(){var t=this.get("container");if((0,D.UM)(t)){t=this.createDom();var c=this.get("parent");(0,D.HD)(c)&&(c=document.getElementById(c),this.set("parent",c)),c.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else(0,D.HD)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},f.prototype.resetStyles=function(){var t=this.get("domStyles"),c=this.get("defaultStyles");t?t=(0,D.b$)({},c,t):t=c,this.set("domStyles",t)},f.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var c=this.getContainer();this.applyChildrenStyles(c,t);var v=this.get("containerClassName");if(v&&Jl(c,v)){var m=t[v];Vt(c,m)}}},f.prototype.applyChildrenStyles=function(t,c){(0,D.S6)(c,function(v,m){var b=t.getElementsByClassName(m);(0,D.S6)(b,function(M){Vt(M,v)})})},f.prototype.applyStyle=function(t,c){var v=this.get("domStyles");Vt(c,v[t])},f.prototype.createDom=function(){var t=this.get("containerTpl");return zt(t)},f.prototype.initEvent=function(){},f.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},f.prototype.removeEvent=function(){},f.prototype.updateInner=function(t){(0,D.wH)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},f.prototype.resetPosition=function(){},f}(Gy),eh=Xy,eb=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'
',alignX:"left",alignY:"top",html:"",zIndex:7})},f.prototype.render=function(){var t=this.getContainer(),c=this.get("html");Gv(t);var v=(0,D.mf)(c)?c(t):c;if((0,D.kK)(v))t.appendChild(v);else if((0,D.HD)(v)||(0,D.hj)(v)){var m=zt(""+v);m&&t.appendChild(m)}this.resetPosition()},f.prototype.resetPosition=function(){var t=this.getContainer(),c=this.getLocation(),v=c.x,m=c.y,b=this.get("alignX"),M=this.get("alignY"),A=this.get("offsetX"),B=this.get("offsetY"),H=kd(t),W=J1(t),Y={x:v,y:m};b==="middle"?Y.x-=Math.round(H/2):b==="right"&&(Y.x-=Math.round(H)),M==="middle"?Y.y-=Math.round(W/2):M==="bottom"&&(Y.y-=Math.round(W)),A&&(Y.x+=A),B&&(Y.y+=B),Vt(t,{position:"absolute",left:Y.x+"px",top:Y.y+"px",zIndex:this.get("zIndex")})},f}(eh),Zy=eb;function Wu(h,f,t){var c=f+"Style",v=null;return(0,D.S6)(t,function(m,b){h[b]&&m[c]&&(v||(v={}),(0,D.CD)(v,m[c]))}),v}var S0=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:Di.lineColor}},tickLine:{style:{lineWidth:1,stroke:Di.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:Di.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:Di.textColor,fontFamily:Di.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:Di.textColor,textBaseline:"middle",fontFamily:Di.fontFamily,textAlign:"center"},iconStyle:{fill:Di.descriptionIconFill,stroke:Di.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:Di.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},f.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},f.prototype.isList=function(){return!0},f.prototype.getItems=function(){return this.get("ticks")},f.prototype.setItems=function(t){this.update({ticks:t})},f.prototype.updateItem=function(t,c){(0,D.CD)(t,c),this.clear(),this.render()},f.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},f.prototype.setItemState=function(t,c,v){t[c]=v,this.updateTickStates(t)},f.prototype.hasState=function(t,c){return!!t[c]},f.prototype.getItemStates=function(t){var c=this.get("tickStates"),v=[];return(0,D.S6)(c,function(m,b){t[b]&&v.push(b)}),v},f.prototype.clearItemsState=function(t){var c=this,v=this.getItemsByState(t);(0,D.S6)(v,function(m){c.setItemState(m,t,!1)})},f.prototype.getItemsByState=function(t){var c=this,v=this.getItems();return(0,D.hX)(v,function(m){return c.hasState(m,t)})},f.prototype.getSidePoint=function(t,c){var v=this,m=v.getSideVector(c,t);return{x:t.x+m[0],y:t.y+m[1]}},f.prototype.getTextAnchor=function(t){var c;return(0,D.vQ)(t[0],0)?c="center":t[0]>0?c="start":t[0]<0&&(c="end"),c},f.prototype.getTextBaseline=function(t){var c;return(0,D.vQ)(t[1],0)?c="middle":t[1]>0?c="top":t[1]<0&&(c="bottom"),c},f.prototype.processOverlap=function(t){},f.prototype.drawLine=function(t){var c=this.getLinePath(),v=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:(0,D.CD)({path:c},v.style)})},f.prototype.getTickLineItems=function(t){var c=this,v=[],m=this.get("tickLine"),b=m.alignTick,M=m.length,A=1,B=t.length;return B>=2&&(A=t[1].value-t[0].value),(0,D.S6)(t,function(H){var W=H.point;b||(W=c.getTickPoint(H.value-A/2));var Y=c.getSidePoint(W,M);v.push({startPoint:W,tickValue:H.value,endPoint:Y,tickId:H.id,id:"tickline-"+H.id})}),v},f.prototype.getSubTickLineItems=function(t){var c=[],v=this.get("subTickLine"),m=v.count,b=t.length;if(b>=2)for(var M=0;M0){var v=(0,D.dp)(c);if(v>t.threshold){var m=Math.ceil(v/t.threshold),b=c.filter(function(M,A){return A%m===0});this.set("ticks",b),this.set("originalTicks",c)}}},f.prototype.getLabelAttrs=function(t,c,v){var m=this.get("label"),b=m.offset,M=m.offsetX,A=m.offsetY,B=m.rotate,H=m.formatter,W=this.getSidePoint(t.point,b),Y=this.getSideVector(b,W),Q=H?H(t.name,t,c):t.name,te=m.style;te=(0,D.mf)(te)?(0,D.U2)(this.get("theme"),["label","style"],{}):te;var he=(0,D.CD)({x:W.x+M,y:W.y+A,text:Q,textAlign:this.getTextAnchor(Y),textBaseline:this.getTextBaseline(Y)},te);return B&&(he.matrix=Xf(W,B)),he},f.prototype.drawLabels=function(t){var c=this,v=this.get("ticks"),m=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});(0,D.S6)(v,function(Y,Q){c.addShape(m,{type:"text",name:"axis-label",id:c.getElementId("label-"+Y.id),attrs:c.getLabelAttrs(Y,Q,v),delegateObject:{tick:Y,item:Y,index:Q}})}),this.processOverlap(m);var b=m.getChildren(),M=(0,D.U2)(this.get("theme"),["label","style"],{}),A=this.get("label"),B=A.style,H=A.formatter;if((0,D.mf)(B)){var W=b.map(function(Y){return(0,D.U2)(Y.get("delegateObject"),"tick")});(0,D.S6)(b,function(Y,Q){var te=Y.get("delegateObject").tick,he=H?H(te.name,te,Q):te.name,Ee=(0,D.CD)({},M,B(he,Q,W));Y.attr(Ee)})}},f.prototype.getTitleAttrs=function(){var t=this.get("title"),c=t.style,v=t.position,m=t.offset,b=t.spacing,M=b===void 0?0:b,A=t.autoRotate,B=c.fontSize,H=.5;v==="start"?H=0:v==="end"&&(H=1);var W=this.getTickPoint(H),Y=this.getSidePoint(W,m||M+B/2),Q=(0,D.CD)({x:Y.x,y:Y.y,text:t.text},c),te=t.rotate,he=te;if((0,D.UM)(te)&&A){var Ee=this.getAxisVector(W),Fe=[1,0];he=La.Dg(Ee,Fe,!0)}if(he){var qe=Xf(Y,he);Q.matrix=qe}return Q},f.prototype.drawTitle=function(t){var c,v=this.getTitleAttrs(),m=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:v});!((c=this.get("title"))===null||c===void 0)&&c.description&&this.drawDescriptionIcon(t,m,v.matrix)},f.prototype.drawDescriptionIcon=function(t,c,v){var m=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),b=c.getBBox(),M=b.maxX,A=b.maxY,B=b.height,H=this.get("title").iconStyle,W=4,Y=B/2,Q=Y/6,te=M+W,he=A-B/2,Ee=[te+Y,he-Y],Fe=Ee[0],qe=Ee[1],nt=[Fe+Y,qe+Y],ht=nt[0],Jt=nt[1],Er=[Fe,Jt+Y],Or=Er[0],Rr=Er[1],tn=[te,qe+Y],ln=tn[0],Zn=tn[1],ei=[te+Y,he-B/4],Yi=ei[0],Ea=ei[1],io=[Yi,Ea+Q],Iu=io[0],ds=io[1],Lc=[Iu,ds+Q],Po=Lc[0],sf=Lc[1],pv=[Po,sf+Y*3/4],A1=pv[0],lx=pv[1];this.addShape(m,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:(0,U.pi)({path:[["M",Fe,qe],["A",Y,Y,0,0,1,ht,Jt],["A",Y,Y,0,0,1,Or,Rr],["A",Y,Y,0,0,1,ln,Zn],["A",Y,Y,0,0,1,Fe,qe],["M",Yi,Ea],["L",Iu,ds],["M",Po,sf],["L",A1,lx]],lineWidth:Q,matrix:v},H)}),this.addShape(m,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:te,y:he-B/2,width:B,height:B,stroke:"#000",fill:"#000",opacity:0,matrix:v,cursor:"pointer"}})},f.prototype.applyTickStates=function(t,c){var v=this.getItemStates(t);if(v.length){var m=this.get("tickStates"),b=this.getElementId("label-"+t.id),M=c.findById(b);if(M){var A=Wu(t,"label",m);A&&M.attr(A)}var B=this.getElementId("tickline-"+t.id),H=c.findById(B);if(H){var W=Wu(t,"tickLine",m);W&&H.attr(W)}}},f.prototype.updateTickStates=function(t){var c=this.getItemStates(t),v=this.get("tickStates"),m=this.get("label"),b=this.getElementByLocalId("label-"+t.id),M=this.get("tickLine"),A=this.getElementByLocalId("tickline-"+t.id);if(c.length){if(b){var B=Wu(t,"label",v);B&&b.attr(B)}if(A){var H=Wu(t,"tickLine",v);H&&A.attr(H)}}else b&&b.attr(m.style),A&&A.attr(M.style)},f}(Bl),tb=S0;function Ky(h,f,t,c){var v=f.getChildren(),m=!1;return(0,D.S6)(v,function(b){var M=Qf(h,b,t,c);m=m||M}),m}function ng(){return qy}function _0(h,f,t){return Ky(h,f,t,"head")}function qy(h,f,t){return Ky(h,f,t,"tail")}function ig(h,f,t){return Ky(h,f,t,"middle")}function E0(h){var f=h.attr("matrix");return f&&f[0]!==1}function pc(h){var f=E0(h)?C0(h.attr("matrix")):0;return f%360}function mf(h,f,t,c){var v=!1,m=pc(f),b=Math.abs(h?t.attr("y")-f.attr("y"):t.attr("x")-f.attr("x")),M=(h?t.attr("y")>f.attr("y"):t.attr("x")>f.attr("x"))?f.getBBox():t.getBBox();if(h){var A=Math.abs(Math.cos(m));Xh(A,0,Math.PI/180)?v=M.width+c>b:v=M.height/A+c>b}else{var A=Math.abs(Math.sin(m));Xh(A,0,Math.PI/180)?v=M.width+c>b:v=M.height/A+c>b}return v}function $c(h,f,t,c){var v=(c==null?void 0:c.minGap)||0,m=f.getChildren().slice().filter(function(te){return te.get("visible")});if(!m.length)return!1;var b=!1;t&&m.reverse();for(var M=m.length,A=m[0],B=A,H=1;H1){Y=Math.ceil(Y);for(var he=0;he2){var b=v[0],M=v[v.length-1];b.get("visible")||(b.show(),$c(h,f,!1,c)&&(m=!0)),M.get("visible")||(M.show(),$c(h,f,!0,c)&&(m=!0))}return m}function Pa(h,f){(0,D.S6)(h,function(t){var c=t.attr("x"),v=t.attr("y"),m=Xf({x:c,y:v},f);t.attr("matrix",m)})}function F(h,f,t,c){var v=f.getChildren();if(!v.length||!h&&v.length<2)return!1;var m=Hu(v),b=!1;if(h)b=!!t&&m>t;else{var M=Math.abs(v[1].attr("x")-v[0].attr("x"));b=m>M}if(b){var A=c(t,m);Pa(v,A)}return b}function X(){return se}function se(h,f,t,c){return F(h,f,t,function(){return(0,D.hj)(c)?c:h?Di.verticalAxisRotate:Di.horizontalAxisRotate})}function ge(h,f,t){return F(h,f,t,function(c,v){if(!c)return h?Di.verticalAxisRotate:Di.horizontalAxisRotate;if(h)return-Math.acos(c/v);var m=0;return c>v?m=Math.PI/4:(m=Math.asin(c/v),m>Math.PI/4&&(m=Math.PI/4)),m})}var Xe=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{type:"line",locationType:"region",start:null,end:null})},f.prototype.getLinePath=function(){var t=this.get("start"),c=this.get("end"),v=[];return v.push(["M",t.x,t.y]),v.push(["L",c.x,c.y]),v},f.prototype.getInnerLayoutBBox=function(){var t=this.get("start"),c=this.get("end"),v=h.prototype.getInnerLayoutBBox.call(this),m=Math.min(t.x,c.x,v.x),b=Math.min(t.y,c.y,v.y),M=Math.max(t.x,c.x,v.maxX),A=Math.max(t.y,c.y,v.maxY);return{x:m,y:b,minX:m,minY:b,maxX:M,maxY:A,width:M-m,height:A-b}},f.prototype.isVertical=function(){var t=this.get("start"),c=this.get("end");return(0,D.vQ)(t.x,c.x)},f.prototype.isHorizontal=function(){var t=this.get("start"),c=this.get("end");return(0,D.vQ)(t.y,c.y)},f.prototype.getTickPoint=function(t){var c=this,v=c.get("start"),m=c.get("end"),b=m.x-v.x,M=m.y-v.y;return{x:v.x+b*t,y:v.y+M*t}},f.prototype.getSideVector=function(t){var c=this.getAxisVector(),v=Ki.Fv([0,0],c),m=this.get("verticalFactor"),b=[v[1],v[0]*-1];return Ki.bA([0,0],b,t*m)},f.prototype.getAxisVector=function(){var t=this.get("start"),c=this.get("end");return[c.x-t.x,c.y-t.y]},f.prototype.processOverlap=function(t){var c=this,v=this.isVertical(),m=this.isHorizontal();if(!(!v&&!m)){var b=this.get("label"),M=this.get("title"),A=this.get("verticalLimitLength"),B=b.offset,H=A,W=0,Y=0;M&&(W=M.style.fontSize,Y=M.spacing),H&&(H=H-B-Y-W);var Q=this.get("overlapOrder");if((0,D.S6)(Q,function(Ee){b[Ee]&&c.canProcessOverlap(Ee)&&c.autoProcessOverlap(Ee,b[Ee],t,H)}),M&&(0,D.UM)(M.offset)){var te=t.getCanvasBBox(),he=v?te.width:te.height;M.offset=B+he+Y+W/2}}},f.prototype.canProcessOverlap=function(t){var c=this.get("label");return t==="autoRotate"?(0,D.UM)(c.rotate):!0},f.prototype.autoProcessOverlap=function(t,c,v,m){var b=this,M=this.isVertical(),A=!1,B=re[t];if(c===!0){var H=this.get("label");A=B.getDefault()(M,v,m)}else if((0,D.mf)(c))A=c(M,v,m);else if((0,D.Kn)(c)){var W=c;B[W.type]&&(A=B[W.type](M,v,m,W.cfg))}else B[c]&&(A=B[c](M,v,m));if(t==="autoRotate"){if(A){var Y=v.getChildren(),Q=this.get("verticalFactor");(0,D.S6)(Y,function(he){var Ee=he.attr("textAlign");if(Ee==="center"){var Fe=Q>0?"end":"start";he.attr("textAlign",Fe)}})}}else if(t==="autoHide"){var te=v.getChildren().slice(0);(0,D.S6)(te,function(he){he.get("visible")||(b.get("isRegister")&&b.unregisterElement(he),he.remove())})}},f}(tb),or=Xe,Yr=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},f.prototype.getLinePath=function(){var t=this.get("center"),c=t.x,v=t.y,m=this.get("radius"),b=m,M=this.get("startAngle"),A=this.get("endAngle"),B=[];if(Math.abs(A-M)===Math.PI*2)B=[["M",c,v-b],["A",m,b,0,1,1,c,v+b],["A",m,b,0,1,1,c,v-b],["Z"]];else{var H=this.getCirclePoint(M),W=this.getCirclePoint(A),Y=Math.abs(A-M)>Math.PI?1:0,Q=M>A?0:1;B=[["M",c,v],["L",H.x,H.y],["A",m,b,0,Y,Q,W.x,W.y],["L",c,v]]}return B},f.prototype.getTickPoint=function(t){var c=this.get("startAngle"),v=this.get("endAngle"),m=c+(v-c)*t;return this.getCirclePoint(m)},f.prototype.getSideVector=function(t,c){var v=this.get("center"),m=[c.x-v.x,c.y-v.y],b=this.get("verticalFactor"),M=Ki.kE(m);return Ki.bA(m,m,b*t/M),m},f.prototype.getAxisVector=function(t){var c=this.get("center"),v=[t.x-c.x,t.y-c.y];return[v[1],-1*v[0]]},f.prototype.getCirclePoint=function(t,c){var v=this.get("center");return c=c||this.get("radius"),{x:v.x+Math.cos(t)*c,y:v.y+Math.sin(t)*c}},f.prototype.canProcessOverlap=function(t){var c=this.get("label");return t==="autoRotate"?(0,D.UM)(c.rotate):!0},f.prototype.processOverlap=function(t){var c=this,v=this.get("label"),m=this.get("title"),b=this.get("verticalLimitLength"),M=v.offset,A=b,B=0,H=0;m&&(B=m.style.fontSize,H=m.spacing),A&&(A=A-M-H-B);var W=this.get("overlapOrder");if((0,D.S6)(W,function(Q){v[Q]&&c.canProcessOverlap(Q)&&c.autoProcessOverlap(Q,v[Q],t,A)}),m&&(0,D.UM)(m.offset)){var Y=t.getCanvasBBox().height;m.offset=M+Y+H+B/2}},f.prototype.autoProcessOverlap=function(t,c,v,m){var b=this,M=!1,A=re[t];if(m>0)if(c===!0)M=A.getDefault()(!1,v,m);else if((0,D.mf)(c))M=c(!1,v,m);else if((0,D.Kn)(c)){var B=c;A[B.type]&&(M=A[B.type](!1,v,m,B.cfg))}else A[c]&&(M=A[c](!1,v,m));if(t==="autoRotate"){if(M){var H=v.getChildren(),W=this.get("verticalFactor");(0,D.S6)(H,function(Q){var te=Q.attr("textAlign");if(te==="center"){var he=W>0?"end":"start";Q.attr("textAlign",he)}})}}else if(t==="autoHide"){var Y=v.getChildren().slice(0);(0,D.S6)(Y,function(Q){Q.get("visible")||(b.get("isRegister")&&b.unregisterElement(Q),Q.remove())})}},f}(tb),li=Yr,Ti=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:Di.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:Di.textColor,textAlign:"center",textBaseline:"middle",fontFamily:Di.fontFamily}},textBackground:{padding:5,style:{stroke:Di.lineColor}}}})},f.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},f.prototype.renderText=function(t){var c=this.get("text"),v=c.style,m=c.autoRotate,b=c.content;if(!(0,D.UM)(b)){var M=this.getTextPoint(),A=null;if(m){var B=this.getRotateAngle();A=Xf(M,B)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:(0,U.pi)((0,U.pi)((0,U.pi)({},M),{text:b,matrix:A}),v)})}},f.prototype.renderLine=function(t){var c=this.getLinePath(),v=this.get("line"),m=v.style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:(0,U.pi)({path:c},m)})},f.prototype.renderBackground=function(t){var c=this.getElementId("text"),v=t.findById(c),m=this.get("textBackground");if(m&&v){var b=v.getBBox(),M=Fu(m.padding),A=m.style,B=this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:(0,U.pi)({x:b.x-M[3],y:b.y-M[0],width:b.width+M[1]+M[3],height:b.height+M[0]+M[2],matrix:v.attr("matrix")},A)});B.toBack()}},f}(Bl),Oa=Ti,Ws=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{type:"line",locationType:"region",start:null,end:null})},f.prototype.getRotateAngle=function(){var t=this.getLocation(),c=t.start,v=t.end,m=this.get("text").position,b=Math.atan2(v.y-c.y,v.x-c.x),M=m==="start"?b-Math.PI/2:b+Math.PI/2;return M},f.prototype.getTextPoint=function(){var t=this.getLocation(),c=t.start,v=t.end,m=this.get("text"),b=m.position,M=m.offset;return Kf(c,v,b,M)},f.prototype.getLinePath=function(){var t=this.getLocation(),c=t.start,v=t.end;return[["M",c.x,c.y],["L",v.x,v.y]]},f}(Oa),gc=Ws,th=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},f.prototype.getRotateAngle=function(){var t=this.getLocation(),c=t.startAngle,v=t.endAngle,m=this.get("text").position,b=m==="start"?c+Math.PI/2:v-Math.PI/2;return b},f.prototype.getTextPoint=function(){var t=this.get("text"),c=t.position,v=t.offset,m=this.getLocation(),b=m.center,M=m.radius,A=m.startAngle,B=m.endAngle,H=c==="start"?A:B,W=this.getRotateAngle()-Math.PI,Y=Vh(b,M,H),Q=Math.cos(W)*v,te=Math.sin(W)*v;return{x:Y.x+Q,y:Y.y+te}},f.prototype.getLinePath=function(){var t=this.getLocation(),c=t.center,v=t.radius,m=t.startAngle,b=t.endAngle,M=null;if(b-m===Math.PI*2){var A=c.x,B=c.y;M=[["M",A,B-v],["A",v,v,0,1,1,A,B+v],["A",v,v,0,1,1,A,B-v],["Z"]]}else{var H=Vh(c,v,m),W=Vh(c,v,b),Y=Math.abs(b-m)>Math.PI?1:0,Q=m>b?0:1;M=[["M",H.x,H.y],["A",v,v,0,Y,Q,W.x,W.y]]}return M},f}(Oa),nu=th,so="g2-crosshair",go=so+"-line",Qy=so+"-text",M0,ja=(M0={},M0[""+so]={position:"relative"},M0[""+go]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},M0[""+Qy]={position:"absolute",color:Di.textColor,fontFamily:Di.fontFamily},M0),I_=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'
',crosshairTpl:'
',textTpl:'{content}',domStyles:null,containerClassName:so,defaultStyles:ja,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},f.prototype.render=function(){this.resetText(),this.resetPosition()},f.prototype.initCrossHair=function(){var t=this.getContainer(),c=this.get("crosshairTpl"),v=zt(c);t.appendChild(v),this.applyStyle(go,v),this.set("crosshairEl",v)},f.prototype.getTextPoint=function(){var t=this.getLocation(),c=t.start,v=t.end,m=this.get("text"),b=m.position,M=m.offset;return Kf(c,v,b,M)},f.prototype.resetText=function(){var t=this.get("text"),c=this.get("textEl");if(t){var v=t.content;if(!c){var m=this.getContainer(),b=(0,D.ng)(this.get("textTpl"),t);c=zt(b),m.appendChild(c),this.applyStyle(Qy,c),this.set("textEl",c)}c.innerHTML=v}else c&&c.remove()},f.prototype.isVertical=function(t,c){return t.x===c.x},f.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var c=this.get("start"),v=this.get("end"),m=Math.min(c.x,v.x),b=Math.min(c.y,v.y);this.isVertical(c,v)?Vt(t,{width:"1px",height:zs(Math.abs(v.y-c.y))}):Vt(t,{height:"1px",width:zs(Math.abs(v.x-c.x))}),Vt(t,{top:zs(b),left:zs(m)}),this.alignText()},f.prototype.alignText=function(){var t=this.get("textEl");if(t){var c=this.get("text").align,v=t.clientWidth,m=this.getTextPoint();switch(c){case"center":m.x=m.x-v/2;break;case"right":m.x=m.x-v;case"left":break}Vt(t,{top:zs(m.y),left:zs(m.x)})}},f.prototype.updateInner=function(t){(0,D.wH)(t,"text")&&this.resetText(),h.prototype.updateInner.call(this,t)},f}(eh),R_=I_,No=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:Di.lineColor}}}})},f.prototype.getLineType=function(){var t=this.get("line")||this.get("defaultCfg").line;return t.type},f.prototype.renderInner=function(t){this.drawGrid(t)},f.prototype.getAlternatePath=function(t,c){var v=this.getGridPath(t),m=c.slice(0).reverse(),b=this.getGridPath(m,!0),M=this.get("closed");return M?v=v.concat(b):(b[0][0]="L",v=v.concat(b),v.push(["Z"])),v},f.prototype.getPathStyle=function(){return this.get("line").style},f.prototype.drawGrid=function(t){var c=this,v=this.get("line"),m=this.get("items"),b=this.get("alternateColor"),M=null;(0,D.S6)(m,function(A,B){var H=A.id||B;if(v){var W=c.getPathStyle();W=(0,D.mf)(W)?W(A,B,m):W;var Y=c.getElementId("line-"+H),Q=c.getGridPath(A.points);c.addShape(t,{type:"path",name:"grid-line",id:Y,attrs:(0,D.CD)({path:Q},W)})}if(b&&B>0){var te=c.getElementId("region-"+H),he=B%2===0;if((0,D.HD)(b))he&&c.drawAlternateRegion(te,t,M.points,A.points,b);else{var Ee=he?b[1]:b[0];c.drawAlternateRegion(te,t,M.points,A.points,Ee)}}M=A})},f.prototype.drawAlternateRegion=function(t,c,v,m,b){var M=this.getAlternatePath(v,m);this.addShape(c,{type:"path",id:t,name:"grid-region",attrs:{path:M,fill:b}})},f}(Bl),qv=No;function rb(h,f,t,c){var v=t-h,m=c-f;return Math.sqrt(v*v+m*m)}var mc=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{type:"circle",center:null,closed:!0})},f.prototype.getGridPath=function(t,c){var v=this.getLineType(),m=this.get("closed"),b=[];if(t.length)if(v==="circle"){var M=this.get("center"),A=t[0],B=rb(M.x,M.y,A.x,A.y),H=c?0:1;m?(b.push(["M",M.x,M.y-B]),b.push(["A",B,B,0,0,H,M.x,M.y+B]),b.push(["A",B,B,0,0,H,M.x,M.y-B]),b.push(["Z"])):(0,D.S6)(t,function(W,Y){Y===0?b.push(["M",W.x,W.y]):b.push(["A",B,B,0,0,H,W.x,W.y])})}else(0,D.S6)(t,function(W,Y){Y===0?b.push(["M",W.x,W.y]):b.push(["L",W.x,W.y])}),m&&b.push(["Z"]);return b},f}(qv),Rx=mc,D_=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{type:"line"})},f.prototype.getGridPath=function(t){var c=[];return(0,D.S6)(t,function(v,m){m===0?c.push(["M",v.x,v.y]):c.push(["L",v.x,v.y])}),c},f}(qv),L_=D_,rh=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},f.prototype.getLayoutBBox=function(){var t=h.prototype.getLayoutBBox.call(this),c=this.get("maxWidth"),v=this.get("maxHeight"),m=t.width,b=t.height;return c&&(m=Math.min(m,c)),v&&(b=Math.min(b,v)),lo(t.minX,t.minY,m,b)},f.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},f.prototype.resetLocation=function(){var t=this.get("x"),c=this.get("y"),v=this.get("offsetX"),m=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+v,y:c+m})},f.prototype.applyOffset=function(){this.resetLocation()},f.prototype.getDrawPoint=function(){return this.get("currentPoint")},f.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},f.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},f.prototype.drawBackground=function(t){var c=this.get("background"),v=t.getBBox(),m=Fu(c.padding),b=(0,U.pi)({x:0,y:0,width:v.width+m[1]+m[3],height:v.height+m[0]+m[2]},c.style),M=this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:b});M.toBack()},f.prototype.drawTitle=function(t){var c=this.get("currentPoint"),v=this.get("title"),m=v.spacing,b=v.style,M=v.text,A=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:(0,U.pi)({text:M,x:c.x,y:c.y},b)}),B=A.getBBox();this.set("currentPoint",{x:c.x,y:B.maxY+m})},f.prototype.resetDraw=function(){var t=this.get("background"),c={x:0,y:0};if(t){var v=Fu(t.padding);c.x=v[3],c.y=v[0]}this.set("currentPoint",c)},f}(Bl),nh=rh,T0={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},Jy={fill:Di.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:Di.fontFamily,fontWeight:"normal",lineHeight:12},O0="navigation-arrow-right",eC="navigation-arrow-left",nb={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},Hd=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.currentPageIndex=1,t.totalPagesCnt=1,t.pageWidth=0,t.pageHeight=0,t.startX=0,t.startY=0,t.onNavigationBack=function(){var c=t.getElementByLocalId("item-group");if(t.currentPageIndex>1){t.currentPageIndex-=1,t.updateNavigation();var v=t.getCurrentNavigationMatrix();t.get("animate")?c.animate({matrix:v},100):c.attr({matrix:v})}},t.onNavigationAfter=function(){var c=t.getElementByLocalId("item-group");if(t.currentPageIndexEe&&(Ee=Or),Q==="horizontal"?(Fe&&FeB}if(M==="horizontal"){var Rr=this.get("maxRow")||1,tn=Q+(Rr===1?0:Er),ln=B-Y-Ee.width-Ee.minX;this.pageHeight=tn*Rr,this.pageWidth=ln,(0,D.S6)(A,function(ei){var Yi=ei.getBBox(),Ea=W||Yi.width;(nt&&ntht&&(ht=Yi.width)}),Jt=ht,ht+=Y,B&&(ht=Math.min(B,ht),Jt=Math.min(B,Jt)),this.pageWidth=ht,this.pageHeight=H-Math.max(Ee.height,Q+Er);var Zn=Math.floor(this.pageHeight/(Q+Er));(0,D.S6)(A,function(ei,Yi){Yi!==0&&Yi%Zn===0&&(qe+=1,Fe.x+=ht,Fe.y=b),v.moveElementTo(ei,Fe),ei.getParent().setClip({type:"rect",attrs:{x:Fe.x,y:Fe.y,width:ht,height:Q}}),Fe.y+=Q+Er}),this.totalPagesCnt=qe,this.moveElementTo(he,{x:m+Jt/2-Ee.width/2-Ee.minX,y:H-Ee.height-Ee.minY})}this.pageHeight&&this.pageWidth&&c.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),M==="horizontal"&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(qe/this.get("maxRow")):this.totalPagesCnt=qe,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(he),c.attr("matrix",this.getCurrentNavigationMatrix())},f.prototype.drawNavigation=function(t,c,v,m){var b={x:0,y:0},M=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),A=(0,D.U2)(m.marker,"style",{}),B=A.size,H=B===void 0?12:B,W=(0,U._T)(A,["size"]),Y=this.drawArrow(M,b,eC,c==="horizontal"?"up":"left",H,W);Y.on("click",this.onNavigationBack);var Q=Y.getBBox();b.x+=Q.width+2;var te=this.addShape(M,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:(0,U.pi)({x:b.x,y:b.y+H/2,text:v,textBaseline:"middle"},(0,D.U2)(m.text,"style"))}),he=te.getBBox();b.x+=he.width+2;var Ee=this.drawArrow(M,b,O0,c==="horizontal"?"down":"right",H,W);return Ee.on("click",this.onNavigationAfter),M},f.prototype.updateNavigation=function(t){var c=(0,D.b$)({},T0,this.get("pageNavigator")),v=c.marker.style,m=v.fill,b=v.opacity,M=v.inactiveFill,A=v.inactiveOpacity,B=this.currentPageIndex+"/"+this.totalPagesCnt,H=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),W=t?t.findById(this.getElementId(eC)):this.getElementByLocalId(eC),Y=t?t.findById(this.getElementId(O0)):this.getElementByLocalId(O0);H.attr("text",B),W.attr("opacity",this.currentPageIndex===1?A:b),W.attr("fill",this.currentPageIndex===1?M:m),W.attr("cursor",this.currentPageIndex===1?"not-allowed":"pointer"),Y.attr("opacity",this.currentPageIndex===this.totalPagesCnt?A:b),Y.attr("fill",this.currentPageIndex===this.totalPagesCnt?M:m),Y.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var Q=W.getBBox().maxX+2;H.attr("x",Q),Q+=H.getBBox().width+2,this.updateArrowPath(Y,{x:Q,y:0})},f.prototype.drawArrow=function(t,c,v,m,b,M){var A=c.x,B=c.y,H=this.addShape(t,{type:"path",id:this.getElementId(v),name:v,attrs:(0,U.pi)({size:b,direction:m,path:[["M",A+b/2,B],["L",A,B+b],["L",A+b,B+b],["Z"]],cursor:"pointer"},M)});return H.attr("matrix",Xf({x:A+b/2,y:B+b/2},nb[m])),H},f.prototype.updateArrowPath=function(t,c){var v=c.x,m=c.y,b=t.attr(),M=b.size,A=b.direction,B=Xf({x:v+M/2,y:m+M/2},nb[A]);t.attr("path",[["M",v+M/2,m],["L",v,m+M],["L",v+M,m+M],["Z"]]),t.attr("matrix",B)},f.prototype.getCurrentNavigationMatrix=function(){var t=this,c=t.currentPageIndex,v=t.pageWidth,m=t.pageHeight,b=this.get("layout"),M=b==="horizontal"?{x:0,y:m*(1-c)}:{x:v*(1-c),y:0};return ku(M)},f.prototype.applyItemStates=function(t,c){var v=this.getItemStates(t),m=v.length>0;if(m){var b=c.getChildren(),M=this.get("itemStates");(0,D.S6)(b,function(A){var B=A.get("name"),H=B.split("-")[2],W=Wu(t,H,M);W&&(A.attr(W),H==="marker"&&!(A.get("isStroke")&&A.get("isFill"))&&(A.get("isStroke")&&A.attr("fill",null),A.get("isFill")&&A.attr("stroke",null)))})}},f.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),c=this.get("maxItemWidth");return c?t&&(c=t<=c?t:c):t&&(c=t),c},f}(nh),ib=Hd,P_=1.4,Dx=.4,Lx=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:Di.textColor,textBaseline:"middle",fontFamily:Di.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:Di.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},f.prototype.isSlider=function(){return!0},f.prototype.getValue=function(){return this.getCurrentValue()},f.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},f.prototype.setRange=function(t,c){this.update({min:t,max:c})},f.prototype.setValue=function(t){var c=this.getValue();this.set("value",t);var v=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(v),this.delegateEmit("valuechanged",{originValue:c,value:t})},f.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},f.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},f.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},f.prototype.bindHandlersEvent=function(t){var c=this;t.on("legend-handler-min:drag",function(v){var m=c.getValueByCanvasPoint(v.x,v.y),b=c.getCurrentValue(),M=b[1];Mm&&(M=m),c.setValue([M,m])})},f.prototype.bindRailEvent=function(t){},f.prototype.bindTrackEvent=function(t){var c=this,v=null;t.on("legend-track:dragstart",function(m){v={x:m.x,y:m.y}}),t.on("legend-track:drag",function(m){if(v){var b=c.getValueByCanvasPoint(v.x,v.y),M=c.getValueByCanvasPoint(m.x,m.y),A=c.getCurrentValue(),B=A[1]-A[0],H=c.getRange(),W=M-b;W<0?A[0]+W>H.min?c.setValue([A[0]+W,A[1]+W]):c.setValue([H.min,H.min+B]):W>0&&(W>0&&A[1]+Wb&&(W=b),W0&&this.changeRailLength(m,M,v[M]-Q)}},f.prototype.changeRailLength=function(t,c,v){var m=t.getBBox(),b;c==="height"?b=this.getRailPath(m.x,m.y,m.width,v):b=this.getRailPath(m.x,m.y,v,m.height),t.attr("path",b)},f.prototype.changeRailPosition=function(t,c,v){var m=t.getBBox(),b=this.getRailPath(c,v,m.width,m.height);t.attr("path",b)},f.prototype.fixedHorizontal=function(t,c,v,m){var b=this.get("label"),M=b.align,A=b.spacing,B=v.getBBox(),H=t.getBBox(),W=c.getBBox(),Y=B.height;this.fitRailLength(H,W,B,v),B=v.getBBox(),M==="rail"?(t.attr({x:m.x,y:m.y+Y/2}),this.changeRailPosition(v,m.x+H.width+A,m.y),c.attr({x:m.x+H.width+B.width+A*2,y:m.y+Y/2})):M==="top"?(t.attr({x:m.x,y:m.y}),c.attr({x:m.x+B.width,y:m.y}),this.changeRailPosition(v,m.x,m.y+H.height+A)):(this.changeRailPosition(v,m.x,m.y),t.attr({x:m.x,y:m.y+B.height+A}),c.attr({x:m.x+B.width,y:m.y+B.height+A}))},f.prototype.fixedVertail=function(t,c,v,m){var b=this.get("label"),M=b.align,A=b.spacing,B=v.getBBox(),H=t.getBBox(),W=c.getBBox();if(this.fitRailLength(H,W,B,v),B=v.getBBox(),M==="rail")t.attr({x:m.x,y:m.y}),this.changeRailPosition(v,m.x,m.y+H.height+A),c.attr({x:m.x,y:m.y+H.height+B.height+A*2});else if(M==="right")t.attr({x:m.x+B.width+A,y:m.y}),this.changeRailPosition(v,m.x,m.y),c.attr({x:m.x+B.width+A,y:m.y+B.height});else{var Y=Math.max(H.width,W.width);t.attr({x:m.x,y:m.y}),this.changeRailPosition(v,m.x+Y+A,m.y),c.attr({x:m.x,y:m.y+B.height})}},f}(nh),ab=Lx,ih="g2-tooltip",Qh="g2-tooltip-title",ag="g2-tooltip-list",tC="g2-tooltip-list-item",og="g2-tooltip-marker",ob="g2-tooltip-value",Px="g2-tooltip-name",lb="g2-tooltip-crosshair-x",rC="g2-tooltip-crosshair-y",_u,WM=(_u={},_u[""+ih]={position:"absolute",visibility:"visible",zIndex: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)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:Di.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},_u[""+Qh]={marginBottom:"4px"},_u[""+ag]={margin:"0px",listStyleType:"none",padding:"0px"},_u[""+tC]={listStyleType:"none",marginBottom:"4px"},_u[""+og]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},_u[""+ob]={display:"inline-block",float:"right",marginLeft:"30px"},_u[""+lb]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},_u[""+rC]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},_u);function nC(h,f,t,c,v){var m={left:hv.x+v.width,top:fv.y+v.height};return m}function B_(h,f,t,c,v,m){var b=h,M=f;switch(m){case"left":b=h-c-t,M=f-v/2;break;case"right":b=h+t,M=f-v/2;break;case"top":b=h-c/2,M=f-v-t;break;case"bottom":b=h-c/2,M=f+t;break;default:b=h+t,M=f-v-t;break}return{x:b,y:M}}function iC(h,f,t,c,v,m,b){var M=B_(h,f,t,c,v,m);if(b){var A=nC(M.x,M.y,c,v,b);m==="auto"?(A.right&&(M.x=Math.max(0,h-c-t)),A.top&&(M.y=Math.max(0,f-v-t))):m==="top"||m==="bottom"?(A.left&&(M.x=b.x),A.right&&(M.x=b.x+b.width-c),m==="top"&&A.top&&(M.y=f+t),m==="bottom"&&A.bottom&&(M.y=f-v-t)):(A.top&&(M.y=b.y),A.bottom&&(M.y=b.y+b.height-v),m==="left"&&A.left&&(M.x=h+t),m==="right"&&A.right&&(M.x=h-c-t))}return M}function Bx(h,f){var t=!1;return(0,D.S6)(f,function(c){if((0,D.wH)(h,c))return t=!0,!1}),t}var sb=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'
    ',itemTpl:'
  • + + {name}: + {value} +
  • `,xCrosshairTpl:'
    ',yCrosshairTpl:'
    ',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:ih,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:WM})},f.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},f.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},f.prototype.show=function(){var t=this.getContainer();!t||this.destroyed||(this.set("visible",!0),Vt(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},f.prototype.hide=function(){var t=this.getContainer();!t||this.destroyed||(this.set("visible",!1),Vt(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},f.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},f.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},f.prototype.setCrossHairsVisible=function(t){var c=t?"":"none",v=this.get("xCrosshairDom"),m=this.get("yCrosshairDom");v&&Vt(v,{display:c}),m&&Vt(m,{display:c})},f.prototype.initContainer=function(){if(h.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var t=this.getHtmlContentNode();this.get("parent").appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()}},f.prototype.updateInner=function(t){this.get("customContent")?this.renderCustomContent():(Bx(t,["title","showTitle"])&&this.resetTitle(),(0,D.wH)(t,"items")&&this.renderItems()),h.prototype.updateInner.call(this,t)},f.prototype.initDom=function(){this.cacheDoms()},f.prototype.removeDom=function(){h.prototype.removeDom.call(this),this.clearCrosshairs()},f.prototype.resetPosition=function(){var t=this.get("x"),c=this.get("y"),v=this.get("offset"),m=this.getOffset(),b=m.offsetX,M=m.offsetY,A=this.get("position"),B=this.get("region"),H=this.getContainer(),W=this.getBBox(),Y=W.width,Q=W.height,te;B&&(te=jh(B));var he=iC(t,c,v,Y,Q,A,te);Vt(H,{left:zs(he.x+b),top:zs(he.y+M)}),this.resetCrosshairs()},f.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),c=this.get("parent"),v=this.get("container");v&&v.parentNode===c?c.replaceChild(t,v):c.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},f.prototype.getHtmlContentNode=function(){var t,c=this.get("customContent");if(c){var v=c(this.get("title"),this.get("items"));(0,D.kK)(v)?t=v:t=zt(v)}return t},f.prototype.cacheDoms=function(){var t=this.getContainer(),c=t.getElementsByClassName(Qh)[0],v=t.getElementsByClassName(ag)[0];this.set("titleDom",c),this.set("listDom",v)},f.prototype.resetTitle=function(){var t=this.get("title"),c=this.get("showTitle");c&&t?this.setTitle(t):this.setTitle("")},f.prototype.setTitle=function(t){var c=this.get("titleDom");c&&(c.innerText=t)},f.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),c=this.get("crosshairs");if(!t||!c)this.clearCrosshairs();else{var v=jh(t),m=this.get("xCrosshairDom"),b=this.get("yCrosshairDom");c==="x"?(this.resetCrosshair("x",v),b&&(b.remove(),this.set("yCrosshairDom",null))):c==="y"?(this.resetCrosshair("y",v),m&&(m.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",v),this.resetCrosshair("y",v)),this.setCrossHairsVisible(this.get("visible"))}},f.prototype.resetCrosshair=function(t,c){var v=this.checkCrosshair(t),m=this.get(t);t==="x"?Vt(v,{left:zs(m),top:zs(c.y),height:zs(c.height)}):Vt(v,{top:zs(m),left:zs(c.x),width:zs(c.width)})},f.prototype.checkCrosshair=function(t){var c=t+"CrosshairDom",v=t+"CrosshairTpl",m="CROSSHAIR_"+t.toUpperCase(),b=Nt[m],M=this.get(c),A=this.get("parent");return M||(M=zt(this.get(v)),this.applyStyle(b,M),A.appendChild(M),this.set(c,M)),M},f.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),c=this.get("itemTpl"),v=this.get("listDom");v&&((0,D.S6)(t,function(m){var b=oa.Z.toCSSGradient(m.color),M=(0,U.pi)((0,U.pi)({},m),{color:b}),A=(0,D.ng)(c,M),B=zt(A);v.appendChild(B)}),this.applyChildrenStyles(v,this.get("domStyles")))},f.prototype.clearItemDoms=function(){this.get("listDom")&&Gv(this.get("listDom"))},f.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),c=this.get("yCrosshairDom");t&&t.remove(),c&&c.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},f}(eh),aC=sb,oC={opacity:0},Uc={stroke:"#C5C5C5",strokeOpacity:.85},ub={fill:"#CACED4",opacity:.85},El=rt(84656);function Dr(h){return(0,D.UI)(h,function(f,t){var c=t===0?"M":"L",v=f[0],m=f[1];return[c,v,m]})}function Es(h){return Dr(h)}function ra(h){if(h.length<=2)return Es(h);var f=[];(0,D.S6)(h,function(b){(0,D.Xy)(b,f.slice(f.length-2))||f.push(b[0],b[1])});var t=(0,El.e9)(f,!1),c=(0,D.YM)(h),v=c[0],m=c[1];return t.unshift(["M",v,m]),t}function kx(h,f,t,c){c===void 0&&(c=!0);var v=new ks({values:h}),m=new ea({values:(0,D.UI)(h,function(M,A){return A})}),b=(0,D.UI)(h,function(M,A){return[m.scale(A)*f,t-v.scale(M)*t]});return c?ra(b):Es(b)}function A0(h,f){var t=new ks({values:h}),c=t.max<0?t.max:Math.max(0,t.min);return f-t.scale(c)*f}function ah(h,f,t,c){var v=(0,U.pr)(h),m=A0(c,t);return v.push(["L",f,m]),v.push(["L",0,m]),v.push(["Z"]),v}var Qv=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:oC,lineStyle:Uc,areaStyle:ub})},f.prototype.renderInner=function(t){var c=this.cfg,v=c.width,m=c.height,b=c.data,M=c.smooth,A=c.isArea,B=c.backgroundStyle,H=c.lineStyle,W=c.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,U.pi)({x:0,y:0,width:v,height:m},B)});var Y=kx(b,v,m,M);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:(0,U.pi)({path:Y},H)}),A){var Q=ah(Y,v,m,b);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:(0,U.pi)({path:Q},W)})}},f.prototype.applyOffset=function(){var t=this.cfg,c=t.x,v=t.y;this.moveElementTo(this.get("group"),{x:c,y:v})},f}(Bl),zd=null,cb={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},fb=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{name:"handler",x:0,y:0,width:10,height:24,style:cb})},f.prototype.renderInner=function(t){var c=this.cfg,v=c.width,m=c.height,b=c.style,M=b.fill,A=b.stroke,B=b.radius,H=b.opacity,W=b.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:v,height:m,fill:M,stroke:A,radius:B,opacity:H,cursor:W}});var Y=1/3*v,Q=2/3*v,te=1/4*m,he=3/4*m;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:Y,y1:te,x2:Y,y2:he,stroke:A,cursor:W}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:Q,y1:te,x2:Q,y2:he,stroke:A,cursor:W}})},f.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},f.prototype.initEvent=function(){this.bindEvents()},f.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",function(){var c=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",c),t.draw()}),this.get("group").on("mouseleave",function(){var c=t.get("style").fill;t.getElementByLocalId("background").attr("fill",c),t.draw()})},f.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},f}(Bl),hb=null,lC={fill:"#416180",opacity:.05},Fx={fill:"#5B8FF9",opacity:.15,cursor:"move"},I0=10,Nx={width:I0,height:24},db={textBaseline:"middle",fill:"#000",opacity:.45},k_="sliderchange",Hx=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.onMouseDown=function(c){return function(v){t.currentTarget=c;var m=v.originalEvent;m.stopPropagation(),m.preventDefault(),t.prevX=(0,D.U2)(m,"touches.0.pageX",m.pageX),t.prevY=(0,D.U2)(m,"touches.0.pageY",m.pageY);var b=t.getContainerDOM();b.addEventListener("mousemove",t.onMouseMove),b.addEventListener("mouseup",t.onMouseUp),b.addEventListener("mouseleave",t.onMouseUp),b.addEventListener("touchmove",t.onMouseMove),b.addEventListener("touchend",t.onMouseUp),b.addEventListener("touchcancel",t.onMouseUp)}},t.onMouseMove=function(c){var v=t.cfg.width,m=[t.get("start"),t.get("end")];c.stopPropagation(),c.preventDefault();var b=(0,D.U2)(c,"touches.0.pageX",c.pageX),M=(0,D.U2)(c,"touches.0.pageY",c.pageY),A=b-t.prevX,B=t.adjustOffsetRange(A/v);t.updateStartEnd(B),t.updateUI(t.getElementByLocalId("foreground"),t.getElementByLocalId("minText"),t.getElementByLocalId("maxText")),t.prevX=b,t.prevY=M,t.draw(),t.emit(k_,[t.get("start"),t.get("end")].sort()),t.delegateEmit("valuechanged",{originValue:m,value:[t.get("start"),t.get("end")]})},t.onMouseUp=function(){t.currentTarget&&(t.currentTarget=void 0);var c=t.getContainerDOM();c&&(c.removeEventListener("mousemove",t.onMouseMove),c.removeEventListener("mouseup",t.onMouseUp),c.removeEventListener("mouseleave",t.onMouseUp),c.removeEventListener("touchmove",t.onMouseMove),c.removeEventListener("touchend",t.onMouseUp),c.removeEventListener("touchcancel",t.onMouseUp))},t}return f.prototype.setRange=function(t,c){this.set("minLimit",t),this.set("maxLimit",c);var v=this.get("start"),m=this.get("end"),b=(0,D.uZ)(v,t,c),M=(0,D.uZ)(m,t,c);!this.get("isInit")&&(v!==b||m!==M)&&this.setValue([b,M])},f.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},f.prototype.setValue=function(t){var c=this.getRange();if((0,D.kJ)(t)&&t.length===2){var v=[this.get("start"),this.get("end")];this.update({start:(0,D.uZ)(t[0],c.min,c.max),end:(0,D.uZ)(t[1],c.min,c.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:v,value:t})}},f.prototype.getValue=function(){return[this.get("start"),this.get("end")]},f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:lC,foregroundStyle:Fx,handlerStyle:Nx,textStyle:db}})},f.prototype.update=function(t){var c=t.start,v=t.end,m=(0,U.pi)({},t);(0,D.UM)(c)||(m.start=(0,D.uZ)(c,0,1)),(0,D.UM)(v)||(m.end=(0,D.uZ)(v,0,1)),h.prototype.update.call(this,m),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},f.prototype.init=function(){this.set("start",(0,D.uZ)(this.get("start"),0,1)),this.set("end",(0,D.uZ)(this.get("end"),0,1)),h.prototype.init.call(this)},f.prototype.render=function(){h.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},f.prototype.renderInner=function(t){var c=this.cfg,v=c.start,m=c.end,b=c.width,M=c.height,A=c.trendCfg,B=A===void 0?{}:A,H=c.minText,W=c.maxText,Y=c.backgroundStyle,Q=Y===void 0?{}:Y,te=c.foregroundStyle,he=te===void 0?{}:te,Ee=c.textStyle,Fe=Ee===void 0?{}:Ee,qe=(0,D.b$)({},cb,this.cfg.handlerStyle),nt=v*b,ht=m*b;(0,D.dp)((0,D.U2)(B,"data"))&&(this.trend=this.addComponent(t,(0,U.pi)({component:Qv,id:this.getElementId("trend"),x:0,y:0,width:b,height:M},B))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,U.pi)({x:0,y:0,width:b,height:M},Q)});var Jt=this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:(0,U.pi)({y:M/2,textAlign:"right",text:H,silent:!1},Fe)}),Er=this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:(0,U.pi)({y:M/2,textAlign:"left",text:W,silent:!1},Fe)}),Or=this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:(0,U.pi)({y:0,height:M},he)}),Rr=(0,D.U2)(qe,"width",I0),tn=(0,D.U2)(qe,"height",24);this.minHandler=this.addComponent(t,{component:fb,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(M-tn)/2,width:Rr,height:tn,cursor:"ew-resize",style:qe}),this.maxHandler=this.addComponent(t,{component:fb,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(M-tn)/2,width:Rr,height:tn,cursor:"ew-resize",style:qe})},f.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},f.prototype.initEvent=function(){this.bindEvents()},f.prototype.updateUI=function(t,c,v){var m=this.cfg,b=m.start,M=m.end,A=m.width,B=m.minText,H=m.maxText,W=m.handlerStyle,Y=m.height,Q=b*A,te=M*A;this.trend&&(this.trend.update({width:A,height:Y}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",Q),t.attr("width",te-Q);var he=(0,D.U2)(W,"width",I0);c.attr("text",B),v.attr("text",H);var Ee=this._dodgeText([Q,te],c,v),Fe=Ee[0],qe=Ee[1];this.minHandler&&(this.minHandler.update({x:Q-he/2}),this.get("updateAutoRender")||this.minHandler.render()),(0,D.S6)(Fe,function(nt,ht){return c.attr(ht,nt)}),this.maxHandler&&(this.maxHandler.update({x:te-he/2}),this.get("updateAutoRender")||this.maxHandler.render()),(0,D.S6)(qe,function(nt,ht){return v.attr(ht,nt)})},f.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var c=t.findById(this.getElementId("foreground"));c.on("mousedown",this.onMouseDown("foreground")),c.on("touchstart",this.onMouseDown("foreground"))},f.prototype.adjustOffsetRange=function(t){var c=this.cfg,v=c.start,m=c.end;switch(this.currentTarget){case"minHandler":{var b=0-v,M=1-v;return Math.min(M,Math.max(b,t))}case"maxHandler":{var b=0-m,M=1-m;return Math.min(M,Math.max(b,t))}case"foreground":{var b=0-v,M=1-m;return Math.min(M,Math.max(b,t))}}},f.prototype.updateStartEnd=function(t){var c=this.cfg,v=c.start,m=c.end;switch(this.currentTarget){case"minHandler":v+=t;break;case"maxHandler":m+=t;break;case"foreground":v+=t,m+=t;break}this.set("start",v),this.set("end",m)},f.prototype._dodgeText=function(t,c,v){var m,b,M=this.cfg,A=M.handlerStyle,B=M.width,H=2,W=(0,D.U2)(A,"width",I0),Y=t[0],Q=t[1],te=!1;Y>Q&&(m=[Q,Y],Y=m[0],Q=m[1],b=[v,c],c=b[0],v=b[1],te=!0);var he=c.getBBox(),Ee=v.getBBox(),Fe=he.width>Y-H?{x:Y+W/2+H,textAlign:"left"}:{x:Y-W/2-H,textAlign:"right"},qe=Ee.width>B-Q-H?{x:Q-W/2-H,textAlign:"right"}:{x:Q+W/2+H,textAlign:"left"};return te?[qe,Fe]:[Fe,qe]},f.prototype.draw=function(){var t=this.get("container"),c=t&&t.get("canvas");c&&c.draw()},f.prototype.getContainerDOM=function(){var t=this.get("container"),c=t&&t.get("canvas");return c&&c.get("container")},f}(Bl),Gu=null;function Jv(h,f,t){if(h){if(typeof h.addEventListener=="function")return h.addEventListener(f,t,!1),{remove:function(){h.removeEventListener(f,t,!1)}};if(typeof h.attachEvent=="function")return h.attachEvent("on"+f,t),{remove:function(){h.detachEvent("on"+f,t)}}}}var zx={trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},lg={default:zx,hover:{thumbColor:"rgba(0,0,0,0.2)"}},vb=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.clearEvents=D.ZT,t.onStartEvent=function(c){return function(v){t.isMobile=c,v.originalEvent.preventDefault();var m=c?(0,D.U2)(v.originalEvent,"touches.0.clientX"):v.clientX,b=c?(0,D.U2)(v.originalEvent,"touches.0.clientY"):v.clientY;t.startPos=t.cfg.isHorizontal?m:b,t.bindLaterEvent()}},t.bindLaterEvent=function(){var c=t.getContainerDOM(),v=[];t.isMobile?v=[Jv(c,"touchmove",t.onMouseMove),Jv(c,"touchend",t.onMouseUp),Jv(c,"touchcancel",t.onMouseUp)]:v=[Jv(c,"mousemove",t.onMouseMove),Jv(c,"mouseup",t.onMouseUp),Jv(c,"mouseleave",t.onMouseUp)],t.clearEvents=function(){v.forEach(function(m){m.remove()})}},t.onMouseMove=function(c){var v=t.cfg,m=v.isHorizontal,b=v.thumbOffset;c.preventDefault();var M=t.isMobile?(0,D.U2)(c,"touches.0.clientX"):c.clientX,A=t.isMobile?(0,D.U2)(c,"touches.0.clientY"):c.clientY,B=m?M:A,H=B-t.startPos;t.startPos=B,t.updateThumbOffset(b+H)},t.onMouseUp=function(c){c.preventDefault(),t.clearEvents()},t.onTrackClick=function(c){var v=t.cfg,m=v.isHorizontal,b=v.x,M=v.y,A=v.thumbLen,B=t.getContainerDOM(),H=B.getBoundingClientRect(),W=c.clientX,Y=c.clientY,Q=m?W-H.left-b-A/2:Y-H.top-M-A/2,te=t.validateRange(Q);t.updateThumbOffset(te)},t.onThumbMouseOver=function(){var c=t.cfg.theme.hover.thumbColor;t.getElementByLocalId("thumb").attr("stroke",c),t.draw()},t.onThumbMouseOut=function(){var c=t.cfg.theme.default.thumbColor;t.getElementByLocalId("thumb").attr("stroke",c),t.draw()},t}return f.prototype.setRange=function(t,c){this.set("minLimit",t),this.set("maxLimit",c);var v=this.getValue(),m=(0,D.uZ)(v,t,c);v!==m&&!this.get("isInit")&&this.setValue(m)},f.prototype.getRange=function(){var t=this.get("minLimit")||0,c=this.get("maxLimit")||1;return{min:t,max:c}},f.prototype.setValue=function(t){var c=this.getRange(),v=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*(0,D.uZ)(t,c.min,c.max)}),this.delegateEmit("valuechange",{originalValue:v,value:this.getValue()})},f.prototype.getValue=function(){return(0,D.uZ)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return(0,U.pi)((0,U.pi)({},t),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:lg})},f.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},f.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},f.prototype.initEvent=function(){this.bindEvents()},f.prototype.renderTrackShape=function(t){var c=this.cfg,v=c.trackLen,m=c.theme,b=m===void 0?{default:{}}:m,M=(0,D.b$)({},lg,b).default,A=M.lineCap,B=M.trackColor,H=M.size,W=(0,D.U2)(this.cfg,"size",H),Y=this.get("isHorizontal")?{x1:0+W/2,y1:W/2,x2:v-W/2,y2:W/2,lineWidth:W,stroke:B,lineCap:A}:{x1:W/2,y1:0+W/2,x2:W/2,y2:v-W/2,lineWidth:W,stroke:B,lineCap:A};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:Y})},f.prototype.renderThumbShape=function(t){var c=this.cfg,v=c.thumbOffset,m=c.thumbLen,b=c.theme,M=(0,D.b$)({},lg,b).default,A=M.size,B=M.lineCap,H=M.thumbColor,W=(0,D.U2)(this.cfg,"size",A),Y=this.get("isHorizontal")?{x1:v+W/2,y1:W/2,x2:v+m-W/2,y2:W/2,lineWidth:W,stroke:H,lineCap:B,cursor:"default"}:{x1:W/2,y1:v+W/2,x2:W/2,y2:v+m-W/2,lineWidth:W,stroke:H,lineCap:B,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:Y})},f.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp);var c=t.findById(this.getElementId("track"));c.on("click",this.onTrackClick);var v=t.findById(this.getElementId("thumb"));v.on("mouseover",this.onThumbMouseOver),v.on("mouseout",this.onThumbMouseOut)},f.prototype.getContainerDOM=function(){var t=this.get("container"),c=t&&t.get("canvas");return c&&c.get("container")},f.prototype.validateRange=function(t){var c=this.cfg,v=c.thumbLen,m=c.trackLen,b=t;return t+v>m?b=m-v:t+vm.x?m.x:f,t=tm.y?m.y:c,v=v=c&&h<=v}function F_(h,f,t){if((0,D.HD)(h))return h.padEnd(f,t);if((0,D.kJ)(h)){var c=h.length;if(c=this.minX&&f.maxX<=this.maxX&&f.minY>=this.minY&&f.maxY<=this.maxY},h.prototype.clone=function(){return new h(this.x,this.y,this.width,this.height)},h.prototype.add=function(){for(var f=[],t=0;tf.minX&&this.minYf.minY},h.prototype.size=function(){return this.width*this.height},h.prototype.isPointIn=function(f){return f.x>=this.minX&&f.x<=this.maxX&&f.y>=this.minY&&f.y<=this.maxY},h}(),el=function(h,f){var t=f.start,c=f.end;return new ts(h.x+h.width*t.x,h.y+h.height*t.y,h.width*Math.abs(c.x-t.x),h.height*Math.abs(c.y-t.y))};function N_(h){return[[h.minX,h.minY],[h.maxX,h.minY],[h.maxX,h.maxY],[h.minX,h.maxY]]}function lh(h){if(h.isPolar&&!h.isTransposed)return(h.endAngle-h.startAngle)*h.getRadius();var f=h.convert({x:0,y:0}),t=h.convert({x:1,y:0});return Math.sqrt(Math.pow(t.x-f.x,2)+Math.pow(t.y-f.y,2))}function Ml(h){if(h.isPolar){var f=h.startAngle,t=h.endAngle;return t-f===Math.PI*2}return!1}function sh(h,f){var t=h.getCenter();return Math.sqrt(Math.pow(f.x-t.x,2)+Math.pow(f.y-t.y,2))}function H_(h,f){var t=!1;if(h)if(h.type==="theta"){var c=h.start,v=h.end;t=Wd(f.x,c.x,v.x)&&Wd(f.y,c.y,v.y)}else{var m=h.invert(f);t=Wd(m.x,0,1)&&Wd(m.y,0,1)}return t}function ug(h,f){var t=h.getCenter();return Math.atan2(f.y-t.y,f.x-t.x)}function uh(h,f){f===void 0&&(f=0);var t=h.start,c=h.end,v=h.getWidth(),m=h.getHeight();if(h.isPolar){var b=h.startAngle,M=h.endAngle,A=h.getCenter(),B=h.getRadius();return{type:"path",startState:{path:yf(A.x,A.y,B+f,b,b)},endState:function(W){var Y=(M-b)*W+b,Q=yf(A.x,A.y,B+f,b,Y);return{path:Q}},attrs:{path:yf(A.x,A.y,B+f,b,M)}}}var H;return h.isTransposed?H={height:m+f*2}:H={width:v+f*2},{type:"rect",startState:{x:t.x-f,y:c.y-f,width:h.isTransposed?v+f*2:0,height:h.isTransposed?0:m+f*2},endState:H,attrs:{x:t.x-f,y:c.y-f,width:v+f*2,height:m+f*2}}}function z_(h,f){f===void 0&&(f=0);var t=h.start,c=h.end,v=h.getWidth(),m=h.getHeight(),b=Math.min(t.x,c.x),M=Math.min(t.y,c.y);return ts.fromRange(b-f,M-f,b+v+f,M+m+f)}var yb=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function Cb(h){var f="linear";return yb.test(h)?f="timeCat":(0,D.HD)(h)&&(f="cat"),f}function sC(h,f,t,c){return f===void 0&&(f={}),f.type?f.type:h.type!=="identity"&&It.includes(t)&&["interval"].includes(c)||h.isCategory?"cat":h.type}function Ux(h,f,t){var c=f||[];if((0,D.hj)(h)||(0,D.UM)((0,D.Wx)(c,h))&&(0,D.xb)(t)){var v=Jo("identity");return new v({field:h.toString(),values:[h]})}var m=(0,D.I)(c,h),b=(0,D.U2)(t,"type",Cb(m[0])),M=Jo(b);return new M((0,U.pi)({field:h,values:m},t))}function W_(h,f){if(h.type!=="identity"&&f.type!=="identity"){var t={};for(var c in f)Object.prototype.hasOwnProperty.call(f,c)&&(t[c]=f[c]);h.change(t)}}function _o(h){return h.alias||h.field}function yc(h,f,t){var c=h.values,v=c.length,m;if(v===1)m=[.5,1];else{var b=1,M=0;Ml(f)?f.isTransposed?(b=(0,D.U2)(t,"widthRatio.multiplePie",1/1.3),M=1/v*b,m=[M/2,1-M/2]):m=[0,1-1/v]:(M=1/v/2,m=[M,1-M])}return m}function ed(h){var f=h.values.filter(function(t){return!(0,D.UM)(t)&&!isNaN(t)});return Math.max.apply(Math,(0,U.ev)((0,U.ev)([],(0,U.CR)(f),!1),[(0,D.UM)(h.max)?-1/0:h.max],!1))}function bb(h){var f,t;switch(h){case ot.TOP:f={x:0,y:1},t={x:1,y:1};break;case ot.RIGHT:f={x:1,y:0},t={x:1,y:1};break;case ot.BOTTOM:f={x:0,y:0},t={x:1,y:0};break;case ot.LEFT:f={x:0,y:0},t={x:0,y:1};break;default:f=t={x:0,y:0}}return{start:f,end:t}}function rp(h){var f,t;return h.isTransposed?(f={x:0,y:0},t={x:1,y:0}):(f={x:0,y:0},t={x:0,y:1}),{start:f,end:t}}function np(h,f){var t={start:{x:0,y:0},end:{x:0,y:0}};h.isRect?t=bb(f):h.isPolar&&(t=rp(h));var c=t.start,v=t.end;return{start:h.convert(c),end:h.convert(v)}}function uC(h,f){if(h.isRect)return h.isTransposed?[DIRECTION.RIGHT,DIRECTION.BOTTOM].includes(f)?1:-1:[DIRECTION.BOTTOM,DIRECTION.RIGHT].includes(f)?-1:1;if(h.isPolar){var t=h.x.start;return t<0?-1:1}return 1}function ip(h){var f=h.start,t=h.end;return f.x===t.x}function ch(h,f){var t=h.start,c=h.end,v=ip(h);return v?(t.y-c.y)*(f.x-t.x)>0?1:-1:(c.x-t.x)*(t.y-f.y)>0?-1:1}function Gd(h,f){var t=(0,D.U2)(h,["components","axis"],{});return(0,D.b$)({},(0,D.U2)(t,["common"],{}),(0,D.b$)({},(0,D.U2)(t,[f],{})))}function wb(h,f,t){var c=(0,D.U2)(h,["components","axis"],{});return(0,D.b$)({},(0,D.U2)(c,["common","title"],{}),(0,D.b$)({},(0,D.U2)(c,[f,"title"],{})),t)}function jc(h){var f=h.x,t=h.y,c=h.circleCenter,v=t.start>t.end,m=h.isTransposed?h.convert({x:v?0:1,y:0}):h.convert({x:0,y:v?0:1}),b=[m.x-c.x,m.y-c.y],M=[1,0],A=m.y>c.y?Ki.EU(b,M):Ki.EU(b,M)*-1,B=A+(f.end-f.start),H=Math.sqrt(Math.pow(m.x-c.x,2)+Math.pow(m.y-c.y,2));return{center:c,radius:H,startAngle:A,endAngle:B}}function tl(h,f){return(0,D.jn)(h)?h===!1?!1:{}:(0,D.U2)(h,[f])}function Eu(h,f){return(0,D.U2)(h,"position",f)}function fh(h,f){return(0,D.U2)(f,["title","text"],_o(h))}var kl=function(){function h(f,t){this.destroyed=!1,this.facets=[],this.view=f,this.cfg=(0,D.b$)({},this.getDefaultCfg(),t)}return h.prototype.init=function(){this.container||(this.container=this.createContainer());var f=this.view.getData();this.facets=this.generateFacets(f)},h.prototype.render=function(){this.renderViews()},h.prototype.update=function(){},h.prototype.clear=function(){this.clearFacetViews()},h.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},h.prototype.facetToView=function(f){var t=f.region,c=f.data,v=f.padding,m=v===void 0?this.cfg.padding:v,b=this.view.createView({region:t,padding:m});b.data(c||[]),f.view=b,this.beforeEachView(b,f);var M=this.cfg.eachView;return M&&M(b,f),this.afterEachView(b,f),b},h.prototype.createContainer=function(){var f=this.view.getLayer(Pt.FORE);return f.addGroup()},h.prototype.renderViews=function(){this.createFacetViews()},h.prototype.createFacetViews=function(){var f=this;return this.facets.map(function(t){return f.facetToView(t)})},h.prototype.clearFacetViews=function(){var f=this;(0,D.S6)(this.facets,function(t){t.view&&(f.view.removeView(t.view),t.view=void 0)})},h.prototype.parseSpacing=function(){var f=this.view.viewBBox,t=f.width,c=f.height,v=this.cfg.spacing;return v.map(function(m,b){return(0,D.hj)(m)?m/(b===0?t:c):parseFloat(m)/100})},h.prototype.getFieldValues=function(f,t){var c=[],v={};return(0,D.S6)(f,function(m){var b=m[t];!(0,D.UM)(b)&&!v[b]&&(c.push(b),v[b]=!0)}),c},h.prototype.getRegion=function(f,t,c,v){var m=(0,U.CR)(this.parseSpacing(),2),b=m[0],M=m[1],A=(1+b)/(t===0?1:t)-b,B=(1+M)/(f===0?1:f)-M,H={x:(A+b)*c,y:(B+M)*v},W={x:H.x+A,y:H.y+B};return{start:H,end:W}},h.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},h.prototype.getDefaultTitleCfg=function(){var f=this.view.getTheme().fontFamily;return{style:{fontSize:14,fill:"#666",fontFamily:f}}},h.prototype.processAxis=function(f,t){var c=f.getOptions(),v=c.coordinate,m=f.geometries,b=(0,D.U2)(v,"type","rect");if(b==="rect"&&m.length){(0,D.UM)(c.axes)&&(c.axes={});var M=c.axes,A=(0,U.CR)(m[0].getXYFields(),2),B=A[0],H=A[1],W=tl(M,B),Y=tl(M,H);W!==!1&&(c.axes[B]=this.getXAxisOption(B,M,W,t)),Y!==!1&&(c.axes[H]=this.getYAxisOption(H,M,Y,t))}},h.prototype.getFacetDataFilter=function(f){return function(t){return(0,D.yW)(f,function(c){var v=c.field,m=c.value;return!(0,D.UM)(m)&&v?t[v]===m:!0})}},h}(),hi={},Mn=function(h){return hi[(0,D.vl)(h)]},td=function(h,f){hi[(0,D.vl)(h)]=f},Gs=function(){function h(f,t){this.context=f,this.cfg=t,f.addAction(this)}return h.prototype.applyCfg=function(f){(0,D.f0)(this,f)},h.prototype.init=function(){this.applyCfg(this.cfg)},h.prototype.destroy=function(){this.context.removeAction(this),this.context=null},h}(),mo=Gs,P0=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.execute=function(){this.callback&&this.callback(this.context)},f.prototype.destroy=function(){h.prototype.destroy.call(this),this.callback=null},f}(mo),$s=P0,Fl={};function B0(h,f){var t=Fl[h],c=null;if(t){var v=t.ActionClass,m=t.cfg;c=new v(f,m),c.name=h,c.init()}return c}function na(h){var f=Fl[h];return(0,D.U2)(f,"ActionClass")}function mi(h,f,t){Fl[h]={ActionClass:f,cfg:t}}function k0(h){delete Fl[h]}function iu(h,f){var t=new $s(f);return t.callback=h,t.name="callback",t}function F0(h,f){var t=[];if(h.length){t.push(["M",h[0].x,h[0].y]);for(var c=1,v=h.length;c=b[B]?1:0,Y=H>Math.PI?1:0,Q=t.convert(M),te=sh(t,Q);if(te>=.5)if(H===Math.PI*2){var he={x:(M.x+b.x)/2,y:(M.y+b.y)/2},Ee=t.convert(he);A.push(["A",te,te,0,Y,W,Ee.x,Ee.y]),A.push(["A",te,te,0,Y,W,Q.x,Q.y])}else A.push(["A",te,te,0,Y,W,Q.x,Q.y]);return A}function Cc(h){(0,D.S6)(h,function(f,t){var c=f;if(c[0].toLowerCase()==="a"){var v=h[t-1],m=h[t+1];m&&m[0].toLowerCase()==="a"?v&&v[0].toLowerCase()==="l"&&(v[0]="M"):v&&v[0].toLowerCase()==="a"&&m&&m[0].toLowerCase()==="l"&&(m[0]="M")}})}var au=function(h,f,t,c){var v,m=[],b=!!c,M,A,B,H,W,Y,Q;if(b){v=(0,U.CR)(c,2),B=v[0],H=v[1];for(var te=0,he=h.length;te0&&v>0&&(c>=f||v>=f)}function Ni(h,f){var t=h.getCanvasBBox();return N0(h,f)?t:null}function ur(h,f){var t=h.event.maskShapes;return t.map(function(c){return Ni(c,f)}).filter(function(c){return!!c})}function dC(h,f){var t=h.event,c=t.target;return Ms(c,f)}function Ms(h,f){return N0(h,f)?h.attr("path"):null}function kr(h,f){var t=h.event.maskShapes;return t.map(function(c){return Ms(c,f)})}function nn(h){var f=h.event,t,c=f.target;return c&&(t=c.get("element")),t}function hh(h){var f=h.event,t=f.target,c;return t&&(c=t.get("delegateObject")),c}function $u(h){var f=h.event.gEvent;return!(f&&f.fromShape&&f.toShape&&f.fromShape.get("element")===f.toShape.get("element"))}function cg(h){return h&&h.component&&h.component.isList()}function Sb(h){return h&&h.component&&h.component.isSlider()}function ul(h){var f=h.event,t=f.target;return t&&(t==null?void 0:t.get("name"))==="mask"||H0(h)}function H0(h){var f;return((f=h.event.target)===null||f===void 0?void 0:f.get("name"))==="multi-mask"}function cs(h,f){var t=h.event.target;if(H0(h))return ap(h,f);if(t.get("type")==="path"){var c=dC(h,f);return c?cl(h.view,c):void 0}var v=hC(h,f);return v?fg(h.view,v):null}function ap(h,f){var t=h.event.target;if(t.get("type")==="path"){var c=kr(h,f);return c.length>0?c.flatMap(function(m){return cl(h.view,m)}):null}var v=ur(h,f);return v.length>0?v.flatMap(function(m){return fg(h.view,m)}):null}function _b(h,f,t){if(H0(h))return $d(h,f,t);var c=hC(h,t);return c?Eb(c,h,f):null}function Eb(h,f,t){var c=f.view,v=Tb(c,t,{x:h.x,y:h.y}),m=Tb(c,t,{x:h.maxX,y:h.maxY}),b={minX:v.x,minY:v.y,maxX:m.x,maxY:m.y};return fg(t,b)}function $d(h,f,t){var c=ur(h,t);return c.length>0?c.flatMap(function(v){return Eb(v,h,f)}):null}function Go(h){var f=h.geometries,t=[];return(0,D.S6)(f,function(c){var v=c.elements;t=t.concat(v)}),h.views&&h.views.length&&(0,D.S6)(h.views,function(c){t=t.concat(Go(c))}),t}function Mb(h,f,t){var c=Go(h);return c.filter(function(v){return bf(v,f)===t})}function Nl(h,f){var t=h.geometries,c=[];return(0,D.S6)(t,function(v){var m=v.getElementsBy(function(b){return b.hasState(f)});c=c.concat(m)}),c}function bf(h,f){var t=h.getModel(),c=t.data,v;return(0,D.kJ)(c)?v=c[0][f]:v=c[f],v}function z0(h,f){return!(f.minX>h.maxX||f.maxXh.maxY||f.maxY=f.x&&h.y<=f.y&&h.maxY>f.y}function wf(h){var f=h.parent,t=null;return f&&(t=f.views.filter(function(c){return c!==h})),t}function rl(h,f){var t=h.getCoordinate();return t.invert(f)}function Tb(h,f,t){var c=rl(h,t);return f.getCoordinate().convert(c)}function ki(h,f,t,c){var v=!1;return(0,D.S6)(h,function(m){if(m[t]===f[t]&&m[c]===f[c])return v=!0,!1}),v}function op(h,f){var t=h.getScaleByField(f);return!t&&h.views&&(0,D.S6)(h.views,function(c){if(t=op(c,f),t)return!1}),t}var Ob=function(){function h(f){this.actions=[],this.event=null,this.cacheMap={},this.view=f}return h.prototype.cache=function(){for(var f=[],t=0;t=0&&t.splice(c,1)},h.prototype.getCurrentPoint=function(){var f=this.event;if(f)if(f.target instanceof HTMLElement){var t=this.view.getCanvas(),c=t.getPointByClient(f.clientX,f.clientY);return c}else return{x:f.x,y:f.y};return null},h.prototype.getCurrentShape=function(){return(0,D.U2)(this.event,["gEvent","shape"])},h.prototype.isInPlot=function(){var f=this.getCurrentPoint();return f?this.view.isPointInPlot(f):!1},h.prototype.isInShape=function(f){var t=this.getCurrentShape();return t?t.get("name")===f:!1},h.prototype.isInComponent=function(f){var t=yo(this.view),c=this.getCurrentPoint();return c?!!t.find(function(v){var m=v.getBBox();return f?v.get("name")===f&&Yd(m,c):Yd(m,c)}):!1},h.prototype.destroy=function(){(0,D.S6)(this.actions.slice(),function(f){f.destroy()}),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},h}(),Ab=Ob,Uu=function(){function h(f,t){this.view=f,this.cfg=t}return h.prototype.init=function(){this.initEvents()},h.prototype.initEvents=function(){},h.prototype.clearEvents=function(){},h.prototype.destroy=function(){this.clearEvents()},h}(),fl=Uu;function Fa(h,f,t){var c=h.split(":"),v=c[0],m=f.getAction(v)||B0(v,f);if(!m)throw new Error("There is no action named ".concat(v));var b=c[1];return{action:m,methodName:b,arg:t}}function yi(h){var f=h.action,t=h.methodName,c=h.arg;if(f[t])f[t](c);else throw new Error("Action(".concat(f.name,") doesn't have a method called ").concat(t))}var Yu={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},Vx=function(h){(0,U.ZT)(f,h);function f(t,c){var v=h.call(this,t,c)||this;return v.callbackCaches={},v.emitCaches={},v.steps=c,v}return f.prototype.init=function(){this.initContext(),h.prototype.init.call(this)},f.prototype.destroy=function(){h.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},f.prototype.initEvents=function(){var t=this;(0,D.S6)(this.steps,function(c,v){(0,D.S6)(c,function(m){var b=t.getActionCallback(v,m);b&&t.bindEvent(m.trigger,b)})})},f.prototype.clearEvents=function(){var t=this;(0,D.S6)(this.steps,function(c,v){(0,D.S6)(c,function(m){var b=t.getActionCallback(v,m);b&&t.offEvent(m.trigger,b)})})},f.prototype.initContext=function(){var t=this.view,c=new Ab(t);this.context=c;var v=this.steps;(0,D.S6)(v,function(m){(0,D.S6)(m,function(b){if((0,D.mf)(b.action))b.actionObject={action:iu(b.action,c),methodName:"execute"};else if((0,D.HD)(b.action))b.actionObject=Fa(b.action,c,b.arg);else if((0,D.kJ)(b.action)){var M=b.action,A=(0,D.kJ)(b.arg)?b.arg:[b.arg];b.actionObject=[],(0,D.S6)(M,function(B,H){b.actionObject.push(Fa(B,c,A[H]))})}})})},f.prototype.isAllowStep=function(t){var c=this.currentStepName,v=this.steps;if(c===t||t===Yu.SHOW_ENABLE)return!0;if(t===Yu.PROCESSING)return c===Yu.START;if(t===Yu.START)return c!==Yu.PROCESSING;if(t===Yu.END)return c===Yu.PROCESSING||c===Yu.START;if(t===Yu.ROLLBACK){if(v[Yu.END])return c===Yu.END;if(c===Yu.START)return!0}return!1},f.prototype.isAllowExecute=function(t,c){if(this.isAllowStep(t)){var v=this.getKey(t,c);return c.once&&this.emitCaches[v]?!1:c.isEnable?c.isEnable(this.context):!0}return!1},f.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},f.prototype.afterExecute=function(t,c){t!==Yu.SHOW_ENABLE&&this.currentStepName!==t&&this.enterStep(t);var v=this.getKey(t,c);this.emitCaches[v]=!0},f.prototype.getKey=function(t,c){return t+c.trigger+c.action},f.prototype.getActionCallback=function(t,c){var v=this,m=this.context,b=this.callbackCaches,M=c.actionObject;if(c.action&&M){var A=this.getKey(t,c);if(!b[A]){var B=function(H){m.event=H,v.isAllowExecute(t,c)?((0,D.kJ)(M)?(0,D.S6)(M,function(W){m.event=H,yi(W)}):(m.event=H,yi(M)),v.afterExecute(t,c),c.callback&&(m.event=H,c.callback(m))):m.event=null};c.debounce?b[A]=(0,D.Ds)(B,c.debounce.wait,c.debounce.immediate):c.throttle?b[A]=(0,D.P2)(B,c.throttle.wait,{leading:c.throttle.leading,trailing:c.throttle.trailing}):b[A]=B}return b[A]}return null},f.prototype.bindEvent=function(t,c){var v=t.split(":");v[0]==="window"?window.addEventListener(v[1],c):v[0]==="document"?document.addEventListener(v[1],c):this.view.on(t,c)},f.prototype.offEvent=function(t,c){var v=t.split(":");v[0]==="window"?window.removeEventListener(v[1],c):v[0]==="document"?document.removeEventListener(v[1],c):this.view.off(t,c)},f}(fl),Ys=Vx,hg={};function ga(h){return hg[(0,D.vl)(h)]}function Eo(h,f){hg[(0,D.vl)(h)]=f}function ju(h,f,t){var c=ga(h);if(!c)return null;if((0,D.PO)(c)){var v=(0,D.CD)((0,D.d9)(c),t);return new Ys(f,v)}else{var m=c;return new m(f,t)}}function Ib(h){return{title:{autoRotate:!0,position:"center",spacing:h.axisTitleSpacing,style:{fill:h.axisTitleTextFillColor,fontSize:h.axisTitleTextFontSize,lineHeight:h.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:h.fontFamily},iconStyle:{fill:h.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:h.axisLabelOffset,style:{fill:h.axisLabelFillColor,fontSize:h.axisLabelFontSize,lineHeight:h.axisLabelLineHeight,fontFamily:h.fontFamily}},line:{style:{lineWidth:h.axisLineBorder,stroke:h.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:h.axisGridBorderColor,lineWidth:h.axisGridBorder,lineDash:h.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:h.axisTickLineBorder,stroke:h.axisTickLineBorderColor},alignTick:!0,length:h.axisTickLineLength},subTickLine:null,animate:!0}}function W0(h){return{title:null,marker:{symbol:"circle",spacing:h.legendMarkerSpacing,style:{r:h.legendCircleMarkerSize,fill:h.legendMarkerColor}},itemName:{spacing:5,style:{fill:h.legendItemNameFillColor,fontFamily:h.fontFamily,fontSize:h.legendItemNameFontSize,lineHeight:h.legendItemNameLineHeight,fontWeight:h.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:h.legendPageNavigatorMarkerSize,inactiveFill:h.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:h.legendPageNavigatorMarkerInactiveFillOpacity,fill:h.legendPageNavigatorMarkerFillColor,opacity:h.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:h.legendPageNavigatorTextFillColor,fontSize:h.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:h.legendItemSpacing,itemMarginBottom:h.legendItemMarginBottom,padding:h.legendPadding}}function sa(h){var f,t={point:{default:{fill:h.pointFillColor,r:h.pointSize,stroke:h.pointBorderColor,lineWidth:h.pointBorder,fillOpacity:h.pointFillOpacity},active:{stroke:h.pointActiveBorderColor,lineWidth:h.pointActiveBorder},selected:{stroke:h.pointSelectedBorderColor,lineWidth:h.pointSelectedBorder},inactive:{fillOpacity:h.pointInactiveFillOpacity,strokeOpacity:h.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:h.hollowPointFillColor,lineWidth:h.hollowPointBorder,stroke:h.hollowPointBorderColor,strokeOpacity:h.hollowPointBorderOpacity,r:h.hollowPointSize},active:{stroke:h.hollowPointActiveBorderColor,strokeOpacity:h.hollowPointActiveBorderOpacity},selected:{lineWidth:h.hollowPointSelectedBorder,stroke:h.hollowPointSelectedBorderColor,strokeOpacity:h.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:h.hollowPointInactiveBorderOpacity}},area:{default:{fill:h.areaFillColor,fillOpacity:h.areaFillOpacity,stroke:null},active:{fillOpacity:h.areaActiveFillOpacity},selected:{fillOpacity:h.areaSelectedFillOpacity},inactive:{fillOpacity:h.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:h.hollowAreaBorderColor,lineWidth:h.hollowAreaBorder,strokeOpacity:h.hollowAreaBorderOpacity},active:{fill:null,lineWidth:h.hollowAreaActiveBorder},selected:{fill:null,lineWidth:h.hollowAreaSelectedBorder},inactive:{strokeOpacity:h.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:h.intervalFillColor,fillOpacity:h.intervalFillOpacity},active:{stroke:h.intervalActiveBorderColor,lineWidth:h.intervalActiveBorder},selected:{stroke:h.intervalSelectedBorderColor,lineWidth:h.intervalSelectedBorder},inactive:{fillOpacity:h.intervalInactiveFillOpacity,strokeOpacity:h.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:h.hollowIntervalFillColor,stroke:h.hollowIntervalBorderColor,lineWidth:h.hollowIntervalBorder,strokeOpacity:h.hollowIntervalBorderOpacity},active:{stroke:h.hollowIntervalActiveBorderColor,lineWidth:h.hollowIntervalActiveBorder,strokeOpacity:h.hollowIntervalActiveBorderOpacity},selected:{stroke:h.hollowIntervalSelectedBorderColor,lineWidth:h.hollowIntervalSelectedBorder,strokeOpacity:h.hollowIntervalSelectedBorderOpacity},inactive:{stroke:h.hollowIntervalInactiveBorderColor,lineWidth:h.hollowIntervalInactiveBorder,strokeOpacity:h.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:h.lineBorderColor,lineWidth:h.lineBorder,strokeOpacity:h.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:h.lineActiveBorder},selected:{lineWidth:h.lineSelectedBorder},inactive:{strokeOpacity:h.lineInactiveBorderOpacity}}},c=Ib(h),v=W0(h);return{background:h.backgroundColor,defaultColor:h.brandColor,subColor:h.subColor,semanticRed:h.paletteSemanticRed,semanticGreen:h.paletteSemanticGreen,padding:"auto",fontFamily:h.fontFamily,columnWidthRatio:1/2,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:h.paletteQualitative10,colors20:h.paletteQualitative20,sequenceColors:h.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:function(m){var b=m.geometry.coordinate;if(b.isPolar&&b.isTransposed){var M=Yc(m.getModel(),b),A=M.startAngle,B=M.endAngle,H=(A+B)/2,W=7.5,Y=W*Math.cos(H),Q=W*Math.sin(H);return{matrix:La.vs(null,[["t",Y,Q]])}}return t.interval.selected}}},"hollow-rect":{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},line:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},tick:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},funnel:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}},pyramid:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}}},line:{line:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},dot:{default:{style:(0,U.pi)((0,U.pi)({},t.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:(0,U.pi)((0,U.pi)({},t.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:(0,U.pi)((0,U.pi)({},t.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:(0,U.pi)((0,U.pi)({},t.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:(0,U.pi)((0,U.pi)({},t.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:(0,U.pi)((0,U.pi)({},t.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:(0,U.pi)((0,U.pi)({},t.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:(0,U.pi)((0,U.pi)({},t.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vh:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hvh:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vhv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}}},polygon:{polygon:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}}},point:{circle:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},square:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},bowtie:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},diamond:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},hexagon:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},triangle:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},"triangle-down":{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},"hollow-circle":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-square":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-bowtie":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-diamond":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-hexagon":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-triangle":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-triangle-down":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},cross:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},tick:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},plus:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},hyphen:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},line:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}}},area:{area:{default:{style:t.area.default},active:{style:t.area.active},inactive:{style:t.area.inactive},selected:{style:t.area.selected}},smooth:{default:{style:t.area.default},active:{style:t.area.active},inactive:{style:t.area.inactive},selected:{style:t.area.selected}},line:{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}},"smooth-line":{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}}},schema:{candle:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},box:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}}},edge:{line:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vhv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},arc:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}}},violin:{violin:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hollow:{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}},"hollow-smooth":{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}}}},components:{axis:{common:c,top:{position:"top",grid:null,title:null,verticalLimitLength:1/2},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:1/2},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:(0,D.b$)({},c.grid,{line:{type:"line"}})},radius:{title:null,grid:(0,D.b$)({},c.grid,{line:{type:"circle"}})}},legend:{common:v,right:{layout:"vertical",padding:h.legendVerticalPadding},left:{layout:"vertical",padding:h.legendVerticalPadding},top:{layout:"horizontal",padding:h.legendHorizontalPadding},bottom:{layout:"horizontal",padding:h.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:h.sliderRailHeight,defaultLength:h.sliderRailWidth,style:{fill:h.sliderRailFillColor,stroke:h.sliderRailBorderColor,lineWidth:h.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:h.sliderLabelTextFillColor,fontSize:h.sliderLabelTextFontSize,lineHeight:h.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:h.fontFamily}},handler:{size:h.sliderHandlerWidth,style:{fill:h.sliderHandlerFillColor,stroke:h.sliderHandlerBorderColor}},slidable:!0,padding:v.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:h.tooltipCrosshairsBorderColor,lineWidth:h.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(f={},f["".concat(ih)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:h.tooltipContainerFillColor,opacity:h.tooltipContainerFillOpacity,boxShadow:h.tooltipContainerShadow,borderRadius:"".concat(h.tooltipContainerBorderRadius,"px"),color:h.tooltipTextFillColor,fontSize:"".concat(h.tooltipTextFontSize,"px"),fontFamily:h.fontFamily,lineHeight:"".concat(h.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},f["".concat(Qh)]={marginBottom:"12px",marginTop:"12px"},f["".concat(ag)]={margin:0,listStyleType:"none",padding:0},f["".concat(tC)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},f["".concat(og)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},f["".concat(ob)]={display:"inline-block",float:"right",marginLeft:"30px"},f)},annotation:{arc:{style:{stroke:h.annotationArcBorderColor,lineWidth:h.annotationArcBorder},animate:!0},line:{style:{stroke:h.annotationLineBorderColor,lineDash:h.annotationLineDash,lineWidth:h.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:h.annotationTextFillColor,stroke:h.annotationTextBorderColor,lineWidth:h.annotationTextBorder,fontSize:h.annotationTextFontSize,textAlign:"start",fontFamily:h.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:h.annotationTextFillColor,stroke:h.annotationTextBorderColor,lineWidth:h.annotationTextBorder,fontSize:h.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:h.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:h.annotationRegionBorder,stroke:h.annotationRegionBorderColor,fill:h.annotationRegionFillColor,fillOpacity:h.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:h.brandColor,lineWidth:2}},line:{style:{stroke:h.annotationLineBorderColor,lineWidth:h.annotationLineBorder},length:h.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:h.annotationTextFillColor,stroke:h.annotationTextBorderColor,lineWidth:h.annotationTextBorder,fontSize:h.annotationTextFontSize,fontFamily:h.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:h.annotationRegionFillColor,fillOpacity:h.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:h.annotationTextFillColor,stroke:h.annotationTextBorderColor,lineWidth:h.annotationTextBorder,fontSize:h.annotationTextFontSize,fontFamily:h.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:h.cSliderBackgroundFillColor,opacity:h.cSliderBackgroundFillOpacity},foregroundStyle:{fill:h.cSliderForegroundFillColor,opacity:h.cSliderForegroundFillOpacity},handlerStyle:{width:h.cSliderHandlerWidth,height:h.cSliderHandlerHeight,fill:h.cSliderHandlerFillColor,opacity:h.cSliderHandlerFillOpacity,stroke:h.cSliderHandlerBorderColor,lineWidth:h.cSliderHandlerBorder,radius:h.cSliderHandlerBorderRadius,highLightFill:h.cSliderHandlerHighlightFillColor},textStyle:{fill:h.cSliderTextFillColor,opacity:h.cSliderTextFillOpacity,fontSize:h.cSliderTextFontSize,lineHeight:h.cSliderTextLineHeight,fontWeight:h.cSliderTextFontWeight,stroke:h.cSliderTextBorderColor,lineWidth:h.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:h.scrollbarTrackFillColor,thumbColor:h.scrollbarThumbFillColor}},hover:{style:{thumbColor:h.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:h.labelFillColor,fontSize:h.labelFontSize,fontFamily:h.fontFamily,stroke:h.labelBorderColor,lineWidth:h.labelBorder},fillColorDark:h.labelFillColorDark,fillColorLight:h.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:h.innerLabelFillColor,fontSize:h.innerLabelFontSize,fontFamily:h.fontFamily,stroke:h.innerLabelBorderColor,lineWidth:h.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:h.overflowLabelFillColor,fontSize:h.overflowLabelFontSize,fontFamily:h.fontFamily,stroke:h.overflowLabelBorderColor,lineWidth:h.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:h.labelLineBorder}},autoRotate:!0}}}var ca={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},dg={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},GM=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],jd=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],wa=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],G_=function(h){h===void 0&&(h={});var f=h.paletteQualitative10,t=f===void 0?GM:f,c=h.paletteQualitative20,v=c===void 0?jd:c,m=h.brandColor,b=m===void 0?t[0]:m,M={backgroundColor:"transparent",brandColor:b,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:t,paletteQualitative20:v,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:wa,fontFamily:`"Segoe UI", Roboto, "Helvetica Neue", Arial, + "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", + "Noto Color Emoji"`,axisLineBorderColor:ca[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:ca[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:dg[85],axisTickLineBorderColor:ca[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:ca[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:ca[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:ca[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:ca[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:b,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:ca[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:ca[100],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:ca[100],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:ca[45],legendPageNavigatorTextFontSize:12,sliderRailFillColor:ca[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:ca[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:ca[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:ca[25],annotationArcBorderColor:ca[15],annotationArcBorder:1,annotationLineBorderColor:ca[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:ca[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:ca[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:ca[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:ca[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:ca[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:dg[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:ca[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:dg[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:ca[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:b,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:dg[100],pointBorderOpacity:1,pointActiveBorderColor:ca[100],pointSelectedBorder:2,pointSelectedBorderColor:ca[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:b,hollowPointBorderOpacity:.95,hollowPointFillColor:dg[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:ca[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:ca[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:b,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:b,areaFillOpacity:.25,areaActiveFillColor:b,areaActiveFillOpacity:.5,areaSelectedFillColor:b,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:b,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:ca[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:ca[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:b,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:ca[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:ca[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:b,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:dg[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:ca[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:ca[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return(0,U.pi)((0,U.pi)({},M),h)},ZT=G_();function rs(h){var f=h.styleSheet,t=f===void 0?{}:f,c=(0,U._T)(h,["styleSheet"]),v=G_(t);return(0,D.b$)({},sa(v),c)}var $_=rs({}),Xx={default:$_};function G0(h){return(0,D.U2)(Xx,(0,D.vl)(h),Xx.default)}function $M(h,f){Xx[(0,D.vl)(h)]=rs(f)}function js(h,f,t){var c=t.translate(h),v=t.translate(f);return(0,D.vQ)(c,v)}function UM(h,f){var t=f.coordinate,c=f.getXScale(),v=c.range,m=v[v.length-1],b=v[0],M=t.invert(h),A=M.x;return t.isPolar&&A>(1+m)/2&&(A=b),c.translate(c.invert(A))}function vC(h,f,t){var c=t.coordinate,v=t.getYScale(),m=v.field,b=c.invert(f),M=v.invert(b.y),A=(0,D.sE)(h,function(B){var H=B[Bt];return H[m][0]<=M&&H[m][1]>=M});return A||h[h.length-1]}var U_=(0,D.HP)(function(h){if(h.isCategory)return 1;for(var f=h.values,t=f.length,c=h.translate(f[0]),v=c,m=0;mv&&(v=M)}return(v-c)/(t-1)});function YM(h,f,t){var c=f.getAttribute("position"),v=c.getFields(),m=f.scales,b=(0,D.mf)(t)||!t?v[0]:t,M=m[b],A=M?M.getText(h[b]):h[b]||b;return(0,D.mf)(t)?t(A,h):A}function Mu(h){var f=(0,D.VO)(h.attributes);return(0,D.hX)(f,function(t){return(0,D.FX)(It,t.type)})}function vg(h){var f,t,c=Mu(h),v;try{for(var m=(0,U.XA)(c),b=m.next();!b.done;b=m.next()){var M=b.value,A=M.getScale(M.type);if(A&&A.isLinear){var B=(0,D.U2)(h.scaleDefs,A.field),H=sC(A,B,M.type,h.type);if(H!=="cat"){v=A;break}}}}catch(Q){f={error:Q}}finally{try{b&&!b.done&&(t=m.return)&&t.call(m)}finally{if(f)throw f.error}}var W=h.getXScale(),Y=h.getYScale();return v||Y||W}function Vd(h,f){var t=f.field,c=h[t];if((0,D.kJ)(c)){var v=c.map(function(m){return f.getText(m)});return v.join("-")}return f.getText(c)}function $0(h,f){var t,c=f.getGroupScales();if(c.length&&(t=c[0]),t){var v=t.field;return t.getText(h[v])}var m=vg(f);return _o(m)}function Rb(h,f,t){if(f.length===0)return null;var c=t.type,v=t.getXScale(),m=t.getYScale(),b=v.field,M=m.field,A=null;if(c==="heatmap"||c==="point"){for(var B=t.coordinate,H=B.invert(h),W=v.invert(H.x),Y=m.invert(H.y),Q=1/0,te=0;te=ht)if(Rr)(0,D.kJ)(A)||(A=[]),A.push(tn);else{A=tn;break}}(0,D.kJ)(A)&&(A=vC(A,h,t))}else{var ln=void 0;if(!v.isLinear&&v.type!=="timeCat"){for(var te=0;tev.translate(Or)||htv.max||htMath.abs(v.translate(ln[Bt][b])-ht)&&(nt=ln)}var io=U_(t.getXScale());return!A&&Math.abs(v.translate(nt[Bt][b])-ht)<=io/2&&(A=nt),A}function pg(h,f,t,c){var v,m;t===void 0&&(t=""),c===void 0&&(c=!1);var b=h[Bt],M=YM(b,f,t),A=f.tooltipOption,B=f.theme.defaultColor,H=[],W,Y;function Q(tn,ln){if(c||!(0,D.UM)(ln)&&ln!==""){var Zn={title:M,data:b,mappingData:h,name:tn,value:ln,color:h.color||B,marker:!0};H.push(Zn)}}if((0,D.Kn)(A)){var te=A.fields,he=A.callback;if(he){var Ee=te.map(function(tn){return h[Bt][tn]}),Fe=he.apply(void 0,(0,U.ev)([],(0,U.CR)(Ee),!1)),qe=(0,U.pi)({data:h[Bt],mappingData:h,title:M,color:h.color||B,marker:!0},Fe);H.push(qe)}else{var nt=f.scales;try{for(var ht=(0,U.XA)(te),Jt=ht.next();!Jt.done;Jt=ht.next()){var Er=Jt.value;if(!(0,D.UM)(b[Er])){var Or=nt[Er];W=_o(Or),Y=Or.getText(b[Er]),Q(W,Y)}}}catch(tn){v={error:tn}}finally{try{Jt&&!Jt.done&&(m=ht.return)&&m.call(ht)}finally{if(v)throw v.error}}}}else{var Rr=vg(f);Y=Vd(b,Rr),W=$0(b,f),Q(W,Y)}return H}function Db(h,f,t,c){var v,m,b=c.showNil,M=[],A=h.dataArray;if(!(0,D.xb)(A)){h.sort(A);try{for(var B=(0,U.XA)(A),H=B.next();!H.done;H=B.next()){var W=H.value,Y=Rb(f,W,h);if(Y){var Q=h.getElementId(Y),te=h.elementsMap[Q];if(h.type==="heatmap"||te.visible){var he=pg(Y,h,t,b);he.length&&M.push(he)}}}}catch(Ee){v={error:Ee}}finally{try{H&&!H.done&&(m=B.return)&&m.call(B)}finally{if(v)throw v.error}}}return M}function Lb(h,f,t,c){var v=c.showNil,m=[],b=h.container,M=b.getShape(f.x,f.y);if(M&&M.get("visible")&&M.get("origin")){var A=M.get("origin").mappingData,B=pg(A,h,t,v);B.length&&m.push(B)}return m}function pC(h,f,t){var c,v,m=[],b=h.geometries,M=t.shared,A=t.title,B=t.reversed;try{for(var H=(0,U.XA)(b),W=H.next();!W.done;W=H.next()){var Y=W.value;if(Y.visible&&Y.tooltipOption!==!1){var Q=Y.type,te=void 0;["point","edge","polygon"].includes(Q)?te=Lb(Y,f,A,t):["area","line","path","heatmap"].includes(Q)||M!==!1?te=Db(Y,f,A,t):te=Lb(Y,f,A,t),te.length&&(B&&te.reverse(),m.push(te))}}}catch(he){c={error:he}}finally{try{W&&!W.done&&(v=H.return)&&v.call(H)}finally{if(c)throw c.error}}return m}function gC(h,f,t){var c,v,m=pC(h,f,t);try{for(var b=(0,U.XA)(h.views),M=b.next();!M.done;M=b.next()){var A=M.value;m=m.concat(pC(A,f,t))}}catch(B){c={error:B}}finally{try{M&&!M.done&&(v=b.return)&&v.call(b)}finally{if(c)throw c.error}}return m}function Xd(h){return!(0,D.hj)(h)&&!(0,D.kJ)(h)}function Ui(h){h===void 0&&(h=0);var f=(0,D.kJ)(h)?h:[h];switch(f.length){case 0:f=[0,0,0,0];break;case 1:f=new Array(4).fill(f[0]);break;case 2:f=(0,U.ev)((0,U.ev)([],(0,U.CR)(f),!1),(0,U.CR)(f),!1);break;case 3:f=(0,U.ev)((0,U.ev)([],(0,U.CR)(f),!1),[f[1]],!1);break;default:f=f.slice(0,4);break}return f}var xf={};function nd(h,f){xf[h]=f}function gg(h){delete xf[h]}function Vs(){return Object.keys(xf)}function mg(h){return xf[h]}var Pb=function(){function h(f){this.option=this.wrapperOption(f)}return h.prototype.update=function(f){return this.option=this.wrapperOption(f),this},h.prototype.hasAction=function(f){var t=this.option.actions;return(0,D.G)(t,function(c){return c[0]===f})},h.prototype.create=function(f,t){var c=this.option,v=c.type,m=c.cfg,b=v==="theta",M=(0,U.pi)({start:f,end:t},m),A=Uh(b?"polar":v);return this.coordinate=new A(M),this.coordinate.type=v,b&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},h.prototype.adjust=function(f,t){return this.coordinate.update({start:f,end:t}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},h.prototype.rotate=function(f){return this.option.actions.push(["rotate",f]),this},h.prototype.reflect=function(f){return this.option.actions.push(["reflect",f]),this},h.prototype.scale=function(f,t){return this.option.actions.push(["scale",f,t]),this},h.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},h.prototype.getOption=function(){return this.option},h.prototype.getCoordinate=function(){return this.coordinate},h.prototype.wrapperOption=function(f){return(0,U.pi)({type:"rect",actions:[],cfg:{}},f)},h.prototype.execActions=function(f){var t=this,c=this.option.actions;(0,D.S6)(c,function(v){var m,b=(0,U.CR)(v),M=b[0],A=b.slice(1),B=(0,D.UM)(f)?!0:f.includes(M);B&&(m=t.coordinate)[M].apply(m,(0,U.ev)([],(0,U.CR)(A),!1))})},h}(),Bb=Pb,Zx=function(){function h(f,t,c){this.view=f,this.gEvent=t,this.data=c,this.type=t.type}return h.fromData=function(f,t,c){return new h(f,new et.Event(t,{}),c)},Object.defineProperty(h.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),h.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},h.prototype.clone=function(){return new h(this.view,this.gEvent,this.data)},h}(),Os=Zx;function dh(h){var f=h.getController("axis"),t=h.getController("legend"),c=h.getController("annotation"),v=h.getController("slider"),m=h.getController("scrollbar");[f,v,m,t,c].forEach(function(b){b&&b.layout()})}var U0=function(){function h(){this.scales=new Map,this.syncScales=new Map}return h.prototype.createScale=function(f,t,c,v){var m=c,b=this.getScaleMeta(v);if(t.length===0&&b){var M=b.scale,A={type:M.type};M.isCategory&&(A.values=M.values),m=(0,D.b$)(A,b.scaleDef,c)}var B=Ux(f,t,m);return this.cacheScale(B,c,v),B},h.prototype.sync=function(f,t){var c=this;this.syncScales.forEach(function(v,m){var b=Number.MAX_SAFE_INTEGER,M=Number.MIN_SAFE_INTEGER,A=[];(0,D.S6)(v,function(B){var H=c.getScale(B);M=(0,D.hj)(H.max)?Math.max(M,H.max):M,b=(0,D.hj)(H.min)?Math.min(b,H.min):b,(0,D.S6)(H.values,function(W){A.includes(W)||A.push(W)})}),(0,D.S6)(v,function(B){var H=c.getScale(B);if(H.isContinuous)H.change({min:b,max:M,values:A});else if(H.isCategory){var W=H.range,Y=c.getScaleMeta(B);A&&!(0,D.U2)(Y,["scaleDef","range"])&&(W=yc((0,D.b$)({},H,{values:A}),f,t)),H.change({values:A,range:W})}})})},h.prototype.cacheScale=function(f,t,c){var v=this.getScaleMeta(c);v&&v.scale.type===f.type?(W_(v.scale,f),v.scaleDef=t):(v={key:c,scale:f,scaleDef:t},this.scales.set(c,v));var m=this.getSyncKey(v);if(v.syncKey=m,this.removeFromSyncScales(c),m){var b=this.syncScales.get(m);b||(b=[],this.syncScales.set(m,b)),b.push(c)}},h.prototype.getScale=function(f){var t=this.getScaleMeta(f);if(!t){var c=(0,D.Z$)(f.split("-")),v=this.syncScales.get(c);v&&v.length&&(t=this.getScaleMeta(v[0]))}return t&&t.scale},h.prototype.deleteScale=function(f){var t=this.getScaleMeta(f);if(t){var c=t.syncKey,v=this.syncScales.get(c);if(v&&v.length){var m=v.indexOf(f);m!==-1&&v.splice(m,1)}}this.scales.delete(f)},h.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},h.prototype.removeFromSyncScales=function(f){var t=this;this.syncScales.forEach(function(c,v){var m=c.indexOf(f);if(m!==-1)return c.splice(m,1),c.length===0&&t.syncScales.delete(v),!1})},h.prototype.getSyncKey=function(f){var t=f.scale,c=f.scaleDef,v=t.field,m=(0,D.U2)(c,["sync"]);return m===!0?v:m===!1?void 0:m},h.prototype.getScaleMeta=function(f){return this.scales.get(f)},h}(),Y0=function(){function h(f,t,c,v){f===void 0&&(f=0),t===void 0&&(t=0),c===void 0&&(c=0),v===void 0&&(v=0),this.top=f,this.right=t,this.bottom=c,this.left=v}return h.instance=function(f,t,c,v){return f===void 0&&(f=0),t===void 0&&(t=0),c===void 0&&(c=0),v===void 0&&(v=0),new h(f,t,c,v)},h.prototype.max=function(f){var t=(0,U.CR)(f,4),c=t[0],v=t[1],m=t[2],b=t[3];return this.top=Math.max(this.top,c),this.right=Math.max(this.right,v),this.bottom=Math.max(this.bottom,m),this.left=Math.max(this.left,b),this},h.prototype.shrink=function(f){var t=(0,U.CR)(f,4),c=t[0],v=t[1],m=t[2],b=t[3];return this.top+=c,this.right+=v,this.bottom+=m,this.left+=b,this},h.prototype.inc=function(f,t){var c=f.width,v=f.height;switch(t){case ot.TOP:case ot.TOP_LEFT:case ot.TOP_RIGHT:this.top+=v;break;case ot.RIGHT:case ot.RIGHT_TOP:case ot.RIGHT_BOTTOM:this.right+=c;break;case ot.BOTTOM:case ot.BOTTOM_LEFT:case ot.BOTTOM_RIGHT:this.bottom+=v;break;case ot.LEFT:case ot.LEFT_TOP:case ot.LEFT_BOTTOM:this.left+=c;break;default:break}return this},h.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},h.prototype.clone=function(){return new(h.bind.apply(h,(0,U.ev)([void 0],(0,U.CR)(this.getPadding()),!1)))},h}();function yg(h){var f=h.padding;if(!Xd(f))return new(Y0.bind.apply(Y0,(0,U.ev)([void 0],(0,U.CR)(Ui(f)),!1)));var t=h.viewBBox,c=new Y0,v=[],m=[],b=[];return(0,D.S6)(h.getComponents(),function(M){var A=M.type;A===Gt.AXIS?v.push(M):[Gt.LEGEND,Gt.SLIDER,Gt.SCROLLBAR].includes(A)?m.push(M):A!==Gt.GRID&&A!==Gt.TOOLTIP&&b.push(M)}),(0,D.S6)(v,function(M){var A=M.component,B=A.getLayoutBBox(),H=new ts(B.x,B.y,B.width,B.height),W=H.exceed(t);c.max(W)}),(0,D.S6)(m,function(M){var A=M.component,B=M.direction,H=A.getLayoutBBox(),W=A.get("padding"),Y=new ts(H.x,H.y,H.width,H.height).expand(W);c.inc(Y,B)}),(0,D.S6)(b,function(M){var A=M.component,B=M.direction,H=A.getLayoutBBox(),W=new ts(H.x,H.y,H.width,H.height);c.inc(W,B)}),c}function Vu(h,f,t){var c=t.instance();f.forEach(function(v){v.autoPadding=c.max(v.autoPadding.getPadding())})}var kb=function(h){(0,U.ZT)(f,h);function f(t){var c=h.call(this,{visible:t.visible})||this;c.views=[],c.geometries=[],c.controllers=[],c.interactions={},c.limitInPlot=!1,c.options={data:[],animate:!0},c.usedControllers=Vs(),c.scalePool=new U0,c.layoutFunc=dh,c.isPreMouseInPlot=!1,c.isDataChanged=!1,c.isCoordinateChanged=!1,c.createdScaleKeys=new Map,c.onCanvasEvent=function(nt){var ht=nt.name;if(!ht.includes(":")){var Jt=c.createViewEvent(nt);c.doPlotEvent(Jt),c.emit(ht,Jt)}},c.onDelegateEvents=function(nt){var ht=nt.name;if(ht.includes(":")){var Jt=c.createViewEvent(nt);c.emit(ht,Jt)}};var v=t.id,m=v===void 0?(0,D.EL)("view"):v,b=t.parent,M=t.canvas,A=t.backgroundGroup,B=t.middleGroup,H=t.foregroundGroup,W=t.region,Y=W===void 0?{start:{x:0,y:0},end:{x:1,y:1}}:W,Q=t.padding,te=t.appendPadding,he=t.theme,Ee=t.options,Fe=t.limitInPlot,qe=t.syncViewPadding;return c.parent=b,c.canvas=M,c.backgroundGroup=A,c.middleGroup=B,c.foregroundGroup=H,c.region=Y,c.padding=Q,c.appendPadding=te,c.options=(0,U.pi)((0,U.pi)({},c.options),Ee),c.limitInPlot=Fe,c.id=m,c.syncViewPadding=qe,c.themeObject=(0,D.Kn)(he)?(0,D.b$)({},G0("default"),rs(he)):G0(he),c.init(),c}return f.prototype.setLayout=function(t){this.layoutFunc=t},f.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},f.prototype.render=function(t,c){t===void 0&&(t=!1),this.emit(ar.BEFORE_RENDER,Os.fromData(this,ar.BEFORE_RENDER,c)),this.paint(t),this.emit(ar.AFTER_RENDER,Os.fromData(this,ar.AFTER_RENDER,c)),this.visible===!1&&this.changeVisible(!1)},f.prototype.clear=function(){var t=this;this.emit(ar.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var c=this.geometries,v=0;v
    ');ln.appendChild(Zn);var ei=Oe(ln,A,m,b),Yi=fn(Y),Ea=new Yi.Canvas((0,U.pi)({container:Zn,pixelRatio:Q,localRefresh:he,supportCSSTransform:nt},ei));return c=h.call(this,{parent:null,canvas:Ea,backgroundGroup:Ea.addGroup({zIndex:tr.BG}),middleGroup:Ea.addGroup({zIndex:tr.MID}),foregroundGroup:Ea.addGroup({zIndex:tr.FORE}),padding:B,appendPadding:H,visible:Fe,options:Er,limitInPlot:Or,theme:Rr,syncViewPadding:tn})||this,c.onResize=(0,D.Ds)(function(){c.forceFit()},300),c.ele=ln,c.canvas=Ea,c.width=ei.width,c.height=ei.height,c.autoFit=A,c.localRefresh=he,c.renderer=Y,c.wrapperElement=Zn,c.updateCanvasStyle(),c.bindAutoFit(),c.initDefaultInteractions(Jt),c}return f.prototype.initDefaultInteractions=function(t){var c=this;(0,D.S6)(t,function(v){c.interaction(v)})},f.prototype.aria=function(t){var c="aria-label";t===!1?this.ele.removeAttribute(c):this.ele.setAttribute(c,t.label)},f.prototype.changeSize=function(t,c){return this.width===t&&this.height===c?this:(this.emit(ar.BEFORE_CHANGE_SIZE),this.width=t,this.height=c,this.canvas.changeSize(t,c),this.render(!0),this.emit(ar.AFTER_CHANGE_SIZE),this)},f.prototype.clear=function(){h.prototype.clear.call(this),this.aria(!1)},f.prototype.destroy=function(){h.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),Re(this.wrapperElement),this.wrapperElement=null},f.prototype.changeVisible=function(t){return h.prototype.changeVisible.call(this,t),this.wrapperElement.style.display=t?"":"none",this},f.prototype.forceFit=function(){if(!this.destroyed){var t=Oe(this.ele,!0,this.width,this.height),c=t.width,v=t.height;this.changeSize(c,v)}},f.prototype.updateCanvasStyle=function(){Vt(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},f.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},f.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},f}(Y_),j_=Kx,Zc=function(){function h(f){this.visible=!0,this.components=[],this.view=f}return h.prototype.clear=function(f){(0,D.S6)(this.components,function(t){t.component.destroy()}),this.components=[]},h.prototype.destroy=function(){this.clear()},h.prototype.getComponents=function(){return this.components},h.prototype.changeVisible=function(f){this.visible!==f&&(this.components.forEach(function(t){f?t.component.show():t.component.hide()}),this.visible=f)},h}();function qx(h){for(var f=[],t=function(v){var m=h[v],b=(0,D.sE)(f,function(M){return M.color===m.color&&M.name===m.name&&M.value===m.value&&M.title===m.title});b||f.push(m)},c=0;c1){var ht=B[0],Jt=Math.abs(t.y-ht[0].y);try{for(var Er=(0,U.XA)(B),Or=Er.next();!Or.done;Or=Er.next()){var Rr=Or.value,tn=Math.abs(t.y-Rr[0].y);tn<=Jt&&(ht=Rr,Jt=tn)}}catch(ln){M={error:ln}}finally{try{Or&&!Or.done&&(A=Er.return)&&A.call(Er)}finally{if(M)throw M.error}}B=[ht]}return qx((0,D.xH)(B))}return[]},f.prototype.layout=function(){},f.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},f.prototype.isCursorEntered=function(t){if(this.tooltip){var c=this.tooltip.getContainer(),v=this.tooltip.get("capture");if(c&&v){var m=c.getBoundingClientRect(),b=m.x,M=m.y,A=m.width,B=m.height;return new ts(b,M,A,B).isPointIn(t)}}return!1},f.prototype.getTooltipCfg=function(){var t=this.view,c=t.getOptions().tooltip,v=this.processCustomContent(c),m=t.getTheme(),b=(0,D.U2)(m,["components","tooltip"],{}),M=(0,D.U2)(v,"enterable",b.enterable);return(0,D.b$)({},b,v,{capture:!!(M||this.isLocked)})},f.prototype.processCustomContent=function(t){if((0,D.jn)(t)||!(0,D.U2)(t,"customContent"))return t;var c=t.customContent,v=function(m,b){var M=c(m,b)||"";return(0,D.HD)(M)?'
    '+M+"
    ":M};return(0,U.pi)((0,U.pi)({},t),{customContent:v})},f.prototype.getTitle=function(t){var c=t[0].title||t[0].name;return this.title=c,c},f.prototype.renderTooltip=function(){var t=this.view.getCanvas(),c={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},v=this.getTooltipCfg(),m=new sg((0,U.pi)((0,U.pi)({parent:t.get("el").parentNode,region:c},v),{visible:!1,crosshairs:null}));m.init(),this.tooltip=m},f.prototype.renderTooltipMarkers=function(t,c){var v,m,b=this.getTooltipMarkersGroup(),M=this.view.getRootView(),A=M.limitInPlot;try{for(var B=(0,U.XA)(t),H=B.next();!H.done;H=B.next()){var W=H.value,Y=W.x,Q=W.y;if(A||b!=null&&b.getClip()){var te=uh(M.getCoordinate()),he=te.type,Ee=te.attrs;b==null||b.setClip({type:he,attrs:Ee})}else b==null||b.setClip(void 0);var Fe=this.view.getTheme(),qe=(0,D.U2)(Fe,["components","tooltip","marker"],{}),nt=(0,U.pi)((0,U.pi)({fill:W.color,symbol:"circle",shadowColor:W.color},(0,D.mf)(c)?(0,U.pi)((0,U.pi)({},qe),c(W)):c),{x:Y,y:Q});b.addShape("marker",{attrs:nt})}}catch(ht){v={error:ht}}finally{try{H&&!H.done&&(m=B.return)&&m.call(B)}finally{if(v)throw v.error}}},f.prototype.renderCrosshairs=function(t,c){var v=(0,D.U2)(c,["crosshairs","type"],"x");v==="x"?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,c)):v==="y"?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,c)):v==="xy"&&(this.renderXCrosshairs(t,c),this.renderYCrosshairs(t,c))},f.prototype.renderXCrosshairs=function(t,c){var v=this.getViewWithGeometry(this.view).getCoordinate(),m,b;if(v.isRect)v.isTransposed?(m={x:v.start.x,y:t.y},b={x:v.end.x,y:t.y}):(m={x:t.x,y:v.end.y},b={x:t.x,y:v.start.y});else{var M=ug(v,t),A=v.getCenter(),B=v.getRadius();b=Ko(A.x,A.y,B,M),m=A}var H=(0,D.b$)({start:m,end:b,container:this.getTooltipCrosshairsGroup()},(0,D.U2)(c,"crosshairs",{}),this.getCrosshairsText("x",t,c));delete H.type;var W=this.xCrosshair;W?W.update(H):(W=new gc(H),W.init()),W.render(),W.show(),this.xCrosshair=W},f.prototype.renderYCrosshairs=function(t,c){var v=this.getViewWithGeometry(this.view).getCoordinate(),m,b;if(v.isRect){var M=void 0,A=void 0;v.isTransposed?(M={x:t.x,y:v.end.y},A={x:t.x,y:v.start.y}):(M={x:v.start.x,y:t.y},A={x:v.end.x,y:t.y}),m={start:M,end:A},b="Line"}else m={center:v.getCenter(),radius:sh(v,t),startAngle:v.startAngle,endAngle:v.endAngle},b="Circle";m=(0,D.b$)({container:this.getTooltipCrosshairsGroup()},m,(0,D.U2)(c,"crosshairs",{}),this.getCrosshairsText("y",t,c)),delete m.type;var B=this.yCrosshair;B?v.isRect&&B.get("type")==="circle"||!v.isRect&&B.get("type")==="line"?(B=new ie[b](m),B.init()):B.update(m):(B=new ie[b](m),B.init()),B.render(),B.show(),this.yCrosshair=B},f.prototype.getCrosshairsText=function(t,c,v){var m=(0,D.U2)(v,["crosshairs","text"]),b=(0,D.U2)(v,["crosshairs","follow"]),M=this.items;if(m){var A=this.getViewWithGeometry(this.view),B=M[0],H=A.getXScale(),W=A.getYScales()[0],Y=void 0,Q=void 0;if(b){var te=this.view.getCoordinate().invert(c);Y=H.invert(te.x),Q=W.invert(te.y)}else Y=B.data[H.field],Q=B.data[W.field];var he=t==="x"?Y:Q;return(0,D.mf)(m)?m=m(t,he,M,c):m.content=he,{text:m}}},f.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},f.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):(t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"}),t.toFront(),this.tooltipMarkersGroup=t),t},f.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||(t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1}),t.toBack(),this.tooltipCrosshairsGroup=t),t},f.prototype.findItemsFromView=function(t,c){var v,m;if(t.getOptions().tooltip===!1)return[];var b=this.getTooltipCfg(),M=pC(t,c,b);try{for(var A=(0,U.XA)(t.views),B=A.next();!B.done;B=A.next()){var H=B.value;M=M.concat(this.findItemsFromView(H,c))}}catch(W){v={error:W}}finally{try{B&&!B.done&&(m=A.return)&&m.call(A)}finally{if(v)throw v.error}}return M},f.prototype.getViewWithGeometry=function(t){var c=this;return t.geometries.length?t:(0,D.sE)(t.views,function(v){return c.getViewWithGeometry(v)})},f.prototype.getItemsAfterProcess=function(t){var c=this.getTooltipCfg().customItems,v=c||function(m){return m};return v(t)},f}(Zc),Zd=Na,j0={};function Kd(h){return j0[h.toLowerCase()]}function xa(h,f){j0[h.toLowerCase()]=f}var uo={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},Fb={interval:function(h){return{enter:{animation:h.isRect?h.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:h.isPolar&&h.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},qd={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(h){var f;return h.isRect?f=h.isTransposed?"grow-in-x":"grow-in-y":(f="grow-in-xy",h.isPolar&&h.isTransposed&&(f="wave-in")),{animation:f}},schema:function(h){var f;return h.isRect?f=h.isTransposed?"grow-in-x":"grow-in-y":f="grow-in-xy",{animation:f}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function Qd(h,f){return{delay:(0,D.mf)(h.delay)?h.delay(f):h.delay,easing:(0,D.mf)(h.easing)?h.easing(f):h.easing,duration:(0,D.mf)(h.duration)?h.duration(f):h.duration,callback:h.callback,repeat:h.repeat}}function Tl(h,f,t){var c=Fb[h];return c&&((0,D.mf)(c)&&(c=c(f)),c=(0,D.b$)({},uo,c),t)?c[t]:c}function hl(h,f,t){var c=(0,D.U2)(h.get("origin"),"data",Bt),v=f.animation,m=Qd(f,c);if(v){var b=Kd(v);b&&b(h,m,t)}else h.animate(t.toAttrs,m)}function V0(h,f,t,c,v){if(qd[t]){var m=qd[t](c),b=Kd((0,D.U2)(m,"animation",""));if(b){var M=(0,U.pi)((0,U.pi)((0,U.pi)({},uo.appear),m),f);h.stopAnimate(),b(h,M,{coordinate:c,minYPoint:v,toAttrs:null})}}}var Cg="element-background",X0=function(h){(0,U.ZT)(f,h);function f(t){var c=h.call(this,t)||this;c.labelShape=[],c.states=[];var v=t.shapeFactory,m=t.container,b=t.offscreenGroup,M=t.elementIndex,A=t.visible,B=A===void 0?!0:A;return c.shapeFactory=v,c.container=m,c.offscreenGroup=b,c.visible=B,c.elementIndex=M,c}return f.prototype.draw=function(t,c){c===void 0&&(c=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,c),this.visible===!1&&this.changeVisible(!1)},f.prototype.update=function(t){var c=this,v=c.shapeFactory,m=c.shape;if(m){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(m,t);var b=this.getOffscreenGroup(),M=v.drawShape(this.shapeType,t,b);M.cfg.data=this.data,M.cfg.origin=t,M.cfg.element=this,this.syncShapeStyle(m,M,this.getStates(),this.getAnimateCfg("update"))}},f.prototype.destroy=function(){var t=this,c=t.shapeFactory,v=t.shape;if(v){var m=this.getAnimateCfg("leave");m?hl(v,m,{coordinate:c.coordinate,toAttrs:(0,U.pi)({},v.attr())}):v.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,h.prototype.destroy.call(this)},f.prototype.changeVisible=function(t){h.prototype.changeVisible.call(this,t),t?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach(function(c){c.show()})):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach(function(c){c.hide()}))},f.prototype.setState=function(t,c){var v=this,m=v.states,b=v.shapeFactory,M=v.model,A=v.shape,B=v.shapeType,H=m.indexOf(t);if(c){if(H>-1)return;m.push(t),(t==="active"||t==="selected")&&(A==null||A.toFront())}else{if(H===-1)return;if(m.splice(H,1),t==="active"||t==="selected"){var W=this.geometry,Y=W.sortZIndex,Q=W.zIndexReversed,te=Q?this.geometry.elements.length-this.elementIndex:this.elementIndex;Y?A.setZIndex(te):A.set("zIndex",te)}}var he=b.drawShape(B,M,this.getOffscreenGroup());m.length?this.syncShapeStyle(A,he,m,null):this.syncShapeStyle(A,he,["reset"],null),he.remove(!0);var Ee={state:t,stateStatus:c,element:this,target:this.container};this.container.emit("statechange",Ee),xu(this.shape,"statechange",Ee)},f.prototype.clearStates=function(){var t=this,c=this.states;(0,D.S6)(c,function(v){t.setState(v,!1)}),this.states=[]},f.prototype.hasState=function(t){return this.states.includes(t)},f.prototype.getStates=function(){return this.states},f.prototype.getData=function(){return this.data},f.prototype.getModel=function(){return this.model},f.prototype.getBBox=function(){var t=this,c=t.shape,v=t.labelShape,m={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return c&&(m=c.getCanvasBBox()),v&&v.forEach(function(b){var M=b.getCanvasBBox();m.x=Math.min(M.x,m.x),m.y=Math.min(M.y,m.y),m.minX=Math.min(M.minX,m.minX),m.minY=Math.min(M.minY,m.minY),m.maxX=Math.max(M.maxX,m.maxX),m.maxY=Math.max(M.maxY,m.maxY)}),m.width=m.maxX-m.minX,m.height=m.maxY-m.minY,m},f.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this,c=t.shapeType,v=t.geometry,m=t.shapeFactory,b=v.stateOption,M=m.defaultShapeType,A=m.theme[c]||m.theme[M];this.statesStyle=(0,D.b$)({},A,b)}return this.statesStyle},f.prototype.getStateStyle=function(t,c){var v=this.getStatesStyle(),m=(0,D.U2)(v,[t,"style"],{}),b=m[c]||m;return(0,D.mf)(b)?b(this):b},f.prototype.getAnimateCfg=function(t){var c=this,v=this.animate;if(v){var m=v[t];return m&&(0,U.pi)((0,U.pi)({},m),{callback:function(){var b;(0,D.mf)(m.callback)&&m.callback(),(b=c.geometry)===null||b===void 0||b.emit(Tt.AFTER_DRAW_ANIMATE)}})}return null},f.prototype.drawShape=function(t,c){var v;c===void 0&&(c=!1);var m=this,b=m.shapeFactory,M=m.container,A=m.shapeType;if(this.shape=b.drawShape(A,t,M),this.shape){this.setShapeInfo(this.shape,t);var B=this.shape.cfg.name;B?(0,D.HD)(B)&&(this.shape.cfg.name=["element",B]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var H=c?"enter":"appear",W=this.getAnimateCfg(H);W&&((v=this.geometry)===null||v===void 0||v.emit(Tt.BEFORE_DRAW_ANIMATE),hl(this.shape,W,{coordinate:b.coordinate,toAttrs:(0,U.pi)({},this.shape.attr())}))}},f.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},f.prototype.setShapeInfo=function(t,c){var v=this;if(t.cfg.origin=c,t.cfg.element=this,t.isGroup()){var m=t.get("children");m.forEach(function(b){v.setShapeInfo(b,c)})}},f.prototype.syncShapeStyle=function(t,c,v,m,b){var M=this,A;if(v===void 0&&(v=[]),b===void 0&&(b=0),!(!t||!c)){var B=t.get("clipShape"),H=c.get("clipShape");if(this.syncShapeStyle(B,H,v,m),t.isGroup())for(var W=t.get("children"),Y=c.get("children"),Q=0;Q=0?m=c:v<=0?m=v:m=0,m},f.prototype.createAttrOption=function(t,c,v){if((0,D.UM)(c)||(0,D.Kn)(c))(0,D.Kn)(c)&&(0,D.Xy)(Object.keys(c),["values"])?(0,D.t8)(this.attributeOption,t,{fields:c.values}):(0,D.t8)(this.attributeOption,t,c);else{var m={};(0,D.hj)(c)?m.values=[c]:m.fields=Jd(c),v&&((0,D.mf)(v)?m.callback=v:m.values=v),(0,D.t8)(this.attributeOption,t,m)}},f.prototype.initAttributes=function(){var t=this,c=this,v=c.attributes,m=c.attributeOption,b=c.theme,M=c.shapeType;this.groupScales=[];var A={},B=function(Y){if(m.hasOwnProperty(Y)){var Q=m[Y];if(!Q)return{value:void 0};var te=(0,U.pi)({},Q),he=te.callback,Ee=te.values,Fe=te.fields,qe=Fe===void 0?[]:Fe,nt=qe.map(function(Jt){var Er=t.scales[Jt];if(!A[Jt]&&It.includes(Y)){var Or=sC(Er,(0,D.U2)(t.scaleDefs,Jt),Y,t.type);Or==="cat"&&(t.groupScales.push(Er),A[Jt]=!0)}return Er});te.scales=nt,Y!=="position"&&nt.length===1&&nt[0].type==="identity"?te.values=nt[0].values:!he&&!Ee&&(Y==="size"?te.values=b.sizes:Y==="shape"?te.values=b.shapes[M]||[]:Y==="color"&&(nt.length?te.values=nt[0].values.length<=10?b.colors10:b.colors20:te.values=b.colors10));var ht=Up(Y);v[Y]=new ht(te)}};for(var H in m){var W=B(H);if(typeof W=="object")return W.value}},f.prototype.processData=function(t){var c,v;this.hasSorted=!1;for(var m=this.getAttribute("position").scales,b=m.filter(function(Or){return Or.isCategory}),M=this.groupData(t),A=[],B=0,H=M.length;BM&&(M=W)}var Y=this.scaleDefs,Q={};bt.max&&!(0,D.U2)(Y,[m,"max"])&&(Q.max=M),t.change(Q)},f.prototype.beforeMapping=function(t){var c=t;if(this.sortable&&this.sort(c),this.generatePoints)for(var v=0,m=c.length;v1)for(var Y=0;Y0})}function q0(h,f,t){var c=t.data,v=t.origin,m=t.animateCfg,b=t.coordinate,M=(0,D.U2)(m,"update");h.set("data",c),h.set("origin",v),h.set("animateCfg",m),h.set("coordinate",b),h.set("visible",f.get("visible")),(h.getChildren()||[]).forEach(function(A,B){var H=f.getChildByIndex(B);if(!H)h.removeChild(A),A.remove(!0);else{A.set("data",c),A.set("origin",v),A.set("animateCfg",m),A.set("coordinate",b);var W=mb(A,H);M?hl(A,M,{toAttrs:W,coordinate:b}):A.attr(W),H.isGroup()&&q0(A,H,t)}}),(0,D.S6)(f.getChildren(),function(A,B){(0,D.kJ)(h.getChildren())&&B>=h.getCount()&&(A.destroyed||h.add(A))})}var CC=function(){function h(f){this.shapesMap={};var t=f.layout,c=f.container;this.layout=t,this.container=c}return h.prototype.render=function(f,t,c){return c===void 0&&(c=!1),(0,U.mG)(this,void 0,void 0,function(){var v,m,b,M,A,B,H,W,Y=this;return(0,U.Jh)(this,function(Q){switch(Q.label){case 0:if(v={},m=this.createOffscreenGroup(),!f.length)return[3,2];try{for(b=(0,U.XA)(f),M=b.next();!M.done;M=b.next())A=M.value,A&&(v[A.id]=this.renderLabel(A,m))}catch(te){H={error:te}}finally{try{M&&!M.done&&(W=b.return)&&W.call(b)}finally{if(H)throw H.error}}return[4,this.doLayout(f,t,v)];case 1:Q.sent(),this.renderLabelLine(f,v),this.renderLabelBackground(f,v),this.adjustLabel(f,v),Q.label=2;case 2:return B=this.shapesMap,(0,D.S6)(v,function(te,he){if(te.destroyed)delete v[he];else{if(B[he]){var Ee=te.get("data"),Fe=te.get("origin"),qe=te.get("coordinate"),nt=te.get("animateCfg"),ht=B[he];q0(ht,v[he],{data:Ee,origin:Fe,animateCfg:nt,coordinate:qe}),v[he]=ht}else{if(Y.container.destroyed)return;Y.container.add(te);var Jt=(0,D.U2)(te.get("animateCfg"),c?"enter":"appear");Jt&&hl(te,Jt,{toAttrs:(0,U.pi)({},te.attr()),coordinate:te.get("coordinate")})}delete B[he]}}),(0,D.S6)(B,function(te){var he=(0,D.U2)(te.get("animateCfg"),"leave");he?hl(te,he,{toAttrs:null,coordinate:te.get("coordinate")}):te.remove(!0)}),this.shapesMap=v,m.destroy(),[2]}})})},h.prototype.clear=function(){this.container.clear(),this.shapesMap={}},h.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},h.prototype.renderLabel=function(f,t){var c=f.id,v=f.elementId,m=f.data,b=f.mappingData,M=f.coordinate,A=f.animate,B=f.content,H=f.capture,W={id:c,elementId:v,capture:H,data:m,origin:(0,U.pi)((0,U.pi)({},b),{data:b[Bt]}),coordinate:M},Y=t.addGroup((0,U.pi)({name:"label",animateCfg:this.animate===!1||A===null||A===!1?!1:(0,D.b$)({},this.animate,A)},W)),Q;if(B.isGroup&&B.isGroup()||B.isShape&&B.isShape()){var te=B.getCanvasBBox(),he=te.width,Ee=te.height,Fe=(0,D.U2)(f,"textAlign","left"),qe=f.x,nt=f.y-Ee/2;Fe==="center"?qe=qe-he/2:(Fe==="right"||Fe==="end")&&(qe=qe-he),As(B,qe,nt),Q=B,Y.add(B)}else{var ht=(0,D.U2)(f,["style","fill"]);Q=Y.addShape("text",(0,U.pi)({attrs:(0,U.pi)((0,U.pi)({x:f.x,y:f.y,textAlign:f.textAlign,textBaseline:(0,D.U2)(f,"textBaseline","middle"),text:f.content},f.style),{fill:(0,D.Ft)(ht)?f.color:ht})},W))}return f.rotate&&yC(Q,f.rotate),Y},h.prototype.doLayout=function(f,t,c){return(0,U.mG)(this,void 0,void 0,function(){var v,m=this;return(0,U.Jh)(this,function(b){switch(b.label){case 0:return this.layout?(v=(0,D.kJ)(this.layout)?this.layout:[this.layout],[4,Promise.all(v.map(function(M){var A=id((0,D.U2)(M,"type",""));if(A){var B=[],H=[];return(0,D.S6)(c,function(W,Y){B.push(W),H.push(t[W.get("elementId")])}),A(f,B,H,m.region,M.cfg)}}))]):[3,2];case 1:b.sent(),b.label=2;case 2:return[2]}})})},h.prototype.renderLabelLine=function(f,t){(0,D.S6)(f,function(c){var v=(0,D.U2)(c,"coordinate");if(!(!c||!v)){var m=v.getCenter(),b=v.getRadius();if(c.labelLine){var M=(0,D.U2)(c,"labelLine",{}),A=c.id,B=M.path;if(!B){var H=Ko(m.x,m.y,b,c.angle);B=[["M",H.x,H.y],["L",c.x,c.y]]}var W=t[A];W.destroyed||W.addShape("path",{capture:!1,attrs:(0,U.pi)({path:B,stroke:c.color?c.color:(0,D.U2)(c,["style","fill"],"#000"),fill:null},M.style),id:A,origin:c.mappingData,data:c.data,coordinate:c.coordinate})}}})},h.prototype.renderLabelBackground=function(f,t){(0,D.S6)(f,function(c){var v=(0,D.U2)(c,"coordinate"),m=(0,D.U2)(c,"background");if(!(!m||!v)){var b=c.id,M=t[b];if(!M.destroyed){var A=M.getChildren()[0];if(A){var B=eS(M,c,m.padding),H=B.rotation,W=(0,U._T)(B,["rotation"]),Y=M.addShape("rect",{attrs:(0,U.pi)((0,U.pi)({},W),m.style||{}),id:b,origin:c.mappingData,data:c.data,coordinate:c.coordinate});if(Y.setZIndex(-1),H){var Q=A.getMatrix();Y.setMatrix(Q)}}}}})},h.prototype.createOffscreenGroup=function(){var f=this.container,t=f.getGroupBase(),c=new t({});return c},h.prototype.adjustLabel=function(f,t){(0,D.S6)(f,function(c){if(c){var v=c.id,m=t[v];if(!m.destroyed){var b=m.findAll(function(M){return M.get("type")!=="path"});(0,D.S6)(b,function(M){M&&(c.offsetX&&M.attr("x",M.attr("x")+c.offsetX),c.offsetY&&M.attr("y",M.attr("y")+c.offsetY))})}}})},h}(),bg=CC;function od(h){var f=0;return(0,D.S6)(h,function(t){f+=t}),f/h.length}var bC=function(){function h(f){this.geometry=f}return h.prototype.getLabelItems=function(f){var t=this,c=[],v=this.getLabelCfgs(f);return(0,D.S6)(f,function(m,b){var M=v[b];if(!M||(0,D.UM)(m.x)||(0,D.UM)(m.y)){c.push(null);return}var A=(0,D.kJ)(M.content)?M.content:[M.content];M.content=A;var B=A.length;(0,D.S6)(A,function(H,W){if((0,D.UM)(H)||H===""){c.push(null);return}var Y=(0,U.pi)((0,U.pi)({},M),t.getLabelPoint(M,m,W));Y.textAlign||(Y.textAlign=t.getLabelAlign(Y,W,B)),Y.offset<=0&&(Y.labelLine=null),c.push(Y)})}),c},h.prototype.render=function(f,t){return t===void 0&&(t=!1),(0,U.mG)(this,void 0,void 0,function(){var c,v,m;return(0,U.Jh)(this,function(b){switch(b.label){case 0:return c=this.getLabelItems(f),v=this.getLabelsRenderer(),m=this.getGeometryShapes(),[4,v.render(c,m,t)];case 1:return b.sent(),[2]}})})},h.prototype.clear=function(){var f=this.labelsRenderer;f&&f.clear()},h.prototype.destroy=function(){var f=this.labelsRenderer;f&&f.destroy(),this.labelsRenderer=null},h.prototype.getCoordinate=function(){return this.geometry.coordinate},h.prototype.getDefaultLabelCfg=function(f,t){var c=this.geometry,v=c.type,m=c.theme;return v==="polygon"||v==="interval"&&t==="middle"||f<0&&!["line","point","path"].includes(v)?(0,D.U2)(m,"innerLabels",{}):(0,D.U2)(m,"labels",{})},h.prototype.getThemedLabelCfg=function(f){var t=this.geometry,c=this.getDefaultLabelCfg(),v=t.type,m=t.theme,b;return v==="polygon"||f.offset<0&&!["line","point","path"].includes(v)?b=(0,D.b$)({},c,m.innerLabels,f):b=(0,D.b$)({},c,m.labels,f),b},h.prototype.setLabelPosition=function(f,t,c,v){},h.prototype.getLabelOffset=function(f){var t=this.getCoordinate(),c=this.getOffsetVector(f);return t.isTransposed?c[0]:c[1]},h.prototype.getLabelOffsetPoint=function(f,t,c){var v=f.offset,m=this.getCoordinate(),b=m.isTransposed,M=b?"x":"y",A=b?1:-1,B={x:0,y:0};return t>0||c===1?B[M]=v*A:B[M]=v*A*-1,B},h.prototype.getLabelPoint=function(f,t,c){var v=this.getCoordinate(),m=f.content.length;function b(Ee,Fe,qe){qe===void 0&&(qe=!1);var nt=Ee;return(0,D.kJ)(nt)&&(f.content.length===1?qe?nt=od(nt):nt.length<=2?nt=nt[Ee.length-1]:nt=od(nt):nt=nt[Fe]),nt}var M={content:f.content[c],x:0,y:0,start:{x:0,y:0},color:"#fff"},A=(0,D.kJ)(t.shape)?t.shape[0]:t.shape,B=A==="funnel"||A==="pyramid";if(this.geometry.type==="polygon"){var H=$x(t.x,t.y);M.x=H[0],M.y=H[1]}else this.geometry.type==="interval"&&!B?(M.x=b(t.x,c,!0),M.y=b(t.y,c)):(M.x=b(t.x,c),M.y=b(t.y,c));if(B){var W=(0,D.U2)(t,"nextPoints"),Y=(0,D.U2)(t,"points");if(W){var Q=v.convert(Y[1]),te=v.convert(W[1]);M.x=(Q.x+te.x)/2,M.y=(Q.y+te.y)/2}else if(A==="pyramid"){var Q=v.convert(Y[1]),te=v.convert(Y[2]);M.x=(Q.x+te.x)/2,M.y=(Q.y+te.y)/2}}f.position&&this.setLabelPosition(M,t,c,f.position);var he=this.getLabelOffsetPoint(f,c,m);return M.start={x:M.x,y:M.y},M.x+=he.x,M.y+=he.y,M.color=t.color,M},h.prototype.getLabelAlign=function(f,t,c){var v="center",m=this.getCoordinate();if(m.isTransposed){var b=f.offset;b<0?v="right":b===0?v="center":v="left",c>1&&t===0&&(v==="right"?v="left":v==="left"&&(v="right"))}return v},h.prototype.getLabelId=function(f){var t=this.geometry,c=t.type,v=t.getXScale(),m=t.getYScale(),b=f[Bt],M=t.getElementId(f);return c==="line"||c==="area"?M+=" ".concat(b[v.field]):c==="path"&&(M+=" ".concat(b[v.field],"-").concat(b[m.field])),M},h.prototype.getLabelsRenderer=function(){var f=this.geometry,t=f.labelsContainer,c=f.labelOption,v=f.canvasRegion,m=f.animateOption,b=this.geometry.coordinate,M=this.labelsRenderer;return M||(M=new bg({container:t,layout:(0,D.U2)(c,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=M),M.region=v,M.animate=m?Tl("label",b):!1,M},h.prototype.getLabelCfgs=function(f){var t=this,c=this.geometry,v=c.labelOption,m=c.scales,b=c.coordinate,M=v,A=M.fields,B=M.callback,H=M.cfg,W=A.map(function(Q){return m[Q]}),Y=[];return(0,D.S6)(f,function(Q,te){var he=Q[Bt],Ee=t.getLabelText(he,W),Fe;if(B){var qe=A.map(function(Or){return he[Or]});if(Fe=B.apply(void 0,(0,U.ev)([],(0,U.CR)(qe),!1)),(0,D.UM)(Fe)){Y.push(null);return}}var nt=(0,U.pi)((0,U.pi)({id:t.getLabelId(Q),elementId:t.geometry.getElementId(Q),data:he,mappingData:Q,coordinate:b},H),Fe);(0,D.mf)(nt.position)&&(nt.position=nt.position(he,Q,te));var ht=t.getLabelOffset(nt.offset||0),Jt=t.getDefaultLabelCfg(ht,nt.position);nt=(0,D.b$)({},Jt,nt),nt.offset=t.getLabelOffset(nt.offset||0);var Er=nt.content;(0,D.mf)(Er)?nt.content=Er(he,Q,te):(0,D.o8)(Er)&&(nt.content=Ee[0]),Y.push(nt)}),Y},h.prototype.getLabelText=function(f,t){var c=[];return(0,D.S6)(t,function(v){var m=f[v.field];(0,D.kJ)(m)?m=m.map(function(b){return v.getText(b)}):m=v.getText(m),(0,D.UM)(m)||m===""?c.push(null):c.push(m)}),c},h.prototype.getOffsetVector=function(f){f===void 0&&(f=0);var t=this.getCoordinate(),c=0;return(0,D.hj)(f)&&(c=f),t.isTransposed?t.applyMatrix(c,0):t.applyMatrix(0,c)},h.prototype.getGeometryShapes=function(){var f=this.geometry,t={};return(0,D.S6)(f.elementsMap,function(c,v){t[v]=c.shape}),(0,D.S6)(f.getOffscreenGroup().getChildren(),function(c){var v=f.getElementId(c.get("origin").mappingData);t[v]=c}),t},h}(),wc=bC;function up(h,f,t){if(!h)return t;var c;if(h.callback&&h.callback.length>1){var v=Array(h.callback.length-1).fill("");c=h.mapping.apply(h,(0,U.ev)([f],(0,U.CR)(v),!1)).join("")}else c=h.mapping(f).join("");return c||t}var _f={hexagon:function(h,f,t){var c=t/2*Math.sqrt(3);return[["M",h,f-t],["L",h+c,f-t/2],["L",h+c,f+t/2],["L",h,f+t],["L",h-c,f+t/2],["L",h-c,f-t/2],["Z"]]},bowtie:function(h,f,t){var c=t-1.5;return[["M",h-t,f-c],["L",h+t,f+c],["L",h+t,f-c],["L",h-t,f+c],["Z"]]},cross:function(h,f,t){return[["M",h-t,f-t],["L",h+t,f+t],["M",h+t,f-t],["L",h-t,f+t]]},tick:function(h,f,t){return[["M",h-t/2,f-t],["L",h+t/2,f-t],["M",h,f-t],["L",h,f+t],["M",h-t/2,f+t],["L",h+t/2,f+t]]},plus:function(h,f,t){return[["M",h-t,f],["L",h+t,f],["M",h,f-t],["L",h,f+t]]},hyphen:function(h,f,t){return[["M",h-t,f],["L",h+t,f]]},line:function(h,f,t){return[["M",h,f-t],["L",h,f+t]]}},cp=["line","cross","tick","plus","hyphen"];function Wb(h,f){return(0,D.mf)(f)?f(h):(0,D.b$)({},h,f)}function Q0(h,f){var t=h.symbol;if((0,D.HD)(t)&&cp.indexOf(t)!==-1){var c=(0,D.U2)(h,"style",{}),v=(0,D.U2)(c,"lineWidth",1),m=c.stroke||c.fill||f;h.style=(0,D.b$)({},h.style,{lineWidth:v,stroke:m,fill:null})}}function fp(h){var f=h.symbol;(0,D.HD)(f)&&_f[f]&&(h.symbol=_f[f])}function wC(h){return h.startsWith(ot.LEFT)||h.startsWith(ot.RIGHT)?"vertical":"horizontal"}function xC(h,f,t,c,v){var m=t.getScale(t.type);if(m.isCategory){var b=m.field,M=f.getAttribute("color"),A=f.getAttribute("shape"),B=h.getTheme().defaultColor,H=f.coordinate.isPolar;return m.getTicks().map(function(W,Y){var Q,te=W.text,he=W.value,Ee=te,Fe=m.invert(he),qe=h.filterFieldData(b,[(Q={},Q[b]=Fe,Q)]).length===0;(0,D.S6)(h.views,function(Or){var Rr;Or.filterFieldData(b,[(Rr={},Rr[b]=Fe,Rr)]).length||(qe=!0)});var nt=up(M,Fe,B),ht=up(A,Fe,"point"),Jt=f.getShapeMarker(ht,{color:nt,isInPolar:H}),Er=v;return(0,D.mf)(Er)&&(Er=Er(Ee,Y,(0,U.pi)({name:Ee,value:Fe},(0,D.b$)({},c,Jt)))),Jt=(0,D.b$)({},c,Jt,es((0,U.pi)({},Er),["style"])),Q0(Jt,nt),Er&&Er.style&&(Jt.style=Wb(Jt.style,Er.style)),fp(Jt),{id:Fe,name:Ee,value:Fe,marker:Jt,unchecked:qe}})}return[]}function J0(h,f,t){return t.map(function(c,v){var m=f;(0,D.mf)(m)&&(m=m(c.name,v,(0,D.b$)({},h,c)));var b=(0,D.mf)(c.marker)?c.marker(c.name,v,(0,D.b$)({},h,c)):c.marker,M=(0,D.b$)({},h,m,b);return fp(M),c.marker=M,c})}function SC(h,f){var t=(0,D.U2)(h,["components","legend"],{});return(0,D.b$)({},(0,D.U2)(t,["common"],{}),(0,D.b$)({},(0,D.U2)(t,[f],{})))}function ld(h){return h?!1:h==null||isNaN(h)}function Is(h){if((0,D.kJ)(h))return ld(h[1].y);var f=h.y;return(0,D.kJ)(f)?ld(f[0]):ld(f)}function Xu(h,f,t){if(f===void 0&&(f=!1),t===void 0&&(t=!0),!h.length||h.length===1&&!t)return[];if(f){for(var c=[],v=0,m=h.length;v=h&&v<=h+t&&m>=f&&m<=f+c}function rv(h,f){return!(f.minX>h.maxX||f.maxXh.maxY||f.maxY=0&&v<1/2*Math.PI?(M={x:b.minX,y:b.minY},A={x:b.maxX,y:b.maxY}):1/2*Math.PI<=v&&v1&&(t*=Math.sqrt(Q),c*=Math.sqrt(Q));var te=t*t*(Y*Y)+c*c*(W*W),he=te?Math.sqrt((t*t*(c*c)-te)/te):1;m===b&&(he*=-1),isNaN(he)&&(he=0);var Ee=c?he*t*Y/c:0,Fe=t?he*-c*W/t:0,qe=(M+B)/2+Math.cos(v)*Ee-Math.sin(v)*Fe,nt=(A+H)/2+Math.sin(v)*Ee+Math.cos(v)*Fe,ht=[(W-Ee)/t,(Y-Fe)/c],Jt=[(-1*W-Ee)/t,(-1*Y-Fe)/c],Er=Tf([1,0],ht),Or=Tf(ht,Jt);return cd(ht,Jt)<=-1&&(Or=Math.PI),cd(ht,Jt)>=1&&(Or=0),b===0&&Or>0&&(Or=Or-2*Math.PI),b===1&&Or<0&&(Or=Or+2*Math.PI),{cx:qe,cy:nt,rx:rm(h,[B,H])?0:t,ry:rm(h,[B,H])?0:c,startAngle:Er,endAngle:Er+Or,xRotation:v,arcFlag:m,sweepFlag:b}}var hp=Math.sin,Sa=Math.cos,dp=Math.atan2,nv=Math.PI;function dl(h,f,t,c,v,m,b){var M=f.stroke,A=f.lineWidth,B=t-v,H=c-m,W=dp(H,B),Y=new Dg({type:"path",canvas:h.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*Sa(nv/6)+","+10*hp(nv/6)+" L0,0 L"+10*Sa(nv/6)+",-"+10*hp(nv/6),stroke:M,lineWidth:A}});Y.translate(v,m),Y.rotateAtPoint(v,m,W),h.set(b?"startArrowShape":"endArrowShape",Y)}function ou(h,f,t,c,v,m,b){var M=f.startArrow,A=f.endArrow,B=f.stroke,H=f.lineWidth,W=b?M:A,Y=W.d,Q=W.fill,te=W.stroke,he=W.lineWidth,Ee=(0,U._T)(W,["d","fill","stroke","lineWidth"]),Fe=t-v,qe=c-m,nt=dp(qe,Fe);Y&&(v=v-Sa(nt)*Y,m=m-hp(nt)*Y);var ht=new Dg({type:"path",canvas:h.get("canvas"),isArrowShape:!0,attrs:(0,U.pi)((0,U.pi)({},Ee),{stroke:te||B,lineWidth:he||H,fill:Q})});ht.translate(v,m),ht.rotateAtPoint(v,m,nt),h.set(b?"startArrowShape":"endArrowShape",ht)}function Sc(h,f,t,c,v){var m=dp(c-f,t-h);return{dx:Sa(m)*v,dy:hp(m)*v}}function Zb(h,f,t,c,v,m){typeof f.startArrow=="object"?ou(h,f,t,c,v,m,!0):f.startArrow?dl(h,f,t,c,v,m,!0):h.set("startArrowShape",null)}function ha(h,f,t,c,v,m){typeof f.endArrow=="object"?ou(h,f,t,c,v,m,!1):f.endArrow?dl(h,f,t,c,v,m,!1):h.set("startArrowShape",null)}var Li={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function Sg(h,f){var t=f.attr();for(var c in t){var v=t[c],m=Li[c]?Li[c]:c;m==="matrix"&&v?h.transform(v[0],v[1],v[3],v[4],v[6],v[7]):m==="lineDash"&&h.setLineDash?(0,D.kJ)(v)&&h.setLineDash(v):(m==="strokeStyle"||m==="fillStyle"?v=qc(h,f,v):m==="globalAlpha"&&(v=v*h.globalAlpha),h[m]=v)}}function vp(h,f,t){for(var c=0;cJt?ht:Jt,Zn=ht>Jt?1:ht/Jt,ei=ht>Jt?Jt/ht:1;f.translate(qe,nt),f.rotate(Rr),f.scale(Zn,ei),f.arc(0,0,ln,Er,Or,1-tn),f.scale(1/Zn,1/ei),f.rotate(-Rr),f.translate(-qe,-nt)}break}case"Z":f.closePath();break;default:break}if(Y==="Z")M=A;else{var Yi=W.length;M=[W[Yi-2],W[Yi-1]]}}}}function Of(h,f){var t=h.get("canvas");t&&(f==="remove"&&(h._cacheCanvasBBox=h.get("cacheCanvasBBox")),h.get("hasChanged")||(h.set("hasChanged",!0),h.cfg.parent&&h.cfg.parent.get("hasChanged")||(t.refreshElement(h,f,t),t.get("autoDraw")&&t.draw())))}function Ha(h){var f;if(h.destroyed)f=h._cacheCanvasBBox;else{var t=h.get("cacheCanvasBBox"),c=t&&!!(t.width&&t.height),v=h.getCanvasBBox(),m=v&&!!(v.width&&v.height);c&&m?f=tm(t,v):c?f=t:m&&(f=v)}return f}function lu(h){if(!h.length)return null;var f=[],t=[],c=[],v=[];return(0,D.S6)(h,function(m){var b=Ha(m);b&&(f.push(b.minX),t.push(b.minY),c.push(b.maxX),v.push(b.maxY))}),{minX:(0,D.VV)(f),minY:(0,D.VV)(t),maxX:(0,D.Fp)(c),maxY:(0,D.Fp)(v)}}function _g(h,f){return!h||!f||!rv(h,f)?null:{minX:Math.max(h.minX,f.minX),minY:Math.max(h.minY,f.minY),maxX:Math.min(h.maxX,f.maxX),maxY:Math.min(h.maxY,f.maxY)}}var AC=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.onCanvasChange=function(t){Of(this,t)},f.prototype.getShapeBase=function(){return Rt},f.prototype.getGroupBase=function(){return f},f.prototype._applyClip=function(t,c){c&&(t.save(),Sg(t,c),c.createPath(t),t.restore(),t.clip(),c._afterDraw())},f.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,c=[],v=[];(0,D.S6)(t,function(Y){var Q=Y.cfg.cacheCanvasBBox;Q&&Y.cfg.isInView&&(c.push(Q.minX,Q.maxX),v.push(Q.minY,Q.maxY))});var m=null;if(c.length){var b=(0,D.VV)(c),M=(0,D.Fp)(c),A=(0,D.VV)(v),B=(0,D.Fp)(v);m={minX:b,minY:A,x:b,y:A,maxX:M,maxY:B,width:M-b,height:B-A};var H=this.cfg.canvas;if(H){var W=H.getViewRange();this.set("isInView",rv(m,W))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",m)},f.prototype.draw=function(t,c){var v=this.cfg.children,m=c?this.cfg.refresh:!0;v.length&&m&&(t.save(),Sg(t,this),this._applyClip(t,this.getClip()),vp(t,v,c),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},f.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},f}(et.AbstractGroup),IC=AC,Ku=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultAttrs=function(){var t=h.prototype.getDefaultAttrs.call(this);return(0,U.pi)((0,U.pi)({},t),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},f.prototype.getShapeBase=function(){return Rt},f.prototype.getGroupBase=function(){return IC},f.prototype.onCanvasChange=function(t){Of(this,t)},f.prototype.calculateBBox=function(){var t=this.get("type"),c=this.getHitLineWidth(),v=(0,et.getBBoxMethod)(t),m=v(this),b=c/2,M=m.x-b,A=m.y-b,B=m.x+m.width+b,H=m.y+m.height+b;return{x:M,minX:M,y:A,minY:A,width:m.width+c,height:m.height+c,maxX:B,maxY:H}},f.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},f.prototype.isStroke=function(){return!!this.attrs.stroke},f.prototype._applyClip=function(t,c){c&&(t.save(),Sg(t,c),c.createPath(t),t.restore(),t.clip(),c._afterDraw())},f.prototype.draw=function(t,c){var v=this.cfg.clipShape;if(c){if(this.cfg.refresh===!1){this.set("hasChanged",!1);return}var m=this.getCanvasBBox();if(!rv(c,m)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}t.save(),Sg(t,this),this._applyClip(t,v),this.drawPath(t),t.restore(),this._afterDraw()},f.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},f.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var c=this.getCanvasBBox(),v=rv(c,t);this.set("isInView",v),v?this.set("cacheCanvasBBox",c):this.set("cacheCanvasBBox",null)}},f.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},f.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},f.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},f.prototype.fill=function(t){t.fill()},f.prototype.stroke=function(t){t.stroke()},f.prototype.strokeAndFill=function(t){var c=this.attrs,v=c.lineWidth,m=c.opacity,b=c.strokeOpacity,M=c.fillOpacity;this.isFill()&&(!(0,D.UM)(M)&&M!==1?(t.globalAlpha=M,this.fill(t),t.globalAlpha=m):this.fill(t)),this.isStroke()&&v>0&&(!(0,D.UM)(b)&&b!==1&&(t.globalAlpha=b),this.stroke(t)),this.afterDrawPath(t)},f.prototype.createPath=function(t){},f.prototype.afterDrawPath=function(t){},f.prototype.isInShape=function(t,c){var v=this.isStroke(),m=this.isFill(),b=this.getHitLineWidth();return this.isInStrokeOrPath(t,c,v,m,b)},f.prototype.isInStrokeOrPath=function(t,c,v,m,b){return!1},f.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},f}(et.AbstractShape),Qc=Ku,lS=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultAttrs=function(){var t=h.prototype.getDefaultAttrs.call(this);return(0,U.pi)((0,U.pi)({},t),{x:0,y:0,r:0})},f.prototype.isInStrokeOrPath=function(t,c,v,m,b){var M=this.attr(),A=M.x,B=M.y,H=M.r,W=b/2,Y=MC(A,B,t,c);return m&&v?Y<=H+W:m?Y<=H:v?Y>=H-W&&Y<=H+W:!1},f.prototype.createPath=function(t){var c=this.attr(),v=c.x,m=c.y,b=c.r;t.beginPath(),t.arc(v,m,b,0,Math.PI*2,!1),t.closePath()},f}(Qc),RC=lS;function zl(h,f,t,c){return h/(t*t)+f/(c*c)}var Eg=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultAttrs=function(){var t=h.prototype.getDefaultAttrs.call(this);return(0,U.pi)((0,U.pi)({},t),{x:0,y:0,rx:0,ry:0})},f.prototype.isInStrokeOrPath=function(t,c,v,m,b){var M=this.attr(),A=b/2,B=M.x,H=M.y,W=M.rx,Y=M.ry,Q=(t-B)*(t-B),te=(c-H)*(c-H);return m&&v?zl(Q,te,W+A,Y+A)<=1:m?zl(Q,te,W,Y)<=1:v?zl(Q,te,W-A,Y-A)>=1&&zl(Q,te,W+A,Y+A)<=1:!1},f.prototype.createPath=function(t){var c=this.attr(),v=c.x,m=c.y,b=c.rx,M=c.ry;if(t.beginPath(),t.ellipse)t.ellipse(v,m,b,M,0,0,Math.PI*2,!1);else{var A=b>M?b:M,B=b>M?1:b/M,H=b>M?M/b:1;t.save(),t.translate(v,m),t.scale(B,H),t.arc(0,0,A,0,Math.PI*2),t.restore(),t.closePath()}},f}(Qc),am=Eg;function Kb(h){return h instanceof HTMLElement&&(0,D.HD)(h.nodeName)&&h.nodeName.toUpperCase()==="CANVAS"}var Jc=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultAttrs=function(){var t=h.prototype.getDefaultAttrs.call(this);return(0,U.pi)((0,U.pi)({},t),{x:0,y:0,width:0,height:0})},f.prototype.initAttrs=function(t){this._setImage(t.img)},f.prototype.isStroke=function(){return!1},f.prototype.isOnlyHitBox=function(){return!0},f.prototype._afterLoading=function(){if(this.get("toDraw")===!0){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},f.prototype._setImage=function(t){var c=this,v=this.attrs;if((0,D.HD)(t)){var m=new Image;m.onload=function(){if(c.destroyed)return!1;c.attr("img",m),c.set("loading",!1),c._afterLoading();var b=c.get("callback");b&&b.call(c)},m.crossOrigin="Anonymous",m.src=t,this.set("loading",!0)}else t instanceof Image?(v.width||(v.width=t.width),v.height||(v.height=t.height)):Kb(t)&&(v.width||(v.width=Number(t.getAttribute("width"))),v.height||(v.height,Number(t.getAttribute("height"))))},f.prototype.onAttrChange=function(t,c,v){h.prototype.onAttrChange.call(this,t,c,v),t==="img"&&this._setImage(c)},f.prototype.createPath=function(t){if(this.get("loading")){this.set("toDraw",!0),this.set("context",t);return}var c=this.attr(),v=c.x,m=c.y,b=c.width,M=c.height,A=c.sx,B=c.sy,H=c.swidth,W=c.sheight,Y=c.img;(Y instanceof Image||Kb(Y))&&(!(0,D.UM)(A)&&!(0,D.UM)(B)&&!(0,D.UM)(H)&&!(0,D.UM)(W)?t.drawImage(Y,A,B,H,W,v,m,b,M):t.drawImage(Y,v,m,b,M))},f}(Qc),DC=Jc;function Ho(h,f,t,c){var v=h-t,m=f-c;return Math.sqrt(v*v+m*m)}function LC(h,f){return Math.abs(h-f)<.001}function pp(h,f){var t=(0,D.VV)(h),c=(0,D.VV)(f),v=(0,D.Fp)(h),m=(0,D.Fp)(f);return{x:t,y:c,width:v-t,height:m-c}}function zn(h,f,t,c){return{minX:min([h,t]),maxX:max([h,t]),minY:min([f,c]),maxY:max([f,c])}}function om(h){return(h+Math.PI*2)%(Math.PI*2)}var qu={box:function(h,f,t,c){return pp([h,t],[f,c])},length:function(h,f,t,c){return Ho(h,f,t,c)},pointAt:function(h,f,t,c,v){return{x:(1-v)*h+v*t,y:(1-v)*f+v*c}},pointDistance:function(h,f,t,c,v,m){var b=(t-h)*(v-h)+(c-f)*(m-f);if(b<0)return Ho(h,f,v,m);var M=(t-h)*(t-h)+(c-f)*(c-f);return b>M?Ho(t,c,v,m):this.pointToLine(h,f,t,c,v,m)},pointToLine:function(h,f,t,c,v,m){var b=[t-h,c-f];if(Ki.I6(b,[0,0]))return Math.sqrt((v-h)*(v-h)+(m-f)*(m-f));var M=[-b[1],b[0]];Ki.Fv(M,M);var A=[v-h,m-f];return Math.abs(Ki.AK(A,M))},tangentAngle:function(h,f,t,c){return Math.atan2(c-f,t-h)}},PC=1e-4;function qb(h,f,t,c,v,m){var b,M=1/0,A=[t,c],B=20;m&&m>200&&(B=m/10);for(var H=1/B,W=H/10,Y=0;Y<=B;Y++){var Q=Y*H,te=[v.apply(null,h.concat([Q])),v.apply(null,f.concat([Q]))],he=Ho(A[0],A[1],te[0],te[1]);he=0&&he=0?[v]:[]}function gp(h,f,t,c){return 2*(1-c)*(f-h)+2*c*(t-f)}function uS(h,f,t,c,v,m,b){var M=fd(h,t,v,b),A=fd(f,c,m,b),B=qu.pointAt(h,f,t,c,b),H=qu.pointAt(t,c,v,m,b);return[[h,f,B.x,B.y,M,A],[M,A,H.x,H.y,v,m]]}function gh(h,f,t,c,v,m,b){if(b===0)return(Ho(h,f,t,c)+Ho(t,c,v,m)+Ho(h,f,v,m))/2;var M=uS(h,f,t,c,v,m,.5),A=M[0],B=M[1];return A.push(b-1),B.push(b-1),gh.apply(null,A)+gh.apply(null,B)}var Wl={box:function(h,f,t,c,v,m){var b=sS(h,t,v)[0],M=sS(f,c,m)[0],A=[h,v],B=[f,m];return b!==void 0&&A.push(fd(h,t,v,b)),M!==void 0&&B.push(fd(f,c,m,M)),pp(A,B)},length:function(h,f,t,c,v,m){return gh(h,f,t,c,v,m,3)},nearestPoint:function(h,f,t,c,v,m,b,M){return qb([h,t,v],[f,c,m],b,M,fd)},pointDistance:function(h,f,t,c,v,m,b,M){var A=this.nearestPoint(h,f,t,c,v,m,b,M);return Ho(A.x,A.y,b,M)},interpolationAt:fd,pointAt:function(h,f,t,c,v,m,b){return{x:fd(h,t,v,b),y:fd(f,c,m,b)}},divide:function(h,f,t,c,v,m,b){return uS(h,f,t,c,v,m,b)},tangentAngle:function(h,f,t,c,v,m,b){var M=gp(h,t,v,b),A=gp(f,c,m,b),B=Math.atan2(A,M);return om(B)}};function ia(h,f,t,c,v){var m=1-v;return m*m*m*h+3*f*v*m*m+3*t*v*v*m+c*v*v*v}function Ou(h,f,t,c,v){var m=1-v;return 3*(m*m*(f-h)+2*m*v*(t-f)+v*v*(c-t))}function vl(h,f,t,c){var v=-3*h+9*f-9*t+3*c,m=6*h-12*f+6*t,b=3*f-3*h,M=[],A,B,H;if(LC(v,0))LC(m,0)||(A=-b/m,A>=0&&A<=1&&M.push(A));else{var W=m*m-4*v*b;LC(W,0)?M.push(-m/(2*v)):W>0&&(H=Math.sqrt(W),A=(-m+H)/(2*v),B=(-m-H)/(2*v),A>=0&&A<=1&&M.push(A),B>=0&&B<=1&&M.push(B))}return M}function hd(h,f,t,c,v,m,b,M,A){var B=ia(h,t,v,b,A),H=ia(f,c,m,M,A),W=qu.pointAt(h,f,t,c,A),Y=qu.pointAt(t,c,v,m,A),Q=qu.pointAt(v,m,b,M,A),te=qu.pointAt(W.x,W.y,Y.x,Y.y,A),he=qu.pointAt(Y.x,Y.y,Q.x,Q.y,A);return[[h,f,W.x,W.y,te.x,te.y,B,H],[B,H,he.x,he.y,Q.x,Q.y,b,M]]}function Qu(h,f,t,c,v,m,b,M,A){if(A===0)return Qb([h,t,v,b],[f,c,m,M]);var B=hd(h,f,t,c,v,m,b,M,.5),H=B[0],W=B[1];return H.push(A-1),W.push(A-1),Qu.apply(null,H)+Qu.apply(null,W)}var iv={extrema:vl,box:function(h,f,t,c,v,m,b,M){for(var A=[h,b],B=[f,M],H=vl(h,t,v,b),W=vl(f,c,m,M),Y=0;Y0?t:t*-1}var ef={box:function(h,f,t,c){return{x:h-t,y:f-c,width:t*2,height:c*2}},length:function(h,f,t,c){return Math.PI*(3*(t+c)-Math.sqrt((3*t+c)*(t+3*c)))},nearestPoint:function(h,f,t,c,v,m){var b=t,M=c;if(b===0||M===0)return{x:h,y:f};for(var A=v-h,B=m-f,H=Math.abs(A),W=Math.abs(B),Y=b*b,Q=M*M,te=Math.PI/4,he,Ee,Fe=0;Fe<4;Fe++){he=b*Math.cos(te),Ee=M*Math.sin(te);var qe=(Y-Q)*Math.pow(Math.cos(te),3)/b,nt=(Q-Y)*Math.pow(Math.sin(te),3)/M,ht=he-qe,Jt=Ee-nt,Er=H-qe,Or=W-nt,Rr=Math.hypot(Jt,ht),tn=Math.hypot(Or,Er),ln=Rr*Math.asin((ht*Or-Jt*Er)/(Rr*tn)),Zn=ln/Math.sqrt(Y+Q-he*he-Ee*Ee);te+=Zn,te=Math.min(Math.PI/2,Math.max(0,te))}return{x:h+lm(he,A),y:f+lm(Ee,B)}},pointDistance:function(h,f,t,c,v,m){var b=this.nearestPoint(h,f,t,c,v,m);return Ho(b.x,b.y,v,m)},pointAt:function(h,f,t,c,v){var m=2*Math.PI*v;return{x:h+t*Math.cos(m),y:f+c*Math.sin(m)}},tangentAngle:function(h,f,t,c,v){var m=2*Math.PI*v,b=Math.atan2(c*Math.cos(m),-t*Math.sin(m));return om(b)}};function tf(h,f,t,c,v,m,b,M){return-1*t*Math.cos(v)*Math.sin(M)-c*Math.sin(v)*Math.cos(M)}function mh(h,f,t,c,v,m,b,M){return-1*t*Math.sin(v)*Math.sin(M)+c*Math.cos(v)*Math.cos(M)}function cS(h,f,t){return Math.atan(-f/h*Math.tan(t))}function mp(h,f,t){return Math.atan(f/(h*Math.tan(t)))}function sm(h,f,t,c,v,m){return t*Math.cos(v)*Math.cos(m)-c*Math.sin(v)*Math.sin(m)+h}function Jb(h,f,t,c,v,m){return t*Math.sin(v)*Math.cos(m)+c*Math.cos(v)*Math.sin(m)+f}function Mg(h,f,t,c){var v=Math.atan2(c*h,t*f);return(v+Math.PI*2)%(Math.PI*2)}function dd(h,f,t){return{x:h*Math.cos(t),y:f*Math.sin(t)}}function BC(h,f,t){var c=Math.cos(t),v=Math.sin(t);return[h*c-f*v,h*v+f*c]}var um={box:function(h,f,t,c,v,m,b){for(var M=cS(t,c,v),A=1/0,B=-1/0,H=[m,b],W=-Math.PI*2;W<=Math.PI*2;W+=Math.PI){var Y=M+W;mB&&(B=Q)}for(var te=mp(t,c,v),he=1/0,Ee=-1/0,Fe=[m,b],W=-Math.PI*2;W<=Math.PI*2;W+=Math.PI){var qe=te+W;mEe&&(Ee=nt)}return{x:A,y:he,width:B-A,height:Ee-he}},length:function(h,f,t,c,v,m,b){},nearestPoint:function(h,f,t,c,v,m,b,M,A){var B=BC(M-h,A-f,-v),H=B[0],W=B[1],Y=ef.nearestPoint(0,0,t,c,H,W),Q=Mg(t,c,Y.x,Y.y);Qb&&(Y=dd(t,c,b));var te=BC(Y.x,Y.y,v);return{x:te[0]+h,y:te[1]+f}},pointDistance:function(h,f,t,c,v,m,b,M,A){var B=this.nearestPoint(h,f,t,c,M,A);return Ho(B.x,B.y,M,A)},pointAt:function(h,f,t,c,v,m,b,M){var A=(b-m)*M+m;return{x:sm(h,f,t,c,v,A),y:Jb(h,f,t,c,v,A)}},tangentAngle:function(h,f,t,c,v,m,b,M){var A=(b-m)*M+m,B=tf(h,f,t,c,v,m,b,A),H=mh(h,f,t,c,v,m,b,A);return om(Math.atan2(H,B))}};function kC(h){for(var f=0,t=[],c=0;c1||f<0||h.length<2)return null;var t=kC(h),c=t.segments,v=t.totalLength;if(v===0)return{x:h[0][0],y:h[0][1]};for(var m=0,b=null,M=0;M=m&&f<=m+W){var Y=(f-m)/W;b=qu.pointAt(B[0],B[1],H[0],H[1],Y);break}m+=W}return b}function za(h,f){if(f>1||f<0||h.length<2)return 0;for(var t=kC(h),c=t.segments,v=t.totalLength,m=0,b=0,M=0;M=m&&f<=m+W){b=Math.atan2(H[1]-B[1],H[0]-B[0]);break}m+=W}return b}function fS(h,f,t){for(var c=1/0,v=0;v=M-W&&m<=A+W&&b>=B-W&&b<=H+W?qu.pointToLine(h,f,t,c,m,b)<=v/2:!1}var rf=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultAttrs=function(){var t=h.prototype.getDefaultAttrs.call(this);return(0,U.pi)((0,U.pi)({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},f.prototype.initAttrs=function(t){this.setArrow()},f.prototype.onAttrChange=function(t,c,v){h.prototype.onAttrChange.call(this,t,c,v),this.setArrow()},f.prototype.setArrow=function(){var t=this.attr(),c=t.x1,v=t.y1,m=t.x2,b=t.y2,M=t.startArrow,A=t.endArrow;M&&Zb(this,t,m,b,c,v),A&&ha(this,t,c,v,m,b)},f.prototype.isInStrokeOrPath=function(t,c,v,m,b){if(!v||!b)return!1;var M=this.attr(),A=M.x1,B=M.y1,H=M.x2,W=M.y2;return Fi(A,B,H,W,b,t,c)},f.prototype.createPath=function(t){var c=this.attr(),v=c.x1,m=c.y1,b=c.x2,M=c.y2,A=c.startArrow,B=c.endArrow,H={dx:0,dy:0},W={dx:0,dy:0};A&&A.d&&(H=Sc(v,m,b,M,c.startArrow.d)),B&&B.d&&(W=Sc(v,m,b,M,c.endArrow.d)),t.beginPath(),t.moveTo(v+H.dx,m+H.dy),t.lineTo(b-W.dx,M-W.dy)},f.prototype.afterDrawPath=function(t){var c=this.get("startArrowShape"),v=this.get("endArrowShape");c&&c.draw(t),v&&v.draw(t)},f.prototype.getTotalLength=function(){var t=this.attr(),c=t.x1,v=t.y1,m=t.x2,b=t.y2;return qu.length(c,v,m,b)},f.prototype.getPoint=function(t){var c=this.attr(),v=c.x1,m=c.y1,b=c.x2,M=c.y2;return qu.pointAt(v,m,b,M,t)},f}(Qc),Og=rf,tw={circle:function(h,f,t){return[["M",h-t,f],["A",t,t,0,1,0,h+t,f],["A",t,t,0,1,0,h-t,f]]},square:function(h,f,t){return[["M",h-t,f-t],["L",h+t,f-t],["L",h+t,f+t],["L",h-t,f+t],["Z"]]},diamond:function(h,f,t){return[["M",h-t,f],["L",h,f-t],["L",h+t,f],["L",h,f+t],["Z"]]},triangle:function(h,f,t){var c=t*Math.sin(.3333333333333333*Math.PI);return[["M",h-t,f+c],["L",h,f-c],["L",h+t,f+c],["Z"]]},"triangle-down":function(h,f,t){var c=t*Math.sin(.3333333333333333*Math.PI);return[["M",h-t,f-c],["L",h+t,f-c],["L",h,f+c],["Z"]]}},Gl=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.initAttrs=function(t){this._resetParamsCache()},f.prototype._resetParamsCache=function(){this.set("paramsCache",{})},f.prototype.onAttrChange=function(t,c,v){h.prototype.onAttrChange.call(this,t,c,v),["symbol","x","y","r","radius"].indexOf(t)!==-1&&this._resetParamsCache()},f.prototype.isOnlyHitBox=function(){return!0},f.prototype._getR=function(t){return(0,D.UM)(t.r)?t.radius:t.r},f.prototype._getPath=function(){var t=this.attr(),c=t.x,v=t.y,m=t.symbol||"circle",b=this._getR(t),M,A;if((0,D.mf)(m))M=m,A=M(c,v,b),A=(0,El.wb)(A);else{if(M=f.Symbols[m],!M)return console.warn(m+" marker is not supported."),null;A=M(c,v,b)}return A},f.prototype.createPath=function(t){var c=this._getPath(),v=this.get("paramsCache");Co(this,t,{path:c},v)},f.Symbols=tw,f}(Qc),fm=Gl;function Ch(h,f,t){var c=(0,et.getOffScreenContext)();return h.createPath(c),c.isPointInPath(f,t)}var hS=1e-6;function $l(h){return Math.abs(h)0!=$l(M[1]-t)>0&&$l(f-(t-b[1])*(b[0]-M[0])/(b[1]-M[1])-b[0])<0&&(c=!c)}return c}function yp(h,f,t,c,v,m,b,M){var A=(Math.atan2(M-f,b-h)+Math.PI*2)%(Math.PI*2);if(Av)return!1;var B={x:h+t*Math.cos(A),y:f+t*Math.sin(A)};return MC(B.x,B.y,b,M)<=m/2}var dS=La.vs;function nw(h){for(var f=!1,t=h.length,c=0;cnt?qe:nt,tn=qe>nt?1:qe/nt,ln=qe>nt?nt/qe:1,Zn=dS(null,[["t",-Ee,-Fe],["r",-Er],["s",1/tn,1/ln]]);Ad(Or,Or,Zn),m=yp(0,0,Rr,ht,Jt,f,Or[0],Or[1]);break;default:break}if(m)break}}return m}function Ig(h){for(var f=h.length,t=[],c=[],v=[],m=0;m0&&c.push(v),{polygons:t,polylines:c}}var Rg=(0,U.pi)({hasArc:nw,extractPolygons:Ig,isPointInStroke:iw},et.PathUtil);function NC(h,f,t){for(var c=!1,v=0;v=H[0]&&t<=H[1]&&(v=(t-H[0])/(H[1]-H[0]),m=W)});var M=b[m];if((0,D.UM)(M)||(0,D.UM)(m))return null;var A=M.length,B=b[m+1];return iv.pointAt(M[A-2],M[A-1],B[1],B[2],B[3],B[4],B[5],B[6],v)},f.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",Rg.pathToCurve(t))},f.prototype._setTcache=function(){var t=0,c=0,v=[],m,b,M,A,B=this.get("curve");if(B){if((0,D.S6)(B,function(H,W){M=B[W+1],A=H.length,M&&(t+=iv.length(H[A-2],H[A-1],M[1],M[2],M[3],M[4],M[5],M[6])||0)}),this.set("totalLength",t),t===0){this.set("tCache",[]);return}(0,D.S6)(B,function(H,W){M=B[W+1],A=H.length,M&&(m=[],m[0]=c/t,b=iv.length(H[A-2],H[A-1],M[1],M[2],M[3],M[4],M[5],M[6]),c+=b||0,m[1]=c/t,v.push(m))}),this.set("tCache",v)}},f.prototype.getStartTangent=function(){var t=this.getSegments(),c;if(t.length>1){var v=t[0].currentPoint,m=t[1].currentPoint,b=t[1].startTangent;c=[],b?(c.push([v[0]-b[0],v[1]-b[1]]),c.push([v[0],v[1]])):(c.push([m[0],m[1]]),c.push([v[0],v[1]]))}return c},f.prototype.getEndTangent=function(){var t=this.getSegments(),c=t.length,v;if(c>1){var m=t[c-2].currentPoint,b=t[c-1].currentPoint,M=t[c-1].endTangent;v=[],M?(v.push([b[0]-M[0],b[1]-M[1]]),v.push([b[0],b[1]])):(v.push([m[0],m[1]]),v.push([b[0],b[1]]))}return v},f}(Qc),Dg=eE;function aw(h,f,t,c,v){var m=h.length;if(m<2)return!1;for(var b=0;b=M[0]&&t<=M[1]&&(m=(t-M[0])/(M[1]-M[0]),b=A)}),qu.pointAt(c[b][0],c[b][1],c[b+1][0],c[b+1][1],m)},f.prototype._setTcache=function(){var t=this.attr().points;if(!(!t||t.length===0)){var c=this.getTotalLength();if(!(c<=0)){var v=0,m=[],b,M;(0,D.S6)(t,function(A,B){t[B+1]&&(b=[],b[0]=v/c,M=qu.length(A[0],A[1],t[B+1][0],t[B+1][1]),v+=M,b[1]=v/c,m.push(b))}),this.set("tCache",m)}}},f.prototype.getStartTangent=function(){var t=this.attr().points,c=[];return c.push([t[1][0],t[1][1]]),c.push([t[0][0],t[0][1]]),c},f.prototype.getEndTangent=function(){var t=this.attr().points,c=t.length-1,v=[];return v.push([t[c-1][0],t[c-1][1]]),v.push([t[c][0],t[c][1]]),v},f}(Qc),dm=hm;function vS(h,f,t,c,v,m,b){var M=v/2;return tv(h-M,f-M,t,v,m,b)||tv(h+t-M,f-M,v,c,m,b)||tv(h+M,f+c-M,t,v,m,b)||tv(h-M,f+M,v,c,m,b)}function vm(h,f,t,c,v,m,b,M){var A=m/2;return Fi(h+v,f,h+t-v,f,m,b,M)||Fi(h+t,f+v,h+t,f+c-v,m,b,M)||Fi(h+t-v,f+c,h+v,f+c,m,b,M)||Fi(h,f+c-v,h,f+v,m,b,M)||yp(h+t-v,f+v,v,1.5*Math.PI,2*Math.PI,m,b,M)||yp(h+t-v,f+c-v,v,0,.5*Math.PI,m,b,M)||yp(h+v,f+c-v,v,.5*Math.PI,Math.PI,m,b,M)||yp(h+v,f+v,v,Math.PI,1.5*Math.PI,m,b,M)}var Ju=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultAttrs=function(){var t=h.prototype.getDefaultAttrs.call(this);return(0,U.pi)((0,U.pi)({},t),{x:0,y:0,width:0,height:0,radius:0})},f.prototype.isInStrokeOrPath=function(t,c,v,m,b){var M=this.attr(),A=M.x,B=M.y,H=M.width,W=M.height,Y=M.radius;if(Y){var te=!1;return v&&(te=vm(A,B,H,W,Y,b,t,c)),!te&&m&&(te=Ch(this,t,c)),te}else{var Q=b/2;if(m&&v)return tv(A-Q,B-Q,H+Q,W+Q,t,c);if(m)return tv(A,B,H,W,t,c);if(v)return vS(A,B,H,W,b,t,c)}},f.prototype.createPath=function(t){var c=this.attr(),v=c.x,m=c.y,b=c.width,M=c.height,A=c.radius;if(t.beginPath(),A===0)t.rect(v,m,b,M);else{var B=J_(A),H=B[0],W=B[1],Y=B[2],Q=B[3];t.moveTo(v+H,m),t.lineTo(v+b-W,m),W!==0&&t.arc(v+b-W,m+W,W,-Math.PI/2,0),t.lineTo(v+b,m+M-Y),Y!==0&&t.arc(v+b-Y,m+M-Y,Y,0,Math.PI/2),t.lineTo(v+Q,m+M),Q!==0&&t.arc(v+Q,m+M-Q,Q,Math.PI/2,Math.PI),t.lineTo(v,m+H),H!==0&&t.arc(v+H,m+H,H,Math.PI,Math.PI*1.5),t.closePath()}},f}(Qc),rE=Ju,HC=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultAttrs=function(){var t=h.prototype.getDefaultAttrs.call(this);return(0,U.pi)((0,U.pi)({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},f.prototype.isOnlyHitBox=function(){return!0},f.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},f.prototype._assembleFont=function(){var t=this.attrs;t.font=(0,et.assembleFont)(t)},f.prototype._setText=function(t){var c=null;(0,D.HD)(t)&&t.indexOf(` +`)!==-1&&(c=t.split(` +`)),this.set("textArr",c)},f.prototype.onAttrChange=function(t,c,v){h.prototype.onAttrChange.call(this,t,c,v),t.startsWith("font")&&this._assembleFont(),t==="text"&&this._setText(c)},f.prototype._getSpaceingY=function(){var t=this.attrs,c=t.lineHeight,v=t.fontSize*1;return c?c-v:v*.14},f.prototype._drawTextArr=function(t,c,v){var m=this.attrs,b=m.textBaseline,M=m.x,A=m.y,B=m.fontSize*1,H=this._getSpaceingY(),W=(0,et.getTextHeight)(m.text,m.fontSize,m.lineHeight),Y;(0,D.S6)(c,function(Q,te){Y=A+te*(H+B)-W+B,b==="middle"&&(Y+=W-B-(W-B)/2),b==="top"&&(Y+=W-B),(0,D.UM)(Q)||(v?t.fillText(Q,M,Y):t.strokeText(Q,M,Y))})},f.prototype._drawText=function(t,c){var v=this.attr(),m=v.x,b=v.y,M=this.get("textArr");if(M)this._drawTextArr(t,M,c);else{var A=v.text;(0,D.UM)(A)||(c?t.fillText(A,m,b):t.strokeText(A,m,b))}},f.prototype.strokeAndFill=function(t){var c=this.attrs,v=c.lineWidth,m=c.opacity,b=c.strokeOpacity,M=c.fillOpacity;this.isStroke()&&v>0&&(!(0,D.UM)(b)&&b!==1&&(t.globalAlpha=m),this.stroke(t)),this.isFill()&&(!(0,D.UM)(M)&&M!==1?(t.globalAlpha=M,this.fill(t),t.globalAlpha=m):this.fill(t)),this.afterDrawPath(t)},f.prototype.fill=function(t){this._drawText(t,!0)},f.prototype.stroke=function(t){this._drawText(t,!1)},f}(Qc),nE=HC;function iE(h,f){if(f){var t=(0,et.invert)(f);return(0,et.multiplyVec2)(t,h)}return h}function lw(h,f,t){var c=h.getTotalMatrix();if(c){var v=iE([f,t,1],c),m=v[0],b=v[1];return[m,b]}return[f,t]}function sw(h,f,t){if(h.isCanvas&&h.isCanvas())return!0;if(!(0,et.isAllowCapture)(h)||h.cfg.isInView===!1)return!1;if(h.cfg.clipShape){var c=lw(h,f,t),v=c[0],m=c[1];if(h.isClipped(v,m))return!1}var b=h.cfg.cacheCanvasBBox||h.getCanvasBBox();return f>=b.minX&&f<=b.maxX&&t>=b.minY&&t<=b.maxY}function uw(h,f,t){if(!sw(h,f,t))return null;for(var c=null,v=h.getChildren(),m=v.length,b=m-1;b>=0;b--){var M=v[b];if(M.isGroup())c=uw(M,f,t);else if(sw(M,f,t)){var A=M,B=lw(M,f,t),H=B[0],W=B[1];A.isInShape(H,W)&&(c=M)}if(c)break}return c}var zC=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getDefaultCfg=function(){var t=h.prototype.getDefaultCfg.call(this);return t.renderer="canvas",t.autoDraw=!0,t.localRefresh=!0,t.refreshElements=[],t.clipView=!0,t.quickHit=!1,t},f.prototype.onCanvasChange=function(t){(t==="attr"||t==="sort"||t==="changeSize")&&(this.set("refreshElements",[this]),this.draw())},f.prototype.getShapeBase=function(){return Rt},f.prototype.getGroupBase=function(){return IC},f.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||Q_();return t>=1?Math.ceil(t):1},f.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},f.prototype.createDom=function(){var t=document.createElement("canvas"),c=t.getContext("2d");return this.set("context",c),t},f.prototype.setDOMSize=function(t,c){h.prototype.setDOMSize.call(this,t,c);var v=this.get("context"),m=this.get("el"),b=this.getPixelRatio();m.width=b*t,m.height=b*c,b>1&&v.scale(b,b)},f.prototype.clear=function(){h.prototype.clear.call(this),this._clearFrame();var t=this.get("context"),c=this.get("el");t.clearRect(0,0,c.width,c.height)},f.prototype.getShape=function(t,c){var v;return this.get("quickHit")?v=uw(this,t,c):v=h.prototype.getShape.call(this,t,c,null),v},f.prototype._getRefreshRegion=function(){var t=this.get("refreshElements"),c=this.getViewRange(),v;if(t.length&&t[0]===this)v=c;else if(v=lu(t),v){v.minX=Math.floor(v.minX),v.minY=Math.floor(v.minY),v.maxX=Math.ceil(v.maxX),v.maxY=Math.ceil(v.maxY),v.maxY+=1;var m=this.get("clipView");m&&(v=_g(v,c))}return v},f.prototype.refreshElement=function(t){var c=this.get("refreshElements");c.push(t)},f.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&((0,D.VS)(t),this.set("drawFrame",null),this.set("refreshElements",[]))},f.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},f.prototype._drawAll=function(){var t=this.get("context"),c=this.get("el"),v=this.getChildren();t.clearRect(0,0,c.width,c.height),Sg(t,this),vp(t,v),this.set("refreshElements",[])},f.prototype._drawRegion=function(){var t=this.get("context"),c=this.get("refreshElements"),v=this.getChildren(),m=this._getRefreshRegion();m?(t.clearRect(m.minX,m.minY,m.maxX-m.minX,m.maxY-m.minY),t.save(),t.beginPath(),t.rect(m.minX,m.minY,m.maxX-m.minX,m.maxY-m.minY),t.clip(),Sg(t,this),oS(this,v,m),vp(t,v,m),t.restore()):c.length&&Tu(c),(0,D.S6)(c,function(b){b.get("hasChanged")&&b.set("hasChanged",!1)}),this.set("refreshElements",[])},f.prototype._startDraw=function(){var t=this,c=this.get("drawFrame"),v=this.get("drawFrameCallback");c||(c=(0,D.U7)(function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null),v&&v()}),this.set("drawFrame",c))},f.prototype.skipDraw=function(){},f.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},f}(et.AbstractCanvas),Af=zC,pS="0.5.12",bh={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},Wa={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},gS=null;function Au(h){return document.createElementNS("http://www.w3.org/2000/svg",h)}function pm(h){var f=bh[h.type],t=h.getParent();if(!f)throw new Error("the type "+h.type+" is not supported by svg");var c=Au(f);if(h.get("id")&&(c.id=h.get("id")),h.set("el",c),h.set("attrs",{}),t){var v=t.get("el");v||(v=t.createDom(),t.set("el",v)),v.appendChild(c)}return c}function cw(h,f){var t=h.get("el"),c=(0,D.qo)(t.children).sort(f),v=document.createDocumentFragment();c.forEach(function(m){v.appendChild(m)}),t.appendChild(v)}function mS(h,f){var t=h.parentNode,c=Array.from(t.childNodes).filter(function(M){return M.nodeType===1&&M.nodeName.toLowerCase()!=="defs"}),v=c[f],m=c.indexOf(h);if(v){if(m>f)t.insertBefore(h,v);else if(m0&&(c?"stroke"in v?this._setColor(t,"stroke",M):"strokeStyle"in v&&this._setColor(t,"stroke",A):this._setColor(t,"stroke",M||A),H&&Y.setAttribute(Wa.strokeOpacity,H),W&&Y.setAttribute(Wa.lineWidth,W))},f.prototype._setColor=function(t,c,v){var m=this.get("el");if(!v){m.setAttribute(Wa[c],"none");return}if(v=v.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(v)){var b=t.find("gradient",v);b||(b=t.addGradient(v)),m.setAttribute(Wa[c],"url(#"+b+")")}else if(/^[p,P]{1}[\s]*\(/.test(v)){var b=t.find("pattern",v);b||(b=t.addPattern(v)),m.setAttribute(Wa[c],"url(#"+b+")")}else m.setAttribute(Wa[c],v)},f.prototype.shadow=function(t,c){var v=this.attr(),m=c||v,b=m.shadowOffsetX,M=m.shadowOffsetY,A=m.shadowBlur,B=m.shadowColor;(b||M||A||B)&&Ul(this,t)},f.prototype.transform=function(t){var c=this.attr(),v=(t||c).matrix;v&&Ec(this)},f.prototype.isInShape=function(t,c){return this.isPointInPath(t,c)},f.prototype.isPointInPath=function(t,c){var v=this.get("el"),m=this.get("canvas"),b=m.get("el").getBoundingClientRect(),M=t+b.left,A=c+b.top,B=document.elementFromPoint(M,A);return!!(B&&B.isEqualNode(v))},f.prototype.getHitLineWidth=function(){var t=this.attrs,c=t.lineWidth,v=t.lineAppendWidth;return this.isStroke()?c+v:0},f}(et.AbstractShape),Lo=oE,yS=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.type="circle",t.canFill=!0,t.canStroke=!0,t}return f.prototype.getDefaultAttrs=function(){var t=h.prototype.getDefaultAttrs.call(this);return(0,U.pi)((0,U.pi)({},t),{x:0,y:0,r:0})},f.prototype.createPath=function(t,c){var v=this.attr(),m=this.get("el");(0,D.S6)(c||v,function(b,M){M==="x"||M==="y"?m.setAttribute("c"+M,b):Wa[M]&&m.setAttribute(Wa[M],b)})},f}(Lo),co=yS,Rf=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.type="dom",t.canFill=!1,t.canStroke=!1,t}return f.prototype.createPath=function(t,c){var v=this.attr(),m=this.get("el");if((0,D.S6)(c||v,function(B,H){Wa[H]&&m.setAttribute(Wa[H],B)}),typeof v.html=="function"){var b=v.html.call(this,v);if(b instanceof Element||b instanceof HTMLDocument){for(var M=m.childNodes,A=M.length-1;A>=0;A--)m.removeChild(M[A]);m.appendChild(b)}else m.innerHTML=b}else m.innerHTML=v.html},f}(Lo),CS=Rf,Df=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.type="ellipse",t.canFill=!0,t.canStroke=!0,t}return f.prototype.getDefaultAttrs=function(){var t=h.prototype.getDefaultAttrs.call(this);return(0,U.pi)((0,U.pi)({},t),{x:0,y:0,rx:0,ry:0})},f.prototype.createPath=function(t,c){var v=this.attr(),m=this.get("el");(0,D.S6)(c||v,function(b,M){M==="x"||M==="y"?m.setAttribute("c"+M,b):Wa[M]&&m.setAttribute(Wa[M],b)})},f}(Lo),av=Df,Ii=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.type="image",t.canFill=!1,t.canStroke=!1,t}return f.prototype.getDefaultAttrs=function(){var t=h.prototype.getDefaultAttrs.call(this);return(0,U.pi)((0,U.pi)({},t),{x:0,y:0,width:0,height:0})},f.prototype.createPath=function(t,c){var v=this,m=this.attr(),b=this.get("el");(0,D.S6)(c||m,function(M,A){A==="img"?v._setImage(m.img):Wa[A]&&b.setAttribute(Wa[A],M)})},f.prototype.setAttr=function(t,c){this.attrs[t]=c,t==="img"&&this._setImage(c)},f.prototype._setImage=function(t){var c=this.attr(),v=this.get("el");if((0,D.HD)(t))v.setAttribute("href",t);else if(t instanceof window.Image)c.width||(v.setAttribute("width",t.width),this.attr("width",t.width)),c.height||(v.setAttribute("height",t.height),this.attr("height",t.height)),v.setAttribute("href",t.src);else if(t instanceof HTMLElement&&(0,D.HD)(t.nodeName)&&t.nodeName.toUpperCase()==="CANVAS")v.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var m=document.createElement("canvas");m.setAttribute("width",""+t.width),m.setAttribute("height",""+t.height),m.getContext("2d").putImageData(t,0,0),c.width||(v.setAttribute("width",""+t.width),this.attr("width",t.width)),c.height||(v.setAttribute("height",""+t.height),this.attr("height",t.height)),v.setAttribute("href",m.toDataURL())}},f}(Lo),fw=Ii;function pl(h,f,t,c){var v=h-t,m=f-c;return Math.sqrt(v*v+m*m)}function Xs(h,f){return Math.abs(h-f)<.001}function GC(h,f){var t=(0,D.VV)(h),c=(0,D.VV)(f),v=(0,D.Fp)(h),m=(0,D.Fp)(f);return{x:t,y:c,width:v-t,height:m-c}}function su(h,f,t,c){return{minX:min([h,t]),maxX:max([h,t]),minY:min([f,c]),maxY:max([f,c])}}function Zs(h){return(h+Math.PI*2)%(Math.PI*2)}var Ol={box:function(h,f,t,c){return GC([h,t],[f,c])},length:function(h,f,t,c){return pl(h,f,t,c)},pointAt:function(h,f,t,c,v){return{x:(1-v)*h+v*t,y:(1-v)*f+v*c}},pointDistance:function(h,f,t,c,v,m){var b=(t-h)*(v-h)+(c-f)*(m-f);if(b<0)return pl(h,f,v,m);var M=(t-h)*(t-h)+(c-f)*(c-f);return b>M?pl(t,c,v,m):this.pointToLine(h,f,t,c,v,m)},pointToLine:function(h,f,t,c,v,m){var b=[t-h,c-f];if(Ki.I6(b,[0,0]))return Math.sqrt((v-h)*(v-h)+(m-f)*(m-f));var M=[-b[1],b[0]];Ki.Fv(M,M);var A=[v-h,m-f];return Math.abs(Ki.AK(A,M))},tangentAngle:function(h,f,t,c){return Math.atan2(c-f,t-h)}},bS=1e-4;function wS(h,f,t,c,v,m){var b,M=1/0,A=[t,c],B=20;m&&m>200&&(B=m/10);for(var H=1/B,W=H/10,Y=0;Y<=B;Y++){var Q=Y*H,te=[v.apply(null,h.concat([Q])),v.apply(null,f.concat([Q]))],he=pl(A[0],A[1],te[0],te[1]);he=0&&he=0?[v]:[]}function dw(h,f,t,c){return 2*(1-c)*(f-h)+2*c*(t-f)}function $C(h,f,t,c,v,m,b){var M=nf(h,t,v,b),A=nf(f,c,m,b),B=Ol.pointAt(h,f,t,c,b),H=Ol.pointAt(t,c,v,m,b);return[[h,f,B.x,B.y,M,A],[M,A,H.x,H.y,v,m]]}function mm(h,f,t,c,v,m,b){if(b===0)return(pl(h,f,t,c)+pl(t,c,v,m)+pl(h,f,v,m))/2;var M=$C(h,f,t,c,v,m,.5),A=M[0],B=M[1];return A.push(b-1),B.push(b-1),mm.apply(null,A)+mm.apply(null,B)}var VM={box:function(h,f,t,c,v,m){var b=hw(h,t,v)[0],M=hw(f,c,m)[0],A=[h,v],B=[f,m];return b!==void 0&&A.push(nf(h,t,v,b)),M!==void 0&&B.push(nf(f,c,m,M)),GC(A,B)},length:function(h,f,t,c,v,m){return mm(h,f,t,c,v,m,3)},nearestPoint:function(h,f,t,c,v,m,b,M){return wS([h,t,v],[f,c,m],b,M,nf)},pointDistance:function(h,f,t,c,v,m,b,M){var A=this.nearestPoint(h,f,t,c,v,m,b,M);return pl(A.x,A.y,b,M)},interpolationAt:nf,pointAt:function(h,f,t,c,v,m,b){return{x:nf(h,t,v,b),y:nf(f,c,m,b)}},divide:function(h,f,t,c,v,m,b){return $C(h,f,t,c,v,m,b)},tangentAngle:function(h,f,t,c,v,m,b){var M=dw(h,t,v,b),A=dw(f,c,m,b),B=Math.atan2(A,M);return Zs(B)}};function ec(h,f,t,c,v){var m=1-v;return m*m*m*h+3*f*v*m*m+3*t*v*v*m+c*v*v*v}function Cp(h,f,t,c,v){var m=1-v;return 3*(m*m*(f-h)+2*m*v*(t-f)+v*v*(c-t))}function ym(h,f,t,c){var v=-3*h+9*f-9*t+3*c,m=6*h-12*f+6*t,b=3*f-3*h,M=[],A,B,H;if(Xs(v,0))Xs(m,0)||(A=-b/m,A>=0&&A<=1&&M.push(A));else{var W=m*m-4*v*b;Xs(W,0)?M.push(-m/(2*v)):W>0&&(H=Math.sqrt(W),A=(-m+H)/(2*v),B=(-m-H)/(2*v),A>=0&&A<=1&&M.push(A),B>=0&&B<=1&&M.push(B))}return M}function Lg(h,f,t,c,v,m,b,M,A){var B=ec(h,t,v,b,A),H=ec(f,c,m,M,A),W=Ol.pointAt(h,f,t,c,A),Y=Ol.pointAt(t,c,v,m,A),Q=Ol.pointAt(v,m,b,M,A),te=Ol.pointAt(W.x,W.y,Y.x,Y.y,A),he=Ol.pointAt(Y.x,Y.y,Q.x,Q.y,A);return[[h,f,W.x,W.y,te.x,te.y,B,H],[B,H,he.x,he.y,Q.x,Q.y,b,M]]}function ov(h,f,t,c,v,m,b,M,A){if(A===0)return lE([h,t,v,b],[f,c,m,M]);var B=Lg(h,f,t,c,v,m,b,M,.5),H=B[0],W=B[1];return H.push(A-1),W.push(A-1),ov.apply(null,H)+ov.apply(null,W)}var Cm={extrema:ym,box:function(h,f,t,c,v,m,b,M){for(var A=[h,b],B=[f,M],H=ym(h,t,v,b),W=ym(f,c,m,M),Y=0;Y0?t:t*-1}var xS={box:function(h,f,t,c){return{x:h-t,y:f-c,width:t*2,height:c*2}},length:function(h,f,t,c){return Math.PI*(3*(t+c)-Math.sqrt((3*t+c)*(t+3*c)))},nearestPoint:function(h,f,t,c,v,m){var b=t,M=c;if(b===0||M===0)return{x:h,y:f};for(var A=v-h,B=m-f,H=Math.abs(A),W=Math.abs(B),Y=b*b,Q=M*M,te=Math.PI/4,he,Ee,Fe=0;Fe<4;Fe++){he=b*Math.cos(te),Ee=M*Math.sin(te);var qe=(Y-Q)*Math.pow(Math.cos(te),3)/b,nt=(Q-Y)*Math.pow(Math.sin(te),3)/M,ht=he-qe,Jt=Ee-nt,Er=H-qe,Or=W-nt,Rr=Math.hypot(Jt,ht),tn=Math.hypot(Or,Er),ln=Rr*Math.asin((ht*Or-Jt*Er)/(Rr*tn)),Zn=ln/Math.sqrt(Y+Q-he*he-Ee*Ee);te+=Zn,te=Math.min(Math.PI/2,Math.max(0,te))}return{x:h+vw(he,A),y:f+vw(Ee,B)}},pointDistance:function(h,f,t,c,v,m){var b=this.nearestPoint(h,f,t,c,v,m);return pl(b.x,b.y,v,m)},pointAt:function(h,f,t,c,v){var m=2*Math.PI*v;return{x:h+t*Math.cos(m),y:f+c*Math.sin(m)}},tangentAngle:function(h,f,t,c,v){var m=2*Math.PI*v,b=Math.atan2(c*Math.cos(m),-t*Math.sin(m));return Zs(b)}};function UC(h,f,t,c,v,m,b,M){return-1*t*Math.cos(v)*Math.sin(M)-c*Math.sin(v)*Math.cos(M)}function SS(h,f,t,c,v,m,b,M){return-1*t*Math.sin(v)*Math.sin(M)+c*Math.cos(v)*Math.cos(M)}function _S(h,f,t){return Math.atan(-f/h*Math.tan(t))}function bm(h,f,t){return Math.atan(f/(h*Math.tan(t)))}function YC(h,f,t,c,v,m){return t*Math.cos(v)*Math.cos(m)-c*Math.sin(v)*Math.sin(m)+h}function Pg(h,f,t,c,v,m){return t*Math.sin(v)*Math.cos(m)+c*Math.cos(v)*Math.sin(m)+f}function bp(h,f,t,c){var v=Math.atan2(c*h,t*f);return(v+Math.PI*2)%(Math.PI*2)}function lv(h,f,t){return{x:h*Math.cos(t),y:f*Math.sin(t)}}function wp(h,f,t){var c=Math.cos(t),v=Math.sin(t);return[h*c-f*v,h*v+f*c]}var jC={box:function(h,f,t,c,v,m,b){for(var M=_S(t,c,v),A=1/0,B=-1/0,H=[m,b],W=-Math.PI*2;W<=Math.PI*2;W+=Math.PI){var Y=M+W;mB&&(B=Q)}for(var te=bm(t,c,v),he=1/0,Ee=-1/0,Fe=[m,b],W=-Math.PI*2;W<=Math.PI*2;W+=Math.PI){var qe=te+W;mEe&&(Ee=nt)}return{x:A,y:he,width:B-A,height:Ee-he}},length:function(h,f,t,c,v,m,b){},nearestPoint:function(h,f,t,c,v,m,b,M,A){var B=wp(M-h,A-f,-v),H=B[0],W=B[1],Y=xS.nearestPoint(0,0,t,c,H,W),Q=bp(t,c,Y.x,Y.y);Qb&&(Y=lv(t,c,b));var te=wp(Y.x,Y.y,v);return{x:te[0]+h,y:te[1]+f}},pointDistance:function(h,f,t,c,v,m,b,M,A){var B=this.nearestPoint(h,f,t,c,M,A);return pl(B.x,B.y,M,A)},pointAt:function(h,f,t,c,v,m,b,M){var A=(b-m)*M+m;return{x:YC(h,f,t,c,v,A),y:Pg(h,f,t,c,v,A)}},tangentAngle:function(h,f,t,c,v,m,b,M){var A=(b-m)*M+m,B=UC(h,f,t,c,v,m,b,A),H=SS(h,f,t,c,v,m,b,A);return Zs(Math.atan2(H,B))}};function tc(h){for(var f=0,t=[],c=0;c1||f<0||h.length<2)return null;var t=tc(h),c=t.segments,v=t.totalLength;if(v===0)return{x:h[0][0],y:h[0][1]};for(var m=0,b=null,M=0;M=m&&f<=m+W){var Y=(f-m)/W;b=Ol.pointAt(B[0],B[1],H[0],H[1],Y);break}m+=W}return b}function pd(h,f){if(f>1||f<0||h.length<2)return 0;for(var t=tc(h),c=t.segments,v=t.totalLength,m=0,b=0,M=0;M=m&&f<=m+W){b=Math.atan2(H[1]-B[1],H[0]-B[0]);break}m+=W}return b}function VC(h,f,t){for(var c=1/0,v=0;v=2?m.setAttribute("points",b.map(function(A){return A[0]+","+A[1]}).join(" ")):Wa[M]&&m.setAttribute(Wa[M],b)})},f}(Lo),xm=KC,OS=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.type="polyline",t.canFill=!0,t.canStroke=!0,t}return f.prototype.getDefaultAttrs=function(){var t=h.prototype.getDefaultAttrs.call(this);return(0,U.pi)((0,U.pi)({},t),{startArrow:!1,endArrow:!1})},f.prototype.onAttrChange=function(t,c,v){h.prototype.onAttrChange.call(this,t,c,v),["points"].indexOf(t)!==-1&&this._resetCache()},f.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},f.prototype.createPath=function(t,c){var v=this.attr(),m=this.get("el");(0,D.S6)(c||v,function(b,M){M==="points"&&(0,D.kJ)(b)&&b.length>=2?m.setAttribute("points",b.map(function(A){return A[0]+","+A[1]}).join(" ")):Wa[M]&&m.setAttribute(Wa[M],b)})},f.prototype.getTotalLength=function(){var t=this.attr().points,c=this.get("totalLength");return(0,D.UM)(c)?(this.set("totalLength",XC.length(t)),this.get("totalLength")):c},f.prototype.getPoint=function(t){var c=this.attr().points,v=this.get("tCache");v||(this._setTcache(),v=this.get("tCache"));var m,b;return(0,D.S6)(v,function(M,A){t>=M[0]&&t<=M[1]&&(m=(t-M[0])/(M[1]-M[0]),b=A)}),Ol.pointAt(c[b][0],c[b][1],c[b+1][0],c[b+1][1],m)},f.prototype._setTcache=function(){var t=this.attr().points;if(!(!t||t.length===0)){var c=this.getTotalLength();if(!(c<=0)){var v=0,m=[],b,M;(0,D.S6)(t,function(A,B){t[B+1]&&(b=[],b[0]=v/c,M=Ol.length(A[0],A[1],t[B+1][0],t[B+1][1]),v+=M,b[1]=v/c,m.push(b))}),this.set("tCache",m)}}},f.prototype.getStartTangent=function(){var t=this.attr().points,c=[];return c.push([t[1][0],t[1][1]]),c.push([t[0][0],t[0][1]]),c},f.prototype.getEndTangent=function(){var t=this.attr().points,c=t.length-1,v=[];return v.push([t[c-1][0],t[c-1][1]]),v.push([t[c][0],t[c][1]]),v},f}(Lo),qC=OS,fE=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,Sm=/[^\s,]+/gi;function QC(h){var f=0,t=0,c=0,v=0;return(0,D.kJ)(h)?h.length===1?f=t=c=v=h[0]:h.length===2?(f=c=h[0],t=v=h[1]):h.length===3?(f=h[0],t=v=h[1],c=h[2]):(f=h[0],t=h[1],c=h[2],v=h[3]):f=t=c=v=h,{r1:f,r2:t,r3:c,r4:v}}function ZM(h){if(h=h||[],isArray(h))return h;if(isString(h))return h=h.match(fE),each(h,function(f,t){if(f=f.match(Sm),f[0].length>1){var c=f[0].charAt(0);f.splice(1,0,f[0].substr(1)),f[0]=c}each(f,function(v,m){isNaN(v)||(f[m]=+v)}),h[t]=f}),h}var pw=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.type="rect",t.canFill=!0,t.canStroke=!0,t}return f.prototype.getDefaultAttrs=function(){var t=h.prototype.getDefaultAttrs.call(this);return(0,U.pi)((0,U.pi)({},t),{x:0,y:0,width:0,height:0,radius:0})},f.prototype.createPath=function(t,c){var v=this,m=this.attr(),b=this.get("el"),M=!1,A=["x","y","width","height","radius"];(0,D.S6)(c||m,function(B,H){A.indexOf(H)!==-1&&!M?(b.setAttribute("d",v._assembleRect(m)),M=!0):A.indexOf(H)===-1&&Wa[H]&&b.setAttribute(Wa[H],B)})},f.prototype._assembleRect=function(t){var c=t.x,v=t.y,m=t.width,b=t.height,M=t.radius;if(!M)return"M "+c+","+v+" l "+m+",0 l 0,"+b+" l"+-m+" 0 z";var A=QC(M);(0,D.kJ)(M)?M.length===1?A.r1=A.r2=A.r3=A.r4=M[0]:M.length===2?(A.r1=A.r3=M[0],A.r2=A.r4=M[1]):M.length===3?(A.r1=M[0],A.r2=A.r4=M[1],A.r3=M[2]):(A.r1=M[0],A.r2=M[1],A.r3=M[2],A.r4=M[3]):A.r1=A.r2=A.r3=A.r4=M;var B=[["M "+(c+A.r1)+","+v],["l "+(m-A.r1-A.r2)+",0"],["a "+A.r2+","+A.r2+",0,0,1,"+A.r2+","+A.r2],["l 0,"+(b-A.r2-A.r3)],["a "+A.r3+","+A.r3+",0,0,1,"+-A.r3+","+A.r3],["l "+(A.r3+A.r4-m)+",0"],["a "+A.r4+","+A.r4+",0,0,1,"+-A.r4+","+-A.r4],["l 0,"+(A.r4+A.r1-b)],["a "+A.r1+","+A.r1+",0,0,1,"+A.r1+","+-A.r1],["z"]];return B.join(" ")},f}(Lo),AS=pw,gw=rt(32655),JC=.3,Bg={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},e1={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},Sp={left:"left",start:"left",center:"middle",right:"end",end:"end"},wh=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.type="text",t.canFill=!0,t.canStroke=!0,t}return f.prototype.getDefaultAttrs=function(){var t=h.prototype.getDefaultAttrs.call(this);return(0,U.pi)((0,U.pi)({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},f.prototype.createPath=function(t,c){var v=this,m=this.attr(),b=this.get("el");this._setFont(),(0,D.S6)(c||m,function(M,A){A==="text"?v._setText(""+M):A==="matrix"&&M?Ec(v):Wa[A]&&b.setAttribute(Wa[A],M)}),b.setAttribute("paint-order","stroke"),b.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},f.prototype._setFont=function(){var t=this.get("el"),c=this.attr(),v=c.textBaseline,m=c.textAlign,b=(0,gw.qY)();b&&b.name==="firefox"?t.setAttribute("dominant-baseline",e1[v]||"alphabetic"):t.setAttribute("alignment-baseline",Bg[v]||"baseline"),t.setAttribute("text-anchor",Sp[m]||"left")},f.prototype._setText=function(t){var c=this.get("el"),v=this.attr(),m=v.x,b=v.textBaseline,M=b===void 0?"bottom":b;if(!t)c.innerHTML="";else if(~t.indexOf(` +`)){var A=t.split(` +`),B=A.length-1,H="";(0,D.S6)(A,function(W,Y){Y===0?M==="alphabetic"?H+=''+W+"":M==="top"?H+=''+W+"":M==="middle"?H+=''+W+"":M==="bottom"?H+=''+W+"":M==="hanging"&&(H+=''+W+""):H+=''+W+""}),c.innerHTML=H}else c.innerHTML=t},f}(Lo),_m=wh,t1=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,IS=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,uu=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function RS(h){var f=h.match(uu);if(!f)return"";var t="";return f.sort(function(c,v){return c=c.split(":"),v=v.split(":"),Number(c[0])-Number(v[0])}),(0,D.S6)(f,function(c){c=c.split(":"),t+=''}),t}function DS(h,f){var t=t1.exec(h),c=(0,D.wQ)((0,D.c$)(parseFloat(t[1])),Math.PI*2),v=t[2],m,b;c>=0&&c<.5*Math.PI?(m={x:0,y:0},b={x:1,y:1}):.5*Math.PI<=c&&c`;t.innerHTML=c},h}(),hE=r1,dE=function(){function h(f,t){this.cfg={};var c=Au("marker"),v=(0,D.EL)("marker_");c.setAttribute("id",v);var m=Au("path");m.setAttribute("stroke",f.stroke||"none"),m.setAttribute("fill",f.fill||"none"),c.appendChild(m),c.setAttribute("overflow","visible"),c.setAttribute("orient","auto-start-reverse"),this.el=c,this.child=m,this.id=v;var b=f[t==="marker-start"?"startArrow":"endArrow"];return this.stroke=f.stroke||"#000",b===!0?this._setDefaultPath(t,m):(this.cfg=b,this._setMarker(f.lineWidth,m)),this}return h.prototype.match=function(){return!1},h.prototype._setDefaultPath=function(f,t){var c=this.el;t.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),c.setAttribute("refX",""+10*Math.cos(Math.PI/6)),c.setAttribute("refY","5")},h.prototype._setMarker=function(f,t){var c=this.el,v=this.cfg.path,m=this.cfg.d;(0,D.kJ)(v)&&(v=v.map(function(b){return b.join(" ")}).join("")),t.setAttribute("d",v),c.appendChild(t),m&&c.setAttribute("refX",""+m/f)},h.prototype.update=function(f){var t=this.child;t.attr?t.attr("fill",f):t.setAttribute("fill",f)},h}(),vE=dE,kS=function(){function h(f){this.type="clip",this.cfg={};var t=Au("clipPath");this.el=t,this.id=(0,D.EL)("clip_"),t.id=this.id;var c=f.cfg.el;return t.appendChild(c),this.cfg=f,this}return h.prototype.match=function(){return!1},h.prototype.remove=function(){var f=this.el;f.parentNode.removeChild(f)},h}(),KM=kS,FS=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,n1=function(){function h(f){this.cfg={};var t=Au("pattern");t.setAttribute("patternUnits","userSpaceOnUse");var c=Au("image");t.appendChild(c);var v=(0,D.EL)("pattern_");t.id=v,this.el=t,this.id=v,this.cfg=f;var m=FS.exec(f),b=m[2];c.setAttribute("href",b);var M=new Image;b.match(/^data:/i)||(M.crossOrigin="Anonymous"),M.src=b;function A(){t.setAttribute("width",""+M.width),t.setAttribute("height",""+M.height)}return M.complete?A():(M.onload=A,M.src=M.src),this}return h.prototype.match=function(f,t){return this.cfg===t},h}(),pE=n1,Cw=function(){function h(f){var t=Au("defs"),c=(0,D.EL)("defs_");t.id=c,f.appendChild(t),this.children=[],this.defaultArrow={},this.el=t,this.canvas=f}return h.prototype.find=function(f,t){for(var c=this.children,v=null,m=0;m0&&(Q[0][0]="L")),m=m.concat(Q)}),m.push(["Z"])}return m}function Mm(h,f,t,c,v){for(var m=nl(h,f,!f,"lineWidth"),b=h.connectNulls,M=h.isInCircle,A=h.points,B=h.showSinglePoint,H=Xu(A,b,B),W=[],Y=0,Q=H.length;Yb&&(b=A),A=c[0]}));var Ee=this.scales[te];try{for(var Fe=(0,U.XA)(t),qe=Fe.next();!qe.done;qe=Fe.next()){var nt=qe.value,ht=this.getDrawCfg(nt),Jt=ht.x,Er=ht.y,Or=Ee.scale(nt[Bt][te]);this.drawGrayScaleBlurredCircle(Jt-B.x,Er-H.y,v+m,Or,he)}}catch(ln){b={error:ln}}finally{try{qe&&!qe.done&&(M=Fe.return)&&M.call(Fe)}finally{if(b)throw b.error}}var Rr=he.getImageData(0,0,W,Y);this.clearShadowCanvasCtx(),this.colorize(Rr),he.putImageData(Rr,0,0);var tn=this.getImageShape();tn.attr("x",B.x),tn.attr("y",H.y),tn.attr("width",W),tn.attr("height",Y),tn.attr("img",he.canvas),tn.set("origin",this.getShapeInfo(t))},f.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),c=this.coordinate;return Math.min(c.getWidth()/(t.scales[0].ticks.length*4),c.getHeight()/(t.scales[1].ticks.length*4))},f.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},f.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},f.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},f.prototype.drawGrayScaleBlurredCircle=function(t,c,v,m,b){var M=this.getGrayScaleBlurredCanvas();b.globalAlpha=m,b.drawImage(M,t-v,c-v)},f.prototype.colorize=function(t){for(var c=this.getAttribute("color"),v=t.data,m=this.paletteCache,b=3;bf&&(t=t?f/(1+c/t):0,c=f-t),v+m>f&&(v=v?f/(1+m/v):0,m=f-v),[t||0,c||0,v||0,m||0]}function WS(h,f,t){var c=[];if(t.isRect){var v=t.isTransposed?{x:t.start.x,y:f[0].y}:{x:f[0].x,y:t.start.y},m=t.isTransposed?{x:t.end.x,y:f[2].y}:{x:f[3].x,y:t.end.y},b=(0,D.U2)(h,["background","style","radius"]);if(b){var M=t.isTransposed?Math.abs(f[0].y-f[2].y):f[2].x-f[1].x,A=t.isTransposed?t.getWidth():t.getHeight(),B=(0,U.CR)(i1(b,Math.min(M,A)),4),H=B[0],W=B[1],Y=B[2],Q=B[3],te=t.isTransposed&&t.isReflect("y"),he=te?0:1,Ee=function(Er){return te?-Er:Er};c.push(["M",v.x,m.y+Ee(H)]),H!==0&&c.push(["A",H,H,0,0,he,v.x+H,m.y]),c.push(["L",m.x-W,m.y]),W!==0&&c.push(["A",W,W,0,0,he,m.x,m.y+Ee(W)]),c.push(["L",m.x,v.y-Ee(Y)]),Y!==0&&c.push(["A",Y,Y,0,0,he,m.x-Y,v.y]),c.push(["L",v.x+Q,v.y]),Q!==0&&c.push(["A",Q,Q,0,0,he,v.x,v.y-Ee(Q)])}else c.push(["M",v.x,v.y]),c.push(["L",m.x,v.y]),c.push(["L",m.x,m.y]),c.push(["L",v.x,m.y]),c.push(["L",v.x,v.y]);c.push(["z"])}if(t.isPolar){var Fe=t.getCenter(),qe=Yc(h,t),nt=qe.startAngle,ht=qe.endAngle;if(t.type!=="theta"&&!t.isTransposed)c=yf(Fe.x,Fe.y,t.getRadius(),nt,ht);else{var Jt=function(Rr){return Math.pow(Rr,2)},H=Math.sqrt(Jt(Fe.x-f[0].x)+Jt(Fe.y-f[0].y)),W=Math.sqrt(Jt(Fe.x-f[2].x)+Jt(Fe.y-f[2].y));c=yf(Fe.x,Fe.y,H,t.startAngle,t.endAngle,W)}}return c}function Ew(h,f,t){var c=t.getWidth(),v=t.getHeight(),m=t.type==="rect",b=[],M=(h[2].x-h[1].x)/2,A=t.isTransposed?M*v/c:M*c/v;return f==="round"?(m?(b.push(["M",h[0].x,h[0].y+A]),b.push(["L",h[1].x,h[1].y-A]),b.push(["A",M,M,0,0,1,h[2].x,h[2].y-A]),b.push(["L",h[3].x,h[3].y+A]),b.push(["A",M,M,0,0,1,h[0].x,h[0].y+A])):(b.push(["M",h[0].x,h[0].y]),b.push(["L",h[1].x,h[1].y]),b.push(["A",M,M,0,0,1,h[2].x,h[2].y]),b.push(["L",h[3].x,h[3].y]),b.push(["A",M,M,0,0,1,h[0].x,h[0].y])),b.push(["z"])):b=_w(h),b}function Mc(h,f,t){var c=[];return(0,D.UM)(f)?t?c.push(["M",h[0].x,h[0].y],["L",h[1].x,h[1].y],["L",(h[2].x+h[3].x)/2,(h[2].y+h[3].y)/2],["Z"]):c.push(["M",h[0].x,h[0].y],["L",h[1].x,h[1].y],["L",h[2].x,h[2].y],["L",h[3].x,h[3].y],["Z"]):c.push(["M",h[0].x,h[0].y],["L",h[1].x,h[1].y],["L",f[1].x,f[1].y],["L",f[0].x,f[0].y],["Z"]),c}function Tm(h,f){return[f,h]}function Om(h,f,t){var c,v,m,b,M,A,B,H=(0,U.CR)((0,U.ev)([],(0,U.CR)(h),!1),4),W=H[0],Y=H[1],Q=H[2],te=H[3],he=(0,U.CR)(typeof t=="number"?Array(4).fill(t):t,4),Ee=he[0],Fe=he[1],qe=he[2],nt=he[3];f.isTransposed&&(c=(0,U.CR)(Tm(Y,te),2),Y=c[0],te=c[1]),f.isReflect("y")&&(v=(0,U.CR)(Tm(W,Y),2),W=v[0],Y=v[1],m=(0,U.CR)(Tm(Q,te),2),Q=m[0],te=m[1]),f.isReflect("x")&&(b=(0,U.CR)(Tm(W,te),2),W=b[0],te=b[1],M=(0,U.CR)(Tm(Y,Q),2),Y=M[0],Q=M[1]);var ht=[],Jt=function(Er){return Math.abs(Er)};return A=(0,U.CR)(i1([Ee,Fe,qe,nt],Math.min(Jt(te.x-W.x),Jt(Y.y-W.y))).map(function(Er){return Jt(Er)}),4),Ee=A[0],Fe=A[1],qe=A[2],nt=A[3],f.isTransposed&&(B=(0,U.CR)([nt,Ee,Fe,qe],4),Ee=B[0],Fe=B[1],qe=B[2],nt=B[3]),W.yb&&(v=b)}return v}function Sh(h,f){if(f){var t=(0,D.xH)(h),c=(0,D.I)(t,f);return c.length}return h.length}function Am(h){var f=h.theme,t=h.coordinate,c=h.getXScale(),v=c.values,m=h.beforeMappingData,b=v.length,M=lh(h.coordinate),A=h.intervalPadding,B=h.dodgePadding,H=h.maxColumnWidth||f.maxColumnWidth,W=h.minColumnWidth||f.minColumnWidth,Y=h.columnWidthRatio||f.columnWidthRatio,Q=h.multiplePieWidthRatio||f.multiplePieWidthRatio,te=h.roseWidthRatio||f.roseWidthRatio;if(c.isLinear&&v.length>1){v.sort();var he=GS(v,c);b=(c.max-c.min)/he,v.length>b&&(b=v.length)}var Ee=c.range,Fe=1/b,qe=1;if(t.isPolar?t.isTransposed&&b>1?qe=Q:qe=te:(c.isLinear&&(Fe*=Ee[1]-Ee[0]),qe=Y),!(0,D.UM)(A)&&A>=0){var nt=A/M;Fe=(1-(b-1)*nt)/b}else Fe*=qe;if(h.getAdjust("dodge")){var ht=h.getAdjust("dodge"),Jt=ht.dodgeBy,Er=Sh(m,Jt);if(!(0,D.UM)(B)&&B>=0){var Or=B/M;Fe=(Fe-Or*(Er-1))/Er}else!(0,D.UM)(A)&&A>=0&&(Fe*=qe),Fe=Fe/Er;Fe=Fe>=0?Fe:0}if(!(0,D.UM)(H)&&H>=0){var Rr=H/M;Fe>Rr&&(Fe=Rr)}if(!(0,D.UM)(W)&&W>=0){var tn=W/M;Fe0&&!(0,D.U2)(c,[v,"min"])&&t.change({min:0}),b<=0&&!(0,D.U2)(c,[v,"max"])&&t.change({max:0}))}},f.prototype.getDrawCfg=function(t){var c=h.prototype.getDrawCfg.call(this,t);return c.background=this.background,c},f}(bc),Mw=Ng,Tw=function(h){(0,U.ZT)(f,h);function f(t){var c=h.call(this,t)||this;c.type="line";var v=t.sortable,m=v===void 0?!1:v;return c.sortable=m,c}return f}(NS),Ow=Tw,Ep=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],Aw=["cross","tick","plus","hyphen","line"];function Iw(h,f,t,c,v){var m,b,M=nl(f,v,!v,"r"),A=h.parsePoints(f.points),B=A[0];if(f.isStack)B=A[1];else if(A.length>1){var H=t.addGroup();try{for(var W=(0,U.XA)(A),Y=W.next();!Y.done;Y=W.next()){var Q=Y.value;H.addShape({type:"marker",attrs:(0,U.pi)((0,U.pi)((0,U.pi)({},M),{symbol:_f[c]||c}),Q)})}}catch(te){m={error:te}}finally{try{Y&&!Y.done&&(b=W.return)&&b.call(W)}finally{if(m)throw m.error}}return H}return t.addShape({type:"marker",attrs:(0,U.pi)((0,U.pi)((0,U.pi)({},M),{symbol:_f[c]||c}),B)})}var eT=Hl("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(h){return ph(h)}});(0,D.S6)(Ep,function(h){Qa("point","hollow-".concat(h),{draw:function(f,t){return Iw(this,f,t,h,!0)},getMarker:function(f){var t=f.color;return{symbol:_f[h]||h,style:{r:4.5,stroke:t,fill:null}}}})});var $S=null,a1=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.type="point",t.shapeType="point",t.generatePoints=!0,t}return f.prototype.getDrawCfg=function(t){var c=h.prototype.getDrawCfg.call(this,t);return(0,U.pi)((0,U.pi)({},c),{isStack:!!this.getAdjust("stack")})},f}(bc),Im=a1;function Rw(h){for(var f=h[0],t=1,c=[["M",f.x,f.y]];t2?"weight":"normal",m;if(h.isInCircle){var b={x:0,y:1};return v==="normal"?m=VS(c[0],c[1],b):(t.fill=t.stroke,m=zg(c,b)),m=this.parsePath(m),f.addShape("path",{attrs:(0,U.pi)((0,U.pi)({},t),{path:m})})}else{if(v==="normal")return c=this.parsePoints(c),m=Gx((c[1].x+c[0].x)/2,c[0].y,Math.abs(c[1].x-c[0].x)/2,Math.PI,Math.PI*2),f.addShape("path",{attrs:(0,U.pi)((0,U.pi)({},t),{path:m})});var M=Lw(c[1],c[3]),A=Lw(c[2],c[0]);return m=[["M",c[0].x,c[0].y],["L",c[1].x,c[1].y],M,["L",c[3].x,c[3].y],["L",c[2].x,c[2].y],A,["Z"]],m=this.parsePath(m),t.fill=t.stroke,f.addShape("path",{attrs:(0,U.pi)((0,U.pi)({},t),{path:m})})}},getMarker:function(h){return{symbol:"circle",style:{r:4.5,fill:h.color}}}});function Mp(h,f){var t=Lw(h,f),c=[["M",h.x,h.y]];return c.push(t),c}Qa("edge","smooth",{draw:function(h,f){var t=nl(h,!0,!1,"lineWidth"),c=h.points,v=this.parsePath(Mp(c[0],c[1]));return f.addShape("path",{attrs:(0,U.pi)((0,U.pi)({},t),{path:v})})},getMarker:function(h){return{symbol:"circle",style:{r:4.5,fill:h.color}}}});var Tp=1/3;function Tc(h,f){var t=[];t.push({x:h.x,y:h.y*(1-Tp)+f.y*Tp}),t.push({x:f.x,y:h.y*(1-Tp)+f.y*Tp}),t.push(f);var c=[["M",h.x,h.y]];return(0,D.S6)(t,function(v){c.push(["L",v.x,v.y])}),c}Qa("edge","vhv",{draw:function(h,f){var t=nl(h,!0,!1,"lineWidth"),c=h.points,v=this.parsePath(Tc(c[0],c[1]));return f.addShape("path",{attrs:(0,U.pi)((0,U.pi)({},t),{path:v})})},getMarker:function(h){return{symbol:"circle",style:{r:4.5,fill:h.color}}}}),Qa("interval","funnel",{getPoints:function(h){return h.size=h.size*2,Fg(h)},draw:function(h,f){var t=nl(h,!1,!0),c=this.parsePath(Mc(h.points,h.nextPoints,!1)),v=f.addShape("path",{attrs:(0,U.pi)((0,U.pi)({},t),{path:c}),name:"interval"});return v},getMarker:function(h){var f=h.color;return{symbol:"square",style:{r:4,fill:f}}}}),Qa("interval","hollow-rect",{draw:function(h,f){var t=nl(h,!0,!1),c=f,v=h==null?void 0:h.background;if(v){c=f.addGroup();var m=_C(h),b=WS(h,this.parsePoints(h.points),this.coordinate);c.addShape("path",{attrs:(0,U.pi)((0,U.pi)({},m),{path:b}),capture:!1,zIndex:-1,name:Cg})}var M=this.parsePath(_w(h.points)),A=c.addShape("path",{attrs:(0,U.pi)((0,U.pi)({},t),{path:M}),name:"interval"});return v?c:A},getMarker:function(h){var f=h.color,t=h.isInPolar;return t?{symbol:"circle",style:{r:4.5,stroke:f,fill:null}}:{symbol:"square",style:{r:4,stroke:f,fill:null}}}});function Pm(h){var f=h.x,t=h.y,c=h.y0;return(0,D.kJ)(t)?t.map(function(v,m){return{x:(0,D.kJ)(f)?f[m]:f,y:v}}):[{x:f,y:c},{x:f,y:t}]}Qa("interval","line",{getPoints:function(h){return Pm(h)},draw:function(h,f){var t=nl(h,!0,!1,"lineWidth"),c=es((0,U.pi)({},t),["fill"]),v=this.parsePath(_w(h.points,!1)),m=f.addShape("path",{attrs:(0,U.pi)((0,U.pi)({},c),{path:v}),name:"interval"});return m},getMarker:function(h){var f=h.color;return{symbol:function(t,c,v){return[["M",t,c-v],["L",t,c+v]]},style:{r:5,stroke:f}}}}),Qa("interval","pyramid",{getPoints:function(h){return h.size=h.size*2,Fg(h)},draw:function(h,f){var t=nl(h,!1,!0),c=this.parsePath(Mc(h.points,h.nextPoints,!0)),v=f.addShape("path",{attrs:(0,U.pi)((0,U.pi)({},t),{path:c}),name:"interval"});return v},getMarker:function(h){var f=h.color;return{symbol:"square",style:{r:4,fill:f}}}});function XS(h){var f,t=h.x,c=h.y,v=h.y0,m=h.size,b,M;(0,D.kJ)(c)?(f=(0,U.CR)(c,2),b=f[0],M=f[1]):(b=v,M=c);var A=t+m/2,B=t-m/2;return[{x:t,y:b},{x:t,y:M},{x:B,y:b},{x:A,y:b},{x:B,y:M},{x:A,y:M}]}function _E(h){return[["M",h[0].x,h[0].y],["L",h[1].x,h[1].y],["M",h[2].x,h[2].y],["L",h[3].x,h[3].y],["M",h[4].x,h[4].y],["L",h[5].x,h[5].y]]}Qa("interval","tick",{getPoints:function(h){return XS(h)},draw:function(h,f){var t=nl(h,!0,!1),c=this.parsePath(_E(h.points)),v=f.addShape("path",{attrs:(0,U.pi)((0,U.pi)({},t),{path:c}),name:"interval"});return v},getMarker:function(h){var f=h.color;return{symbol:function(t,c,v){return[["M",t-v/2,c-v],["L",t+v/2,c-v],["M",t,c-v],["L",t,c+v],["M",t-v/2,c+v],["L",t+v/2,c+v]]},style:{r:5,stroke:f}}}});var Pw=function(h,f,t){var c=h.x,v=h.y,m=f.x,b=f.y,M;switch(t){case"hv":M=[{x:m,y:v}];break;case"vh":M=[{x:c,y:b}];break;case"hvh":var A=(m+c)/2;M=[{x:A,y:v},{x:A,y:b}];break;case"vhv":var B=(v+b)/2;M=[{x:c,y:B},{x:m,y:B}];break;default:break}return M};function o1(h,f){var t=[];return(0,D.S6)(h,function(c,v){var m=h[v+1];if(t.push(c),m){var b=Pw(c,m,f);t=t.concat(b)}}),t}function Lf(h){return h.map(function(f,t){return t===0?["M",f.x,f.y]:["L",f.x,f.y]})}function Wg(h,f){var t=Xu(h.points,h.connectNulls,h.showSinglePoint),c=[];return(0,D.S6)(t,function(v){var m=o1(v,f);c=c.concat(Lf(m))}),(0,U.pi)((0,U.pi)({},nl(h,!0,!1,"lineWidth")),{path:c})}(0,D.S6)(["hv","vh","hvh","vhv"],function(h){Qa("line",h,{draw:function(f,t){var c=Wg(f,h),v=t.addShape({type:"path",attrs:c,name:"line"});return v},getMarker:function(f){return $b(f,h)}})}),(0,D.S6)(Aw,function(h){Qa("point",h,{draw:function(f,t){return Iw(this,f,t,h,!0)},getMarker:function(f){var t=f.color;return{symbol:_f[h],style:{r:4.5,stroke:t,fill:null}}}})}),Qa("point","image",{draw:function(h,f){var t,c,v=nl(h,!1,!1,"r").r,m=this.parsePoints(h.points),b=m[0];if(h.isStack)b=m[1];else if(m.length>1){var M=f.addGroup();try{for(var A=(0,U.XA)(m),B=A.next();!B.done;B=A.next()){var H=B.value;M.addShape("image",{attrs:{x:H.x-v/2,y:H.y-v,width:v,height:v,img:h.shape[1]}})}}catch(W){t={error:W}}finally{try{B&&!B.done&&(c=A.return)&&c.call(A)}finally{if(t)throw t.error}}return M}return f.addShape("image",{attrs:{x:b.x-v/2,y:b.y-v,width:v,height:v,img:h.shape[1]}})},getMarker:function(h){var f=h.color;return{symbol:"circle",style:{r:4.5,fill:f}}}}),(0,D.S6)(Ep,function(h){Qa("point",h,{draw:function(f,t){return Iw(this,f,t,h,!1)},getMarker:function(f){var t=f.color;return{symbol:_f[h]||h,style:{r:4.5,fill:t}}}})});function ZS(h){var f=(0,D.kJ)(h)?h:[h],t=f[0],c=f[f.length-1],v=f.length>1?f[1]:t,m=f.length>3?f[3]:c,b=f.length>2?f[2]:v;return{min:t,max:c,min1:v,max1:m,median:b}}function KS(h,f,t){var c=t/2,v;if((0,D.kJ)(f)){var m=ZS(f),b=m.min,M=m.max,A=m.median,B=m.min1,H=m.max1,W=h-c,Y=h+c;v=[[W,M],[Y,M],[h,M],[h,H],[W,B],[W,H],[Y,H],[Y,B],[h,B],[h,b],[W,b],[Y,b],[W,A],[Y,A]]}else{f=(0,D.UM)(f)?.5:f;var Q=ZS(h),b=Q.min,M=Q.max,A=Q.median,B=Q.min1,H=Q.max1,te=f-c,he=f+c;v=[[b,te],[b,he],[b,f],[B,f],[B,te],[B,he],[H,he],[H,te],[H,f],[M,f],[M,te],[M,he],[A,te],[A,he]]}return v.map(function(Ee){return{x:Ee[0],y:Ee[1]}})}function Bm(h){return[["M",h[0].x,h[0].y],["L",h[1].x,h[1].y],["M",h[2].x,h[2].y],["L",h[3].x,h[3].y],["M",h[4].x,h[4].y],["L",h[5].x,h[5].y],["L",h[6].x,h[6].y],["L",h[7].x,h[7].y],["L",h[4].x,h[4].y],["Z"],["M",h[8].x,h[8].y],["L",h[9].x,h[9].y],["M",h[10].x,h[10].y],["L",h[11].x,h[11].y],["M",h[12].x,h[12].y],["L",h[13].x,h[13].y]]}Qa("schema","box",{getPoints:function(h){var f=h.x,t=h.y,c=h.size;return KS(f,t,c)},draw:function(h,f){var t=nl(h,!0,!1),c=this.parsePath(Bm(h.points)),v=f.addShape("path",{attrs:(0,U.pi)((0,U.pi)({},t),{path:c,name:"schema"})});return v},getMarker:function(h){var f=h.color;return{symbol:function(t,c,v){var m=[c-6,c-3,c,c+3,c+6],b=KS(t,m,v);return[["M",b[0].x+1,b[0].y],["L",b[1].x-1,b[1].y],["M",b[2].x,b[2].y],["L",b[3].x,b[3].y],["M",b[4].x,b[4].y],["L",b[5].x,b[5].y],["L",b[6].x,b[6].y],["L",b[7].x,b[7].y],["L",b[4].x,b[4].y],["Z"],["M",b[8].x,b[8].y],["L",b[9].x,b[9].y],["M",b[10].x+1,b[10].y],["L",b[11].x-1,b[11].y],["M",b[12].x,b[12].y],["L",b[13].x,b[13].y]]},style:{r:6,lineWidth:1,stroke:f}}}});function l1(h){var f=(0,D.kJ)(h)?h:[h],t=f.sort(function(c,v){return v-c});return F_(t,4,t[t.length-1])}function Bw(h,f,t){var c=l1(f);return[{x:h,y:c[0]},{x:h,y:c[1]},{x:h-t/2,y:c[2]},{x:h-t/2,y:c[1]},{x:h+t/2,y:c[1]},{x:h+t/2,y:c[2]},{x:h,y:c[2]},{x:h,y:c[3]}]}function qS(h){return[["M",h[0].x,h[0].y],["L",h[1].x,h[1].y],["M",h[2].x,h[2].y],["L",h[3].x,h[3].y],["L",h[4].x,h[4].y],["L",h[5].x,h[5].y],["Z"],["M",h[6].x,h[6].y],["L",h[7].x,h[7].y]]}Qa("schema","candle",{getPoints:function(h){var f=h.x,t=h.y,c=h.size;return Bw(f,t,c)},draw:function(h,f){var t=nl(h,!0,!0),c=this.parsePath(qS(h.points)),v=f.addShape("path",{attrs:(0,U.pi)((0,U.pi)({},t),{path:c,name:"schema"})});return v},getMarker:function(h){var f=h.color;return{symbol:function(t,c,v){var m=[c+7.5,c+3,c-3,c-7.5],b=Bw(t,m,v);return[["M",b[0].x,b[0].y],["L",b[1].x,b[1].y],["M",b[2].x,b[2].y],["L",b[3].x,b[3].y],["L",b[4].x,b[4].y],["L",b[5].x,b[5].y],["Z"],["M",b[6].x,b[6].y],["L",b[7].x,b[7].y]]},style:{lineWidth:1,stroke:f,fill:f,r:6}}}});function QS(h,f){var t=Math.abs(h[0].x-h[2].x),c=Math.abs(h[0].y-h[2].y),v=Math.min(t,c);f&&(v=(0,D.uZ)(f,0,Math.min(t,c))),v=v/2;var m=(h[0].x+h[2].x)/2,b=(h[0].y+h[2].y)/2;return{x:m-v,y:b-v,width:v*2,height:v*2}}Qa("polygon","square",{draw:function(h,f){if(!(0,D.xb)(h.points)){var t=nl(h,!0,!0),c=this.parsePoints(h.points);return f.addShape("rect",{attrs:(0,U.pi)((0,U.pi)({},t),QS(c,h.size)),name:"polygon"})}},getMarker:function(h){var f=h.color;return{symbol:"square",style:{r:4,fill:f}}}}),Qa("violin","smooth",{draw:function(h,f){var t=nl(h,!0,!0),c=this.parsePath(Gb(h.points));return f.addShape("path",{attrs:(0,U.pi)((0,U.pi)({},t),{path:c})})},getMarker:function(h){var f=h.color;return{symbol:"circle",style:{stroke:null,r:4,fill:f}}}}),Qa("violin","hollow",{draw:function(h,f){var t=nl(h,!0,!1),c=this.parsePath(xc(h.points));return f.addShape("path",{attrs:(0,U.pi)((0,U.pi)({},t),{path:c})})},getMarker:function(h){var f=h.color;return{symbol:"circle",style:{r:4,fill:null,stroke:f}}}}),Qa("violin","hollow-smooth",{draw:function(h,f){var t=nl(h,!0,!1),c=this.parsePath(Gb(h.points));return f.addShape("path",{attrs:(0,U.pi)((0,U.pi)({},t),{path:c})})},getMarker:function(h){var f=h.color;return{symbol:"circle",style:{r:4,fill:null,stroke:f}}}});var _h=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getLabelValueDir=function(t){var c="y",v=t.points;return v[0][c]<=v[2][c]?1:-1},f.prototype.getLabelOffsetPoint=function(t,c,v,m){var b,M=h.prototype.getLabelOffsetPoint.call(this,t,c,v),A=this.getCoordinate(),B=A.isTransposed,H=B?"x":"y",W=this.getLabelValueDir(t.mappingData);return M=(0,U.pi)((0,U.pi)({},M),(b={},b[H]=M[H]*W,b)),A.isReflect("x")&&(M=(0,U.pi)((0,U.pi)({},M),{x:M.x*-1})),A.isReflect("y")&&(M=(0,U.pi)((0,U.pi)({},M),{y:M.y*-1})),M},f.prototype.getThemedLabelCfg=function(t){var c=this.geometry,v=this.getDefaultLabelCfg(),m=c.theme;return(0,D.b$)({},v,m.labels,t.position==="middle"?{offset:0}:{},t)},f.prototype.setLabelPosition=function(t,c,v,m){var b=this.getCoordinate(),M=b.isTransposed,A=c.points,B=b.convert(A[0]),H=b.convert(A[2]),W=this.getLabelValueDir(c),Y,Q,te,he,Ee=(0,D.kJ)(c.shape)?c.shape[0]:c.shape;if(Ee==="funnel"||Ee==="pyramid"){var Fe=(0,D.U2)(c,"nextPoints"),qe=(0,D.U2)(c,"points");if(Fe){var nt=b.convert(qe[0]),ht=b.convert(qe[1]),Jt=b.convert(Fe[0]),Er=b.convert(Fe[1]);M?(Y=Math.min(Jt.y,nt.y),te=Math.max(Jt.y,nt.y),Q=(ht.x+Er.x)/2,he=(nt.x+Jt.x)/2):(Y=Math.min((ht.y+Er.y)/2,(nt.y+Jt.y)/2),te=Math.max((ht.y+Er.y)/2,(nt.y+Jt.y)/2),Q=Er.x,he=nt.x)}else Y=Math.min(H.y,B.y),te=Math.max(H.y,B.y),Q=H.x,he=B.x}else Y=Math.min(H.y,B.y),te=Math.max(H.y,B.y),Q=H.x,he=B.x;switch(m){case"right":t.x=Q,t.y=(Y+te)/2,t.textAlign=(0,D.U2)(t,"textAlign",W>0?"left":"right");break;case"left":t.x=he,t.y=(Y+te)/2,t.textAlign=(0,D.U2)(t,"textAlign",W>0?"left":"right");break;case"bottom":M&&(t.x=(Q+he)/2),t.y=te,t.textAlign=(0,D.U2)(t,"textAlign","center"),t.textBaseline=(0,D.U2)(t,"textBaseline",W>0?"bottom":"top");break;case"middle":M&&(t.x=(Q+he)/2),t.y=(Y+te)/2,t.textAlign=(0,D.U2)(t,"textAlign","center"),t.textBaseline=(0,D.U2)(t,"textBaseline","middle");break;case"top":M&&(t.x=(Q+he)/2),t.y=Y,t.textAlign=(0,D.U2)(t,"textAlign","center"),t.textBaseline=(0,D.U2)(t,"textBaseline",W>0?"bottom":"top");break;default:break}},f}(wc),km=_h,Gg=Math.PI/2,s1=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getLabelOffset=function(t){var c=this.getCoordinate(),v=0;if((0,D.hj)(t))v=t;else if((0,D.HD)(t)&&t.indexOf("%")!==-1){var m=c.getRadius();c.innerRadius>0&&(m=m*(1-c.innerRadius)),v=parseFloat(t)*.01*m}return v},f.prototype.getLabelItems=function(t){var c=h.prototype.getLabelItems.call(this,t),v=this.geometry.getYScale();return(0,D.UI)(c,function(m){if(m&&v){var b=v.scale((0,D.U2)(m.data,v.field));return(0,U.pi)((0,U.pi)({},m),{percent:b})}return m})},f.prototype.getLabelAlign=function(t){var c=this.getCoordinate(),v;if(t.labelEmit)v=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(!c.isTransposed)v="center";else{var m=c.getCenter(),b=t.offset;Math.abs(t.x-m.x)<1?v="center":t.angle>Math.PI||t.angle<=0?v=b>0?"left":"right":v=b>0?"right":"left"}return v},f.prototype.getLabelPoint=function(t,c,v){var m=1,b,M=t.content[v];this.isToMiddle(c)?b=this.getMiddlePoint(c.points):(t.content.length===1&&v===0?v=1:v===0&&(m=-1),b=this.getArcPoint(c,v));var A=t.offset*m,B=this.getPointAngle(b),H=t.labelEmit,W=this.getCirclePoint(B,A,b,H);return W.r===0?W.content="":(W.content=M,W.angle=B,W.color=c.color),W.rotate=t.autoRotate?this.getLabelRotate(B,A,H):t.rotate,W.start={x:b.x,y:b.y},W},f.prototype.getArcPoint=function(t,c){return c===void 0&&(c=0),!(0,D.kJ)(t.x)&&!(0,D.kJ)(t.y)?{x:t.x,y:t.y}:{x:(0,D.kJ)(t.x)?t.x[c]:t.x,y:(0,D.kJ)(t.y)?t.y[c]:t.y}},f.prototype.getPointAngle=function(t){return ug(this.getCoordinate(),t)},f.prototype.getCirclePoint=function(t,c,v,m){var b=this.getCoordinate(),M=b.getCenter(),A=sh(b,v);if(A===0)return(0,U.pi)((0,U.pi)({},M),{r:A});var B=t;if(b.isTransposed&&A>c&&!m){var H=Math.asin(c/(2*A));B=t+H*2}else A=A+c;return{x:M.x+A*Math.cos(B),y:M.y+A*Math.sin(B),r:A}},f.prototype.getLabelRotate=function(t,c,v){var m=t+Gg;return v&&(m-=Gg),m&&(m>Gg?m=m-Math.PI:m<-Gg&&(m=m+Math.PI)),m},f.prototype.getMiddlePoint=function(t){var c=this.getCoordinate(),v=t.length,m={x:0,y:0};return(0,D.S6)(t,function(b){m.x+=b.x,m.y+=b.y}),m.x/=v,m.y/=v,m=c.convert(m),m},f.prototype.isToMiddle=function(t){return t.x.length>2},f}(wc),u1=s1,kw=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.defaultLayout="distribute",t}return f.prototype.getDefaultLabelCfg=function(t,c){var v=h.prototype.getDefaultLabelCfg.call(this,t,c);return(0,D.b$)({},v,(0,D.U2)(this.geometry.theme,"pieLabels",{}))},f.prototype.getLabelOffset=function(t){return h.prototype.getLabelOffset.call(this,t)||0},f.prototype.getLabelRotate=function(t,c,v){var m;return c<0&&(m=t,m>Math.PI/2&&(m=m-Math.PI),m<-Math.PI/2&&(m=m+Math.PI)),m},f.prototype.getLabelAlign=function(t){var c=this.getCoordinate(),v=c.getCenter(),m;return t.angle<=Math.PI/2&&t.x>=v.x?m="left":m="right",t.offset<=0&&(m==="right"?m="left":m="right"),m},f.prototype.getArcPoint=function(t){return t},f.prototype.getPointAngle=function(t){var c=this.getCoordinate(),v={x:(0,D.kJ)(t.x)?t.x[0]:t.x,y:t.y[0]},m={x:(0,D.kJ)(t.x)?t.x[1]:t.x,y:t.y[1]},b,M=ug(c,v);if(t.points&&t.points[0].y===t.points[1].y)b=M;else{var A=ug(c,m);M>=A&&(A=A+Math.PI*2),b=M+(A-M)/2}return b},f.prototype.getCirclePoint=function(t,c){var v=this.getCoordinate(),m=v.getCenter(),b=v.getRadius()+c;return(0,U.pi)((0,U.pi)({},Ko(m.x,m.y,b,t)),{angle:t,r:b})},f}(u1),c1=kw,EE=4;function af(h,f,t,c,v,m){var b,M,A=!0,B=c.start,H=c.end,W=Math.min(B.y,H.y),Y=Math.abs(B.y-H.y),Q,te=0,he=Number.MIN_VALUE,Ee=f.map(function(Or){return Or.y>te&&(te=Or.y),Or.yY&&(Y=te-W);A;)for(Ee.forEach(function(Or){var Rr=(Math.min.apply(he,Or.targets)+Math.max.apply(he,Or.targets))/2;Or.pos=Math.min(Math.max(he,Rr-Or.size/2),Y-Or.size)}),A=!1,Q=Ee.length;Q--;)if(Q>0){var Fe=Ee[Q-1],qe=Ee[Q];Fe.pos+Fe.size>qe.pos&&(Fe.size+=qe.size,Fe.targets=Fe.targets.concat(qe.targets),Fe.pos+Fe.size>Y&&(Fe.pos=Y-Fe.size),Ee.splice(Q,1),A=!0)}Q=0,Ee.forEach(function(Or){var Rr=W+t/2;Or.targets.forEach(function(){f[Q].y=Or.pos+Rr,Rr+=t,Q++})});var nt={};try{for(var ht=(0,U.XA)(h),Jt=ht.next();!Jt.done;Jt=ht.next()){var Er=Jt.value;nt[Er.get("id")]=Er}}catch(Or){b={error:Or}}finally{try{Jt&&!Jt.done&&(M=ht.return)&&M.call(ht)}finally{if(b)throw b.error}}f.forEach(function(Or){var Rr=Or.r*Or.r,tn=Math.pow(Math.abs(Or.y-v.y),2);if(Rr0){var A=14,B=b+v,H=B*2+A*2,W={start:m.start,end:m.end},Y=[[],[]];h.forEach(function(Q){Q&&(Q.textAlign==="right"?Y[0].push(Q):Y[1].push(Q))}),Y.forEach(function(Q,te){var he=H/A;Q.length>he&&(Q.sort(function(Ee,Fe){return Fe["..percent"]-Ee["..percent"]}),Q.splice(he,Q.length-he)),Q.sort(function(Ee,Fe){return Ee.y-Fe.y}),af(f,Q,A,W,M,te)})}(0,D.S6)(h,function(Q){if(Q&&Q.labelLine){var te=Q.offset,he=Q.angle,Ee=Ko(M.x,M.y,b,he),Fe=Ko(M.x,M.y,b+te/2,he),qe=Q.x+(0,D.U2)(Q,"offsetX",0),nt=Q.y+(0,D.U2)(Q,"offsetY",0),ht={x:qe-Math.cos(he)*EE,y:nt-Math.sin(he)*EE};(0,D.Kn)(Q.labelLine)||(Q.labelLine={}),Q.labelLine.path=["M ".concat(Ee.x),"".concat(Ee.y," Q").concat(Fe.x),"".concat(Fe.y," ").concat(ht.x),ht.y].join(",")}})}}function Fm(h,f,t){var c=h.filter(function(te){return!te.invisible});c.sort(function(te,he){return te.y-he.y});var v=!0,m=t.minY,b=t.maxY,M=Math.abs(m-b),A,B=0,H=Number.MIN_VALUE,W=c.map(function(te){return te.y>B&&(B=te.y),te.yM&&(M=B-m);v;)for(W.forEach(function(te){var he=(Math.min.apply(H,te.targets)+Math.max.apply(H,te.targets))/2;te.pos=Math.min(Math.max(H,he-te.size/2),M-te.size),te.pos=Math.max(0,te.pos)}),v=!1,A=W.length;A--;)if(A>0){var Y=W[A-1],Q=W[A];Y.pos+Y.size>Q.pos&&(Y.size+=Q.size,Y.targets=Y.targets.concat(Q.targets),Y.pos+Y.size>M&&(Y.pos=M-Y.size),W.splice(A,1),v=!0)}A=0,W.forEach(function(te){var he=m+f/2;te.targets.forEach(function(){c[A].y=te.pos+he,he+=f,A++})})}var Fw=4;function JS(h,f){var t=f.getCenter(),c=f.getRadius();if(h&&h.labelLine){var v=h.angle,m=h.offset,b=Ko(t.x,t.y,c,v),M=h.x+(0,D.U2)(h,"offsetX",0)*(Math.cos(v)>0?1:-1),A=h.y+(0,D.U2)(h,"offsetY",0)*(Math.sin(v)>0?1:-1),B={x:M-Math.cos(v)*Fw,y:A-Math.sin(v)*Fw},H=h.labelLine.smooth,W=[],Y=B.x-t.x,Q=B.y-t.y,te=Math.atan(Q/Y);if(Y<0&&(te+=Math.PI),H===!1){(0,D.Kn)(h.labelLine)||(h.labelLine={});var he=0;(v<0&&v>-Math.PI/2||v>Math.PI*1.5)&&B.y>b.y&&(he=1),v>=0&&vb.y&&(he=1),v>=Math.PI/2&&vB.y&&(he=1),(v<-Math.PI/2||v>=Math.PI&&vB.y&&(he=1);var Ee=m/2>4?4:Math.max(m/2-1,0),Fe=Ko(t.x,t.y,c+Ee,v),qe=Ko(t.x,t.y,c+m/2,te),nt=0;W.push("M ".concat(b.x," ").concat(b.y)),W.push("L ".concat(Fe.x," ").concat(Fe.y)),W.push("A ".concat(t.x," ").concat(t.y," 0 ").concat(nt," ").concat(he," ").concat(qe.x," ").concat(qe.y)),W.push("L ".concat(B.x," ").concat(B.y))}else{var Fe=Ko(t.x,t.y,c+(m/2>4?4:Math.max(m/2-1,0)),v),ht=b.xMath.pow(Math.E,-16)&&W.push.apply(W,["C",B.x+ht*4,B.y,2*Fe.x-b.x,2*Fe.y-b.y,b.x,b.y]),W.push("L ".concat(b.x," ").concat(b.y))}h.labelLine.path=W.join(" ")}}function Nm(h,f,t,c){var v,m,b=(0,D.hX)(h,function(Rr){return!(0,D.UM)(Rr)}),M=f[0]&&f[0].get("coordinate");if(M){var A=M.getCenter(),B=M.getRadius(),H={};try{for(var W=(0,U.XA)(f),Y=W.next();!Y.done;Y=W.next()){var Q=Y.value;H[Q.get("id")]=Q}}catch(Rr){v={error:Rr}}finally{try{Y&&!Y.done&&(m=W.return)&&m.call(W)}finally{if(v)throw v.error}}var te=(0,D.U2)(b[0],"labelHeight",14),he=(0,D.U2)(b[0],"offset",0);if(!(he<=0)){var Ee="left",Fe="right",qe=(0,D.vM)(b,function(Rr){return Rr.xln&&(Rr.sort(function(Zn,ei){return ei.percent-Zn.percent}),(0,D.S6)(Rr,function(Zn,ei){ei+1>ln&&(H[Zn.id].set("visible",!1),Zn.invisible=!0)})),Fm(Rr,te,Or)}),(0,D.S6)(qe,function(Rr,tn){(0,D.S6)(Rr,function(ln){var Zn=tn===Fe,ei=H[ln.id],Yi=ei.getChildByIndex(0);if(Yi){var Ea=B+he,io=ln.y-A.y,Iu=Math.pow(Ea,2),ds=Math.pow(io,2),Lc=Iu-ds>0?Iu-ds:0,Po=Math.sqrt(Lc),sf=Math.abs(Math.cos(ln.angle)*Ea);Zn?ln.x=A.x+Math.max(Po,sf):ln.x=A.x-Math.max(Po,sf)}Yi&&(Yi.attr("y",ln.y),Yi.attr("x",ln.x)),JS(ln,M)})})}}}var Hm=4,is=4,zm=4;function e2(h,f,t){var c=f.getCenter(),v=f.getRadius(),m={x:h.x-(t?zm:-zm),y:h.y},b=Ko(c.x,c.y,v+Hm,h.angle),M={x:m.x,y:m.y},A={x:b.x,y:b.y},B=Ko(c.x,c.y,v,h.angle),H="";if(m.y!==b.y){var W=t?4:-4;M.y=m.y,h.angle<0&&h.angle>=-Math.PI/2&&(M.x=Math.max(b.x,m.x-W),m.y0&&h.angleb.y?A.y=M.y:(A.y=b.y,A.x=Math.max(A.x,M.x-W))),h.angle>Math.PI/2&&(M.x=Math.min(b.x,m.x-W),m.y>b.y?A.y=M.y:(A.y=b.y,A.x=Math.min(A.x,M.x-W))),h.angle<-Math.PI/2&&(M.x=Math.min(b.x,m.x-W),m.yM.x||Rr.x===M.x&&Rr.y>M.y,Zn=(0,D.UM)(Rr.offsetX)?is:Rr.offsetX,ei=Ko(M.x,M.y,A+Hm,Rr.angle),Yi=te+Zn;Rr.x=M.x+(ln?1:-1)*(A+Yi),Rr.y=ei.y}}});var he=b.start,Ee=b.end,Fe="left",qe="right",nt=(0,D.vM)(h,function(Rr){return Rr.xht&&(ht=Math.min(tn,Math.abs(he.y-Ee.y)))});var Jt={minX:he.x,maxX:Ee.x,minY:M.y-ht/2,maxY:M.y+ht/2};(0,D.S6)(nt,function(Rr,tn){var ln=ht/Q;Rr.length>ln&&(Rr.sort(function(Zn,ei){return ei.percent-Zn.percent}),(0,D.S6)(Rr,function(Zn,ei){ei>ln&&(B[Zn.id].set("visible",!1),Zn.invisible=!0)})),Fm(Rr,Q,Jt)});var Er=Jt.minY,Or=Jt.maxY;(0,D.S6)(nt,function(Rr,tn){var ln=tn===qe;(0,D.S6)(Rr,function(Zn){var ei=(0,D.U2)(B,Zn&&[Zn.id]);if(ei){if(Zn.yOr){ei.set("visible",!1);return}var Yi=ei.getChildByIndex(0),Ea=Yi.getCanvasBBox(),io={x:ln?Ea.x:Ea.maxX,y:Ea.y+Ea.height/2};As(Yi,Zn.x-io.x,Zn.y-io.y),Zn.labelLine&&e2(Zn,b,ln)}})})}}function TE(h,f,t,c){(0,D.S6)(f,function(v){var m=c.minX,b=c.minY,M=c.maxX,A=c.maxY,B=v.getCanvasBBox(),H=B.minX,W=B.minY,Y=B.maxX,Q=B.maxY,te=B.x,he=B.y,Ee=B.width,Fe=B.height,qe=te,nt=he;(HM?qe=M-Ee:Y>M&&(qe=qe-(Y-M)),W>A?nt=A-Fe:Q>A&&(nt=nt-(Q-A)),(qe!==te||nt!==he)&&As(v,qe-te,nt-he)})}function md(h,f,t,c){(0,D.S6)(f,function(v,m){var b=v.getCanvasBBox(),M=t[m].getBBox();(b.minXM.maxX||b.maxY>M.maxY)&&v.remove(!0)})}var t2=100,of=function(){function h(f){f===void 0&&(f={}),this.bitmap={};var t=f.xGap,c=t===void 0?1:t,v=f.yGap,m=v===void 0?8:v;this.xGap=c,this.yGap=m}return h.prototype.hasGap=function(f){for(var t=!0,c=this.bitmap,v=Math.round(f.minX),m=Math.round(f.maxX),b=Math.round(f.minY),M=Math.round(f.maxY),A=v;A<=m;A+=1){if(!c[A]){c[A]={};continue}if(A===v||A===m){for(var B=b;B<=M;B++)if(c[A][B]){t=!1;break}}else if(c[A][b]||c[A][M]){t=!1;break}}return t},h.prototype.fillGap=function(f){for(var t=this.bitmap,c=Math.round(f.minX),v=Math.round(f.maxX),m=Math.round(f.minY),b=Math.round(f.maxY),M=c;M<=v;M+=1)t[M]||(t[M]={});for(var M=c;M<=v;M+=this.xGap){for(var A=m;A<=b;A+=this.yGap)t[M][A]=!0;t[M][b]=!0}if(this.yGap!==1)for(var M=m;M<=b;M+=1)t[c][M]=!0,t[v][M]=!0;if(this.xGap!==1)for(var M=c;M<=v;M+=1)t[M][m]=!0,t[M][b]=!0},h.prototype.destroy=function(){this.bitmap={}},h}();function Wm(h,f,t){t===void 0&&(t=t2);var c=-1,v=h.attr(),m=v.x,b=v.y,M=h.getCanvasBBox(),A=Math.sqrt(M.width*M.width+M.height*M.height),B,H=-c,W=0,Y=0,Q=function(Fe){var qe=Fe*.1;return[qe*Math.cos(qe),qe*Math.sin(qe)]};if(f.hasGap(M))return f.fillGap(M),!0;for(var te=!1,he=0,Ee={};Math.min(Math.abs(W),Math.abs(Y))4)return[];var f=function(v,m){return[m.x-v.x,m.y-v.y]},t=f(h[0],h[1]),c=f(h[1],h[2]);return[t,c]}function $m(h,f,t){f===void 0&&(f=0),t===void 0&&(t={x:0,y:0});var c=h.x,v=h.y;return{x:(c-t.x)*Math.cos(-f)+(v-t.y)*Math.sin(-f)+t.x,y:(t.x-c)*Math.sin(-f)+(v-t.y)*Math.cos(-f)+t.y}}function yd(h){var f=[{x:h.x,y:h.y},{x:h.x+h.width,y:h.y},{x:h.x+h.width,y:h.y+h.height},{x:h.x,y:h.y+h.height}],t=h.rotation;return t?[$m(f[0],t,f[0]),$m(f[1],t,f[0]),$m(f[2],t,f[0]),$m(f[3],t,f[0])]:f}function Um(h,f){if(h.length>4)return{min:0,max:0};var t=[];return h.forEach(function(c){t.push(Gm([c.x,c.y],f))}),{min:Math.min.apply(Math,(0,U.ev)([],(0,U.CR)(t),!1)),max:Math.max.apply(Math,(0,U.ev)([],(0,U.CR)(t),!1))}}function Ap(h,f){return h.max>f.min&&h.minh.x+h.width+t||f.x+f.widthh.y+h.height+t||f.y+f.height4)return[];var ht=function(Or,Rr){return[Rr.x-Or.x,Rr.y-Or.y]},Jt=ht(nt[0],nt[1]),Er=ht(nt[1],nt[2]);return[Jt,Er]}function W(nt,ht,Jt){ht===void 0&&(ht=0),Jt===void 0&&(Jt={x:0,y:0});var Er=nt.x,Or=nt.y;return{x:(Er-Jt.x)*Math.cos(-ht)+(Or-Jt.y)*Math.sin(-ht)+Jt.x,y:(Jt.x-Er)*Math.sin(-ht)+(Or-Jt.y)*Math.cos(-ht)+Jt.y}}function Y(nt){var ht=[{x:nt.x,y:nt.y},{x:nt.x+nt.width,y:nt.y},{x:nt.x+nt.width,y:nt.y+nt.height},{x:nt.x,y:nt.y+nt.height}],Jt=nt.rotation;return Jt?[W(ht[0],Jt,ht[0]),W(ht[1],Jt,ht[0]),W(ht[2],Jt,ht[0]),W(ht[3],Jt,ht[0])]:ht}function Q(nt,ht){if(nt.length>4)return{min:0,max:0};var Jt=[];return nt.forEach(function(Er){Jt.push(B([Er.x,Er.y],ht))}),{min:Math.min.apply(null,Jt),max:Math.max.apply(null,Jt)}}function te(nt,ht){return nt.max>ht.min&&nt.minnt.x+nt.width+Jt||ht.x+ht.widthnt.y+nt.height+Jt||ht.y+ht.height=m.height:b.width>=m.width}function AE(h,f,t){var c=!!h.getAdjust("stack");return c||f.every(function(v,m){var b=t[m];return s2(h,v,b)})}function IE(h,f,t){var c=h.coordinate,v=ts.fromObject(t.getBBox()),m=Sf(f);c.isTransposed?m.attr({x:v.minX+v.width/2,textAlign:"center"}):m.attr({y:v.minY+v.height/2,textBaseline:"middle"})}function RE(h,f,t){var c;if(t.length!==0){var v=(c=t[0])===null||c===void 0?void 0:c.get("element"),m=v==null?void 0:v.geometry;if(!(!m||m.type!=="interval")){var b=AE(m,f,t);b&&t.forEach(function(M,A){var B=f[A];IE(m,B,M)})}}}function DE(h){var f=500,t=[],c=Math.max(Math.floor(h.length/f),1);return(0,D.S6)(h,function(v,m){m%c===0?t.push(v):v.set("visible",!1)}),t}function u2(h,f,t){var c;if(t.length!==0){var v=(c=t[0])===null||c===void 0?void 0:c.get("element"),m=v==null?void 0:v.geometry;if(!(!m||m.type!=="interval")){var b=DE(f),M=(0,U.CR)(m.getXYFields(),1),A=M[0],B=[],H=[],W=(0,D.vM)(b,function(Ee){return Ee.get("data")[A]}),Y=(0,D.jj)((0,D.UI)(b,function(Ee){return Ee.get("data")[A]})),Q;b.forEach(function(Ee){Ee.set("visible",!0)});var te=function(Ee){Ee&&(Ee.length&&H.push(Ee.pop()),H.push.apply(H,(0,U.ev)([],(0,U.CR)(Ee),!1)))};for((0,D.dp)(Y)>0&&(Q=Y.shift(),te(W[Q])),(0,D.dp)(Y)>0&&(Q=Y.pop(),te(W[Q])),(0,D.S6)(Y.reverse(),function(Ee){te(W[Ee])});H.length>0;){var he=H.shift();he.get("visible")&&($o(he,B)?he.set("visible",!1):B.push(he))}}}}function p1(h,f){var t=h.getXYFields()[1],c=[],v=f.sort(function(m,b){return m.get("data")[t]-m.get("data")[t]});return v.length>0&&c.push(v.shift()),v.length>0&&c.push(v.pop()),c.push.apply(c,(0,U.ev)([],(0,U.CR)(v),!1)),c}function zw(h,f,t){return h.some(function(c){return t(c,f)})}function LE(h,f,t){t===void 0&&(t=0);var c=Math.max(0,Math.min(h.x+h.width+t,f.x+f.width+t)-Math.max(h.x-t,f.x-t)),v=Math.max(0,Math.min(h.y+h.height+t,f.y+f.height+t)-Math.max(h.y-t,f.y-t));return c*v}function g1(h,f){return zw(h,f,function(t,c){var v=Sf(t),m=Sf(c);return LE(v.getCanvasBBox(),m.getCanvasBBox(),2)>0})}function PE(h,f,t,c,v){var m,b;if(t.length!==0){var M=(m=t[0])===null||m===void 0?void 0:m.get("element"),A=M==null?void 0:M.geometry;if(!(!A||A.type!=="point")){var B=(0,U.CR)(A.getXYFields(),2),H=B[0],W=B[1],Y=(0,D.vM)(f,function(he){return he.get("data")[H]}),Q=[],te=v&&v.offset||((b=h[0])===null||b===void 0?void 0:b.offset)||12;(0,D.UI)((0,D.XP)(Y).reverse(),function(he){for(var Ee=p1(A,Y[he]);Ee.length;){var Fe=Ee.shift(),qe=Sf(Fe);if(zw(Q,Fe,function(Jt,Er){return Jt.get("data")[H]===Er.get("data")[H]&&Jt.get("data")[W]===Er.get("data")[W]})){qe.set("visible",!1);continue}var nt=g1(Q,Fe),ht=!1;if(nt&&(qe.attr("y",qe.attr("y")+2*te),ht=g1(Q,Fe)),ht){qe.set("visible",!1);continue}Q.push(Fe)}})}}}function BE(h,f){var t=h.getXYFields()[1],c=[],v=f.sort(function(m,b){return m.get("data")[t]-m.get("data")[t]});return v.length>0&&c.push(v.shift()),v.length>0&&c.push(v.pop()),c.push.apply(c,(0,U.ev)([],(0,U.CR)(v),!1)),c}function jg(h,f,t){return h.some(function(c){return t(c,f)})}function c2(h,f,t){t===void 0&&(t=0);var c=Math.max(0,Math.min(h.x+h.width+t,f.x+f.width+t)-Math.max(h.x-t,f.x-t)),v=Math.max(0,Math.min(h.y+h.height+t,f.y+f.height+t)-Math.max(h.y-t,f.y-t));return c*v}function f2(h,f){return jg(h,f,function(t,c){var v=Sf(t),m=Sf(c);return c2(v.getCanvasBBox(),m.getCanvasBBox(),2)>0})}function kE(h,f,t,c,v){var m,b;if(t.length!==0){var M=(m=t[0])===null||m===void 0?void 0:m.get("element"),A=M==null?void 0:M.geometry;if(!(!A||["path","line","area"].indexOf(A.type)<0)){var B=(0,U.CR)(A.getXYFields(),2),H=B[0],W=B[1],Y=(0,D.vM)(f,function(he){return he.get("data")[H]}),Q=[],te=v&&v.offset||((b=h[0])===null||b===void 0?void 0:b.offset)||12;(0,D.UI)((0,D.XP)(Y).reverse(),function(he){for(var Ee=BE(A,Y[he]);Ee.length;){var Fe=Ee.shift(),qe=Sf(Fe);if(jg(Q,Fe,function(Jt,Er){return Jt.get("data")[H]===Er.get("data")[H]&&Jt.get("data")[W]===Er.get("data")[W]})){qe.set("visible",!1);continue}var nt=f2(Q,Fe),ht=!1;if(nt&&(qe.attr("y",qe.attr("y")+2*te),ht=f2(Q,Fe)),ht){qe.set("visible",!1);continue}Q.push(Fe)}})}}}var Vg;function h2(){return Vg||(Vg=document.createElement("canvas").getContext("2d")),Vg}var Vm=(0,D.HP)(function(h,f){f===void 0&&(f={});var t=f.fontSize,c=f.fontFamily,v=f.fontWeight,m=f.fontStyle,b=f.fontVariant,M=h2();return M.font=[m,b,v,"".concat(t,"px"),c].join(" "),M.measureText((0,D.HD)(h)?h:"").width},function(h,f){return f===void 0&&(f={}),(0,U.ev)([h],(0,U.CR)((0,D.VO)(f)),!1).join("")}),Xg=function(h,f,t){var c=16,v=Vm("...",t),m;(0,D.HD)(h)?m=h:m=(0,D.BB)(h);var b=f,M=[],A,B;if(Vm(h,t)<=f)return h;for(;A=m.substr(0,c),B=Vm(A,t),!(B+v>b&&B>b);)if(M.push(A),b-=B,m=m.substr(c),!m)return M.join("");for(;A=m.substr(0,1),B=Vm(A,t),!(B+v>b);)if(M.push(A),b-=B,m=m.substr(1),!m)return M.join("");return"".concat(M.join(""),"...")};function d2(h,f,t,c,v){if(!(f.length<=0)){var m=(v==null?void 0:v.direction)||["top","right","bottom","left"],b=(v==null?void 0:v.action)||"translate",M=(v==null?void 0:v.margin)||0,A=f[0].get("coordinate");if(A){var B=z_(A,M),H=B.minX,W=B.minY,Y=B.maxX,Q=B.maxY;(0,D.S6)(f,function(te){var he=te.getCanvasBBox(),Ee=he.minX,Fe=he.minY,qe=he.maxX,nt=he.maxY,ht=he.x,Jt=he.y,Er=he.width,Or=he.height,Rr=ht,tn=Jt;if(m.indexOf("left")>=0&&(Ee=0&&(Fe=0&&(Ee>Y?Rr=Y-Er:qe>Y&&(Rr=Rr-(qe-Y))),m.indexOf("bottom")>=0&&(Fe>Q?tn=Q-Or:nt>Q&&(tn=tn-(nt-Q))),Rr!==ht||tn!==Jt){var ln=Rr-ht;if(b==="translate")As(te,ln,tn-Jt);else if(b==="ellipsis"){var Zn=te.findAll(function(ei){return ei.get("type")==="text"});Zn.forEach(function(ei){var Yi=(0,D.ei)(ei.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),Ea=ei.getCanvasBBox(),io=Xg(ei.attr("text"),Ea.width-Math.abs(ln),Yi);ei.attr("text",io)})}else te.hide()}})}}}function v2(h,f,t){var c={fillOpacity:(0,D.UM)(h.attr("fillOpacity"))?1:h.attr("fillOpacity"),strokeOpacity:(0,D.UM)(h.attr("strokeOpacity"))?1:h.attr("strokeOpacity"),opacity:(0,D.UM)(h.attr("opacity"))?1:h.attr("opacity")};h.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),h.animate(c,f)}function m1(h,f,t){var c={fillOpacity:0,strokeOpacity:0,opacity:0},v=f.easing,m=f.duration,b=f.delay;h.animate(c,m,v,function(){h.remove(!0)},b)}function FE(h,f,t){var c,v=(0,U.CR)(f,2),m=v[0],b=v[1];return h.applyToMatrix([m,b,1]),t==="x"?(h.setMatrix(La.vs(h.getMatrix(),[["t",-m,-b],["s",.01,1],["t",m,b]])),c=La.vs(h.getMatrix(),[["t",-m,-b],["s",100,1],["t",m,b]])):t==="y"?(h.setMatrix(La.vs(h.getMatrix(),[["t",-m,-b],["s",1,.01],["t",m,b]])),c=La.vs(h.getMatrix(),[["t",-m,-b],["s",1,100],["t",m,b]])):t==="xy"&&(h.setMatrix(La.vs(h.getMatrix(),[["t",-m,-b],["s",.01,.01],["t",m,b]])),c=La.vs(h.getMatrix(),[["t",-m,-b],["s",100,100],["t",m,b]])),c}function Zg(h,f,t,c,v){var m=t.start,b=t.end,M=t.getWidth(),A=t.getHeight(),B,H;v==="y"?(B=m.x+M/2,H=c.ym.x?c.x:m.x,H=m.y+A/2):v==="xy"&&(t.isPolar?(B=t.getCenter().x,H=t.getCenter().y):(B=(m.x+b.x)/2,H=(m.y+b.y)/2));var W=FE(h,[B,H],v);h.animate({matrix:W},f)}function NE(h,f,t){var c=t.coordinate,v=t.minYPoint;Zg(h,f,c,v,"x")}function Kg(h,f,t){var c=t.coordinate,v=t.minYPoint;Zg(h,f,c,v,"y")}function p2(h,f,t){var c=t.coordinate,v=t.minYPoint;Zg(h,f,c,v,"xy")}function HE(h,f,t){var c=h.getTotalLength();h.attr("lineDash",[c]),h.animate(function(v){return{lineDashOffset:(1-v)*c}},f)}function g2(h,f,t){var c=t.toAttrs,v=c.x,m=c.y;delete c.x,delete c.y,h.attr(c),h.animate({x:v,y:m},f)}function m2(h,f,t){var c=h.getBBox(),v=h.get("origin").mappingData,m=v.points,b=m[0].y-m[1].y>0?c.maxX:c.minX,M=(c.minY+c.maxY)/2;h.applyToMatrix([b,M,1]);var A=La.vs(h.getMatrix(),[["t",-b,-M],["s",.01,1],["t",b,M]]);h.setMatrix(A),h.animate({matrix:La.vs(h.getMatrix(),[["t",-b,-M],["s",100,1],["t",b,M]])},f)}function zE(h,f,t){var c=h.getBBox(),v=h.get("origin").mappingData,m=(c.minX+c.maxX)/2,b=v.points,M=b[0].y-b[1].y<=0?c.maxY:c.minY;h.applyToMatrix([m,M,1]);var A=La.vs(h.getMatrix(),[["t",-m,-M],["s",1,.01],["t",m,M]]);h.setMatrix(A),h.animate({matrix:La.vs(h.getMatrix(),[["t",-m,-M],["s",1,100],["t",m,M]])},f)}function Ww(h,f){var t,c=im(h,f),v=c.startAngle,m=c.endAngle;return!(0,D.vQ)(v,-Math.PI*.5)&&v<-Math.PI*.5&&(v+=Math.PI*2),!(0,D.vQ)(m,-Math.PI*.5)&&m<-Math.PI*.5&&(m+=Math.PI*2),f[5]===0&&(t=(0,U.CR)([m,v],2),v=t[0],m=t[1]),(0,D.vQ)(v,Math.PI*1.5)&&(v=Math.PI*-.5),(0,D.vQ)(m,Math.PI*-.5)&&!(0,D.vQ)(v,m)&&(m=Math.PI*1.5),{startAngle:v,endAngle:m}}function qg(h){var f;return h[0]==="M"||h[0]==="L"?f=[h[1],h[2]]:(h[0]==="a"||h[0]==="A"||h[0]==="C")&&(f=[h[h.length-2],h[h.length-1]]),f}function Xm(h){var f,t,c,v=h.filter(function(nt){return nt[0]==="A"||nt[0]==="a"});if(v.length===0)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var m=v[0],b=v.length>1?v[1]:v[0],M=h.indexOf(m),A=h.indexOf(b),B=qg(h[M-1]),H=qg(h[A-1]),W=Ww(B,m),Y=W.startAngle,Q=W.endAngle,te=Ww(H,b),he=te.startAngle,Ee=te.endAngle;(0,D.vQ)(Y,he)&&(0,D.vQ)(Q,Ee)?(t=Y,c=Q):(t=Math.min(Y,he),c=Math.max(Q,Ee));var Fe=m[1],qe=v[v.length-1][1];return Fe=0;B--){var H=this.getFacetsByLevel(t,B);try{for(var W=(c=void 0,(0,U.XA)(H)),Y=W.next();!Y.done;Y=W.next()){var Q=Y.value;this.isLeaf(Q)||(Q.originColIndex=Q.columnIndex,Q.columnIndex=this.getRegionIndex(Q.children),Q.columnValuesLength=b.length)}}catch(te){c={error:te}}finally{try{Y&&!Y.done&&(v=W.return)&&v.call(W)}finally{if(c)throw c.error}}}},f.prototype.getFacetsByLevel=function(t,c){var v=[];return t.forEach(function(m){m.rowIndex===c&&v.push(m)}),v},f.prototype.getRegionIndex=function(t){var c=t[0],v=t[t.length-1];return(v.columnIndex-c.columnIndex)/2+c.columnIndex},f.prototype.isLeaf=function(t){return!t.children||!t.children.length},f.prototype.getRows=function(){return this.cfg.fields.length+1},f.prototype.getChildFacets=function(t,c,v){var m=this,b=this.cfg.fields,M=b.length;if(!(M=Q){var Ee=v.parsePosition([te[A],te[M.field]]);Ee&&Y.push(Ee)}if(te[A]===W)return!1}),Y},f.prototype.parsePercentPosition=function(t){var c=parseFloat(t[0])/100,v=parseFloat(t[1])/100,m=this.view.getCoordinate(),b=m.start,M=m.end,A={x:Math.min(b.x,M.x),y:Math.min(b.y,M.y)},B=m.getWidth()*c+A.x,H=m.getHeight()*v+A.y;return{x:B,y:H}},f.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),c=t.start,v=t.end,m=t.getWidth(),b=t.getHeight(),M={x:Math.min(c.x,v.x),y:Math.min(c.y,v.y)};return{x:M.x,y:M.y,minX:M.x,minY:M.y,maxX:M.x+m,maxY:M.y+b,width:m,height:b}},f.prototype.getAnnotationCfg=function(t,c,v){var m=this,b=this.view.getCoordinate(),M=this.view.getCanvas(),A={};if((0,D.UM)(c))return null;var B=c.start,H=c.end,W=c.position,Y=this.parsePosition(B),Q=this.parsePosition(H),te=this.parsePosition(W);if(["arc","image","line","region","regionFilter"].includes(t)&&(!Y||!Q))return null;if(["text","dataMarker","html"].includes(t)&&!te)return null;if(t==="arc"){var he=c,Ee=he.start,Fe=he.end,qe=(0,U._T)(he,["start","end"]),nt=ug(b,Y),ht=ug(b,Q);nt>ht&&(ht=Math.PI*2+ht),A=(0,U.pi)((0,U.pi)({},qe),{center:b.getCenter(),radius:sh(b,Y),startAngle:nt,endAngle:ht})}else if(t==="image"){var Jt=c,Er=Jt.start,Or=Jt.end,qe=(0,U._T)(Jt,["start","end"]);A=(0,U.pi)((0,U.pi)({},qe),{start:Y,end:Q,src:c.src})}else if(t==="line"){var Rr=c,tn=Rr.start,ln=Rr.end,qe=(0,U._T)(Rr,["start","end"]);A=(0,U.pi)((0,U.pi)({},qe),{start:Y,end:Q,text:(0,D.U2)(c,"text",null)})}else if(t==="region"){var Zn=c,ei=Zn.start,Yi=Zn.end,qe=(0,U._T)(Zn,["start","end"]);A=(0,U.pi)((0,U.pi)({},qe),{start:Y,end:Q})}else if(t==="text"){var Ea=this.view.getData(),io=c,Iu=io.position,ds=io.content,qe=(0,U._T)(io,["position","content"]),Lc=ds;(0,D.mf)(ds)&&(Lc=ds(Ea)),A=(0,U.pi)((0,U.pi)((0,U.pi)({},te),qe),{content:Lc})}else if(t==="dataMarker"){var Po=c,sf=Po.position,pv=Po.point,A1=Po.line,lx=Po.text,uO=Po.autoAdjust,cO=Po.direction,qe=(0,U._T)(Po,["position","point","line","text","autoAdjust","direction"]);A=(0,U.pi)((0,U.pi)((0,U.pi)({},qe),te),{coordinateBBox:this.getCoordinateBBox(),point:pv,line:A1,text:lx,autoAdjust:uO,direction:cO})}else if(t==="dataRegion"){var cy=c,z2=cy.start,CT=cy.end,uM=cy.region,lx=cy.text,fO=cy.lineLength,qe=(0,U._T)(cy,["start","end","region","text","lineLength"]);A=(0,U.pi)((0,U.pi)({},qe),{points:this.getRegionPoints(z2,CT),region:uM,text:lx,lineLength:fO})}else if(t==="regionFilter"){var sx=c,IA=sx.start,hO=sx.end,W2=sx.apply,G2=sx.color,qe=(0,U._T)(sx,["start","end","apply","color"]),RA=this.view.geometries,uf=[],bT=function(cf){cf&&(cf.isGroup()?cf.getChildren().forEach(function(I1){return bT(I1)}):uf.push(cf))};(0,D.S6)(RA,function(cf){W2?(0,D.FX)(W2,cf.type)&&(0,D.S6)(cf.elements,function(I1){bT(I1.shape)}):(0,D.S6)(cf.elements,function(I1){bT(I1.shape)})}),A=(0,U.pi)((0,U.pi)({},qe),{color:G2,shapes:uf,start:Y,end:Q})}else if(t==="shape"){var dO=c,DA=dO.render,wT=(0,U._T)(dO,["render"]),LA=function(BA){if((0,D.mf)(c.render))return DA(BA,m.view,{parsePosition:m.parsePosition.bind(m)})};A=(0,U.pi)((0,U.pi)({},wT),{render:LA})}else if(t==="html"){var fy=c,xT=fy.html,b6=fy.position,wT=(0,U._T)(fy,["html","position"]),PA=function(cf){return(0,D.mf)(xT)?xT(cf,m.view):xT};A=(0,U.pi)((0,U.pi)((0,U.pi)({},wT),te),{parent:M.get("el").parentNode,html:PA})}var Pp=(0,D.b$)({},v,(0,U.pi)((0,U.pi)({},A),{top:c.top,style:c.style,offsetX:c.offsetX,offsetY:c.offsetY}));return t!=="html"&&(Pp.container=this.getComponentContainer(Pp)),Pp.animate=this.view.getOptions().animate&&Pp.animate&&(0,D.U2)(c,"animate",Pp.animate),Pp.animateOption=(0,D.b$)({},uo,Pp.animateOption,c.animateOption),Pp},f.prototype.isTop=function(t){return(0,D.U2)(t,"top",!0)},f.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},f.prototype.getAnnotationTheme=function(t){return(0,D.U2)(this.view.getTheme(),["components","annotation",t],{})},f.prototype.updateOrCreate=function(t){var c=this.cache.get(this.getCacheKey(t));if(c){var v=t.type,m=this.getAnnotationTheme(v),b=this.getAnnotationCfg(v,t,m);b&&es(b,["container"]),c.component.update((0,U.pi)((0,U.pi)({},b||{}),{visible:!!b})),(0,D.q9)(C1,t.type)&&c.component.render()}else c=this.createAnnotation(t),c&&(c.component.init(),(0,D.q9)(C1,t.type)&&c.component.render());return c},f.prototype.syncCache=function(t){var c=this,v=new Map(this.cache);return t.forEach(function(m,b){v.set(b,m)}),v.forEach(function(m,b){(0,D.sE)(c.option,function(M){return b===c.getCacheKey(M)})||(m.component.destroy(),v.delete(b))}),v},f.prototype.getCacheKey=function(t){return t},f}(Zc),Uo=Jm;function nc(h,f){var t=(0,D.b$)({},(0,D.U2)(h,["components","axis","common"]),(0,D.U2)(h,["components","axis",f]));return(0,D.U2)(t,["grid"],{})}function ey(h,f,t,c){var v=[],m=f.getTicks();return h.isPolar&&m.push({value:1,text:"",tickValue:""}),m.reduce(function(b,M,A){var B=M.value;if(c)v.push({points:[h.convert(t==="y"?{x:0,y:B}:{x:B,y:0}),h.convert(t==="y"?{x:1,y:B}:{x:B,y:1})]});else if(A){var H=b.value,W=(H+B)/2;v.push({points:[h.convert(t==="y"?{x:0,y:W}:{x:W,y:0}),h.convert(t==="y"?{x:1,y:W}:{x:W,y:1})]})}return M},m[0]),v}function uv(h,f,t,c,v){var m=f.values.length,b=[],M=t.getTicks();return M.reduce(function(A,B){var H=A?A.value:B.value,W=B.value,Y=(H+W)/2;return v==="x"?b.push({points:[h.convert({x:c?W:Y,y:0}),h.convert({x:c?W:Y,y:1})]}):b.push({points:(0,D.UI)(Array(m+1),function(Q,te){return h.convert({x:te/m,y:c?W:Y})})}),B},M[0]),b}function b2(h,f){var t=(0,D.U2)(f,"grid");if(t===null)return!1;var c=(0,D.U2)(h,"grid");return!(t===void 0&&c===null)}var Pf=["container"],b1=(0,U.pi)((0,U.pi)({},uo),{appear:null}),w2=function(h){(0,U.ZT)(f,h);function f(t){var c=h.call(this,t)||this;return c.cache=new Map,c.gridContainer=c.view.getLayer(Pt.BG).addGroup(),c.gridForeContainer=c.view.getLayer(Pt.FORE).addGroup(),c.axisContainer=c.view.getLayer(Pt.BG).addGroup(),c.axisForeContainer=c.view.getLayer(Pt.FORE).addGroup(),c}return Object.defineProperty(f.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),f.prototype.init=function(){},f.prototype.render=function(){this.update()},f.prototype.layout=function(){var t=this,c=this.view.getCoordinate();(0,D.S6)(this.getComponents(),function(v){var m=v.component,b=v.direction,M=v.type,A=v.extra,B=A.dim,H=A.scale,W=A.alignTick,Y;if(M===Gt.AXIS)c.isPolar?B==="x"?Y=c.isTransposed?np(c,b):jc(c):B==="y"&&(Y=c.isTransposed?jc(c):np(c,b)):Y=np(c,b);else if(M===Gt.GRID)if(c.isPolar){var Q=void 0;c.isTransposed?Q=B==="x"?uv(c,t.view.getYScales()[0],H,W,B):ey(c,H,B,W):Q=B==="x"?ey(c,H,B,W):uv(c,t.view.getXScale(),H,W,B),Y={items:Q,center:t.view.getCoordinate().getCenter()}}else Y={items:ey(c,H,B,W)};m.update(Y)})},f.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var c=new Map;this.cache.forEach(function(v,m){t.has(m)?c.set(m,v):v.component.destroy()}),this.cache=c},f.prototype.clear=function(){h.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},f.prototype.destroy=function(){h.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},f.prototype.getComponents=function(){var t=[];return this.cache.forEach(function(c){t.push(c)}),t},f.prototype.updateXAxes=function(t){var c=this.view.getXScale();if(!(!c||c.isIdentity)){var v=tl(this.option,c.field);if(v!==!1){var m=Eu(v,ot.BOTTOM),b=Pt.BG,M="x",A=this.view.getCoordinate(),B=this.getId("axis",c.field),H=this.getId("grid",c.field);if(A.isRect){var W=this.cache.get(B);if(W){var Y=this.getLineAxisCfg(c,v,m);es(Y,Pf),W.component.update(Y),t.set(B,W)}else W=this.createLineAxis(c,v,b,m,M),this.cache.set(B,W),t.set(B,W);var Q=this.cache.get(H);if(Q){var Y=this.getLineGridCfg(c,v,m,M);es(Y,Pf),Q.component.update(Y),t.set(H,Q)}else Q=this.createLineGrid(c,v,b,m,M),Q&&(this.cache.set(H,Q),t.set(H,Q))}else if(A.isPolar){var W=this.cache.get(B);if(W){var Y=A.isTransposed?this.getLineAxisCfg(c,v,ot.RADIUS):this.getCircleAxisCfg(c,v,m);es(Y,Pf),W.component.update(Y),t.set(B,W)}else{if(A.isTransposed){if((0,D.o8)(v))return;W=this.createLineAxis(c,v,b,ot.RADIUS,M)}else W=this.createCircleAxis(c,v,b,m,M);this.cache.set(B,W),t.set(B,W)}var Q=this.cache.get(H);if(Q){var Y=A.isTransposed?this.getCircleGridCfg(c,v,ot.RADIUS,M):this.getLineGridCfg(c,v,ot.CIRCLE,M);es(Y,Pf),Q.component.update(Y),t.set(H,Q)}else{if(A.isTransposed){if((0,D.o8)(v))return;Q=this.createCircleGrid(c,v,b,ot.RADIUS,M)}else Q=this.createLineGrid(c,v,b,ot.CIRCLE,M);Q&&(this.cache.set(H,Q),t.set(H,Q))}}}}},f.prototype.updateYAxes=function(t){var c=this,v=this.view.getYScales();(0,D.S6)(v,function(m,b){if(!(!m||m.isIdentity)){var M=m.field,A=tl(c.option,M);if(A!==!1){var B=Pt.BG,H="y",W=c.getId("axis",M),Y=c.getId("grid",M),Q=c.view.getCoordinate();if(Q.isRect){var te=Eu(A,b===0?ot.LEFT:ot.RIGHT),he=c.cache.get(W);if(he){var Ee=c.getLineAxisCfg(m,A,te);es(Ee,Pf),he.component.update(Ee),t.set(W,he)}else he=c.createLineAxis(m,A,B,te,H),c.cache.set(W,he),t.set(W,he);var Fe=c.cache.get(Y);if(Fe){var Ee=c.getLineGridCfg(m,A,te,H);es(Ee,Pf),Fe.component.update(Ee),t.set(Y,Fe)}else Fe=c.createLineGrid(m,A,B,te,H),Fe&&(c.cache.set(Y,Fe),t.set(Y,Fe))}else if(Q.isPolar){var he=c.cache.get(W);if(he){var Ee=Q.isTransposed?c.getCircleAxisCfg(m,A,ot.CIRCLE):c.getLineAxisCfg(m,A,ot.RADIUS);es(Ee,Pf),he.component.update(Ee),t.set(W,he)}else{if(Q.isTransposed){if((0,D.o8)(A))return;he=c.createCircleAxis(m,A,B,ot.CIRCLE,H)}else he=c.createLineAxis(m,A,B,ot.RADIUS,H);c.cache.set(W,he),t.set(W,he)}var Fe=c.cache.get(Y);if(Fe){var Ee=Q.isTransposed?c.getLineGridCfg(m,A,ot.CIRCLE,H):c.getCircleGridCfg(m,A,ot.RADIUS,H);es(Ee,Pf),Fe.component.update(Ee),t.set(Y,Fe)}else{if(Q.isTransposed){if((0,D.o8)(A))return;Fe=c.createLineGrid(m,A,B,ot.CIRCLE,H)}else Fe=c.createCircleGrid(m,A,B,ot.RADIUS,H);Fe&&(c.cache.set(Y,Fe),t.set(Y,Fe))}}}}})},f.prototype.createLineAxis=function(t,c,v,m,b){var M={component:new pb(this.getLineAxisCfg(t,c,m)),layer:v,direction:m===ot.RADIUS?ot.NONE:m,type:Gt.AXIS,extra:{dim:b,scale:t}};return M.component.set("field",t.field),M.component.init(),M},f.prototype.createLineGrid=function(t,c,v,m,b){var M=this.getLineGridCfg(t,c,m,b);if(M){var A={component:new ep(M),layer:v,direction:ot.NONE,type:Gt.GRID,extra:{dim:b,scale:t,alignTick:(0,D.U2)(M,"alignTick",!0)}};return A.component.init(),A}},f.prototype.createCircleAxis=function(t,c,v,m,b){var M={component:new Wx(this.getCircleAxisCfg(t,c,m)),layer:v,direction:m,type:Gt.AXIS,extra:{dim:b,scale:t}};return M.component.set("field",t.field),M.component.init(),M},f.prototype.createCircleGrid=function(t,c,v,m,b){var M=this.getCircleGridCfg(t,c,m,b);if(M){var A={component:new Jh(M),layer:v,direction:ot.NONE,type:Gt.GRID,extra:{dim:b,scale:t,alignTick:(0,D.U2)(M,"alignTick",!0)}};return A.component.init(),A}},f.prototype.getLineAxisCfg=function(t,c,v){var m=(0,D.U2)(c,["top"])?this.axisForeContainer:this.axisContainer,b=this.view.getCoordinate(),M=np(b,v),A=fh(t,c),B=Gd(this.view.getTheme(),v),H=(0,D.U2)(c,["title"])?(0,D.b$)({title:{style:{text:A}}},{title:wb(this.view.getTheme(),v,c.title)},c):c,W=(0,D.b$)((0,U.pi)((0,U.pi)({container:m},M),{ticks:t.getTicks().map(function(nt){return{id:"".concat(nt.tickValue),name:nt.text,value:nt.value}}),verticalFactor:b.isPolar?ch(M,b.getCenter())*-1:ch(M,b.getCenter()),theme:B}),B,H),Y=this.getAnimateCfg(W),Q=Y.animate,te=Y.animateOption;W.animateOption=te,W.animate=Q;var he=ip(M),Ee=(0,D.U2)(W,"verticalLimitLength",he?1/3:1/2);if(Ee<=1){var Fe=this.view.getCanvas().get("width"),qe=this.view.getCanvas().get("height");W.verticalLimitLength=Ee*(he?Fe:qe)}return W},f.prototype.getLineGridCfg=function(t,c,v,m){if(b2(Gd(this.view.getTheme(),v),c)){var b=nc(this.view.getTheme(),v),M=(0,D.b$)({container:(0,D.U2)(c,["top"])?this.gridForeContainer:this.gridContainer},b,(0,D.U2)(c,"grid"),this.getAnimateCfg(c));return M.items=ey(this.view.getCoordinate(),t,m,(0,D.U2)(M,"alignTick",!0)),M}},f.prototype.getCircleAxisCfg=function(t,c,v){var m=(0,D.U2)(c,["top"])?this.axisForeContainer:this.axisContainer,b=this.view.getCoordinate(),M=t.getTicks().map(function(he){return{id:"".concat(he.tickValue),name:he.text,value:he.value}});!t.isCategory&&Math.abs(b.endAngle-b.startAngle)===Math.PI*2&&M.length&&(M[M.length-1].name="");var A=fh(t,c),B=Gd(this.view.getTheme(),ot.CIRCLE),H=(0,D.U2)(c,["title"])?(0,D.b$)({title:{style:{text:A}}},{title:wb(this.view.getTheme(),v,c.title)},c):c,W=(0,D.b$)((0,U.pi)((0,U.pi)({container:m},jc(this.view.getCoordinate())),{ticks:M,verticalFactor:1,theme:B}),B,H),Y=this.getAnimateCfg(W),Q=Y.animate,te=Y.animateOption;return W.animate=Q,W.animateOption=te,W},f.prototype.getCircleGridCfg=function(t,c,v,m){if(b2(Gd(this.view.getTheme(),v),c)){var b=nc(this.view.getTheme(),ot.RADIUS),M=(0,D.b$)({container:(0,D.U2)(c,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},b,(0,D.U2)(c,"grid"),this.getAnimateCfg(c)),A=(0,D.U2)(M,"alignTick",!0),B=m==="x"?this.view.getYScales()[0]:this.view.getXScale();return M.items=uv(this.view.getCoordinate(),B,t,A,m),M}},f.prototype.getId=function(t,c){var v=this.view.getCoordinate();return"".concat(t,"-").concat(c,"-").concat(v.type)},f.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&(0,D.U2)(t,"animate"),animateOption:t&&t.animateOption?(0,D.b$)({},b1,t.animateOption):b1}},f}(Zc),QE=w2;function cv(h,f,t){return t===ot.TOP?[h.minX+h.width/2-f.width/2,h.minY]:t===ot.BOTTOM?[h.minX+h.width/2-f.width/2,h.maxY-f.height]:t===ot.LEFT?[h.minX,h.minY+h.height/2-f.height/2]:t===ot.RIGHT?[h.maxX-f.width,h.minY+h.height/2-f.height/2]:t===ot.TOP_LEFT||t===ot.LEFT_TOP?[h.tl.x,h.tl.y]:t===ot.TOP_RIGHT||t===ot.RIGHT_TOP?[h.tr.x-f.width,h.tr.y]:t===ot.BOTTOM_LEFT||t===ot.LEFT_BOTTOM?[h.bl.x,h.bl.y-f.height]:t===ot.BOTTOM_RIGHT||t===ot.RIGHT_BOTTOM?[h.br.x-f.width,h.br.y-f.height]:[0,0]}function $w(h,f){if(f.isTransposed)switch(h){case DIRECTION.BOTTOM:return DIRECTION.LEFT;case DIRECTION.LEFT:return DIRECTION.BOTTOM;case DIRECTION.RIGHT:return DIRECTION.TOP;case DIRECTION.TOP:return DIRECTION.RIGHT}return h}function Uw(h){return h===DIRECTION.LEFT?DIRECTION.RIGHT:h===DIRECTION.RIGHT?DIRECTION.LEFT:h}function x2(h){return h===DIRECTION.TOP?DIRECTION.BOTTOM:h===DIRECTION.BOTTOM?DIRECTION.TOP:h}function Mh(h,f){var t=f.matrix[0],c=f.matrix[4],v=h;return t<0&&(v=Uw(v)),c<0&&(v=x2(v)),v}function ic(h,f){var t=h;return f.isReflect("x")&&(t=Uw(t)),f.isReflect("y")&&(t=x2(t)),t}function nT(h,f){var t=h;return t=$w(t,f),t=Mh(t,f),t=ic(t,f),t}function Yw(h,f){return(0,D.jn)(h)?h===!1?!1:{}:(0,D.U2)(h,[f],h)}function w1(h){return(0,D.U2)(h,"position",ot.BOTTOM)}var qo=function(h){(0,U.ZT)(f,h);function f(t){var c=h.call(this,t)||this;return c.container=c.view.getLayer(Pt.FORE).addGroup(),c}return Object.defineProperty(f.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),f.prototype.init=function(){},f.prototype.render=function(){this.update()},f.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,(0,D.S6)(this.components,function(c){var v=c.component,m=c.direction,b=wC(m),M=v.get("maxWidthRatio"),A=v.get("maxHeightRatio"),B=t.getCategoryLegendSizeCfg(b,M,A),H=v.get("maxWidth"),W=v.get("maxHeight");v.update({maxWidth:Math.min(B.maxWidth,H||0),maxHeight:Math.min(B.maxHeight,W||0)});var Y=v.get("padding"),Q=v.getLayoutBBox(),te=new ts(Q.x,Q.y,Q.width,Q.height).expand(Y),he=(0,U.CR)(cv(t.view.viewBBox,te,m),2),Ee=he[0],Fe=he[1],qe=(0,U.CR)(cv(t.layoutBBox,te,m),2),nt=qe[0],ht=qe[1],Jt=0,Er=0;m.startsWith("top")||m.startsWith("bottom")?(Jt=Ee,Er=ht):(Jt=nt,Er=Fe),v.setLocation({x:Jt+Y[3],y:Er+Y[0]}),t.layoutBBox=t.layoutBBox.cut(te,m)})},f.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var c={},v=function(Y,Q,te){var he=t.getId(te.field),Ee=t.getComponentById(he);if(Ee){var Fe=void 0,qe=Yw(t.option,te.field);qe!==!1&&((0,D.U2)(qe,"custom")?Fe=t.getCategoryCfg(Y,Q,te,qe,!0):te.isLinear?Fe=t.getContinuousCfg(Y,Q,te,qe):te.isCategory&&(Fe=t.getCategoryCfg(Y,Q,te,qe))),Fe&&(es(Fe,["container"]),Ee.direction=w1(qe),Ee.component.update(Fe),c[he]=!0)}else{var nt=t.createFieldLegend(Y,Q,te);nt&&(nt.component.init(),t.components.push(nt),c[he]=!0)}};if((0,D.U2)(this.option,"custom")){var m="global-custom",b=this.getComponentById(m);if(b){var M=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);es(M,["container"]),b.component.update(M),c[m]=!0}else{var A=this.createCustomLegend(void 0,void 0,void 0,this.option);if(A){A.init();var B=Pt.FORE,H=w1(this.option);this.components.push({id:m,component:A,layer:B,direction:H,type:Gt.LEGEND,extra:void 0}),c[m]=!0}}}else this.loopLegends(v);var W=[];(0,D.S6)(this.getComponents(),function(Y){c[Y.id]?W.push(Y):Y.component.destroy()}),this.components=W},f.prototype.clear=function(){h.prototype.clear.call(this),this.container.clear()},f.prototype.destroy=function(){h.prototype.destroy.call(this),this.container.remove(!0)},f.prototype.getGeometries=function(t){var c=this,v=t.geometries;return(0,D.S6)(t.views,function(m){v=v.concat(c.getGeometries(m))}),v},f.prototype.loopLegends=function(t){var c=this.view.getRootView()===this.view;if(c){var v=this.getGeometries(this.view),m={};(0,D.S6)(v,function(b){var M=b.getGroupAttributes();(0,D.S6)(M,function(A){var B=A.getScale(A.type);!B||B.type==="identity"||m[B.field]||(t(b,A,B),m[B.field]=!0)})})}},f.prototype.createFieldLegend=function(t,c,v){var m,b=Yw(this.option,v.field),M=Pt.FORE,A=w1(b);if(b!==!1&&((0,D.U2)(b,"custom")?m=this.createCustomLegend(t,c,v,b):v.isLinear?m=this.createContinuousLegend(t,c,v,b):v.isCategory&&(m=this.createCategoryLegend(t,c,v,b))),m)return m.set("field",v.field),{id:this.getId(v.field),component:m,layer:M,direction:A,type:Gt.LEGEND,extra:{scale:v}}},f.prototype.createCustomLegend=function(t,c,v,m){var b=this.getCategoryCfg(t,c,v,m,!0);return new R0(b)},f.prototype.createContinuousLegend=function(t,c,v,m){var b=this.getContinuousCfg(t,c,v,es(m,["value"]));return new tp(b)},f.prototype.createCategoryLegend=function(t,c,v,m){var b=this.getCategoryCfg(t,c,v,m);return new R0(b)},f.prototype.getContinuousCfg=function(t,c,v,m){var b=v.getTicks(),M=(0,D.sE)(b,function(he){return he.value===0}),A=(0,D.sE)(b,function(he){return he.value===1}),B=b.map(function(he){var Ee=he.value,Fe=he.tickValue,qe=c.mapping(v.invert(Ee)).join("");return{value:Fe,attrValue:qe,color:qe,scaleValue:Ee}});M||B.push({value:v.min,attrValue:c.mapping(v.invert(0)).join(""),color:c.mapping(v.invert(0)).join(""),scaleValue:0}),A||B.push({value:v.max,attrValue:c.mapping(v.invert(1)).join(""),color:c.mapping(v.invert(1)).join(""),scaleValue:1}),B.sort(function(he,Ee){return he.value-Ee.value});var H={min:(0,D.YM)(B).value,max:(0,D.Z$)(B).value,colors:[],rail:{type:c.type},track:{}};c.type==="size"&&(H.track={style:{fill:c.type==="size"?this.view.getTheme().defaultColor:void 0}}),c.type==="color"&&(H.colors=B.map(function(he){return he.attrValue}));var W=this.container,Y=w1(m),Q=wC(Y),te=(0,D.U2)(m,"title");return te&&(te=(0,D.b$)({text:_o(v)},te)),H.container=W,H.layout=Q,H.title=te,H.animateOption=uo,this.mergeLegendCfg(H,m,"continuous")},f.prototype.getCategoryCfg=function(t,c,v,m,b){var M=this.container,A=(0,D.U2)(m,"position",ot.BOTTOM),B=SC(this.view.getTheme(),A),H=(0,D.U2)(B,["marker"]),W=(0,D.U2)(m,"marker"),Y=wC(A),Q=(0,D.U2)(B,["pageNavigator"]),te=(0,D.U2)(m,"pageNavigator"),he=b?J0(H,W,m.items):xC(this.view,t,c,H,W),Ee=(0,D.U2)(m,"title");Ee&&(Ee=(0,D.b$)({text:v?_o(v):""},Ee));var Fe=(0,D.U2)(m,"maxWidthRatio"),qe=(0,D.U2)(m,"maxHeightRatio"),nt=this.getCategoryLegendSizeCfg(Y,Fe,qe);nt.container=M,nt.layout=Y,nt.items=he,nt.title=Ee,nt.animateOption=uo,nt.pageNavigator=(0,D.b$)({},Q,te);var ht=this.mergeLegendCfg(nt,m,A);ht.reversed&&ht.items.reverse();var Jt=(0,D.U2)(ht,"maxItemWidth");return Jt&&Jt<=1&&(ht.maxItemWidth=this.view.viewBBox.width*Jt),ht},f.prototype.mergeLegendCfg=function(t,c,v){var m=v.split("-")[0],b=SC(this.view.getTheme(),m);return(0,D.b$)({},b,t,c)},f.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},f.prototype.getComponentById=function(t){return(0,D.sE)(this.components,function(c){return c.id===t})},f.prototype.getCategoryLegendSizeCfg=function(t,c,v){c===void 0&&(c=Xr),v===void 0&&(v=Xr);var m=this.view.viewBBox,b=m.width,M=m.height;return t==="vertical"?{maxWidth:b*c,maxHeight:M}:{maxWidth:b,maxHeight:M*v}},f}(Zc),jw=qo,ty=function(h){(0,U.ZT)(f,h);function f(t){var c=h.call(this,t)||this;return c.onChangeFn=D.ZT,c.resetMeasure=function(){c.clear()},c.onValueChange=function(v){var m=(0,U.CR)(v,2),b=m[0],M=m[1];c.start=b,c.end=M,c.changeViewData(b,M)},c.container=c.view.getLayer(Pt.FORE).addGroup(),c.onChangeFn=(0,D.P2)(c.onValueChange,20,{leading:!0}),c.width=0,c.view.on(ar.BEFORE_CHANGE_DATA,c.resetMeasure),c.view.on(ar.BEFORE_CHANGE_SIZE,c.resetMeasure),c}return Object.defineProperty(f.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),f.prototype.destroy=function(){h.prototype.destroy.call(this),this.view.off(ar.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(ar.BEFORE_CHANGE_SIZE,this.resetMeasure)},f.prototype.init=function(){},f.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),c=t.start,v=t.end;(0,D.UM)(this.start)&&(this.start=c,this.end=v);var m=this.view.getOptions().data;this.option&&!(0,D.xb)(m)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},f.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.start,t.end)},0)),this.slider){var c=this.view.coordinateBBox.width,v=this.slider.component.get("padding"),m=(0,U.CR)(v,4),b=m[0],M=m[1],A=m[2],B=m[3],H=this.slider.component.getLayoutBBox(),W=new ts(H.x,H.y,Math.min(H.width,c),H.height).expand(v),Y=this.getMinMaxText(this.start,this.end),Q=Y.minText,te=Y.maxText,he=(0,U.CR)(cv(this.view.viewBBox,W,ot.BOTTOM),2),Ee=he[0],Fe=he[1],qe=(0,U.CR)(cv(this.view.coordinateBBox,W,ot.BOTTOM),2),nt=qe[0],ht=qe[1];this.slider.component.update((0,U.pi)((0,U.pi)({},this.getSliderCfg()),{x:nt+B,y:Fe+b,width:this.width,start:this.start,end:this.end,minText:Q,maxText:te})),this.view.viewBBox=this.view.viewBBox.cut(W,ot.BOTTOM)}},f.prototype.update=function(){this.render()},f.prototype.createSlider=function(){var t=this.getSliderCfg(),c=new Hx((0,U.pi)({container:this.container},t));return c.init(),{component:c,layer:Pt.FORE,direction:ot.BOTTOM,type:Gt.SLIDER}},f.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var c=this.getMinMaxText(this.start,this.end),v=c.minText,m=c.maxText;t=(0,U.pi)((0,U.pi)({},t),{width:this.width,start:this.start,end:this.end,minText:v,maxText:m})}return this.slider.component.update(t),this.slider},f.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},f.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if((0,D.Kn)(this.option)){var c=(0,U.pi)({data:this.getData()},(0,D.U2)(this.option,"trendCfg",{}));t=(0,D.b$)({},t,this.getThemeOptions(),this.option),t=(0,U.pi)((0,U.pi)({},t),{trendCfg:c})}return t.start=(0,D.uZ)(Math.min((0,D.UM)(t.start)?0:t.start,(0,D.UM)(t.end)?1:t.end),0,1),t.end=(0,D.uZ)(Math.max((0,D.UM)(t.start)?0:t.start,(0,D.UM)(t.end)?1:t.end),0,1),t},f.prototype.getData=function(){var t=this.view.getOptions().data,c=(0,U.CR)(this.view.getYScales(),1),v=c[0],m=this.view.getGroupScales();if(m.length){var b=m[0],M=b.field,A=b.ticks;return t.reduce(function(B,H){return H[M]===A[0]&&B.push(H[v.field]),B},[])}return t.map(function(B){return B[v.field]||0})},f.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,D.U2)(t,["components","slider","common"],{})},f.prototype.getMinMaxText=function(t,c){var v=this.view.getOptions().data,m=this.view.getXScale(),b=!0,M=(0,D.I)(v,m.field);m.isLinear&&(M=M.sort());var A=b?M:M.reverse(),B=(0,D.dp)(v);if(!m||!B)return{};var H=(0,D.dp)(A),W=Math.round(t*(H-1)),Y=Math.round(c*(H-1)),Q=(0,D.U2)(A,[W]),te=(0,D.U2)(A,[Y]),he=this.getSliderCfg().formatter;return he&&(Q=he(Q,v[W],W),te=he(te,v[Y],Y)),{minText:Q,maxText:te}},f.prototype.changeViewData=function(t,c){var v=this.view.getOptions().data,m=this.view.getXScale(),b=(0,D.dp)(v);if(!(!m||!b)){var M=!0,A=(0,D.I)(v,m.field),B=this.view.getXScale().isLinear?A.sort(function(te,he){return Number(te)-Number(he)}):A,H=M?B:B.reverse(),W=(0,D.dp)(H),Y=Math.round(t*(W-1)),Q=Math.round(c*(W-1));this.view.filter(m.field,function(te,he){var Ee=H.indexOf(te);return Ee>-1?Wd(Ee,Y,Q):!0}),this.view.render(!0)}},f.prototype.getComponents=function(){return this.slider?[this.slider]:[]},f.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},f}(Zc),S2=ty,x1=0,Vw=8,Xw=32,Jg=20,Zw=function(h){(0,U.ZT)(f,h);function f(t){var c=h.call(this,t)||this;return c.onChangeFn=D.ZT,c.resetMeasure=function(){c.clear()},c.onValueChange=function(v){var m=v.ratio,b=c.getValidScrollbarCfg().animate;c.ratio=(0,D.uZ)(m,0,1);var M=c.view.getOptions().animate;b||c.view.animate(!1),c.changeViewData(c.getScrollRange(),!0),c.view.animate(M)},c.container=c.view.getLayer(Pt.FORE).addGroup(),c.onChangeFn=(0,D.P2)(c.onValueChange,20,{leading:!0}),c.trackLen=0,c.thumbLen=0,c.ratio=0,c.view.on(ar.BEFORE_CHANGE_DATA,c.resetMeasure),c.view.on(ar.BEFORE_CHANGE_SIZE,c.resetMeasure),c}return Object.defineProperty(f.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),f.prototype.destroy=function(){h.prototype.destroy.call(this),this.view.off(ar.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(ar.BEFORE_CHANGE_SIZE,this.resetMeasure)},f.prototype.init=function(){},f.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},f.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)})),this.scrollbar){var c=this.view.coordinateBBox.width,v=this.scrollbar.component.get("padding"),m=this.scrollbar.component.getLayoutBBox(),b=new ts(m.x,m.y,Math.min(m.width,c),m.height).expand(v),M=this.getScrollbarComponentCfg(),A=void 0,B=void 0;if(M.isHorizontal){var H=(0,U.CR)(cv(this.view.viewBBox,b,ot.BOTTOM),2),W=H[0],Y=H[1],Q=(0,U.CR)(cv(this.view.coordinateBBox,b,ot.BOTTOM),2),te=Q[0],he=Q[1];A=te,B=Y}else{var Ee=(0,U.CR)(cv(this.view.viewBBox,b,ot.RIGHT),2),W=Ee[0],Y=Ee[1],Fe=(0,U.CR)(cv(this.view.viewBBox,b,ot.RIGHT),2),te=Fe[0],he=Fe[1];A=te,B=Y}A+=v[3],B+=v[0],this.trackLen?this.scrollbar.component.update((0,U.pi)((0,U.pi)({},M),{x:A,y:B,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update((0,U.pi)((0,U.pi)({},M),{x:A,y:B})),this.view.viewBBox=this.view.viewBBox.cut(b,M.isHorizontal?ot.BOTTOM:ot.RIGHT)}},f.prototype.update=function(){this.render()},f.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},f.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},f.prototype.setValue=function(t){this.onValueChange({ratio:t})},f.prototype.getValue=function(){return this.ratio},f.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,D.U2)(t,["components","scrollbar","common"],{})},f.prototype.getScrollbarTheme=function(t){var c=(0,D.U2)(this.view.getTheme(),["components","scrollbar"]),v=t||{},m=v.thumbHighlightColor,b=(0,U._T)(v,["thumbHighlightColor"]);return{default:(0,D.b$)({},(0,D.U2)(c,["default","style"],{}),b),hover:(0,D.b$)({},(0,D.U2)(c,["hover","style"],{}),{thumbColor:m})}},f.prototype.measureScrollbar=function(){var t=this.view.getXScale(),c=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var v=this.getScrollbarComponentCfg(),m=v.trackLen,b=v.thumbLen;this.trackLen=m,this.thumbLen=b,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=c},f.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*(0,D.uZ)(this.ratio,0,1)),c=Math.min(t+this.step-1,this.cnt-1);return[t,c]},f.prototype.changeViewData=function(t,c){var v=this,m=(0,U.CR)(t,2),b=m[0],M=m[1],A=this.getValidScrollbarCfg().type,B=A!=="vertical",H=(0,D.I)(this.data,this.xScaleCfg.field),W=this.view.getXScale().isLinear?H.sort(function(Q,te){return Number(Q)-Number(te)}):H,Y=B?W:W.reverse();this.yScalesCfg.forEach(function(Q){v.view.scale(Q.field,{formatter:Q.formatter,type:Q.type,min:Q.min,max:Q.max,tickMethod:Q.tickMethod})}),this.view.filter(this.xScaleCfg.field,function(Q){var te=Y.indexOf(Q);return te>-1?Wd(te,b,M):!0}),this.view.render(!0)},f.prototype.createScrollbar=function(){var t=this.getValidScrollbarCfg().type,c=t!=="vertical",v=new vb((0,U.pi)((0,U.pi)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return v.init(),{component:v,layer:Pt.FORE,direction:c?ot.BOTTOM:ot.RIGHT,type:Gt.SCROLLBAR}},f.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),c=this.trackLen?(0,U.pi)((0,U.pi)({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):(0,U.pi)({},t);return this.scrollbar.component.update(c),this.scrollbar},f.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,c=this.getValidScrollbarCfg(),v=c.type,m=c.categorySize,b=v!=="vertical";return Math.floor((b?t.width:t.height)/m)},f.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),c=this.getScrollbarData(),v=(0,D.I)(c,t.field);return(0,D.dp)(v)},f.prototype.getScrollbarComponentCfg=function(){var t=this.view,c=t.coordinateBBox,v=t.viewBBox,m=this.getValidScrollbarCfg(),b=m.type,M=m.padding,A=m.width,B=m.height,H=m.style,W=b!=="vertical",Y=(0,U.CR)(M,4),Q=Y[0],te=Y[1],he=Y[2],Ee=Y[3],Fe=W?{x:c.minX+Ee,y:v.maxY-B-he}:{x:v.maxX-A-te,y:c.minY+Q},qe=this.getStep(),nt=this.getCnt(),ht=W?c.width-Ee-te:c.height-Q-he,Jt=Math.max(ht*(0,D.uZ)(qe/nt,0,1),Jg);return(0,U.pi)((0,U.pi)({},this.getThemeOptions()),{x:Fe.x,y:Fe.y,size:W?B:A,isHorizontal:W,trackLen:ht,thumbLen:Jt,thumbOffset:0,theme:this.getScrollbarTheme(H)})},f.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:Xw,width:Vw,height:Vw,padding:[0,0,0,0],animate:!0,style:{}};return(0,D.Kn)(this.option)&&(t=(0,U.pi)((0,U.pi)({},t),this.option)),(!(0,D.Kn)(this.option)||!this.option.padding)&&(t.padding=t.type==="horizontal"?[x1,0,x1,0]:[0,x1,0,x1]),t},f.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),c=this.getValidScrollbarCfg(),v=this.view.getOptions().data||[];return t.isReflect("y")&&c.type==="vertical"&&(v=(0,U.ev)([],(0,U.CR)(v),!1).reverse()),v},f}(Zc),iT=Zw,ry={fill:"#CCD6EC",opacity:.3};function JE(h,f,t){var c,v,m,b,M,A,B=gC(h,f,t);if(B.length){B=(0,D.xH)(B);try{for(var H=(0,U.XA)(B),W=H.next();!W.done;W=H.next()){var Y=W.value;try{for(var Q=(m=void 0,(0,U.XA)(Y)),te=Q.next();!te.done;te=Q.next()){var he=te.value,Ee=he.mappingData,Fe=Ee.x,qe=Ee.y;he.x=(0,D.kJ)(Fe)?Fe[Fe.length-1]:Fe,he.y=(0,D.kJ)(qe)?qe[qe.length-1]:qe}}catch(ln){m={error:ln}}finally{try{te&&!te.done&&(b=Q.return)&&b.call(Q)}finally{if(m)throw m.error}}}}catch(ln){c={error:ln}}finally{try{W&&!W.done&&(v=H.return)&&v.call(H)}finally{if(c)throw c.error}}var nt=t.shared;if(nt===!1&&B.length>1){var ht=B[0],Jt=Math.abs(f.y-ht[0].y);try{for(var Er=(0,U.XA)(B),Or=Er.next();!Or.done;Or=Er.next()){var Rr=Or.value,tn=Math.abs(f.y-Rr[0].y);tn<=Jt&&(ht=Rr,Jt=tn)}}catch(ln){M={error:ln}}finally{try{Or&&!Or.done&&(A=Er.return)&&A.call(Er)}finally{if(M)throw M.error}}B=[ht]}return(0,D.jj)((0,D.xH)(B))}return[]}var ny=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.show=function(t){var c=this.context.view,v=this.context.event,m=c.getController("tooltip").getTooltipCfg(),b=JE(c,{x:v.x,y:v.y},m);if(!(0,D.Xy)(b,this.items)&&(this.items=b,b.length)){var M=c.getXScale().field,A=b[0].data[M],B=[],H=c.geometries;if((0,D.S6)(H,function(Lc){if(Lc.type==="interval"||Lc.type==="schema"){var Po=Lc.getElementsBy(function(sf){var pv=sf.getData();return pv[M]===A});B=B.concat(Po)}}),B.length){var W=c.getCoordinate(),Y=B[0].shape.getCanvasBBox(),Q=B[0].shape.getCanvasBBox(),te=Y;(0,D.S6)(B,function(Lc){var Po=Lc.shape.getCanvasBBox();W.isTransposed?(Po.minYQ.maxY&&(Q=Po)):(Po.minXQ.maxX&&(Q=Po)),te.x=Math.min(Po.minX,te.minX),te.y=Math.min(Po.minY,te.minY),te.width=Math.max(Po.maxX,te.maxX)-te.x,te.height=Math.max(Po.maxY,te.maxY)-te.y});var he=c.backgroundGroup,Ee=c.coordinateBBox,Fe=void 0;if(W.isRect){var qe=c.getXScale(),nt=t||{},ht=nt.appendRatio,Jt=nt.appendWidth;(0,D.UM)(Jt)&&(ht=(0,D.UM)(ht)?qe.isLinear?0:.25:ht,Jt=W.isTransposed?ht*Q.height:ht*Y.width);var Er=void 0,Or=void 0,Rr=void 0,tn=void 0;W.isTransposed?(Er=Ee.minX,Or=Math.min(Q.minY,Y.minY)-Jt,Rr=Ee.width,tn=te.height+Jt*2):(Er=Math.min(Y.minX,Q.minX)-Jt,Or=Ee.minY,Rr=te.width+Jt*2,tn=Ee.height),Fe=[["M",Er,Or],["L",Er+Rr,Or],["L",Er+Rr,Or+tn],["L",Er,Or+tn],["Z"]]}else{var ln=(0,D.YM)(B),Zn=(0,D.Z$)(B),ei=Yc(ln.getModel(),W).startAngle,Yi=Yc(Zn.getModel(),W).endAngle,Ea=W.getCenter(),io=W.getRadius(),Iu=W.innerRadius*io;Fe=yf(Ea.x,Ea.y,io,ei,Yi,Iu)}if(this.regionPath)this.regionPath.attr("path",Fe),this.regionPath.show();else{var ds=(0,D.U2)(t,"style",ry);this.regionPath=he.addShape({type:"path",name:"active-region",capture:!1,attrs:(0,U.pi)((0,U.pi)({},ds),{path:Fe})})}}}},f.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},f.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),h.prototype.destroy.call(this)},f}(mo),_2=ny,aT=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.timeStamp=0,t}return f.prototype.show=function(){var t=this.context,c=t.event,v=t.view,m=v.isTooltipLocked();if(!m){var b=this.timeStamp,M=+new Date,A=(0,D.U2)(t.view.getOptions(),"tooltip.showDelay",16);if(M-b>A){var B=this.location,H={x:c.x,y:c.y};(!B||!(0,D.Xy)(B,H))&&this.showTooltip(v,H),this.timeStamp=M,this.location=H}}},f.prototype.hide=function(){var t=this.context.view,c=t.getController("tooltip"),v=this.context.event,m=v.clientX,b=v.clientY;c.isCursorEntered({x:m,y:b})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},f.prototype.showTooltip=function(t,c){t.showTooltip(c)},f.prototype.hideTooltip=function(t){t.hideTooltip()},f}(mo),Ip=aT,S1=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.showTooltip=function(t,c){var v=wf(t);(0,D.S6)(v,function(m){var b=Tb(t,m,c);m.showTooltip(b)})},f.prototype.hideTooltip=function(t){var c=wf(t);(0,D.S6)(c,function(v){v.hideTooltip()})},f}(Ip),oT=S1,eM=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.timeStamp=0,t}return f.prototype.destroy=function(){h.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},f.prototype.show=function(){var t=this.context,c=t.event,v=this.timeStamp,m=+new Date;if(m-v>16){var b=this.location,M={x:c.x,y:c.y};(!b||!(0,D.Xy)(b,M))&&this.showTooltip(M),this.timeStamp=m,this.location=M}},f.prototype.hide=function(){this.hideTooltip(),this.location=null},f.prototype.showTooltip=function(t){var c=this.context,v=c.event,m=v.target;if(m&&m.get("tip")){if(!this.tooltip)this.renderTooltip();else{var b=c.view,M=b.canvas,A={start:{x:0,y:0},end:{x:M.get("width"),y:M.get("height")}};this.tooltip.set("region",A)}var B=m.get("tip");this.tooltip.update((0,U.pi)({title:B},t)),this.tooltip.show()}},f.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},f.prototype.renderTooltip=function(){var t,c=this.context.view,v=c.canvas,m={start:{x:0,y:0},end:{x:v.get("width"),y:v.get("height")}},b=c.getTheme(),M=(0,D.U2)(b,["components","tooltip","domStyles"],{}),A=new sg({parent:v.get("el").parentNode,region:m,visible:!1,crosshairs:null,domStyles:(0,U.pi)({},(0,D.b$)({},M,(t={},t[ih]={"max-width":"50%"},t[Qh]={"word-break":"break-all"},t)))});A.init(),A.setCapture(!1),this.tooltip=A},f}(mo),E2=eM,lT=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.stateName="",t}return f.prototype.hasState=function(t){return t.hasState(this.stateName)},f.prototype.setElementState=function(t,c){t.setState(this.stateName,c)},f.prototype.setState=function(){this.setStateEnable(!0)},f.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},f.prototype.clearViewState=function(t){var c=this,v=Nl(t,this.stateName);(0,D.S6)(v,function(m){c.setElementState(m,!1)})},f}(mo),e0=lT;function iy(h){return(0,D.U2)(h.get("delegateObject"),"item")}var Kw=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.ignoreListItemStates=["unchecked"],t}return f.prototype.isItemIgnore=function(t,c){var v=this.ignoreListItemStates,m=v.filter(function(b){return c.hasState(t,b)});return!!m.length},f.prototype.setStateByComponent=function(t,c,v){var m=this.context.view,b=t.get("field"),M=Go(m);this.setElementsStateByItem(M,b,c,v)},f.prototype.setStateByElement=function(t,c){this.setElementState(t,c)},f.prototype.isMathItem=function(t,c,v){var m=this.context.view,b=op(m,c),M=bf(t,c);return!(0,D.UM)(M)&&v.name===b.getText(M)},f.prototype.setElementsStateByItem=function(t,c,v,m){var b=this;(0,D.S6)(t,function(M){b.isMathItem(M,c,v)&&M.setState(b.stateName,m)})},f.prototype.setStateEnable=function(t){var c=nn(this.context);if(c)$u(this.context)&&this.setStateByElement(c,t);else{var v=hh(this.context);if(cg(v)){var m=v.item,b=v.component;if(m&&b&&!this.isItemIgnore(m,b)){var M=this.context.event.gEvent;if(M&&M.fromShape&&M.toShape&&iy(M.fromShape)===iy(M.toShape))return;this.setStateByComponent(b,m,t)}}}},f.prototype.toggle=function(){var t=nn(this.context);if(t){var c=t.hasState(this.stateName);this.setElementState(t,!c)}},f.prototype.reset=function(){this.setStateEnable(!1)},f}(e0),t0=Kw,fv=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.stateName="active",t}return f.prototype.active=function(){this.setState()},f}(t0),_1=fv,tM=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.cache={},t}return f.prototype.getColorScale=function(t,c){var v=c.geometry.getAttribute("color");if(!v)return null;var m=t.getScaleByField(v.getFields()[0]);return m},f.prototype.getLinkPath=function(t,c){var v=this.context.view,m=v.getCoordinate().isTransposed,b=t.shape.getCanvasBBox(),M=c.shape.getCanvasBBox(),A=m?[["M",b.minX,b.minY],["L",M.minX,M.maxY],["L",M.maxX,M.maxY],["L",b.maxX,b.minY],["Z"]]:[["M",b.maxX,b.minY],["L",M.minX,M.minY],["L",M.minX,M.maxY],["L",b.maxX,b.maxY],["Z"]];return A},f.prototype.addLinkShape=function(t,c,v,m){var b={opacity:.4,fill:c.shape.attr("fill")};t.addShape({type:"path",attrs:(0,U.pi)((0,U.pi)({},(0,D.b$)({},b,(0,D.mf)(m)?m(b,c):m)),{path:this.getLinkPath(c,v)})})},f.prototype.linkByElement=function(t,c){var v=this,m=this.context.view,b=this.getColorScale(m,t);if(b){var M=bf(t,b.field);if(!this.cache[M]){var A=Mb(m,b.field,M),B=this.linkGroup,H=B.addGroup();this.cache[M]=H;var W=A.length;(0,D.S6)(A,function(Y,Q){if(Q=0},c)},f}(Qw),nx=iM,da=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.stateName="active",t}return f.prototype.highlight=function(){this.setState()},f.prototype.setElementState=function(t,c){var v=this.context.view,m=Go(v);ly(m,function(b){return t===b},c)},f.prototype.clear=function(){var t=this.context.view;M1(t)},f}(ex),A2=da,I2=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.stateName="selected",t}return f.prototype.selected=function(){this.setState()},f}(Qw),R2=I2,S=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.stateName="selected",t}return f.prototype.selected=function(){this.setState()},f}(t0),T=S,L=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.stateName="selected",t}return f.prototype.selected=function(){this.setState()},f}(ex),G=L,Z=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.stateName="",t.ignoreItemStates=[],t}return f.prototype.getTriggerListInfo=function(){var t=hh(this.context),c=null;return cg(t)&&(c={item:t.item,list:t.component}),c},f.prototype.getAllowComponents=function(){var t=this,c=this.context.view,v=yo(c),m=[];return(0,D.S6)(v,function(b){b.isList()&&t.allowSetStateByElement(b)&&m.push(b)}),m},f.prototype.hasState=function(t,c){return t.hasState(c,this.stateName)},f.prototype.clearAllComponentsState=function(){var t=this,c=this.getAllowComponents();(0,D.S6)(c,function(v){v.clearItemsState(t.stateName)})},f.prototype.allowSetStateByElement=function(t){var c=t.get("field");if(!c)return!1;if(this.cfg&&this.cfg.componentNames){var v=t.get("name");if(this.cfg.componentNames.indexOf(v)===-1)return!1}var m=this.context.view,b=op(m,c);return b&&b.isCategory},f.prototype.allowSetStateByItem=function(t,c){var v=this.ignoreItemStates;if(v.length){var m=v.filter(function(b){return c.hasState(t,b)});return m.length===0}return!0},f.prototype.setStateByElement=function(t,c,v){var m=t.get("field"),b=this.context.view,M=op(b,m),A=bf(c,m),B=M.getText(A);this.setItemsState(t,B,v)},f.prototype.setStateEnable=function(t){var c=this,v=nn(this.context);if(v){var m=this.getAllowComponents();(0,D.S6)(m,function(B){c.setStateByElement(B,v,t)})}else{var b=hh(this.context);if(cg(b)){var M=b.item,A=b.component;this.allowSetStateByElement(A)&&this.allowSetStateByItem(M,A)&&this.setItemState(A,M,t)}}},f.prototype.setItemsState=function(t,c,v){var m=this,b=t.getItems();(0,D.S6)(b,function(M){M.name===c&&m.setItemState(t,M,v)})},f.prototype.setItemState=function(t,c,v){t.setItemState(c,this.stateName,v)},f.prototype.setState=function(){this.setStateEnable(!0)},f.prototype.reset=function(){this.setStateEnable(!1)},f.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var c=t.list,v=t.item,m=this.hasState(c,v);this.setItemState(c,v,!m)}},f.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},f}(mo),K=Z,ne=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.stateName="active",t}return f.prototype.active=function(){this.setState()},f}(K),ae=ne,me="inactive",Le="active";function Ge(h){var f=h.getItems();(0,D.S6)(f,function(t){h.hasState(t,Le)&&h.setItemState(t,Le,!1),h.hasState(t,me)&&h.setItemState(t,me,!1)})}var Pe="inactive",Ne="active",at=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.stateName=Ne,t.ignoreItemStates=["unchecked"],t}return f.prototype.setItemsState=function(t,c,v){this.setHighlightBy(t,function(m){return m.name===c},v)},f.prototype.setItemState=function(t,c,v){var m=t.getItems();this.setHighlightBy(t,function(b){return b===c},v)},f.prototype.setHighlightBy=function(t,c,v){var m=t.getItems();if(v)(0,D.S6)(m,function(A){c(A)?(t.hasState(A,Pe)&&t.setItemState(A,Pe,!1),t.setItemState(A,Ne,!0)):t.hasState(A,Ne)||t.setItemState(A,Pe,!0)});else{var b=t.getItemsByState(Ne),M=!0;(0,D.S6)(b,function(A){if(!c(A))return M=!1,!1}),M?this.clear():(0,D.S6)(m,function(A){c(A)&&(t.hasState(A,Ne)&&t.setItemState(A,Ne,!1),t.setItemState(A,Pe,!0))})}},f.prototype.highlight=function(){this.setState()},f.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)Ge(t.list);else{var c=this.getAllowComponents();(0,D.S6)(c,function(v){v.clearItemsState(Ne),v.clearItemsState(Pe)})}},f}(K),kt=at,Cr=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.stateName="selected",t}return f.prototype.selected=function(){this.setState()},f}(K),wr=Cr,Ar=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.stateName="unchecked",t}return f.prototype.unchecked=function(){this.setState()},f}(K),Fr=Ar,dn="unchecked",zr="checked",Yn=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.stateName=zr,t}return f.prototype.setItemState=function(t,c,v){this.setCheckedBy(t,function(m){return m===c},v)},f.prototype.setCheckedBy=function(t,c,v){var m=t.getItems();v&&(0,D.S6)(m,function(b){c(b)?(t.hasState(b,dn)&&t.setItemState(b,dn,!1),t.setItemState(b,zr,!0)):t.hasState(b,zr)||t.setItemState(b,dn,!0)})},f.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var c=t.list,v=t.item,m=!(0,D.G)(c.getItems(),function(b){return c.hasState(b,dn)});m||c.hasState(v,dn)?this.setItemState(c,v,!0):this.reset()}},f.prototype.checked=function(){this.setState()},f.prototype.reset=function(){var t=this.getAllowComponents();(0,D.S6)(t,function(c){c.clearItemsState(zr),c.clearItemsState(dn)})},f}(K),Cn=Yn,Hn="unchecked",Jn=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.toggle=function(){var t,c,v,m,b,M,A,B,H=this.getTriggerListInfo();if(H!=null&&H.item){var W=H.list,Y=H.item,Q=W.getItems(),te=Q.filter(function(ln){return!W.hasState(ln,Hn)}),he=Q.filter(function(ln){return W.hasState(ln,Hn)}),Ee=te[0];if(Q.length===te.length)try{for(var Fe=(0,U.XA)(Q),qe=Fe.next();!qe.done;qe=Fe.next()){var nt=qe.value;W.setItemState(nt,Hn,nt.id!==Y.id)}}catch(ln){t={error:ln}}finally{try{qe&&!qe.done&&(c=Fe.return)&&c.call(Fe)}finally{if(t)throw t.error}}else if(Q.length-he.length===1)if(Ee.id===Y.id)try{for(var ht=(0,U.XA)(Q),Jt=ht.next();!Jt.done;Jt=ht.next()){var nt=Jt.value;W.setItemState(nt,Hn,!1)}}catch(ln){v={error:ln}}finally{try{Jt&&!Jt.done&&(m=ht.return)&&m.call(ht)}finally{if(v)throw v.error}}else try{for(var Er=(0,U.XA)(Q),Or=Er.next();!Or.done;Or=Er.next()){var nt=Or.value;W.setItemState(nt,Hn,nt.id!==Y.id)}}catch(ln){b={error:ln}}finally{try{Or&&!Or.done&&(M=Er.return)&&M.call(Er)}finally{if(b)throw b.error}}else try{for(var Rr=(0,U.XA)(Q),tn=Rr.next();!tn.done;tn=Rr.next()){var nt=tn.value;W.setItemState(nt,Hn,nt.id!==Y.id)}}catch(ln){A={error:ln}}finally{try{tn&&!tn.done&&(B=Rr.return)&&B.call(Rr)}finally{if(A)throw A.error}}}},f}(K),Pi=Jn,Da="showRadio",Aa="legend-radio-tip",il=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.timeStamp=0,t}return f.prototype.show=function(){var t=this.getTriggerListInfo();if(t!=null&&t.item){var c=t.list,v=t.item;c.setItemState(v,Da,!0)}},f.prototype.hide=function(){var t=this.getTriggerListInfo();if(t!=null&&t.item){var c=t.list,v=t.item;c.setItemState(v,Da,!1)}},f.prototype.destroy=function(){h.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},f.prototype.showTip=function(){var t=this.context,c=t.event,v=this.timeStamp,m=+new Date,b=this.context.event.target;if(m-v>16&&b.get("name")==="legend-item-radio"){var M=this.location,A={x:c.x,y:c.y};this.timeStamp=m,this.location=A,(!M||!(0,D.Xy)(M,A))&&this.showTooltip(A)}},f.prototype.hideTip=function(){this.hideTooltip(),this.location=null},f.prototype.showTooltip=function(t){var c=this.context,v=c.event,m=v.target;if(m&&m.get("tip")){this.tooltip||this.renderTooltip();var b=c.view.getCanvas().get("el").getBoundingClientRect(),M=b.x,A=b.y;this.tooltip.update((0,U.pi)((0,U.pi)({title:m.get("tip")},t),{x:t.x+M,y:t.y+A})),this.tooltip.show()}},f.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},f.prototype.renderTooltip=function(){var t,c=(t={},t[ih]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[Qh]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(Aa)&&document.body.removeChild(document.getElementById(Aa));var v=new sg({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:c,containerId:Aa});v.init(),v.setCapture(!1),this.tooltip=v},f}(K),as=il,Yo=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.maskShape=null,t.points=[],t.starting=!1,t.moving=!1,t.preMovePoint=null,t.shapeType="path",t}return f.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},f.prototype.emitEvent=function(t){var c="mask:".concat(t),v=this.context.view,m=this.context.event;v.emit(c,{target:this.maskShape,shape:this.maskShape,points:this.points,x:m.x,y:m.y})},f.prototype.createMask=function(){var t=this.context.view,c=this.getMaskAttrs(),v=t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,U.pi)({fill:"#C5D4EB",opacity:.3},c)});return v},f.prototype.getMaskPath=function(){return[]},f.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},f.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(t==null?void 0:t.maskStyle),this.emitEvent("start")},f.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},f.prototype.move=function(){if(!(!this.moving||!this.maskShape)){var t=this.getCurrentPoint(),c=this.preMovePoint,v=t.x-c.x,m=t.y-c.y,b=this.points;(0,D.S6)(b,function(M){M.x+=v,M.y+=m}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},f.prototype.updateMask=function(t){var c=(0,D.b$)({},this.getMaskAttrs(),t);this.maskShape.attr(c)},f.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},f.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},f.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},f.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},f.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,h.prototype.destroy.call(this)},f}(mo),Al=Yo;function hs(h){var f=(0,D.Z$)(h),t=0,c=0,v=0;if(h.length){var m=h[0];t=Ts(m,f)/2,c=(f.x+m.x)/2,v=(f.y+m.y)/2}return{x:c,y:v,r:t}}var Ac=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.shapeType="circle",t}return f.prototype.getMaskAttrs=function(){return hs(this.points)},f}(Al),lf=Ac;function Mo(h){return{start:(0,D.YM)(h),end:(0,D.Z$)(h)}}function cu(h,f){var t=Math.min(h.x,f.x),c=Math.min(h.y,f.y),v=Math.abs(f.x-h.x),m=Math.abs(f.y-h.y);return{x:t,y:c,width:v,height:m}}var Oh=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.shapeType="rect",t}return f.prototype.getRegion=function(){return Mo(this.points)},f.prototype.getMaskAttrs=function(){var t=this.getRegion(),c=t.start,v=t.end;return cu(c,v)},f}(Al),fu=Oh;function Ff(h){h.x=(0,D.uZ)(h.x,0,1),h.y=(0,D.uZ)(h.y,0,1)}function hv(h,f,t,c){var v=null,m=null,b=c.invert((0,D.YM)(h)),M=c.invert((0,D.Z$)(h));return t&&(Ff(b),Ff(M)),f==="x"?(v=c.convert({x:b.x,y:0}),m=c.convert({x:M.x,y:1})):(v=c.convert({x:0,y:b.y}),m=c.convert({x:1,y:M.y})),{start:v,end:m}}var Nf=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return f.prototype.getRegion=function(){var t=this.context.view.getCoordinate();return hv(this.points,this.dim,this.inPlot,t)},f}(fu),dv=Nf;function vv(h){var f=[];return h.length&&((0,D.S6)(h,function(t,c){c===0?f.push(["M",t.x,t.y]):f.push(["L",t.x,t.y])}),f.push(["L",h[0].x,h[0].y])),f}function fa(h){return{path:vv(h)}}var $a=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getMaskPath=function(){return vv(this.points)},f.prototype.getMaskAttrs=function(){return fa(this.points)},f.prototype.addPoint=function(){this.resize()},f}(Al),ro=$a;function Yl(h){return Vc(h,!0)}function oc(h){return{path:Yl(h)}}var lc=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getMaskPath=function(){return Yl(this.points)},f.prototype.getMaskAttrs=function(){return oc(this.points)},f}(ro),Ic=lc,Rc=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.maskShapes=[],t.starting=!1,t.moving=!1,t.recordPoints=null,t.preMovePoint=null,t.shapeType="path",t.maskType="multi-mask",t}return f.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},f.prototype.emitEvent=function(t){var c="".concat(this.maskType,":").concat(t),v=this.context.view,m=this.context.event,b={type:this.shapeType,name:this.maskType,get:function(M){return b.hasOwnProperty(M)?b[M]:void 0}};v.emit(c,{target:b,maskShapes:this.maskShapes,multiPoints:this.recordPoints,x:m.x,y:m.y})},f.prototype.createMask=function(t){var c=this.context.view,v=this.recordPoints[t],m=this.getMaskAttrs(v),b=c.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,U.pi)({fill:"#C5D4EB",opacity:.3},m)});this.maskShapes.push(b)},f.prototype.getMaskPath=function(t){return[]},f.prototype.show=function(){this.maskShapes.length>0&&(this.maskShapes.forEach(function(t){return t.show()}),this.emitEvent("show"))},f.prototype.start=function(t){this.recordPointStart(),this.starting=!0,this.moving=!1;var c=this.recordPoints.length-1;this.createMask(c),this.updateShapesCapture(!1),this.updateMask(t==null?void 0:t.maskStyle),this.emitEvent("start")},f.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint(),this.updateShapesCapture(!1)},f.prototype.move=function(){if(!(!this.moving||this.maskShapes.length===0)){var t=this.getCurrentPoint(),c=this.preMovePoint,v=t.x-c.x,m=t.y-c.y,b=this.getCurMaskShapeIndex();b>-1&&(this.recordPoints[b].forEach(function(M){M.x+=v,M.y+=m}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t)}},f.prototype.updateMask=function(t){var c=this;this.recordPoints.forEach(function(v,m){var b=(0,D.b$)({},c.getMaskAttrs(v),t);c.maskShapes[m].attr(b)})},f.prototype.resize=function(){this.starting&&this.maskShapes.length>0&&(this.recordPointContinue(),this.updateMask(),this.emitEvent("change"))},f.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null,this.updateShapesCapture(!0)},f.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.updateShapesCapture(!0)},f.prototype.hide=function(){this.maskShapes.length>0&&(this.maskShapes.forEach(function(t){return t.hide()}),this.emitEvent("hide"))},f.prototype.remove=function(){var t=this.getCurMaskShapeIndex();t>-1&&(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.updateShapesCapture(!0),this.emitEvent("change"))},f.prototype.clearAll=function(){this.recordPointClear(),this.maskShapes.forEach(function(t){return t.remove()}),this.maskShapes=[],this.preMovePoint=null},f.prototype.clear=function(){var t=this.getCurMaskShapeIndex();t===-1?(this.recordPointClear(),this.maskShapes.forEach(function(c){return c.remove()}),this.maskShapes=[],this.emitEvent("clearAll")):(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.emitEvent("clearSingle")),this.preMovePoint=null},f.prototype.destroy=function(){this.clear(),h.prototype.destroy.call(this)},f.prototype.getRecordPoints=function(){var t;return(0,U.ev)([],(0,U.CR)((t=this.recordPoints)!==null&&t!==void 0?t:[]),!1)},f.prototype.recordPointStart=function(){var t=this.getRecordPoints(),c=this.getCurrentPoint();this.recordPoints=(0,U.ev)((0,U.ev)([],(0,U.CR)(t),!1),[[c]],!1)},f.prototype.recordPointContinue=function(){var t=this.getRecordPoints(),c=this.getCurrentPoint(),v=t.splice(-1,1)[0]||[];v.push(c),this.recordPoints=(0,U.ev)((0,U.ev)([],(0,U.CR)(t),!1),[v],!1)},f.prototype.recordPointClear=function(){this.recordPoints=[]},f.prototype.updateShapesCapture=function(t){this.maskShapes.forEach(function(c){return c.set("capture",t)})},f.prototype.getCurMaskShapeIndex=function(){var t=this.getCurrentPoint();return this.maskShapes.findIndex(function(c){var v=c.attrs,m=v.width,b=v.height,M=v.r,A=m===0||b===0||M===0;return!A&&c.isHit(t.x,t.y)})},f}(mo),Dc=Rc,Rp=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.shapeType="rect",t}return f.prototype.getRegion=function(t){return Mo(t)},f.prototype.getMaskAttrs=function(t){var c=this.getRegion(t),v=c.start,m=c.end;return cu(v,m)},f}(Dc),D2=Rp,Dp=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return f.prototype.getRegion=function(t){var c=this.context.view.getCoordinate();return hv(t,this.dim,this.inPlot,c)},f}(D2),no=Dp,KT=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.shapeType="circle",t.getMaskAttrs=hs,t}return f}(Dc),qT=KT,QT=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.getMaskPath=vv,t.getMaskAttrs=fa,t}return f.prototype.addPoint=function(){this.resize()},f}(Dc),Ah=QT,aM=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.getMaskPath=Yl,t.getMaskAttrs=oc,t}return f}(Ah),L2=aM,P2=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.setCursor=function(t){var c=this.context.view;c.getCanvas().setCursor(t)},f.prototype.default=function(){this.setCursor("default")},f.prototype.pointer=function(){this.setCursor("pointer")},f.prototype.move=function(){this.setCursor("move")},f.prototype.crosshair=function(){this.setCursor("crosshair")},f.prototype.wait=function(){this.setCursor("wait")},f.prototype.help=function(){this.setCursor("help")},f.prototype.text=function(){this.setCursor("text")},f.prototype.eResize=function(){this.setCursor("e-resize")},f.prototype.wResize=function(){this.setCursor("w-resize")},f.prototype.nResize=function(){this.setCursor("n-resize")},f.prototype.sResize=function(){this.setCursor("s-resize")},f.prototype.neResize=function(){this.setCursor("ne-resize")},f.prototype.nwResize=function(){this.setCursor("nw-resize")},f.prototype.seResize=function(){this.setCursor("se-resize")},f.prototype.swResize=function(){this.setCursor("sw-resize")},f.prototype.nsResize=function(){this.setCursor("ns-resize")},f.prototype.ewResize=function(){this.setCursor("ew-resize")},f.prototype.zoomIn=function(){this.setCursor("zoom-in")},f.prototype.zoomOut=function(){this.setCursor("zoom-out")},f}(mo),uT=P2,B2=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.filterView=function(t,c,v){var m=this;t.getScaleByField(c)&&t.filter(c,v),t.views&&t.views.length&&(0,D.S6)(t.views,function(b){m.filterView(b,c,v)})},f.prototype.filter=function(){var t=hh(this.context);if(t){var c=this.context.view,v=t.component,m=v.get("field");if(cg(t)){if(m){var b=v.getItemsByState("unchecked"),M=op(c,m),A=b.map(function(Q){return Q.name});A.length?this.filterView(c,m,function(Q){var te=M.getText(Q);return!A.includes(te)}):this.filterView(c,m,null),c.render(!0)}}else if(Sb(t)){var B=v.getValue(),H=(0,U.CR)(B,2),W=H[0],Y=H[1];this.filterView(c,m,function(Q){return Q>=W&&Q<=Y}),c.render(!0)}}},f}(mo),JT=B2;function oM(h,f,t,c){var v=Math.min(t[f],c[f]),m=Math.max(t[f],c[f]),b=(0,U.CR)(h.range,2),M=b[0],A=b[1];if(vA&&(m=A),v===A&&m===A)return null;var B=h.invert(v),H=h.invert(m);if(h.isCategory){var W=h.values.indexOf(B),Y=h.values.indexOf(H),Q=h.values.slice(W,Y+1);return function(te){return Q.includes(te)}}else return function(te){return te>=B&&te<=H}}var jl;(function(h){h.FILTER="brush-filter-processing",h.RESET="brush-filter-reset",h.BEFORE_FILTER="brush-filter:beforefilter",h.AFTER_FILTER="brush-filter:afterfilter",h.BEFORE_RESET="brush-filter:beforereset",h.AFTER_RESET="brush-filter:afterreset"})(jl||(jl={}));var Qi=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.dims=["x","y"],t.startPoint=null,t.isStarted=!1,t}return f.prototype.hasDim=function(t){return this.dims.includes(t)},f.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},f.prototype.filter=function(){var t,c;if(ul(this.context)){var v=this.context.event.target,m=v.getCanvasBBox();t={x:m.x,y:m.y},c={x:m.maxX,y:m.maxY}}else{if(!this.isStarted)return;t=this.startPoint,c=this.context.getCurrentPoint()}if(!(Math.abs(t.x-c.x)<5||Math.abs(t.x-c.y)<5)){var b=this.context,M=b.view,A=b.event,B={view:M,event:A,dims:this.dims};M.emit(jl.BEFORE_FILTER,Os.fromData(M,jl.BEFORE_FILTER,B));var H=M.getCoordinate(),W=H.invert(c),Y=H.invert(t);if(this.hasDim("x")){var Q=M.getXScale(),te=oM(Q,"x",W,Y);this.filterView(M,Q.field,te)}if(this.hasDim("y")){var he=M.getYScales()[0],te=oM(he,"y",W,Y);this.filterView(M,he.field,te)}this.reRender(M,{source:jl.FILTER}),M.emit(jl.AFTER_FILTER,Os.fromData(M,jl.AFTER_FILTER,B))}},f.prototype.end=function(){this.isStarted=!1},f.prototype.reset=function(){var t=this.context.view;if(t.emit(jl.BEFORE_RESET,Os.fromData(t,jl.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var c=t.getXScale();this.filterView(t,c.field,null)}if(this.hasDim("y")){var v=t.getYScales()[0];this.filterView(t,v.field,null)}this.reRender(t,{source:jl.RESET}),t.emit(jl.AFTER_RESET,Os.fromData(t,jl.AFTER_RESET,{}))},f.prototype.filterView=function(t,c,v){t.filter(c,v)},f.prototype.reRender=function(t,c){t.render(!0,c)},f}(mo),k2=Qi,ix=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.filterView=function(t,c,v){var m=wf(t);(0,D.S6)(m,function(b){b.filter(c,v)})},f.prototype.reRender=function(t){var c=wf(t);(0,D.S6)(c,function(v){v.render(!0)})},f}(k2),uy=ix,sc=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.filter=function(){var t=hh(this.context),c=this.context.view,v=Go(c);if(ul(this.context)){var m=cs(this.context,10);m&&(0,D.S6)(v,function(he){m.includes(he)?he.show():he.hide()})}else if(t){var b=t.component,M=b.get("field");if(cg(t)){if(M){var A=b.getItemsByState("unchecked"),B=op(c,M),H=A.map(function(he){return he.name});(0,D.S6)(v,function(he){var Ee=bf(he,M),Fe=B.getText(Ee);H.indexOf(Fe)>=0?he.hide():he.show()})}}else if(Sb(t)){var W=b.getValue(),Y=(0,U.CR)(W,2),Q=Y[0],te=Y[1];(0,D.S6)(v,function(he){var Ee=bf(he,M);Ee>=Q&&Ee<=te?he.show():he.hide()})}}},f.prototype.clear=function(){var t=Go(this.context.view);(0,D.S6)(t,function(c){c.show()})},f.prototype.reset=function(){this.clear()},f}(mo),eO=sc,cT=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.byRecord=!1,t}return f.prototype.filter=function(){ul(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},f.prototype.filterByRecord=function(){var t=this.context.view,c=cs(this.context,10);if(c){var v=t.getXScale().field,m=t.getYScales()[0].field,b=c.map(function(A){return A.getModel().data}),M=wf(t);(0,D.S6)(M,function(A){var B=Go(A);(0,D.S6)(B,function(H){var W=H.getModel().data;ki(b,W,v,m)?H.show():H.hide()})})}},f.prototype.filterByBBox=function(){var t=this,c=this.context.view,v=wf(c);(0,D.S6)(v,function(m){var b=_b(t.context,m,10),M=Go(m);b&&(0,D.S6)(M,function(A){b.includes(A)?A.show():A.hide()})})},f.prototype.reset=function(){var t=wf(this.context.view);(0,D.S6)(t,function(c){var v=Go(c);(0,D.S6)(v,function(m){m.show()})})},f}(mo),F2=cT,fT=10,tO=5,rO=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.buttonGroup=null,t.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},t}return f.prototype.getButtonCfg=function(){return(0,D.b$)(this.buttonCfg,this.cfg)},f.prototype.drawButton=function(){var t=this.getButtonCfg(),c=this.context.view.foregroundGroup.addGroup({name:t.name}),v=c.addShape({type:"text",name:"button-text",attrs:(0,U.pi)({text:t.text},t.textStyle)}),m=v.getBBox(),b=Ui(t.padding),M=c.addShape({type:"rect",name:"button-rect",attrs:(0,U.pi)({x:m.x-b[3],y:m.y-b[0],width:m.width+b[1]+b[3],height:m.height+b[0]+b[2]},t.style)});M.toBack(),c.on("mouseenter",function(){M.attr(t.activeStyle)}),c.on("mouseleave",function(){M.attr(t.style)}),this.buttonGroup=c},f.prototype.resetPosition=function(){var t=this.context.view,c=t.getCoordinate(),v=c.convert({x:1,y:1}),m=this.buttonGroup,b=m.getBBox(),M=La.vs(null,[["t",v.x-b.width-fT,v.y+b.height+tO]]);m.setMatrix(M)},f.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},f.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},f.prototype.destroy=function(){var t=this.buttonGroup;t&&t.remove(),h.prototype.destroy.call(this)},f}(mo),nO=rO,hT=4,_a=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.starting=!1,t.dragStart=!1,t}return f.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},f.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),c=this.context.view,v=this.context.event;this.dragStart?c.emit("drag",{target:v.target,x:v.x,y:v.y}):Ts(t,this.startPoint)>hT&&(c.emit("dragstart",{target:v.target,x:v.x,y:v.y}),this.dragStart=!0)}},f.prototype.end=function(){if(this.dragStart){var t=this.context.view,c=this.context.event;t.emit("dragend",{target:c.target,x:c.x,y:c.y})}this.starting=!1,this.dragStart=!1},f}(mo),T1=_a,dT=5,iO=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.starting=!1,t.isMoving=!1,t.startPoint=null,t.startMatrix=null,t}return f.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},f.prototype.move=function(){if(this.starting){var t=this.startPoint,c=this.context.getCurrentPoint(),v=Ts(t,c);if(v>dT&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var m=this.context.view,b=La.vs(this.startMatrix,[["t",c.x-t.x,c.y-t.y]]);m.backgroundGroup.setMatrix(b),m.foregroundGroup.setMatrix(b),m.middleGroup.setMatrix(b)}}},f.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},f.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},f}(mo),vT=iO,pT="x",lM="y",AA=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.dims=[pT,lM],t.cfgFields=["dims"],t.cacheScaleDefs={},t}return f.prototype.hasDim=function(t){return this.dims.includes(t)},f.prototype.getScale=function(t){var c=this.context.view;return t==="x"?c.getXScale():c.getYScales()[0]},f.prototype.resetDim=function(t){var c=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var v=this.getScale(t);c.scale(v.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},f.prototype.reset=function(){this.resetDim(pT),this.resetDim(lM);var t=this.context.view;t.render(!0)},f}(mo),N2=AA,sM=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.startPoint=null,t.starting=!1,t.startCache={},t}return f.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var c=this.dims;(0,D.S6)(c,function(v){var m=t.getScale(v),b=m.min,M=m.max,A=m.values;t.startCache[v]={min:b,max:M,values:A}})},f.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},f.prototype.translate=function(){var t=this;if(this.starting){var c=this.startPoint,v=this.context.view.getCoordinate(),m=this.context.getCurrentPoint(),b=v.invert(c),M=v.invert(m),A=M.x-b.x,B=M.y-b.y,H=this.context.view,W=this.dims;(0,D.S6)(W,function(Y){t.translateDim(Y,{x:A*-1,y:B*-1})}),H.render(!0)}},f.prototype.translateDim=function(t,c){if(this.hasDim(t)){var v=this.getScale(t);v.isLinear&&this.translateLinear(t,v,c)}},f.prototype.translateLinear=function(t,c,v){var m=this.context.view,b=this.startCache[t],M=b.min,A=b.max,B=A-M,H=v[t]*B;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:c.nice,min:M,max:A}),m.scale(c.field,{nice:!1,min:M+H,max:A+H})},f.prototype.reset=function(){h.prototype.reset.call(this),this.startPoint=null,this.starting=!1},f}(N2),ax=sM,aO=function(h){(0,U.ZT)(f,h);function f(){var t=h!==null&&h.apply(this,arguments)||this;return t.zoomRatio=.05,t}return f.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},f.prototype.zoom=function(t){var c=this,v=this.dims;(0,D.S6)(v,function(m){c.zoomDim(m,t)}),this.context.view.render(!0)},f.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},f.prototype.zoomDim=function(t,c){if(this.hasDim(t)){var v=this.getScale(t);v.isLinear&&this.zoomLinear(t,v,c)}},f.prototype.zoomLinear=function(t,c,v){var m=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:c.nice,min:c.min,max:c.max});var b=this.cacheScaleDefs[t],M=b.max-b.min,A=c.min,B=c.max,H=v*M,W=A-H,Y=B+H,Q=Y-W,te=Q/M;Y>W&&te<100&&te>.01&&m.scale(c.field,{nice:!1,min:A-H,max:B+H})},f}(N2),O1=aO;function gT(h){var f=h.gEvent.originalEvent;return f.deltaY>0}var oO=1,lO=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.scroll=function(t){var c=this.context,v=c.view,m=c.event;if(v.getOptions().scrollbar){var b=(t==null?void 0:t.wheelDelta)||oO,M=v.getController("scrollbar"),A=v.getXScale(),B=v.getOptions().data,H=(0,D.dp)((0,D.I)(B,A.field)),W=(0,D.dp)(A.values),Y=M.getValue(),Q=Math.floor((H-W)*Y),te=Q+(gT(m)?b:-b),he=b/(H-W)/1e4,Ee=(0,D.uZ)(te/(H-W)+he,0,1);M.setValue(Ee)}},f}(mo),H2=lO,mT="aixs-description-tooltip",sO=function(h){(0,U.ZT)(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.show=function(){var t=this.context,c=hh(t).axis,v=c.cfg.title,m=v.description,b=v.text,M=v.descriptionTooltipStyle,A=t.event,B=A.x,H=A.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:b||"",customContent:function(){return` +
    +
    + \u5B57\u6BB5\u8BF4\u660E\uFF1A`).concat(m,` +
    +
    + `)},x:B,y:H}),this.tooltip.show()},f.prototype.destroy=function(){h.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},f.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},f.prototype.renderTooltip=function(){var t,c=this.context.view,v=c.canvas,m={start:{x:0,y:0},end:{x:v.get("width"),y:v.get("height")}},b=new sg({parent:v.get("el").parentNode,region:m,visible:!1,containerId:mT,domStyles:(0,U.pi)({},(0,D.b$)({},(t={},t[ih]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[Qh]={"word-break":"break-all","margin-bottom":"3px"},t)))});b.init(),b.setCapture(!1),this.tooltip=b},f}(mo),yT=sO;$M("dark",sa(em)),jn("canvas",rr),jn("svg",Dt),Xc("Polygon",wE),Xc("Interval",Mw),Xc("Schema",xE),Xc("Path",NS),Xc("Point",Im),Xc("Line",Ow),Xc("Area",HS),Xc("Edge",xh),Xc("Heatmap",Sw),Xc("Violin",jS),vh("base",wc),vh("interval",km),vh("pie",c1),vh("polar",u1),ns("overlap",Op),ns("distribute",ME),ns("fixed-overlap",f1),ns("hide-overlap",a2),ns("limit-in-shape",md),ns("limit-in-canvas",TE),ns("limit-in-plot",d2),ns("pie-outer",Nm),ns("adjust-color",l2),ns("interval-adjust-position",RE),ns("interval-hide-overlap",u2),ns("point-adjust-position",PE),ns("pie-spider",$g),ns("path-adjust-position",kE),xa("fade-in",v2),xa("fade-out",m1),xa("grow-in-x",NE),xa("grow-in-xy",p2),xa("grow-in-y",Kg),xa("scale-in-x",m2),xa("scale-in-y",zE),xa("wave-in",Gw),xa("zoom-in",y2),xa("zoom-out",GE),xa("position-update",g2),xa("sector-path-update",WE),xa("path-in",HE),td("rect",ZE),td("mirror",rT),td("list",UE),td("matrix",jE),td("circle",$E),td("tree",qE),nd("axis",QE),nd("legend",jw),nd("tooltip",Zd),nd("annotation",Uo),nd("slider",S2),nd("scrollbar",iT),mi("tooltip",Ip),mi("sibling-tooltip",oT),mi("ellipsis-text",E2),mi("element-active",_1),mi("element-single-active",sT),mi("element-range-active",M2),mi("element-highlight",tx),mi("element-highlight-by-x",rx),mi("element-highlight-by-color",O2),mi("element-single-highlight",A2),mi("element-range-highlight",nx),mi("element-sibling-highlight",nx,{effectSiblings:!0,effectByRecord:!0}),mi("element-selected",T),mi("element-single-selected",G),mi("element-range-selected",R2),mi("element-link-by-color",rM),mi("active-region",_2),mi("list-active",ae),mi("list-selected",wr),mi("list-highlight",kt),mi("list-unchecked",Fr),mi("list-checked",Cn),mi("list-focus",Pi),mi("list-radio",as),mi("legend-item-highlight",kt,{componentNames:["legend"]}),mi("axis-label-highlight",kt,{componentNames:["axis"]}),mi("axis-description",yT),mi("rect-mask",fu),mi("x-rect-mask",dv,{dim:"x"}),mi("y-rect-mask",dv,{dim:"y"}),mi("circle-mask",lf),mi("path-mask",ro),mi("smooth-path-mask",Ic),mi("rect-multi-mask",D2),mi("x-rect-multi-mask",no,{dim:"x"}),mi("y-rect-multi-mask",no,{dim:"y"}),mi("circle-multi-mask",qT),mi("path-multi-mask",Ah),mi("smooth-path-multi-mask",L2),mi("cursor",uT),mi("data-filter",JT),mi("brush",k2),mi("brush-x",k2,{dims:["x"]}),mi("brush-y",k2,{dims:["y"]}),mi("sibling-filter",uy),mi("sibling-x-filter",uy,{dims:"x"}),mi("sibling-y-filter",uy,{dims:"y"}),mi("element-filter",eO),mi("element-sibling-filter",F2),mi("element-sibling-filter-record",F2,{byRecord:!0}),mi("view-drag",T1),mi("view-move",vT),mi("scale-translate",ax),mi("scale-zoom",O1),mi("reset-button",nO,{name:"reset-button",text:"reset"}),mi("mousewheel-scroll",H2);function Lp(h){return h.isInPlot()}Eo("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),Eo("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),Eo("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Eo("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Eo("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Eo("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Eo("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),Eo("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),Eo("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),Eo("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),Eo("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),Eo("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(h){return!h.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(h){return!h.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),Eo("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Lp,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Lp,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Lp,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),Eo("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),Eo("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Lp,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Lp,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Lp,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),Eo("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Lp,action:"path-mask:start"},{trigger:"mousedown",isEnable:Lp,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),Eo("brush-x-multi",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"mousedown",isEnable:Lp,action:["x-rect-multi-mask:start","x-rect-multi-mask:show"]},{trigger:"mask:dragstart",action:["x-rect-multi-mask:moveStart"]}],processing:[{trigger:"mousemove",isEnable:function(h){return!H0(h)},action:["x-rect-multi-mask:resize"]},{trigger:"multi-mask:change",action:"element-range-highlight:highlight"},{trigger:"mask:drag",action:["x-rect-multi-mask:move"]}],end:[{trigger:"mouseup",action:["x-rect-multi-mask:end"]},{trigger:"mask:dragend",action:["x-rect-multi-mask:moveEnd"]}],rollback:[{trigger:"dblclick",action:["x-rect-multi-mask:clear","cursor:crosshair"]},{trigger:"multi-mask:clearAll",action:["element-range-highlight:clear"]},{trigger:"multi-mask:clearSingle",action:["element-range-highlight:highlight"]}]}),Eo("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),Eo("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(h){return!h.isInShape("legend-item-radio")},action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),Eo("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),Eo("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),Eo("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","element-filter:filter"]}]}),Eo("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),Eo("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]});function ox(h){return h.gEvent.preventDefault(),h.gEvent.originalEvent.deltaY>0}Eo("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(h){return ox(h.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(h){return!ox(h.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),Eo("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),Eo("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]})},73432:function(ti,On,rt){"use strict";rt.d(On,{Dg:function(){return Rt},lh:function(){return fr},m$:function(){return lt},vs:function(){return ie},zu:function(){return oe}});var Ve=rt(91312),Ce=rt(29617);function lt(Ft,Dt,U){var D=[0,0,0,0,0,0,0,0,0];return Ve.vc(D,U),Ve.Jp(Ft,D,Dt)}function oe(Ft,Dt,U){var D=[0,0,0,0,0,0,0,0,0];return Ve.Us(D,U),Ve.Jp(Ft,D,Dt)}function fr(Ft,Dt,U){var D=[0,0,0,0,0,0,0,0,0];return Ve.xJ(D,U),Ve.Jp(Ft,D,Dt)}function re(Ft,Dt,U){return Ve.Jp(Ft,U,Dt)}function ie(Ft,Dt){for(var U=Ft?[].concat(Ft):[1,0,0,0,1,0,0,0,1],D=0,Pt=Dt.length;D=0;return U?Pt?Math.PI*2-D:D:Pt?D:Math.PI*2-D}function rr(Ft,Dt,U){return U?(Ft[0]=Dt[1],Ft[1]=-1*Dt[0]):(Ft[0]=-1*Dt[1],Ft[1]=Dt[0]),Ft}},84656:function(ti,On,rt){"use strict";rt.d(On,{e9:function(){return Rt},Wq:function(){return Jr},tr:function(){return ot},wb:function(){return ar},zx:function(){return pt}});var Ve=rt(47165),Ce=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/ig,lt=/[^\s\,]+/ig;function oe(tt){var de=tt||[];if((0,Ve.kJ)(de))return de;if((0,Ve.HD)(de))return de=de.match(Ce),(0,Ve.S6)(de,function(ve,ce){if(ve=ve.match(lt),ve[0].length>1){var we=ve[0].charAt(0);ve.splice(1,0,ve[0].substr(1)),ve[0]=we}(0,Ve.S6)(ve,function(xe,ke){isNaN(xe)||(ve[ke]=+xe)}),de[ce]=ve}),de}var fr=oe,re=rt(29617);function ie(tt,de,ve,ce){var we=[],xe=!!ce,ke,Te,st,xt,Ht,Yt,lr;if(xe){st=ce[0],xt=ce[1];for(var vr=0,Gr=tt.length;vr=0;st--)ke=xe[st].index,xe[st].type==="add"?tt.splice(ke,0,[].concat(tt[ke])):tt.splice(ke,1)}if(ce=tt.length,ce2&&(ve.push([we].concat(ke.splice(0,2))),Te="l",we=we==="m"?"l":"L"),Te==="o"&&ke.length===1&&ve.push([we,ke[0]]),Te==="r")ve.push([we].concat(ke));else for(;ke.length>=de[Te]&&(ve.push([we].concat(ke.splice(0,de[Te]))),!!de[Te]););return""}),ve}var Gt=/[a-z]/;function tr(tt,de){return[de[0]+(de[0]-tt[0]),de[1]+(de[1]-tt[1])]}function ar(tt){var de=ot(tt);if(!de||!de.length)return[["M",0,0]];for(var ve=!1,ce=0;ce=0){ve=!0;break}}if(!ve)return de;var xe=[],ke=0,Te=0,st=0,xt=0,Ht=0,Yt,lr,vr=de[0];(vr[0]==="M"||vr[0]==="m")&&(ke=+vr[1],Te=+vr[2],st=ke,xt=Te,Ht++,xe[0]=["M",ke,Te]);for(var ce=Ht,Gr=de.length;ce1&&(xe=1),xe<-1&&(xe=-1),we*Math.acos(xe)},Bt=function(tt,de,ve,ce,we,xe,ke,Te,st,xt,Ht,Yt){var lr=Math.pow(we,2),vr=Math.pow(xe,2),Gr=Math.pow(Ht,2),Zt=Math.pow(Yt,2),Nr=lr*vr-lr*Zt-vr*Gr;Nr<0&&(Nr=0),Nr/=lr*Zt+vr*Gr,Nr=Math.sqrt(Nr)*(ke===Te?-1:1);var en=Nr*we/xe*Yt,Sn=Nr*-xe/we*Ht,kn=xt*en-st*Sn+(tt+ve)/2,Sr=st*en+xt*Sn+(de+ce)/2,qn=(Ht-en)/we,An=(Yt-Sn)/xe,vi=(-Ht-en)/we,ba=(-Yt-Sn)/xe,Ai=It(1,0,qn,An),Za=It(qn,An,vi,ba);return Te===0&&Za>0&&(Za-=Tt),Te===1&&Za<0&&(Za+=Tt),[kn,Sr,Ai,Za]},Ir=function(tt){var de=tt.px,ve=tt.py,ce=tt.cx,we=tt.cy,xe=tt.rx,ke=tt.ry,Te=tt.xAxisRotation,st=Te===void 0?0:Te,xt=tt.largeArcFlag,Ht=xt===void 0?0:xt,Yt=tt.sweepFlag,lr=Yt===void 0?0:Yt,vr=[];if(xe===0||ke===0)return[{x1:0,y1:0,x2:0,y2:0,x:ce,y:we}];var Gr=Math.sin(st*Tt/360),Zt=Math.cos(st*Tt/360),Nr=Zt*(de-ce)/2+Gr*(ve-we)/2,en=-Gr*(de-ce)/2+Zt*(ve-we)/2;if(Nr===0&&en===0)return[{x1:0,y1:0,x2:0,y2:0,x:ce,y:we}];xe=Math.abs(xe),ke=Math.abs(ke);var Sn=Math.pow(Nr,2)/Math.pow(xe,2)+Math.pow(en,2)/Math.pow(ke,2);Sn>1&&(xe*=Math.sqrt(Sn),ke*=Math.sqrt(Sn));var kn=Bt(de,ve,ce,we,xe,ke,Ht,lr,Gr,Zt,Nr,en),Sr=kn[0],qn=kn[1],An=kn[2],vi=kn[3],ba=Math.abs(vi)/(Tt/4);Math.abs(1-ba)<1e-7&&(ba=1);var Ai=Math.max(Math.ceil(ba),1);vi/=Ai;for(var Za=0;Za7){tt[ve].shift();for(var ce=tt[ve],we=ve;ce.length;)de[ve]="A",tt.splice(we+=1,0,["C"].concat(ce.splice(0,6)));tt.splice(ve,1)}}var jn=function(tt,de,ve,ce,we){var xe=-3*de+9*ve-9*ce+3*we,ke=tt*xe+6*de-12*ve+6*ce;return tt*ke-3*de+3*ve},ai=function(tt,de,ve,ce,we,xe,ke,Te,st){st===null&&(st=1),st=st>1?1:st<0?0:st;for(var xt=st/2,Ht=12,Yt=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],lr=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],vr=0,Gr=0;Gr0&&vr<1&&st.push(vr);continue}var Zt=Yt*Yt-4*lr*Ht,Nr=Math.sqrt(Zt);if(!(Zt<0)){var en=(-Yt+Nr)/(2*Ht);en>0&&en<1&&st.push(en);var Sn=(-Yt-Nr)/(2*Ht);Sn>0&&Sn<1&&st.push(Sn)}}for(var kn=st.length,Sr=kn,qn;kn--;)vr=st[kn],qn=1-vr,xt[0][kn]=qn*qn*qn*tt+3*qn*qn*vr*ve+3*qn*vr*vr*we+vr*vr*vr*ke,xt[1][kn]=qn*qn*qn*de+3*qn*qn*vr*ce+3*qn*vr*vr*xe+vr*vr*vr*Te;return xt[0][Sr]=tt,xt[1][Sr]=de,xt[0][Sr+1]=ke,xt[1][Sr+1]=Te,xt[0].length=xt[1].length=Sr+2,{min:{x:Math.min.apply(0,xt[0]),y:Math.min.apply(0,xt[1])},max:{x:Math.max.apply(0,xt[0]),y:Math.max.apply(0,xt[1])}}},ze=function(tt,de,ve,ce,we,xe,ke,Te){if(!(Math.max(tt,ve)Math.max(we,ke)||Math.max(de,ce)Math.max(xe,Te))){var st=(tt*ce-de*ve)*(we-ke)-(tt-ve)*(we*Te-xe*ke),xt=(tt*ce-de*ve)*(xe-Te)-(de-ce)*(we*Te-xe*ke),Ht=(tt-ve)*(xe-Te)-(de-ce)*(we-ke);if(Ht){var Yt=st/Ht,lr=xt/Ht,vr=+Yt.toFixed(2),Gr=+lr.toFixed(2);if(!(vr<+Math.min(tt,ve).toFixed(2)||vr>+Math.max(tt,ve).toFixed(2)||vr<+Math.min(we,ke).toFixed(2)||vr>+Math.max(we,ke).toFixed(2)||Gr<+Math.min(de,ce).toFixed(2)||Gr>+Math.max(de,ce).toFixed(2)||Gr<+Math.min(xe,Te).toFixed(2)||Gr>+Math.max(xe,Te).toFixed(2)))return{x:Yt,y:lr}}}},Et=function(tt,de,ve){return de>=tt.x&&de<=tt.x+tt.width&&ve>=tt.y&&ve<=tt.y+tt.height},Pr=function(tt,de,ve,ce){return tt===null&&(tt=de=ve=ce=0),de===null&&(de=tt.y,ve=tt.width,ce=tt.height,tt=tt.x),{x:tt,y:de,width:ve,w:ve,height:ce,h:ce,x2:tt+ve,y2:de+ce,cx:tt+ve/2,cy:de+ce/2,r1:Math.min(ve,ce)/2,r2:Math.max(ve,ce)/2,r0:Math.sqrt(ve*ve+ce*ce)/2,path:rectPath(tt,de,ve,ce),vb:[tt,de,ve,ce].join(" ")}},zt=function(tt,de){return tt=Pr(tt),de=Pr(de),Et(de,tt.x,tt.y)||Et(de,tt.x2,tt.y)||Et(de,tt.x,tt.y2)||Et(de,tt.x2,tt.y2)||Et(tt,de.x,de.y)||Et(tt,de.x2,de.y)||Et(tt,de.x,de.y2)||Et(tt,de.x2,de.y2)||(tt.xde.x||de.xtt.x)&&(tt.yde.y||de.ytt.y)},Vt=function(tt,de,ve,ce,we,xe,ke,Te){isArray(tt)||(tt=[tt,de,ve,ce,we,xe,ke,Te]);var st=ri.apply(null,tt);return Pr(st.min.x,st.min.y,st.max.x-st.min.x,st.max.y-st.min.y)},ir=function(tt,de,ve,ce,we,xe,ke,Te,st){var xt=1-st,Ht=Math.pow(xt,3),Yt=Math.pow(xt,2),lr=st*st,vr=lr*st,Gr=Ht*tt+Yt*3*st*ve+xt*3*st*st*we+vr*ke,Zt=Ht*de+Yt*3*st*ce+xt*3*st*st*xe+vr*Te,Nr=tt+2*st*(ve-tt)+lr*(we-2*ve+tt),en=de+2*st*(ce-de)+lr*(xe-2*ce+de),Sn=ve+2*st*(we-ve)+lr*(ke-2*we+ve),kn=ce+2*st*(xe-ce)+lr*(Te-2*xe+ce),Sr=xt*tt+st*ve,qn=xt*de+st*ce,An=xt*we+st*ke,vi=xt*xe+st*Te,ba=90-Math.atan2(Nr-Sn,en-kn)*180/Math.PI;return{x:Gr,y:Zt,m:{x:Nr,y:en},n:{x:Sn,y:kn},start:{x:Sr,y:qn},end:{x:An,y:vi},alpha:ba}},be=function(tt,de,ve){var ce=Vt(tt),we=Vt(de);if(!zt(ce,we))return ve?0:[];for(var xe=ai.apply(0,tt),ke=ai.apply(0,de),Te=~~(xe/8),st=~~(ke/8),xt=[],Ht=[],Yt={},lr=ve?0:[],vr=0;vr=0&&vi<=1&&ba>=0&&ba<=1&&(ve?lr++:lr.push({x:An.x,y:An.y,t1:vi,t2:ba}))}}return lr},Oe=function(tt,de,ve){tt=path2Curve(tt),de=path2Curve(de);for(var ce,we,xe,ke,Te,st,xt,Ht,Yt,lr,vr=ve?0:[],Gr=0,Zt=tt.length;Gr1&&(ve*=Math.sqrt(vr),ce*=Math.sqrt(vr));var Gr=ve*ve*(lr*lr)+ce*ce*(Yt*Yt),Zt=Gr?Math.sqrt((ve*ve*(ce*ce)-Gr)/Gr):1;xe===ke&&(Zt*=-1),isNaN(Zt)&&(Zt=0);var Nr=ce?Zt*ve*lr/ce:0,en=ve?Zt*-ce*Yt/ve:0,Sn=(Te+xt)/2+Math.cos(we)*Nr-Math.sin(we)*en,kn=(st+Ht)/2+Math.sin(we)*Nr+Math.cos(we)*en,Sr=[(Yt-Nr)/ve,(lr-en)/ce],qn=[(-1*Yt-Nr)/ve,(-1*lr-en)/ce],An=qt([1,0],Sr),vi=qt(Sr,qn);return ct(Sr,qn)<=-1&&(vi=Math.PI),ct(Sr,qn)>=1&&(vi=0),ke===0&&vi>0&&(vi=vi-2*Math.PI),ke===1&&vi<0&&(vi=vi+2*Math.PI),{cx:Sn,cy:kn,rx:et(tt,[xt,Ht])?0:ve,ry:et(tt,[xt,Ht])?0:ce,startAngle:An,endAngle:An+vi,xRotation:we,arcFlag:xe,sweepFlag:ke}}function fe(tt,de){return[de[0]+(de[0]-tt[0]),de[1]+(de[1]-tt[1])]}function pt(tt){tt=fr(tt);for(var de=[],ve=null,ce=null,we=null,xe=0,ke=tt.length,Te=0;Te0!=er(Te[1]-ve)>0&&er(de-(ve-ke[1])*(ke[0]-Te[0])/(ke[1]-Te[1])-ke[0])<0&&(ce=!ce)}return ce}var dr=function(tt,de,ve){return tt>=de&&tt<=ve};function jr(tt,de,ve,ce){var we=.001,xe={x:ve.x-tt.x,y:ve.y-tt.y},ke={x:de.x-tt.x,y:de.y-tt.y},Te={x:ce.x-ve.x,y:ce.y-ve.y},st=ke.x*Te.y-ke.y*Te.x,xt=st*st,Ht=ke.x*ke.x+ke.y*ke.y,Yt=Te.x*Te.x+Te.y*Te.y,lr=null;if(xt>we*Ht*Yt){var vr=(xe.x*Te.y-xe.y*Te.x)/st,Gr=(xe.x*ke.y-xe.y*ke.x)/st;dr(vr,0,1)&&dr(Gr,0,1)&&(lr={x:tt.x+vr*ke.x,y:tt.y+vr*ke.y})}return lr}function vn(tt){for(var de=[],ve=tt.length,ce=0;ce1){var ke=tt[0],Te=tt[ve-1];de.push({from:{x:Te[0],y:Te[1]},to:{x:ke[0],y:ke[1]}})}return de}function cn(tt,de){var ve=!1;return(0,Ve.S6)(tt,function(ce){if(jr(ce.from,ce.to,de.from,de.to))return ve=!0,!1}),ve}function Xn(tt){var de=tt.map(function(ce){return ce[0]}),ve=tt.map(function(ce){return ce[1]});return{minX:Math.min.apply(null,de),maxX:Math.max.apply(null,de),minY:Math.min.apply(null,ve),maxY:Math.max.apply(null,ve)}}function un(tt,de){return!(de.minX>tt.maxX||de.maxXtt.maxY||de.maxYT in S?Ct(S,T,{enumerable:!0,configurable:!0,writable:!0,value:L}):S[T]=L,Tr=(S,T)=>{for(var L in T||(T={}))Ir.call(T,L)&&Xr(S,L,T[L]);if(Bt)for(var L of Bt(T))yr.call(T,L)&&Xr(S,L,T[L]);return S},fn=(S,T)=>nr(S,It(T)),jn=(S,T)=>{var L={};for(var G in S)Ir.call(S,G)&&T.indexOf(G)<0&&(L[G]=S[G]);if(S!=null&&Bt)for(var G of Bt(S))T.indexOf(G)<0&&yr.call(S,G)&&(L[G]=S[G]);return L};const ze={zh_CN:{\u9009\u62E9\u5206\u6790\u4FE1\u606F:"\u9009\u62E9\u5206\u6790\u4FE1\u606F",\u5207\u6362\u6307\u6807:"\u5207\u6362\u6307\u6807",\u786E\u5B9A:"\u786E\u5B9A",\u53D6\u6D88:"\u53D6\u6D88",\u91CD\u7F6E:"\u91CD\u7F6E",\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22",\u641C\u7D22:"\u641C\u7D22",\u6062\u590D:"\u6062\u590D","\u5DF2\u9009 {} \u9879":"\u5DF2\u9009 {} \u9879",\u6240\u9009\u9879:"\u6240\u9009\u9879",\u9009\u62E9\u4E0B\u94BB\u7EF4\u5EA6:"\u9009\u62E9\u4E0B\u94BB\u7EF4\u5EA6",\u6062\u590D\u9ED8\u8BA4:"\u6062\u590D\u9ED8\u8BA4",\u641C\u7D22\u5B57\u6BB5:"\u641C\u7D22\u5B57\u6BB5",\u884C\u5217\u5207\u6362:"\u884C\u5217\u5207\u6362",\u884C\u5934:"\u884C\u5934",\u5217\u5934:"\u5217\u5934",\u503C:"\u503C",\u5C55\u5F00\u5B50\u9879:"\u5C55\u5F00\u5B50\u9879",\u9996\u5B57\u6BCD:"\u9996\u5B57\u6BCD",\u624B\u52A8\u6392\u5E8F:"\u624B\u52A8\u6392\u5E8F",\u5176\u4ED6\u5B57\u6BB5:"\u5176\u4ED6\u5B57\u6BB5",\u9AD8\u7EA7\u6392\u5E8F:"\u9AD8\u7EA7\u6392\u5E8F",\u8BBE\u7F6E\u987A\u5E8F:"\u8BBE\u7F6E\u987A\u5E8F",\u53EF\u9009\u5B57\u6BB5:"\u53EF\u9009\u5B57\u6BB5","\u6309\u4EE5\u4E0B\u89C4\u5219\u8FDB\u884C\u6392\u5E8F\uFF08\u4F18\u5148\u7EA7\u7531\u4F4E\u5230\u9AD8\uFF09":"\u6309\u4EE5\u4E0B\u89C4\u5219\u8FDB\u884C\u6392\u5E8F\uFF08\u4F18\u5148\u7EA7\u7531\u4F4E\u5230\u9AD8\uFF09",\u6309:"\u6309",\u8BF4\u660E:"\u8BF4\u660E",\u590D\u5236\u539F\u59CB\u6570\u636E:"\u590D\u5236\u539F\u59CB\u6570\u636E",\u590D\u5236\u683C\u5F0F\u5316\u6570\u636E:"\u590D\u5236\u683C\u5F0F\u5316\u6570\u636E",\u4E0B\u8F7D\u539F\u59CB\u6570\u636E:"\u4E0B\u8F7D\u539F\u59CB\u6570\u636E",\u4E0B\u8F7D\u683C\u5F0F\u5316\u6570\u636E:"\u4E0B\u8F7D\u683C\u5F0F\u5316\u6570\u636E",\u64CD\u4F5C\u6210\u529F:"\u64CD\u4F5C\u6210\u529F",\u64CD\u4F5C\u5931\u8D25:"\u64CD\u4F5C\u5931\u8D25",\u65F6\u95F4:"\u65F6\u95F4",\u6307\u6807:"\u6307\u6807",\u76EE\u6807\u503C:"\u76EE\u6807\u503C"},en_US:{\u9009\u62E9\u5206\u6790\u4FE1\u606F:"Select Analysis Information",\u5207\u6362\u6307\u6807:"Switch indicator",\u786E\u5B9A:"Ok",\u53D6\u6D88:"Cancel",\u91CD\u7F6E:"Reset",\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22:"Please enter a keyword search",\u641C\u7D22:"Search",\u6062\u590D:"Recover","\u5DF2\u9009 {} \u9879":"selected {} item",\u6240\u9009\u9879:"selected items",\u9009\u62E9\u4E0B\u94BB\u7EF4\u5EA6:"Select drill down dimension",\u6062\u590D\u9ED8\u8BA4:"Restore default",\u641C\u7D22\u5B57\u6BB5:"Search field",\u884C\u5217\u5207\u6362:"Switch Dimensions",\u884C\u5934:"Rows",\u5217\u5934:"Cols",\u503C:"Values",\u5C55\u5F00\u5B50\u9879:"Expand Children",\u9996\u5B57\u6BCD:"Alphabetical order",\u624B\u52A8\u6392\u5E8F:"Custom order",\u5176\u4ED6\u5B57\u6BB5:"Other field",\u9AD8\u7EA7\u6392\u5E8F:"Advanced order",\u8BBE\u7F6E\u987A\u5E8F:"SetManual",\u53EF\u9009\u5B57\u6BB5:"Fields","\u6309\u4EE5\u4E0B\u89C4\u5219\u8FDB\u884C\u6392\u5E8F\uFF08\u4F18\u5148\u7EA7\u7531\u4F4E\u5230\u9AD8\uFF09":"Order according to the following rules (from low to high priority)",\u6309:"By",\u8BF4\u660E:"Description",\u590D\u5236\u539F\u59CB\u6570\u636E:"Copy raw data",\u590D\u5236\u683C\u5F0F\u5316\u6570\u636E:"Copy formatted data",\u4E0B\u8F7D\u539F\u59CB\u6570\u636E:"Download raw data",\u4E0B\u8F7D\u683C\u5F0F\u5316\u6570\u636E:"Download formatted data",\u64CD\u4F5C\u6210\u529F:"Operation successful",\u64CD\u4F5C\u5931\u8D25:"Operation failed",\u65F6\u95F4:"Date",\u6307\u6807:"Measure",\u76EE\u6807\u503C:"Target Value"}},Et={tooltip:{showTooltip:!0,autoAdjustBoundary:"body",operation:{hiddenColumns:!0,trend:!1,sort:!0}},showDefaultHeaderActionIcon:!0},Pr=200,zt=()=>[{name:(0,Ve.agQ)("\u5347\u5E8F"),value:"ASC"},{name:(0,Ve.agQ)("\u964D\u5E8F"),value:"DESC"}],Vt=()=>[{label:(0,Ve.agQ)("\u9996\u5B57\u6BCD"),value:"sortMethod"},{label:(0,Ve.agQ)("\u624B\u52A8\u6392\u5E8F"),value:"sortBy"},{label:(0,Ve.agQ)("\u5176\u4ED6\u5B57\u6BB5"),value:"sortByMeasure",children:[]}],ir="antv-s2-advanced-sort",be="s2-drill-down",Oe="s2-strategy-sheet-tooltip",Re=S=>S?`${Oe}-${S}`:Oe,Ie=(...S)=>(0,Ve._Ge)(Ve.WNh,Et,...S);var ct=typeof rt.g=="object"&&rt.g&&rt.g.Object===Object&&rt.g,qt=ct,et=typeof self=="object"&&self&&self.Object===Object&&self,mt=qt||et||Function("return this")(),fe=mt,pt=fe.Symbol,wt=pt,er=Object.prototype,Lt=er.hasOwnProperty,cr=er.toString,dr=wt?wt.toStringTag:void 0;function jr(S){var T=Lt.call(S,dr),L=S[dr];try{S[dr]=void 0;var G=!0}catch(K){}var Z=cr.call(S);return G&&(T?S[dr]=L:delete S[dr]),Z}var vn=Object.prototype,cn=vn.toString;function Xn(S){return cn.call(S)}var un="[object Null]",Jr="[object Undefined]",tt=wt?wt.toStringTag:void 0;function de(S){return S==null?S===void 0?Jr:un:tt&&tt in Object(S)?jr(S):Xn(S)}function ve(S){return S!=null&&typeof S=="object"}var ce="[object Symbol]";function we(S){return typeof S=="symbol"||ve(S)&&de(S)==ce}function xe(S,T){for(var L=-1,G=S==null?0:S.length,Z=Array(G);++L0){if(++T>=bt)return arguments[0]}else T=0;return S.apply(void 0,arguments)}}function wn(S){return function(){return S}}var gn=function(){try{var S=la(Object,"defineProperty");return S({},"",{}),S}catch(T){}}(),Mi=gn,Ba=Mi?function(S,T){return Mi(S,"toString",{configurable:!0,enumerable:!1,value:wn(T),writable:!0})}:Ur,Wo=Ba,ol=an(Wo),Ps=ol;function ho(S,T){for(var L=-1,G=S==null?0:S.length;++L-1}var pe=9007199254740991,Ae=/^(?:0|[1-9]\d*)$/;function Ke(S,T){var L=typeof S;return T=T==null?pe:T,!!T&&(L=="number"||L!="symbol"&&Ae.test(S))&&S>-1&&S%1==0&&S-1&&S%1==0&&S<=ci}function Dn(S){return S!=null&&Vr(S.length)&&!pi(S)}var Ci=Object.prototype;function oi(S){var T=S&&S.constructor,L=typeof T=="function"&&T.prototype||Ci;return S===L}function Gn(S,T){for(var L=-1,G=Array(S);++L-1}function Mx(S,T){var L=this.__data__,G=jp(L,S);return G<0?(++this.size,L.push([S,T])):L[G][1]=T,this}function Ll(S){var T=-1,L=S==null?0:S.length;for(this.clear();++T0&&L(ae)?T>1?g0(ae,T-1,L,G,Z):kv(Z,ae):G||(Z[Z.length]=ae)}return Z}function Fy(S){var T=S==null?0:S.length;return T?g0(S,1):[]}function j1(S){return Ps(wi(S,void 0,Fy),S+"")}var Ny=Tv(Object.getPrototypeOf,Object),Qp=Ny,m0="\\ud800-\\udfff",Hy="\\u0300-\\u036f",Fv="\\ufe20-\\ufe2f",La="\\u20d0-\\u20ff",Rd=Hy+Fv+La,_l="\\ufe0e\\ufe0f",Wh="\\u200d",Gh=RegExp("["+Wh+m0+Rd+_l+"]");function Ki(S){return Gh.test(S)}function zy(S,T,L,G){var Z=-1,K=S==null?0:S.length;for(G&&K&&(L=S[++Z]);++Zae))return!1;var Le=K.get(S),Ge=K.get(T);if(Le&&Ge)return Le==T&&Ge==S;var Pe=-1,Ne=!0,at=L&O0?new rh:void 0;for(K.set(S,T),K.set(T,S);++Pe=T||Hn<0||Pe&&Jn>=K}function Ar(){var Cn=R0();if(wr(Cn))return Fr(Cn);ae=setTimeout(Ar,Cr(Cn))}function Fr(Cn){return ae=void 0,Ne&&G?at(Cn):(G=Z=void 0,ne)}function dn(){ae!==void 0&&clearTimeout(ae),Le=0,G=me=Z=ae=void 0}function zr(){return ae===void 0?ne:Fr(R0())}function Yn(){var Cn=R0(),Hn=wr(Cn);if(G=arguments,Z=this,me=Cn,Hn){if(ae===void 0)return kt(me);if(Pe)return clearTimeout(ae),ae=setTimeout(Ar,T),at(me)}return ae===void 0&&(ae=setTimeout(Ar,T)),ne}return Yn.cancel=dn,Yn.flush=zr,Yn}function L0(S,T,L){for(var G=-1,Z=S==null?0:S.length;++G-1?Z[K?T[ne]:ne]:void 0}}var mb=Math.max;function Wd(S,T,L){var G=S==null?0:S.length;if(!G)return-1;var Z=L==null?0:Za(L);return Z<0&&(Z=mb(G+Z,0)),ql(S,Gu(T),Z)}var F_=$x(Wd),es=F_;function oh(S){return S&&S.length?S[0]:void 0}function ts(S,T){var L=-1,G=Dn(S)?Array(S.length):[];return ep(S,function(Z,K,ne){G[++L]=T(Z,K,ne)}),G}function el(S,T){var L=Te(S)?xe:ts;return L(S,Gu(T))}function N_(S,T){return S==null?S:lg(S,Ko(T),Bu)}var lh="[object String]";function Ml(S){return typeof S=="string"||!Te(S)&&ve(S)&&de(S)==lh}function sh(S,T){return xe(T,function(L){return S[L]})}function H_(S){return S==null?[]:sh(S,dc(S))}var ug=Math.max;function uh(S,T,L,G){S=Dn(S)?S:H_(S),L=L&&!G?Za(L):0;var Z=S.length;return L<0&&(L=ug(Z+L,0)),Ml(S)?L<=Z&&S.indexOf(T,L)>-1:!!Z&&Hc(S,T,L)>-1}var z_="[object Boolean]";function yb(S){return S===!0||S===!1||ve(S)&&de(S)==z_}var Cb="[object Map]",sC="[object Set]",Ux=Object.prototype,W_=Ux.hasOwnProperty;function _o(S){if(S==null)return!0;if(Dn(S)&&(Te(S)||typeof S=="string"||typeof S.splice=="function"||ta(S)||Nh(S)||Dl(S)))return!S.length;var T=Hu(S);if(T==Cb||T==sC)return!S.size;if(oi(S))return!gi(S).length;for(var L in S)if(W_.call(S,L))return!1;return!0}function yc(S,T){return Es(S,T)}function ed(S){return S==null}function bb(S,T){var L={};return T=Gu(T),vb(S,function(G,Z,K){jt(L,Z,T(G,Z,K))}),L}function rp(S,T){for(var L,G=-1,Z=S.length;++G=dC){var Le=T?null:ur(S);if(Le)return Hd(Le);ne=!1,Z=T0,me=new rh}else me=T?[]:ae;e:for(;++G{var L,G,Z;return yb(T)?{container:S,adaptiveWidth:!0,adaptiveHeight:!1}:{container:((L=T==null?void 0:T.getContainer)==null?void 0:L.call(T))||S,adaptiveWidth:(G=T==null?void 0:T.width)!=null?G:!0,adaptiveHeight:(Z=T==null?void 0:T.height)!=null?Z:!0}},hh=S=>{let T=!0;const{s2:L,adaptive:G,container:Z,wrapper:K}=S,{container:ne,adaptiveWidth:ae,adaptiveHeight:me}=nn(K,G);if(!ne||!Z||!G||!L)return;const Le=(at,kt)=>{L==null||L.changeSheetSize(at,kt),L==null||L.render(!1)},Ge=D0(Le,Pr),Pe=()=>{const{clientWidth:at,clientHeight:kt}=Z,Cr=ae?Math.floor(at!=null?at:L.options.width):L.options.width,wr=me?Math.floor(kt!=null?kt:L.options.height):L.options.height;if(!(!ae&&!me)){if(T){Le(Cr,wr),T=!1;return}Ge(Cr,wr)}},Ne=new ResizeObserver(([at]=[])=>{at&&Pe()});return Ne.observe(ne,{box:"border-box"}),()=>{Ne.unobserve(ne)}},$u=(S,T)=>{const L=S.store.get("drillDownDataCache",[]),G=L.find(Z=>Z.rowId===T.id);return{drillDownDataCache:L,drillDownCurrentCache:G}},cg=S=>{const{meta:T,event:L,callback:G}=S,{spreadsheet:Z}=T;Z.store.set("drillDownNode",T);const{drillDownDataCache:K,drillDownCurrentCache:ne}=$u(Z,T),ae=ne!=null&&ne.drillField?[ne==null?void 0:ne.drillField]:[],me=[];K.forEach(Le=>{T.id.includes(Le.rowId)&&T.id!==Le.rowId&&me.push(Le.drillField)}),L&&Z.emit(Ve.ch4.GLOBAL_ACTION_ICON_CLICK,L),G({sheetInstance:Z,cacheDrillFields:ae,disabledFields:me,event:L})},Sb=S=>{var T;const L=S.spreadsheet,{fields:G}=L.dataCfg,Z=((T=G.rows)==null?void 0:T.length)-1,K=_o(G.values)?!0:L.isValueInCols();return Z<=S.level&&L.isHierarchyTreeType()&&K&&!S.isGrandTotals},ul=(S,T,L)=>{var G;const Z=(G=S==null?void 0:S.headerActionIcons)!=null&&G.length?[...S.headerActionIcons]:[];if(!_o(T)){const K={belongsCell:"rowCell",iconNames:["DrillDownIcon"],defaultHide:!0,displayCondition:T.displayCondition||Sb,action:ne=>{const{iconName:ae,meta:me,event:Le}=ne;ae==="DrillDownIcon"&&(me.spreadsheet.store.set("drillDownNode",me),cg({meta:me,event:Le,callback:L}))}};Z.push(K)}return fn(Tr({},S),{headerActionIcons:Z})},H0=S=>{const{fetchData:T,spreadsheet:L,drillFields:G,drillItemsNum:Z=-1}=S;L.store.set("drillItemsNum",Z);const K=L.store.get("drillDownNode"),{drillDownDataCache:ne,drillDownCurrentCache:ae}=$u(L,K);let me=mc(ne);ae&&(me=Yc(ne,Le=>Le.rowId!==K.id)),T&&T(K,G).then(Le=>{const{drillData:Ge,drillField:Pe}=Le;if(L.dataSet.transformDrillDownData(Pe,Ge,K),!_o(Ge)){const Ne=K.level+1,at={rowId:K.id,drillLevel:Ne,drillData:Ge,drillField:Pe};me.push(at),L.store.set("drillDownDataCache",me)}L.interaction.reset(),L.render(!1)})};(0,Ve.AfN)(ze);var cs=function(T){return function(L,G){var Z=(0,lt.useRef)(!1);T(function(){return function(){Z.current=!1}},[]),T(function(){if(!Z.current)Z.current=!0;else return L()},G)}},ap=cs(lt.useEffect);function _b(S){var T=(0,lt.useRef)(S);return T.current=S,T}var Eb=globalThis&&globalThis.__read||function(S,T){var L=typeof Symbol=="function"&&S[Symbol.iterator];if(!L)return S;var G=L.call(S),Z,K=[],ne;try{for(;(T===void 0||T-- >0)&&!(Z=G.next()).done;)K.push(Z.value)}catch(ae){ne={error:ae}}finally{try{Z&&!Z.done&&(L=G.return)&&L.call(G)}finally{if(ne)throw ne.error}}return K},$d=function(){var T=Eb((0,lt.useState)({}),2),L=T[1];return(0,lt.useCallback)(function(){return L({})},[])},Go=$d,Mb={exports:{}};(function(S){(function(){var T={}.hasOwnProperty;function L(){for(var G=[],Z=0;Z{const{style:T={},width:L,height:G,className:Z,name:K}=S,ne=()=>(0,Ve.q7_)(K),ae=Tr({},T);return L&&(ae.width=`${L}px`),G&&(ae.height=`${G}px`),oe().createElement("span",{style:ae,className:Nl(`${Ve.vhY}-html-icon`,Z),dangerouslySetInnerHTML:{__html:ne()}})};class fg extends oe().PureComponent{render(){const{style:T={},className:L,content:G}=this.props;let Z;return typeof G!="string"?Z=(G==null?void 0:G.innerHTML)||"":Z=G,oe().createElement("div",{style:T,className:Nl(`${Ve.vhY}-react-element`,L),dangerouslySetInnerHTML:{__html:Z}})}}const Ud=S=>{const T=S,{icon:L}=T,G=jn(T,["icon"]);if(!L)return null;if((0,Ve.q7_)(L)){const Z=L;return oe().createElement(z0,Tr({name:Z},G))}return oe().createElement(fg,Tr({content:L},G))},cl=S=>{const{list:T=[]}=S;return oe().createElement("div",{className:`${Ve.NO_}-detail-list`},T.map((L,G)=>{const{name:Z,value:K,icon:ne}=L;return oe().createElement("div",{key:`${K}-${G}`,className:`${Ve.NO_}-detail-item`},oe().createElement("span",{className:`${Ve.NO_}-detail-item-key`},Z),oe().createElement("span",{className:`${Ve.NO_}-detail-item-val ${Ve.NO_}-highlight`},ne?oe().createElement(Ud,{icon:ne,width:8,height:7}):null,K))}))},yo=S=>{var T,L;const{rows:G=[],cols:Z=[]}=S;return oe().createElement("div",{className:`${Ve.NO_}-head-info-list`},(T=Z.map(K=>K.value))==null?void 0:T.join("/"),Z.length>0&&G.length>0&&"\uFF0C",(L=G.map(K=>K.value))==null?void 0:L.join("/"))},Ts=S=>{const{infos:T=""}=S;return oe().createElement("div",{className:`${Ve.NO_}-infos`},T)},Vc=S=>{const{name:T,icon:L,text:G,render:Z}=S,K=()=>T&&oe().createElement("span",{className:`${Ve.NO_}-interpretation-name`},T),ne=()=>G&&oe().createElement("div",null,G),ae=()=>oe().createElement(fg,{content:Z});return oe().createElement("div",{className:`${Ve.NO_}-interpretation`},oe().createElement("div",{className:`${Ve.NO_}-interpretation-head`},oe().createElement(Ud,{icon:L,className:`${Ve.NO_}-interpretation-icon`}),K()),ne(),ae())};var Yd="";const wf=oe().memo(S=>{const{menus:T,onlyMenu:L,onClick:G,cell:Z,defaultSelectedKeys:K}=S,ne=Le=>oe().createElement("span",{onClick:()=>{var Ge;return(Ge=Le.onClick)==null?void 0:Ge.call(Le,Z)}},oe().createElement(Ud,{icon:Le.icon,className:`${Ve.NO_}-operator-icon`}),oe().createElement("span",{className:`${Ve.NO_}-operator-text`},Le.text)),ae=Le=>{const{key:Ge,text:Pe,children:Ne,onClick:at}=Le;return _o(Ne)?oe().createElement(Ce.Menu.Item,{title:Pe,key:Ge},ne(Le)):oe().createElement(Ce.Menu.SubMenu,{title:ne(Le),key:Ge,popupClassName:`${Ve.NO_}-operator-submenu-popup`,onTitleClick:()=>at==null?void 0:at(Z)},el(Ne,kt=>ae(kt)))},me=()=>L?oe().createElement(Ce.Menu,{className:`${Ve.NO_}-operator-menus`,onClick:G,defaultSelectedKeys:K},el(T,Le=>ae(Le))):el(T,Le=>{const{key:Ge,children:Pe}=Le,Ne=_o(Pe)?oe().createElement(oe().Fragment,null):oe().createElement(Ce.Menu,{className:`${Ve.NO_}-operator-menus`,onClick:G,key:Ge,defaultSelectedKeys:K},el(Pe,at=>ae(at)));return oe().createElement(Ce.Dropdown,{key:Ge,overlay:Ne},ne(Le))});return _o(T)?null:oe().createElement("div",{className:`${Ve.NO_}-operator`},me())}),rl=S=>{const{tips:T="",name:L=""}=S;return oe().createElement(oe().Fragment,null,L&&oe().createElement("div",{className:`${Ve.NO_}-name`},L),T&&oe().createElement("div",{className:`${Ve.NO_}-tips`},T))},Tb=oe().memo(S=>{const{summaries:T=[]}=S,L=()=>{const Z=jx(T,K=>fC(K==null?void 0:K.selectedData));return oe().createElement("div",{className:`${Ve.NO_}-summary-item`},oe().createElement("span",{className:`${Ve.NO_}-selected`},Z," ",(0,Ve.agQ)("\u9879")),(0,Ve.agQ)("\u5DF2\u9009\u62E9"))},G=()=>T==null?void 0:T.map(Z=>{const{name:K="",value:ne}=Z||{};if(!(!K&&!ne))return oe().createElement("div",{key:`${K}-${ne}`,className:`${Ve.NO_}-summary-item`},oe().createElement("span",{className:`${Ve.NO_}-summary-key`},K,"\uFF08",(0,Ve.agQ)("\u603B\u548C"),")"),oe().createElement("span",{className:Nl(`${Ve.NO_}-summary-val`,`${Ve.NO_}-bold`)},ne))});return oe().createElement("div",{className:`${Ve.NO_}-summary`},L(),G())}),ki=({description:S})=>oe().createElement(oe().Fragment,null,S&&oe().createElement("div",{className:`${Ve.NO_}-description`},(0,Ve.agQ)("\u8BF4\u660E"),"\uFF1A",S));var op="";const Ob=S=>{const{data:T,options:L,content:G,cell:Z}=S,K=(kt,Cr)=>kt&&oe().createElement(wf,fn(Tr({},kt),{onlyMenu:Cr,cell:Z})),ne=kt=>{const{name:Cr,tips:wr}=kt||{};return oe().createElement(rl,{name:Cr,tips:wr})},ae=kt=>!_o(kt)&&oe().createElement(Tb,{summaries:kt}),me=kt=>{const{cols:Cr,rows:wr}=kt||{};return(!_o(Cr)||!_o(wr))&&oe().createElement(yo,{cols:Cr,rows:wr})},Le=kt=>!_o(kt)&&oe().createElement(cl,{list:kt}),Ge=kt=>kt&&oe().createElement(Ts,{infos:kt}),Pe=kt=>kt&&oe().createElement(Vc,Tr({},kt)),Ne=kt=>oe().createElement(ki,{description:kt});return(()=>{const{operator:kt,onlyMenu:Cr}=(0,Ve.IZo)(L),{summaries:wr,headInfo:Ar,details:Fr,interpretation:dn,infos:zr,tips:Yn,name:Cn,description:Hn}=T||{},Jn={name:Cn,tips:Yn};if(Cr)return K(kt,!0);const Pi=oe().createElement(oe().Fragment,null,ne(Jn),ae(wr),Pe(dn),me(Ar),Le(Fr),Ge(zr),Ne(Hn));return oe().createElement(oe().Fragment,null,K(kt),G!=null?G:Pi)})()};class Ab extends Ve.N6r{constructor(T){super(T)}renderContent(){var T,L;const{content:G}=this.spreadsheet.options.tooltip,Z=this.options,K=this.spreadsheet.getCell((T=Z.event)==null?void 0:T.target),ne=(L=Z.content)!=null?L:G,ae=fn(Tr({},Z),{cell:K,content:ne});this.unmountComponentAtNode(),re().render(oe().createElement(Ob,fn(Tr({},ae),{content:ne})),this.container)}destroy(){super.destroy(),this.unmountComponentAtNode()}unmountComponentAtNode(){this.container&&re().unmountComponentAtNode(this.container)}}const Uu={tooltip:{renderTooltip:S=>new Ab(S)}},fl=(...S)=>Ie(Uu,...S),Fa=(S,T,L)=>{oe().useEffect(()=>{const G=Z=>{T==null||T((0,Ve.c8d)(Z))};return L==null||L.on(S,G),()=>{L==null||L.off(S,G)}},[L,T,S])},yi=(S,T,L,G=!1)=>{oe().useEffect(()=>{const Z=K=>{T==null||T(K)};return L==null||L.on(S,Z),()=>{G&&(L==null||L.emit(S)),L==null||L.off(S,Z)}},[L,T,S])};function Yu(S,T){Fa(Ve.ch4.ROW_CELL_HOVER,S.onRowCellHover,T),Fa(Ve.ch4.ROW_CELL_CLICK,S.onRowCellClick,T),Fa(Ve.ch4.ROW_CELL_DOUBLE_CLICK,S.onRowCellDoubleClick,T),Fa(Ve.ch4.ROW_CELL_CONTEXT_MENU,S.onRowCellContextMenu,T),Fa(Ve.ch4.ROW_CELL_MOUSE_DOWN,S.onRowCellMouseDown,T),Fa(Ve.ch4.ROW_CELL_MOUSE_UP,S.onRowCellMouseUp,T),Fa(Ve.ch4.ROW_CELL_MOUSE_MOVE,S.onRowCellMouseMove,T),yi(Ve.ch4.ROW_CELL_COLLAPSE_TREE_ROWS,S.onRowCellCollapseTreeRows,T),yi(Ve.ch4.ROW_CELL_SCROLL,S.onRowCellScroll,T),Fa(Ve.ch4.COL_CELL_HOVER,S.onColCellHover,T),Fa(Ve.ch4.COL_CELL_CLICK,S.onColCellClick,T),Fa(Ve.ch4.COL_CELL_DOUBLE_CLICK,S.onColCellDoubleClick,T),Fa(Ve.ch4.COL_CELL_CONTEXT_MENU,S.onColCellContextMenu,T),Fa(Ve.ch4.COL_CELL_MOUSE_DOWN,S.onColCellMouseDown,T),Fa(Ve.ch4.COL_CELL_MOUSE_UP,S.onColCellMouseUp,T),Fa(Ve.ch4.COL_CELL_MOUSE_MOVE,S.onColCellMouseMove,T),Fa(Ve.ch4.DATA_CELL_HOVER,S.onDataCellHover,T),Fa(Ve.ch4.DATA_CELL_CLICK,S.onDataCellClick,T),Fa(Ve.ch4.DATA_CELL_DOUBLE_CLICK,S.onDataCellDoubleClick,T),Fa(Ve.ch4.DATA_CELL_CONTEXT_MENU,S.onDataCellContextMenu,T),Fa(Ve.ch4.DATA_CELL_MOUSE_DOWN,S.onDataCellMouseDown,T),Fa(Ve.ch4.DATA_CELL_MOUSE_UP,S.onDataCellMouseUp,T),Fa(Ve.ch4.DATA_CELL_MOUSE_MOVE,S.onDataCellMouseMove,T),yi(Ve.ch4.DATA_CELL_TREND_ICON_CLICK,S.onDataCellTrendIconClick,T),yi(Ve.ch4.DATA_CELL_BRUSH_SELECTION,S.onDataCellBrushSelection,T),yi(Ve.ch4.DATA_CELL_SELECT_MOVE,S.onDataCellSelectMove,T),Fa(Ve.ch4.CORNER_CELL_HOVER,S.onCornerCellHover,T),Fa(Ve.ch4.CORNER_CELL_CLICK,S.onCornerCellClick,T),Fa(Ve.ch4.CORNER_CELL_DOUBLE_CLICK,S.onCornerCellDoubleClick,T),Fa(Ve.ch4.CORNER_CELL_CONTEXT_MENU,S.onCornerCellContextMenu,T),Fa(Ve.ch4.CORNER_CELL_MOUSE_DOWN,S.onCornerCellMouseDown,T),Fa(Ve.ch4.CORNER_CELL_MOUSE_UP,S.onCornerCellMouseUp,T),Fa(Ve.ch4.CORNER_CELL_MOUSE_MOVE,S.onCornerCellMouseMove,T),Fa(Ve.ch4.MERGED_CELLS_HOVER,S.onMergedCellsHover,T),Fa(Ve.ch4.MERGED_CELLS_CLICK,S.onMergedCellsClick,T),Fa(Ve.ch4.MERGED_CELLS_DOUBLE_CLICK,S.onMergedCellsDoubleClick,T),Fa(Ve.ch4.MERGED_CELLS_CONTEXT_MENU,S.onMergedCellsContextMenu,T),Fa(Ve.ch4.MERGED_CELLS_MOUSE_DOWN,S.onMergedCellsMouseDown,T),Fa(Ve.ch4.MERGED_CELLS_MOUSE_UP,S.onMergedCellsMouseUp,T),Fa(Ve.ch4.MERGED_CELLS_MOUSE_MOVE,S.onMergedCellsMouseMove,T),yi(Ve.ch4.RANGE_SORT,S.onRangeSort,T),yi(Ve.ch4.RANGE_SORTED,S.onRangeSorted,T),yi(Ve.ch4.RANGE_FILTER,S.onRangeFilter,T),yi(Ve.ch4.RANGE_FILTERED,S.onRangeFiltered,T),yi(Ve.ch4.LAYOUT_AFTER_HEADER_LAYOUT,S.onLayoutAfterHeaderLayout,T),yi(Ve.ch4.LAYOUT_PAGINATION,S.onLayoutPagination,T),yi(Ve.ch4.LAYOUT_CELL_SCROLL,S.onLayoutCellScroll,T),yi(Ve.ch4.LAYOUT_AFTER_COLLAPSE_ROWS,S.onLayoutAfterCollapseRows,T),yi(Ve.ch4.LAYOUT_TREE_ROWS_COLLAPSE_ALL,S.onCollapseRowsAll,T),yi(Ve.ch4.LAYOUT_COLS_EXPANDED,S.onLayoutColsExpanded,T),yi(Ve.ch4.LAYOUT_COLS_HIDDEN,S.onLayoutColsHidden,T),yi(Ve.ch4.LAYOUT_BEFORE_RENDER,S.onBeforeRender,T),yi(Ve.ch4.LAYOUT_AFTER_RENDER,S.onAfterRender,T),yi(Ve.ch4.LAYOUT_DESTROY,S.onDestroy,T,!0),yi(Ve.ch4.LAYOUT_RESIZE,S.onLayoutResize,T),yi(Ve.ch4.LAYOUT_RESIZE_SERIES_WIDTH,S.onLayoutResizeSeriesWidth,T),yi(Ve.ch4.LAYOUT_RESIZE_ROW_WIDTH,S.onLayoutResizeRowWidth,T),yi(Ve.ch4.LAYOUT_RESIZE_ROW_HEIGHT,S.onLayoutResizeRowHeight,T),yi(Ve.ch4.LAYOUT_RESIZE_COL_WIDTH,S.onLayoutResizeColWidth,T),yi(Ve.ch4.LAYOUT_RESIZE_COL_HEIGHT,S.onLayoutResizeColHeight,T),yi(Ve.ch4.LAYOUT_RESIZE_TREE_WIDTH,S.onLayoutResizeTreeWidth,T),yi(Ve.ch4.LAYOUT_RESIZE_MOUSE_DOWN,S.onLayoutResizeMouseDown,T),yi(Ve.ch4.LAYOUT_RESIZE_MOUSE_UP,S.onLayoutResizeMouseUp,T),yi(Ve.ch4.LAYOUT_RESIZE_MOUSE_MOVE,S.onLayoutResizeMouseMove,T),yi(Ve.ch4.GLOBAL_KEYBOARD_DOWN,S.onKeyBoardDown,T),yi(Ve.ch4.GLOBAL_KEYBOARD_UP,S.onKeyBoardUp,T),yi(Ve.ch4.GLOBAL_COPIED,S.onCopied,T),yi(Ve.ch4.GLOBAL_ACTION_ICON_HOVER,S.onActionIconHover,T),yi(Ve.ch4.GLOBAL_ACTION_ICON_CLICK,S.onActionIconClick,T),yi(Ve.ch4.GLOBAL_CONTEXT_MENU,S.onContextMenu,T),yi(Ve.ch4.GLOBAL_HOVER,S.onMouseHover,T),yi(Ve.ch4.GLOBAL_CLICK,S.onClick,T),yi(Ve.ch4.GLOBAL_DOUBLE_CLICK,S.onDoubleClick,T),yi(Ve.ch4.GLOBAL_SELECTED,S.onSelected,T),yi(Ve.ch4.GLOBAL_MOUSE_UP,S.onMouseUp,T),yi(Ve.ch4.GLOBAL_RESET,S.onReset,T),yi(Ve.ch4.GLOBAL_LINK_FIELD_JUMP,S.onLinkFieldJump,T),yi(Ve.ch4.GLOBAL_SCROLL,S.onScroll,T),yi(Ve.ch4.ROW_CELL_BRUSH_SELECTION,S.onRowCellBrushSelection,T),yi(Ve.ch4.COL_CELL_BRUSH_SELECTION,S.onColCellBrushSelection,T)}const Vx=(S,T)=>{const[L,G]=oe().useState(T);return oe().useEffect(()=>{S==null||S.on(Ve.ch4.LAYOUT_BEFORE_RENDER,()=>{G(!0)}),S==null||S.on(Ve.ch4.LAYOUT_AFTER_RENDER,()=>{G(!1)})},[S]),{loading:T!=null?T:L,setLoading:G}},Ys=10,hg=1,ga=(S,T)=>{const{options:{pagination:L},showPagination:G}=T,[Z,K]=oe().useState({total:0,current:(L==null?void 0:L.current)||hg,pageSize:(L==null?void 0:L.pageSize)||Ys}),ne=(me,Le)=>{var Ge;const Pe=(Ge=Kp(G,"onShowSizeChange"))!=null?Ge:L==null?void 0:L.onShowSizeChange;Pe==null||Pe(me,Le)},ae=(me,Le)=>{var Ge;K(fn(Tr({},Z),{current:me,pageSize:Le}));const Pe=(Ge=Kp(G,"onChange"))!=null?Ge:L==null?void 0:L.onChange;Pe==null||Pe(me,Le)};return ap(()=>{!S||_o(L)||(S.updatePagination({current:Z.current,pageSize:Z.pageSize}),S.render(!1))},[Z.current,Z.pageSize,S]),ap(()=>{var me,Le;K({total:(Le=(me=S==null?void 0:S.facet)==null?void 0:me.viewCellHeights.getTotalLength())!=null?Le:0,current:(L==null?void 0:L.current)||hg,pageSize:(L==null?void 0:L.pageSize)||Ys})},[L,S]),ap(()=>{if(!S||_o(L))return;const me=Le=>{K(Ge=>fn(Tr({},Ge),{total:Le.total}))};return S.on(Ve.ch4.LAYOUT_PAGINATION,me),()=>{S.off(Ve.ch4.LAYOUT_PAGINATION,me)}},[L,S]),{showPagination:!!G,pagination:Tr(Tr({},L),Z),onShowSizeChange:ne,onChange:ae}},Eo=S=>{const{s2:T,adaptive:L,container:G,wrapper:Z}=S;oe().useLayoutEffect(()=>hh({s2:T,adaptive:L,wrapper:Z,container:G}),[T,Z,G,L])};function ju(S){const T=Go(),L=oe().useRef(),G=oe().useRef(),Z=oe().useRef(),{spreadsheet:K,dataCfg:ne,options:ae,themeCfg:me,sheetType:Le,onSheetUpdate:Ge=Ur}=S,Pe=oe().useRef([ne,ae,me]),{loading:Ne,setLoading:at}=Vx(L.current,S.loading),kt=ga(L.current,S);Yu(S,L.current);const Cr=oe().useCallback(Ar=>{const Fr=fl(ae);return K?K(Ar,ne,Fr):Le==="table"?new Ve.HZt(Ar,ne,Fr):new Ve.TA7(Ar,ne,Fr)},[Le,ae,ne,K]),wr=oe().useCallback(()=>{var Ar;at(!0),L.current=Cr(G.current),L.current.setThemeCfg(S.themeCfg),L.current.render(),at(!1),T(),(Ar=S.getSpreadSheet)==null||Ar.call(S,L.current)},[S,Cr,at,T]);return oe().useEffect(()=>(wr(),()=>{var Ar,Fr;(Fr=(Ar=L.current).destroy)==null||Fr.call(Ar)}),[]),ap(()=>{var Ar,Fr,dn,zr,Yn,Cn,Hn,Jn,Pi,Da,Aa;const[il,as,Yo]=Pe.current;Pe.current=[ne,ae,me];let Al=!1,hs=!1;Object.is(il,ne)||(((Fr=(Ar=il==null?void 0:il.fields)==null?void 0:Ar.columns)==null?void 0:Fr.length)!==((zr=(dn=ne==null?void 0:ne.fields)==null?void 0:dn.columns)==null?void 0:zr.length)&&((Yn=L.current)==null||Yn.clearColumnLeafNodes()),Al=!0,(Cn=L.current)==null||Cn.setDataCfg(ne)),Object.is(as,ae)||(Object.is(as==null?void 0:as.hierarchyType,ae==null?void 0:ae.hierarchyType)||(hs=!0,Al=!0,(Hn=L.current)==null||Hn.setDataCfg(ne)),(Jn=L.current)==null||Jn.setOptions(ae),(Pi=L.current)==null||Pi.changeSheetSize(ae.width,ae.height)),Object.is(Yo,me)||(Da=L.current)==null||Da.setThemeCfg(me);const Ac=Ge({reloadData:Al,reBuildDataSet:hs});(Aa=L.current)==null||Aa.render(Ac.reloadData,{reBuildDataSet:Ac.reBuildDataSet})},[ne,ae,me,Ge]),Eo({s2:L.current,container:G.current,wrapper:Z.current,adaptive:S.adaptive}),{s2Ref:L,containerRef:G,wrapperRef:Z,loading:Ne,setLoading:at,pagination:kt}}const Ib=lt.createContext(null);function W0(){return lt.useContext(Ib)}var sa="";const ca=S=>lt.createElement("svg",Tr({className:"antv-s2-icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:12.6,height:12.6},S),lt.createElement("path",{d:"M950.016 898.016l-206.016-204.992Q832 586.016 832 448.032q0-159.008-112.512-271.488T448 64.032 176.512 176.544 64 448.032t112.512 271.488T448 832.032q138.016 0 244.992-88l206.016 206.016q10.016 10.016 24.992 10.016t26.016-10.016q10.016-11.008 10.016-26.016t-10.016-26.016zM568.992 736Q512 760 448 760T327.008 736q-56-24-99.488-67.488t-66.496-99.488q-24.992-56.992-24.992-120.992t24.992-120.992q23.008-56 66.496-99.488t99.488-67.488Q384 136.064 448 136.064t120.992 24q56 24 99.488 67.488t67.488 99.488q24 56.992 24 120.992t-24 120.992q-24 56-67.488 99.488T568.992 736z",fill:"currentColor"})),dg=S=>lt.createElement("svg",Tr({viewBox:"0 0 1024 1024",width:16,height:16},S),lt.createElement("defs",null,lt.createElement("style",{type:"text/css"})),lt.createElement("path",{d:"M441.6 249.6c0 38.4 32 70.4 70.4 70.4s70.4-32 70.4-70.4c0-38.4-32-70.4-70.4-70.4s-70.4 25.6-70.4 70.4z m0 262.4c0 38.4 32 70.4 70.4 70.4s70.4-32 70.4-70.4c0-38.4-32-70.4-70.4-70.4s-70.4 32-70.4 70.4z m0 262.4c0 38.4 32 70.4 70.4 70.4s70.4-32 70.4-70.4c0-38.4-32-70.4-70.4-70.4s-70.4 32-70.4 70.4z",fill:"","p-id":22217})),GM=S=>lt.createElement("svg",Tr({className:"antv-s2-icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:12.6,height:12.6},S),lt.createElement("path",{d:"M511.804 222.338c-57.117 0-105.737 20.061-145.86 60.184-40.122 40.123-60.184 88.569-60.184 145.337 0 56.769 20.062 105.214 60.185 145.337 40.122 40.123 88.742 60.185 145.859 60.185 57.116 0 105.736-20.062 145.859-60.185 40.123-40.123 60.184-88.568 60.184-145.337 0-56.768-20.061-105.214-60.184-145.337-40.123-40.123-88.743-60.184-145.86-60.184z m0 338.619c-36.729 0-68.007-12.925-93.835-38.774-25.827-25.85-38.752-57.127-38.773-93.834-0.022-36.707 12.902-68.16 38.773-94.357 25.872-26.197 57.15-39.285 93.835-39.263 36.685 0.022 67.963 13.11 93.834 39.263 25.871 26.154 38.796 57.606 38.774 94.357-0.022 36.75-12.946 68.028-38.774 93.834-25.828 25.806-57.106 38.73-93.834 38.774z m366.165-295.766c-21.084-42.168-50.327-79.223-87.73-111.165-37.404-31.941-79.898-57.105-127.484-75.491C614.472 60.845 564.155 52 511.804 52c-52.352 0-103.006 8.845-151.963 26.535-46.911 18.364-89.069 43.528-126.472 75.491-37.403 31.964-66.647 69.019-87.731 111.165C123.879 308.71 113 353.923 113 400.835c0 65.95 15.982 132.924 47.945 200.92 26.524 56.441 63.58 112.198 111.165 167.27 62.556 73.435 134.632 138.71 216.227 195.827 6.81 4.765 14.459 7.148 22.945 7.148 8.485 0 16.47-2.383 23.956-7.148 81.595-57.79 153.67-123.067 216.227-195.828 47.608-55.767 84.663-111.524 111.165-167.27 31.963-67.995 47.945-134.969 47.945-200.919 0-46.912-10.88-92.126-32.638-135.644h0.032z m-40.797 136.656c0 55.07-13.6 111.513-40.798 169.326-23.129 49.631-56.452 99.948-99.97 150.95-52.351 61.208-113.885 117.65-184.6 169.326-70.716-51.676-132.25-108.118-184.6-169.326-42.844-51.002-76.167-101.319-99.971-150.95-27.198-57.791-40.797-114.57-40.797-170.338 0-36.032 8.159-70.716 24.478-104.05 16.994-32.638 40.45-61.882 70.368-87.73 30.592-26.525 65.276-47.26 104.05-62.209 40.797-14.97 82.954-22.455 126.472-22.455 43.517 0 85.675 7.485 126.472 22.455 38.752 14.97 73.436 35.706 104.05 62.208 30.593 25.85 54.048 55.093 70.367 87.731 16.32 34.009 24.479 69.03 24.479 105.062z",fill:"currentColor"})),jd=S=>lt.createElement("svg",Tr({className:"antv-s2-icon",width:"16px",height:"16px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},S),lt.createElement("path",{d:"M18.0047888,16.4055 C18.1082888,16.4055 18.1922888,16.4895 18.1922888,16.593 L18.1922888,17.9055 C18.1922888,18.0090534 18.1083422,18.093 18.0047888,18.093 L9.37978883,18.093 C9.27623544,18.093 9.19228883,18.0090534 9.19228883,17.9055 L9.19228883,16.593 C9.19228883,16.4895 9.27628883,16.4055 9.37978883,16.4055 L18.0047888,16.4055 Z M4.41328883,1.6665 L4.46428883,1.7115 L7.08928883,5.0385 C7.17478883,5.1435 7.12078883,5.2935 7.00528883,5.3325 L6.94228883,5.343 L5.16028883,5.343 L5.16028883,14.25 L6.94228883,14.25 C7.09978883,14.25 7.18828883,14.433 7.08928883,14.5545 L4.46428883,17.88 C4.42872537,17.9249155 4.37457895,17.9511073 4.31728883,17.9511073 C4.25999871,17.9511073 4.20585229,17.9249155 4.17028883,17.88 L1.54528883,14.5545 C1.50119832,14.4981177 1.49305316,14.4215528 1.52429494,14.3571564 C1.55553672,14.2927601 1.62071465,14.2517677 1.69228883,14.2515 L3.47428883,14.2515 L3.47428883,5.343 L1.69228883,5.343 C1.63110128,5.34394015 1.57330492,5.31496201 1.53745415,5.26536844 C1.50160338,5.21577487 1.49220972,5.15180683 1.51228883,5.094 L1.54528883,5.0385 L4.17028883,1.713 C4.22854609,1.63918993 4.33246412,1.61994585 4.41328883,1.668 L4.41328883,1.6665 Z M15.7547888,11.4375 C15.8582888,11.4375 15.9422888,11.5215 15.9422888,11.625 L15.9422888,12.9375 C15.9422888,13.0410534 15.8583422,13.125 15.7547888,13.125 L9.37978883,13.125 C9.33006074,13.125 9.28236938,13.1052456 9.24720631,13.0700825 C9.21204324,13.0349195 9.19228883,12.9872281 9.19228883,12.9375 L9.19228883,11.625 C9.19228883,11.5215 9.27628883,11.4375 9.37978883,11.4375 L15.7547888,11.4375 Z M21.7547888,6.468 C21.8582888,6.468 21.9422888,6.5535 21.9422888,6.6555 L21.9422888,7.968 C21.9422888,8.07155339 21.8583422,8.1555 21.7547888,8.1555 L9.37978883,8.1555 C9.33006074,8.1555 9.28236938,8.13574559 9.24720631,8.10058252 C9.21204324,8.06541945 9.19228883,8.01772809 9.19228883,7.968 L9.19228883,6.6555 C9.19228883,6.5535 9.27628883,6.468 9.37978883,6.468 L21.7547888,6.468 Z M13.5047888,1.5 C13.6082888,1.5 13.6922888,1.584 13.6922888,1.6875 L13.6922888,3 C13.6922888,3.10355339 13.6083422,3.1875 13.5047888,3.1875 L9.37978883,3.1875 C9.33006074,3.1875 9.28236938,3.16774559 9.24720631,3.13258252 C9.21204324,3.09741945 9.19228883,3.04972809 9.19228883,3 L9.19228883,1.6875 C9.19228883,1.584 9.27628883,1.5 9.37978883,1.5 L13.5047888,1.5 Z",fill:"#595959"})),wa=S=>lt.createElement("svg",Tr({width:"12px",height:"12px",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg"},S),lt.createElement("g",{stroke:"none",fill:"none",fillRule:"evenodd"},lt.createElement("g",{transform:"translate(-153.000000, -608.000000)",fill:"#595959"},lt.createElement("g",{transform:"translate(127.000000, 549.000000)"},lt.createElement("g",{transform:"translate(24.000000, 57.000000)"},lt.createElement("g",{transform:"translate(2.000000, 2.000000)"},lt.createElement("path",{d:"M0.771428571,3.77142857 L3.77142857,3.77142857 L3.77142857,5.65714286 L0.771428571,5.65714286 L0.771428571,3.77142857 Z M0.771428571,6.34285714 L3.77142857,6.34285714 L3.77142857,8.57142857 L0.771428571,8.57142857 L0.771428571,6.34285714 Z M0.771428571,9 L3.77142857,9 L3.77142857,11.2285714 L0.771428571,11.2285714 L0.771428571,9 Z"}),lt.createElement("path",{d:"M0.771428571,9 L0.771428571,11.2285714 L11.2285714,11.2285714 L11.2285714,3.77142857 L0.771428571,3.77142857 L0.771428571,5.65714286 L3.77142857,5.65714286 L3.77142857,3.77142857 L4.54285714,3.77142857 L4.54285714,11.3142857 L3.77142857,11.3142857 L3.77142857,9.08571429 L0.771428571,9.08571429 L0.771428571,9 Z M0.771428571,8.22857143 L3.77142857,8.22857143 L3.77142857,6.34285714 L0.771428571,6.34285714 L0.771428571,8.22857143 L0.771428571,8.22857143 Z M11.2285714,3 L11.2285714,0.771428571 L0.771428571,0.771428571 L0.771428571,3 L11.2285714,3 Z M12,0 L12,12 L0,12 L0,0 L12,0 Z"}))))))),G_=S=>lt.createElement("svg",Tr({width:"12px",height:"12px",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg"},S),lt.createElement("g",{stroke:"none",fill:"none",fillRule:"evenodd"},lt.createElement("g",{transform:"translate(-153.000000, -814.000000)",fill:"#595959",fillRule:"nonzero"},lt.createElement("g",{transform:"translate(127.000000, 549.000000)"},lt.createElement("g",{transform:"translate(24.000000, 55.000000)"},lt.createElement("g",{transform:"translate(0.000000, 208.000000)"},lt.createElement("g",{transform:"translate(2.000000, 2.000000)"},lt.createElement("path",{d:"M4.45714286,11.2285714 L11.2285714,11.2285714 L11.2285714,3.77142857 L4.45714286,3.77142857 L4.45714286,11.2285714 Z M3.77142857,11.2285714 L3.77142857,3.77142857 L0.771428571,3.77142857 L0.771428571,11.3142857 L3.77142857,11.3142857 L3.77142857,11.2285714 Z M11.2285714,3 L11.2285714,0.771428571 L0.771428571,0.771428571 L0.771428571,3 L11.2285714,3 Z M12,0 L12,12 L0,12 L0,0 L12,0 Z"}),lt.createElement("polygon",{points:"0.771428571 0.771428571 11.2285714 0.771428571 11.2285714 3 0.771428571 3"})))))))),ZT=S=>lt.createElement("svg",Tr({width:"12px",height:"12px",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg"},S),lt.createElement("g",{stroke:"none",fill:"none",fillRule:"evenodd"},lt.createElement("g",{transform:"translate(-365.000000, -624.000000)",fill:"#595959"},lt.createElement("g",{transform:"translate(127.000000, 549.000000)"},lt.createElement("g",{transform:"translate(236.000000, 71.000000)"},lt.createElement("g",{transform:"translate(0.000000, 2.000000)"},lt.createElement("g",{transform:"translate(2.000000, 2.000000)"},lt.createElement("polygon",{points:"4.22857143 3.77142857 11.2285714 3.77142857 11.2285714 11.7714286 4.22857143 11.7714286"}),lt.createElement("path",{d:"M4.45714286,11.2285714 L11.2285714,11.2285714 L11.2285714,3.77142857 L4.45714286,3.77142857 L4.45714286,11.2285714 Z M3.77142857,11.2285714 L3.77142857,3.77142857 L0.771428571,3.77142857 L0.771428571,11.3142857 L3.77142857,11.3142857 L3.77142857,11.2285714 Z M11.2285714,3 L11.2285714,0.771428571 L0.771428571,0.771428571 L0.771428571,3 L11.2285714,3 Z M12,0 L12,12 L0,12 L0,0 L12,0 Z"})))))))),rs=S=>lt.createElement("svg",Tr({className:"antv-s2-icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:12.6,height:12.6},S),lt.createElement("path",{d:"M950.016 898.016l-206.016-204.992Q832 586.016 832 448.032q0-159.008-112.512-271.488T448 64.032 176.512 176.544 64 448.032t112.512 271.488T448 832.032q138.016 0 244.992-88l206.016 206.016q10.016 10.016 24.992 10.016t26.016-10.016q10.016-11.008 10.016-26.016t-10.016-26.016zM568.992 736Q512 760 448 760T327.008 736q-56-24-99.488-67.488t-66.496-99.488q-24.992-56.992-24.992-120.992t24.992-120.992q23.008-56 66.496-99.488t99.488-67.488Q384 136.064 448 136.064t120.992 24q56 24 99.488 67.488t67.488 99.488q24 56.992 24 120.992t-24 120.992q-24 56-67.488 99.488T568.992 736z",fill:"currentColor"})),$_=S=>lt.createElement("svg",Tr({className:"antv-s2-icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:12.6,height:12.6},S),lt.createElement("path",{d:"M86.016 805.888H0L143.872 275.968h79.36l144.896 529.92H276.992l-29.696-109.056H115.2s-29.696 109.056-29.184 109.056zM225.28 613.376L181.248 455.68 138.24 613.376h87.04zM519.168 430.08c24.576-16.384 47.616-25.088 69.12-25.088 30.72 0 58.368 14.848 81.92 44.032 24.064 29.184 35.328 72.192 35.328 128.512 0 44.032-7.168 83.456-22.528 118.272-14.848 34.816-35.328 62.976-60.416 83.456-26.112 20.992-57.856 31.232-95.232 31.232-15.36-0.512-31.232-1.536-46.592-3.584-4.096-0.512-8.704-1.024-12.8-1.536h-66.56V256h81.92v206.336c11.264-12.8 23.04-23.552 35.84-32.256z m-35.328 157.184v135.168c13.824 3.072 26.112 4.608 37.376 4.608 27.648 0 50.176-11.776 69.12-36.352 19.456-25.088 28.672-59.392 28.672-104.96 0-32.256-5.12-55.296-14.848-70.144-9.216-13.824-18.432-19.968-28.672-19.968-12.288 0-27.136 7.68-44.544 24.064-16.896 16.896-32.768 39.424-47.104 67.584zM1013.76 794.624c-36.864 14.336-71.68 20.992-104.96 20.992-32.768 0.512-64.512-9.216-91.648-27.136-27.136-18.432-48.64-44.032-62.464-73.728-14.848-30.72-22.528-65.536-22.528-104.448 0-58.88 16.896-108.032 51.2-146.944 33.792-38.912 75.264-58.88 123.392-58.88 34.304 0 70.144 7.168 108.032 21.504l10.24 4.096v95.232l-20.992-10.752c-34.816-17.92-65.536-26.624-92.16-26.624-16.896 0-32.768 4.608-47.104 13.824-13.824 8.704-25.088 23.04-32.768 42.496-8.192 19.968-12.288 41.472-12.288 63.488 0 28.672 7.68 55.808 24.064 82.432 14.848 24.576 37.888 36.352 71.168 36.352 10.752 0 21.504-1.024 31.744-2.56 9.728-1.536 29.696-8.192 58.88-18.944l19.456-7.68v92.672l-11.264 4.608z",fill:"currentColor"})),Xx=S=>lt.createElement("svg",Tr({width:"16px",height:"16px",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},S),lt.createElement("g",{transform:"translate(8.056364, 8.000227) rotate(-270.000000) translate(-8.056364, -8.000227) translate(3.057045, 3.070227)",fill:"currentColor"},lt.createElement("path",{d:"M0.482272727,3.55181818 C0.472878788,3.55181818 0.468181818,3.54939394 0.468181818,3.54454545 C0.468181818,3.53969697 0.465757576,3.53727273 0.460909091,3.53727273 L0.396818182,3.53727273 L0.382727273,3.52318182 L0.34,3.52318182 L0.325909091,3.50909091 L0.311818182,3.50909091 L0.297727273,3.495 L0.269090909,3.495 L0.269090909,3.48090909 L0.255,3.48090909 L0.240909091,3.46681818 L0.226818182,3.46681818 L0.226818182,3.45272727 L0.212727273,3.45272727 L0.184090909,3.42409091 L0.17,3.42409091 C0.160606061,3.405 0.151060606,3.39075758 0.141363636,3.38136364 C0.131969697,3.38136364 0.127272727,3.37893939 0.127272727,3.37409091 L0.127272727,3.36681818 L0.113181818,3.35272727 L0.113181818,3.33863636 L0.0990909091,3.33863636 L0.0990909091,3.32454545 L0.085,3.31045455 L0.085,3.30318182 L0.0777272727,3.29590909 L0.0704545455,3.29590909 L0.0704545455,3.28181818 L0.0563636364,3.26772727 L0.0563636364,3.24636364 L0.0490909091,3.23909091 L0.0418181818,3.23909091 L0.0418181818,3.225 C0.0418181818,3.21560606 0.0393939394,3.21090909 0.0345454545,3.21090909 C0.0296969697,3.21090909 0.0272727273,3.20848485 0.0272727273,3.20363636 L0.0272727273,3.15409091 L0.0131818182,3.14 L0.0131818182,2.94090909 L0.0272727273,2.92681818 L0.0272727273,2.88409091 C0.0366666667,2.87469697 0.0413636364,2.86757576 0.0413636364,2.86272727 L0.0413636364,2.84136364 L0.0554545455,2.82727273 L0.0554545455,2.81318182 L0.0695454545,2.79909091 L0.0695454545,2.79181818 L0.0768181818,2.77772727 L0.0840909091,2.77045455 L0.0840909091,2.76318182 L0.0913636364,2.75590909 L0.0986363636,2.74863636 L0.0986363636,2.74136364 L0.112727273,2.72727273 C0.112727273,2.71787879 0.117424242,2.71318182 0.126818182,2.71318182 L0.126818182,2.69909091 L0.140909091,2.69909091 L2.68363636,0.156363636 C2.77848485,0.0521212121 2.89681818,0 3.03863636,0 C3.18045455,0 3.29878788,0.0521212121 3.39363636,0.156363636 C3.49787879,0.260606061 3.55,0.381363636 3.55,0.518636364 C3.55,0.655909091 3.49787879,0.776666667 3.39363636,0.880909091 L1.74590909,2.52863636 L9.48727273,2.52863636 C9.62939394,2.52863636 9.75015152,2.57833333 9.84954545,2.67772727 C9.94893939,2.77712121 9.99863636,2.89787879 9.99863636,3.04 C9.99863636,3.18212121 9.94893939,3.30287879 9.84954545,3.40227273 C9.75015152,3.50166667 9.62939394,3.55136364 9.48727273,3.55136364 L0.481363636,3.55136364 L0.482272727,3.55181818 Z M9.51636364,6.30727273 C9.52575758,6.30727273 9.53045455,6.30969697 9.53045455,6.31454545 C9.53045455,6.31939394 9.53287879,6.32181818 9.53772727,6.32181818 L9.60181818,6.32181818 L9.61590909,6.33590909 L9.65863636,6.33590909 L9.65863636,6.35 L9.68727273,6.35 L9.70136364,6.36409091 L9.73,6.36409091 L9.73,6.37818182 L9.74409091,6.37818182 L9.75818182,6.39227273 L9.77227273,6.39227273 L9.77227273,6.40636364 L9.78636364,6.40636364 L9.815,6.435 L9.82909091,6.435 C9.83848485,6.45409091 9.8480303,6.46833333 9.85772727,6.47772727 C9.86712121,6.47772727 9.87181818,6.48015152 9.87181818,6.485 L9.87181818,6.49227273 L9.88590909,6.50636364 L9.88590909,6.52045455 L9.9,6.52045455 L9.9,6.53454545 L9.90727273,6.53454545 L9.91454545,6.54181818 L9.91454545,6.55590909 L9.92181818,6.56318182 L9.92909091,6.57045455 L9.92909091,6.57772727 L9.94318182,6.59181818 L9.94318182,6.61318182 L9.95045455,6.62045455 L9.95772727,6.62045455 L9.95772727,6.64909091 L9.965,6.65636364 L9.97227273,6.67045455 L9.97227273,6.70590909 L9.98636364,6.72 L9.98636364,6.91909091 L9.97227273,6.93318182 L9.97227273,6.97590909 L9.95818182,6.99 L9.95818182,7.01863636 L9.94409091,7.03272727 L9.94409091,7.04681818 L9.93,7.06090909 L9.93,7.06818182 L9.92272727,7.08227273 L9.91545455,7.08954545 L9.91545455,7.09681818 L9.90818182,7.10409091 L9.90090909,7.11136364 L9.90090909,7.11863636 L9.88681818,7.13272727 C9.88681818,7.14212121 9.88439394,7.14681818 9.87954545,7.14681818 L9.87227273,7.14681818 L9.87227273,7.16090909 L9.85818182,7.16090909 L9.85090909,7.16818182 L9.84363636,7.18954545 L7.32954545,9.70363636 C7.22530303,9.80787879 7.10212121,9.86 6.96,9.86 C6.81787879,9.86 6.69954545,9.80787879 6.605,9.70363636 C6.50075758,9.60878788 6.44863636,9.49045455 6.44863636,9.34863636 C6.44863636,9.20681818 6.50075758,9.08363636 6.605,8.97909091 L8.25272727,7.33136364 L0.511363636,7.33136364 C0.378636364,7.33136364 0.26030303,7.28166667 0.156363636,7.18227273 C0.0524242424,7.08287879 0.000303030303,6.96212121 4.54747351e-13,6.82 C4.54747351e-13,6.67787879 0.0521212121,6.55712121 0.156363636,6.45772727 C0.260606061,6.35833333 0.378939394,6.30863636 0.511363636,6.30863636 L9.51727273,6.30863636 L9.51636364,6.30727273 Z"}))),G0=oe().memo(S=>{const T=S,{className:L,icon:G,syncCopy:Z=!1,copyOriginalText:K=(0,Ve.agQ)("\u590D\u5236\u539F\u59CB\u6570\u636E"),copyFormatText:ne=(0,Ve.agQ)("\u590D\u5236\u683C\u5F0F\u5316\u6570\u636E"),downloadOriginalText:ae=(0,Ve.agQ)("\u4E0B\u8F7D\u539F\u59CB\u6570\u636E"),downloadFormatText:me=(0,Ve.agQ)("\u4E0B\u8F7D\u683C\u5F0F\u5316\u6570\u636E"),successText:Le=(0,Ve.agQ)("\u64CD\u4F5C\u6210\u529F"),errorText:Ge=(0,Ve.agQ)("\u64CD\u4F5C\u5931\u8D25"),sheet:Pe,fileName:Ne}=T,at=jn(T,["className","icon","syncCopy","copyOriginalText","copyFormatText","downloadOriginalText","downloadFormatText","successText","errorText","sheet","fileName"]),kt=`${Ve.vhY}-export`,Cr=Fr=>{const dn=(0,Ve.F1h)(Pe," ",Fr);(0,Ve.vQq)(dn,Z).then(()=>{Ce.message.success(Le)}).catch(zr=>{console.log("copy failed: ",zr),Ce.message.error(Ge)})},wr=Fr=>{const dn=(0,Ve.F1h)(Pe,",",Fr);try{(0,Ve.LRf)(dn,Ne),Ce.message.success(Le)}catch(zr){Ce.message.error(Ge)}},Ar=oe().createElement(Ce.Menu,null,oe().createElement(Ce.Menu.Item,{key:"copyOriginal",onClick:()=>Cr(!1)},K),oe().createElement(Ce.Menu.Item,{key:"copyFormat",onClick:()=>Cr(!0)},ne),oe().createElement(Ce.Menu.Item,{key:"downloadOriginal",onClick:()=>wr(!1)},ae),oe().createElement(Ce.Menu.Item,{key:"downloadFormat",onClick:()=>wr(!0)},me));return oe().createElement(Ce.Dropdown,Tr({overlay:Ar,trigger:["click"],className:Nl(kt,L)},at),oe().createElement("a",{className:"ant-dropdown-link",key:"export",onClick:Fr=>Fr.preventDefault()},G||oe().createElement(dg,null)))});G0.displayName="Export",G0.defaultProps={syncCopy:!1,fileName:"sheet"};const $M=S=>{const{splitOrders:T=[],setSplitOrders:L}=S,G=ae=>{const me=T.concat();me.splice(me.indexOf(ae),1),me.unshift(ae),L(me)},Z=ae=>{const me=T.concat();let Le=me.indexOf(ae);me.splice(me.indexOf(ae),1),me.splice(Le+=1,0,ae),L(me)},K=ae=>{const me=T.concat();let Le=me.indexOf(ae);Le>0&&(me.splice(me.indexOf(ae),1),me.splice(Le-=1,0,ae),L(me))},ne=ae=>oe().createElement(oe().Fragment,null,oe().createElement("span",{className:"split-text"},ae),oe().createElement("span",{className:`${ir}-split-icon`,onClick:()=>{G(ae)}},oe().createElement(z0,{name:"groupAsc"})),oe().createElement("span",{className:`${ir}-split-icon`,onClick:()=>{Z(ae)}},oe().createElement(z0,{name:"groupDesc"})),oe().createElement("span",{className:`${ir}-split-icon`,onClick:()=>{K(ae)}},oe().createElement(z0,{name:"globalAsc"})));return oe().createElement(Ce.Card,{className:`${ir}-card-content`},T.map(ae=>oe().createElement("li",{key:ae,className:`${ir}-split-value`,title:ae},ne(ae))))};var js="";const{Sider:UM,Content:vC}=Ce.Layout,U_=({sheet:S,className:T,icon:L,text:G,ruleText:Z,dimensions:K,ruleOptions:ne,sortParams:ae,onSortOpen:me,onSortConfirm:Le})=>{const[Ge,Pe]=(0,lt.useState)(!1),[Ne,at]=(0,lt.useState)(!1),[kt,Cr]=(0,lt.useState)([]),[wr,Ar]=(0,lt.useState)([]),[Fr,dn]=(0,lt.useState)([]),[zr,Yn]=(0,lt.useState)([]),[Cn,Hn]=(0,lt.useState)([]),[Jn,Pi]=(0,lt.useState)(),[Da]=Ce.Form.useForm(),Aa=oe().useMemo(Vt,[]),il=oe().useMemo(zt,[]),as=()=>{Pe(!Ge)},Yo=()=>{me&&me(),as()},Al=()=>{at(!Ne)},hs=fa=>{es(kt,$a=>$a.field===fa.field)||(Pi(fa),Cr([...kt,fa])),Yn(Yc(zr,$a=>$a.field!==fa.field))},Ac=(fa,$a)=>{var ro;Al(),Pi(fa),Hn(kr($a||((ro=es(Fr,Yl=>Yl.field===fa.field))==null?void 0:ro.list)||[]))},lf=()=>{Al();const fa=Da.getFieldsValue([Jn==null?void 0:Jn.field]);fa.sortBy=Cn,Da.setFieldsValue({[Jn==null?void 0:Jn.field]:fa});const $a=el(kt,ro=>ro.field===(Jn==null?void 0:Jn.field)?fn(Tr({},ro),{rule:"sortBy",sortBy:Cn,sortMethod:"",sortByMeasure:""}):ro);Cr($a)},Mo=()=>{Al()},cu=fa=>{Cr(Yc(kt,$a=>$a.field!==fa.field)),Yn([...zr,fa])},Oh=()=>{const fa=Da.getFieldsValue(),{values:$a=[]}=S.dataCfg.fields,ro=[],Yl=[];yf(dc(fa),oc=>{const{sortMethod:lc,rule:Ic=[],sortBy:Rc}=fa[oc],Dc={sortFieldId:oc};Ic[0]==="sortByMeasure"||Ic[1]?(uh($a,Ic[1])?Dc.sortByMeasure=Ic[1]:Dc.sortByMeasure=Ve.Teh,Dc.sortMethod=lc,Dc.query={$$extra$$:Ic[1]}):Ic[0]==="sortBy"?Dc.sortBy=Rc:Dc.sortMethod=lc,ro.push(Tr({field:oc},fa[oc])),Yl.push(Dc)}),Le&&Le(ro,Yl),as()},fu=fa=>Yc(fa,$a=>!es(ae,ro=>ro.sortFieldId===$a.field)),Ff=()=>{if(K)return K;const{fields:fa={}}=S.dataCfg||{},{rows:$a=[],columns:ro=[]}=fa;return el([...$a,...ro],Yl=>({field:Yl,name:S.dataSet.getFieldName(Yl),list:S.dataSet.getDimensionValues(Yl)}))},hv=()=>ne||el(Aa,fa=>{if(fa.value==="sortByMeasure"){const{values:$a}=S.dataCfg.fields||{};fa.children=el($a,ro=>({label:S.dataSet.getFieldName(ro),value:ro}))}return fa}),Nf=()=>el(ae,fa=>{const{sortFieldId:$a,sortMethod:ro,sortBy:Yl,sortByMeasure:oc}=fa;let lc;return Yl?lc=["sortBy"]:oc?lc=["sortByMeasure",oc]:lc=["sortMethod"],{field:$a,name:S.dataSet.getFieldName($a),rule:lc,sortMethod:ro,sortBy:Yl,sortByMeasure:oc}}),dv=()=>oe().createElement(UM,{width:120,className:`${ir}-sider-layout`},oe().createElement("div",{className:`${ir}-title`},(0,Ve.agQ)("\u53EF\u9009\u5B57\u6BB5")),oe().createElement("div",null,el(zr,fa=>oe().createElement("div",{className:`${ir}-dimension-item`,key:fa.field,onClick:()=>{hs(fa)}},fa.name)))),vv=()=>oe().createElement(vC,{className:`${ir}-content-layout`},oe().createElement("div",{className:`${ir}-title`},Z||(0,Ve.agQ)("\u6309\u4EE5\u4E0B\u89C4\u5219\u8FDB\u884C\u6392\u5E8F\uFF08\u4F18\u5148\u7EA7\u7531\u4F4E\u5230\u9AD8\uFF09")),oe().createElement(Ce.Form,{form:Da,name:"form",className:`${ir}-custom-form`},el(kt,fa=>{const{field:$a,name:ro,rule:Yl,sortMethod:oc,sortBy:lc}=fa||{};return oe().createElement(Ce.Form.Item,{name:$a,key:$a},oe().createElement(Ce.Form.Item,{name:[$a,"name"],initialValue:ro,noStyle:!0},oe().createElement(Ce.Select,{className:`${ir}-select`,size:"small"})),oe().createElement("span",{className:`${ir}-field-prefix`},(0,Ve.agQ)("\u6309")),oe().createElement(Ce.Form.Item,{name:[$a,"rule"],initialValue:Yl||["sortMethod"],noStyle:!0},oe().createElement(Ce.Cascader,{options:wr,expandTrigger:"hover",size:"small",allowClear:!1})),oe().createElement(Ce.Form.Item,{shouldUpdate:!0,noStyle:!0},({getFieldValue:Ic})=>yc(Ic([$a,"rule"]),["sortBy"])?oe().createElement(oe().Fragment,null,oe().createElement("a",{className:`${ir}-rule-end`,onClick:()=>{Ac(fa,lc)}},(0,Ve.agQ)("\u8BBE\u7F6E\u987A\u5E8F")),oe().createElement(Ce.Form.Item,{noStyle:!0,name:[$a,"sortBy"],initialValue:lc})):oe().createElement(Ce.Form.Item,{shouldUpdate:!0,noStyle:!0,name:[$a,"sortMethod"],initialValue:hC(oc)||"ASC"},oe().createElement(Ce.Radio.Group,{className:`${ir}-rule-end`},el(il,Rc=>oe().createElement(Ce.Radio,{value:Rc.value,key:Rc.value},Rc.name))))),oe().createElement(ie.DeleteOutlined,{className:`${ir}-rule-end-delete`,onClick:()=>{cu(fa)}}))})));return(0,lt.useEffect)(()=>{if(Ge){const fa=Nf(),$a=Ff(),ro=fu($a),Yl=hv();Cr(fa),dn($a),Yn(ro),Ar(Yl)}},[Ge]),oe().createElement("div",{className:Nl(ir,T)},oe().createElement(Ce.Button,{onClick:Yo,icon:L||oe().createElement(jd,null),size:"small",className:`${ir}-btn`},G||(0,Ve.agQ)("\u9AD8\u7EA7\u6392\u5E8F")),oe().createElement(Ce.Modal,{title:G||(0,Ve.agQ)("\u9AD8\u7EA7\u6392\u5E8F"),visible:Ge,onOk:Oh,onCancel:as,okText:(0,Ve.agQ)("\u786E\u5B9A"),cancelText:(0,Ve.agQ)("\u53D6\u6D88"),destroyOnClose:!0,className:`${ir}-modal`},oe().createElement(Ce.Layout,null,dv(),vv())),oe().createElement(Ce.Modal,{title:(0,Ve.agQ)("\u624B\u52A8\u6392\u5E8F"),visible:Ne,onOk:lf,onCancel:Mo,okText:(0,Ve.agQ)("\u786E\u5B9A"),cancelText:(0,Ve.agQ)("\u53D6\u6D88"),destroyOnClose:!0,className:`${ir}-custom-modal`},oe().createElement($M,{splitOrders:Cn,setSplitOrders:Hn})))},YM="switcher";var Mu=(S=>(S.Rows="rows",S.Cols="columns",S.Values="values",S))(Mu||{}),vg=(S=>(S.Dimensions="dimensions",S.Measures="measures",S.Rows="rows",S.Cols="cols",S))(vg||{});const Vd=["rows","columns","values"],$0=S=>S instanceof Ve.HZt?"table":"pivot",Rb=(S,T)=>{const L=S instanceof Ve.TA7&&T===Mu.Values||S instanceof Ve.HZt&&T===Mu.Cols,G=S instanceof Ve.TA7&&T===Mu.Values;return{selectable:L,expandable:G}},pg=(S,{fields:T={},meta:L=[]}={},G=[])=>Vd.reduce((Z,K)=>{const ne=T[K];if(_o(ne))return Z;const ae=el(ne,me=>{const Le=es(L,["field",me]);return{id:me,displayName:Le==null?void 0:Le.name,checked:!G.includes(me)}});return Z[K]=Tr({items:ae},Rb(S,K)),Z},{}),Db=(S,T)=>{const L=S instanceof Ve.HZt,G=Vd.reduce((K,ne)=>{var ae,me,Le,Ge;const Pe=(me=(ae=T[ne])==null?void 0:ae.items)!=null?me:[],Ne=(Ge=(Le=T[ne])==null?void 0:Le.hideItems)!=null?Ge:[];return K[ne]=Yc(Pe,at=>!Ne.find(kt=>!L&&kt.id===at.id)).map(at=>at.id),K},{}),Z=L?T[Mu.Cols].hideItems.map(K=>K.id):void 0;return{fields:G,hiddenColumnFields:Z}},Lb=S=>rd(S,(T,L,G)=>(T.fields[G]=el(L.items,"id"),T.hiddenFields.push(...el(L.hideItems,"id")),T),{fields:{},hiddenFields:[]}),pC=(S,T,L=[],G=[])=>{const{fields:Z,hiddenFields:K}=Lb(T);return pg(S,{fields:Z,meta:L},K.concat(G))};function gC(S,T){return gC=Object.setPrototypeOf||function(G,Z){return G.__proto__=Z,G},gC(S,T)}function Xd(S,T){S.prototype=Object.create(T.prototype),S.prototype.constructor=S,gC(S,T)}function Ui(){return Ui=Object.assign||function(S){for(var T=1;T=0)&&(L[Z]=S[Z]);return L}var Kd={exports:{}},xa={};var uo=typeof Symbol=="function"&&Symbol.for,Fb=uo?Symbol.for("react.element"):60103,qd=uo?Symbol.for("react.portal"):60106,Qd=uo?Symbol.for("react.fragment"):60107,Tl=uo?Symbol.for("react.strict_mode"):60108,hl=uo?Symbol.for("react.profiler"):60114,V0=uo?Symbol.for("react.provider"):60109,Cg=uo?Symbol.for("react.context"):60110,X0=uo?Symbol.for("react.async_mode"):60111,Je=uo?Symbol.for("react.concurrent_mode"):60111,lp=uo?Symbol.for("react.forward_ref"):60112,Z0=uo?Symbol.for("react.suspense"):60113,V_=uo?Symbol.for("react.suspense_list"):60120,vh=uo?Symbol.for("react.memo"):60115,id=uo?Symbol.for("react.lazy"):60116,ns=uo?Symbol.for("react.block"):60121,Qx=uo?Symbol.for("react.fundamental"):60117,Nb=uo?Symbol.for("react.responder"):60118,Hb=uo?Symbol.for("react.scope"):60119;function Hl(S){if(typeof S=="object"&&S!==null){var T=S.$$typeof;switch(T){case Fb:switch(S=S.type,S){case X0:case Je:case Qd:case hl:case Tl:case Z0:return S;default:switch(S=S&&S.$$typeof,S){case Cg:case lp:case id:case vh:case V0:return S;default:return T}}case qd:return T}}}function Qa(S){return Hl(S)===Je}xa.AsyncMode=X0,xa.ConcurrentMode=Je,xa.ContextConsumer=Cg,xa.ContextProvider=V0,xa.Element=Fb,xa.ForwardRef=lp,xa.Fragment=Qd,xa.Lazy=id,xa.Memo=vh,xa.Portal=qd,xa.Profiler=hl,xa.StrictMode=Tl,xa.Suspense=Z0,xa.isAsyncMode=function(S){return Qa(S)||Hl(S)===X0},xa.isConcurrentMode=Qa,xa.isContextConsumer=function(S){return Hl(S)===Cg},xa.isContextProvider=function(S){return Hl(S)===V0},xa.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===Fb},xa.isForwardRef=function(S){return Hl(S)===lp},xa.isFragment=function(S){return Hl(S)===Qd},xa.isLazy=function(S){return Hl(S)===id},xa.isMemo=function(S){return Hl(S)===vh},xa.isPortal=function(S){return Hl(S)===qd},xa.isProfiler=function(S){return Hl(S)===hl},xa.isStrictMode=function(S){return Hl(S)===Tl},xa.isSuspense=function(S){return Hl(S)===Z0},xa.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===Qd||S===Je||S===hl||S===Tl||S===Z0||S===V_||typeof S=="object"&&S!==null&&(S.$$typeof===id||S.$$typeof===vh||S.$$typeof===V0||S.$$typeof===Cg||S.$$typeof===lp||S.$$typeof===Qx||S.$$typeof===Nb||S.$$typeof===Hb||S.$$typeof===ns)},xa.typeOf=Hl,Kd.exports=xa;var sp=Kd.exports,Kc={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},zb={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Jd={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Jx={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},mC={};mC[sp.ForwardRef]=Jd,mC[sp.Memo]=Jx;function bc(S){return sp.isMemo(S)?Jx:mC[S.$$typeof]||Kc}var ev=Object.defineProperty,As=Object.getOwnPropertyNames,K0=Object.getOwnPropertySymbols,yC=Object.getOwnPropertyDescriptor,jM=Object.getPrototypeOf,ad=Object.prototype;function Sf(S,T,L){if(typeof T!="string"){if(ad){var G=jM(T);G&&G!==ad&&Sf(S,G,L)}var Z=As(T);K0&&(Z=Z.concat(K0(T)));for(var K=bc(S),ne=bc(T),ae=0;ae=0;G--){var Z=T[G](S);if(Z)return Z}return function(K,ne){throw new Error("Invalid value of type "+typeof S+" for "+L+" argument when connecting component "+ne.wrappedComponentName+".")}}function dp(S,T){return S===T}function nv(S){var T=S===void 0?{}:S,L=T.connectHOC,G=L===void 0?nS:L,Z=T.mapStateToPropsFactories,K=Z===void 0?Zu:Z,ne=T.mapDispatchToPropsFactories,ae=ne===void 0?Vb:ne,me=T.mergePropsFactories,Le=me===void 0?J_:me,Ge=T.selectorFactory,Pe=Ge===void 0?im:Ge;return function(at,kt,Cr,wr){wr===void 0&&(wr={});var Ar=wr,Fr=Ar.pure,dn=Fr===void 0?!0:Fr,zr=Ar.areStatesEqual,Yn=zr===void 0?dp:zr,Cn=Ar.areOwnPropsEqual,Hn=Cn===void 0?em:Cn,Jn=Ar.areStatePropsEqual,Pi=Jn===void 0?em:Jn,Da=Ar.areMergedPropsEqual,Aa=Da===void 0?em:Da,il=j0(Ar,hp),as=Sa(at,K,"mapStateToProps"),Yo=Sa(kt,ae,"mapDispatchToProps"),Al=Sa(Cr,Le,"mergeProps");return G(Pe,Ui({methodName:"connect",getDisplayName:function(Ac){return"Connect("+Ac+")"},shouldHandleStateChanges:!!at,initMapStateToProps:as,initMapDispatchToProps:Yo,initMergeProps:Al,pure:dn,areStatesEqual:Yn,areOwnPropsEqual:Hn,areStatePropsEqual:Pi,areMergedPropsEqual:Aa},il))}}var dl=nv();Y_(fr.unstable_batchedUpdates);function ou(S,T){if(S.length!==T.length)return!1;for(var L=0;L");return G.callbacks},G.setCallbacks=function(ae){G.callbacks=ae},G}var L=T.prototype;return L.componentDidMount=function(){this.unbind=Ho(window,[{eventName:"error",fn:this.onWindowError}])},L.componentDidCatch=function(Z){if(Z instanceof pp){this.setState({});return}throw Z},L.componentWillUnmount=function(){this.unbind()},L.render=function(){return this.props.children(this.setCallbacks)},T}(oe().Component),qu=` + Press space bar to start a drag. + When dragging you can use the arrow keys to move the item around and escape to cancel. + Some screen readers may require you to be in focus mode or to use your pass through key +`,PC=function(T){return T+1},qb=function(T){return` + You have lifted an item in position `+PC(T.source.index)+` +`},Qb=function(T,L){var G=T.droppableId===L.droppableId,Z=PC(T.index),K=PC(L.index);return G?` + You have moved the item from position `+Z+` + to position `+K+` + `:` + You have moved the item from position `+Z+` + in list `+T.droppableId+` + to list `+L.droppableId+` + in position `+K+` + `},fd=function(T,L,G){var Z=L.droppableId===G.droppableId;return Z?` + The item `+T+` + has been combined with `+G.draggableId:` + The item `+T+` + in list `+L.droppableId+` + has been combined with `+G.draggableId+` + in list `+G.droppableId+` + `},sS=function(T){var L=T.destination;if(L)return Qb(T.source,L);var G=T.combine;return G?fd(T.draggableId,T.source,G):"You are over an area that cannot be dropped on"},gp=function(T){return` + The item has returned to its starting position + of `+PC(T.index)+` +`},uS=function(T){if(T.reason==="CANCEL")return` + Movement cancelled. + `+gp(T.source)+` + `;var L=T.destination,G=T.combine;return L?` + You have dropped the item. + `+Qb(T.source,L)+` + `:G?` + You have dropped the item. + `+fd(T.draggableId,T.source,G)+` + `:` + The item has been dropped while not over a drop area. + `+gp(T.source)+` + `},gh={dragHandleUsageInstructions:qu,onDragStart:qb,onDragUpdate:sS,onDragEnd:uS},Wl={x:0,y:0},ia=function(T,L){return{x:T.x+L.x,y:T.y+L.y}},Ou=function(T,L){return{x:T.x-L.x,y:T.y-L.y}},vl=function(T,L){return T.x===L.x&&T.y===L.y},hd=function(T){return{x:T.x!==0?-T.x:0,y:T.y!==0?-T.y:0}},Qu=function(T,L,G){var Z;return G===void 0&&(G=0),Z={},Z[T]=L,Z[T==="x"?"y":"x"]=G,Z},iv=function(T,L){return Math.sqrt(Math.pow(L.x-T.x,2)+Math.pow(L.y-T.y,2))},lm=function(T,L){return Math.min.apply(Math,L.map(function(G){return iv(T,G)}))},ef=function(T){return function(L){return{x:T(L.x),y:T(L.y)}}},tf=function(S,T){var L=_c({top:Math.max(T.top,S.top),right:Math.min(T.right,S.right),bottom:Math.min(T.bottom,S.bottom),left:Math.max(T.left,S.left)});return L.width<=0||L.height<=0?null:L},mh=function(T,L){return{top:T.top+L.y,left:T.left+L.x,bottom:T.bottom+L.y,right:T.right+L.x}},cS=function(T){return[{x:T.left,y:T.top},{x:T.right,y:T.top},{x:T.left,y:T.bottom},{x:T.right,y:T.bottom}]},mp={top:0,right:0,bottom:0,left:0},sm=function(T,L){return L?mh(T,L.scroll.diff.displacement):T},Jb=function(T,L,G){if(G&&G.increasedBy){var Z;return Ui({},T,(Z={},Z[L.end]=T[L.end]+G.increasedBy[L.line],Z))}return T},Mg=function(T,L){return L&&L.shouldClipSubject?tf(L.pageMarginBox,T):_c(T)},dd=function(S){var T=S.page,L=S.withPlaceholder,G=S.axis,Z=S.frame,K=sm(T.marginBox,Z),ne=Jb(K,G,L),ae=Mg(ne,Z);return{page:T,withPlaceholder:L,active:ae}},BC=function(S,T){S.frame||zn(!1);var L=S.frame,G=Ou(T,L.scroll.initial),Z=hd(G),K=Ui({},L,{scroll:{initial:L.scroll.initial,current:T,diff:{value:G,displacement:Z},max:L.scroll.max}}),ne=dd({page:S.subject.page,withPlaceholder:S.subject.withPlaceholder,axis:S.axis,frame:K}),ae=Ui({},S,{frame:K,subject:ne});return ae};function um(S){return Object.values?Object.values(S):Object.keys(S).map(function(T){return S[T]})}function kC(S,T){if(S.findIndex)return S.findIndex(T);for(var L=0;LS.bottom,Le=G.leftS.right,Ge=me&&Le;if(Ge)return!0;var Pe=me&&ne||Le&&K;return Pe}},rw=function(S){var T=$l(S.top,S.bottom),L=$l(S.left,S.right);return function(G){var Z=T(G.top)&&T(G.bottom)&&L(G.left)&&L(G.right);return Z}},yp={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},dS={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},nw=function(S){return function(T){var L=$l(T.top,T.bottom),G=$l(T.left,T.right);return function(Z){return S===yp?L(Z.top)&&L(Z.bottom):G(Z.left)&&G(Z.right)}}},iw=function(T,L){var G=L.frame?L.frame.scroll.diff.displacement:Wl;return mh(T,G)},Ig=function(T,L,G){return L.subject.active?G(L.subject.active)(T):!1},Rg=function(T,L,G){return G(L)(T)},NC=function(T){var L=T.target,G=T.destination,Z=T.viewport,K=T.withDroppableDisplacement,ne=T.isVisibleThroughFrameFn,ae=K?iw(L,G):L;return Ig(ae,G,ne)&&Rg(ae,Z,ne)},eE=function(T){return NC(Ui({},T,{isVisibleThroughFrameFn:Ag}))},Dg=function(T){return NC(Ui({},T,{isVisibleThroughFrameFn:rw}))},aw=function(T){return NC(Ui({},T,{isVisibleThroughFrameFn:nw(T.destination.axis)}))},tE=function(T,L,G){if(typeof G=="boolean")return G;if(!L)return!0;var Z=L.invisible,K=L.visible;if(Z[T])return!1;var ne=K[T];return ne?ne.shouldAnimate:!0};function ow(S,T){var L=S.page.marginBox,G={top:T.point.y,right:0,bottom:0,left:T.point.x};return _c(Tu(L,G))}function hm(S){var T=S.afterDragging,L=S.destination,G=S.displacedBy,Z=S.viewport,K=S.forceShouldAnimate,ne=S.last;return T.reduce(function(me,Le){var Ge=ow(Le,G),Pe=Le.descriptor.id;me.all.push(Pe);var Ne=eE({target:Ge,destination:L,viewport:Z,withDroppableDisplacement:!0});if(!Ne)return me.invisible[Le.descriptor.id]=!0,me;var at=tE(Pe,ne,K),kt={draggableId:Pe,shouldAnimate:at};return me.visible[Pe]=kt,me},{all:[],visible:{},invisible:{}})}function dm(S,T){if(!S.length)return 0;var L=S[S.length-1].descriptor.index;return T.inHomeList?L:L+1}function vS(S){var T=S.insideDestination,L=S.inHomeList,G=S.displacedBy,Z=S.destination,K=dm(T,{inHomeList:L});return{displaced:Ch,displacedBy:G,at:{type:"REORDER",destination:{droppableId:Z.descriptor.id,index:K}}}}function vm(S){var T=S.draggable,L=S.insideDestination,G=S.destination,Z=S.viewport,K=S.displacedBy,ne=S.last,ae=S.index,me=S.forceShouldAnimate,Le=Gl(T,G);if(ae==null)return vS({insideDestination:L,inHomeList:Le,displacedBy:K,destination:G});var Ge=yh(L,function(Cr){return Cr.descriptor.index===ae});if(!Ge)return vS({insideDestination:L,inHomeList:Le,displacedBy:K,destination:G});var Pe=Og(T,L),Ne=L.indexOf(Ge),at=Pe.slice(Ne),kt=hm({afterDragging:at,destination:G,displacedBy:K,last:ne,viewport:Z.frame,forceShouldAnimate:me});return{displaced:kt,displacedBy:K,at:{type:"REORDER",destination:{droppableId:G.descriptor.id,index:ae}}}}function Ju(S,T){return!!T.effected[S]}var rE=function(S){var T=S.isMovingForward,L=S.destination,G=S.draggables,Z=S.combine,K=S.afterCritical;if(!L.isCombineEnabled)return null;var ne=Z.draggableId,ae=G[ne],me=ae.descriptor.index,Le=Ju(ne,K);return Le?T?me:me-1:T?me+1:me},HC=function(S){var T=S.isMovingForward,L=S.isInHomeList,G=S.insideDestination,Z=S.location;if(!G.length)return null;var K=Z.index,ne=T?K+1:K-1,ae=G[0].descriptor.index,me=G[G.length-1].descriptor.index,Le=L?me:me+1;return neLe?null:ne},nE=function(S){var T=S.isMovingForward,L=S.isInHomeList,G=S.draggable,Z=S.draggables,K=S.destination,ne=S.insideDestination,ae=S.previousImpact,me=S.viewport,Le=S.afterCritical,Ge=ae.at;if(Ge||zn(!1),Ge.type==="REORDER"){var Pe=HC({isMovingForward:T,isInHomeList:L,location:Ge.destination,insideDestination:ne});return Pe==null?null:vm({draggable:G,insideDestination:ne,destination:K,viewport:me,last:ae.displaced,displacedBy:ae.displacedBy,index:Pe})}var Ne=rE({isMovingForward:T,destination:K,displaced:ae.displaced,draggables:Z,combine:Ge.combine,afterCritical:Le});return Ne==null?null:vm({draggable:G,insideDestination:ne,destination:K,viewport:me,last:ae.displaced,displacedBy:ae.displacedBy,index:Ne})},iE=function(S){var T=S.displaced,L=S.afterCritical,G=S.combineWith,Z=S.displacedBy,K=!!(T.visible[G]||T.invisible[G]);return Ju(G,L)?K?Wl:hd(Z.point):K?Z.point:Wl},lw=function(S){var T=S.afterCritical,L=S.impact,G=S.draggables,Z=rf(L);Z||zn(!1);var K=Z.draggableId,ne=G[K].page.borderBox.center,ae=iE({displaced:L.displaced,afterCritical:T,combineWith:K,displacedBy:L.displacedBy});return ia(ne,ae)},sw=function(T,L){return L.margin[T.start]+L.borderBox[T.size]/2},uw=function(T,L){return L.margin[T.end]+L.borderBox[T.size]/2},zC=function(T,L,G){return L[T.crossAxisStart]+G.margin[T.crossAxisStart]+G.borderBox[T.crossAxisSize]/2},Af=function(T){var L=T.axis,G=T.moveRelativeTo,Z=T.isMoving;return Qu(L.line,G.marginBox[L.end]+sw(L,Z),zC(L,G.marginBox,Z))},pS=function(T){var L=T.axis,G=T.moveRelativeTo,Z=T.isMoving;return Qu(L.line,G.marginBox[L.start]-uw(L,Z),zC(L,G.marginBox,Z))},bh=function(T){var L=T.axis,G=T.moveInto,Z=T.isMoving;return Qu(L.line,G.contentBox[L.start]+sw(L,Z),zC(L,G.contentBox,Z))},Wa=function(S){var T=S.impact,L=S.draggable,G=S.draggables,Z=S.droppable,K=S.afterCritical,ne=cm(Z.descriptor.id,G),ae=L.page,me=Z.axis;if(!ne.length)return bh({axis:me,moveInto:Z.page,isMoving:ae});var Le=T.displaced,Ge=T.displacedBy,Pe=Le.all[0];if(Pe){var Ne=G[Pe];if(Ju(Pe,K))return pS({axis:me,moveRelativeTo:Ne.page,isMoving:ae});var at=_g(Ne.page,Ge.point);return pS({axis:me,moveRelativeTo:at,isMoving:ae})}var kt=ne[ne.length-1];if(kt.descriptor.id===L.descriptor.id)return ae.borderBox.center;if(Ju(kt.descriptor.id,K)){var Cr=_g(kt.page,hd(K.displacedBy.point));return Af({axis:me,moveRelativeTo:Cr,isMoving:ae})}return Af({axis:me,moveRelativeTo:kt.page,isMoving:ae})},gS=function(S,T){var L=S.frame;return L?ia(T,L.scroll.diff.displacement):T},Au=function(T){var L=T.impact,G=T.draggable,Z=T.droppable,K=T.draggables,ne=T.afterCritical,ae=G.page.borderBox.center,me=L.at;return!Z||!me?ae:me.type==="REORDER"?Wa({impact:L,draggable:G,draggables:K,droppable:Z,afterCritical:ne}):lw({impact:L,draggables:K,afterCritical:ne})},pm=function(S){var T=Au(S),L=S.droppable,G=L?gS(L,T):T;return G},cw=function(S,T){var L=Ou(T,S.scroll.initial),G=hd(L),Z=_c({top:T.y,bottom:T.y+S.frame.height,left:T.x,right:T.x+S.frame.width}),K={frame:Z,scroll:{initial:S.scroll.initial,max:S.scroll.max,current:T,diff:{value:L,displacement:G}}};return K};function mS(S,T){return S.map(function(L){return T[L]})}function Ul(S,T){for(var L=0;L1?Ge.sort(function(Pe,Ne){return fs(Pe)[ae.start]-fs(Ne)[ae.start]})[0]:Le.sort(function(Pe,Ne){var at=lm(L,cS(fs(Pe))),kt=lm(L,cS(fs(Ne)));return at!==kt?at-kt:fs(Pe)[ae.start]-fs(Ne)[ae.start]})[0]},Lo=function(T,L){var G=T.page.borderBox.center;return Ju(T.descriptor.id,L)?Ou(G,L.displacedBy.point):G},yS=function(T,L){var G=T.page.borderBox;return Ju(T.descriptor.id,L)?mh(G,hd(L.displacedBy.point)):G},co=function(S){var T=S.pageBorderBoxCenter,L=S.viewport,G=S.destination,Z=S.insideDestination,K=S.afterCritical,ne=Z.filter(function(ae){return Dg({target:yS(ae,K),destination:G,viewport:L.frame,withDroppableDisplacement:!0})}).sort(function(ae,me){var Le=iv(T,gS(G,Lo(ae,K))),Ge=iv(T,gS(G,Lo(me,K)));return LeT.left&&S.topT.top}function wS(S){var T=S.pageBorderBox,L=S.draggable,G=S.candidates,Z=L.page.borderBox.center,K=G.map(function(ne){var ae=ne.axis,me=Qu(ne.axis.line,T.center[ae.line],ne.page.borderBox.center[ae.crossAxisLine]);return{id:ne.descriptor.id,distance:iv(Z,me)}}).sort(function(ne,ae){return ae.distance-ne.distance});return K[0]?K[0].id:null}function lE(S){var T=S.pageBorderBox,L=S.draggable,G=S.droppables,Z=FC(G).filter(function(K){if(!K.isEnabled)return!1;var ne=K.subject.active;if(!ne||!bS(T,ne))return!1;if(Ol(ne)(T.center))return!0;var ae=K.axis,me=ne.center[ae.crossAxisLine],Le=T[ae.crossAxisStart],Ge=T[ae.crossAxisEnd],Pe=$l(ne[ae.crossAxisStart],ne[ae.crossAxisEnd]),Ne=Pe(Le),at=Pe(Ge);return!Ne&&!at?!0:Ne?Leme});return Z.length?Z.length===1?Z[0].descriptor.id:wS({pageBorderBox:T,draggable:L,candidates:Z}):null}var nf=function(T,L){return _c(mh(T,L))},hw=function(S,T){var L=S.frame;return L?nf(T,L.scroll.diff.value):T};function dw(S){var T=S.displaced,L=S.id;return!!(T.visible[L]||T.invisible[L])}function $C(S){var T=S.draggable,L=S.closest,G=S.inHomeList;return L?G&&L.descriptor.index>T.descriptor.index?L.descriptor.index-1:L.descriptor.index:null}var mm=function(S){var T=S.pageBorderBoxWithDroppableScroll,L=S.draggable,G=S.destination,Z=S.insideDestination,K=S.last,ne=S.viewport,ae=S.afterCritical,me=G.axis,Le=Rf(G.axis,L.displaceBy),Ge=Le.value,Pe=T[me.start],Ne=T[me.end],at=Og(L,Z),kt=yh(at,function(wr){var Ar=wr.descriptor.id,Fr=wr.page.borderBox.center[me.line],dn=Ju(Ar,ae),zr=dw({displaced:K,id:Ar});return dn?zr?Ne<=Fr:PeAr[ae.start]+dn&&PeAr[ae.start]-Le+dn&&GeAr[ae.start]+Le+dn&&PeAr[ae.start]+dn&&Ge=DS)return uu;var K=Z/DS,ne=IS+RS*K,ae=G==="CANCEL"?ne*mw:ne;return Number(ae.toFixed(2))},PS=function(S){var T=S.impact,L=S.draggable,G=S.dimensions,Z=S.viewport,K=S.afterCritical,ne=G.draggables,ae=G.droppables,me=Xs(T),Le=me?ae[me]:null,Ge=ae[L.descriptor.droppableId],Pe=UC({impact:T,draggable:L,draggables:ne,afterCritical:K,droppable:Le||Ge,viewport:Z}),Ne=Ou(Pe,L.client.borderBox.center);return Ne},yw=function(S){var T=S.draggables,L=S.reason,G=S.lastImpact,Z=S.home,K=S.viewport,ne=S.onLiftImpact;if(!G.at||L!=="DROP"){var ae=xS({draggables:T,impact:ne,destination:Z,viewport:K,forceShouldAnimate:!0});return{impact:ae,didDropInsideDroppable:!1}}if(G.at.type==="REORDER")return{impact:G,didDropInsideDroppable:!0};var me=Ui({},G,{displaced:Ch});return{impact:me,didDropInsideDroppable:!0}},BS=function(S){var T=S.getState,L=S.dispatch;return function(G){return function(Z){if(Z.type!=="DROP"){G(Z);return}var K=T(),ne=Z.payload.reason;if(K.phase==="COLLECTING"){L(ZM({reason:ne}));return}if(K.phase!=="IDLE"){var ae=K.phase==="DROP_PENDING"&&K.isWaiting;ae&&zn(!1),K.phase==="DRAGGING"||K.phase==="DROP_PENDING"||zn(!1);var me=K.critical,Le=K.dimensions,Ge=Le.draggables[K.critical.draggable.id],Pe=yw({reason:ne,lastImpact:K.impact,afterCritical:K.afterCritical,onLiftImpact:K.onLiftImpact,home:K.dimensions.droppables[K.critical.droppable.id],viewport:K.viewport,draggables:K.dimensions.draggables}),Ne=Pe.impact,at=Pe.didDropInsideDroppable,kt=at?Fi(Ne):null,Cr=at?rf(Ne):null,wr={index:me.draggable.index,droppableId:me.droppable.id},Ar={draggableId:Ge.descriptor.id,type:Ge.descriptor.type,source:wr,reason:ne,mode:K.movementMode,destination:kt,combine:Cr},Fr=PS({impact:Ne,draggable:Ge,dimensions:Le,viewport:K.viewport,afterCritical:K.afterCritical}),dn={critical:K.critical,afterCritical:K.afterCritical,result:Ar,impact:Ne},zr=!vl(K.current.client.offset,Fr)||!!Ar.combine;if(!zr){L(Sm({completed:dn}));return}var Yn=LS({current:K.current.client.offset,destination:Fr,reason:ne}),Cn={newHomeClientOffset:Fr,dropDuration:Yn,completed:dn};L(fE(Cn))}}}},r1=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function hE(S){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(L){L.target!==window&&L.target!==window.document||S()}}}function dE(S){var T=S.onWindowScroll;function L(){T(r1())}var G=am(L),Z=hE(G),K=Jc;function ne(){return K!==Jc}function ae(){ne()&&zn(!1),K=Ho(window,[Z])}function me(){ne()||zn(!1),G.cancel(),K(),K=Jc}return{start:ae,stop:me,isActive:ne}}var vE=function(T){return T.type==="DROP_COMPLETE"||T.type==="DROP_ANIMATE"||T.type==="FLUSH"},kS=function(S){var T=dE({onWindowScroll:function(G){S.dispatch(MS({newScroll:G}))}});return function(L){return function(G){!T.isActive()&&G.type==="INITIAL_PUBLISH"&&T.start(),T.isActive()&&vE(G)&&T.stop(),L(G)}}},KM=function(S){var T=!1,L=!1,G=setTimeout(function(){L=!0}),Z=function(ne){T||L||(T=!0,S(ne),clearTimeout(G))};return Z.wasCalled=function(){return T},Z},FS=function(){var S=[],T=function(K){var ne=kC(S,function(Le){return Le.timerId===K});ne===-1&&zn(!1);var ae=S.splice(ne,1),me=ae[0];me.callback()},L=function(K){var ne=setTimeout(function(){return T(ne)}),ae={timerId:ne,callback:K};S.push(ae)},G=function(){if(S.length){var K=[].concat(S);S.length=0,K.forEach(function(ne){clearTimeout(ne.timerId),ne.callback()})}};return{add:L,flush:G}},n1=function(T,L){return T==null&&L==null?!0:T==null||L==null?!1:T.droppableId===L.droppableId&&T.index===L.index},pE=function(T,L){return T==null&&L==null?!0:T==null||L==null?!1:T.draggableId===L.draggableId&&T.droppableId===L.droppableId},Cw=function(T,L){if(T===L)return!0;var G=T.draggable.id===L.draggable.id&&T.draggable.droppableId===L.draggable.droppableId&&T.draggable.type===L.draggable.type&&T.draggable.index===L.draggable.index,Z=T.droppable.id===L.droppable.id&&T.droppable.type===L.droppable.type;return G&&Z},Em=function(T,L){L()},kg=function(T,L){return{draggableId:T.draggable.id,type:T.droppable.type,source:{droppableId:T.droppable.id,index:T.draggable.index},mode:L}},bw=function(T,L,G,Z){if(!T){G(Z(L));return}var K=KM(G),ne={announce:K};T(L,ne),K.wasCalled()||G(Z(L))},gE=function(S,T){var L=FS(),G=null,Z=function(Ne,at){G&&zn(!1),Em("onBeforeCapture",function(){var kt=S().onBeforeCapture;if(kt){var Cr={draggableId:Ne,mode:at};kt(Cr)}})},K=function(Ne,at){G&&zn(!1),Em("onBeforeDragStart",function(){var kt=S().onBeforeDragStart;kt&&kt(kg(Ne,at))})},ne=function(Ne,at){G&&zn(!1);var kt=kg(Ne,at);G={mode:at,lastCritical:Ne,lastLocation:kt.source,lastCombine:null},L.add(function(){Em("onDragStart",function(){return bw(S().onDragStart,kt,T,gh.onDragStart)})})},ae=function(Ne,at){var kt=Fi(at),Cr=rf(at);G||zn(!1);var wr=!Cw(Ne,G.lastCritical);wr&&(G.lastCritical=Ne);var Ar=!n1(G.lastLocation,kt);Ar&&(G.lastLocation=kt);var Fr=!pE(G.lastCombine,Cr);if(Fr&&(G.lastCombine=Cr),!(!wr&&!Ar&&!Fr)){var dn=Ui({},kg(Ne,G.mode),{combine:Cr,destination:kt});L.add(function(){Em("onDragUpdate",function(){return bw(S().onDragUpdate,dn,T,gh.onDragUpdate)})})}},me=function(){G||zn(!1),L.flush()},Le=function(Ne){G||zn(!1),G=null,Em("onDragEnd",function(){return bw(S().onDragEnd,Ne,T,gh.onDragEnd)})},Ge=function(){if(G){var Ne=Ui({},kg(G.lastCritical,G.mode),{combine:null,destination:null,reason:"CANCEL"});Le(Ne)}};return{beforeCapture:Z,beforeStart:K,start:ne,update:ae,flush:me,drop:Le,abort:Ge}},mE=function(S,T){var L=gE(S,T);return function(G){return function(Z){return function(K){if(K.type==="BEFORE_INITIAL_CAPTURE"){L.beforeCapture(K.payload.draggableId,K.payload.movementMode);return}if(K.type==="INITIAL_PUBLISH"){var ne=K.payload.critical;L.beforeStart(ne,K.payload.movementMode),Z(K),L.start(ne,K.payload.movementMode);return}if(K.type==="DROP_COMPLETE"){var ae=K.payload.completed.result;L.flush(),Z(K),L.drop(ae);return}if(Z(K),K.type==="FLUSH"){L.abort();return}var me=G.getState();me.phase==="DRAGGING"&&L.update(me.critical,me.impact)}}}},NS=function(S){return function(T){return function(L){if(L.type!=="DROP_ANIMATION_FINISHED"){T(L);return}var G=S.getState();G.phase!=="DROP_ANIMATING"&&zn(!1),S.dispatch(Sm({completed:G.completed}))}}},qM=function(S){var T=null,L=null;function G(){L&&(cancelAnimationFrame(L),L=null),T&&(T(),T=null)}return function(Z){return function(K){if((K.type==="FLUSH"||K.type==="DROP_COMPLETE"||K.type==="DROP_ANIMATION_FINISHED")&&G(),Z(K),K.type==="DROP_ANIMATE"){var ne={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var me=S.getState();me.phase==="DROP_ANIMATING"&&S.dispatch(pw())}};L=requestAnimationFrame(function(){L=null,T=Ho(window,[ne])})}}}},Mm=function(S){return function(){return function(T){return function(L){(L.type==="DROP_COMPLETE"||L.type==="FLUSH"||L.type==="DROP_ANIMATE")&&S.stopPublishing(),T(L)}}}},Rs=function(S){var T=!1;return function(){return function(L){return function(G){if(G.type==="INITIAL_PUBLISH"){T=!0,S.tryRecordFocus(G.payload.critical.draggable.id),L(G),S.tryRestoreFocusRecorded();return}if(L(G),!!T){if(G.type==="FLUSH"){T=!1,S.tryRestoreFocusRecorded();return}if(G.type==="DROP_COMPLETE"){T=!1;var Z=G.payload.completed.result;Z.combine&&S.tryShiftRecord(Z.draggableId,Z.combine.draggableId),S.tryRestoreFocusRecorded()}}}}}},yE=function(T){return T.type==="DROP_COMPLETE"||T.type==="DROP_ANIMATE"||T.type==="FLUSH"},_p=function(S){return function(T){return function(L){return function(G){if(yE(G)){S.stop(),L(G);return}if(G.type==="INITIAL_PUBLISH"){L(G);var Z=T.getState();Z.phase!=="DRAGGING"&&zn(!1),S.start(Z);return}L(G),S.scroll(T.getState())}}}},CE=function(S){return function(T){return function(L){if(T(L),L.type==="PUBLISH_WHILE_DRAGGING"){var G=S.getState();G.phase==="DROP_PENDING"&&(G.isWaiting||S.dispatch(QC({reason:G.reason})))}}}},HS=Y0,QM=function(S){var T=S.dimensionMarshal,L=S.focusMarshal,G=S.styleMarshal,Z=S.getResponders,K=S.announce,ne=S.autoScroller;return Os(pd,HS(yg(gw(G),Mm(T),AS(T),BS,NS,qM,CE,_p(ne),kS,Rs(L),mE(Z,K))))},ww=function(){return{additions:{},removals:{},modified:{}}};function zS(S){var T=S.registry,L=S.callbacks,G=ww(),Z=null,K=function(){Z||(L.collectionStarting(),Z=requestAnimationFrame(function(){Z=null;var Ge=G,Pe=Ge.additions,Ne=Ge.removals,at=Ge.modified,kt=Object.keys(Pe).map(function(Ar){return T.draggable.getById(Ar).getDimension(Wl)}).sort(function(Ar,Fr){return Ar.descriptor.index-Fr.descriptor.index}),Cr=Object.keys(at).map(function(Ar){var Fr=T.droppable.getById(Ar),dn=Fr.callbacks.getScrollWhileDragging();return{droppableId:Ar,scroll:dn}}),wr={additions:kt,removals:Object.keys(Ne),modified:Cr};G=ww(),L.publish(wr)}))},ne=function(Ge){var Pe=Ge.descriptor.id;G.additions[Pe]=Ge,G.modified[Ge.descriptor.droppableId]=!0,G.removals[Pe]&&delete G.removals[Pe],K()},ae=function(Ge){var Pe=Ge.descriptor;G.removals[Pe.id]=!0,G.modified[Pe.droppableId]=!0,G.additions[Pe.id]&&delete G.additions[Pe.id],K()},me=function(){Z&&(cancelAnimationFrame(Z),Z=null,G=ww())};return{add:ne,remove:ae,stop:me}}var xh=function(S){var T=S.scrollHeight,L=S.scrollWidth,G=S.height,Z=S.width,K=Ou({x:L,y:T},{x:Z,y:G}),ne={x:Math.max(0,K.x),y:Math.max(0,K.y)};return ne},xw=function(){var S=document.documentElement;return S||zn(!1),S},Sw=function(){var S=xw(),T=xh({scrollHeight:S.scrollHeight,scrollWidth:S.scrollWidth,width:S.clientWidth,height:S.clientHeight});return T},Fg=function(){var S=r1(),T=Sw(),L=S.y,G=S.x,Z=xw(),K=Z.clientWidth,ne=Z.clientHeight,ae=G+K,me=L+ne,Le=_c({top:L,left:G,right:ae,bottom:me}),Ge={frame:Le,scroll:{initial:S,current:S,max:T,diff:{value:Wl,displacement:Wl}}};return Ge},_w=function(S){var T=S.critical,L=S.scrollOptions,G=S.registry,Z=Fg(),K=Z.scroll.current,ne=T.droppable,ae=G.droppable.getAllByType(ne.type).map(function(Pe){return Pe.callbacks.getDimensionAndWatchScroll(K,L)}),me=G.draggable.getAllByType(T.draggable.type).map(function(Pe){return Pe.getDimension(K)}),Le={draggables:fS(me),droppables:za(ae)},Ge={dimensions:Le,critical:T,viewport:Z};return Ge};function i1(S,T,L){if(L.descriptor.id===T.id||L.descriptor.type!==T.type)return!1;var G=S.droppable.getById(L.descriptor.droppableId);return G.descriptor.mode==="virtual"}var WS=function(S,T){var L=null,G=zS({callbacks:{publish:T.publishWhileDragging,collectionStarting:T.collectionStarting},registry:S}),Z=function(at,kt){S.droppable.exists(at)||zn(!1),L&&T.updateDroppableIsEnabled({id:at,isEnabled:kt})},K=function(at,kt){L&&(S.droppable.exists(at)||zn(!1),T.updateDroppableIsCombineEnabled({id:at,isCombineEnabled:kt}))},ne=function(at,kt){L&&(S.droppable.exists(at)||zn(!1),T.updateDroppableScroll({id:at,newScroll:kt}))},ae=function(at,kt){L&&S.droppable.getById(at).callbacks.scroll(kt)},me=function(){if(L){G.stop();var at=L.critical.droppable;S.droppable.getAllByType(at.type).forEach(function(kt){return kt.callbacks.dragStopped()}),L.unsubscribe(),L=null}},Le=function(at){L||zn(!1);var kt=L.critical.draggable;at.type==="ADDITION"&&i1(S,kt,at.value)&&G.add(at.value),at.type==="REMOVAL"&&i1(S,kt,at.value)&&G.remove(at.value)},Ge=function(at){L&&zn(!1);var kt=S.draggable.getById(at.draggableId),Cr=S.droppable.getById(kt.descriptor.droppableId),wr={draggable:kt.descriptor,droppable:Cr.descriptor},Ar=S.subscribe(Le);return L={critical:wr,unsubscribe:Ar},_w({critical:wr,registry:S,scrollOptions:at.scrollOptions})},Pe={updateDroppableIsEnabled:Z,updateDroppableIsCombineEnabled:K,scrollDroppable:ae,updateDroppableScroll:ne,startPublishing:Ge,stopPublishing:me};return Pe},Ew=function(S,T){return S.phase==="IDLE"?!0:S.phase!=="DROP_ANIMATING"||S.completed.result.draggableId===T?!1:S.completed.result.reason==="DROP"},Mc=function(S){window.scrollBy(S.x,S.y)},Tm=zl(function(S){return FC(S).filter(function(T){return!(!T.isEnabled||!T.frame)})}),Om=function(T,L){var G=yh(Tm(L),function(Z){return Z.frame||zn(!1),Ol(Z.frame.pageMarginBox)(T)});return G},JM=function(S){var T=S.center,L=S.destination,G=S.droppables;if(L){var Z=G[L];return Z.frame?Z:null}var K=Om(T,G);return K},gd={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(T){return Math.pow(T,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},GS=function(S,T){var L=S[T.size]*gd.startFromPercentage,G=S[T.size]*gd.maxScrollAtPercentage,Z={startScrollingFrom:L,maxScrollValueAt:G};return Z},Sh=function(S){var T=S.startOfRange,L=S.endOfRange,G=S.current,Z=L-T;if(Z===0)return 0;var K=G-T,ne=K/Z;return ne},Am=1,Ng=function(S,T){if(S>T.startScrollingFrom)return 0;if(S<=T.maxScrollValueAt)return gd.maxPixelScroll;if(S===T.startScrollingFrom)return Am;var L=Sh({startOfRange:T.maxScrollValueAt,endOfRange:T.startScrollingFrom,current:S}),G=1-L,Z=gd.maxPixelScroll*gd.ease(G);return Math.ceil(Z)},Mw=gd.durationDampening.accelerateAt,Tw=gd.durationDampening.stopDampeningAt,Ow=function(S,T){var L=T,G=Tw,Z=Date.now(),K=Z-L;if(K>=Tw)return S;if(KT.height,K=L.width>T.width;return!K&&!Z?G:K&&Z?null:{x:K?0:G.x,y:Z?0:G.y}},eT=ef(function(S){return S===0?0:S}),$S=function(S){var T=S.dragStartTime,L=S.container,G=S.subject,Z=S.center,K=S.shouldUseTimeDampening,ne={top:Z.y-L.top,right:L.right-Z.x,bottom:L.bottom-Z.y,left:Z.x-L.left},ae=Aw({container:L,distanceToEdges:ne,dragStartTime:T,axis:yp,shouldUseTimeDampening:K}),me=Aw({container:L,distanceToEdges:ne,dragStartTime:T,axis:dS,shouldUseTimeDampening:K}),Le=eT({x:me,y:ae});if(vl(Le,Wl))return null;var Ge=Iw({container:L,subject:G,proposedScroll:Le});return Ge?vl(Ge,Wl)?null:Ge:null},a1=ef(function(S){return S===0?0:S>0?1:-1}),Im=function(){var S=function(L,G){return L<0?L:L>G?L-G:0};return function(T){var L=T.current,G=T.max,Z=T.change,K=ia(L,Z),ne={x:S(K.x,G.x),y:S(K.y,G.y)};return vl(ne,Wl)?null:ne}}(),Rw=function(T){var L=T.max,G=T.current,Z=T.change,K={x:Math.max(G.x,L.x),y:Math.max(G.y,L.y)},ne=a1(Z),ae=Im({max:K,current:G,change:ne});return!ae||ne.x!==0&&ae.x===0||ne.y!==0&&ae.y===0},US=function(T,L){return Rw({current:T.scroll.current,max:T.scroll.max,change:L})},bE=function(T,L){if(!US(T,L))return null;var G=T.scroll.max,Z=T.scroll.current;return Im({current:Z,max:G,change:L})},YS=function(T,L){var G=T.frame;return G?Rw({current:G.scroll.current,max:G.scroll.max,change:L}):!1},wE=function(T,L){var G=T.frame;return!G||!YS(T,L)?null:Im({current:G.scroll.current,max:G.scroll.max,change:L})},Rm=function(S){var T=S.viewport,L=S.subject,G=S.center,Z=S.dragStartTime,K=S.shouldUseTimeDampening,ne=$S({dragStartTime:Z,container:T.frame,subject:L,center:G,shouldUseTimeDampening:K});return ne&&US(T,ne)?ne:null},tT=function(S){var T=S.droppable,L=S.subject,G=S.center,Z=S.dragStartTime,K=S.shouldUseTimeDampening,ne=T.frame;if(!ne)return null;var ae=$S({dragStartTime:Z,container:ne.pageMarginBox,subject:L,center:G,shouldUseTimeDampening:K});return ae&&YS(T,ae)?ae:null},Dw=function(S){var T=S.state,L=S.dragStartTime,G=S.shouldUseTimeDampening,Z=S.scrollWindow,K=S.scrollDroppable,ne=T.current.page.borderBoxCenter,ae=T.dimensions.draggables[T.critical.draggable.id],me=ae.page.marginBox;if(T.isWindowScrollAllowed){var Le=T.viewport,Ge=Rm({dragStartTime:L,viewport:Le,subject:me,center:ne,shouldUseTimeDampening:G});if(Ge){Z(Ge);return}}var Pe=JM({center:ne,destination:Xs(T.impact),droppables:T.dimensions.droppables});if(Pe){var Ne=tT({dragStartTime:L,droppable:Pe,subject:me,center:ne,shouldUseTimeDampening:G});Ne&&K(Pe.descriptor.id,Ne)}},xE=function(S){var T=S.scrollWindow,L=S.scrollDroppable,G=am(T),Z=am(L),K=null,ne=function(Ge){K||zn(!1);var Pe=K,Ne=Pe.shouldUseTimeDampening,at=Pe.dragStartTime;Dw({state:Ge,scrollWindow:G,scrollDroppable:Z,dragStartTime:at,shouldUseTimeDampening:Ne})},ae=function(Ge){K&&zn(!1);var Pe=Date.now(),Ne=!1,at=function(){Ne=!0};Dw({state:Ge,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:at,scrollDroppable:at}),K={dragStartTime:Pe,shouldUseTimeDampening:Ne},Ne&&ne(Ge)},me=function(){K&&(G.cancel(),Z.cancel(),K=null)};return{start:ae,stop:me,scroll:ne}},SE=function(S){var T=S.move,L=S.scrollDroppable,G=S.scrollWindow,Z=function(Le,Ge){var Pe=ia(Le.current.client.selection,Ge);T({client:Pe})},K=function(Le,Ge){if(!YS(Le,Ge))return Ge;var Pe=wE(Le,Ge);if(!Pe)return L(Le.descriptor.id,Ge),null;var Ne=Ou(Ge,Pe);L(Le.descriptor.id,Ne);var at=Ou(Ge,Ne);return at},ne=function(Le,Ge,Pe){if(!Le||!US(Ge,Pe))return Pe;var Ne=bE(Ge,Pe);if(!Ne)return G(Pe),null;var at=Ou(Pe,Ne);G(at);var kt=Ou(Pe,at);return kt},ae=function(Le){var Ge=Le.scrollJumpRequest;if(Ge){var Pe=Xs(Le.impact);Pe||zn(!1);var Ne=K(Le.dimensions.droppables[Pe],Ge);if(Ne){var at=Le.viewport,kt=ne(Le.isWindowScrollAllowed,at,Ne);kt&&Z(Le,kt)}}};return ae},Dm=function(S){var T=S.scrollDroppable,L=S.scrollWindow,G=S.move,Z=xE({scrollWindow:L,scrollDroppable:T}),K=SE({move:G,scrollWindow:L,scrollDroppable:T}),ne=function(Le){if(Le.phase==="DRAGGING"){if(Le.movementMode==="FLUID"){Z.scroll(Le);return}Le.scrollJumpRequest&&K(Le)}},ae={scroll:ne,start:Z.start,stop:Z.stop};return ae},Hg="data-rbd",Lm=function(){var S=Hg+"-drag-handle";return{base:S,draggableId:S+"-draggable-id",contextId:S+"-context-id"}}(),jS=function(){var S=Hg+"-draggable";return{base:S,contextId:S+"-context-id",id:S+"-id"}}(),Lw=function(){var S=Hg+"-droppable";return{base:S,contextId:S+"-context-id",id:S+"-id"}}(),sv={contextId:Hg+"-scroll-container-context-id"},VS=function(T){return function(L){return"["+L+'="'+T+'"]'}},zg=function(T,L){return T.map(function(G){var Z=G.styles[L];return Z?G.selector+" { "+Z+" }":""}).join(" ")},Mp="pointer-events: none;",Tp=function(S){var T=VS(S),L=function(){var ae=` + cursor: -webkit-grab; + cursor: grab; + `;return{selector:T(Lm.contextId),styles:{always:` + -webkit-touch-callout: none; + -webkit-tap-highlight-color: rgba(0,0,0,0); + touch-action: manipulation; + `,resting:ae,dragging:Mp,dropAnimating:ae}}}(),G=function(){var ae=` + transition: `+wh.outOfTheWay+`; + `;return{selector:T(jS.contextId),styles:{dragging:ae,dropAnimating:ae,userCancel:ae}}}(),Z={selector:T(Lw.contextId),styles:{always:"overflow-anchor: none;"}},K={selector:"body",styles:{dragging:` + cursor: grabbing; + cursor: -webkit-grabbing; + user-select: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + overflow-anchor: none; + `}},ne=[G,L,Z,K];return{always:zg(ne,"always"),resting:zg(ne,"resting"),dragging:zg(ne,"dragging"),dropAnimating:zg(ne,"dropAnimating"),userCancel:zg(ne,"userCancel")}},Tc=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?lt.useLayoutEffect:lt.useEffect,Pm=function(){var T=document.querySelector("head");return T||zn(!1),T},XS=function(T){var L=document.createElement("style");return T&&L.setAttribute("nonce",T),L.type="text/css",L};function _E(S,T){var L=ha(function(){return Tp(S)},[S]),G=(0,lt.useRef)(null),Z=(0,lt.useRef)(null),K=Li(zl(function(Pe){var Ne=Z.current;Ne||zn(!1),Ne.textContent=Pe}),[]),ne=Li(function(Pe){var Ne=G.current;Ne||zn(!1),Ne.textContent=Pe},[]);Tc(function(){!G.current&&!Z.current||zn(!1);var Pe=XS(T),Ne=XS(T);return G.current=Pe,Z.current=Ne,Pe.setAttribute(Hg+"-always",S),Ne.setAttribute(Hg+"-dynamic",S),Pm().appendChild(Pe),Pm().appendChild(Ne),ne(L.always),K(L.resting),function(){var at=function(Cr){var wr=Cr.current;wr||zn(!1),Pm().removeChild(wr),Cr.current=null};at(G),at(Z)}},[T,ne,K,L.always,L.resting,S]);var ae=Li(function(){return K(L.dragging)},[K,L.dragging]),me=Li(function(Pe){if(Pe==="DROP"){K(L.dropAnimating);return}K(L.userCancel)},[K,L.dropAnimating,L.userCancel]),Le=Li(function(){Z.current&&K(L.resting)},[K,L.resting]),Ge=ha(function(){return{dragging:ae,dropping:me,resting:Le}},[ae,me,Le]);return Ge}var Pw=function(S){return S&&S.ownerDocument?S.ownerDocument.defaultView:window};function o1(S){return S instanceof Pw(S).HTMLElement}function Lf(S,T){var L="["+Lm.contextId+'="'+S+'"]',G=Tg(document.querySelectorAll(L));if(!G.length)return null;var Z=yh(G,function(K){return K.getAttribute(Lm.draggableId)===T});return!Z||!o1(Z)?null:Z}function Wg(S){var T=(0,lt.useRef)({}),L=(0,lt.useRef)(null),G=(0,lt.useRef)(null),Z=(0,lt.useRef)(!1),K=Li(function(Ne,at){var kt={id:Ne,focus:at};return T.current[Ne]=kt,function(){var wr=T.current,Ar=wr[Ne];Ar!==kt&&delete wr[Ne]}},[]),ne=Li(function(Ne){var at=Lf(S,Ne);at&&at!==document.activeElement&&at.focus()},[S]),ae=Li(function(Ne,at){L.current===Ne&&(L.current=at)},[]),me=Li(function(){G.current||Z.current&&(G.current=requestAnimationFrame(function(){G.current=null;var Ne=L.current;Ne&&ne(Ne)}))},[ne]),Le=Li(function(Ne){L.current=null;var at=document.activeElement;at&&at.getAttribute(Lm.draggableId)===Ne&&(L.current=Ne)},[]);Tc(function(){return Z.current=!0,function(){Z.current=!1;var Ne=G.current;Ne&&cancelAnimationFrame(Ne)}},[]);var Ge=ha(function(){return{register:K,tryRecordFocus:Le,tryRestoreFocusRecorded:me,tryShiftRecord:ae}},[K,Le,me,ae]);return Ge}function ZS(){var S={draggables:{},droppables:{}},T=[];function L(Pe){return T.push(Pe),function(){var at=T.indexOf(Pe);at!==-1&&T.splice(at,1)}}function G(Pe){T.length&&T.forEach(function(Ne){return Ne(Pe)})}function Z(Pe){return S.draggables[Pe]||null}function K(Pe){var Ne=Z(Pe);return Ne||zn(!1),Ne}var ne={register:function(Ne){S.draggables[Ne.descriptor.id]=Ne,G({type:"ADDITION",value:Ne})},update:function(Ne,at){var kt=S.draggables[at.descriptor.id];kt&&kt.uniqueId===Ne.uniqueId&&(delete S.draggables[at.descriptor.id],S.draggables[Ne.descriptor.id]=Ne)},unregister:function(Ne){var at=Ne.descriptor.id,kt=Z(at);kt&&Ne.uniqueId===kt.uniqueId&&(delete S.draggables[at],G({type:"REMOVAL",value:Ne}))},getById:K,findById:Z,exists:function(Ne){return!!Z(Ne)},getAllByType:function(Ne){return um(S.draggables).filter(function(at){return at.descriptor.type===Ne})}};function ae(Pe){return S.droppables[Pe]||null}function me(Pe){var Ne=ae(Pe);return Ne||zn(!1),Ne}var Le={register:function(Ne){S.droppables[Ne.descriptor.id]=Ne},unregister:function(Ne){var at=ae(Ne.descriptor.id);at&&Ne.uniqueId===at.uniqueId&&delete S.droppables[Ne.descriptor.id]},getById:me,findById:ae,exists:function(Ne){return!!ae(Ne)},getAllByType:function(Ne){return um(S.droppables).filter(function(at){return at.descriptor.type===Ne})}};function Ge(){S.draggables={},S.droppables={},T.length=0}return{draggable:ne,droppable:Le,subscribe:L,clean:Ge}}function KS(){var S=ha(ZS,[]);return(0,lt.useEffect)(function(){return function(){requestAnimationFrame(S.clean)}},[S]),S}var Bm=oe().createContext(null),l1=function(){var S=document.body;return S||zn(!1),S},Bw={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},qS=function(T){return"rbd-announcement-"+T};function QS(S){var T=ha(function(){return qS(S)},[S]),L=(0,lt.useRef)(null);(0,lt.useEffect)(function(){var K=document.createElement("div");return L.current=K,K.id=T,K.setAttribute("aria-live","assertive"),K.setAttribute("aria-atomic","true"),Ui(K.style,Bw),l1().appendChild(K),function(){setTimeout(function(){var me=l1();me.contains(K)&&me.removeChild(K),K===L.current&&(L.current=null)})}},[T]);var G=Li(function(Z){var K=L.current;if(K){K.textContent=Z;return}},[]);return G}var _h=0,km={separator:"::"};function Gg(S,T){return T===void 0&&(T=km),ha(function(){return""+S+T.separator+_h++},[T.separator,S])}function s1(S){var T=S.contextId,L=S.uniqueId;return"rbd-hidden-text-"+T+"-"+L}function u1(S){var T=S.contextId,L=S.text,G=Gg("hidden-text",{separator:"-"}),Z=ha(function(){return s1({contextId:T,uniqueId:G})},[G,T]);return(0,lt.useEffect)(function(){var ne=document.createElement("div");return ne.id=Z,ne.textContent=L,ne.style.display="none",l1().appendChild(ne),function(){var me=l1();me.contains(ne)&&me.removeChild(ne)}},[Z,L]),Z}var kw=oe().createContext(null);function c1(S){var T=(0,lt.useRef)(S);return(0,lt.useEffect)(function(){T.current=S}),T}function EE(){var S=null;function T(){return!!S}function L(ne){return ne===S}function G(ne){S&&zn(!1);var ae={abandon:ne};return S=ae,ae}function Z(){S||zn(!1),S=null}function K(){S&&(S.abandon(),Z())}return{isClaimed:T,isActive:L,claim:G,release:Z,tryAbandon:K}}var af=9,ME=13,Fm=27,Fw=32,JS=33,Nm=34,Hm=35,is=36,zm=37,e2=38,$g=39,TE=40,md,t2=(md={},md[ME]=!0,md[af]=!0,md),of=function(S){t2[S.keyCode]&&S.preventDefault()},Wm=function(){var S="visibilitychange";if(typeof document=="undefined")return S;var T=[S,"ms"+S,"webkit"+S,"moz"+S,"o"+S],L=yh(T,function(G){return"on"+G in document});return L||S}(),Ug=0,f1=5;function Op(S,T){return Math.abs(T.x-S.x)>=f1||Math.abs(T.y-S.y)>=f1}var Gm={type:"IDLE"};function r2(S){var T=S.cancel,L=S.completed,G=S.getPhase,Z=S.setPhase;return[{eventName:"mousemove",fn:function(ne){var ae=ne.button,me=ne.clientX,Le=ne.clientY;if(ae===Ug){var Ge={x:me,y:Le},Pe=G();if(Pe.type==="DRAGGING"){ne.preventDefault(),Pe.actions.move(Ge);return}Pe.type!=="PENDING"&&zn(!1);var Ne=Pe.point;if(Op(Ne,Ge)){ne.preventDefault();var at=Pe.actions.fluidLift(Ge);Z({type:"DRAGGING",actions:at})}}}},{eventName:"mouseup",fn:function(ne){var ae=G();if(ae.type!=="DRAGGING"){T();return}ne.preventDefault(),ae.actions.drop({shouldBlockNextClick:!0}),L()}},{eventName:"mousedown",fn:function(ne){G().type==="DRAGGING"&&ne.preventDefault(),T()}},{eventName:"keydown",fn:function(ne){var ae=G();if(ae.type==="PENDING"){T();return}if(ne.keyCode===Fm){ne.preventDefault(),T();return}of(ne)}},{eventName:"resize",fn:T},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){G().type==="PENDING"&&T()}},{eventName:"webkitmouseforcedown",fn:function(ne){var ae=G();if(ae.type==="IDLE"&&zn(!1),ae.actions.shouldRespectForcePress()){T();return}ne.preventDefault()}},{eventName:Wm,fn:T}]}function $m(S){var T=(0,lt.useRef)(Gm),L=(0,lt.useRef)(Jc),G=ha(function(){return{eventName:"mousedown",fn:function(Pe){if(!Pe.defaultPrevented&&Pe.button===Ug&&!(Pe.ctrlKey||Pe.metaKey||Pe.shiftKey||Pe.altKey)){var Ne=S.findClosestDraggableId(Pe);if(Ne){var at=S.tryGetLock(Ne,ne,{sourceEvent:Pe});if(at){Pe.preventDefault();var kt={x:Pe.clientX,y:Pe.clientY};L.current(),Le(at,kt)}}}}}},[S]),Z=ha(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Pe){if(!Pe.defaultPrevented){var Ne=S.findClosestDraggableId(Pe);if(Ne){var at=S.findOptionsForDraggable(Ne);at&&(at.shouldRespectForcePress||S.canGetLock(Ne)&&Pe.preventDefault())}}}}},[S]),K=Li(function(){var Pe={passive:!1,capture:!0};L.current=Ho(window,[Z,G],Pe)},[Z,G]),ne=Li(function(){var Ge=T.current;Ge.type!=="IDLE"&&(T.current=Gm,L.current(),K())},[K]),ae=Li(function(){var Ge=T.current;ne(),Ge.type==="DRAGGING"&&Ge.actions.cancel({shouldBlockNextClick:!0}),Ge.type==="PENDING"&&Ge.actions.abort()},[ne]),me=Li(function(){var Pe={capture:!0,passive:!1},Ne=r2({cancel:ae,completed:ne,getPhase:function(){return T.current},setPhase:function(kt){T.current=kt}});L.current=Ho(window,Ne,Pe)},[ae,ne]),Le=Li(function(Pe,Ne){T.current.type!=="IDLE"&&zn(!1),T.current={type:"PENDING",point:Ne,actions:Pe},me()},[me]);Tc(function(){return K(),function(){L.current()}},[K])}var yd;function Um(){}var Ap=(yd={},yd[Nm]=!0,yd[JS]=!0,yd[is]=!0,yd[Hm]=!0,yd);function Eh(S,T){function L(){T(),S.cancel()}function G(){T(),S.drop()}return[{eventName:"keydown",fn:function(K){if(K.keyCode===Fm){K.preventDefault(),L();return}if(K.keyCode===Fw){K.preventDefault(),G();return}if(K.keyCode===TE){K.preventDefault(),S.moveDown();return}if(K.keyCode===e2){K.preventDefault(),S.moveUp();return}if(K.keyCode===$g){K.preventDefault(),S.moveRight();return}if(K.keyCode===zm){K.preventDefault(),S.moveLeft();return}if(Ap[K.keyCode]){K.preventDefault();return}of(K)}},{eventName:"mousedown",fn:L},{eventName:"mouseup",fn:L},{eventName:"click",fn:L},{eventName:"touchstart",fn:L},{eventName:"resize",fn:L},{eventName:"wheel",fn:L,options:{passive:!0}},{eventName:Wm,fn:L}]}function n2(S){var T=(0,lt.useRef)(Um),L=ha(function(){return{eventName:"keydown",fn:function(K){if(K.defaultPrevented||K.keyCode!==Fw)return;var ne=S.findClosestDraggableId(K);if(!ne)return;var ae=S.tryGetLock(ne,Ge,{sourceEvent:K});if(!ae)return;K.preventDefault();var me=!0,Le=ae.snapLift();T.current();function Ge(){me||zn(!1),me=!1,T.current(),G()}T.current=Ho(window,Eh(Le,Ge),{capture:!0,passive:!1})}}},[S]),G=Li(function(){var K={passive:!1,capture:!0};T.current=Ho(window,[L],K)},[L]);Tc(function(){return G(),function(){T.current()}},[G])}var h1={type:"IDLE"},OE=120,Ym=.15;function d1(S){var T=S.cancel,L=S.getPhase;return[{eventName:"orientationchange",fn:T},{eventName:"resize",fn:T},{eventName:"contextmenu",fn:function(Z){Z.preventDefault()}},{eventName:"keydown",fn:function(Z){if(L().type!=="DRAGGING"){T();return}Z.keyCode===Fm&&Z.preventDefault(),T()}},{eventName:Wm,fn:T}]}function jm(S){var T=S.cancel,L=S.completed,G=S.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(K){var ne=G();if(ne.type!=="DRAGGING"){T();return}ne.hasMoved=!0;var ae=K.touches[0],me=ae.clientX,Le=ae.clientY,Ge={x:me,y:Le};K.preventDefault(),ne.actions.move(Ge)}},{eventName:"touchend",fn:function(K){var ne=G();if(ne.type!=="DRAGGING"){T();return}K.preventDefault(),ne.actions.drop({shouldBlockNextClick:!0}),L()}},{eventName:"touchcancel",fn:function(K){if(G().type!=="DRAGGING"){T();return}K.preventDefault(),T()}},{eventName:"touchforcechange",fn:function(K){var ne=G();ne.type==="IDLE"&&zn(!1);var ae=K.touches[0];if(ae){var me=ae.force>=Ym;if(me){var Le=ne.actions.shouldRespectForcePress();if(ne.type==="PENDING"){Le&&T();return}if(Le){if(ne.hasMoved){K.preventDefault();return}T();return}K.preventDefault()}}}},{eventName:Wm,fn:T}]}function i2(S){var T=(0,lt.useRef)(h1),L=(0,lt.useRef)(Jc),G=Li(function(){return T.current},[]),Z=Li(function(at){T.current=at},[]),K=ha(function(){return{eventName:"touchstart",fn:function(at){if(!at.defaultPrevented){var kt=S.findClosestDraggableId(at);if(kt){var Cr=S.tryGetLock(kt,ae,{sourceEvent:at});if(Cr){var wr=at.touches[0],Ar=wr.clientX,Fr=wr.clientY,dn={x:Ar,y:Fr};L.current(),Pe(Cr,dn)}}}}}},[S]),ne=Li(function(){var at={capture:!0,passive:!1};L.current=Ho(window,[K],at)},[K]),ae=Li(function(){var Ne=T.current;Ne.type!=="IDLE"&&(Ne.type==="PENDING"&&clearTimeout(Ne.longPressTimerId),Z(h1),L.current(),ne())},[ne,Z]),me=Li(function(){var Ne=T.current;ae(),Ne.type==="DRAGGING"&&Ne.actions.cancel({shouldBlockNextClick:!0}),Ne.type==="PENDING"&&Ne.actions.abort()},[ae]),Le=Li(function(){var at={capture:!0,passive:!1},kt={cancel:me,completed:ae,getPhase:G},Cr=Ho(window,jm(kt),at),wr=Ho(window,d1(kt),at);L.current=function(){Cr(),wr()}},[me,G,ae]),Ge=Li(function(){var at=G();at.type!=="PENDING"&&zn(!1);var kt=at.actions.fluidLift(at.point);Z({type:"DRAGGING",actions:kt,hasMoved:!1})},[G,Z]),Pe=Li(function(at,kt){G().type!=="IDLE"&&zn(!1);var Cr=setTimeout(Ge,OE);Z({type:"PENDING",point:kt,actions:at,longPressTimerId:Cr}),Le()},[Le,G,Z,Ge]);Tc(function(){return ne(),function(){L.current();var kt=G();kt.type==="PENDING"&&(clearTimeout(kt.longPressTimerId),Z(h1))}},[G,ne,Z]),Tc(function(){var at=Ho(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return at},[])}var Yg={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function v1(S,T){if(T==null)return!1;var L=!!Yg[T.tagName.toLowerCase()];if(L)return!0;var G=T.getAttribute("contenteditable");return G==="true"||G===""?!0:T===S?!1:v1(S,T.parentElement)}function Nw(S,T){var L=T.target;return o1(L)?v1(S,L):!1}var a2=function(S){return _c(S.getBoundingClientRect()).center};function Hw(S){return S instanceof Pw(S).Element}var o2=function(){var S="matches";if(typeof document=="undefined")return S;var T=[S,"msMatchesSelector","webkitMatchesSelector"],L=yh(T,function(G){return G in Element.prototype});return L||S}();function l2(S,T){return S==null?null:S[o2](T)?S:l2(S.parentElement,T)}function s2(S,T){return S.closest?S.closest(T):l2(S,T)}function AE(S){return"["+Lm.contextId+'="'+S+'"]'}function IE(S,T){var L=T.target;if(!Hw(L))return null;var G=AE(S),Z=s2(L,G);return!Z||!o1(Z)?null:Z}function RE(S,T){var L=IE(S,T);return L?L.getAttribute(Lm.draggableId):null}function DE(S,T){var L="["+jS.contextId+'="'+S+'"]',G=Tg(document.querySelectorAll(L)),Z=yh(G,function(K){return K.getAttribute(jS.id)===T});return!Z||!o1(Z)?null:Z}function u2(S){S.preventDefault()}function p1(S){var T=S.expected,L=S.phase,G=S.isLockActive;return S.shouldWarn,!(!G()||T!==L)}function zw(S){var T=S.lockAPI,L=S.store,G=S.registry,Z=S.draggableId;if(T.isClaimed())return!1;var K=G.draggable.findById(Z);return!(!K||!K.options.isEnabled||!Ew(L.getState(),Z))}function LE(S){var T=S.lockAPI,L=S.contextId,G=S.store,Z=S.registry,K=S.draggableId,ne=S.forceSensorStop,ae=S.sourceEvent,me=zw({lockAPI:T,store:G,registry:Z,draggableId:K});if(!me)return null;var Le=Z.draggable.getById(K),Ge=DE(L,Le.descriptor.id);if(!Ge||ae&&!Le.options.canDragInteractiveElements&&Nw(Ge,ae))return null;var Pe=T.claim(ne||Jc),Ne="PRE_DRAG";function at(){return Le.options.shouldRespectForcePress}function kt(){return T.isActive(Pe)}function Cr(Cn,Hn){p1({expected:Cn,phase:Ne,isLockActive:kt,shouldWarn:!0})&&G.dispatch(Hn())}var wr=Cr.bind(null,"DRAGGING");function Ar(Cn){function Hn(){T.release(),Ne="COMPLETED"}Ne!=="PRE_DRAG"&&(Hn(),Ne!=="PRE_DRAG"&&zn(!1)),G.dispatch(XC(Cn.liftActionArgs)),Ne="DRAGGING";function Jn(Pi,Da){if(Da===void 0&&(Da={shouldBlockNextClick:!1}),Cn.cleanup(),Da.shouldBlockNextClick){var Aa=Ho(window,[{eventName:"click",fn:u2,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(Aa)}Hn(),G.dispatch(QC({reason:Pi}))}return Ui({isActive:function(){return p1({expected:"DRAGGING",phase:Ne,isLockActive:kt,shouldWarn:!1})},shouldRespectForcePress:at,drop:function(Da){return Jn("DROP",Da)},cancel:function(Da){return Jn("CANCEL",Da)}},Cn.actions)}function Fr(Cn){var Hn=am(function(Pi){wr(function(){return xp({client:Pi})})}),Jn=Ar({liftActionArgs:{id:K,clientSelection:Cn,movementMode:"FLUID"},cleanup:function(){return Hn.cancel()},actions:{move:Hn}});return Ui({},Jn,{move:Hn})}function dn(){var Cn={moveUp:function(){return wr(cE)},moveRight:function(){return wr(xm)},moveDown:function(){return wr(KC)},moveLeft:function(){return wr(OS)}};return Ar({liftActionArgs:{id:K,clientSelection:a2(Ge),movementMode:"SNAP"},cleanup:Jc,actions:Cn})}function zr(){var Cn=p1({expected:"PRE_DRAG",phase:Ne,isLockActive:kt,shouldWarn:!0});Cn&&T.release()}var Yn={isActive:function(){return p1({expected:"PRE_DRAG",phase:Ne,isLockActive:kt,shouldWarn:!1})},shouldRespectForcePress:at,fluidLift:Fr,snapLift:dn,abort:zr};return Yn}var g1=[$m,n2,i2];function PE(S){var T=S.contextId,L=S.store,G=S.registry,Z=S.customSensors,K=S.enableDefaultSensors,ne=[].concat(K?g1:[],Z||[]),ae=(0,lt.useState)(function(){return EE()})[0],me=Li(function(Fr,dn){Fr.isDragging&&!dn.isDragging&&ae.tryAbandon()},[ae]);Tc(function(){var Fr=L.getState(),dn=L.subscribe(function(){var zr=L.getState();me(Fr,zr),Fr=zr});return dn},[ae,L,me]),Tc(function(){return ae.tryAbandon},[ae.tryAbandon]);for(var Le=Li(function(Ar){return zw({lockAPI:ae,registry:G,store:L,draggableId:Ar})},[ae,G,L]),Ge=Li(function(Ar,Fr,dn){return LE({lockAPI:ae,registry:G,contextId:T,store:L,draggableId:Ar,forceSensorStop:Fr,sourceEvent:dn&&dn.sourceEvent?dn.sourceEvent:null})},[T,ae,G,L]),Pe=Li(function(Ar){return RE(T,Ar)},[T]),Ne=Li(function(Ar){var Fr=G.draggable.findById(Ar);return Fr?Fr.options:null},[G.draggable]),at=Li(function(){ae.isClaimed()&&(ae.tryAbandon(),L.getState().phase!=="IDLE"&&L.dispatch(qC()))},[ae,L]),kt=Li(ae.isClaimed,[ae]),Cr=ha(function(){return{canGetLock:Le,tryGetLock:Ge,findClosestDraggableId:Pe,findOptionsForDraggable:Ne,tryReleaseLock:at,isLockClaimed:kt}},[Le,Ge,Pe,Ne,at,kt]),wr=0;wr({[Mu.Rows]:{text:(0,Ve.agQ)("\u884C\u5934"),icon:wa,droppableType:S?vg.Dimensions:vg.Rows},[Mu.Cols]:{text:(0,Ve.agQ)("\u5217\u5934"),icon:G_,droppableType:S?vg.Dimensions:vg.Cols},[Mu.Values]:{text:(0,Ve.agQ)("\u503C"),icon:ZT,droppableType:vg.Measures}}),qo=(...S)=>(0,Ve.d5G)(YM,...S),jw=S=>{switch(S){case"table":return qo("content","one-dimension");default:return qo("content","three-dimensions")}},ty=(S,T)=>S==="table"||T===Mu.Values,S2=(S=[],T=[],L,G)=>{if(G.droppableId===L.droppableId){const ae=[...T],[me]=ae.splice(L.index,1);return ae.splice(G.index,0,me),{[G.droppableId]:ae}}const Z=[...S],K=[...T],[ne]=Z.splice(L.index,1);return K.splice(G.index,0,ne),{[L.droppableId]:Z,[G.droppableId]:K}},x1=(S=[],T,L,G)=>{const Z=Tr({},S.find(K=>K.id===(G!=null?G:L)));return G?Z.children=el(Z.children,K=>fn(Tr({},K),{checked:K.id===L?T:K.checked})):(Z.checked=T,Z.children=el(Z.children,K=>fn(Tr({},K),{checked:T}))),S.map(K=>K.id===Z.id?Z:K)},Vw=S=>{const T=L=>{const G=ne=>Fy(el(ne,ae=>{var me=ae,{children:Le}=me,Ge=jn(me,["children"]);return[Tr({},Ge),...G(Le)]})),Z=G(L),K=Yc(Z,ne=>ne.checked===!1);return{items:Z,hideItems:K}};return{[Mu.Rows]:T(S[Mu.Rows]),[Mu.Cols]:T(S[Mu.Cols]),[Mu.Values]:T(S[Mu.Values])}},Xw=S=>bb(S,"items"),Jg="item",Zw=({dragHandleProps:S,fieldType:T,id:L,displayName:G,selectable:Z,checked:K,parentId:ne,className:ae,disabled:me,onVisibleItemChange:Le})=>{const Ge=(0,lt.useRef)(),[Pe,Ne]=(0,lt.useState)(!1);(0,lt.useEffect)(()=>{Ne(Ge.current.offsetWidthLe==null?void 0:Le(T,kt.target.checked,L,ne)}),Pe?oe().createElement(Ce.Tooltip,{title:at,placement:"bottomRight",overlayClassName:qo("tooltip")},oe().createElement("div",{className:qo(Jg,"text"),ref:Ge},at)):oe().createElement("div",{className:qo(Jg,"text"),ref:Ge},at))};Zw.defaultProps={checked:!0,disabled:!1};var iT="";const ry=({fieldType:S,item:{id:T,displayName:L,checked:G=!0,children:Z=[]},expandable:K,expandChildren:ne,isDragDisabled:ae,selectable:me,index:Le,draggingItemId:Ge,onVisibleItemChange:Pe})=>oe().createElement(QE,{draggableId:T,index:Le,isDragDisabled:ae},(Ne,at)=>oe().createElement("div",fn(Tr({},Ne.draggableProps),{ref:Ne.innerRef,className:Nl(qo(me?"checkable-list":"normal-list"),{dragging:at.isDragging,"disable-dragging":ae})}),oe().createElement(Zw,{dragHandleProps:Ne.dragHandleProps,fieldType:S,id:T,displayName:L,checked:G,onVisibleItemChange:Pe,selectable:me,className:Nl(me?"checkable-item":"normal-item",{"item-collapse":!ne})}),K&&ne&&!_o(Z)&&Ge!==T&&oe().createElement("div",{className:Nl("child-items",{"item-hidden":!ne})},Z.map(kt=>oe().createElement(Zw,{key:kt.id,id:kt.id,fieldType:S,displayName:kt.displayName,disabled:!G,checked:kt.checked,parentId:T,selectable:me,onVisibleItemChange:Pe,className:"checkable-item"})))));var JE="";const ny="dimension",_2=oe().memo(S=>{const T=S,{fieldType:L,crossRows:G=!1,selectable:Z=!1,expandable:K=!1,expandText:ne=(0,Ve.agQ)("\u5C55\u5F00\u5B50\u9879"),allowEmpty:ae=!0,items:me=[],droppableType:Le,text:Ge,icon:Pe}=T,Ne=jn(T,["fieldType","crossRows","selectable","expandable","expandText","allowEmpty","items","droppableType","text","icon"]),[at,kt]=oe().useState(!0),Cr=Ar=>{kt(Ar.target.checked)},wr=!ae&&me.length===1;return oe().createElement("div",{className:Nl(qo(ny),{"long-dimension":G})},oe().createElement("div",{className:qo(ny,"header")},oe().createElement("div",{className:"title"},oe().createElement(Pe,null)," ",oe().createElement("span",null,Ge)),K&&oe().createElement("div",{className:"expand-option"},oe().createElement(Ce.Checkbox,{checked:at,onChange:Cr}),oe().createElement("span",{className:"description"},ne))),oe().createElement(Yw,{droppableId:L,type:Le},(Ar,Fr)=>oe().createElement("div",fn(Tr({ref:Ar.innerRef},Ar.droppableProps),{className:Nl(qo(ny,"items"),{[qo(ny,"items-highlight")]:Fr.isDraggingOver,[qo(ny,"long-items")]:G})}),me.map((dn,zr)=>oe().createElement(ry,Tr({key:dn.id,index:zr,fieldType:L,item:dn,expandable:K,expandChildren:at,selectable:Z,isDragDisabled:wr},Ne))),Ar.placeholder)))});_2.displayName="Dimension";var aT="";const Ip="content",S1=oe().memo(S=>{const T=S,{innerContentClassName:L,contentTitleText:G=(0,Ve.agQ)("\u884C\u5217\u5207\u6362"),resetText:Z=(0,Ve.agQ)("\u6062\u590D\u9ED8\u8BA4"),allowExchangeHeader:K=!0,onToggleVisible:ne,onSubmit:ae,sheetType:me}=T,Le=jn(T,["innerContentClassName","contentTitleText","resetText","allowExchangeHeader","onToggleVisible","onSubmit","sheetType"]),Ge=w1(K),Pe=Xw(Le),[Ne,at]=oe().useState(Pe),[kt,Cr]=oe().useState(null),wr=Hn=>{Cr(Hn.draggableId)},Ar=({destination:Hn,source:Jn})=>{if(Cr(null),!Hn||Hn.droppableId===Jn.droppableId&&Hn.index===Jn.index)return;const Pi=S2(Ne[Jn.droppableId],Ne[Hn.droppableId],Jn,Hn);at(Tr(Tr({},Ne),Pi))},Fr=()=>{at(Pe)},dn=()=>{ne(),ae==null||ae(Vw(Ne))},zr=(Hn,Jn,Pi,Da)=>{const Aa=x1(Ne[Hn],Jn,Pi,Da);at(fn(Tr({},Ne),{[Hn]:Aa}))},Yn=yc(Pe,Ne),Cn=Vd.filter(Hn=>me!=="table"||Hn===Mu.Cols);return oe().createElement(Vg,{onBeforeCapture:wr,onDragEnd:Ar},oe().createElement("div",{className:Nl(L,qo(Ip))},oe().createElement("header",{className:qo(Ip,"header")},G),oe().createElement("main",{className:Nl(qo(Ip,"main"),jw(me))},Cn.map(Hn=>oe().createElement(_2,Tr(fn(Tr({},Le[Hn]),{key:Hn,fieldType:Hn,items:Ne[Hn],crossRows:ty(me,Hn),draggingItemId:kt,onVisibleItemChange:zr}),Ge[Hn])))),oe().createElement("footer",{className:qo(Ip,"footer")},oe().createElement(Ce.Button,{type:"text",icon:oe().createElement(ie.ReloadOutlined,null),className:qo(Ip,"footer","reset-button"),disabled:Yn,onClick:Fr},Z),oe().createElement("div",{className:qo(Ip,"footer","actions")},oe().createElement(Ce.Button,{className:"action-button",onClick:ne},(0,Ve.agQ)("\u53D6\u6D88")),oe().createElement(Ce.Button,{className:"action-button",type:"primary",disabled:Yn,onClick:dn},(0,Ve.agQ)("\u786E\u5B9A"))))))});S1.displayName="SwitcherContent",S1.defaultProps={sheetType:"pivot"};var oT="";const eM=S=>{var T=S,{title:L,popover:G,disabled:Z}=T,K=jn(T,["title","popover","disabled"]);const[ne,ae]=(0,lt.useState)(!1),me=()=>{ae(Le=>!Le)};return oe().createElement(Ce.Popover,Tr({visible:!Z&&ne,content:oe().createElement(S1,fn(Tr({},K),{onToggleVisible:me})),onVisibleChange:me,trigger:"click",placement:"bottomLeft",destroyTooltipOnHide:!0},G),(0,lt.isValidElement)(L)?L:oe().createElement(Ce.Button,{className:qo("entry-button"),size:"small",disabled:Z,icon:oe().createElement(Xx,null)},L||(0,Ve.agQ)("\u884C\u5217\u5207\u6362")))},E2=S=>{var T=S,{sheet:L,dataCfg:G,options:Z}=T,K=jn(T,["sheet","dataCfg","options"]),ne;const[ae,me]=oe().useState(()=>{var Ge;return pg(L,G,(Ge=Z==null?void 0:Z.interaction)==null?void 0:Ge.hiddenColumnFields)});ap(()=>{var Ge;me(pg(L,G,(Ge=Z==null?void 0:Z.interaction)==null?void 0:Ge.hiddenColumnFields))},[L,G,(ne=Z==null?void 0:Z.interaction)==null?void 0:ne.hiddenColumnFields]);const Le=Ge=>{var Pe;const{fields:Ne,hiddenColumnFields:at}=Db(L,Ge);L.setDataCfg({fields:Tr(Tr({},L.dataCfg.fields),Ne)}),at&&L.setOptions({interaction:{hiddenColumnFields:at}}),L.render(),me(pC(L,Ge,(Pe=L.dataCfg)==null?void 0:Pe.meta,at))};return oe().createElement(eM,Tr(Tr({sheetType:$0(L),onSubmit:Le},K),ae))};var lT="";const e0=oe().memo(S=>{var T=S,{className:L,title:G,width:Z,description:K,exportCfg:ne,advancedSortCfg:ae,switcherCfg:me,sheet:Le,extra:Ge,dataCfg:Pe,options:Ne}=T,at=jn(T,["className","title","width","description","exportCfg","advancedSortCfg","switcherCfg","sheet","extra","dataCfg","options"]);const kt="s2-header",Cr=()=>oe().createElement(oe().Fragment,null,Ge,me.open&&oe().createElement(E2,Tr({sheet:Le,dataCfg:Pe,options:Ne},me)),ae.open&&oe().createElement(U_,Tr({sheet:Le},ae)),ne.open&&oe().createElement(G0,Tr({key:"export",sheet:Le},ne)));return oe().createElement(Ce.PageHeader,Tr({className:Nl(kt,L),style:{width:Z},ghost:!1,title:G,extra:Cr()},at),K)});e0.displayName="Header",e0.defaultProps={exportCfg:{open:!1},advancedSortCfg:{open:!1},switcherCfg:{open:!1}};const iy=`${Ve.vhY}-pagination`,Kw=({pagination:S,onShowSizeChange:T,onChange:L})=>{if(_o(S))return null;const{total:G,pageSize:Z}=S,K=G/Z>5;return oe().createElement("div",{className:iy},oe().createElement(Ce.Pagination,fn(Tr({size:"small",defaultCurrent:1,showSizeChanger:!0,showQuickJumper:K},S),{onShowSizeChange:T,onChange:L})),oe().createElement("span",{className:`${iy}-count`,title:`${(0,Ve.agQ)("\u5171\u8BA1")}${G}${(0,Ve.agQ)("\u6761")}`},(0,Ve.agQ)("\u5171\u8BA1"),G||" - ",(0,Ve.agQ)("\u6761")))};Kw.displayName="S2Pagination";var t0="";const fv=oe().forwardRef((S,T)=>{const{dataCfg:L,options:G,header:Z}=S,{s2Ref:K,loading:ne,containerRef:ae,pagination:me,wrapperRef:Le}=ju(S),[Ge,Pe]=(0,lt.useState)(K.current);return(0,lt.useEffect)(()=>{T&&(T.current=K.current)},[T,K]),(0,lt.useEffect)(()=>Pe(K.current),[K.current]),oe().createElement(oe().StrictMode,null,oe().createElement(Ib.Provider,{value:Ge},oe().createElement(Ce.Spin,{spinning:ne,wrapperClassName:`${Ve.vhY}-spin`},oe().createElement("div",{ref:Le,className:`${Ve.vhY}-wrapper`},Z&&oe().createElement(e0,fn(Tr({},Z),{sheet:K.current,width:G.width,dataCfg:(0,Ve.Unm)(L),options:fl(G)})),oe().createElement("div",{ref:ae,className:`${Ve.vhY}-container`}),me.showPagination&&oe().createElement(Kw,{pagination:me.pagination,onChange:me.onChange,onShowSizeChange:me.onShowSizeChange}),S.children))))});fv.displayName="BaseSheet",fv.defaultProps={options:{},adaptive:!1,showPagination:!1};const _1=oe().memo(S=>{const T=oe().useRef();return oe().createElement(fv,fn(Tr({},S),{ref:T}))});_1.displayName="TableSheet";class tM extends Ve.f4X{drawTextShape(){Nr(this.getMeta().fieldValue)?(0,Ve.qPk)(this):super.drawTextShape()}}const rM=S=>new tM(S,S.spreadsheet),qw=12,E1={dataCell:{text:{fontSize:qw,fontFamily:Ve.utx,fill:"rgba(0, 0, 0, 0.85)",fontWeight:"normal",textBaseline:"middle",textAlign:"left"},minorText:{fontSize:11,fontFamily:Ve.utx,fill:"rgba(0, 0, 0, 0.45)",fontWeight:"normal",textBaseline:"middle",textAlign:"left"},derivedMeasureText:{mainUp:"#F46649",mainDown:"#2AA491",minorUp:"#f9ae9e",minorDown:"#a9dad2"},bolderText:{fontSize:qw,fontFamily:Ve.utx,fill:"rgba(0, 0, 0, 1)",fontWeight:(0,Ve.EDF)()?"bold":520,textBaseline:"middle",textAlign:"left"}}},M2=oe().memo(S=>{const T=S,{options:L,themeCfg:G}=T,Z=jn(T,["options","themeCfg"]),K=oe().useRef(),ne=oe().useMemo(()=>(0,Ve._Ge)(L,{dataCell:rM,showDefaultHeaderActionIcon:!1,style:{colCfg:{hideMeasureColumn:!0}}}),[L]),ae=oe().useMemo(()=>(0,Ve._Ge)({},G,{theme:E1}),[G]);return oe().createElement(fv,Tr({options:ne,themeCfg:ae,ref:K},Z))});M2.displayName="GridAnalysisSheet";class Jw extends Ve.X0t{constructor(T,L,G){super(T,L,G)}drawTextShape(){const T=this.getMeta(),L=(0,Ve.D6R)(T==null?void 0:T.value);if(!Te(L))return super.drawTextShape();const{formattedValue:G}=this.getFormattedFieldValue(),Z=G!==(T==null?void 0:T.value)?[[G]]:[L];(0,Ve.qPk)(this,{values:Z},!1)}}class ex extends Ve.f4X{drawTextShape(){Nr(this.getMeta().fieldValue)?(0,Ve.qPk)(this):super.drawTextShape()}}class ay extends Ve.O9R{processDataCfg(T){var L,G;T.fields.rows=[Ve.CoU],T.fields.valueInCols=!1;const Z=T,{data:K,meta:ne}=Z,ae=jn(Z,["data","meta"]),me=[];yf(K,Ne=>{let at=!1;N_(Ne,(kt,Cr)=>{Nr(kt)&&(me.push(fn(Tr({},Ne),{[Ve.CoU]:Cr,[Ve.__x]:kt})),at=!0)}),at||me.push(Ne)});const Le=((G=(L=this.spreadsheet)==null?void 0:L.options)==null?void 0:G.cornerExtraFieldText)||(0,Ve.agQ)("\u6570\u503C"),Ge={field:Ve.CoU,name:Le},Pe=[...ne,Ge];return Tr({data:kr(me),meta:Pe},ae)}}var sT="";const oy=({cell:S,label:T})=>{const L=S.getMeta();if(L.isLeaf&&L.level!==0)return null;const G=L.spreadsheet.dataSet.getFieldName(L.field),Z=pi(T)?T(S,G):T,K=Z!=null?Z:G;return oe().createElement("div",{className:Nl(Re(),Re("col"))},oe().createElement("span",{className:Re("name")},K),oe().createElement("span",{className:Re("value")},L.value))},Bf=S=>es(S.spreadsheet.getColumnNodes(),{colIndex:S.colIndex,isLeaf:!0}),M1=S=>{const T=es(S.spreadsheet.getRowNodes(),{rowIndex:S.rowIndex});return S.spreadsheet.dataSet.getFieldName((T==null?void 0:T.valueFiled)||(T==null?void 0:T.value))},ly=S=>{var T;const L=es(S.spreadsheet.getRowNodes(),{rowIndex:S.rowIndex});return S.spreadsheet.dataSet.getFieldDescription(L==null?void 0:L.field)||((T=L==null?void 0:L.extra)==null?void 0:T.description)},Th=({cell:S,label:T,showOriginalValue:L,renderDerivedValue:G})=>{var Z;const K=S.getMeta(),ne=K==null?void 0:K.fieldValue,ae=ly(K),me=M1(K),Le=pi(T)?T(S,me):T,Ge=Le!=null?Le:me,Pe=Bf(K),[,...Ne]=oe().useMemo(()=>{try{return JSON.parse(Pe==null?void 0:Pe.value)}catch(Cn){return[]}},[Pe==null?void 0:Pe.value]),{placeholder:at,style:kt}=K.spreadsheet.options,Cr=(Z=kt.cellCfg)==null?void 0:Z.valuesCfg,[wr,...Ar]=oh(ne==null?void 0:ne.values)||[ne],[Fr,...dn]=oh(Kp(ne,Cr==null?void 0:Cr.originalValueField))||[wr],zr=(0,Ve.o3g)(K,at),Yn=(Cr==null?void 0:Cr.showOriginalValue)||L;return oe().createElement("div",{className:Nl(Re(),Re("data"))},oe().createElement("div",{className:Re("header")},oe().createElement("span",{className:"header-label"},Ge),oe().createElement("span",null,wr!=null?wr:zr)),Yn&&oe().createElement("div",{className:Re("original-value")},ed(Fr)?zr:Fr),!_o(Ar)&&oe().createElement(oe().Fragment,null,oe().createElement("div",{className:Re("divider")}),oe().createElement("ul",{className:Re("derived-values")},Ar.map((Cn,Hn)=>{var Jn;const Pi=ed(Cn)||Cn==="",Da=(0,Ve.Pyr)(Cn),Aa=!Pi&&!Da,il=dn[Hn];return oe().createElement("li",{className:"derived-value-item",key:Hn},oe().createElement("span",{className:"derived-value-label"},Ne[Hn]),oe().createElement("span",{className:Nl("derived-value-group",{"derived-value-trend-up":Da,"derived-value-trend-down":Aa})},!Pi&&oe().createElement("span",{className:"derived-value-trend-icon"}),(Jn=G==null?void 0:G(Cn,il,S))!=null?Jn:oe().createElement("span",{className:"derived-value-content"},Cn!=null?Cn:zr)))}))),ae&&oe().createElement("div",{className:Re("description")},(0,Ve.agQ)("\u8BF4\u660E"),": ",ae))};Th.defaultProps={showOriginalValue:!1};const ac=({cell:S,label:T})=>{const{field:L,spreadsheet:G,value:Z,extra:K}=S.getMeta(),ne=pi(T)?T(S,Z):T,ae=ne!=null?ne:Z,me=G.dataSet.getFieldDescription(L)||(K==null?void 0:K.description);return oe().createElement("div",{className:Nl(Re(),Re("row"))},oe().createElement("div",{className:Re("value")},ae),me&&oe().createElement("div",{className:Re("description")},(0,Ve.agQ)("\u8BF4\u660E"),": ",me))},T2=oe().memo(S=>{const T=S,{options:L,themeCfg:G,dataCfg:Z}=T,K=jn(T,["options","themeCfg","dataCfg"]),ne=oe().useRef(),ae=oe().useMemo(()=>{var Ge,Pe,Ne;if(_o(Z))return{};let at=!1,kt="tree";_o((Ge=Z==null?void 0:Z.fields)==null?void 0:Ge.rows)&&!_o((Pe=Z==null?void 0:Z.fields)==null?void 0:Pe.customTreeItems)&&(kt="customTree"),fC((Ne=Z==null?void 0:Z.fields)==null?void 0:Ne.values)===1&&L.hierarchyType!=="customTree"&&(at=!0);const Cr=wr=>(Ar,Fr)=>{var dn,zr,Yn,Cn;const Hn=(Cn=(zr=(dn=L.tooltip)==null?void 0:dn[wr])==null?void 0:zr.content)!=null?Cn:(Yn=L.tooltip)==null?void 0:Yn.content;return pi(Hn)?Hn==null?void 0:Hn(Ar,Fr):Hn};return{dataCell:wr=>new ex(wr,wr.spreadsheet),colCell:(wr,Ar,Fr)=>new Jw(wr,Ar,Fr),dataSet:wr=>new ay(wr),showDefaultHeaderActionIcon:!1,hierarchyType:kt,style:{colCfg:{hideMeasureColumn:at}},interaction:{autoResetSheetStyle:!0,brushSelection:!1,selectedCellMove:!1,multiSelection:!1,rangeSelection:!1},tooltip:{operation:{hiddenColumns:!0},row:{content:(wr,Ar)=>{var Fr;return(Fr=Cr("row")(wr,Ar))!=null?Fr:oe().createElement(ac,{cell:wr})}},col:{content:(wr,Ar)=>{var Fr;return(Fr=Cr("row")(wr,Ar))!=null?Fr:oe().createElement(oy,{cell:wr})}},data:{content:(wr,Ar)=>{const dn=wr.getMeta().fieldValue,zr=Cr("data")(wr,Ar);return ed(zr)?Te(dn==null?void 0:dn.values)?oe().createElement(Th,{cell:wr}):oe().createElement(oe().Fragment,null):zr}}}}},[Z,L.hierarchyType,L.tooltip]),me=oe().useMemo(()=>{var Ge;const Pe={fields:{valueInCols:fC((Ge=Z==null?void 0:Z.fields)==null?void 0:Ge.values)<=1}};return(0,Ve._Ge)(Z,Pe)},[Z]),Le=oe().useMemo(()=>(0,Ve._Ge)(L,ae),[L,ae]);return oe().createElement(fv,Tr({options:Le,themeCfg:G,dataCfg:me,ref:ne},K))});T2.displayName="StrategySheet";var tx="";const sy=S=>{var T=S,{className:L,titleText:G=(0,Ve.agQ)("\u9009\u62E9\u4E0B\u94BB\u7EF4\u5EA6"),clearButtonText:Z=(0,Ve.agQ)("\u6062\u590D\u9ED8\u8BA4"),searchText:K=(0,Ve.agQ)("\u641C\u7D22\u5B57\u6BB5"),extra:ne,drillFields:ae,dataSet:me,disabledFields:Le,getDrillFields:Ge,setDrillFields:Pe}=T,Ne=jn(T,["className","titleText","clearButtonText","searchText","extra","drillFields","dataSet","disabledFields","getDrillFields","setDrillFields"]);const at={text:oe().createElement($_,null),location:oe().createElement(GM,null),date:oe().createElement(ca,null)},kt=()=>me.map(zr=>(zr.disabled=!!(Le&&Le.includes(zr.value)),zr)),[Cr,wr]=(0,lt.useState)(kt()),Ar=zr=>{const{value:Yn}=zr.target;if(!Yn)wr([...me]);else{const Cn=new RegExp(Yn,"gi"),Hn=me.filter(Jn=>Cn.test(Jn.name));wr([...Hn])}},Fr=zr=>{const Yn=zr==null?void 0:zr.selectedKeys;Ge&&Ge([...Yn]),Pe&&Pe([...Yn])},dn=zr=>{zr.stopPropagation(),Ge&&Ge([]),Pe&&Pe([])};return(0,lt.useEffect)(()=>{wr(kt())},[Le]),oe().createElement(Ce.ConfigProvider,null,oe().createElement("div",Tr({className:Nl(be,L)},Ne),oe().createElement("header",{className:`${be}-header`},oe().createElement("div",null,G),oe().createElement(Ce.Button,{type:"link",disabled:_o(ae),onClick:dn},Z)),oe().createElement(Ce.Input,{className:`${be}-search`,placeholder:K,onChange:Ar,onPressEnter:Ar,prefix:oe().createElement(rs,null),allowClear:!0}),_o(Cr)&&oe().createElement(Ce.Empty,{imageStyle:{height:"64px"},className:`${be}-empty`}),ne,oe().createElement(Ce.Menu,{className:`${be}-menu`,selectedKeys:ae,onSelect:Fr},Cr.map(zr=>oe().createElement(Ce.Menu.Item,{key:zr.value,disabled:zr.disabled,className:`${be}-menu-item`,icon:zr.icon?zr.icon:at[zr.type]},zr.name)))))},O2=["drillConfig","displayCondition","drillItemsNum"],nM=S=>{const T=oe().useRef(S),L=O2.map(G=>S==null?void 0:S[G]);return oe().useCallback(G=>{const Z=T.current,K=!!O2.find(ne=>!Object.is(S==null?void 0:S[ne],Z==null?void 0:Z[ne]));return T.current=S,{reloadData:K||G.reloadData,reBuildDataSet:G.reBuildDataSet}},L)};function rx(S,T,L,G,Z){if(G){const Ne=document.querySelector(`#${G}`);if(Ne&&fr.unmountComponentAtNode(Ne)&&Ne.parentNode){Ne.parentNode.removeChild(Ne);return}}const K=document.createElement("div");G&&(K.id=G),document.body.appendChild(K);let ne,ae;function me(...Ne){fr.unmountComponentAtNode(K)&&K.parentNode&&(K.parentNode.removeChild(K),Z&&Z())}function Le(...Ne){me.call(null,...Ne),ae()}const Ge=new Promise((Ne,at)=>{ne=Ne,ae=at}).then(Ne=>(Le(),Ne));function Pe(){setTimeout(()=>{fr.render(lt.createElement(Ib.Provider,{value:L},lt.createElement(S,{onCancel:Le,resolver:ne,params:T})),K)})}return Pe(),Ge}var kf="";function iM(S){const{params:T,resolver:L}=S,G=W0(),{event:Z,onChange:K,CustomComponent:ne}=T,ae=Z.target.cfg.parent,{left:me,top:Le,width:Ge,height:Pe}=(0,lt.useMemo)(()=>{const Jn=(G==null?void 0:G.container.cfg.container).getBoundingClientRect();return{left:window.scrollX+Jn.left,top:window.scrollY+Jn.top,width:Jn.width,height:Jn.height}},[G==null?void 0:G.container.cfg.container]),{x:Ne,y:at,width:kt,height:Cr}=(0,lt.useMemo)(()=>{const Jn=G.facet.getScrollOffset(),Pi=Cc(ae.getMeta(),["x","y","width","height"]);return Pi.x-=Jn.scrollX||0,Pi.y-=(Jn.scrollY||0)-(G.getColumnNodes()[0]||{height:0}).height,Pi},[ae,G]),[wr,Ar]=(0,lt.useState)(ae.getMeta().fieldValue),Fr=(0,lt.useRef)(null),dn=(0,lt.useRef)(null);(0,lt.useEffect)(()=>{setTimeout(()=>{dn.current&&dn.current.click(),Fr.current&&Fr.current.focus()})},[]);const zr=()=>{const{rowIndex:Jn,valueField:Pi}=ae.getMeta();G.dataSet.originData[Jn][Pi]=wr,G.render(!0),K&&K(G.dataSet.originData),L(!0)},Yn=Jn=>{Jn.keyCode===13&&(Jn.preventDefault(),zr())},Cn=oe().useMemo(()=>({left:Ne,top:at,width:kt,height:Cr,zIndex:1e3}),[]),Hn=Jn=>{Ar(Jn)};return oe().createElement("div",{ref:dn,style:{zIndex:500,position:"absolute",overflow:"hidden",left:me,top:Le,width:Ge,height:Pe}},ne?oe().createElement(ne,{cell:ae,spreadsheet:G,value:wr,style:Cn,onChange:Hn,onSave:zr}):oe().createElement(Ce.Input.TextArea,{required:!0,style:Cn,className:"s2-edit-cell",value:wr,ref:Fr,onChange:Jn=>{Ar(Jn.target.value)},onBlur:zr,onKeyDown:Yn}))}function nx({onChange:S,CustomComponent:T}){const L=W0(),G=(0,lt.useCallback)(Z=>{rx(iM,{event:Z,onChange:S,CustomComponent:T},L)},[L]);return yi(Ve.ch4.DATA_CELL_DOUBLE_CLICK,G,L),null}const da=oe().memo(S=>oe().createElement(fv,fn(Tr({},S),{sheetType:"table"}),oe().createElement(nx,{onChange:()=>{}})));da.displayName="EditableSheet";const A2=oe().memo(S=>{const T=S,{options:L}=T,G=jn(T,["options"]),{dataCfg:Z,partDrillDown:K}=G,ne=oe().useRef(),[ae,me]=oe().useState([]),Le=_b(({sheetInstance:at,cacheDrillFields:kt,disabledFields:Cr,event:wr})=>{const Ar=oe().createElement(sy,fn(Tr({},K==null?void 0:K.drillConfig),{setDrillFields:me,drillFields:kt,disabledFields:Cr}));if(wr){const{showTooltip:Fr}=(0,Ve.Hu7)(at,wr);if(!Fr)return;at.showTooltip({position:{x:wr.clientX,y:wr.clientY},content:Ar})}}),Ge=oe().useMemo(()=>ul(L,K,at=>Le.current(at)),[L,K,Le]),Pe=at=>{var kt;(kt=ne.current)==null||kt.clearDrillDownData(at)};oe().useEffect(()=>{var at,kt;(at=ne.current)==null||at.hideTooltip(),_o(ae)?Pe((kt=ne.current.store.get("drillDownNode"))==null?void 0:kt.id):H0({rows:Z.fields.rows,drillFields:ae,fetchData:K==null?void 0:K.fetchData,drillItemsNum:K==null?void 0:K.drillItemsNum,spreadsheet:ne.current})},[ae]),oe().useEffect(()=>{var at;Nr(K==null?void 0:K.clearDrillDown)&&Pe((at=K==null?void 0:K.clearDrillDown)==null?void 0:at.rowId)},[K==null?void 0:K.clearDrillDown]);const Ne=nM(K);return oe().createElement(fv,fn(Tr({},G),{options:Ge,onSheetUpdate:Ne,ref:ne}))});A2.displayName="PivotSheet";const I2=oe().forwardRef((S,T)=>{const{sheetType:L}=S,G=oe().useMemo(()=>fn(Tr({},S),{getSpreadSheet:ne=>{var ae;T&&(T.current=ne),(ae=S.getSpreadSheet)==null||ae.call(S,ne)}}),[S,T]),Z=oe().useMemo(()=>{switch(L){case"table":return oe().createElement(_1,Tr({},G));case"gridAnalysis":return oe().createElement(M2,Tr({},G));case"strategy":return oe().createElement(T2,Tr({},G));case"editable":return oe().createElement(da,Tr({},G));default:return oe().createElement(A2,Tr({},G))}},[L,G]),K=(0,Ve.VQD)()==="zh_CN"?Nt.Z:Tt;return oe().createElement(oe().StrictMode,null,oe().createElement(Ce.ConfigProvider,{locale:K},Z))}),R2=oe().memo(I2);R2.displayName="SheetComponent"},76311:function(ti,On,rt){"use strict";rt.d(On,{AfN:function(){return DM},CoU:function(){return ra},Czd:function(){return Mn},D6R:function(){return IR},DUx:function(){return YR},DYf:function(){return na},EDF:function(){return Qn},F1h:function(){return s4},HZt:function(){return hF},Hu7:function(){return y6},IYT:function(){return w_},IZo:function(){return s5},JVc:function(){return KL},KQ4:function(){return wA},LRf:function(){return Q8},Lau:function(){return k0},Lov:function(){return FM},N6r:function(){return fD},NO_:function(){return LM},NqB:function(){return rd},O6N:function(){return ah},O9R:function(){return d5},Pyr:function(){return m8},SBE:function(){return rp},TA7:function(){return cF},TVL:function(){return W8},Teh:function(){return A0},UhE:function(){return UR},Unm:function(){return s6},VQD:function(){return $I},WNh:function(){return hC},Wb9:function(){return r6},WkZ:function(){return WP},X0t:function(){return _A},XPl:function(){return nP},Xzc:function(){return B0},_61:function(){return hi},_Ge:function(){return N1},__x:function(){return Es},aPw:function(){return gP},agQ:function(){return vu},c8d:function(){return u4},ch4:function(){return Dr},d5G:function(){return _k},esq:function(){return EA},f4X:function(){return bx},gO9:function(){return xd},hYO:function(){return QI},lZf:function(){return M5},lbT:function(){return mx},o0q:function(){return UT},o3g:function(){return NM},q5g:function(){return wR},q7_:function(){return NL},qPk:function(){return oP},utx:function(){return kc},vQq:function(){return yP},vhY:function(){return np}}),ti=rt.hmd(ti);var Ve=rt(27061),Ce=Object.freeze({__proto__:null,get Base(){return go},get Circle(){return M0},get Ellipse(){return R_},get Image(){return rb},get Line(){return D_},get Marker(){return nh},get Path(){return ag},get Polygon(){return ob},get Polyline(){return lb},get Rect(){return nC},get Text(){return iC}});var lt=function(l,s){return lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,u){i.__proto__=u}||function(i,u){for(var g in u)Object.prototype.hasOwnProperty.call(u,g)&&(i[g]=u[g])},lt(l,s)};function oe(l,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");lt(l,s);function i(){this.constructor=l}l.prototype=s===null?Object.create(s):(i.prototype=s.prototype,new i)}var fr=function(){return fr=Object.assign||function(s){for(var i,u=1,g=arguments.length;u2&&(i.push([g].concat(x.splice(0,2))),E="l",g=g==="m"?"l":"L"),E==="o"&&x.length===1&&i.push([g,x[0]]),E==="r")i.push([g].concat(x));else for(;x.length>=s[E]&&(i.push([g].concat(x.splice(0,s[E]))),!!s[E]););return l}),i},ct=function(l,s){for(var i=[],u=0,g=l.length;g-2*!s>u;u+=2){var C=[{x:+l[u-2],y:+l[u-1]},{x:+l[u],y:+l[u+1]},{x:+l[u+2],y:+l[u+3]},{x:+l[u+4],y:+l[u+5]}];s?u?g-4===u?C[3]={x:+l[0],y:+l[1]}:g-2===u&&(C[2]={x:+l[0],y:+l[1]},C[3]={x:+l[2],y:+l[3]}):C[0]={x:+l[g-2],y:+l[g-1]}:g-4===u?C[3]=C[2]:u||(C[0]={x:+l[u],y:+l[u+1]}),i.push(["C",(-C[0].x+6*C[1].x+C[2].x)/6,(-C[0].y+6*C[1].y+C[2].y)/6,(C[1].x+6*C[2].x-C[3].x)/6,(C[1].y+6*C[2].y-C[3].y)/6,C[2].x,C[2].y])}return i},qt=function(l,s,i,u,g){var C=[];if(g===null&&u===null&&(u=i),l=+l,s=+s,i=+i,u=+u,g!==null){var x=Math.PI/180,E=l+i*Math.cos(-u*x),O=l+i*Math.cos(-g*x),R=s+i*Math.sin(-u*x),k=s+i*Math.sin(-g*x);C=[["M",E,R],["A",i,i,0,+(g-u>180),0,O,k]]}else C=[["M",l,s],["m",0,-u],["a",i,u,0,1,1,0,2*u],["a",i,u,0,1,1,0,-2*u],["z"]];return C},et=function(l){if(l=Ie(l),!l||!l.length)return[["M",0,0]];var s=[],i=0,u=0,g=0,C=0,x=0,E,O;l[0][0]==="M"&&(i=+l[0][1],u=+l[0][2],g=i,C=u,x++,s[0]=["M",i,u]);for(var R=l.length===3&&l[0][0]==="M"&&l[1][0].toUpperCase()==="R"&&l[2][0].toUpperCase()==="Z",k=void 0,z=void 0,j=x,q=l.length;j1&&(Ut=Math.sqrt(Ut),i=Ut*i,u=Ut*u);var mr=i*i,xr=u*u,Kr=(C===x?-1:1)*Math.sqrt(Math.abs((mr*xr-mr*Ze*Ze-xr*Ue*Ue)/(mr*Ze*Ze+xr*Ue*Ue)));ye=Kr*i*Ze/u+(l+E)/2,Me=Kr*-u*Ue/i+(s+O)/2,ee=Math.asin(((s-Me)/u).toFixed(9)),le=Math.asin(((O-Me)/u).toFixed(9)),ee=lle&&(ee=ee-Math.PI*2),!x&&le>ee&&(le=le-Math.PI*2)}var mn=le-ee;if(Math.abs(mn)>k){var Vn=le,In=E,Un=O;le=ee+k*(x&&le>ee?1:-1),E=ye+i*Math.cos(le),O=Me+u*Math.sin(le),j=pt(E,O,i,u,g,0,x,In,Un,[le,Vn,ye,Me])}mn=le-ee;var di=Math.cos(ee),Bi=Math.sin(ee),Rn=Math.cos(le),Kn=Math.sin(le),xo=Math.tan(mn/4),to=4/3*i*xo,Bo=4/3*u*xo,aa=[l,s],ko=[l+to*Bi,s-Bo*di],Xa=[E+to*Kn,O-Bo*Rn],mu=[E,O];if(ko[0]=2*aa[0]-ko[0],ko[1]=2*aa[1]-ko[1],R)return[ko,Xa,mu].concat(j);j=[ko,Xa,mu].concat(j).join().split(",");for(var ss=[],To=0,Cl=j.length;To7){Ue[Ze].shift();for(var Ut=Ue[Ze];Ut.length;)x[Ze]="A",u&&(E[Ze]="A"),Ue.splice(Ze++,0,["C"].concat(Ut.splice(0,6)));Ue.splice(Ze,1),k=Math.max(i.length,u&&u.length||0)}},q=function(Ue,Ze,Ut,mr,xr){Ue&&Ze&&Ue[xr][0]==="M"&&Ze[xr][0]!=="M"&&(Ze.splice(xr,0,["M",mr.x,mr.y]),Ut.bx=0,Ut.by=0,Ut.x=Ue[xr][1],Ut.y=Ue[xr][2],k=Math.max(i.length,u&&u.length||0))};k=Math.max(i.length,u&&u.length||0);for(var ee=0;ee1?1:O<0?0:O;for(var R=O/2,k=12,z=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],j=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],q=0,ee=0;ee0&&q<1&&O.push(q);continue}var le=z*z-4*j*k,ye=Math.sqrt(le);if(!(le<0)){var Me=(-z+ye)/(2*k);Me>0&&Me<1&&O.push(Me);var We=(-z-ye)/(2*k);We>0&&We<1&&O.push(We)}}for(var Ue=O.length,Ze=Ue,Ut;Ue--;)q=O[Ue],Ut=1-q,R[0][Ue]=Ut*Ut*Ut*l+3*Ut*Ut*q*i+3*Ut*q*q*g+q*q*q*x,R[1][Ue]=Ut*Ut*Ut*s+3*Ut*Ut*q*u+3*Ut*q*q*C+q*q*q*E;return R[0][Ze]=l,R[1][Ze]=s,R[0][Ze+1]=x,R[1][Ze+1]=E,R[0].length=R[1].length=Ze+2,{min:{x:Math.min.apply(0,R[0]),y:Math.min.apply(0,R[1])},max:{x:Math.max.apply(0,R[0]),y:Math.max.apply(0,R[1])}}},vn=function(l,s,i,u,g,C,x,E){if(!(Math.max(l,i)Math.max(g,x)||Math.max(s,u)Math.max(C,E))){var O=(l*u-s*i)*(g-x)-(l-i)*(g*E-C*x),R=(l*u-s*i)*(C-E)-(s-u)*(g*E-C*x),k=(l-i)*(C-E)-(s-u)*(g-x);if(k){var z=O/k,j=R/k,q=+z.toFixed(2),ee=+j.toFixed(2);if(!(q<+Math.min(l,i).toFixed(2)||q>+Math.max(l,i).toFixed(2)||q<+Math.min(g,x).toFixed(2)||q>+Math.max(g,x).toFixed(2)||ee<+Math.min(s,u).toFixed(2)||ee>+Math.max(s,u).toFixed(2)||ee<+Math.min(C,E).toFixed(2)||ee>+Math.max(C,E).toFixed(2)))return{x:z,y:j}}}},cn=function(l,s,i){return s>=l.x&&s<=l.x+l.width&&i>=l.y&&i<=l.y+l.height},Xn=function(l,s,i,u,g){if(g)return[["M",+l+ +g,s],["l",i-g*2,0],["a",g,g,0,0,1,g,g],["l",0,u-g*2],["a",g,g,0,0,1,-g,g],["l",g*2-i,0],["a",g,g,0,0,1,-g,-g],["l",0,g*2-u],["a",g,g,0,0,1,g,-g],["z"]];var C=[["M",l,s],["l",i,0],["l",0,u],["l",-i,0],["z"]];return C.parsePathArray=Lt,C},un=function(l,s,i,u){return l===null&&(l=s=i=u=0),s===null&&(s=l.y,i=l.width,u=l.height,l=l.x),{x:l,y:s,width:i,w:i,height:u,h:u,x2:l+i,y2:s+u,cx:l+i/2,cy:s+u/2,r1:Math.min(i,u)/2,r2:Math.max(i,u)/2,r0:Math.sqrt(i*i+u*u)/2,path:Xn(l,s,i,u),vb:[l,s,i,u].join(" ")}},Jr=function(l,s){return l=un(l),s=un(s),cn(s,l.x,l.y)||cn(s,l.x2,l.y)||cn(s,l.x,l.y2)||cn(s,l.x2,l.y2)||cn(l,s.x,s.y)||cn(l,s.x2,s.y)||cn(l,s.x,s.y2)||cn(l,s.x2,s.y2)||(l.xs.x||s.xl.x)&&(l.ys.y||s.yl.y)},tt=function(l,s,i,u,g,C,x,E){Dt(l)||(l=[l,s,i,u,g,C,x,E]);var O=jr.apply(null,l);return un(O.min.x,O.min.y,O.max.x-O.min.x,O.max.y-O.min.y)},de=function(l,s,i,u,g,C,x,E,O){var R=1-O,k=Math.pow(R,3),z=Math.pow(R,2),j=O*O,q=j*O,ee=k*l+z*3*O*i+R*3*O*O*g+q*x,le=k*s+z*3*O*u+R*3*O*O*C+q*E,ye=l+2*O*(i-l)+j*(g-2*i+l),Me=s+2*O*(u-s)+j*(C-2*u+s),We=i+2*O*(g-i)+j*(x-2*g+i),Ue=u+2*O*(C-u)+j*(E-2*C+u),Ze=R*l+O*i,Ut=R*s+O*u,mr=R*g+O*x,xr=R*C+O*E,Kr=90-Math.atan2(ye-We,Me-Ue)*180/Math.PI;return{x:ee,y:le,m:{x:ye,y:Me},n:{x:We,y:Ue},start:{x:Ze,y:Ut},end:{x:mr,y:xr},alpha:Kr}},ve=function(l,s,i){var u=tt(l),g=tt(s);if(!Jr(u,g))return i?0:[];for(var C=dr.apply(0,l),x=dr.apply(0,s),E=~~(C/8),O=~~(x/8),R=[],k=[],z={},j=i?0:[],q=0;q=0&&xr<=1&&Kr>=0&&Kr<=1&&(i?j+=1:j.push({x:mr.x,y:mr.y,t1:xr,t2:Kr}))}}return j},ce=function(l,s,i){l=wt(l),s=wt(s);for(var u,g,C,x,E,O,R,k,z,j,q=i?0:[],ee=0,le=l.length;ee=3&&(z.length===3&&j.push("Q"),j=j.concat(z[1])),z.length===2&&j.push("L"),j=j.concat(z[z.length-1]),j});return k}var Te=function(l,s,i){if(i===1)return[[].concat(l)];var u=[];if(s[0]==="L"||s[0]==="C"||s[0]==="Q")u=u.concat(ke(l,s,i));else{var g=[].concat(l);g[0]==="M"&&(g[0]="L");for(var C=0;C<=i-1;C++)u.push(g)}return u},st=function(l,s){if(l.length===1)return l;var i=l.length-1,u=s.length-1,g=i/u,C=[];if(l.length===1&&l[0][0]==="M"){for(var x=0;x=0;O--)x=C[O].index,C[O].type==="add"?l.splice(x,0,[].concat(l[x])):l.splice(x,1)}u=l.length;var z=g-u;if(u0)i=vr(i,l[u-1],1);else{l[u]=s[u];break}l[u]=["Q"].concat(i.reduce(function(g,C){return g.concat(C)},[]));break;case"T":l[u]=["T"].concat(i[0]);break;case"C":if(i.length<3)if(u>0)i=vr(i,l[u-1],2);else{l[u]=s[u];break}l[u]=["C"].concat(i.reduce(function(g,C){return g.concat(C)},[]));break;case"S":if(i.length<2)if(u>0)i=vr(i,l[u-1],1);else{l[u]=s[u];break}l[u]=["S"].concat(i.reduce(function(g,C){return g.concat(C)},[]));break;default:l[u]=s[u]}return l},Nr=Object.freeze({__proto__:null,catmullRomToBezier:ct,fillPath:st,fillPathByDiff:lr,formatPath:Zt,intersection:we,parsePathArray:Lt,parsePathString:Ie,pathToAbsolute:et,pathToCurve:wt,rectPath:Xn}),en=function(){function l(s,i){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=s,this.name=s,this.originalEvent=i,this.timeStamp=i.timeStamp}return l.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},l.prototype.stopPropagation=function(){this.propagationStopped=!0},l.prototype.toString=function(){var s=this.type;return"[Event (type="+s+")]"},l.prototype.save=function(){},l.prototype.restore=function(){},l}();var Sn=function(l,s){return Sn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,u){i.__proto__=u}||function(i,u){for(var g in u)Object.prototype.hasOwnProperty.call(u,g)&&(i[g]=u[g])},Sn(l,s)};function kn(l,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");Sn(l,s);function i(){this.constructor=l}l.prototype=s===null?Object.create(s):(i.prototype=s.prototype,new i)}var Sr="*",qn=function(){function l(){this._events={}}return l.prototype.on=function(s,i,u){return this._events[s]||(this._events[s]=[]),this._events[s].push({callback:i,once:!!u}),this},l.prototype.once=function(s,i){return this.on(s,i,!0)},l.prototype.emit=function(s){for(var i=this,u=[],g=1;g0&&(g=1/Math.sqrt(g)),l[0]=s[0]*g,l[1]=s[1]*g,l}function Kl(l,s){return l[0]*s[0]+l[1]*s[1]}function Nc(l,s){return l[0]===s[0]&&l[1]===s[1]}(function(){var l=hc();return function(s,i,u,g,C,x){var E,O;for(i||(i=2),u||(u=0),g?O=Math.min(g*i+u,s.length):O=s.length,E=u;Ex.delay&&D(s.toAttrs,function(E,O){C.call(x.toAttrs,O)&&(delete x.toAttrs[O],delete x.fromAttrs[O])})}),l}var Hc=function(l){kn(s,l);function s(i){var u=l.call(this,i)||this;u.attrs={};var g=u.getDefaultAttrs();return ai(g,i.attrs),u.attrs=g,u.initAttrs(g),u.initAnimate(),u}return s.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},s.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},s.prototype.onCanvasChange=function(i){},s.prototype.initAttrs=function(i){},s.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},s.prototype.isGroup=function(){return!1},s.prototype.getParent=function(){return this.get("parent")},s.prototype.getCanvas=function(){return this.get("canvas")},s.prototype.attr=function(){for(var i,u=[],g=0;g0?C=Fh(C,Ze):g.addAnimator(this),C.push(Ze),this.set("animations",C),this.set("_pause",{isPaused:!1})}},s.prototype.stopAnimate=function(i){var u=this;i===void 0&&(i=!0);var g=this.get("animations");D(g,function(C){i&&(C.onFrame?u.attr(C.onFrame(1)):u.attr(C.toAttrs)),C.callback&&C.callback()}),this.set("animating",!1),this.set("animations",[])},s.prototype.pauseAnimate=function(){var i=this.get("timeline"),u=this.get("animations"),g=i.getTime();return D(u,function(C){C._paused=!0,C._pauseTime=g,C.pauseCallback&&C.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:g}),this},s.prototype.resumeAnimate=function(){var i=this.get("timeline"),u=i.getTime(),g=this.get("animations"),C=this.get("_pause").pauseTime;return D(g,function(x){x.startTime=x.startTime+(u-C),x._paused=!1,x._pauseTime=null,x.resumeCallback&&x.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",g),this},s.prototype.emitDelegation=function(i,u){var g=this,C=u.propagationPath;this.getEvents();var x;i==="mouseenter"?x=u.fromShape:i==="mouseleave"&&(x=u.toShape);for(var E=function(z){var j=C[z],q=j.get("name");if(q){if((j.isGroup()||j.isCanvas&&j.isCanvas())&&x&&ba(j,x))return"break";Dt(q)?D(q,function(ee){g.emitDelegateEvent(j,ee,u)}):O.emitDelegateEvent(j,q,u)}},O=this,R=0;R0)});O.length>0?(D(O,function(k){var z=k.getBBox();x.push(z.minX,z.maxX),E.push(z.minY,z.maxY)}),i=Gt(x),u=ot(x),g=Gt(E),C=ot(E)):(i=0,u=0,g=0,C=0);var R={x:i,y:g,minX:i,minY:g,maxX:u,maxY:C,width:u-i,height:C-g};return R},s.prototype.getCanvasBBox=function(){var i=1/0,u=-1/0,g=1/0,C=-1/0,x=[],E=[],O=this.getChildren().filter(function(k){return k.get("visible")&&(!k.isGroup()||k.isGroup()&&k.getChildren().length>0)});O.length>0?(D(O,function(k){var z=k.getCanvasBBox();x.push(z.minX,z.maxX),E.push(z.minY,z.maxY)}),i=Gt(x),u=ot(x),g=Gt(E),C=ot(E)):(i=0,u=0,g=0,C=0);var R={x:i,y:g,minX:i,minY:g,maxX:u,maxY:C,width:u-i,height:C-g};return R},s.prototype.getDefaultCfg=function(){var i=l.prototype.getDefaultCfg.call(this);return i.children=[],i},s.prototype.onAttrChange=function(i,u,g){if(l.prototype.onAttrChange.call(this,i,u,g),i==="matrix"){var C=this.getTotalMatrix();this._applyChildrenMarix(C)}},s.prototype.applyMatrix=function(i){var u=this.getTotalMatrix();l.prototype.applyMatrix.call(this,i);var g=this.getTotalMatrix();g!==u&&this._applyChildrenMarix(g)},s.prototype._applyChildrenMarix=function(i){var u=this.getChildren();D(u,function(g){g.applyMatrix(i)})},s.prototype.addShape=function(){for(var i=[],u=0;u=0;E--){var O=i[E];if(Ai(O)&&(O.isGroup()?x=O.getShape(u,g,C):O.isHit(u,g)&&(x=O)),x)break}return x},s.prototype.add=function(i){var u=this.getCanvas(),g=this.getChildren(),C=this.get("timeline"),x=i.getParent();x&&jt(x,i,!1),i.set("parent",this),u&&Ae(i,u),C&&Ke(i,C),g.push(i),i.onCanvasChange("add"),this._applyElementMatrix(i)},s.prototype._applyElementMatrix=function(i){var u=this.getTotalMatrix();u&&i.applyMatrix(u)},s.prototype.getChildren=function(){return this.get("children")},s.prototype.sort=function(){var i=this.getChildren();D(i,function(u,g){return u[pe]=g,u}),i.sort(Lr(function(u,g){return u.get("zIndex")-g.get("zIndex")})),this.onCanvasChange("sort")},s.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var i=this.getChildren(),u=i.length-1;u>=0;u--)i[u].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},s.prototype.destroy=function(){this.get("destroyed")||(this.clear(),l.prototype.destroy.call(this))},s.prototype.getFirst=function(){return this.getChildByIndex(0)},s.prototype.getLast=function(){var i=this.getChildren();return this.getChildByIndex(i.length-1)},s.prototype.getChildByIndex=function(i){var u=this.getChildren();return u[i]},s.prototype.getCount=function(){var i=this.getChildren();return i.length},s.prototype.contain=function(i){var u=this.getChildren();return u.indexOf(i)>-1},s.prototype.removeChild=function(i,u){u===void 0&&(u=!0),this.contain(i)&&i.remove(u)},s.prototype.findAll=function(i){var u=[],g=this.getChildren();return D(g,function(C){i(C)&&u.push(C),C.isGroup()&&(u=u.concat(C.findAll(i)))}),u},s.prototype.find=function(i){var u=null,g=this.getChildren();return D(g,function(C){if(i(C)?u=C:C.isGroup()&&(u=C.find(i)),u)return!1}),u},s.prototype.findById=function(i){return this.find(function(u){return u.get("id")===i})},s.prototype.findByClassName=function(i){return this.find(function(u){return u.get("className")===i})},s.prototype.findAllByName=function(i){return this.findAll(function(u){return u.get("name")===i})},s}(Hc),Ln=0,si=0,Pn=0,fi=1e3,wi,ci,Vr=0,Dn=0,Ci=0,oi=typeof performance=="object"&&performance.now?performance:Date,Gn=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(l){setTimeout(l,17)};function Wi(){return Dn||(Gn(Gi),Dn=oi.now()+Ci)}function Gi(){Dn=0}function pa(){this._call=this._time=this._next=null}pa.prototype=Ao.prototype={constructor:pa,restart:function(l,s,i){if(typeof l!="function")throw new TypeError("callback is not a function");i=(i==null?Wi():+i)+(s==null?0:+s),!this._next&&ci!==this&&(ci?ci._next=this:wi=this,ci=this),this._call=l,this._time=i,ks()},stop:function(){this._call&&(this._call=null,this._time=1/0,ks())}};function Ao(l,s,i){var u=new pa;return u.restart(l,s,i),u}function ll(){Wi(),++Ln;for(var l=wi,s;l;)(s=Dn-l._time)>=0&&l._call.call(null,s),l=l._next;--Ln}function vo(){Dn=(Vr=oi.now())+Ci,Ln=si=0;try{ll()}finally{Ln=0,eu(),Dn=0}}function Dl(){var l=oi.now(),s=l-Vr;s>fi&&(Ci-=s,Vr=l)}function eu(){for(var l,s=wi,i,u=1/0;s;)s._call?(u>s._time&&(u=s._time),l=s,s=s._next):(i=s._next,s._next=null,s=l?l._next=i:wi=i);ci=l,ks(u)}function ks(l){if(!Ln){si&&(si=clearTimeout(si));var s=l-Dn;s>24?(l<1/0&&(si=setTimeout(vo,l-oi.now()-Ci)),Pn&&(Pn=clearInterval(Pn))):(Pn||(Vr=oi.now(),Pn=setInterval(Dl,fi)),Ln=1,Gn(vo))}}function ws(l,s,i){l.prototype=s.prototype=i,i.constructor=l}function sl(l,s){var i=Object.create(l.prototype);for(var u in s)i[u]=s[u];return i}function yu(){}var xs=.7,Cu=1/xs,ta="\\s*([+-]?\\d+)\\s*",$n="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Qr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Bn=/^#([0-9a-f]{3,8})$/,Ri=new RegExp("^rgb\\("+[ta,ta,ta]+"\\)$"),qi=new RegExp("^rgb\\("+[Qr,Qr,Qr]+"\\)$"),$i=new RegExp("^rgba\\("+[ta,ta,ta,$n]+"\\)$"),Io=new RegExp("^rgba\\("+[Qr,Qr,Qr,$n]+"\\)$"),Oi=new RegExp("^hsl\\("+[$n,Qr,Qr]+"\\)$"),Ro=new RegExp("^hsla\\("+[$n,Qr,Qr,$n]+"\\)$"),po={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};ws(yu,Pu,{copy:function(l){return Object.assign(new this.constructor,this,l)},displayable:function(){return this.rgb().displayable()},hex:Jo,formatHex:Jo,formatHsl:bl,formatRgb:wl,toString:wl});function Jo(){return this.rgb().formatHex()}function bl(){return De(this).formatHsl()}function wl(){return this.rgb().formatRgb()}function Pu(l){var s,i;return l=(l+"").trim().toLowerCase(),(s=Bn.exec(l))?(i=s[1].length,s=parseInt(s[1],16),i===6?Fs(s):i===3?new oo(s>>8&15|s>>4&240,s>>4&15|s&240,(s&15)<<4|s&15,1):i===8?Ed(s>>24&255,s>>16&255,s>>8&255,(s&255)/255):i===4?Ed(s>>12&15|s>>8&240,s>>8&15|s>>4&240,s>>4&15|s&240,((s&15)<<4|s&15)/255):null):(s=Ri.exec(l))?new oo(s[1],s[2],s[3],1):(s=qi.exec(l))?new oo(s[1]*255/100,s[2]*255/100,s[3]*255/100,1):(s=$i.exec(l))?Ed(s[1],s[2],s[3],s[4]):(s=Io.exec(l))?Ed(s[1]*255/100,s[2]*255/100,s[3]*255/100,s[4]):(s=Oi.exec(l))?jf(s[1],s[2]/100,s[3]/100,1):(s=Ro.exec(l))?jf(s[1],s[2]/100,s[3]/100,s[4]):po.hasOwnProperty(l)?Fs(po[l]):l==="transparent"?new oo(NaN,NaN,NaN,0):null}function Fs(l){return new oo(l>>16&255,l>>8&255,l&255,1)}function Ed(l,s,i,u){return u<=0&&(l=s=i=NaN),new oo(l,s,i,u)}function Ev(l){return l instanceof yu||(l=Pu(l)),l?(l=l.rgb(),new oo(l.r,l.g,l.b,l.opacity)):new oo}function Md(l,s,i,u){return arguments.length===1?Ev(l):new oo(l,s,i,u==null?1:u)}function oo(l,s,i,u){this.r=+l,this.g=+s,this.b=+i,this.opacity=+u}ws(oo,Md,sl(yu,{brighter:function(l){return l=l==null?Cu:Math.pow(Cu,l),new oo(this.r*l,this.g*l,this.b*l,this.opacity)},darker:function(l){return l=l==null?xs:Math.pow(xs,l),new oo(this.r*l,this.g*l,this.b*l,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:xl,formatHex:xl,formatRgb:Mv,toString:Mv}));function xl(){return"#"+Ns(this.r)+Ns(this.g)+Ns(this.b)}function Mv(){var l=this.opacity;return l=isNaN(l)?1:Math.max(0,Math.min(1,l)),(l===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))+(l===1?")":", "+l+")")}function Ns(l){return l=Math.max(0,Math.min(255,Math.round(l)||0)),(l<16?"0":"")+l.toString(16)}function jf(l,s,i,u){return u<=0?l=s=i=NaN:i<=0||i>=1?l=s=NaN:s<=0&&(l=NaN),new Xt(l,s,i,u)}function De(l){if(l instanceof Xt)return new Xt(l.h,l.s,l.l,l.opacity);if(l instanceof yu||(l=Pu(l)),!l)return new Xt;if(l instanceof Xt)return l;l=l.rgb();var s=l.r/255,i=l.g/255,u=l.b/255,g=Math.min(s,i,u),C=Math.max(s,i,u),x=NaN,E=C-g,O=(C+g)/2;return E?(s===C?x=(i-u)/E+(i0&&O<1?0:x,new Xt(x,E,O,l.opacity)}function dt(l,s,i,u){return arguments.length===1?De(l):new Xt(l,s,i,u==null?1:u)}function Xt(l,s,i,u){this.h=+l,this.s=+s,this.l=+i,this.opacity=+u}ws(Xt,dt,sl(yu,{brighter:function(l){return l=l==null?Cu:Math.pow(Cu,l),new Xt(this.h,this.s,this.l*l,this.opacity)},darker:function(l){return l=l==null?xs:Math.pow(xs,l),new Xt(this.h,this.s,this.l*l,this.opacity)},rgb:function(){var l=this.h%360+(this.h<0)*360,s=isNaN(l)||isNaN(this.s)?0:this.s,i=this.l,u=i+(i<.5?i:1-i)*s,g=2*i-u;return new oo(pr(l>=240?l-240:l+120,g,u),pr(l,g,u),pr(l<120?l+240:l-120,g,u),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 l=this.opacity;return l=isNaN(l)?1:Math.max(0,Math.min(1,l)),(l===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(l===1?")":", "+l+")")}}));function pr(l,s,i){return(l<60?s+(i-s)*l/60:l<180?i:l<240?s+(i-s)*(240-l)/60:s)*255}function Br(l){return function(){return l}}function En(l,s){return function(i){return l+i*s}}function xi(l,s,i){return l=Math.pow(l,i),s=Math.pow(s,i)-l,i=1/i,function(u){return Math.pow(l+u*s,i)}}function Ra(l){return(l=+l)==1?Xo:function(s,i){return i-s?xi(s,i,l):Br(isNaN(s)?i:s)}}function Xo(l,s){var i=s-l;return i?En(l,i):Br(isNaN(l)?s:l)}var Sl=function l(s){var i=Ra(s);function u(g,C){var x=i((g=Md(g)).r,(C=Md(C)).r),E=i(g.g,C.g),O=i(g.b,C.b),R=Xo(g.opacity,C.opacity);return function(k){return g.r=x(k),g.g=E(k),g.b=O(k),g.opacity=R(k),g+""}}return u.gamma=l,u}(1);function Ql(l,s){s||(s=[]);var i=l?Math.min(s.length,l.length):0,u=s.slice(),g;return function(C){for(g=0;gi&&(C=s.slice(i,C),E[x]?E[x]+=C:E[++x]=C),(u=u[0])===(g=g[0])?E[x]?E[x]+=g:E[++x]=g:(E[++x]=null,O.push({i:x,x:h0(u,g)})),i=Gp.lastIndex;return iR.length?(O=Ie(C[E]),R=Ie(g[E]),R=lr(R,O),R=Zt(R,O),s.fromAttrs.path=R,s.toAttrs.path=O):s.pathFormatted||(O=Ie(C[E]),R=Ie(g[E]),R=Zt(R,O),s.fromAttrs.path=R,s.toAttrs.path=O,s.pathFormatted=!0),u[E]=[];for(var k=0;k0){for(var E=s.animators.length-1;E>=0;E--){if(u=s.animators[E],u.destroyed){s.removeAnimator(E);continue}if(!u.isAnimatePaused()){g=u.get("animations");for(var O=g.length-1;O>=0;O--)C=g[O],i=Id(u,C,x),i&&(g.splice(O,1),i=!1,C.callback&&C.callback())}g.length===0&&s.removeAnimator(E)}var R=s.canvas.get("autoDraw");R||s.canvas.draw()}})},l.prototype.addAnimator=function(s){this.animators.push(s)},l.prototype.removeAnimator=function(s){this.animators.splice(s,1)},l.prototype.isAnimating=function(){return!!this.animators.length},l.prototype.stop=function(){this.timer&&this.timer.stop()},l.prototype.stopAllAnimations=function(s){s===void 0&&(s=!0),this.animators.forEach(function(i){i.stopAnimate(s)}),this.animators=[],this.canvas.draw()},l.prototype.getTime=function(){return this.current},l}(),kv=40,qp=0,ky=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function g0(l,s,i){i.name=s,i.target=l,i.currentTarget=l,i.delegateTarget=l,l.emit(s,i)}function Fy(l,s,i){if(i.bubbles){var u=void 0,g=!1;if(s==="mouseenter"?(u=i.fromShape,g=!0):s==="mouseleave"&&(g=!0,u=i.toShape),l.isCanvas()&&g)return;if(u&&ba(l,u)){i.bubbles=!1;return}i.name=s,i.currentTarget=l,i.delegateTarget=l,l.emit(s,i)}}var j1=function(){function l(s){var i=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(u){var g=u.type;i._triggerEvent(g,u)},this._onDocumentMove=function(u){var g=i.canvas,C=g.get("el");if(C!==u.target&&(i.dragging||i.currentShape)){var x=i._getPointInfo(u);i.dragging&&i._emitEvent("drag",u,x,i.draggingShape)}},this._onDocumentMouseUp=function(u){var g=i.canvas,C=g.get("el");if(C!==u.target&&i.dragging){var x=i._getPointInfo(u);i.draggingShape&&i._emitEvent("drop",u,x,null),i._emitEvent("dragend",u,x,i.draggingShape),i._afterDrag(i.draggingShape,x,u)}},this.canvas=s.canvas}return l.prototype.init=function(){this._bindEvents()},l.prototype._bindEvents=function(){var s=this,i=this.canvas.get("el");D(ky,function(u){i.addEventListener(u,s._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},l.prototype._clearEvents=function(){var s=this,i=this.canvas.get("el");D(ky,function(u){i.removeEventListener(u,s._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},l.prototype._getEventObj=function(s,i,u,g,C,x){var E=new en(s,i);return E.fromShape=C,E.toShape=x,E.x=u.x,E.y=u.y,E.clientX=u.clientX,E.clientY=u.clientY,E.propagationPath.push(g),E},l.prototype._getShape=function(s,i){return this.canvas.getShape(s.x,s.y,i)},l.prototype._getPointInfo=function(s){var i=this.canvas,u=i.getClientByEvent(s),g=i.getPointByEvent(s);return{x:g.x,y:g.y,clientX:u.x,clientY:u.y}},l.prototype._triggerEvent=function(s,i){var u=this._getPointInfo(i),g=this._getShape(u,i),C=this["_on"+s],x=!1;if(C)C.call(this,u,g,i);else{var E=this.currentShape;s==="mouseenter"||s==="dragenter"||s==="mouseover"?(this._emitEvent(s,i,u,null,null,g),g&&this._emitEvent(s,i,u,g,null,g),s==="mouseenter"&&this.draggingShape&&this._emitEvent("dragenter",i,u,null)):s==="mouseleave"||s==="dragleave"||s==="mouseout"?(x=!0,E&&this._emitEvent(s,i,u,E,E,null),this._emitEvent(s,i,u,null,E,null),s==="mouseleave"&&this.draggingShape&&this._emitEvent("dragleave",i,u,null)):this._emitEvent(s,i,u,g,null,null)}if(x||(this.currentShape=g),g&&!g.get("destroyed")){var O=this.canvas,R=O.get("el");R.style.cursor=g.attr("cursor")||O.get("cursor")}},l.prototype._onmousedown=function(s,i,u){u.button===qp&&(this.mousedownShape=i,this.mousedownPoint=s,this.mousedownTimeStamp=u.timeStamp),this._emitEvent("mousedown",u,s,i,null,null)},l.prototype._emitMouseoverEvents=function(s,i,u,g){var C=this.canvas.get("el");u!==g&&(u&&(this._emitEvent("mouseout",s,i,u,u,g),this._emitEvent("mouseleave",s,i,u,u,g),(!g||g.get("destroyed"))&&(C.style.cursor=this.canvas.get("cursor"))),g&&(this._emitEvent("mouseover",s,i,g,u,g),this._emitEvent("mouseenter",s,i,g,u,g)))},l.prototype._emitDragoverEvents=function(s,i,u,g,C){g?(g!==u&&(u&&this._emitEvent("dragleave",s,i,u,u,g),this._emitEvent("dragenter",s,i,g,u,g)),C||this._emitEvent("dragover",s,i,g)):u&&this._emitEvent("dragleave",s,i,u,u,g),C&&this._emitEvent("dragover",s,i,g)},l.prototype._afterDrag=function(s,i,u){s&&(s.set("capture",!0),this.draggingShape=null),this.dragging=!1;var g=this._getShape(i,u);g!==s&&this._emitMouseoverEvents(u,i,s,g),this.currentShape=g},l.prototype._onmouseup=function(s,i,u){if(u.button===qp){var g=this.draggingShape;this.dragging?(g&&this._emitEvent("drop",u,s,i),this._emitEvent("dragend",u,s,g),this._afterDrag(g,s,u)):(this._emitEvent("mouseup",u,s,i),i===this.mousedownShape&&this._emitEvent("click",u,s,i),this.mousedownShape=null,this.mousedownPoint=null)}},l.prototype._ondragover=function(s,i,u){u.preventDefault();var g=this.currentShape;this._emitDragoverEvents(u,s,g,i,!0)},l.prototype._onmousemove=function(s,i,u){var g=this.canvas,C=this.currentShape,x=this.draggingShape;if(this.dragging)x&&this._emitDragoverEvents(u,s,C,i,!1),this._emitEvent("drag",u,s,x);else{var E=this.mousedownPoint;if(E){var O=this.mousedownShape,R=u.timeStamp,k=R-this.mousedownTimeStamp,z=E.clientX-s.clientX,j=E.clientY-s.clientY,q=z*z+j*j;k>120||q>kv?O&&O.get("draggable")?(x=this.mousedownShape,x.set("capture",!1),this.draggingShape=x,this.dragging=!0,this._emitEvent("dragstart",u,s,x),this.mousedownShape=null,this.mousedownPoint=null):!O&&g.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",u,s,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(u,s,C,i),this._emitEvent("mousemove",u,s,i)):(this._emitMouseoverEvents(u,s,C,i),this._emitEvent("mousemove",u,s,i))}else this._emitMouseoverEvents(u,s,C,i),this._emitEvent("mousemove",u,s,i)}},l.prototype._emitEvent=function(s,i,u,g,C,x){var E=this._getEventObj(s,i,u,g,C,x);if(g){E.shape=g,g0(g,s,E);for(var O=g.getParent();O;)O.emitDelegation(s,E),E.propagationStopped||Fy(O,s,E),E.propagationPath.push(O),O=O.getParent()}else{var R=this.canvas;g0(R,s,E)}},l.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},l}(),Ny="px",Qp=ys(),m0=Qp&&Qp.name==="firefox",Hy=function(l){kn(s,l);function s(i){var u=l.call(this,i)||this;return u.initContainer(),u.initDom(),u.initEvents(),u.initTimeline(),u}return s.prototype.getDefaultCfg=function(){var i=l.prototype.getDefaultCfg.call(this);return i.cursor="default",i.supportCSSTransform=!1,i},s.prototype.initContainer=function(){var i=this.get("container");tr(i)&&(i=document.getElementById(i),this.set("container",i))},s.prototype.initDom=function(){var i=this.createDom();this.set("el",i);var u=this.get("container");u.appendChild(i),this.setDOMSize(this.get("width"),this.get("height"))},s.prototype.initEvents=function(){var i=new j1({canvas:this});i.init(),this.set("eventController",i)},s.prototype.initTimeline=function(){var i=new Kp(this);this.set("timeline",i)},s.prototype.setDOMSize=function(i,u){var g=this.get("el");vi&&(g.style.width=i+Ny,g.style.height=u+Ny)},s.prototype.changeSize=function(i,u){this.setDOMSize(i,u),this.set("width",i),this.set("height",u),this.onCanvasChange("changeSize")},s.prototype.getRenderer=function(){return this.get("renderer")},s.prototype.getCursor=function(){return this.get("cursor")},s.prototype.setCursor=function(i){this.set("cursor",i);var u=this.get("el");vi&&u&&(u.style.cursor=i)},s.prototype.getPointByEvent=function(i){var u=this.get("supportCSSTransform");if(u){if(m0&&!Ft(i.layerX)&&i.layerX!==i.offsetX)return{x:i.layerX,y:i.layerY};if(!Ft(i.offsetX))return{x:i.offsetX,y:i.offsetY}}var g=this.getClientByEvent(i),C=g.x,x=g.y;return this.getPointByClient(C,x)},s.prototype.getClientByEvent=function(i){var u=i;return i.touches&&(i.type==="touchend"?u=i.changedTouches[0]:u=i.touches[0]),{x:u.clientX,y:u.clientY}},s.prototype.getPointByClient=function(i,u){var g=this.get("el"),C=g.getBoundingClientRect();return{x:i-C.left,y:u-C.top}},s.prototype.getClientByPoint=function(i,u){var g=this.get("el"),C=g.getBoundingClientRect();return{x:i+C.left,y:u+C.top}},s.prototype.draw=function(){},s.prototype.removeDom=function(){var i=this.get("el");i.parentNode.removeChild(i)},s.prototype.clearEvents=function(){var i=this.get("eventController");i.destroy()},s.prototype.isCanvas=function(){return!0},s.prototype.getParent=function(){return null},s.prototype.destroy=function(){var i=this.get("timeline");this.get("destroyed")||(this.clear(),i&&i.stop(),this.clearEvents(),this.removeDom(),l.prototype.destroy.call(this))},s}(qr),Fv=function(l){kn(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s.prototype.isGroup=function(){return!0},s.prototype.isEntityGroup=function(){return!1},s.prototype.clone=function(){for(var i=l.prototype.clone.call(this),u=this.getChildren(),g=0;g=i&&g.minY<=u&&g.maxY>=u},s.prototype.afterAttrsChange=function(i){l.prototype.afterAttrsChange.call(this,i),this.clearCacheBBox()},s.prototype.getBBox=function(){var i=this.cfg.bbox;return i||(i=this.calculateBBox(),this.set("bbox",i)),i},s.prototype.getCanvasBBox=function(){var i=this.cfg.canvasBBox;return i||(i=this.calculateCanvasBBox(),this.set("canvasBBox",i)),i},s.prototype.applyMatrix=function(i){l.prototype.applyMatrix.call(this,i),this.set("canvasBBox",null)},s.prototype.calculateCanvasBBox=function(){var i=this.getBBox(),u=this.getTotalMatrix(),g=i.minX,C=i.minY,x=i.maxX,E=i.maxY;if(u){var O=an(u,[i.minX,i.minY]),R=an(u,[i.maxX,i.minY]),k=an(u,[i.minX,i.maxY]),z=an(u,[i.maxX,i.maxY]);g=Math.min(O[0],R[0],k[0],z[0]),x=Math.max(O[0],R[0],k[0],z[0]),C=Math.min(O[1],R[1],k[1],z[1]),E=Math.max(O[1],R[1],k[1],z[1])}var j=this.attrs;if(j.shadowColor){var q=j.shadowBlur,ee=q===void 0?0:q,le=j.shadowOffsetX,ye=le===void 0?0:le,Me=j.shadowOffsetY,We=Me===void 0?0:Me,Ue=g-ee+ye,Ze=x+ee+ye,Ut=C-ee+We,mr=E+ee+We;g=Math.min(g,Ue),x=Math.max(x,Ze),C=Math.min(C,Ut),E=Math.max(E,mr)}return{x:g,y:C,minX:g,minY:C,maxX:x,maxY:E,width:x-g,height:E-C}},s.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},s.prototype.isClipShape=function(){return this.get("isClipShape")},s.prototype.isInShape=function(i,u){return!1},s.prototype.isOnlyHitBox=function(){return!1},s.prototype.isHit=function(i,u){var g=this.get("startArrowShape"),C=this.get("endArrowShape"),x=[i,u,1];x=this.invertFromMatrix(x);var E=x[0],O=x[1],R=this._isInBBox(E,O);return this.isOnlyHitBox()?R:!!(R&&!this.isClipped(E,O)&&(this.isInShape(E,O)||g&&g.isHit(E,O)||C&&C.isHit(E,O)))},s}(Hc),Rd=new Map;function _l(l,s){Rd.set(l,s)}function Wh(l){return Rd.get(l)}function Gh(l){var s=l.attr(),i=s.x,u=s.y,g=s.width,C=s.height;return{x:i,y:u,width:g,height:C}}function Ki(l){var s=l.attr(),i=s.x,u=s.y,g=s.r;return{x:i-g,y:u-g,width:g*2,height:g*2}}function zy(l){return Math.min.apply(null,l)}function Nv(l){return Math.max.apply(null,l)}function Zo(l,s,i,u){var g=l-i,C=s-u;return Math.sqrt(g*g+C*C)}function y0(l,s){return Math.abs(l-s)<.001}function $h(l,s){var i=zy(l),u=zy(s),g=Nv(l),C=Nv(s);return{x:i,y:u,width:g-i,height:C-u}}function Uh(l){return(l+Math.PI*2)%(Math.PI*2)}var Pl={box:function(l,s,i,u){return $h([l,i],[s,u])},length:function(l,s,i,u){return Zo(l,s,i,u)},pointAt:function(l,s,i,u,g){return{x:(1-g)*l+g*i,y:(1-g)*s+g*u}},pointDistance:function(l,s,i,u,g,C){var x=(i-l)*(g-l)+(u-s)*(C-s);if(x<0)return Zo(l,s,g,C);var E=(i-l)*(i-l)+(u-s)*(u-s);return x>E?Zo(i,u,g,C):this.pointToLine(l,s,i,u,g,C)},pointToLine:function(l,s,i,u,g,C){var x=[i-l,u-s];if(Nc(x,[0,0]))return Math.sqrt((g-l)*(g-l)+(C-s)*(C-s));var E=[-x[1],x[0]];Rl(E,E);var O=[g-l,C-s];return Math.abs(Kl(O,E))},tangentAngle:function(l,s,i,u){return Math.atan2(u-s,i-l)}},xu=1e-4;function Yh(l,s,i,u,g,C){var x,E=1/0,O=[i,u],R=20;C&&C>200&&(R=C/10);for(var k=1/R,z=k/10,j=0;j<=R;j++){var q=j*k,ee=[g.apply(null,l.concat([q])),g.apply(null,s.concat([q]))],le=Zo(O[0],O[1],ee[0],ee[1]);le=0&&le=0?[g]:[]}function Hv(l,s,i,u){return 2*(1-u)*(s-l)+2*u*(i-s)}function Jp(l,s,i,u,g,C,x){var E=ku(l,i,g,x),O=ku(s,u,C,x),R=Pl.pointAt(l,s,i,u,x),k=Pl.pointAt(i,u,g,C,x);return[[l,s,R.x,R.y,E,O],[E,O,k.x,k.y,g,C]]}function zv(l,s,i,u,g,C,x){if(x===0)return(Zo(l,s,i,u)+Zo(i,u,g,C)+Zo(l,s,g,C))/2;var E=Jp(l,s,i,u,g,C,.5),O=E[0],R=E[1];return O.push(x-1),R.push(x-1),zv.apply(null,O)+zv.apply(null,R)}var Wv={box:function(l,s,i,u,g,C){var x=C0(l,i,g)[0],E=C0(s,u,C)[0],O=[l,g],R=[s,C];return x!==void 0&&O.push(ku(l,i,g,x)),E!==void 0&&R.push(ku(s,u,C,E)),$h(O,R)},length:function(l,s,i,u,g,C){return zv(l,s,i,u,g,C,3)},nearestPoint:function(l,s,i,u,g,C,x,E){return Yh([l,i,g],[s,u,C],x,E,ku)},pointDistance:function(l,s,i,u,g,C,x,E){var O=this.nearestPoint(l,s,i,u,g,C,x,E);return Zo(O.x,O.y,x,E)},interpolationAt:ku,pointAt:function(l,s,i,u,g,C,x){return{x:ku(l,i,g,x),y:ku(s,u,C,x)}},divide:function(l,s,i,u,g,C,x){return Jp(l,s,i,u,g,C,x)},tangentAngle:function(l,s,i,u,g,C,x){var E=Hv(l,i,g,x),O=Hv(s,u,C,x),R=Math.atan2(O,E);return Uh(R)}};function Fu(l,s,i,u,g){var C=1-g;return C*C*C*l+3*s*g*C*C+3*i*g*g*C+u*g*g*g}function Gv(l,s,i,u,g){var C=1-g;return 3*(C*C*(s-l)+2*C*g*(i-s)+g*g*(u-i))}function Jl(l,s,i,u){var g=-3*l+9*s-9*i+3*u,C=6*l-12*s+6*i,x=3*s-3*l,E=[],O,R,k;if(y0(g,0))y0(C,0)||(O=-x/C,O>=0&&O<=1&&E.push(O));else{var z=C*C-4*g*x;y0(z,0)?E.push(-C/(2*g)):z>0&&(k=Math.sqrt(z),O=(-C+k)/(2*g),R=(-C-k)/(2*g),O>=0&&O<=1&&E.push(O),R>=0&&R<=1&&E.push(R))}return E}function jh(l,s,i,u,g,C,x,E,O){var R=Fu(l,i,g,x,O),k=Fu(s,u,C,E,O),z=Pl.pointAt(l,s,i,u,O),j=Pl.pointAt(i,u,g,C,O),q=Pl.pointAt(g,C,x,E,O),ee=Pl.pointAt(z.x,z.y,j.x,j.y,O),le=Pl.pointAt(j.x,j.y,q.x,q.y,O);return[[l,s,z.x,z.y,ee.x,ee.y,R,k],[R,k,le.x,le.y,q.x,q.y,x,E]]}function eg(l,s,i,u,g,C,x,E,O){if(O===0)return Xf([l,i,g,x],[s,u,C,E]);var R=jh(l,s,i,u,g,C,x,E,.5),k=R[0],z=R[1];return k.push(O-1),z.push(O-1),eg.apply(null,k)+eg.apply(null,z)}var lo={extrema:Jl,box:function(l,s,i,u,g,C,x,E){for(var O=[l,x],R=[s,E],k=Jl(l,i,g,x),z=Jl(s,u,C,E),j=0;j0?i:i*-1}var Vh={box:function(l,s,i,u){return{x:l-i,y:s-u,width:i*2,height:u*2}},length:function(l,s,i,u){return Math.PI*(3*(i+u)-Math.sqrt((3*i+u)*(i+3*u)))},nearestPoint:function(l,s,i,u,g,C){var x=i,E=u;if(x===0||E===0)return{x:l,y:s};for(var O=g-l,R=C-s,k=Math.abs(O),z=Math.abs(R),j=x*x,q=E*E,ee=Math.PI/4,le,ye,Me=0;Me<4;Me++){le=x*Math.cos(ee),ye=E*Math.sin(ee);var We=(j-q)*Math.pow(Math.cos(ee),3)/x,Ue=(q-j)*Math.pow(Math.sin(ee),3)/E,Ze=le-We,Ut=ye-Ue,mr=k-We,xr=z-Ue,Kr=Math.hypot(Ut,Ze),mn=Math.hypot(xr,mr),Vn=Kr*Math.asin((Ze*xr-Ut*mr)/(Kr*mn)),In=Vn/Math.sqrt(j+q-le*le-ye*ye);ee+=In,ee=Math.min(Math.PI/2,Math.max(0,ee))}return{x:l+Ss(le,O),y:s+Ss(ye,R)}},pointDistance:function(l,s,i,u,g,C){var x=this.nearestPoint(l,s,i,u,g,C);return Zo(x.x,x.y,g,C)},pointAt:function(l,s,i,u,g){var C=2*Math.PI*g;return{x:l+i*Math.cos(C),y:s+u*Math.sin(C)}},tangentAngle:function(l,s,i,u,g){var C=2*Math.PI*g,x=Math.atan2(u*Math.cos(C),-i*Math.sin(C));return Uh(x)}};function Zf(l,s,i,u,g,C,x,E){return-1*i*Math.cos(g)*Math.sin(E)-u*Math.sin(g)*Math.cos(E)}function Ox(l,s,i,u,g,C,x,E){return-1*i*Math.sin(g)*Math.sin(E)+u*Math.cos(g)*Math.cos(E)}function Xh(l,s,i){return Math.atan(-s/l*Math.tan(i))}function tg(l,s,i){return Math.atan(s/(l*Math.tan(i)))}function Wy(l,s,i,u,g,C){return i*Math.cos(g)*Math.cos(C)-u*Math.sin(g)*Math.sin(C)+l}function $v(l,s,i,u,g,C){return i*Math.sin(g)*Math.cos(C)+u*Math.cos(g)*Math.sin(C)+s}function V1(l,s,i,u){var g=Math.atan2(u*l,i*s);return(g+Math.PI*2)%(Math.PI*2)}function zs(l,s,i){return{x:l*Math.cos(i),y:s*Math.sin(i)}}function Kf(l,s,i){var u=Math.cos(i),g=Math.sin(i);return[l*u-s*g,l*g+s*u]}var X1={box:function(l,s,i,u,g,C,x){for(var E=Xh(i,u,g),O=1/0,R=-1/0,k=[C,x],z=-Math.PI*2;z<=Math.PI*2;z+=Math.PI){var j=E+z;CR&&(R=q)}for(var ee=tg(i,u,g),le=1/0,ye=-1/0,Me=[C,x],z=-Math.PI*2;z<=Math.PI*2;z+=Math.PI){var We=ee+z;Cye&&(ye=Ue)}return{x:O,y:le,width:R-O,height:ye-le}},length:function(l,s,i,u,g,C,x){},nearestPoint:function(l,s,i,u,g,C,x,E,O){var R=Kf(E-l,O-s,-g),k=R[0],z=R[1],j=Vh.nearestPoint(0,0,i,u,k,z),q=V1(i,u,j.x,j.y);qx&&(j=zs(i,u,x));var ee=Kf(j.x,j.y,g);return{x:ee[0]+l,y:ee[1]+s}},pointDistance:function(l,s,i,u,g,C,x,E,O){var R=this.nearestPoint(l,s,i,u,E,O);return Zo(R.x,R.y,E,O)},pointAt:function(l,s,i,u,g,C,x,E){var O=(x-C)*E+C;return{x:Wy(l,s,i,u,g,O),y:$v(l,s,i,u,g,O)}},tangentAngle:function(l,s,i,u,g,C,x,E){var O=(x-C)*E+C,R=Zf(l,s,i,u,g,C,x,O),k=Ox(l,s,i,u,g,C,x,O);return Uh(Math.atan2(k,R))}};function Dd(l){for(var s=0,i=[],u=0;u1||s<0||l.length<2)return null;var i=Dd(l),u=i.segments,g=i.totalLength;if(g===0)return{x:l[0][0],y:l[0][1]};for(var C=0,x=null,E=0;E=C&&s<=C+z){var j=(s-C)/z;x=Pl.pointAt(R[0],R[1],k[0],k[1],j);break}C+=z}return x}function Uv(l,s){if(s>1||s<0||l.length<2)return 0;for(var i=Dd(l),u=i.segments,g=i.totalLength,C=0,x=0,E=0;E=C&&s<=C+z){x=Math.atan2(k[1]-R[1],k[0]-R[0]);break}C+=z}return x}function $y(l,s,i){for(var u=1/0,g=0;g1){var g=Ld(s,i);return s*u+g*(u-1)}return s}function Ld(l,s){return s?s-l:l*.14}function Zh(l,s){var i=Yv(),u=0;if(Ft(l)||l==="")return u;if(i.save(),i.font=s,tr(l)&&l.includes(` +`)){var g=l.split(` +`);D(g,function(C){var x=i.measureText(C).width;u1){var g=i[0].charAt(0);i.splice(1,0,i[0].substr(1)),i[0]=g}D(i,function(C,x){isNaN(C)||(i[x]=+C)}),s[u]=i}),s}var Di=` +\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,Pd=new RegExp("([a-z])["+Di+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+Di+"]*,?["+Di+"]*)+)","ig"),Z1=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+Di+"]*,?["+Di+"]*","ig");function K1(l){if(!l)return null;if(Dt(l))return l;var s={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},i=[];return String(l).replace(Pd,function(u,g,C){var x=[],E=g.toLowerCase();if(C.replace(Z1,function(O,R){R&&x.push(+R)}),E==="m"&&x.length>2&&(i.push([g].concat(x.splice(0,2))),E="l",g=g==="m"?"l":"L"),E==="o"&&x.length===1&&i.push([g,x[0]]),E==="r")i.push([g].concat(x));else for(;x.length>=s[E]&&(i.push([g].concat(x.splice(0,s[E]))),!!s[E]););return""}),i}var Ax=/[a-z]/;function Gc(l,s){return[s[0]+(s[0]-l[0]),s[1]+(s[1]-l[1])]}function Yy(l){var s=K1(l);if(!s||!s.length)return[["M",0,0]];for(var i=!1,u=0;u=0){i=!0;break}}if(!i)return s;var C=[],x=0,E=0,O=0,R=0,k=0,z=s[0];(z[0]==="M"||z[0]==="m")&&(x=+z[1],E=+z[2],O=x,R=E,k++,C[0]=["M",x,E]);for(var u=k,j=s.length;u1&&(i*=Math.sqrt(q),u*=Math.sqrt(q));var ee=i*i*(j*j)+u*u*(z*z),le=ee?Math.sqrt((i*i*(u*u)-ee)/ee):1;C===x&&(le*=-1),isNaN(le)&&(le=0);var ye=u?le*i*j/u:0,Me=i?le*-u*z/i:0,We=(E+R)/2+Math.cos(g)*ye-Math.sin(g)*Me,Ue=(O+k)/2+Math.sin(g)*ye+Math.cos(g)*Me,Ze=[(z-ye)/i,(j-Me)/u],Ut=[(-1*z-ye)/i,(-1*j-Me)/u],mr=w0([1,0],Ze),xr=w0(Ze,Ut);return b0(Ze,Ut)<=-1&&(xr=Math.PI),b0(Ze,Ut)>=1&&(xr=0),x===0&&xr>0&&(xr=xr-2*Math.PI),x===1&&xr<0&&(xr=xr+2*Math.PI),{cx:We,cy:Ue,rx:jv(l,[R,k])?0:i,ry:jv(l,[R,k])?0:u,startAngle:mr,endAngle:mr+xr,xRotation:g,arcFlag:C,sweepFlag:x}}function vc(l,s){return[s[0]+(s[0]-l[0]),s[1]+(s[1]-l[1])]}function Vv(l){l=Jf(l);for(var s=[],i=null,u=null,g=null,C=0,x=l.length,E=0;EMath.PI/2?Math.PI-R:R,k=k>Math.PI/2?Math.PI-k:k;var z={xExtra:Math.cos(O/2-R)*(s/2*(1/Math.sin(O/2)))-s/2||0,yExtra:Math.cos(k-O/2)*(s/2*(1/Math.sin(O/2)))-s/2||0};return z}function x0(l){var s=l.attr(),i=s.path,u=s.stroke,g=u?s.lineWidth:0,C=l.get("segments")||Vv(i),x=Vy(C,g),E=x.x,O=x.y,R=x.width,k=x.height,z={minX:E,minY:O,maxX:E+R,maxY:O+k};return z=Su(l,z),{x:z.minX,y:z.minY,width:z.maxX-z.minX,height:z.maxY-z.minY}}function Ix(l){var s=l.attr(),i=s.x1,u=s.y1,g=s.x2,C=s.y2,x=Math.min(i,g),E=Math.max(i,g),O=Math.min(u,C),R=Math.max(u,C),k={minX:x,maxX:E,minY:O,maxY:R};return k=Su(l,k),{x:k.minX,y:k.minY,width:k.maxX-k.minX,height:k.maxY-k.minY}}function q1(l){var s=l.attr(),i=s.x,u=s.y,g=s.rx,C=s.ry;return{x:i-g,y:u-C,width:g*2,height:C*2}}_l("rect",Gh),_l("image",Gh),_l("circle",Ki),_l("marker",Ki),_l("polyline",Wc),_l("polygon",qf),_l("text",ka),_l("path",x0),_l("line",Ix),_l("ellipse",q1);function ru(){return window?window.devicePixelRatio:1}function Q1(l,s,i,u){var g=l-i,C=s-u;return Math.sqrt(g*g+C*C)}function kd(l,s,i,u,g,C){return g>=l&&g<=l+i&&C>=s&&C<=s+u}function Fd(l,s){return!(s.minX>l.maxX||s.maxXl.maxY||s.maxY=0&&g<1/2*Math.PI?(E={x:x.minX,y:x.minY},O={x:x.maxX,y:x.maxY}):1/2*Math.PI<=g&&g1&&(i*=Math.sqrt(q),u*=Math.sqrt(q));var ee=i*i*(j*j)+u*u*(z*z),le=ee?Math.sqrt((i*i*(u*u)-ee)/ee):1;C===x&&(le*=-1),isNaN(le)&&(le=0);var ye=u?le*i*j/u:0,Me=i?le*-u*z/i:0,We=(E+R)/2+Math.cos(g)*ye-Math.sin(g)*Me,Ue=(O+k)/2+Math.sin(g)*ye+Math.cos(g)*Me,Ze=[(z-ye)/i,(j-Me)/u],Ut=[(-1*z-ye)/i,(-1*j-Me)/u],mr=pc([1,0],Ze),xr=pc(Ze,Ut);return E0(Ze,Ut)<=-1&&(xr=Math.PI),E0(Ze,Ut)>=1&&(xr=0),x===0&&xr>0&&(xr=xr-2*Math.PI),x===1&&xr<0&&(xr=xr+2*Math.PI),{cx:We,cy:Ue,rx:Xy(l,[R,k])?0:i,ry:Xy(l,[R,k])?0:u,startAngle:mr,endAngle:mr+xr,xRotation:g,arcFlag:C,sweepFlag:x}}var $c=Math.sin,Xv=Math.cos,Zv=Math.atan2,Nd=Math.PI;function Kh(l,s,i,u,g,C,x){var E=s.stroke,O=s.lineWidth,R=i-g,k=u-C,z=Zv(k,R),j=new ag({type:"path",canvas:l.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*Xv(Nd/6)+","+10*$c(Nd/6)+" L0,0 L"+10*Xv(Nd/6)+",-"+10*$c(Nd/6),stroke:E,lineWidth:O}});j.translate(g,C),j.rotateAtPoint(g,C,z),l.set(x?"startArrowShape":"endArrowShape",j)}function Kv(l,s,i,u,g,C,x){var E=s.startArrow,O=s.endArrow,R=s.stroke,k=s.lineWidth,z=x?E:O,j=z.d,q=z.fill,ee=z.stroke,le=z.lineWidth,ye=re(z,["d","fill","stroke","lineWidth"]),Me=i-g,We=u-C,Ue=Zv(We,Me);j&&(g=g-Xv(Ue)*j,C=C-$c(Ue)*j);var Ze=new ag({type:"path",canvas:l.get("canvas"),isArrowShape:!0,attrs:fr(fr({},ye),{stroke:ee||R,lineWidth:le||k,fill:q})});Ze.translate(g,C),Ze.rotateAtPoint(g,C,Ue),l.set(x?"startArrowShape":"endArrowShape",Ze)}function _s(l,s,i,u,g){var C=Zv(u-s,i-l);return{dx:Xv(C)*g,dy:$c(C)*g}}function qh(l,s,i,u,g,C){typeof s.startArrow=="object"?Kv(l,s,i,u,g,C,!0):s.startArrow?Kh(l,s,i,u,g,C,!0):l.set("startArrowShape",null)}function Pa(l,s,i,u,g,C){typeof s.endArrow=="object"?Kv(l,s,i,u,g,C,!1):s.endArrow?Kh(l,s,i,u,g,C,!1):l.set("startArrowShape",null)}var F={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function X(l,s){var i=s.attr();for(var u in i){var g=i[u],C=F[u]?F[u]:u;C==="matrix"&&g?l.transform(g[0],g[1],g[3],g[4],g[6],g[7]):C==="lineDash"&&l.setLineDash?Dt(g)&&l.setLineDash(g):(C==="strokeStyle"||C==="fillStyle"?g=_0(l,s,g):C==="globalAlpha"&&(g=g*l.globalAlpha),l[C]=g)}}function se(l,s,i){for(var u=0;uUt?Ze:Ut,In=Ze>Ut?1:Ze/Ut,Un=Ze>Ut?Ut/Ze:1;s.translate(We,Ue),s.rotate(Kr),s.scale(In,Un),s.arc(0,0,Vn,mr,xr,1-mn),s.scale(1/In,1/Un),s.rotate(-Kr),s.translate(-We,-Ue)}break}case"Z":s.closePath();break}if(j==="Z")E=O;else{var di=z.length;E=[z[di-2],z[di-1]]}}}}function Oa(l,s){var i=l.get("canvas");i&&(s==="remove"&&(l._cacheCanvasBBox=l.get("cacheCanvasBBox")),l.get("hasChanged")||(l.set("hasChanged",!0),l.cfg.parent&&l.cfg.parent.get("hasChanged")||(i.refreshElement(l,s,i),i.get("autoDraw")&&i.draw())))}function Ws(l){var s;if(l.destroyed)s=l._cacheCanvasBBox;else{var i=l.get("cacheCanvasBBox"),u=i&&!!(i.width&&i.height),g=l.getCanvasBBox(),C=g&&!!(g.width&&g.height);u&&C?s=J1(i,g):u?s=i:C&&(s=g)}return s}function gc(l){if(!l.length)return null;var s=[],i=[],u=[],g=[];return D(l,function(C){var x=Ws(C);x&&(s.push(x.minX),i.push(x.minY),u.push(x.maxX),g.push(x.maxY))}),{minX:Gt(s),minY:Gt(i),maxX:ot(u),maxY:ot(g)}}function th(l,s){return!l||!s||!Fd(l,s)?null:{minX:Math.max(l.minX,s.minX),minY:Math.max(l.minY,s.minY),maxX:Math.min(l.maxX,s.maxX),maxY:Math.min(l.maxY,s.maxY)}}var nu=function(l){oe(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s.prototype.onCanvasChange=function(i){Oa(this,i)},s.prototype.getShapeBase=function(){return Ce},s.prototype.getGroupBase=function(){return s},s.prototype._applyClip=function(i,u){u&&(i.save(),X(i,u),u.createPath(i),i.restore(),i.clip(),u._afterDraw())},s.prototype.cacheCanvasBBox=function(){var i=this.cfg.children,u=[],g=[];D(i,function(j){var q=j.cfg.cacheCanvasBBox;q&&j.cfg.isInView&&(u.push(q.minX,q.maxX),g.push(q.minY,q.maxY))});var C=null;if(u.length){var x=Gt(u),E=ot(u),O=Gt(g),R=ot(g);C={minX:x,minY:O,x,y:O,maxX:E,maxY:R,width:E-x,height:R-O};var k=this.cfg.canvas;if(k){var z=k.getViewRange();this.set("isInView",Fd(C,z))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",C)},s.prototype.draw=function(i,u){var g=this.cfg.children,C=u?this.cfg.refresh:!0;g.length&&C&&(i.save(),X(i,this),this._applyClip(i,this.getClip()),se(i,g,u),i.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},s.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},s}(Fv),so=function(l){oe(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s.prototype.getDefaultAttrs=function(){var i=l.prototype.getDefaultAttrs.call(this);return fr(fr({},i),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},s.prototype.getShapeBase=function(){return Ce},s.prototype.getGroupBase=function(){return nu},s.prototype.onCanvasChange=function(i){Oa(this,i)},s.prototype.calculateBBox=function(){var i=this.get("type"),u=this.getHitLineWidth(),g=Wh(i),C=g(this),x=u/2,E=C.x-x,O=C.y-x,R=C.x+C.width+x,k=C.y+C.height+x;return{x:E,minX:E,y:O,minY:O,width:C.width+u,height:C.height+u,maxX:R,maxY:k}},s.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},s.prototype.isStroke=function(){return!!this.attrs.stroke},s.prototype._applyClip=function(i,u){u&&(i.save(),X(i,u),u.createPath(i),i.restore(),i.clip(),u._afterDraw())},s.prototype.draw=function(i,u){var g=this.cfg.clipShape;if(u){if(this.cfg.refresh===!1){this.set("hasChanged",!1);return}var C=this.getCanvasBBox();if(!Fd(u,C)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}i.save(),X(i,this),this._applyClip(i,g),this.drawPath(i),i.restore(),this._afterDraw()},s.prototype.getCanvasViewBox=function(){var i=this.cfg.canvas;return i?i.getViewRange():null},s.prototype.cacheCanvasBBox=function(){var i=this.getCanvasViewBox();if(i){var u=this.getCanvasBBox(),g=Fd(u,i);this.set("isInView",g),g?this.set("cacheCanvasBBox",u):this.set("cacheCanvasBBox",null)}},s.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},s.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},s.prototype.drawPath=function(i){this.createPath(i),this.strokeAndFill(i),this.afterDrawPath(i)},s.prototype.fill=function(i){i.fill()},s.prototype.stroke=function(i){i.stroke()},s.prototype.strokeAndFill=function(i){var u=this.attrs,g=u.lineWidth,C=u.opacity,x=u.strokeOpacity,E=u.fillOpacity;this.isFill()&&(!Ft(E)&&E!==1?(i.globalAlpha=E,this.fill(i),i.globalAlpha=C):this.fill(i)),this.isStroke()&&g>0&&(!Ft(x)&&x!==1&&(i.globalAlpha=x),this.stroke(i)),this.afterDrawPath(i)},s.prototype.createPath=function(i){},s.prototype.afterDrawPath=function(i){},s.prototype.isInShape=function(i,u){var g=this.isStroke(),C=this.isFill(),x=this.getHitLineWidth();return this.isInStrokeOrPath(i,u,g,C,x)},s.prototype.isInStrokeOrPath=function(i,u,g,C,x){return!1},s.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var i=this.attrs;return i.lineWidth+i.lineAppendWidth},s}(La),go=so,Qy=function(l){oe(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s.prototype.getDefaultAttrs=function(){var i=l.prototype.getDefaultAttrs.call(this);return fr(fr({},i),{x:0,y:0,r:0})},s.prototype.isInStrokeOrPath=function(i,u,g,C,x){var E=this.attr(),O=E.x,R=E.y,k=E.r,z=x/2,j=Q1(O,R,i,u);return C&&g?j<=k+z:C?j<=k:g?j>=k-z&&j<=k+z:!1},s.prototype.createPath=function(i){var u=this.attr(),g=u.x,C=u.y,x=u.r;i.beginPath(),i.arc(g,C,x,0,Math.PI*2,!1),i.closePath()},s}(go),M0=Qy;function ja(l,s,i,u){return l/(i*i)+s/(u*u)}var I_=function(l){oe(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s.prototype.getDefaultAttrs=function(){var i=l.prototype.getDefaultAttrs.call(this);return fr(fr({},i),{x:0,y:0,rx:0,ry:0})},s.prototype.isInStrokeOrPath=function(i,u,g,C,x){var E=this.attr(),O=x/2,R=E.x,k=E.y,z=E.rx,j=E.ry,q=(i-R)*(i-R),ee=(u-k)*(u-k);return C&&g?ja(q,ee,z+O,j+O)<=1:C?ja(q,ee,z,j)<=1:g?ja(q,ee,z-O,j-O)>=1&&ja(q,ee,z+O,j+O)<=1:!1},s.prototype.createPath=function(i){var u=this.attr(),g=u.x,C=u.y,x=u.rx,E=u.ry;if(i.beginPath(),i.ellipse)i.ellipse(g,C,x,E,0,0,Math.PI*2,!1);else{var O=x>E?x:E,R=x>E?1:x/E,k=x>E?E/x:1;i.save(),i.translate(g,C),i.scale(R,k),i.arc(0,0,O,0,Math.PI*2),i.restore(),i.closePath()}},s}(go),R_=I_;function No(l){return l instanceof HTMLElement&&tr(l.nodeName)&&l.nodeName.toUpperCase()==="CANVAS"}var qv=function(l){oe(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s.prototype.getDefaultAttrs=function(){var i=l.prototype.getDefaultAttrs.call(this);return fr(fr({},i),{x:0,y:0,width:0,height:0})},s.prototype.initAttrs=function(i){this._setImage(i.img)},s.prototype.isStroke=function(){return!1},s.prototype.isOnlyHitBox=function(){return!0},s.prototype._afterLoading=function(){if(this.get("toDraw")===!0){var i=this.get("canvas");i?i.draw():this.createPath(this.get("context"))}},s.prototype._setImage=function(i){var u=this,g=this.attrs;if(tr(i)){var C=new Image;C.onload=function(){if(u.destroyed)return!1;u.attr("img",C),u.set("loading",!1),u._afterLoading();var x=u.get("callback");x&&x.call(u)},C.crossOrigin="Anonymous",C.src=i,this.set("loading",!0)}else i instanceof Image?(g.width||(g.width=i.width),g.height||(g.height=i.height)):No(i)&&(g.width||(g.width=Number(i.getAttribute("width"))),g.height||(g.height,Number(i.getAttribute("height"))))},s.prototype.onAttrChange=function(i,u,g){l.prototype.onAttrChange.call(this,i,u,g),i==="img"&&this._setImage(u)},s.prototype.createPath=function(i){if(this.get("loading")){this.set("toDraw",!0),this.set("context",i);return}var u=this.attr(),g=u.x,C=u.y,x=u.width,E=u.height,O=u.sx,R=u.sy,k=u.swidth,z=u.sheight,j=u.img;(j instanceof Image||No(j))&&(!Ft(O)&&!Ft(R)&&!Ft(k)&&!Ft(z)?i.drawImage(j,O,R,k,z,g,C,x,E):i.drawImage(j,g,C,x,E))},s}(go),rb=qv;function mc(l,s,i,u,g,C,x){var E=Math.min(l,i),O=Math.max(l,i),R=Math.min(s,u),k=Math.max(s,u),z=g/2;return C>=E-z&&C<=O+z&&x>=R-z&&x<=k+z?Pl.pointToLine(l,s,i,u,C,x)<=g/2:!1}var Rx=function(l){oe(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s.prototype.getDefaultAttrs=function(){var i=l.prototype.getDefaultAttrs.call(this);return fr(fr({},i),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},s.prototype.initAttrs=function(i){this.setArrow()},s.prototype.onAttrChange=function(i,u,g){l.prototype.onAttrChange.call(this,i,u,g),this.setArrow()},s.prototype.setArrow=function(){var i=this.attr(),u=i.x1,g=i.y1,C=i.x2,x=i.y2,E=i.startArrow,O=i.endArrow;E&&qh(this,i,C,x,u,g),O&&Pa(this,i,u,g,C,x)},s.prototype.isInStrokeOrPath=function(i,u,g,C,x){if(!g||!x)return!1;var E=this.attr(),O=E.x1,R=E.y1,k=E.x2,z=E.y2;return mc(O,R,k,z,x,i,u)},s.prototype.createPath=function(i){var u=this.attr(),g=u.x1,C=u.y1,x=u.x2,E=u.y2,O=u.startArrow,R=u.endArrow,k={dx:0,dy:0},z={dx:0,dy:0};O&&O.d&&(k=_s(g,C,x,E,u.startArrow.d)),R&&R.d&&(z=_s(g,C,x,E,u.endArrow.d)),i.beginPath(),i.moveTo(g+k.dx,C+k.dy),i.lineTo(x-z.dx,E-z.dy)},s.prototype.afterDrawPath=function(i){var u=this.get("startArrowShape"),g=this.get("endArrowShape");u&&u.draw(i),g&&g.draw(i)},s.prototype.getTotalLength=function(){var i=this.attr(),u=i.x1,g=i.y1,C=i.x2,x=i.y2;return Pl.length(u,g,C,x)},s.prototype.getPoint=function(i){var u=this.attr(),g=u.x1,C=u.y1,x=u.x2,E=u.y2;return Pl.pointAt(g,C,x,E,i)},s}(go),D_=Rx,L_={circle:function(l,s,i){return[["M",l-i,s],["A",i,i,0,1,0,l+i,s],["A",i,i,0,1,0,l-i,s]]},square:function(l,s,i){return[["M",l-i,s-i],["L",l+i,s-i],["L",l+i,s+i],["L",l-i,s+i],["Z"]]},diamond:function(l,s,i){return[["M",l-i,s],["L",l,s-i],["L",l+i,s],["L",l,s+i],["Z"]]},triangle:function(l,s,i){var u=i*Math.sin(.3333333333333333*Math.PI);return[["M",l-i,s+u],["L",l,s-u],["L",l+i,s+u],["Z"]]},"triangle-down":function(l,s,i){var u=i*Math.sin(.3333333333333333*Math.PI);return[["M",l-i,s-u],["L",l+i,s-u],["L",l,s+u],["Z"]]}},rh=function(l){oe(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s.prototype.initAttrs=function(i){this._resetParamsCache()},s.prototype._resetParamsCache=function(){this.set("paramsCache",{})},s.prototype.onAttrChange=function(i,u,g){l.prototype.onAttrChange.call(this,i,u,g),["symbol","x","y","r","radius"].indexOf(i)!==-1&&this._resetParamsCache()},s.prototype.isOnlyHitBox=function(){return!0},s.prototype._getR=function(i){return Ft(i.r)?i.radius:i.r},s.prototype._getPath=function(){var i=this.attr(),u=i.x,g=i.y,C=i.symbol||"circle",x=this._getR(i),E,O;if(rr(C))E=C,O=E(u,g,x),O=Yy(O);else{if(E=s.Symbols[C],!E)return console.warn(C+" marker is not supported."),null;O=E(u,g,x)}return O},s.prototype.createPath=function(i){var u=this._getPath(),g=this.get("paramsCache");Ti(this,i,{path:u},g)},s.Symbols=L_,s}(go),nh=rh;function T0(l,s,i){var u=Yv();return l.createPath(u),u.isPointInPath(s,i)}var Jy=1e-6;function O0(l){return Math.abs(l)0!=O0(E[1]-i)>0&&O0(s-(i-x[1])*(x[0]-E[0])/(x[1]-E[1])-x[0])<0&&(u=!u)}return u}function Hd(l,s,i,u,g,C,x,E){var O=(Math.atan2(E-s,x-l)+Math.PI*2)%(Math.PI*2);if(Og)return!1;var R={x:l+i*Math.cos(O),y:s+i*Math.sin(O)};return Q1(R.x,R.y,x,E)<=C/2}var ib=Qt;function P_(l){for(var s=!1,i=l.length,u=0;uUe?We:Ue,mn=We>Ue?1:We/Ue,Vn=We>Ue?Ue/We:1,In=ib(null,[["t",-ye,-Me],["r",-mr],["s",1/mn,1/Vn]]);ea(xr,xr,In),C=Hd(0,0,Kr,Ze,Ut,s,xr[0],xr[1]);break}if(C)break}}return C}function Lx(l){for(var s=l.length,i=[],u=[],g=[],C=0;C0&&u.push(g),{polygons:i,polylines:u}}var ab=fr({hasArc:P_,extractPolygons:Lx,isPointInStroke:Dx},Nr);function ih(l,s,i){for(var u=!1,g=0;g=k[0]&&i<=k[1]&&(g=(i-k[0])/(k[1]-k[0]),C=z)});var E=x[C];if(Ft(E)||Ft(C))return null;var O=E.length,R=x[C+1];return lo.pointAt(E[O-2],E[O-1],R[1],R[2],R[3],R[4],R[5],R[6],g)},s.prototype._calculateCurve=function(){var i=this.attr().path;this.set("curve",ab.pathToCurve(i))},s.prototype._setTcache=function(){var i=0,u=0,g=[],C,x,E,O,R=this.get("curve");if(R){if(D(R,function(k,z){E=R[z+1],O=k.length,E&&(i+=lo.length(k[O-2],k[O-1],E[1],E[2],E[3],E[4],E[5],E[6])||0)}),this.set("totalLength",i),i===0){this.set("tCache",[]);return}D(R,function(k,z){E=R[z+1],O=k.length,E&&(C=[],C[0]=u/i,x=lo.length(k[O-2],k[O-1],E[1],E[2],E[3],E[4],E[5],E[6]),u+=x||0,C[1]=u/i,g.push(C))}),this.set("tCache",g)}},s.prototype.getStartTangent=function(){var i=this.getSegments(),u;if(i.length>1){var g=i[0].currentPoint,C=i[1].currentPoint,x=i[1].startTangent;u=[],x?(u.push([g[0]-x[0],g[1]-x[1]]),u.push([g[0],g[1]])):(u.push([C[0],C[1]]),u.push([g[0],g[1]]))}return u},s.prototype.getEndTangent=function(){var i=this.getSegments(),u=i.length,g;if(u>1){var C=i[u-2].currentPoint,x=i[u-1].currentPoint,E=i[u-1].endTangent;g=[],E?(g.push([x[0]-E[0],x[1]-E[1]]),g.push([x[0],x[1]])):(g.push([C[0],C[1]]),g.push([x[0],x[1]]))}return g},s}(go),ag=Qh;function tC(l,s,i,u,g){var C=l.length;if(C<2)return!1;for(var x=0;x=E[0]&&i<=E[1]&&(C=(i-E[0])/(E[1]-E[0]),x=O)}),Pl.pointAt(u[x][0],u[x][1],u[x+1][0],u[x+1][1],C)},s.prototype._setTcache=function(){var i=this.attr().points;if(!(!i||i.length===0)){var u=this.getTotalLength();if(!(u<=0)){var g=0,C=[],x,E;D(i,function(O,R){i[R+1]&&(x=[],x[0]=g/u,E=Pl.length(O[0],O[1],i[R+1][0],i[R+1][1]),g+=E,x[1]=g/u,C.push(x))}),this.set("tCache",C)}}},s.prototype.getStartTangent=function(){var i=this.attr().points,u=[];return u.push([i[1][0],i[1][1]]),u.push([i[0][0],i[0][1]]),u},s.prototype.getEndTangent=function(){var i=this.attr().points,u=i.length-1,g=[];return g.push([i[u-1][0],i[u-1][1]]),g.push([i[u][0],i[u][1]]),g},s}(go),lb=Px;function rC(l,s,i,u,g,C,x){var E=g/2;return kd(l-E,s-E,i,g,C,x)||kd(l+i-E,s-E,g,u,C,x)||kd(l+E,s+u-E,i,g,C,x)||kd(l-E,s+E,g,u,C,x)}function _u(l,s,i,u,g,C,x,E){return mc(l+g,s,l+i-g,s,C,x,E)||mc(l+i,s+g,l+i,s+u-g,C,x,E)||mc(l+i-g,s+u,l+g,s+u,C,x,E)||mc(l,s+u-g,l,s+g,C,x,E)||Hd(l+i-g,s+g,g,1.5*Math.PI,2*Math.PI,C,x,E)||Hd(l+i-g,s+u-g,g,0,.5*Math.PI,C,x,E)||Hd(l+g,s+u-g,g,.5*Math.PI,Math.PI,C,x,E)||Hd(l+g,s+g,g,Math.PI,1.5*Math.PI,C,x,E)}var WM=function(l){oe(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s.prototype.getDefaultAttrs=function(){var i=l.prototype.getDefaultAttrs.call(this);return fr(fr({},i),{x:0,y:0,width:0,height:0,radius:0})},s.prototype.isInStrokeOrPath=function(i,u,g,C,x){var E=this.attr(),O=E.x,R=E.y,k=E.width,z=E.height,j=E.radius;if(j){var ee=!1;return g&&(ee=_u(O,R,k,z,j,x,i,u)),!ee&&C&&(ee=T0(this,i,u)),ee}else{var q=x/2;if(C&&g)return kd(O-q,R-q,k+q,z+q,i,u);if(C)return kd(O,R,k,z,i,u);if(g)return rC(O,R,k,z,x,i,u)}},s.prototype.createPath=function(i){var u=this.attr(),g=u.x,C=u.y,x=u.width,E=u.height,O=u.radius;if(i.beginPath(),O===0)i.rect(g,C,x,E);else{var R=qy(O),k=R[0],z=R[1],j=R[2],q=R[3];i.moveTo(g+k,C),i.lineTo(g+x-z,C),z!==0&&i.arc(g+x-z,C+z,z,-Math.PI/2,0),i.lineTo(g+x,C+E-j),j!==0&&i.arc(g+x-j,C+E-j,j,0,Math.PI/2),i.lineTo(g+q,C+E),q!==0&&i.arc(g+q,C+E-q,q,Math.PI/2,Math.PI),i.lineTo(g,C+k),k!==0&&i.arc(g+k,C+k,k,Math.PI,Math.PI*1.5),i.closePath()}},s}(go),nC=WM,B_=function(l){oe(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s.prototype.getDefaultAttrs=function(){var i=l.prototype.getDefaultAttrs.call(this);return fr(fr({},i),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},s.prototype.isOnlyHitBox=function(){return!0},s.prototype.initAttrs=function(i){this._assembleFont(),i.text&&this._setText(i.text)},s.prototype._assembleFont=function(){var i=this.attrs;i.font=Hu(i)},s.prototype._setText=function(i){var u=null;tr(i)&&i.indexOf(` +`)!==-1&&(u=i.split(` +`)),this.set("textArr",u)},s.prototype.onAttrChange=function(i,u,g){l.prototype.onAttrChange.call(this,i,u,g),i.startsWith("font")&&this._assembleFont(),i==="text"&&this._setText(u)},s.prototype._getSpaceingY=function(){var i=this.attrs,u=i.lineHeight,g=i.fontSize*1;return u?u-g:g*.14},s.prototype._drawTextArr=function(i,u,g){var C=this.attrs,x=C.textBaseline,E=C.x,O=C.y,R=C.fontSize*1,k=this._getSpaceingY(),z=_n(C.text,C.fontSize,C.lineHeight),j;D(u,function(q,ee){j=O+ee*(k+R)-z+R,x==="middle"&&(j+=z-R-(z-R)/2),x==="top"&&(j+=z-R),Ft(q)||(g?i.fillText(q,E,j):i.strokeText(q,E,j))})},s.prototype._drawText=function(i,u){var g=this.attr(),C=g.x,x=g.y,E=this.get("textArr");if(E)this._drawTextArr(i,E,u);else{var O=g.text;Ft(O)||(u?i.fillText(O,C,x):i.strokeText(O,C,x))}},s.prototype.strokeAndFill=function(i){var u=this.attrs,g=u.lineWidth,C=u.opacity,x=u.strokeOpacity,E=u.fillOpacity;this.isStroke()&&g>0&&(!Ft(x)&&x!==1&&(i.globalAlpha=C),this.stroke(i)),this.isFill()&&(!Ft(E)&&E!==1?(i.globalAlpha=E,this.fill(i),i.globalAlpha=C):this.fill(i)),this.afterDrawPath(i)},s.prototype.fill=function(i){this._drawText(i,!0)},s.prototype.stroke=function(i){this._drawText(i,!1)},s}(go),iC=B_;function Bx(l,s){if(s){var i=wn(s);return an(i,l)}return l}function sb(l,s,i){var u=l.getTotalMatrix();if(u){var g=Bx([s,i,1],u),C=g[0],x=g[1];return[C,x]}return[s,i]}function aC(l,s,i){if(l.isCanvas&&l.isCanvas())return!0;if(!Ai(l)||l.cfg.isInView===!1)return!1;if(l.cfg.clipShape){var u=sb(l,s,i),g=u[0],C=u[1];if(l.isClipped(g,C))return!1}var x=l.cfg.cacheCanvasBBox||l.getCanvasBBox();return s>=x.minX&&s<=x.maxX&&i>=x.minY&&i<=x.maxY}function oC(l,s,i){if(!aC(l,s,i))return null;for(var u=null,g=l.getChildren(),C=g.length,x=C-1;x>=0;x--){var E=g[x];if(E.isGroup())u=oC(E,s,i);else if(aC(E,s,i)){var O=E,R=sb(E,s,i),k=R[0],z=R[1];O.isInShape(k,z)&&(u=E)}if(u)break}return u}var Uc=function(l){oe(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s.prototype.getDefaultCfg=function(){var i=l.prototype.getDefaultCfg.call(this);return i.renderer="canvas",i.autoDraw=!0,i.localRefresh=!0,i.refreshElements=[],i.clipView=!0,i.quickHit=!1,i},s.prototype.onCanvasChange=function(i){(i==="attr"||i==="sort"||i==="changeSize")&&(this.set("refreshElements",[this]),this.draw())},s.prototype.getShapeBase=function(){return Ce},s.prototype.getGroupBase=function(){return nu},s.prototype.getPixelRatio=function(){var i=this.get("pixelRatio")||ru();return i>=1?Math.ceil(i):1},s.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},s.prototype.createDom=function(){var i=document.createElement("canvas"),u=i.getContext("2d");return this.set("context",u),i},s.prototype.setDOMSize=function(i,u){l.prototype.setDOMSize.call(this,i,u);var g=this.get("context"),C=this.get("el"),x=this.getPixelRatio();C.width=x*i,C.height=x*u,x>1&&g.scale(x,x)},s.prototype.clear=function(){l.prototype.clear.call(this),this._clearFrame();var i=this.get("context"),u=this.get("el");i.clearRect(0,0,u.width,u.height)},s.prototype.getShape=function(i,u){var g;return this.get("quickHit")?g=oC(this,i,u):g=l.prototype.getShape.call(this,i,u,null),g},s.prototype._getRefreshRegion=function(){var i=this.get("refreshElements"),u=this.getViewRange(),g;if(i.length&&i[0]===this)g=u;else if(g=gc(i),g){g.minX=Math.floor(g.minX),g.minY=Math.floor(g.minY),g.maxX=Math.ceil(g.maxX),g.maxY=Math.ceil(g.maxY),g.maxY+=1;var C=this.get("clipView");C&&(g=th(g,u))}return g},s.prototype.refreshElement=function(i){var u=this.get("refreshElements");u.push(i)},s.prototype._clearFrame=function(){var i=this.get("drawFrame");i&&(fn(i),this.set("drawFrame",null),this.set("refreshElements",[]))},s.prototype.draw=function(){var i=this.get("drawFrame");this.get("autoDraw")&&i||this._startDraw()},s.prototype._drawAll=function(){var i=this.get("context"),u=this.get("el"),g=this.getChildren();i.clearRect(0,0,u.width,u.height),X(i,this),se(i,g),this.set("refreshElements",[])},s.prototype._drawRegion=function(){var i=this.get("context"),u=this.get("refreshElements"),g=this.getChildren(),C=this._getRefreshRegion();C?(i.clearRect(C.minX,C.minY,C.maxX-C.minX,C.maxY-C.minY),i.save(),i.beginPath(),i.rect(C.minX,C.minY,C.maxX-C.minX,C.maxY-C.minY),i.clip(),X(i,this),ge(this,g,C),se(i,g,C),i.restore()):u.length&&or(u),D(u,function(x){x.get("hasChanged")&&x.set("hasChanged",!1)}),this.set("refreshElements",[])},s.prototype._startDraw=function(){var i=this,u=this.get("drawFrame");u||(u=Tr(function(){i.get("localRefresh")?i._drawRegion():i._drawAll(),i.set("drawFrame",null)}),this.set("drawFrame",u))},s.prototype.skipDraw=function(){},s.prototype.removeDom=function(){var i=this.get("el");i.width=0,i.height=0,i.parentNode.removeChild(i)},s}(Hy),ub;(function(l){l.DATA_CELL_CLICK_EVENT="interaction:data-cell-click",l.MERGED_CELLS_CLICK_EVENT="interaction:merged-cells-click",l.CORNER_TEXT_CLICK_EVENT="interaction:corner-cell-text-click",l.ROW_COLUMN_CLICK_EVENT="interaction:row-column-click",l.ROW_TEXT_CLICK_EVENT="interaction:row-text-click",l.HOVER_EVENT="interaction:hover",l.TREND_ICON_CLICK="interaction:trend-icon-click"})(ub||(ub={}));var El;(function(l){l.MOUSE_DOWN="mousedown",l.MOUSE_MOVE="mousemove",l.MOUSE_OUT="mouseout",l.MOUSE_LEAVE="mouseleave",l.MOUSE_UP="mouseup",l.KEY_DOWN="keydown",l.KEY_UP="keyup",l.CLICK="click",l.HOVER="hover",l.DOUBLE_CLICK="dblclick",l.CONTEXT_MENU="contextmenu"})(El||(El={}));var Dr;(function(l){l.ROW_CELL_HOVER="row-cell:hover",l.ROW_CELL_CLICK="row-cell:click",l.ROW_CELL_DOUBLE_CLICK="row-cell:double-click",l.ROW_CELL_CONTEXT_MENU="row-cell:context-menu",l.ROW_CELL_MOUSE_DOWN="row-cell:mouse-down",l.ROW_CELL_MOUSE_UP="row-cell:mouse-up",l.ROW_CELL_MOUSE_MOVE="row-cell:mouse-move",l.ROW_CELL_COLLAPSE_TREE_ROWS="row-cell:collapsed-tree-rows",l.ROW_CELL_SCROLL="row-cell:scroll",l.ROW_CELL_BRUSH_SELECTION="row-cell:brush-selection",l.COL_CELL_HOVER="col-cell:hover",l.COL_CELL_CLICK="col-cell:click",l.COL_CELL_DOUBLE_CLICK="col-cell:double-click",l.COL_CELL_CONTEXT_MENU="col-cell:context-menu",l.COL_CELL_MOUSE_DOWN="col-cell:mouse-down",l.COL_CELL_MOUSE_UP="col-cell:mouse-up",l.COL_CELL_MOUSE_MOVE="col-cell:mouse-move",l.COL_CELL_BRUSH_SELECTION="col-cell:brush-selection",l.DATA_CELL_HOVER="data-cell:hover",l.DATA_CELL_CLICK="data-cell:click",l.DATA_CELL_DOUBLE_CLICK="data-cell:double-click",l.DATA_CELL_CONTEXT_MENU="data-cell:context-menu",l.DATA_CELL_MOUSE_UP="data-cell:mouse-up",l.DATA_CELL_MOUSE_DOWN="data-cell:mouse-down",l.DATA_CELL_MOUSE_MOVE="data-cell:mouse-move",l.DATA_CELL_TREND_ICON_CLICK="data-cell:trend-icon-click",l.DATA_CELL_BRUSH_SELECTION="data-cell:brush-selection",l.DATA_CELL_SELECT_MOVE="data-cell:select-move",l.CORNER_CELL_HOVER="corner-cell:hover",l.CORNER_CELL_CLICK="corner-cell:click",l.CORNER_CELL_DOUBLE_CLICK="corner-cell:double-click",l.CORNER_CELL_CONTEXT_MENU="corner-cell:context-menu",l.CORNER_CELL_MOUSE_DOWN="corner-cell:mouse-down",l.CORNER_CELL_MOUSE_UP="corner-cell:mouse-up",l.CORNER_CELL_MOUSE_MOVE="corner-cell:mouse-move",l.MERGED_CELLS_HOVER="merged-cells:hover",l.MERGED_CELLS_CLICK="merged-cells:click",l.MERGED_CELLS_DOUBLE_CLICK="merged-cells:double-click",l.MERGED_CELLS_CONTEXT_MENU="merged-cell:context-menu",l.MERGED_CELLS_MOUSE_DOWN="merged-cells:mouse-down",l.MERGED_CELLS_MOUSE_UP="merged-cells:mouse-up",l.MERGED_CELLS_MOUSE_MOVE="merged-cells:mouse-move",l.RANGE_SORT="sort:range-sort",l.RANGE_SORTED="sort:range-sorted",l.RANGE_FILTER="filter:range-filter",l.RANGE_FILTERED="filter:range-filtered",l.LAYOUT_AFTER_HEADER_LAYOUT="layout:after-header-layout",l.LAYOUT_CELL_SCROLL="layout:cell-scroll",l.LAYOUT_PAGINATION="layout:pagination",l.LAYOUT_COLLAPSE_ROWS="layout:collapsed-rows",l.LAYOUT_AFTER_COLLAPSE_ROWS="layout:after-collapsed-rows",l.LAYOUT_AFTER_REAL_DATA_CELL_RENDER="layout:after-real-data-cell-render",l.LAYOUT_TREE_ROWS_COLLAPSE_ALL="layout:toggle-collapse-all",l.LAYOUT_COLS_EXPANDED="layout:table-col-expanded",l.LAYOUT_COLS_HIDDEN="layout:table-col-hidden",l.LAYOUT_AFTER_RENDER="layout:after-render",l.LAYOUT_BEFORE_RENDER="layout:before-render",l.LAYOUT_DESTROY="layout:destroy",l.LAYOUT_RESIZE="layout:resize",l.LAYOUT_RESIZE_SERIES_WIDTH="layout:resize-series-width",l.LAYOUT_RESIZE_ROW_WIDTH="layout:resize-row-width",l.LAYOUT_RESIZE_ROW_HEIGHT="layout:resize-row-height",l.LAYOUT_RESIZE_COL_WIDTH="layout:resize-column-width",l.LAYOUT_RESIZE_COL_HEIGHT="layout:resize-column-height",l.LAYOUT_RESIZE_TREE_WIDTH="layout:resize-tree-width",l.LAYOUT_RESIZE_MOUSE_DOWN="layout:resize:mouse-down",l.LAYOUT_RESIZE_MOUSE_MOVE="layout:resize:mouse-move",l.LAYOUT_RESIZE_MOUSE_UP="layout:resize-mouse-up",l.GLOBAL_KEYBOARD_DOWN="global:keyboard-down",l.GLOBAL_KEYBOARD_UP="global:keyboard-up",l.GLOBAL_COPIED="global:copied",l.GLOBAL_MOUSE_UP="global:mouse-up",l.GLOBAL_MOUSE_MOVE="global:mouse-move",l.GLOBAL_ACTION_ICON_CLICK="global:action-icon-click",l.GLOBAL_ACTION_ICON_HOVER="global:action-icon-hover",l.GLOBAL_ACTION_ICON_HOVER_OFF="global:action-icon-hover-off",l.GLOBAL_CONTEXT_MENU="global:context-menu",l.GLOBAL_CLICK="global:click",l.GLOBAL_DOUBLE_CLICK="global:double-click",l.GLOBAL_SELECTED="global:selected",l.GLOBAL_HOVER="global:hover",l.GLOBAL_RESET="global:reset",l.GLOBAL_LINK_FIELD_JUMP="global:link-field-jump",l.GLOBAL_SCROLL="global:scroll"})(Dr||(Dr={}));var Es="$$value$$",ra="$$extra$$",kx="$$extra_column$$",A0="$$total$$",ah="$$series_number$$",Qv="$$empty_field_value$$",zd=0,cb=3,fb=3,hb=4,lC=5,Fx=5,I0=1,Nx=1,db=2,k_=1,Hx="backGroundGroup",Gu="foreGroundGroup",Jv="panelGroup",zx="panelScrollGroup",lg="mergedCellsGroup",vb="frozenRowGroup",pb="frozenColGroup",Wx="frozenTrailingRowGroup",ep="frozenTrailingColGroup",Jh="frozenTopGroup",R0="frozenBottomGroup",tp="rowResizeAreaGroup",sg="rowFrozenResizeAreaGroup",gb="frozenSplitLine",D0="rowIndexResizeAreaGroup",L0="cornerResizeAreaGroup",Ko="colResizeAreaGroup",yf="colFrozenResizeAreaGroup",Gx="colHorizontalResizeAreaGroup",Yc="colScrollGroup",$x="colFrozenGroup",mb="colFrozenTrailingGroup",Wd="gridGroup",F_="rowScrollGroup",es="rowHeaderFrozenGroup",oh="series-number-node",ts="horizontal-resize-area-",el="table-col-horizontal-resize-area",N_="col-real-width-info",lh="root",Ml="[&]",sh="-",H_=0,ug=1,uh=2,z_=3,yb=28,Cb=16,sC=16,Ux=/^root\[&\]*/,W_="image",_o=.5,yc=50,ed;(function(l){l.Line="line",l.Bar="bar",l.Bullet="bullet"})(ed||(ed={}));var bb="square",rp="...",np="antv-s2",uC="valueRanges",ip={},ch="#000000",Gd="#FFFFFF",wb={data:[],totalData:[],fields:{rows:[],columns:[],values:[],customTreeItems:[],valueInCols:!0},meta:[],sortParams:[],filterParams:[]},jc,tl;(function(l){l.ROW="row",l.COL="col",l.TRAILING_ROW="trailingRow",l.TRAILING_COL="trailingCol",l.SCROLL="scroll",l.TOP="top",l.BOTTOM="bottom"})(tl||(tl={}));var Eu;(function(l){l.FROZEN_COL="frozenCol",l.FROZEN_ROW="frozenRow",l.FROZEN_TRAILING_COL="frozenTrailingCol",l.FROZEN_TRAILING_ROW="frozenTrailingRow"})(Eu||(Eu={}));var fh=(jc={},jc[tl.ROW]="frozenRowGroup",jc[tl.COL]="frozenColGroup",jc[tl.TRAILING_COL]="frozenTrailingColGroup",jc[tl.TRAILING_ROW]="frozenTrailingRowGroup",jc[tl.SCROLL]="panelScrollGroup",jc[tl.TOP]="frozenTopGroup",jc[tl.BOTTOM]="frozenBottomGroup",jc),kl;(function(l){l.CORNER_CELL_CLICK="cornerCellClick",l.DATA_CELL_CLICK="dataCellClick",l.MERGED_CELLS_CLICK="mergedCellsClick",l.ROW_COLUMN_CLICK="rowColumnClick",l.ROW_TEXT_CLICK="rowTextClick",l.HOVER="hover",l.BRUSH_SELECTION="brushSelection",l.ROW_BRUSH_SELECTION="rowBrushSelection",l.COL_BRUSH_SELECTION="colBrushSelection",l.COL_ROW_RESIZE="rowColResize",l.DATA_CELL_MULTI_SELECTION="dataCellMultiSelection",l.RANGE_SELECTION="rangeSelection",l.SELECTED_CELL_MOVE="selectedCellMove"})(kl||(kl={}));var hi;(function(l){l.ALL_SELECTED="allSelected",l.SELECTED="selected",l.BRUSH_SELECTED="brushSelected",l.UNSELECTED="unselected",l.HOVER="hover",l.HOVER_FOCUS="hoverFocus",l.HIGHLIGHT="highlight",l.SEARCH_RESULT="searchResult",l.PREPARE_SELECT="prepareSelect"})(hi||(hi={}));var Mn;(function(l){l.DATA_CELL="dataCell",l.HEADER_CELL="headerCell",l.ROW_CELL="rowCell",l.COL_CELL="colCell",l.CORNER_CELL="cornerCell",l.MERGED_CELL="mergedCell"})(Mn||(Mn={}));var td=800,Gs={textOpacity:"fillOpacity",backgroundOpacity:"fillOpacity",backgroundColor:"fill",borderOpacity:"strokeOpacity",borderColor:"stroke",borderWidth:"lineWidth",opacity:"opacity"},mo={textShape:["textOpacity"],textShapes:["textOpacity"],linkFieldShape:["opacity"],interactiveBgShape:["backgroundColor","backgroundOpacity"],interactiveBorderShape:["borderColor","borderOpacity","borderWidth"]},P0="interactionStateInfo",$s;(function(l){l.CLICK="click",l.UN_DRAGGED="unDragged",l.DRAGGED="dragged"})($s||($s={}));var Fl;(function(l){l.SHIFT="Shift",l.COPY="c",l.ESC="Escape",l.META="Meta",l.CONTROL="Control",l.ARROW_UP="ArrowUp",l.ARROW_DOWN="ArrowDown",l.ARROW_LEFT="ArrowLeft",l.ARROW_RIGHT="ArrowRight"})(Fl||(Fl={}));var B0;(function(l){l.ASC="ASC",l.DESC="DESC"})(B0||(B0={}));var na;(function(l){l.HOVER="hover",l.CLICK="click",l.BRUSH_SELECTION="brushSelection",l.ROW_BRUSH_SELECTION="rowBrushSelection",l.COL_BRUSH_SELECTION="colBrushSelection",l.MULTI_SELECTION="multiSelection",l.RESIZE="resize"})(na||(na={}));var mi={x:{value:0,scroll:!1},y:{value:0,scroll:!1}},k0;(function(l){l.CONTENT="content",l.CANVAS="canvas"})(k0||(k0={}));var iu;(function(l){l.SCROLL_UP="scrollUp",l.SCROLL_DOWN="scrollDown"})(iu||(iu={}));var F0;(function(l){l[l.SCROLL_UP=-1]="SCROLL_UP",l[l.SCROLL_DOWN=1]="SCROLL_DOWN"})(F0||(F0={}));var cC="RESIZE_START_GUIDE_LINE",xb="RESIZE_END_GUIDE_LINE",Yx="RESIZE_MASK",Cc;(function(l){l.Horizontal="col",l.Vertical="row"})(Cc||(Cc={}));var au;(function(l){l.Field="field",l.Cell="cell",l.Tree="tree",l.Series="series"})(au||(au={}));var rd;(function(l){l.ALL="all",l.CURRENT="current"})(rd||(rd={}));var Us=1,Cf;(function(l){l.Adaptive="adaptive",l.ColAdaptive="colAdaptive",l.Compact="compact"})(Cf||(Cf={}));var fC=120,jx={layoutWidthType:Cf.Adaptive,showTreeLeafNodeAlignDot:!1,collapsedRows:{},collapsedCols:{},cellCfg:{width:96,height:30},rowCfg:{width:null,widthByField:{},heightByField:{}},colCfg:{height:30,widthByFieldValue:{},heightByField:{}},device:"pc"},hC={width:600,height:480,debug:!1,hierarchyType:"grid",conditions:{},totals:{},tooltip:{showTooltip:!1,autoAdjustBoundary:"body",operation:{hiddenColumns:!1,trend:!1,sort:!1,menus:[]}},interaction:{linkFields:[],hiddenColumnFields:[],selectedCellsSpotlight:!1,hoverHighlight:!0,hoverFocus:{duration:td},scrollSpeedRatio:{horizontal:1,vertical:1},autoResetSheetStyle:!0,brushSelection:{data:!0,row:!1,col:!1},multiSelection:!0,rangeSelection:!0,scrollbarPosition:k0.CONTENT,resize:{rowCellVertical:!0,cornerCellHorizontal:!0,colCellHorizontal:!0,colCellVertical:!0,rowResizeType:rd.ALL},eventListenerOptions:!1,selectedCellHighlight:!1,overscrollBehavior:"auto"},showSeriesNumber:!1,customSVGIcons:[],showDefaultHeaderActionIcon:!1,headerActionIcons:[],style:jx,frozenRowHeader:!0,frozenRowCount:0,frozenColCount:0,frozenTrailingRowCount:0,frozenTrailingColCount:0,hdAdapter:!0,cornerText:"",cornerExtraFieldText:"",placeholder:sh,supportCSSTransform:!1,devicePixelRatio:window.devicePixelRatio},N0=function(l,s){return N0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,u){i.__proto__=u}||function(i,u){for(var g in u)Object.prototype.hasOwnProperty.call(u,g)&&(i[g]=u[g])},N0(l,s)};function Ni(l,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");N0(l,s);function i(){this.constructor=l}l.prototype=s===null?Object.create(s):(i.prototype=s.prototype,new i)}var ur=function(){return ur=Object.assign||function(s){for(var i,u=1,g=arguments.length;u=l.length&&(l=void 0),{value:l&&l[u++],done:!l}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function kr(l,s){var i=typeof Symbol=="function"&&l[Symbol.iterator];if(!i)return l;var u=i.call(l),g,C=[],x;try{for(;(s===void 0||s-- >0)&&!(g=u.next()).done;)C.push(g.value)}catch(E){x={error:E}}finally{try{g&&!g.done&&(i=u.return)&&i.call(u)}finally{if(x)throw x.error}}return C}function nn(l,s,i){if(i||arguments.length===2)for(var u=0,g=s.length,C;u0){if(++s>=Z0)return arguments[0]}else s=0;return l.apply(void 0,arguments)}}var ns=id(Bb),Qx=ns,Nb=/\{\n\/\* \[wrapped with (.+)\] \*/,Hb=/,? & /;function Hl(l){var s=l.match(Nb);return s?s[1].split(Hb):[]}var Qa=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function sp(l,s){var i=s.length;if(!i)return l;var u=i-1;return s[u]=(i>1?"& ":"")+s[u],s=s.join(i>2?", ":" "),l.replace(Qa,`{ +/* [wrapped with `+s+`] */ +`)}function Kc(l){return function(){return l}}var zb=function(){try{var l=xf(Object,"defineProperty");return l({},"",{}),l}catch(s){}}(),Jd=zb,Jx=Jd?function(l,s){return Jd(l,"toString",{configurable:!0,enumerable:!1,value:Kc(s),writable:!0})}:rs,mC=Jx,bc=id(mC),ev=bc;function As(l,s){for(var i=-1,u=l==null?0:l.length;++i-1}var eS=1,X_=2,$o=8,q0=16,CC=32,bg=64,od=128,bC=256,wc=512,up=[["ary",od],["bind",eS],["bindKey",X_],["curry",$o],["curryRight",q0],["flip",wc],["partial",CC],["partialRight",bg],["rearg",bC]];function _f(l,s){return As(up,function(i){var u="_."+i[0];s&i[1]&&!Sf(l,u)&&l.push(u)}),l.sort()}function cp(l,s,i){var u=s+"";return ev(l,sp(u,_f(Hl(u),i)))}var Wb=1,Q0=2,fp=4,wC=8,xC=32,J0=64;function SC(l,s,i,u,g,C,x,E,O,R){var k=s&wC,z=k?x:void 0,j=k?void 0:x,q=k?C:void 0,ee=k?void 0:C;s|=k?xC:J0,s&=~(k?J0:xC),s&fp||(s&=~(Wb|Q0));var le=[l,s,g,q,z,ee,j,E,O,R],ye=i.apply(void 0,le);return lp(l)&&Qx(ye,le),ye.placeholder=u,cp(ye,l,s)}function ld(l){var s=l;return s.placeholder}var Is=9007199254740991,Xu=/^(?:0|[1-9]\d*)$/;function xc(l,s){var i=typeof l;return s=s==null?Is:s,!!s&&(i=="number"||i!="symbol"&&Xu.test(l))&&l>-1&&l%1==0&&l1&&We.reverse(),k&&O-1&&l%1==0&&l<=dp}function dl(l){return l!=null&&nv(l.length)&&!js(l)}function ou(l,s,i){if(!ga(i))return!1;var u=typeof s;return(u=="number"?dl(i)&&xc(s,i.length):u=="string"&&s in i)?qc(i[s],l):!1}function Sc(l){return Sa(function(s,i){var u=-1,g=i.length,C=g>1?i[g-1]:void 0,x=g>2?i[2]:void 0;for(C=l.length>3&&typeof C=="function"?(g--,C):void 0,x&&ou(i[0],i[1],x)&&(C=g<3?void 0:C,g=1),s=Object(s);++u-1}function zC(l,s){var i=this.__data__,u=HC(i,l);return u<0?(++this.size,i.push([l,s])):i[u][1]=s,this}function Af(l){var s=-1,i=l==null?0:l.length;for(this.clear();++s0&&i(E)?s>1?su(E,s-1,i,u,g):pl(g,E):u||(g[g.length]=E)}return g}function Zs(l){var s=l==null?0:l.length;return s?su(l,1):[]}function Ol(l){return ev(hp(l,void 0,Zs),l+"")}var bS=Ol(fw),wS=bS,lE=dd(Object.getPrototypeOf,Object),nf=lE,hw="[object Object]",dw=Function.prototype,$C=Object.prototype,mm=dw.toString,VM=$C.hasOwnProperty,ec=mm.call(Object);function Cp(l){if(!yo(l)||cl(l)!=hw)return!1;var s=nf(l);if(s===null)return!0;var i=VM.call(s,"constructor")&&s.constructor;return typeof i=="function"&&i instanceof i&&mm.call(i)==ec}var ym="[object DOMException]",Lg="[object Error]";function ov(l){if(!yo(l))return!1;var s=cl(l);return s==Lg||s==ym||typeof l.message=="string"&&typeof l.name=="string"&&!Cp(l)}var Cm=Sa(function(l,s){try{return Vu(l,void 0,s)}catch(i){return ov(i)?i:new Error(i)}}),vw=Cm,xS="Expected a function";function UC(l,s){var i;if(typeof s!="function")throw new TypeError(xS);return l=wa(l),function(){return--l>0&&(i=s.apply(this,arguments)),l<=1&&(s=void 0),i}}var SS=1,_S=32,bm=Sa(function(l,s,i){var u=SS;if(i.length){var g=ph(i,ld(bm));u|=_S}return Zu(l,u,s,i,g)});bm.placeholder={};var YC=bm,Pg=Ol(function(l,s){return As(s,function(i){i=Df(i),ud(l,i,YC(l[i],l))}),l}),bp=Pg,lv=1,wp=2,jC=32,tc=Sa(function(l,s,i){var u=lv|wp;if(i.length){var g=ph(i,ld(tc));u|=jC}return Zu(s,u,l,i,g)});tc.placeholder={};var vd=tc;function rc(l,s,i){var u=-1,g=l.length;s<0&&(s=-s>g?0:g+s),i=i>g?g:i,i<0&&(i+=g),g=s>i?0:i-s>>>0,s>>>=0;for(var C=Array(g);++u=u?l:rc(l,s,i)}var VC="\\ud800-\\udfff",XC="\\u0300-\\u036f",ZC="\\ufe20-\\ufe2f",XM="\\u20d0-\\u20ff",sE=XC+ZC+XM,uE="\\ufe0e\\ufe0f",wm="\\u200d",ES=RegExp("["+wm+VC+sE+uE+"]");function xp(l){return ES.test(l)}function MS(l){return l.split("")}var TS="\\ud800-\\udfff",cE="\\u0300-\\u036f",KC="\\ufe20-\\ufe2f",xm="\\u20d0-\\u20ff",OS=cE+KC+xm,qC="\\ufe0e\\ufe0f",fE="["+TS+"]",Sm="["+OS+"]",QC="\\ud83c[\\udffb-\\udfff]",ZM="(?:"+Sm+"|"+QC+")",pw="[^"+TS+"]",AS="(?:\\ud83c[\\udde6-\\uddff]){2}",gw="[\\ud800-\\udbff][\\udc00-\\udfff]",JC="\\u200d",Bg=ZM+"?",e1="["+qC+"]?",Sp="(?:"+JC+"(?:"+[pw,AS,gw].join("|")+")"+e1+Bg+")*",wh=e1+Bg+Sp,_m="(?:"+[pw+Sm+"?",Sm,AS,gw,fE].join("|")+")",t1=RegExp(QC+"(?="+QC+")|"+_m+wh,"g");function IS(l){return l.match(t1)||[]}function uu(l){return xp(l)?IS(l):MS(l)}function RS(l){return function(s){s=co(s);var i=xp(s)?uu(s):void 0,u=i?i[0]:s.charAt(0),g=i?pd(i,1).join(""):s.slice(1);return u[l]()+g}}var DS=RS("toUpperCase"),mw=DS;function LS(l){return mw(co(l).toLowerCase())}function PS(l,s,i,u){var g=-1,C=l==null?0:l.length;for(u&&C&&(i=l[++g]);++g=s?l:s)),l}function Tp(l,s,i){return i===void 0&&(i=s,s=void 0),i!==void 0&&(i=ca(i),i=i===i?i:0),s!==void 0&&(s=ca(s),s=s===s?s:0),Mp(ca(l),s,i)}function Tc(){this.__data__=new Af,this.size=0}function Pm(l){var s=this.__data__,i=s.delete(l);return this.size=s.size,i}function XS(l){return this.__data__.get(l)}function _E(l){return this.__data__.has(l)}var Pw=200;function o1(l,s){var i=this.__data__;if(i instanceof Af){var u=i.__data__;if(!bh||u.lengthE))return!1;var R=C.get(l),k=C.get(s);if(R&&k)return R==s&&k==l;var z=-1,j=!0,q=i&x1?new qo:void 0;for(C.set(l,s),C.set(s,l);++z=s||xr<0||z&&Kr>=C}function Me(){var mr=Jn();if(ye(mr))return We(mr);E=setTimeout(Me,le(mr))}function We(mr){return E=void 0,j&&u?q(mr):(u=g=void 0,x)}function Ue(){E!==void 0&&clearTimeout(E),R=0,u=O=g=E=void 0}function Ze(){return E===void 0?x:We(Jn())}function Ut(){var mr=Jn(),xr=ye(mr);if(u=arguments,g=this,O=mr,xr){if(E===void 0)return ee(O);if(z)return clearTimeout(E),E=setTimeout(Me,s),q(O)}return E===void 0&&(E=setTimeout(Me,s)),x}return Ut.cancel=Ue,Ut.flush=Ze,Ut}function as(l,s){return l==null||l!==l?s:l}var Yo=Object.prototype,Al=Yo.hasOwnProperty,hs=Sa(function(l,s){l=Object(l);var i=-1,u=s.length,g=u>2?s[2]:void 0;for(g&&ou(s[0],s[1],g)&&(u=1);++i=Dc&&(C=ty,x=!1,s=new qo(s));e:for(;++g=0&&l.slice(i,g)==s}function tO(l,s){return rl(s,function(i){return[i,l[i]]})}function rO(l){var s=-1,i=Array(l.size);return l.forEach(function(u){i[++s]=[u,u]}),i}var nO="[object Map]",hT="[object Set]";function _a(l){return function(s){var i=Eh(s);return i==nO?Xw(s):i==hT?rO(s):tO(s,l(s))}}var T1=_a(za),dT=T1,iO=_a(Gl),vT=iO,pT={"&":"&","<":"<",">":">",'"':""","'":"'"},lM=yw(pT),AA=lM,N2=/[&<>"']/g,sM=RegExp(N2.source);function ax(l){return l=co(l),l&&sM.test(l)?l.replace(N2,AA):l}var aO=/[\\^$.*+?()[\]{}|]/g,O1=RegExp(aO.source);function gT(l){return l=co(l),l&&O1.test(l)?l.replace(aO,"\\$&"):l}function oO(l,s){for(var i=-1,u=l==null?0:l.length;++ig?0:g+i),u=u===void 0||u>g?g:wa(u),u<0&&(u+=g),u=i>u?0:sO(u);i-1?g[C?s[x]:x]:void 0}}var t=Math.max;function c(l,s,i){var u=l==null?0:l.length;if(!u)return-1;var g=i==null?0:wa(i);return g<0&&(g=t(u+g,0)),K0(l,da(s),g)}var v=f(c),m=v;function b(l,s,i){var u;return i(l,function(g,C,x){if(s(g,C,x))return u=C,!1}),u}function M(l,s){return b(l,da(s),me)}var A=Math.max,B=Math.min;function H(l,s,i){var u=l==null?0:l.length;if(!u)return-1;var g=u-1;return i!==void 0&&(g=wa(i),g=i<0?A(u+g,0):B(g,u-1)),K0(l,da(s),g,!0)}var W=f(H),Y=W;function Q(l,s){return b(l,da(s),sc)}function te(l){return l&&l.length?l[0]:void 0}function he(l,s){var i=-1,u=dl(l)?Array(l.length):[];return Pe(l,function(g,C,x){u[++i]=s(g,C,x)}),u}function Ee(l,s){var i=ki(l)?rl:he;return i(l,da(s))}function Fe(l,s){return su(Ee(l,s),1)}var qe=1/0;function nt(l,s){return su(Ee(l,s),qe)}function ht(l,s,i){return i=i===void 0?1:wa(i),su(Ee(l,s),i)}var Jt=1/0;function Er(l){var s=l==null?0:l.length;return s?su(l,Jt):[]}function Or(l,s){var i=l==null?0:l.length;return i?(s=s===void 0?1:wa(s),su(l,s)):[]}var Rr=512;function tn(l){return Zu(l,Rr)}var ln=Hg("floor"),Zn=ln,ei="Expected a function",Yi=8,Ea=32,io=128,Iu=256;function ds(l){return Ol(function(s){var i=s.length,u=i,g=Tl.prototype.thru;for(l&&s.reverse();u--;){var C=s[u];if(typeof C!="function")throw new TypeError(ei);if(g&&!x&&Qd(C)=="wrapper")var x=new Tl([],!0)}for(u=x?u:i;++us}function G2(l){return function(s,i){return typeof s=="string"&&typeof i=="string"||(s=ca(s),i=ca(i)),l(s,i)}}var RA=G2(W2),uf=RA,bT=G2(function(l,s){return l>=s}),dO=bT,DA=Object.prototype,wT=DA.hasOwnProperty;function LA(l,s){return l!=null&&wT.call(l,s)}function fy(l,s){return l!=null&&tx(l,s,LA)}var xT=Math.max,b6=Math.min;function PA(l,s,i){return l>=b6(s,i)&&l-1:!!g&&ad(l,s,i)>-1}var w6=Math.max;function kA(l,s,i){var u=l==null?0:l.length;if(!u)return-1;var g=i==null?0:wa(i);return g<0&&(g=w6(u+g,0)),ad(l,s,g)}function vD(l){var s=l==null?0:l.length;return s?rc(l,0,-1):[]}var pD=Math.min;function FA(l,s,i){for(var u=i?Rc:Sf,g=l[0].length,C=l.length,x=C,E=Array(C),O=1/0,R=[];x--;){var k=l[x];x&&s&&(k=rl(k,vl(s))),O=pD(k.length,O),E[x]=!i&&(s||g>=120&&k.length>=120)?new qo(x&&k):void 0}k=l[0];var z=-1,j=E[0];e:for(;++z=-UA&&l<=UA}function r0(l){return l===void 0}var z6="[object WeakMap]";function W6(l){return yo(l)&&Eh(l)==z6}var G6="[object WeakSet]";function YA(l){return yo(l)&&cl(l)==G6}var $6=1;function U6(l){return da(typeof l=="function"?l:nc(l,$6))}var Y6=Array.prototype,j6=Y6.join;function ND(l,s){return l==null?"":j6.call(l,s)}var HD=Rm(function(l,s,i){return l+(i?"-":"")+s.toLowerCase()}),zD=HD,WD=at(function(l,s,i){ud(l,i,s)}),jA=WD;function GD(l,s,i){for(var u=i+1;u--;)if(l[u]===s)return u;return u}var $D=Math.max,UD=Math.min;function YD(l,s,i){var u=l==null?0:l.length;if(!u)return-1;var g=u;return i!==void 0&&(g=wa(i),g=g<0?$D(u+g,0):UD(g,u-1)),s===s?GD(l,s,g):K0(l,yC,g,!0)}var du=Rm(function(l,s,i){return l+(i?" ":"")+s.toLowerCase()}),ux=du,fM=RS("toLowerCase"),Y2=fM;function fx(l,s){return l=this.__values__.length,s=l?void 0:this.__values__[this.__index__++];return{done:l,value:s}}function MO(l,s){var i=l.length;if(i)return s+=s<0?i:0,xc(s,i)?l[s]:void 0}function iI(l,s){return l&&l.length?MO(l,wa(s)):void 0}function hx(l){return l=wa(l),Sa(function(s){return MO(s,l)})}function TO(l,s){return s=Rf(s,l),l=Ua(l,s),l==null||delete l[Df(no(s))]}function Z6(l){return Cp(l)?void 0:l}var K6=1,dx=2,q6=4,VD=Ol(function(l,s){var i={};if(l==null)return i;var u=!1;s=rl(s,function(C){return C=Rf(C,l),u||(u=C.length>1),C}),Tf(l,Hm(l),i),u&&(i=nc(i,K6|dx|q6,Z6));for(var g=s.length;g--;)TO(i,s[g]);return i}),OO=VD;function IT(l,s,i,u){if(!ga(l))return l;s=Rf(s,l);for(var g=-1,C=s.length,x=C-1,E=l;E!=null&&++gs||C&&x&&O&&!E&&!R||u&&x&&O||!i&&O||!g)return 1;if(!u&&!C&&!R&&l=E)return O;var R=i[u];return O*(R=="desc"?-1:1)}}return l.index-s.index}function r3(l,s,i){s.length?s=rl(s,function(C){return ki(C)?function(x){return av(x,C.length===1?C[0]:C)}:C}):s=[rs];var u=-1;s=rl(s,vl(da));var g=he(l,function(C,x,E){var O=rl(s,function(R){return R(C)});return{criteria:O,index:++u,value:C}});return J6(g,function(C,x){return t3(C,x,i)})}function AO(l,s,i,u){return l==null?[]:(ki(s)||(s=s==null?[]:[s]),i=u?void 0:i,ki(i)||(i=i==null?[]:[i]),r3(l,s,i))}function lI(l){return Ol(function(s){return s=rl(s,vl(da)),Sa(function(i){var u=this;return l(s,function(g){return Vu(g,u,i)})})})}var n3=lI(rl),ZD=n3,i3=Sa,KD=i3,a3=Math.min,qD=KD(function(l,s){s=s.length==1&&ki(s[0])?rl(s[0],vl(da)):rl(su(s,1),vl(da));var i=s.length;return Sa(function(u){for(var g=-1,C=a3(u.length,i);++geL)return i;do s%2&&(i+=l),s=u3(s/2),s&&(l+=l);while(s);return i}var sI=kf("length"),tL=sI,X2="\\ud800-\\udfff",uI="\\u0300-\\u036f",cI="\\ufe20-\\ufe2f",fI="\\u20d0-\\u20ff",hI=uI+cI+fI,dI="\\ufe0e\\ufe0f",vI="["+X2+"]",RT="["+hI+"]",DT="\\ud83c[\\udffb-\\udfff]",pI="(?:"+RT+"|"+DT+")",RO="[^"+X2+"]",kp="(?:\\ud83c[\\udde6-\\uddff]){2}",DO="[\\ud800-\\udbff][\\udc00-\\udfff]",gI="\\u200d",LO=pI+"?",PO="["+dI+"]?",mI="(?:"+gI+"(?:"+[RO,kp,DO].join("|")+")"+PO+LO+")*",yI=PO+LO+mI,CI="(?:"+[RO+RT+"?",RT,kp,DO,vI].join("|")+")",BO=RegExp(DT+"(?="+DT+")|"+CI+yI,"g");function c3(l){for(var s=BO.lastIndex=0;BO.test(l);)++s;return s}function Z2(l){return xp(l)?c3(l):tL(l)}var f3=Math.ceil;function mM(l,s){s=s===void 0?" ":Uu(s);var i=s.length;if(i<2)return i?IO(s,l):s;var u=IO(s,f3(l/Z2(s)));return xp(s)?pd(uu(u),0,l).join(""):u.slice(0,l)}var h3=Math.ceil,d3=Math.floor;function D1(l,s,i){l=co(l),s=wa(s);var u=s?Z2(l):0;if(!s||u>=s)return l;var g=(s-u)/2;return mM(d3(g),i)+l+mM(h3(g),i)}function v3(l,s,i){l=co(l),s=wa(s);var u=s?Z2(l):0;return s&&u-1;)E!==l&&w3.call(E,O,1),w3.call(l,O,1);return l}function HO(l,s){return l&&l.length&&s&&s.length?xI(l,s):l}var x3=Sa(HO),S3=x3;function _3(l,s,i){return l&&l.length&&s&&s.length?xI(l,s,da(i)):l}function E3(l,s,i){return l&&l.length&&s&&s.length?xI(l,s,void 0,i):l}var zO=Array.prototype,uL=zO.splice;function M3(l,s){for(var i=l?s.length:0,u=i-1;i--;){var g=s[i];if(i==u||g!==C){var C=g;xc(g)?uL.call(l,g,1):TO(l,g)}}return l}var cL=Ol(function(l,s){var i=l==null?0:l.length,u=fw(l,s);return M3(l,rl(s,function(g){return xc(g,i)?+g:g}).sort(e3)),u}),SI=cL,_I=Math.floor,EI=Math.random;function WO(l,s){return l+_I(EI()*(s-l+1))}var T3=parseFloat,fL=Math.min,O3=Math.random;function hL(l,s,i){if(i&&typeof i!="boolean"&&ou(l,s,i)&&(s=i=void 0),i===void 0&&(typeof s=="boolean"?(i=s,s=void 0):typeof l=="boolean"&&(i=l,l=void 0)),l===void 0&&s===void 0?(l=0,s=1):(l=jd(l),s===void 0?(s=l,l=0):s=jd(s)),l>s){var u=l;l=s,s=u}if(i||l%1||s%1){var g=O3();return fL(l+g*(s-l+T3("1e-"+((g+"").length-1))),s)}return WO(l,s)}var MI=Math.ceil,A3=Math.max;function I3(l,s,i,u){for(var g=-1,C=A3(MI((s-l)/(i||1)),0),x=Array(C);C--;)x[u?C:++g]=l,l+=i;return x}function GO(l){return function(s,i,u){return u&&typeof u!="number"&&ou(s,i,u)&&(i=u=void 0),s=jd(s),i===void 0?(i=s,s=0):i=jd(i),u=u===void 0?s1&&ou(l,s[0],s[1])?s=[]:i>2&&ou(s[0],s[1],s[2])&&(s=[s[0]]),r3(l,su(s,1),[])}),wL=V3,r_=4294967295,LI=r_-1,xL=Math.floor,X3=Math.min;function PI(l,s,i,u){var g=0,C=l==null?0:l.length;if(C===0)return 0;s=i(s);for(var x=s!==s,E=s===null,O=Vc(s),R=s===void 0;g>>1;function bM(l,s,i){var u=0,g=l==null?u:l.length;if(typeof s=="number"&&s===s&&g<=SL){for(;u>>1,x=l[C];x!==null&&!Vc(x)&&(i?x<=s:x>>0,i?(l=co(l),l&&(typeof s=="string"||s!=null&&!mO(s))&&(s=Uu(s),!s&&xp(l))?pd(uu(l),0,i):l.split(s,i)):[]}var ML="Expected a function",eR=Math.max;function tR(l,s){if(typeof l!="function")throw new TypeError(ML);return s=s==null?0:eR(wa(s),0),Sa(function(i){var u=i[s],g=pd(i,0,s);return u&&pl(g,u),Vu(l,this,g)})}var TL=Rm(function(l,s,i){return l+(i?" ":"")+mw(s)}),rR=TL;function OL(l,s,i){return l=co(l),i=i==null?0:Mp(wa(i),0,l.length),s=Uu(s),l.slice(i,i+s.length)==s}function AL(){return{}}function IL(){return""}function nR(){return!0}var xM=fl(function(l,s){return l-s},0),FI=xM;function NI(l){return l&&l.length?dM(l,rs):0}function HI(l,s){return l&&l.length?dM(l,da(s)):0}function iR(l){var s=l==null?0:l.length;return s?rc(l,1,s):[]}function aR(l,s,i){return l&&l.length?(s=i||s===void 0?1:wa(s),rc(l,0,s<0?0:s)):[]}function oR(l,s,i){var u=l==null?0:l.length;return u?(s=i||s===void 0?1:wa(s),s=u-s,rc(l,s<0?0:s,u)):[]}function lR(l,s){return l&&l.length?B2(l,da(s),!1,!0):[]}function sR(l,s){return l&&l.length?B2(l,da(s)):[]}function zI(l,s){return s(l),l}var WI=Object.prototype,uR=WI.hasOwnProperty;function cR(l,s,i,u){return l===void 0||qc(l,WI[i])&&!uR.call(u,i)?s:l}var RL={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function n_(l){return"\\"+RL[l]}var DL=/<%=([\s\S]+?)%>/g,XO=DL,LL=/<%-([\s\S]+?)%>/g,fR=LL,hR=/<%([\s\S]+?)%>/g,ZO=hR,dR={escape:fR,evaluate:ZO,interpolate:XO,variable:"",imports:{_:{escape:ax}}},GI=dR,KO="Invalid `variable` option passed into `_.template`",PL=/\b__p \+= '';/g,vR=/\b(__p \+=) '' \+/g,pR=/(__e\(.*?\)|\b__t\)) \+\n'';/g,gR=/[()=,{}\[\]\/\s]/,SM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qO=/($^)/,BL=/['\n\r\u2028\u2029\\]/g,d=Object.prototype,p=d.hasOwnProperty;function y(l,s,i){var u=GI.imports._.templateSettings||GI;i&&ou(l,s,i)&&(s=void 0),l=co(l),s=$l({},s,u,cR);var g=$l({},s.imports,u.imports,cR),C=za(g),x=I1(g,C),E,O,R=0,k=s.interpolate||qO,z="__p += '",j=RegExp((s.escape||qO).source+"|"+k.source+"|"+(k===XO?SM:qO).source+"|"+(s.evaluate||qO).source+"|$","g"),q=p.call(s,"sourceURL")?"//# sourceURL="+(s.sourceURL+"").replace(/\s/g," ")+` +`:"";l.replace(j,function(ye,Me,We,Ue,Ze,Ut){return We||(We=Ue),z+=l.slice(R,Ut).replace(BL,n_),Me&&(E=!0,z+=`' + +__e(`+Me+`) + +'`),Ze&&(O=!0,z+=`'; +`+Ze+`; +__p += '`),We&&(z+=`' + +((__t = (`+We+`)) == null ? '' : __t) + +'`),R=Ut+ye.length,ye}),z+=`'; +`;var ee=p.call(s,"variable")&&s.variable;if(!ee)z=`with (obj) { +`+z+` +} +`;else if(gR.test(ee))throw new Error(KO);z=(O?z.replace(PL,""):z).replace(vR,"$1").replace(pR,"$1;"),z="function("+(ee||"obj")+`) { +`+(ee?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(E?", __e = _.escape":"")+(O?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+z+`return __p +}`;var le=vw(function(){return Function(C,q+"return "+z).apply(void 0,x)});if(le.source=z,ov(le))throw le;return le}var w="Expected a function";function I(l,s,i){var u=!0,g=!0;if(typeof l!="function")throw new TypeError(w);return ga(i)&&(u="leading"in i?!!i.leading:u,g="trailing"in i?!!i.trailing:g),il(l,s,{leading:u,maxWait:s,trailing:g})}function P(l,s){return s(l)}var N=9007199254740991,$=4294967295,V=Math.min;function J(l,s){if(l=wa(l),l<1||l>N)return[];var i=$,u=V(l,$);s=jl(s),l-=$;for(var g=Li(u,s);++i-1;);return i}function Wt(l,s){for(var i=-1,u=l.length;++i-1;);return i}function Ye(l,s,i){if(l=co(l),l&&(i||s===void 0))return hg(l);if(!l||!(s=Uu(s)))return l;var u=uu(l),g=uu(s),C=Wt(u,g),x=yt(u,g)+1;return pd(u,C,x).join("")}function _t(l,s,i){if(l=co(l),l&&(i||s===void 0))return l.slice(0,Vx(l)+1);if(!l||!(s=Uu(s)))return l;var u=uu(l),g=yt(u,uu(s))+1;return pd(u,0,g).join("")}var vt=/^\s+/;function At(l,s,i){if(l=co(l),l&&(i||s===void 0))return l.replace(vt,"");if(!l||!(s=Uu(s)))return l;var u=uu(l),g=Wt(u,uu(s));return pd(u,g).join("")}var Kt=30,hr="...",Hr=/\w*$/;function sn(l,s){var i=Kt,u=hr;if(ga(s)){var g="separator"in s?s.separator:g;i="length"in s?wa(s.length):i,u="omission"in s?Uu(s.omission):u}l=co(l);var C=l.length;if(xp(l)){var x=uu(l);C=x.length}if(i>=C)return l;var E=i-Z2(u);if(E<1)return u;var O=x?pd(x,0,E).join(""):l.slice(0,E);if(g===void 0)return O+u;if(x&&(E+=O.length-E),mO(g)){if(l.slice(E).search(g)){var R,k=O;for(g.global||(g=RegExp(g.source,co(Hr.exec(g))+"g")),g.lastIndex=0;R=g.exec(k);)var z=R.index;O=O.slice(0,z===void 0?E:z)}}else if(l.indexOf(Uu(g),E)!=E){var j=O.lastIndexOf(g);j>-1&&(O=O.slice(0,j))}return O+u}function on(l){return aS(l,1)}var rn={"&":"&","<":"<",">":">",""":'"',"'":"'"},hn=yw(rn),it=hn,$e=/&(?:amp|lt|gt|quot|#39);/g,ft=RegExp($e.source);function sr(l){return l=co(l),l&&ft.test(l)?l.replace($e,it):l}var gr=1/0,_r=md&&1/Jg(new md([,-0]))[1]==gr?function(l){return new md(l)}:Zd,Wr=_r,$r=200;function Zr(l,s,i){var u=-1,g=Sf,C=l.length,x=!0,E=[],O=E;if(i)x=!1,g=Rc;else if(C>=$r){var R=s?null:Wr(l);if(R)return Jg(R);x=!1,g=ty,O=new qo}else O=s?[]:E;e:for(;++u1||this.__actions__.length||!(u instanceof Na)||!xc(i)?this.thru(g):(u=u.slice(i,+i+(s?1:0)),u.__actions__.push({func:P,args:[g],thisArg:void 0}),new Tl(u,this.__chain__).thru(function(C){return s&&!C.length&&C.push(void 0),C}))}),gv=zf;function Wf(){return Lw(this)}function Lh(){var l=this.__wrapped__;if(l instanceof Na){var s=l;return this.__actions__.length&&(s=new Na(this)),s=s.reverse(),s.__actions__.push({func:P,args:[YO],thisArg:void 0}),new Tl(s,this.__chain__)}return this.thru(YO)}function hf(l,s,i){var u=l.length;if(u<2)return u?Zr(l[0]):[];for(var g=-1,C=Array(u);++g1?l[s-1]:void 0;return i=typeof i=="function"?(l.pop(),i):void 0,Ga(l,i)}),Cv=B1,yn={chunk:zg,compact:Mh,concat:ic,difference:Dp,differenceBy:qT,differenceWith:Ah,drop:P2,dropRight:uT,dropRightWhile:JT,dropWhile:oM,fill:Lp,findIndex:c,findLastIndex:H,first:te,flatten:Zs,flattenDeep:Er,flattenDepth:Or,fromPairs:cy,head:te,indexOf:kA,initial:vD,intersection:HA,intersectionBy:yD,intersectionWith:S6,join:ND,last:no,lastIndexOf:YD,nth:iI,pull:S3,pullAll:HO,pullAllBy:_3,pullAllWith:E3,pullAt:SI,remove:D3,reverse:YO,slice:$3,sortedIndex:Z3,sortedIndexBy:jO,sortedIndexOf:K3,sortedLastIndex:_L,sortedLastIndexBy:VO,sortedLastIndexOf:EL,sortedUniq:q3,sortedUniqBy:Q3,tail:iR,take:aR,takeRight:oR,takeRightWhile:lR,takeWhile:sR,union:pn,unionBy:Hi,unionWith:ii,uniq:va,uniqBy:Ja,uniqWith:jo,unzip:Xi,unzipWith:Ga,without:Fp,xor:Pc,xorBy:i_,xorWith:vx,zip:Cd,zipObject:l0,zipObjectDeep:a_,zipWith:Cv},zi={countBy:Ar,each:Qi,eachRight:F2,every:H2,filter:h,find:m,findLast:Y,flatMap:Fe,flatMapDeep:nt,flatMapDepth:ht,forEach:Qi,forEachRight:F2,groupBy:hO,includes:Ih,invokeMap:D6,keyBy:jA,map:Ee,orderBy:AO,partition:nL,reduce:Q2,reduceRight:gL,reject:II,sample:J2,sampleSize:N3,shuffle:t_,size:vy,some:py,sortBy:wL},Vl={now:Jn},Si={after:ZT,ary:aS,before:UC,bind:YC,bindKey:vd,curry:zr,curryRight:Cn,debounce:il,defer:oc,delay:Ic,flip:tn,memoize:If,negate:i0,once:XD,overArgs:o3,partial:kO,partialRight:y3,rearg:pL,rest:UO,spread:tR,throttle:I,unary:on,wrap:a0},bi={castArray:xE,clone:uv,cloneDeep:b1,cloneDeepWith:cv,cloneWith:Uw,conformsTo:G,eq:qc,gt:uf,gte:dO,isArguments:Do,isArray:ki,isArrayBuffer:_T,isArrayLike:dl,isArrayLikeObject:Mo,isBoolean:Bp,isBuffer:Ku,isDate:SD,isElement:_D,isEmpty:Nn,isEqual:ff,isEqualWith:AD,isError:ov,isFinite:k6,isFunction:js,isInteger:WA,isLength:nv,isMap:Zg,isMatch:F6,isMatchWith:GA,isNaN:gO,isNative:PD,isNil:hu,isNull:BD,isNumber:Rh,isObject:ga,isObjectLike:yo,isPlainObject:Cp,isRegExp:mO,isSafeInteger:H6,isSet:g2,isString:cf,isSymbol:Vc,isTypedArray:mp,isUndefined:r0,isWeakMap:W6,isWeakSet:YA,lt:VA,lte:CO,toArray:nI,toFinite:jd,toInteger:wa,toLength:sO,toNumber:ca,toPlainObject:Oh,toSafeInteger:He,toString:co},uc={add:yi,ceil:jS,divide:L2,floor:Zn,max:n0,maxBy:SO,mean:MT,meanBy:TT,min:_O,minBy:AT,multiply:JA,round:CL,subtract:FI,sum:NI,sumBy:HI},px={clamp:Tp,inRange:Pp,random:hL},ya={assign:cm,assignIn:Ch,assignInWith:$l,assignWith:rw,at:wS,create:Fr,defaults:Ac,defaultsDeep:fa,entries:dT,entriesIn:vT,extend:Ch,extendWith:$l,findKey:M,findLastKey:Q,forIn:A1,forInRight:lx,forOwn:uO,forOwnRight:cO,functions:CT,functionsIn:uM,get:Ii,has:fy,hasIn:sy,invert:bD,invertBy:O6,invoke:I6,keys:za,keysIn:Gl,mapKeys:j2,mapValues:bO,merge:gM,mergeWith:dv,omit:OO,omitBy:Q6,pick:C3,pickBy:oI,result:yL,set:e_,setWith:H3,toPairs:dT,toPairsIn:vT,transform:Mt,unset:Vi,update:gl,updateWith:Ls,values:hy,valuesIn:vs},bv={at:gv,chain:Lw,commit:x2,lodash:Je,next:jD,plant:oL,reverse:Lh,tap:zI,thru:P,toIterator:ue,toJSON:Se,value:Se,valueOf:Se,wrapperChain:Wf},wo={camelCase:Dw,capitalize:LS,deburr:Cw,endsWith:fT,escape:ax,escapeRegExp:gT,kebabCase:zD,lowerCase:ux,lowerFirst:Y2,pad:D1,padEnd:v3,padStart:bI,parseInt:m3,repeat:$O,replace:L3,snakeCase:Y3,split:J3,startCase:rR,startsWith:OL,template:y,templateSettings:GI,toLower:Qe,toUpper:gt,trim:Ye,trimEnd:_t,trimStart:At,truncate:sn,unescape:sr,upperCase:Dh,upperFirst:mw,words:bE},eo={attempt:vw,bindAll:bp,cond:I2,conforms:L,constant:Kc,defaultTo:as,flow:Po,flowRight:pv,identity:rs,iteratee:U6,matches:wO,matchesProperty:xO,method:qA,methodOf:OT,mixin:V2,noop:Zd,nthArg:hx,over:ZD,overEvery:l3,overSome:s3,property:nx,propertyOf:lL,range:K2,rangeRight:vL,stubArray:km,stubFalse:Co,stubObject:AL,stubString:IL,stubTrue:nR,times:J,toPath:ut,uniqueId:Ya};function _M(){var l=new Na(this.__wrapped__);return l.__actions__=hl(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=hl(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=hl(this.__views__),l}function o_(){if(this.__filtered__){var l=new Na(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}var LT=Math.max,Xl=Math.min;function s0(l,s,i){for(var u=-1,g=i.length;++u0||s<0)?new Na(i):(l<0?i=i.takeRight(-l):l&&(i=i.drop(l)),s!==void 0&&(s=wa(s),i=s<0?i.dropRight(-s):i.take(s-l)),i)},Na.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Na.prototype.toArray=function(){return this.take(PT)},me(Na.prototype,function(l,s){var i=/^(?:filter|find|map|reject)|While$/.test(s),u=/^(?:head|last)$/.test(s),g=Je[u?"take"+(s=="last"?"Right":""):s],C=u||/^find/.test(s);g&&(Je.prototype[s]=function(){var x=this.__wrapped__,E=u?[1]:arguments,O=x instanceof Na,R=E[0],k=O||ki(x),z=function(Me){var We=g.apply(Je,pl([Me],E));return u&&j?We[0]:We};k&&i&&typeof R=="function"&&R.length!=1&&(O=k=!1);var j=this.__chain__,q=!!this.__actions__.length,ee=C&&!j,le=O&&!q;if(!C&&k){x=le?x:new Na(this);var ye=l.apply(x,E);return ye.__actions__.push({func:P,args:[z],thisArg:void 0}),new Tl(ye,j)}return ee&&le?l.apply(this,E):(ye=this.thru(z),ee?u?ye.value()[0]:ye.value():ye)})}),As(["pop","push","shift","sort","splice","unshift"],function(l){var s=JO[l],i=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",u=/^(?:pop|shift)$/.test(l);Je.prototype[l]=function(){var g=arguments;if(u&&!this.__chain__){var C=this.value();return s.apply(ki(C)?C:[],g)}return this[i](function(x){return s.apply(ki(x)?x:[],g)})}}),me(Na.prototype,function(l,s){var i=Je[s];if(i){var u=i.name+"";gy.call(uo,u)||(uo[u]=[]),uo[u].push({name:s,func:i})}}),uo[wg(void 0,TM).name]=[{name:"wrapper",func:void 0}],Na.prototype.clone=_M,Na.prototype.reverse=o_,Na.prototype.value=s_,Je.prototype.at=bv.at,Je.prototype.chain=bv.wrapperChain,Je.prototype.commit=bv.commit,Je.prototype.next=bv.next,Je.prototype.plant=bv.plant,Je.prototype.reverse=bv.reverse,Je.prototype.toJSON=Je.prototype.valueOf=Je.prototype.value=bv.value,Je.prototype.first=Je.prototype.head,gx&&(Je.prototype[gx]=bv.toIterator);var AM={exports:{}};(function(l){(function(s){var i=/^\s+/,u=/\s+$/,g=0,C=s.round,x=s.min,E=s.max,O=s.random;function R(Ot,br){if(Ot=Ot||"",br=br||{},Ot instanceof R)return Ot;if(!(this instanceof R))return new R(Ot,br);var $t=k(Ot);this._originalInput=Ot,this._r=$t.r,this._g=$t.g,this._b=$t.b,this._a=$t.a,this._roundA=C(100*this._a)/100,this._format=br.format||$t.format,this._gradientType=br.gradientType,this._r<1&&(this._r=C(this._r)),this._g<1&&(this._g=C(this._g)),this._b<1&&(this._b=C(this._b)),this._ok=$t.ok,this._tc_id=g++}R.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Ot=this.toRgb();return(Ot.r*299+Ot.g*587+Ot.b*114)/1e3},getLuminance:function(){var Ot=this.toRgb(),br,$t,Tn,_i,Ei,zo;return br=Ot.r/255,$t=Ot.g/255,Tn=Ot.b/255,br<=.03928?_i=br/12.92:_i=s.pow((br+.055)/1.055,2.4),$t<=.03928?Ei=$t/12.92:Ei=s.pow(($t+.055)/1.055,2.4),Tn<=.03928?zo=Tn/12.92:zo=s.pow((Tn+.055)/1.055,2.4),.2126*_i+.7152*Ei+.0722*zo},setAlpha:function(Ot){return this._a=Bo(Ot),this._roundA=C(100*this._a)/100,this},toHsv:function(){var Ot=ee(this._r,this._g,this._b);return{h:Ot.h*360,s:Ot.s,v:Ot.v,a:this._a}},toHsvString:function(){var Ot=ee(this._r,this._g,this._b),br=C(Ot.h*360),$t=C(Ot.s*100),Tn=C(Ot.v*100);return this._a==1?"hsv("+br+", "+$t+"%, "+Tn+"%)":"hsva("+br+", "+$t+"%, "+Tn+"%, "+this._roundA+")"},toHsl:function(){var Ot=j(this._r,this._g,this._b);return{h:Ot.h*360,s:Ot.s,l:Ot.l,a:this._a}},toHslString:function(){var Ot=j(this._r,this._g,this._b),br=C(Ot.h*360),$t=C(Ot.s*100),Tn=C(Ot.l*100);return this._a==1?"hsl("+br+", "+$t+"%, "+Tn+"%)":"hsla("+br+", "+$t+"%, "+Tn+"%, "+this._roundA+")"},toHex:function(Ot){return ye(this._r,this._g,this._b,Ot)},toHexString:function(Ot){return"#"+this.toHex(Ot)},toHex8:function(Ot){return Me(this._r,this._g,this._b,this._a,Ot)},toHex8String:function(Ot){return"#"+this.toHex8(Ot)},toRgb:function(){return{r:C(this._r),g:C(this._g),b:C(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+C(this._r)+", "+C(this._g)+", "+C(this._b)+")":"rgba("+C(this._r)+", "+C(this._g)+", "+C(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:C(aa(this._r,255)*100)+"%",g:C(aa(this._g,255)*100)+"%",b:C(aa(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+C(aa(this._r,255)*100)+"%, "+C(aa(this._g,255)*100)+"%, "+C(aa(this._b,255)*100)+"%)":"rgba("+C(aa(this._r,255)*100)+"%, "+C(aa(this._g,255)*100)+"%, "+C(aa(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:xo[ye(this._r,this._g,this._b,!0)]||!1},toFilter:function(Ot){var br="#"+We(this._r,this._g,this._b,this._a),$t=br,Tn=this._gradientType?"GradientType = 1, ":"";if(Ot){var _i=R(Ot);$t="#"+We(_i._r,_i._g,_i._b,_i._a)}return"progid:DXImageTransform.Microsoft.gradient("+Tn+"startColorstr="+br+",endColorstr="+$t+")"},toString:function(Ot){var br=!!Ot;Ot=Ot||this._format;var $t=!1,Tn=this._a<1&&this._a>=0,_i=!br&&Tn&&(Ot==="hex"||Ot==="hex6"||Ot==="hex3"||Ot==="hex4"||Ot==="hex8"||Ot==="name");return _i?Ot==="name"&&this._a===0?this.toName():this.toRgbString():(Ot==="rgb"&&($t=this.toRgbString()),Ot==="prgb"&&($t=this.toPercentageRgbString()),(Ot==="hex"||Ot==="hex6")&&($t=this.toHexString()),Ot==="hex3"&&($t=this.toHexString(!0)),Ot==="hex4"&&($t=this.toHex8String(!0)),Ot==="hex8"&&($t=this.toHex8String()),Ot==="name"&&($t=this.toName()),Ot==="hsl"&&($t=this.toHslString()),Ot==="hsv"&&($t=this.toHsvString()),$t||this.toHexString())},clone:function(){return R(this.toString())},_applyModification:function(Ot,br){var $t=Ot.apply(null,[this].concat([].slice.call(br)));return this._r=$t._r,this._g=$t._g,this._b=$t._b,this.setAlpha($t._a),this},lighten:function(){return this._applyModification(mr,arguments)},brighten:function(){return this._applyModification(xr,arguments)},darken:function(){return this._applyModification(Kr,arguments)},desaturate:function(){return this._applyModification(Ue,arguments)},saturate:function(){return this._applyModification(Ze,arguments)},greyscale:function(){return this._applyModification(Ut,arguments)},spin:function(){return this._applyModification(mn,arguments)},_applyCombination:function(Ot,br){return Ot.apply(null,[this].concat([].slice.call(br)))},analogous:function(){return this._applyCombination(Bi,arguments)},complement:function(){return this._applyCombination(Vn,arguments)},monochromatic:function(){return this._applyCombination(Rn,arguments)},splitcomplement:function(){return this._applyCombination(di,arguments)},triad:function(){return this._applyCombination(In,arguments)},tetrad:function(){return this._applyCombination(Un,arguments)}},R.fromRatio=function(Ot,br){if(typeof Ot=="object"){var $t={};for(var Tn in Ot)Ot.hasOwnProperty(Tn)&&(Tn==="a"?$t[Tn]=Ot[Tn]:$t[Tn]=Cl(Ot[Tn]));Ot=$t}return R(Ot,br)};function k(Ot){var br={r:0,g:0,b:0},$t=1,Tn=null,_i=null,Ei=null,zo=!1,ms=!1;return typeof Ot=="string"&&(Ot=OA(Ot)),typeof Ot=="object"&&(Wp(Ot.r)&&Wp(Ot.g)&&Wp(Ot.b)?(br=z(Ot.r,Ot.g,Ot.b),zo=!0,ms=String(Ot.r).substr(-1)==="%"?"prgb":"rgb"):Wp(Ot.h)&&Wp(Ot.s)&&Wp(Ot.v)?(Tn=Cl(Ot.s),_i=Cl(Ot.v),br=le(Ot.h,Tn,_i),zo=!0,ms="hsv"):Wp(Ot.h)&&Wp(Ot.s)&&Wp(Ot.l)&&(Tn=Cl(Ot.s),Ei=Cl(Ot.l),br=q(Ot.h,Tn,Ei),zo=!0,ms="hsl"),Ot.hasOwnProperty("a")&&($t=Ot.a)),$t=Bo($t),{ok:zo,format:Ot.format||ms,r:x(255,E(br.r,0)),g:x(255,E(br.g,0)),b:x(255,E(br.b,0)),a:$t}}function z(Ot,br,$t){return{r:aa(Ot,255)*255,g:aa(br,255)*255,b:aa($t,255)*255}}function j(Ot,br,$t){Ot=aa(Ot,255),br=aa(br,255),$t=aa($t,255);var Tn=E(Ot,br,$t),_i=x(Ot,br,$t),Ei,zo,ms=(Tn+_i)/2;if(Tn==_i)Ei=zo=0;else{var Ks=Tn-_i;switch(zo=ms>.5?Ks/(2-Tn-_i):Ks/(Tn+_i),Tn){case Ot:Ei=(br-$t)/Ks+(br<$t?6:0);break;case br:Ei=($t-Ot)/Ks+2;break;case $t:Ei=(Ot-br)/Ks+4;break}Ei/=6}return{h:Ei,s:zo,l:ms}}function q(Ot,br,$t){var Tn,_i,Ei;Ot=aa(Ot,360),br=aa(br,100),$t=aa($t,100);function zo(vf,My,Sd){return Sd<0&&(Sd+=1),Sd>1&&(Sd-=1),Sd<1/6?vf+(My-vf)*6*Sd:Sd<1/2?My:Sd<2/3?vf+(My-vf)*(2/3-Sd)*6:vf}if(br===0)Tn=_i=Ei=$t;else{var ms=$t<.5?$t*(1+br):$t+br-$t*br,Ks=2*$t-ms;Tn=zo(Ks,ms,Ot+1/3),_i=zo(Ks,ms,Ot),Ei=zo(Ks,ms,Ot-1/3)}return{r:Tn*255,g:_i*255,b:Ei*255}}function ee(Ot,br,$t){Ot=aa(Ot,255),br=aa(br,255),$t=aa($t,255);var Tn=E(Ot,br,$t),_i=x(Ot,br,$t),Ei,zo,ms=Tn,Ks=Tn-_i;if(zo=Tn===0?0:Ks/Tn,Tn==_i)Ei=0;else{switch(Tn){case Ot:Ei=(br-$t)/Ks+(br<$t?6:0);break;case br:Ei=($t-Ot)/Ks+2;break;case $t:Ei=(Ot-br)/Ks+4;break}Ei/=6}return{h:Ei,s:zo,v:ms}}function le(Ot,br,$t){Ot=aa(Ot,360)*6,br=aa(br,100),$t=aa($t,100);var Tn=s.floor(Ot),_i=Ot-Tn,Ei=$t*(1-br),zo=$t*(1-_i*br),ms=$t*(1-(1-_i)*br),Ks=Tn%6,vf=[$t,zo,Ei,Ei,ms,$t][Ks],My=[ms,$t,$t,zo,Ei,Ei][Ks],Sd=[Ei,Ei,ms,$t,$t,zo][Ks];return{r:vf*255,g:My*255,b:Sd*255}}function ye(Ot,br,$t,Tn){var _i=[To(C(Ot).toString(16)),To(C(br).toString(16)),To(C($t).toString(16))];return Tn&&_i[0].charAt(0)==_i[0].charAt(1)&&_i[1].charAt(0)==_i[1].charAt(1)&&_i[2].charAt(0)==_i[2].charAt(1)?_i[0].charAt(0)+_i[1].charAt(0)+_i[2].charAt(0):_i.join("")}function Me(Ot,br,$t,Tn,_i){var Ei=[To(C(Ot).toString(16)),To(C(br).toString(16)),To(C($t).toString(16)),To(Bh(Tn))];return _i&&Ei[0].charAt(0)==Ei[0].charAt(1)&&Ei[1].charAt(0)==Ei[1].charAt(1)&&Ei[2].charAt(0)==Ei[2].charAt(1)&&Ei[3].charAt(0)==Ei[3].charAt(1)?Ei[0].charAt(0)+Ei[1].charAt(0)+Ei[2].charAt(0)+Ei[3].charAt(0):Ei.join("")}function We(Ot,br,$t,Tn){var _i=[To(Bh(Tn)),To(C(Ot).toString(16)),To(C(br).toString(16)),To(C($t).toString(16))];return _i.join("")}R.equals=function(Ot,br){return!Ot||!br?!1:R(Ot).toRgbString()==R(br).toRgbString()},R.random=function(){return R.fromRatio({r:O(),g:O(),b:O()})};function Ue(Ot,br){br=br===0?0:br||10;var $t=R(Ot).toHsl();return $t.s-=br/100,$t.s=ko($t.s),R($t)}function Ze(Ot,br){br=br===0?0:br||10;var $t=R(Ot).toHsl();return $t.s+=br/100,$t.s=ko($t.s),R($t)}function Ut(Ot){return R(Ot).desaturate(100)}function mr(Ot,br){br=br===0?0:br||10;var $t=R(Ot).toHsl();return $t.l+=br/100,$t.l=ko($t.l),R($t)}function xr(Ot,br){br=br===0?0:br||10;var $t=R(Ot).toRgb();return $t.r=E(0,x(255,$t.r-C(255*-(br/100)))),$t.g=E(0,x(255,$t.g-C(255*-(br/100)))),$t.b=E(0,x(255,$t.b-C(255*-(br/100)))),R($t)}function Kr(Ot,br){br=br===0?0:br||10;var $t=R(Ot).toHsl();return $t.l-=br/100,$t.l=ko($t.l),R($t)}function mn(Ot,br){var $t=R(Ot).toHsl(),Tn=($t.h+br)%360;return $t.h=Tn<0?360+Tn:Tn,R($t)}function Vn(Ot){var br=R(Ot).toHsl();return br.h=(br.h+180)%360,R(br)}function In(Ot){var br=R(Ot).toHsl(),$t=br.h;return[R(Ot),R({h:($t+120)%360,s:br.s,l:br.l}),R({h:($t+240)%360,s:br.s,l:br.l})]}function Un(Ot){var br=R(Ot).toHsl(),$t=br.h;return[R(Ot),R({h:($t+90)%360,s:br.s,l:br.l}),R({h:($t+180)%360,s:br.s,l:br.l}),R({h:($t+270)%360,s:br.s,l:br.l})]}function di(Ot){var br=R(Ot).toHsl(),$t=br.h;return[R(Ot),R({h:($t+72)%360,s:br.s,l:br.l}),R({h:($t+216)%360,s:br.s,l:br.l})]}function Bi(Ot,br,$t){br=br||6,$t=$t||30;var Tn=R(Ot).toHsl(),_i=360/$t,Ei=[R(Ot)];for(Tn.h=(Tn.h-(_i*br>>1)+720)%360;--br;)Tn.h=(Tn.h+_i)%360,Ei.push(R(Tn));return Ei}function Rn(Ot,br){br=br||6;for(var $t=R(Ot).toHsv(),Tn=$t.h,_i=$t.s,Ei=$t.v,zo=[],ms=1/br;br--;)zo.push(R({h:Tn,s:_i,v:Ei})),Ei=(Ei+ms)%1;return zo}R.mix=function(Ot,br,$t){$t=$t===0?0:$t||50;var Tn=R(Ot).toRgb(),_i=R(br).toRgb(),Ei=$t/100,zo={r:(_i.r-Tn.r)*Ei+Tn.r,g:(_i.g-Tn.g)*Ei+Tn.g,b:(_i.b-Tn.b)*Ei+Tn.b,a:(_i.a-Tn.a)*Ei+Tn.a};return R(zo)},R.readability=function(Ot,br){var $t=R(Ot),Tn=R(br);return(s.max($t.getLuminance(),Tn.getLuminance())+.05)/(s.min($t.getLuminance(),Tn.getLuminance())+.05)},R.isReadable=function(Ot,br,$t){var Tn=R.readability(Ot,br),_i,Ei;switch(Ei=!1,_i=hD($t),_i.level+_i.size){case"AAsmall":case"AAAlarge":Ei=Tn>=4.5;break;case"AAlarge":Ei=Tn>=3;break;case"AAAsmall":Ei=Tn>=7;break}return Ei},R.mostReadable=function(Ot,br,$t){var Tn=null,_i=0,Ei,zo,ms,Ks;$t=$t||{},zo=$t.includeFallbackColors,ms=$t.level,Ks=$t.size;for(var vf=0;vf_i&&(_i=Ei,Tn=R(br[vf]));return R.isReadable(Ot,Tn,{level:ms,size:Ks})||!zo?Tn:($t.includeFallbackColors=!1,R.mostReadable(Ot,["#fff","#000"],$t))};var Kn=R.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"},xo=R.hexNames=to(Kn);function to(Ot){var br={};for(var $t in Ot)Ot.hasOwnProperty($t)&&(br[Ot[$t]]=$t);return br}function Bo(Ot){return Ot=parseFloat(Ot),(isNaN(Ot)||Ot<0||Ot>1)&&(Ot=1),Ot}function aa(Ot,br){mu(Ot)&&(Ot="100%");var $t=ss(Ot);return Ot=x(br,E(0,parseFloat(Ot))),$t&&(Ot=parseInt(Ot*br,10)/100),s.abs(Ot-br)<1e-6?1:Ot%br/parseFloat(br)}function ko(Ot){return x(1,E(0,Ot))}function Xa(Ot){return parseInt(Ot,16)}function mu(Ot){return typeof Ot=="string"&&Ot.indexOf(".")!=-1&&parseFloat(Ot)===1}function ss(Ot){return typeof Ot=="string"&&Ot.indexOf("%")!=-1}function To(Ot){return Ot.length==1?"0"+Ot:""+Ot}function Cl(Ot){return Ot<=1&&(Ot=Ot*100+"%"),Ot}function Bh(Ot){return s.round(parseFloat(Ot)*255).toString(16)}function _v(Ot){return Xa(Ot)/255}var fc=function(){var Ot="[-\\+]?\\d+%?",br="[-\\+]?\\d*\\.\\d+%?",$t="(?:"+br+")|(?:"+Ot+")",Tn="[\\s|\\(]+("+$t+")[,|\\s]+("+$t+")[,|\\s]+("+$t+")\\s*\\)?",_i="[\\s|\\(]+("+$t+")[,|\\s]+("+$t+")[,|\\s]+("+$t+")[,|\\s]+("+$t+")\\s*\\)?";return{CSS_UNIT:new RegExp($t),rgb:new RegExp("rgb"+Tn),rgba:new RegExp("rgba"+_i),hsl:new RegExp("hsl"+Tn),hsla:new RegExp("hsla"+_i),hsv:new RegExp("hsv"+Tn),hsva:new RegExp("hsva"+_i),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 Wp(Ot){return!!fc.CSS_UNIT.exec(Ot)}function OA(Ot){Ot=Ot.replace(i,"").replace(u,"").toLowerCase();var br=!1;if(Kn[Ot])Ot=Kn[Ot],br=!0;else if(Ot=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var $t;return($t=fc.rgb.exec(Ot))?{r:$t[1],g:$t[2],b:$t[3]}:($t=fc.rgba.exec(Ot))?{r:$t[1],g:$t[2],b:$t[3],a:$t[4]}:($t=fc.hsl.exec(Ot))?{h:$t[1],s:$t[2],l:$t[3]}:($t=fc.hsla.exec(Ot))?{h:$t[1],s:$t[2],l:$t[3],a:$t[4]}:($t=fc.hsv.exec(Ot))?{h:$t[1],s:$t[2],v:$t[3]}:($t=fc.hsva.exec(Ot))?{h:$t[1],s:$t[2],v:$t[3],a:$t[4]}:($t=fc.hex8.exec(Ot))?{r:Xa($t[1]),g:Xa($t[2]),b:Xa($t[3]),a:_v($t[4]),format:br?"name":"hex8"}:($t=fc.hex6.exec(Ot))?{r:Xa($t[1]),g:Xa($t[2]),b:Xa($t[3]),format:br?"name":"hex"}:($t=fc.hex4.exec(Ot))?{r:Xa($t[1]+""+$t[1]),g:Xa($t[2]+""+$t[2]),b:Xa($t[3]+""+$t[3]),a:_v($t[4]+""+$t[4]),format:br?"name":"hex8"}:($t=fc.hex3.exec(Ot))?{r:Xa($t[1]+""+$t[1]),g:Xa($t[2]+""+$t[2]),b:Xa($t[3]+""+$t[3]),format:br?"name":"hex"}:!1}function hD(Ot){var br,$t;return Ot=Ot||{level:"AA",size:"small"},br=(Ot.level||"AA").toUpperCase(),$t=(Ot.size||"small").toLowerCase(),br!=="AA"&&br!=="AAA"&&(br="AA"),$t!=="small"&&$t!=="large"&&($t="small"),{level:br,size:$t}}l.exports?l.exports=R:window.tinycolor=R})(Math)})(AM);var k1=AM.exports,h_="#FFFFFF",eA="#000000",tA=[95,85,75,30,15,0,15,30,45,60,80],IM=15,d_=function(l){return k1(l).getLuminance()<=.5},kT=[{fontColorIndex:0,bgColorIndex:3},{fontColorIndex:13,bgColorIndex:8},{fontColorIndex:14,bgColorIndex:1}],rA=function(l){for(var s=[],i=0;i<11;i++){var u=tA[i];s.push(gt(u===0?l:k1.mix(l,i<5?h_:eA,u).toHexString()))}return s},v_=function(l){l===void 0&&(l={});var s=Array.from(Array(IM)).fill(Gd),i=l.basicColorRelations,u=i===void 0?[]:i,g=l.brandColor,C=rA(g);return u.forEach(function(x){s[x.basicColorIndex]=C[x.standardColorIndex]}),kT.forEach(function(x){var E=x.fontColorIndex,O=x.bgColorIndex;s[E]=d_(s[O])?Gd:ch}),ur(ur({},l),{basicColors:s})},RM={brandColor:"#3471F9",semanticColors:{red:"#FF4D4F",green:"#29A294",yellow:"#FAAD14"},others:{highlight:"#87B5FF",results:"#F0F7FF"},basicColorRelations:[{basicColorIndex:1,standardColorIndex:0},{basicColorIndex:2,standardColorIndex:1},{basicColorIndex:3,standardColorIndex:5},{basicColorIndex:4,standardColorIndex:6},{basicColorIndex:5,standardColorIndex:6},{basicColorIndex:6,standardColorIndex:6},{basicColorIndex:7,standardColorIndex:5},{basicColorIndex:9,standardColorIndex:1},{basicColorIndex:10,standardColorIndex:4},{basicColorIndex:11,standardColorIndex:4},{basicColorIndex:12,standardColorIndex:5}]},os=v_(RM),Vo={brandColor:"#326EF4",semanticColors:{red:"#FF4D4F",green:"#29A294",yellow:"#FAAD14"},others:{highlight:"#87B5FF",results:"#F0F7FF"},basicColorRelations:[{basicColorIndex:1,standardColorIndex:0},{basicColorIndex:2,standardColorIndex:1},{basicColorIndex:3,standardColorIndex:1},{basicColorIndex:4,standardColorIndex:2},{basicColorIndex:5,standardColorIndex:7},{basicColorIndex:6,standardColorIndex:5},{basicColorIndex:7,standardColorIndex:5},{basicColorIndex:9,standardColorIndex:1},{basicColorIndex:10,standardColorIndex:2},{basicColorIndex:11,standardColorIndex:5},{basicColorIndex:12,standardColorIndex:5}]},yl=v_(Vo),Gf={brandColor:"#9DA7B6",semanticColors:{red:"#FF4D4F",green:"#29A294",yellow:"#FAAD14"},others:{highlight:"#87B5FF",results:"#F0F7FF"},basicColorRelations:[{basicColorIndex:1,standardColorIndex:0},{basicColorIndex:2,standardColorIndex:1},{basicColorIndex:3,standardColorIndex:1},{basicColorIndex:4,standardColorIndex:2},{basicColorIndex:5,standardColorIndex:7},{basicColorIndex:6,standardColorIndex:8},{basicColorIndex:7,standardColorIndex:5},{basicColorIndex:9,standardColorIndex:1},{basicColorIndex:10,standardColorIndex:2},{basicColorIndex:11,standardColorIndex:3},{basicColorIndex:12,standardColorIndex:3}]},Bc=v_(Gf),p_={default:yl,colorful:os,gray:Bc},kc="Roboto, PingFangSC, BlinkMacSystemFont, Microsoft YaHei, Arial, sans-serif",g_=12,FT={\u5C0F\u8BA1:"\u5C0F\u8BA1",\u603B\u8BA1:"\u603B\u8BA1",\u603B\u548C:"\uFF08\u603B\u548C\uFF09",\u9879:"\u9879",\u5DF2\u9009\u62E9:"\u5DF2\u9009\u62E9",\u5E8F\u53F7:"\u5E8F\u53F7",\u5EA6\u91CF:"\u5EA6\u91CF",\u6570\u503C:"\u6570\u503C",\u5171\u8BA1:"\u5171\u8BA1",\u6761:"\u6761",\u8D8B\u52BF:"\u8D8B\u52BF",\u9690\u85CF:"\u9690\u85CF",\u7EC4\u5185\u5347\u5E8F:"\u7EC4\u5185\u5347\u5E8F",\u5347\u5E8F:"\u5347\u5E8F",\u964D\u5E8F:"\u964D\u5E8F",\u7EC4\u5185\u964D\u5E8F:"\u7EC4\u5185\u964D\u5E8F",\u4E0D\u6392\u5E8F:"\u4E0D\u6392\u5E8F","\uFF0C":"\uFF0C"},NT={\u5C0F\u8BA1:"Total",\u603B\u8BA1:"Total",\u603B\u548C:"(SUM)",\u9879:"items",\u5DF2\u9009\u62E9:"selected",\u5E8F\u53F7:"Index",\u5EA6\u91CF:"Measure",\u6570\u503C:"Measure",\u5171\u8BA1:"Total",\u6761:"",\u9690\u85CF:"Hide",\u8D8B\u52BF:"Trend",\u7EC4\u5185\u5347\u5E8F:"Group ASC",\u7EC4\u5185\u964D\u5E8F:"Group DESC",\u5347\u5E8F:"ASC",\u964D\u5E8F:"DESC",\u4E0D\u6392\u5E8F:"No order","\uFF0C":", "},my="zh_CN",u0=my,F1={zh_CN:FT,en_US:NT},$I=function(){return u0},mR=function(l){u0=l||my},DM=function(l){F1=gM({},F1,l)},UI=function(){return F1},vu=function(l,s){return s===void 0&&(s=l),Ii(F1,[u0,l],s)},LM="".concat(np,"-tooltip"),HT="".concat(LM,"-container"),yR="".concat(HT,"-show"),YI="".concat(HT,"-hide"),jI="".concat(LM,"-operation"),yy={x:15,y:10},Hp=function(){return{key:"hiddenColumns",text:vu("\u9690\u85CF"),icon:"EyeOutlined"}},CR=function(){return{key:"trend",text:vu("\u8D8B\u52BF"),icon:"Trend"}},VI=function(){return[{key:"asc",icon:"groupAsc",text:vu("\u7EC4\u5185\u5347\u5E8F")},{key:"desc",icon:"groupDesc",text:vu("\u7EC4\u5185\u964D\u5E8F")},{key:"none",text:vu("\u4E0D\u6392\u5E8F")}]},XI=function(){return[{key:"asc",icon:"groupAsc",text:vu("\u5347\u5E8F")},{key:"desc",icon:"groupDesc",text:vu("\u964D\u5E8F")},{key:"none",text:vu("\u4E0D\u6392\u5E8F")}]},mx;(function(l){l[l.ALL=0]="ALL",l[l.COL=1]="COL",l[l.ROW=2]="ROW"})(mx||(mx={}));var yx=1;function cc(l){return l==="mobile"?!0:/(iPhone|iPad|SymbianOS|Windows Phone|iPod|iOS|Android)/i.test(navigator.userAgent)}function bR(){return/iPhone/gi.test(navigator.userAgent)&&window.screen.height===812&&window.screen.width===375}function Qn(){return/windows/i.test(navigator.userAgent)}var ui=function(l){var s=l||"default";return p_[s.toLowerCase()]},fo=function(l){var s,i,u,g,C,x=(l==null?void 0:l.palette)||ui(l==null?void 0:l.name),E=x.basicColors,O=x.semanticColors,R=x.others,k=(s=l==null?void 0:l.spreadsheet)===null||s===void 0?void 0:s.isTableMode(),z=Qn()?"bold":700,j=function(){var q,ee;return{bolderText:{fontFamily:kc,fontSize:12,fontWeight:z,fill:E[13],opacity:1,textAlign:"right",textBaseline:"middle",linkTextFill:E[6]},text:{fontFamily:kc,fontSize:12,fontWeight:"normal",fill:E[13],opacity:1,textAlign:"right",textBaseline:"middle",linkTextFill:E[6]},cell:{crossBackgroundColor:E[1],backgroundColor:E[8],backgroundColorOpacity:1,horizontalBorderColor:E[9],horizontalBorderColorOpacity:1,verticalBorderColor:E[9],verticalBorderColorOpacity:1,horizontalBorderWidth:1,verticalBorderWidth:1,borderDash:[],padding:{top:8,right:8,bottom:8,left:8},interactionState:{hover:{backgroundColor:E[2],backgroundOpacity:.6},hoverFocus:{backgroundColor:E[2],backgroundOpacity:.6,borderColor:E[14],borderWidth:1,borderOpacity:1},selected:{backgroundColor:E[2],backgroundOpacity:.6},unselected:{backgroundOpacity:.3,textOpacity:.3,opacity:.3},searchResult:{backgroundColor:(q=R==null?void 0:R.results)!==null&&q!==void 0?q:E[2],backgroundOpacity:1},highlight:{backgroundColor:(ee=R==null?void 0:R.highlight)!==null&&ee!==void 0?ee:E[6],backgroundOpacity:1},prepareSelect:{borderColor:E[14],borderOpacity:1,borderWidth:1}}},miniChart:{line:{point:{size:2.2,fill:E[6],opacity:1},linkLine:{size:1.5,fill:E[6],opacity:.6}},bar:{intervalPadding:4,fill:E[6],opacity:1},bullet:{progressBar:{widthPercent:.6,height:10,innerHeight:6},comparativeMeasure:{width:1,height:12,fill:E[13],opacity:.25},rangeColors:{good:O==null?void 0:O.green,satisfactory:O.yellow,bad:O.red},backgroundColor:"#E9E9E9"},interval:{height:g_,fill:E[7]}},icon:{fill:E[13],downIconColor:O.red,upIconColor:O.green,size:10,margin:{right:4,left:4}}}};return{cornerCell:{bolderText:{fontFamily:kc,fontSize:12,fontWeight:z,fill:E[0],opacity:1,textAlign:k?"center":"left",textBaseline:"middle"},text:{fontFamily:kc,fontSize:12,fontWeight:z,fill:E[0],opacity:1,textAlign:"right",textBaseline:"middle"},cell:{backgroundColor:E[3],backgroundColorOpacity:1,horizontalBorderColor:E[10],horizontalBorderColorOpacity:1,verticalBorderColor:E[10],verticalBorderColorOpacity:1,horizontalBorderWidth:1,verticalBorderWidth:1,borderDash:[],padding:{top:0,right:8,bottom:0,left:8}},icon:{fill:E[0],size:10,margin:{right:4,left:4}}},rowCell:{seriesText:{fontFamily:kc,fontSize:12,fontWeight:"normal",fill:E[14],linkTextFill:E[6],opacity:1,textBaseline:"middle",textAlign:"center"},measureText:{fontFamily:kc,fontSize:12,fontWeight:"normal",fill:E[14],linkTextFill:E[6],opacity:1,textAlign:k?"center":"left",textBaseline:"top"},bolderText:{fontFamily:kc,fontSize:12,fontWeight:z,fill:E[14],linkTextFill:E[6],opacity:1,textAlign:k?"center":"left",textBaseline:"top"},text:{fontFamily:kc,fontSize:12,fontWeight:"normal",fill:E[14],linkTextFill:E[6],opacity:1,textBaseline:"top",textAlign:k?"center":"left"},cell:{backgroundColor:E[1],backgroundColorOpacity:1,horizontalBorderColor:E[9],horizontalBorderColorOpacity:1,verticalBorderColor:E[9],verticalBorderColorOpacity:1,horizontalBorderWidth:1,verticalBorderWidth:1,borderDash:[],padding:{top:0,right:8,bottom:0,left:8},interactionState:{hover:{backgroundColor:E[2],backgroundOpacity:.6},selected:{backgroundColor:E[2],backgroundOpacity:.6},unselected:{backgroundOpacity:.3,textOpacity:.3,opacity:.3},prepareSelect:{borderColor:E[14],borderOpacity:1,borderWidth:1},searchResult:{backgroundColor:(i=R==null?void 0:R.results)!==null&&i!==void 0?i:E[2],backgroundOpacity:1},highlight:{backgroundColor:(u=R==null?void 0:R.highlight)!==null&&u!==void 0?u:E[6],backgroundOpacity:1}}},icon:{fill:E[14],size:10,margin:{right:4,left:4}},seriesNumberWidth:80},colCell:{measureText:{fontFamily:kc,fontSize:12,fontWeight:"normal",fill:E[0],opacity:1,textAlign:"right",textBaseline:"middle"},bolderText:{fontFamily:kc,fontSize:12,fontWeight:z,fill:E[0],opacity:1,textAlign:"center",textBaseline:"middle"},text:{fontFamily:kc,fontSize:12,fontWeight:"normal",fill:E[0],opacity:1,textAlign:"center",textBaseline:"middle"},cell:{backgroundColor:E[3],backgroundColorOpacity:1,horizontalBorderColor:E[10],horizontalBorderColorOpacity:1,verticalBorderColor:E[10],verticalBorderColorOpacity:1,horizontalBorderWidth:1,verticalBorderWidth:1,borderDash:[],padding:{top:0,right:8,bottom:0,left:8},interactionState:{hover:{backgroundColor:E[4],backgroundOpacity:.6},selected:{backgroundColor:E[4],backgroundOpacity:.6},unselected:{backgroundOpacity:.3,textOpacity:.3,opacity:.3},prepareSelect:{borderColor:E[14],borderOpacity:1,borderWidth:1},searchResult:{backgroundColor:(g=R==null?void 0:R.results)!==null&&g!==void 0?g:E[2],backgroundOpacity:1},highlight:{backgroundColor:(C=R==null?void 0:R.highlight)!==null&&C!==void 0?C:E[6],backgroundOpacity:1}}},icon:{fill:E[0],size:10,margin:{top:6,right:4,bottom:6,left:4}}},dataCell:j(),mergedCell:j(),resizeArea:{size:3,background:E[7],backgroundOpacity:0,guideLineColor:E[7],guideLineDisableColor:"rgba(0,0,0,0.25)",guideLineDash:[3,3],interactionState:{hover:{backgroundColor:E[7],backgroundOpacity:1}}},scrollBar:{trackColor:"rgba(0,0,0,0.01)",thumbHoverColor:"rgba(0,0,0,0.25)",thumbColor:"rgba(0,0,0,0.15)",thumbHorizontalMinSize:32,thumbVerticalMinSize:32,size:cc()?3:6,hoverSize:cc()?4:8,lineCap:"round"},splitLine:{horizontalBorderColor:E[12],horizontalBorderColorOpacity:.2,horizontalBorderWidth:2,verticalBorderColor:E[11],verticalBorderColorOpacity:.25,verticalBorderWidth:2,showShadow:!0,shadowWidth:8,shadowColors:{left:"rgba(0,0,0,0.1)",right:"rgba(0,0,0,0)"},borderDash:[]},prepareSelectMask:{backgroundColor:E[5],backgroundOpacity:.3},background:{color:E[8],opacity:1}}},Zi=function(){function l(s){this.x=0,this.y=0,this.width=0,this.height=0,this.colIndex=-1,this.level=0,this.isLeaf=!1,this.children=[],this.padding=0;var i=s.id,u=s.key,g=s.value,C=s.label,x=s.parent,E=s.level,O=s.rowIndex,R=s.isTotals,k=s.isGrandTotals,z=s.isSubTotals,j=s.isCollapsed,q=s.isTotalRoot,ee=s.hierarchy,le=s.isPivotMode,ye=s.seriesNumberWidth,Me=s.field,We=s.spreadsheet,Ue=s.query,Ze=s.belongsCell,Ut=s.inCollapseNode,mr=s.isTotalMeasure,xr=s.isLeaf,Kr=s.extra;this.id=i,this.key=u,this.value=g,this.label=C||g,this.parent=x,this.level=E,this.rowIndex=O,this.isTotals=R,this.isCollapsed=j,this.hierarchy=ee,this.isPivotMode=le,this.seriesNumberWidth=ye,this.field=Me,this.spreadsheet=We,this.query=Ue,this.belongsCell=Ze,this.inCollapseNode=Ut,this.isTotalMeasure=mr,this.isLeaf=xr,this.isGrandTotals=k,this.isSubTotals=z,this.isTotalRoot=q,this.extra=Kr}return l.getFieldPath=function(s,i){if(s&&!s.isTotals||s&&i){for(var u=s.parent,g=[s.field];u&&u.id!==lh;)g.push(u.field),u=u.parent;return g.reverse()}return[]},l.getAllLeaveNodes=function(s){var i=[];if(s.isLeaf)return[s];for(var u=nn([],kr(s.children),!1),g=u.shift();g;)g.isLeaf?i.push(g):u.unshift.apply(u,nn([],kr(g.children),!1)),g=u.shift();return i},l.getAllChildrenNodes=function(s){var i=[];if(s.isLeaf)return[s];for(var u=nn([],kr(s.children||[]),!1),g=u.shift();g;)i.push(g),u.unshift.apply(u,nn([],kr(g.children),!1)),g=u.shift();return i},l.getAllBranch=function(s){for(var i=[],u=this.getAllLeaveNodes(s),g=u.shift(),C=[];g;){C.unshift(g);for(var x=g.parent;x&&!ff(x,s);){C.unshift(x);x=x.parent}i.push(C),g=u.shift(),C=[]}return i},l.blankNode=function(){return new l({id:"",key:"",value:""})},l.rootNode=function(){return new l({id:"root",key:"",value:""})},l.prototype.toJSON=function(){return OO(this,["config","hierarchy","parent","spreadsheet"])},l.prototype.getHeadLeafChild=function(){for(var s=this;!Nn(s.children);)s=te(s.children);return s},l.prototype.getTotalHeightForTreeHierarchy=function(){return this.height===0||Nn(this.children)?this.height:this.children.reduce(function(s,i){return s+i.getTotalHeightForTreeHierarchy()},this.height)},l}(),ls=function(){function l(){this.width=0,this.height=0,this.maxLevel=-1,this.sampleNodesForAllLevels=[],this.sampleNodeForLastLevel=null,this.allNodesWithoutRoot=[],this.indexNode=[]}return l.prototype.getLeaves=function(){return this.allNodesWithoutRoot.filter(function(s){return s.isLeaf})},l.prototype.getNodes=function(s){return s!==void 0?this.allNodesWithoutRoot.filter(function(i){return i.level===s}):this.allNodesWithoutRoot},l.prototype.getNodesLessThanLevel=function(s){return this.allNodesWithoutRoot.filter(function(i){return i.level<=s})},l.prototype.pushNode=function(s,i){i===void 0&&(i=-1),i===-1?this.allNodesWithoutRoot.push(s):this.allNodesWithoutRoot.splice(i,0,s)},l.prototype.pushIndexNode=function(s){this.indexNode.push(s)},l.prototype.getIndexNodes=function(){return this.indexNode},l}(),pu=function(){function l(s){var i=s.label,u=s.isSubTotals,g=s.isGrandTotals,C=s.isTotalRoot;this.label=i,this.isSubTotals=u,this.isGrandTotals=g,this.isTotalRoot=C}return l}(),c0=function(l){var s,i=l.isFirstField,u=l.currentField,g=l.fieldValues,C=l.spreadsheet,x=l.lastField,E=C.getTotalsConfig(i?u:x),O,R;i?E!=null&&E.showGrandTotals&&(O=E.reverseLayout?"unshift":"push",R=new pu({label:E.label,isSubTotals:!1,isGrandTotals:!0,isTotalRoot:!0})):E!=null&&E.showSubTotals&&(Je.size(g)>1||Je.get(E,"showSubTotals.always")!==!1)&&u!==ra&&(O=E.reverseSubLayout?"unshift":"push",R=new pu({label:E.subLabel,isSubTotals:!0,isGrandTotals:!1,isTotalRoot:!0})),(s=g[O])===null||s===void 0||s.call(g,R)};function bd(l,s){for(var i={},u=l;u&&u.key;)(!u.isTotalRoot||s)&&u.value!==Qv&&(i[u.key]=u.value),u=u.parent;return i}var wd=function(l,s,i,u){return s.layoutArrange?s.layoutArrange(s.spreadsheet,i,u,l):l},gu=function(l,s,i,u){var g,C,x=(C=(g=l.spreadsheet)===null||g===void 0?void 0:g.facet)===null||C===void 0?void 0:C.getHiddenColumnsInfo(i);if(x&&l.columns.find(function(le){return le===i.field}))return!1;var E=!0,O=function(le,ye,Me){ye===void 0&&(ye=-1),Me===void 0&&(Me=-1),ye===-1?(s.children.push(le),u.pushNode(le)):(s.children.splice(ye,0,le),u.pushNode(le,Me))};if(l.layoutHierarchy){var R=l.layoutHierarchy(l.spreadsheet,i);if(R){var k=Bp(R==null?void 0:R.delete)?R==null?void 0:R.delete:!1;E=!k;var z=R.push,j=R.unshift,q=s.children.length,ee=u.getNodes().length;Nn(j)||(Qi(j,function(le){O(le)}),q=s.children.length,ee=u.getNodes().length),Nn(z)||Qi(z,function(le){O(le)}),k||O(i,q,ee)}else O(i)}else O(i);return E},nA=function(l,s,i){l!=null&&l.layoutCoordinate&&(s!=null&&s.isLeaf||i!=null&&i.isLeaf)&&(l==null||l.layoutCoordinate(l.spreadsheet,s,i))},ZI=function(l,s){var i=l==null?void 0:l.layoutDataPosition;if(i){var u=s.getCellMeta,g=i(l.spreadsheet,u);return ur(ur({},s),{getCellMeta:g})}return s},zT=function(){function l(s){this.label=s}return l}(),iA="Transform Data",aA="Header Layout",oA="Data Cell Render",zp=function(){function l(){var s=this;this.debug=!1,this.debugCallback=function(i,u){if(s.debug){var g=performance.now();u();var C=performance.now();console.log(i,"".concat(C-g," ms"))}else u()},this.logger=function(i){for(var u=[],g=1;g + + + \u2193 + + +`,sA=` + + + \u2191 + + + +`,uA=` + + + down + Created with Sketch. + + + +`,Cy=` + + + up + Created with Sketch. + + + + `,m_=` + + + + +`,y_=` + + + + +`,cA=` + + + + +`,O5=` + + + + +`,A5=` + + + + + + + + + + q + +`,I5='',R5=` + + \u7F16\u7EC4 8\u5907\u4EFD 3 + + + + + + + + + + + + + + + + +`,D5=` + + + + + + + +`,L5=` + + + + + + + +`,P5=` + + + + + +`,B5=` + + + + + +`,k5=` + + + + + +`,F5=` + + + + + +`,N5='',H5=` +`,z5='',kL=Object.freeze({__proto__:null,ArrowDown:lA,ArrowUp:sA,CellDown:uA,CellUp:Cy,GlobalAsc:m_,GlobalDesc:y_,GroupAsc:cA,GroupDesc:O5,GroupNone:A5,Minus:D5,Plus:L5,SortDown:B5,SortUp:F5,SortDownSelected:P5,SortUpSelected:k5,InfoCircle:I5,ExpandColIcon:R5,Trend:N5,DrillDownIcon:H5,EyeOutlined:z5}),FL={},wR=function(l,s){FL[ux(l)]=s},NL=function(l){return FL[ux(l)]};za(kL).forEach(function(l){wR(l,kL[l])});var HL="/g,">")),O=O.replace(HL,"".concat(HL,' fill="').concat(g,'"')),R.src="".concat(zL,";utf-8,").concat(encodeURIComponent(O)))}})},s.prototype.render=function(){var i=this.cfg,u=i.name,g=i.fill,C=uv(this.cfg),x=ur(ur({},OO(C,"fill")),{type:s.type}),E=new rb({attrs:x});this.iconImageShape=E,this.setImageAttrs({name:u,fill:g})},s.prototype.setImageAttrs=function(i){var u=this,g=i.name,C=i.fill,x=this.iconImageShape;g=g||x.attrs.name,C=C||x.attrs.fill;var E="".concat(g,"-").concat(C),O=WL[E];O?(x.attr("img",O),this.addShape("image",x)):this.getImage(g,E,C).then(function(R){u.destroyed||(x.attr("img",R),u.addShape("image",x))}).catch(function(R){console.error("GuiIcon ".concat(g," load failed"),R)})},s.type="__GUI_ICON__",s}(nu),Ru;(function(l){l.TOP="TOP",l.BOTTOM="BOTTOM",l.LEFT="LEFT",l.RIGHT="RIGHT"})(Ru||(Ru={}));var WT;(function(l){l.SUM="SUM",l.MIN="MIN",l.MAX="MAX",l.AVG="AVG"})(WT||(WT={}));var f0;(function(l){l.Row="row",l.Col="col",l.Series="series"})(f0||(f0={}));var W5=function(){function l(){this.store=new Map}return l.prototype.set=function(s,i){return this.store.set(s,i)},l.prototype.get=function(s,i){var u,g=this.store.get(s);return(u=g)!==null&&u!==void 0?u:i},l.prototype.clear=function(){this.store.clear()},l.prototype.size=function(){return this.store.size},l}(),KI=function(l){var s,i,u=l.facetCfg,g=l.level,C=l.fields,x=u.colCfg,E=u.spreadsheet,O=u.dataSet,R=O.moreThanOneValue(),k=(i=(s=E.dataCfg.fields)===null||s===void 0?void 0:s.valueInCols)!==null&&i!==void 0?i:!0,z=(x==null?void 0:x.hideMeasureColumn)&&k&&!R&&Ih(C,ra),j=z?2:1;return g===C.length-j},GL=function(l){var s=l.addTotalMeasureInTotal,i=l.parentNode,u=l.currentField,g=l.fields,C=l.facetCfg,x=l.hierarchy,E=g.indexOf(u),O=C.dataSet,R=C.values,k=C.spreadsheet,z=[],j={},q=k.getTotalsConfig(u),ee=i.isGrandTotals?q.totalsGroupDimensions:q.subTotalsGroupDimensions;if(ee!=null&&ee.includes(u)){j=bd(i);var le=O.getTotalDimensionValues(u,j);z.push.apply(z,nn([],kr((le||[]).map(function(Me){return new pu({label:Me,isSubTotals:i.isSubTotals,isGrandTotals:i.isGrandTotals,isTotalRoot:!1})})),!1)),Nn(z)&&u&&z.push(Qv)}else if(s&&u===ra)j=bd(i),z.push.apply(z,nn([],kr(R.map(function(Me){return new zT(Me)})),!1));else if(KI({facetCfg:C,level:E,fields:g})){i.isLeaf=!0,x.pushIndexNode(i),i.rowIndex=x.getIndexNodes().length-1;return}else{GL(ur(ur({},l),{currentField:g[E+1]}));return}var ye=z.filter(function(Me){return!r0(Me)});xR(ur(ur({},l),{fieldValues:ye,level:E,parentNode:i,query:j}))},G5=function(l){var s,i=l.parentNode,u=l.currentField,g=l.fields,C=l.facetCfg,x=g.indexOf(u),E=C.dataSet,O=C.spreadsheet,R=[],k={};k=bd(i,!0);var z=E.getDimensionValues(u,k),j=wd(z,C,i,u);R.push.apply(R,nn([],kr(j||[]),!1)),Nn(R)&&u&&(u===ra?R.push.apply(R,nn([],kr((s=E.fields)===null||s===void 0?void 0:s.values),!1)):R.push(Qv)),c0({currentField:u,lastField:g[x-1],isFirstField:x===0,fieldValues:R,spreadsheet:O});var q=R.filter(function(ee){return!r0(ee)});xR(ur(ur({},l),{fieldValues:q,level:x,parentNode:i,query:k}))},$L=function(l){l.parentNode.isTotals?GL(l):G5(l)},GT=function(l,s){return"".concat(l).concat(Ml).concat(s)},xR=function(l){var s,i,u,g,C,x,E,O,R,k,z=l.currentField,j=l.fields,q=l.fieldValues,ee=l.facetCfg,le=l.hierarchy,ye=l.parentNode,Me=l.level,We=l.query,Ue=l.addMeasureInTotalQuery,Ze=l.addTotalMeasureInTotal,Ut=ee.spreadsheet,mr=ee.collapsedCols;try{for(var xr=Ms(q.entries()),Kr=xr.next();!Kr.done;Kr=xr.next()){var mn=kr(Kr.value,2),Vn=mn[0],In=mn[1],Un=In instanceof pu,di=In instanceof zT,Bi=void 0,Rn=void 0,Kn=!1,xo=!1,to=!1,Bo=!1,aa=z;if(Un){var ko=In;xo=ko.isGrandTotals,to=ko.isSubTotals,Bo=ko.isTotalRoot,Bi=vu(In.label),Bo?Rn=We:Rn=ur(ur({},We),(u={},u[z]=Bi,u)),Ue&&(Rn[ra]=(E=Ut==null?void 0:Ut.dataSet)===null||E===void 0?void 0:E.fields.values[0]),Kn=KI({facetCfg:ee,level:Me,fields:j})}else di?(Bi=vu(In.label),Rn=ur(ur({},We),(g={},g[ra]=Bi,g)),aa=ra,xo=ye.isGrandTotals,to=ye.isSubTotals,Kn=KI({facetCfg:ee,level:Me,fields:j})):Ut.isTableMode()?(Bi=In,aa=j[Vn],Rn=ur(ur({},We),(C={},C[aa]=Bi,C)),Kn=!0):(Bi=In,Rn=Bi===Qv?ur({},We):ur(ur({},We),(x={},x[z]=Bi,x)),Kn=KI({facetCfg:ee,level:Me,fields:j}));var Xa=GT(ye.id,Bi);if(!Xa)return;var mu=Bp(mr==null?void 0:mr[Xa])?mr==null?void 0:mr[Xa]:!1,ss=new Zi({id:Xa,key:aa,value:Bi,level:Me,field:aa,parent:ye,isTotals:Un||di,isGrandTotals:xo,isSubTotals:to,isTotalMeasure:di,isCollapsed:mu,isTotalRoot:Bo,hierarchy:le,query:Rn,spreadsheet:Ut,isLeaf:Kn||mu}),To=gu(ee,ye,ss,le),Cl=(O=Ut==null?void 0:Ut.facet)===null||O===void 0?void 0:O.getHiddenColumnsInfo(ss);Cl&&ye&&(ye.hiddenChildNodeInfo=Cl),Me>le.maxLevel&&!xo&&!ye.isGrandTotals&&!ye.isSubTotals&&!ss.isSubTotals&&(le.sampleNodesForAllLevels.push(ss),le.maxLevel=Me,le.sampleNodeForLastLevel=Cl?((R=Cl==null?void 0:Cl.displaySiblingNode)===null||R===void 0?void 0:R.next)||((k=Cl==null?void 0:Cl.displaySiblingNode)===null||k===void 0?void 0:k.prev):ss);var Bh=Kn||mu||!To;Bh?(ss.isLeaf=!0,le.pushIndexNode(ss),ss.rowIndex=le.getIndexNodes().length-1):$L({addTotalMeasureInTotal:Ze,addMeasureInTotalQuery:Ue,parentNode:ss,currentField:j[Me+1],fields:j,facetCfg:ee,hierarchy:le})}}catch(_v){s={error:_v}}finally{try{Kr&&!Kr.done&&(i=xr.return)&&i.call(xr)}finally{if(s)throw s.error}}},UL=function(l,s,i,u){var g=s.facetCfg,C=s.hierarchy,x=s.parentNode,E=g.dataSet;l.forEach(function(O,R){typeof O=="string"&&(O={key:O});var k=O.key,z=k===ah?vu("\u5E8F\u53F7"):E.getFieldName(k),j=u||x;if(xR({currentField:k,fields:[k],fieldValues:[z],facetCfg:g,hierarchy:C,parentNode:j,level:i,query:{},addMeasureInTotalQuery:!1,addTotalMeasureInTotal:!1}),O.children&&O.children.length){var q=j.children[R];q.isLeaf=!1,UL(O.children,s,i+1,q)}})},PM=function(l,s){return s>0&&l0&&l>=i-s},qI=function(l,s,i){return i>0&&l0&&l>=s+1-i},SR=function(l,s,i,u,g,C){var x=c(i,function(z,j){var q=l-(hu(C)?0:C)+g.x;return q>=z&&q=z&&qu?0:s;return[C*i.horizontal,x*i.vertical]},C_=function(l,s,i){var u,g,C=l==null?void 0:l.getMatrix(),x=(u=C==null?void 0:C[6])!==null&&u!==void 0?u:0,E=(g=C==null?void 0:C[7])!==null&&g!==void 0?g:0;l==null||l.translate(s-x,i-E)},_R=function(l,s){var i,u=l==null?void 0:l.getMatrix(),g=(i=u==null?void 0:u[6])!==null&&i!==void 0?i:0;l==null||l.translate(s-g,0)},U5=function(l,s){var i,u=l==null?void 0:l.getMatrix(),g=(i=u==null?void 0:u[7])!==null&&i!==void 0?i:0;l==null||l.translate(0,s-g)},Y5=function(l,s,i,u){var g=s.frozenColCount,C=s.frozenRowCount,x=s.frozenTrailingColCount,E=s.frozenTrailingRowCount,O=l.colIndex,R=l.rowIndex;return qI(R,u.start,C)?tl.ROW:hA(R,u.end,E)?tl.TRAILING_ROW:PM(O,g)?tl.COL:BM(O,x,i)?tl.TRAILING_COL:tl.SCROLL},j5=function(l,s,i){for(var u,g=l.frozenColCount,C=l.frozenRowCount,x=l.frozenTrailingColCount,E=l.frozenTrailingRowCount,O=(u={},u[tl.TOP]=[],u[tl.BOTTOM]=[],u),R=0;R0)for(var k=0;k0)for(var k=0;k=O&&E=1e3?u.toLocaleString("en"):"".concat(u);return E===0?k:"".concat(k," ").concat(C[E-1])},$T=function(l){return Number.parseFloat((ca(l)||0).toPrecision(sC))},b_=function(l,s,i){if(i===void 0&&(i=0),!Object.values(l).find(function(x){return x>0}))return l;var u=ur({},l);u.frozenColCount>=s&&(u.frozenColCount=s);var g=s-u.frozenColCount;u.frozenTrailingColCount>g&&(u.frozenTrailingColCount=g),u.frozenRowCount>=i&&(u.frozenRowCount=i);var C=i-u.frozenRowCount;return u.frozenTrailingRowCount>C&&(u.frozenTrailingRowCount=C),u};function xd(l,s,i){var u;return(u=l==null?void 0:l.addShape)===null||u===void 0?void 0:u.call(l,"rect",ur({zIndex:1,attrs:s},i||{}))}function r8(l,s){var i;return(i=l==null?void 0:l.addShape)===null||i===void 0?void 0:i.call(l,"polygon",{attrs:s})}function KL(l,s){var i;return(i=l==null?void 0:l.addShape)===null||i===void 0?void 0:i.call(l,"polyline",{attrs:s})}function qL(l,s){var i;return(i=l==null?void 0:l.addShape)===null||i===void 0?void 0:i.call(l,"circle",{attrs:s})}function w_(l,s,i,u,g,C,x,E){var O;return!Nn(s)&&l&&Qi(s,function(R){l.contain(R)&&l.removeChild(R,!0)}),(O=l==null?void 0:l.addShape)===null||O===void 0?void 0:O.call(l,"text",{attrs:ur(ur({x:i,y:u,text:g,originalText:E},C),x)})}function df(l,s,i){var u;return(u=l==null?void 0:l.addShape)===null||u===void 0?void 0:u.call(l,"line",{zIndex:100,attrs:ur(ur({},s),i)})}function wv(l,s,i){if(!Nn(l)){var u=ki(l)?l:[l];u.forEach(function(g){e_(g,"attrs.".concat(s),i)})}}function vF(l,s){wv(l,"fillOpacity",s)}function pF(l,s){wv(l,"strokeOpacity",s)}function QI(l,s){var i=new fA(s);return l==null||l.add(i),i}function QL(l,s,i,u,g){var C=new fA(ur(ur({name:u?"Plus":"Minus"},s),{fill:i}));return js(g)&&C.on("click",g),l==null||l.add(C),C}var OR="s2-offscreen-canvas",n8=function(){var l=document.getElementById(OR);return l||(l=document.createElement("canvas"),l.id=OR,l.style.display="none",document.body.appendChild(l),l)},i8=function(){var l;(l=document.getElementById(OR))===null||l===void 0||l.remove()},a8=function(l){var s;return(s=l==null?void 0:l.position)!==null&&s!==void 0?s:"right"},o8=function(l,s){l===void 0&&(l=0),s===void 0&&(s=0),l=$T(l),s=$T(s);var i=l>=0,u=s>=0&&l<=0,g=i?l:s,C=u?0:g,x=s-l;return function(E){var O=i?0:1,R=u?Tp(Math.abs(0-l)/x,0,1):O,k=Tp((E-C)/x,-1,1);return{zeroScale:R,scale:k}}},JL=function(l,s){var i,u,g,C=l.data,x=l.encode,E=l.type,O=s.getMeta(),R=O.x,k=O.y,z=O.height,j=O.width,q=s.getStyle(Mn.DATA_CELL),ee=q.cell,le=q.miniChart,ye=[],Me=Ee(C,function(di){return ye.push(di==null?void 0:di[x.y]),{x:di[x.x],y:di[x.y]}}),We=n0(ye),Ue=_O(ye),Ze=We-Ue,Ut=R+ee.padding.left,mr=R+j-ee.padding.right,xr=k+ee.padding.top,Kr=k+z-ee.padding.bottom,mn=Kr-xr,Vn=E===ed.Bar?(mr-Ut-(ye.length-1)*((i=le==null?void 0:le.bar)===null||i===void 0?void 0:i.intervalPadding))/ye.length+((u=le==null?void 0:le.bar)===null||u===void 0?void 0:u.intervalPadding):(g=(mr-Ut)/(ye.length-1))!==null&&g!==void 0?g:0,In=[],Un=Ee(Me,function(di,Bi){var Rn,Kn=Ut+Bi*Vn,xo;if(Ze!==0?xo=Kr-((di==null?void 0:di.y)-Ue)/Ze*mn:xo=Ue>0?xr:Kr,E===ed.Bar){var to=void 0,Bo=void 0;Ue<0&&We>0&&Ze!==0?(to=Kr-(0-Ue)/Ze*mn,Bo=Math.abs(xo-to),(di==null?void 0:di.y)<0&&(xo=to)):(to=Ue<0?xr:Kr,Ze=n0([Math.abs(We),Math.abs(Ue)]),Bo=Ze===0?mn:Math.abs((di==null?void 0:di.y)-0)/Ze*mn,xo=to);var aa=Vn-((Rn=le==null?void 0:le.bar)===null||Rn===void 0?void 0:Rn.intervalPadding);In.push([aa,Bo])}return[Kn,xo]});return{points:Un,box:In}},l8=function(l,s){if(!(Nn(l==null?void 0:l.data)||Nn(s))){var i=s.getStyle(Mn.DATA_CELL),u=i.miniChart,g=u.line,C=g.point,x=g.linkLine,E=JL(l,s).points;KL(s,{points:E,stroke:x.fill,lineWidth:x.size,opacity:x.opacity});for(var O=0;O.1&&u<=.2?i.satisfactory:i.bad},c8=function(l,s){var i,u;s===void 0&&(s={min:0,max:0});var g=Number(l);if(Number.isNaN(g))return l;var C=(i=s==null?void 0:s.min)!==null&&i!==void 0?i:s,x=(u=s==null?void 0:s.max)!==null&&u!==void 0?u:s,E=new Intl.NumberFormat("en-US",{minimumFractionDigits:C,maximumFractionDigits:x,useGrouping:!1,style:"percent"});return E.format(g)},f8=function(l){var s,i,u,g,C,x;if(!Nn(l)){var E=l.getCellArea(),O=E.x,R=E.y,k=E.height,z=E.width,j=l.findFieldCondition((s=l.cellConditions)===null||s===void 0?void 0:s.interval);if(j&&j.mapping){var q=l.mappingValue(j);if(!q)return;var ee=q.isCompare?q:l.valueRangeByField,le=$T(ee.minValue),ye=$T(ee.maxValue),Me=hu(q==null?void 0:q.fieldValue)?$T(l.getMeta().fieldValue):$T(q==null?void 0:q.fieldValue);if(Meye)return;var We=(u=(i=l.getStyle().miniChart.interval)===null||i===void 0?void 0:i.height)!==null&&u!==void 0?u:l.getStyle().cell.miniBarChartHeight,Ue=(C=(g=l.getStyle().miniChart.interval)===null||g===void 0?void 0:g.fill)!==null&&C!==void 0?C:l.getStyle().cell.miniBarChartFillColor,Ze=o8(le,ye),Ut=Ze(Me),mr=Ut.zeroScale,xr=Ut.scale,Kr=(x=q.fill)!==null&&x!==void 0?x:Ue;return xd(l,{x:O+z*mr,y:R+k/2-We/2,width:z*xr,height:We,fill:Kr})}}},h8=function(l,s){var i,u=s.getStyle(Mn.DATA_CELL),g=s.getMeta(),C=g.x,x=g.y,E=g.height,O=g.width,R=g.spreadsheet;if(Nn(l)){w_(s,[],C+O-u.cell.padding.right,x+E/2,NM(s,R.options.placeholder),u.text);return}var k=u.miniChart.bullet,z=k.progressBar,j=k.comparativeMeasure,q=k.rangeColors,ee=k.backgroundColor,le=l.measure,ye=l.target,Me=Math.max(Number(le),0),We=Math.max(Number(ye),0),Ue=c8(le,2),Ze=(z==null?void 0:z.widthPercent)>1?(z==null?void 0:z.widthPercent)/100:z==null?void 0:z.widthPercent,Ut=u.cell.padding,mr=O-Ut.left-Ut.right,xr=Ze*mr,Kr=mr-xr,mn=C+O-Ut.right-xr,Vn=x+E/2-z.height/2;xd(s,{x:mn,y:Vn,width:xr,height:z.height,fill:ee,textBaseline:u.text.textBaseline});var In=Ii(s.getMeta(),"spreadsheet.options.bullet.getRangeColor"),Un=Math.max(Math.min(xr*Me,xr),0);xd(s,{x:mn,y:Vn+(z.height-z.innerHeight)/2,width:Un,height:z.innerHeight,fill:(i=In==null?void 0:In(Me,We))!==null&&i!==void 0?i:u8(Me,We,q)});var di=mn+xr*We;df(s,{x1:di,y1:x+(E-j.height)/2,x2:di,y2:x+(E-j.height)/2+j.height},{stroke:(j==null?void 0:j.fill)||(j==null?void 0:j.color),lineWidth:j.width,opacity:j==null?void 0:j.opacity}),w_(s,[],mn-Ut.right,x+E/2,FM({measureTextWidth:R.measureTextWidth,text:Ue,maxWidth:Kr-Ut.right,fontParam:u.text}),u.text)},d8=function(l,s){switch(s==null?void 0:s.type){case ed.Line:l8(s,l);break;case ed.Bar:s8(s,l);break;default:h8(s,l);break}},eP=function(l,s){var i=l.x,u=l.y,g=l.width,C=l.height,x=g-(s==null?void 0:s.left)-(s==null?void 0:s.right),E=C-(s==null?void 0:s.top)-(s==null?void 0:s.bottom);return{x:i+(s==null?void 0:s.left),y:u+(s==null?void 0:s.top),width:x,height:E}},tP=function(l){return gM({size:0,position:"right",margin:{left:0,right:0}},l)},rP=function(l,s){return s=tP(s),l-s.size-s.margin.right-s.margin.left},JI=function(l,s,i){var u=l.y,g=l.height;i===void 0&&(i=0);var C=0;switch(s){case"top":C=u;break;case"middle":C=u+g/2-i/2;break;default:C=u+g-i;break}return C},UT=function(l,s,i,u,g){i===void 0&&(i=0),g===void 0&&(g=1);var C=l.x,x=l.width,E=s.textAlign,O=s.textBaseline,R=tP(u),k=R.size,z=R.margin,j=R.position,q=g*(k+z.left)+(g?z.right:0),ee,le;switch(E){case"left":ee=C+(j==="left"?q:0),le=C+(j==="left"?z.left:i+z.left);break;case"center":{var ye=q-(j==="left"?z.left:z.right)+i,Me=C+x/2-ye/2;ee=Me+i/2+(j==="left"?q-z.left:0),le=Me+(j==="left"?0:i+z.left);break}default:{ee=C+x-(j==="right"?q:0),le=C+x-(j==="right"?q-z.left:i+q-z.left);break}}var We=JI(l,O,0),Ue=JI(l,O,k);return{text:{x:ee,y:We},icon:{x:le,y:Ue}}},nP=function(l,s){return UT(l,s).text},v8=function(l,s,i){var u=s.start+s.width,g=l.start+l.width,C,x;if(s.start<=l.start&&u>=g)C=l.start+l.width/2,x=l.width;else if(s.start<=l.start){var E=s.width-(l.start-s.start);C=E=g){var E=s.width-(u-g);C=E0,E=x?l.width/2:g/2;return u==="left"?C-E:C+E-i},iP=If(function(l,s){if(l===void 0&&(l=""),!s)return 0;var i=n8().getContext("2d"),u=s,g=u.fontSize,C=u.fontFamily,x=u.fontWeight,E=u.fontStyle,O=u.fontVariant;return i.font=[E,O,x,"".concat(g,"px"),C].join(" ").trim(),i.measureText("".concat(l)).width},function(l,s){return nn([l],kr(hy(s)),!1).join("")}),aP=function(l,s,i,u){var g=16,C=l(rp,u),x;cf(s)?x=s:x=co(s);var E=i,O=[],R,k;if(l(s,u)<=i)return s;for(var z=!0;z;){if(R=x.substr(0,g),k=l(R,u),k+C>E&&k>E){z=!1;break}if(O.push(R),E-=k,x=x.substr(g),!x)return O.join("")}for(var j=!0;j;){if(R=x.substr(0,1),k=l(R,u),k+C>E){j=!1;break}if(O.push(R),E-=k,x=x.substr(1),!x)return O.join("")}return"".concat(O.join(""),"...")},gF=function(l,s){var i,u;s===void 0&&(s={});var g=iP("a",s),C=iP("\u8682",s),x=0;if(!l)return x;try{for(var E=Ms(l),O=E.next();!O.done;O=E.next()){var R=O.value,k=R.charCodeAt(0);x+=k>=0&&k<=255?g:C}}catch(z){i={error:z}}finally{try{O&&!O.done&&(u=E.return)&&u.call(E)}finally{if(i)throw i.error}}return x},FM=function(l){var s=l.measureTextWidth,i=l.text,u=l.maxWidth,g=l.fontParam,C=l.priorityParam,x=l.placeholder,E={},O=x!=null?x:sh,R=hu(i)||i===""||i===Qv,k=R?O:"".concat(i),z=C;if(g&&ki(g)?z=g:E=g||{},!z||!z.length)return aP(s,k,u,E);var j=[],q=[k];z.forEach(function(Me){q.forEach(function(We,Ue){var Ze=-1,Ut=We.match(new RegExp(Me));if(Ut){var mr=Ut[0];Ze=Ut.index,j.push(mr);var xr=Ze+mr.length,Kr=We.slice(0,Ze),mn=We.slice(xr),Vn=[Kr,mn].filter(function(In){return!!In});q.splice.apply(q,nn([Ue,1],kr(Vn),!1))}})}),q=j.concat(q);var ee=k,le=s(rp,E),ye=u;return q.forEach(function(Me){if(ye<=0){var We=ee.indexOf(Me),Ue=ee.slice(We-3,We);if(Ue&&Ue!==rp){var Ze=s(Me,E);ee=ee.replace(Me,Ze>le?rp:Me)}else ee=ee.replace(Me,"");ye-=le}else{var Ze=s(Me,E);if(yele){var Ut=aP(s,Me,ye,E);ee=ee.replace(Me,Ut),ye=0}else ye-=Ze}}),ee},m8=function(l){return Rh(l)?l>=0:!!l&&!Ye(l).startsWith("-")},y8=function(l){return hu(l)||l===""||Number(String(l).replace(/[^0-9.]+/g,""))===0},mF=function(l,s){return y8(l)||l===s},C8=function(l,s,i,u){u===void 0&&(u="left");var g=s.right,C=s.left,x=i||0;return u==="left"?l+g/2+x:u==="right"?l-g/2-x:l+C/2+x},b8=function(l){var s,i,u=l.getMeta().isTotals,g=(i=(s=l).isMeasureField)===null||i===void 0?void 0:i.call(s),C=l.getStyle(l.cellType||Mn.DATA_CELL),x;return g?x=C.measureText:u?x=C.bolderText:x=C.text,{cellStyle:C,textStyle:x}},w8=function(l){var s=l.rowIndex,i=l.colIndex,u=l.meta,g=l.data,C=l.textStyle,x=l.textCondition,E=C.fill;return x!=null&&x.mapping&&(E=x==null?void 0:x.mapping(g,{rowIndex:s,colIndex:i,meta:u}).fill),ur(ur({},C),{fill:E})},NM=function(l,s){return js(s)?s(l):s},x8=function(l,s,i){for(var u=l.x,g=l.y,C=l.width,x=l.height,E=x/vy(s),O=[],R,k,z,j=0,q=Ee(i,function(Me){return Me>1?Me/100:Me}),ee=0;ee0,rowFields:s,colFields:i});j.push(Ue),e_(x,Ue,ye)}),{paths:j,indexesData:x,rowPivotMeta:k,colPivotMeta:z,sortedDimensionValues:R}}function sP(l,s){if(!(!l||!s)){var i=s.split(Ml),u=no(i),g=l;Qi(i,function(C,x){var E=g.get(C);return E?(C===u?(E.children=new Map,E.childField=void 0):g=E.children,!0):x===0&&C===lh})}}function _8(l,s,i){var u=function(x){var E=m(l,function(O){var R=O.field;return R===x});return Ii(E,"name",x)},g=s||i,C={field:ra,name:g,formatter:function(x){return u(x)}};return C}function mA(l,s){return{isRowTotal:l.isGrandTotals,isRowSubTotal:l.isSubTotals,isColTotal:s.isGrandTotals,isColSubTotal:s.isSubTotals}}var e6;function uP(l,s){return!l||!s?!1:String(l).toLowerCase()===String(s).toLowerCase()}var E8=`\r +`,M8=" ",t6=function(l,s){var i=l.getColumnNodes().find(function(u){return u.id===s});return l.isPivotMode()?i==null?void 0:i.value:i==null?void 0:i.field},T8=function(l,s){var i=s.getColumnNodes().find(function(u){return u.colIndex===l});return t6(s,i.id)},O8=function(l,s){var i=l.rowIndex,u=l.colIndex;return[s.getRowNodes().find(function(g){return g.rowIndex===i}),s.getColumnNodes().find(function(g){return g.colIndex===u})]},yA=function(l,s){var i=s.getColumnNodes().find(function(g){return g.colIndex===l}),u=t6(s,i.id);return s.options.interaction.copyWithFormat?s.dataSet.getFieldFormatter(u):function(g){return g}},A8=function(l){var s,i,u,g,C=((g=(u=(i=l.options)===null||i===void 0?void 0:i.style)===null||u===void 0?void 0:u.colCfg)===null||g===void 0?void 0:g.hideMeasureColumn)&&l.isValueInCols();return C?(s={},s[ra]=l.dataCfg.fields.values[0],s):{}},I8=function(l,s,i){var u,g;if(i.isPivotMode()){var C=kr(O8(l,i),2),x=C[0],E=C[1],O=A8(i),R=i.dataSet.getCellData({query:ur(ur(ur({},x.query),E.query),O),rowNode:x,isTotals:x.isTotals||x.isTotalMeasure||E.isTotals||E.isTotalMeasure,totalStatus:mA(x,E)});return(u=R==null?void 0:R[Es])!==null&&u!==void 0?u:""}var k=T8(l.colIndex,i);return(g=s[l.rowIndex])===null||g===void 0?void 0:g[k]},cP=function(l,s,i){var u=yA(l.colIndex,i);return u(I8(l,s,i))},r6=function(l){return/\n/.test(l)?'"'+l.replace(/\r\n?/g,` +`)+'"':l},CA=function(l,s){var i=l.split(Ml);return s?i.slice(i.length-s):(i.shift(),i)},LR=function(l,s){return Ee(l,function(i){return s.dataSet.getFieldName(i)})},gs;(function(l){l.PLAIN="text/plain",l.HTML="text/html"})(gs||(gs={}));var R8=function(l){return{type:gs.PLAIN,content:Ee(l,function(s){return s.join(M8)}).join(E8)}},D8=function(l){function s(u,g){return u.map(function(C){return"<".concat(g,">").concat(ax(C),"")}).join("")}function i(u,g){return u.map(function(C){return"<".concat(g,">").concat(s(C,"td"),"")}).join("")}return{type:gs.HTML,content:''.concat(i(l,"tr"),"
    ")}},fP=(e6={},e6[gs.PLAIN]=R8,e6[gs.HTML]=D8,e6);function yF(l,s){fP[l]=s}function xv(l){return fP[l]}function n6(l,s){return s===void 0&&(s=gs.PLAIN),Array.isArray(s)?[].concat(l).filter(function(i){return s.includes(i.type)}).map(function(i){return i.content}):[].concat(l).filter(function(i){return(i==null?void 0:i.type)===s}).map(function(i){return i.content})[0]||""}var hP=function(l,s,i){var u,g,C,x,E,O,R=(g=(u=l[0])===null||u===void 0?void 0:u.length)!==null&&g!==void 0?g:0,k=(C=s==null?void 0:s.length)!==null&&C!==void 0?C:0,z=(E=(x=i[0])===null||x===void 0?void 0:x.length)!==null&&E!==void 0?E:0,j=(O=i.length)!==null&&O!==void 0?O:0,q=R+z,ee=k+j,le=Array.from(Array(ee),function(){return new Array(q)});return le=Ee(le,function(ye,Me){return Ee(ye,function(We,Ue){if(Ue>=0&&Ue=0&&Me=R&&Ue<=q&&Me>=0&&Me=0&&Ue=k&&Me=R&&Ue<=q&&Me>=k&&Me=0;){for(var C=u.level-i.level;C>0;)g="".concat(i.label).concat(Ml).concat(g),C--;u=i,i=i.parent}return g}function j8(l,s,i){return Ee(l,function(u){var g=u.getMeta(),C=g.id,x=g.isTotals,E=g.spreadsheet,O=x?Y8(g,s):C,R=CA(O,i.size);return LR(R,E)})}function V8(l){var s,i=$8(l),u=(s=n0(Array.from(i)))!==null&&s!==void 0?s:0,g=U8(l,u),C=l[0].cellType===Mn.COL_CELL,x=j8(g,u,i);return C&&(x=Cd.apply(void 0,nn([],kr(x),!1))),[xv(gs.PLAIN)(x),xv(gs.HTML)(x)]}var X8=function(l,s,i){return Ee(s,function(u){var g;return(g=l[u])!==null&&g!==void 0?g:i})},Z8=function(l,s){var i=l.options.placeholder,u=l.dataCfg.fields,g=u.rows,C=u.columns,x=u.values,E=NM(l,i),O=l.getColumnLeafNodes(),R=[];if(l.isTableMode()){var k=h(O,function(ee){return ee.field!==ah});R=Ee(s,function(ee){return Ee(k,function(le){var ye;return(ye=ee==null?void 0:ee[le.field])!==null&&ye!==void 0?ye:E})})}else if(l.isPivotMode()){var z=nn(nn(nn([],kr(g),!1),kr(C),!1),kr(x),!1),j=MR(s),q=j.filter(function(ee){return nn(nn([],kr(g),!1),kr(C),!1).every(function(le){return!hu(ee[le])})});R=Q2(q,function(ee,le){return nn(nn([],kr(ee),!1),[X8(le,z,E)],!1)},[])}return[xv(gs.PLAIN)(R),xv(gs.HTML)(R)]};function K8(l,s){var i,u,g=s.filter(function(k){var z=k.type;return z===Mn.COL_CELL}),C=s.filter(function(k){var z=k.type;return z===Mn.ROW_CELL}),x=l.dataSet.getDisplayDataSet();if(l.interaction.getCurrentStateName()===hi.ALL_SELECTED)u=i6(x,l,[]);else if(g.length)u=i6(x,l,g);else if(C.length)u=pP(x,l,C);else{if(!s.length)return;var E=P8(s),O=l.interaction.getSelectedCellHighlight().currentRow;if(O){var R=AO(s,"rowIndex","asc").map(function(k){return l.dataSet.getRowData(k)});u=Z8(l,R)}else!((i=l.options.interaction)===null||i===void 0)&&i.copyWithHeader?u=G8(E,x,l):u=L8(x,E,l)}return u}var gP=function(l){var s,i=l.interaction,u=i.getState().cells||[],g,C=(s=i.getInteractedCells())!==null&&s!==void 0?s:[],x=Nn(C)?!1:H2(C,function(E){return E.cellType===Mn.ROW_CELL||E.cellType===Mn.COL_CELL});return x?g=V8(C):g=K8(l,u),g&&yP(g),n6(g,gs.PLAIN)};function bA(l){if(!l)return l;if(typeof l=="string"){var s=l;return'"'.concat(s.replace(/"/g,'""'),'"')}return'"'.concat(l,'"')}var mP=function(l){return new Promise(function(s,i){var u;Array.isArray(l)?u=Ii(l.filter(function(x){return x.type===gs.PLAIN}),"[0].content",""):u=l.content||"";var g=document.createElement("textarea");g.value=u,document.body.appendChild(g),g.focus({preventScroll:!0}),g.select();var C=document.execCommand("copy");document.body.removeChild(g),C?s():i()})},q8=function(l){return navigator.clipboard.write([new ClipboardItem([].concat(l).reduce(function(s,i){var u,g=i.type,C=i.content,x=C.replace(/\x00/g,"");return ur(ur({},s),(u={},u[g]=new Blob([x],{type:g}),u))},{}))]).catch(function(){return mP(l)})},yP=function(l,s){s===void 0&&(s=!1);var i;return typeof l=="string"?i={content:l,type:gs.PLAIN}:i=l,!navigator.clipboard||!window.ClipboardItem||s?mP(i):q8(i)},Q8=function(l,s){try{var i=document.createElement("a");i.download="".concat(s,".csv");var u=new Blob(["\uFEFF".concat(l)],{type:"text/csv;charset=utf-8"});i.href=URL.createObjectURL(u),i.click(),URL.revokeObjectURL(i.href)}catch(g){console.error(g)}},J8=function(l){var s=l!=null&&l.label?[l==null?void 0:l.label]:[],i=l==null?void 0:l.values;return Nn(i)||Qi(i,function(u){s.push(u.join(" "))}),s.join("$")},e4=function(l,s){var i,u,g,C;return s?(C=l==null?void 0:l.values)===null||C===void 0?void 0:C[0]:(u=(i=l==null?void 0:l.originalValues)===null||i===void 0?void 0:i[0])!==null&&u!==void 0?u:(g=l==null?void 0:l.values)===null||g===void 0?void 0:g[0]},t4=function(l,s,i){var u,g,C,x=l.dataSet.getDisplayDataSet(),E=((C=l.dataCfg)===null||C===void 0?void 0:C.fields).columns,O=kM(E||[]),R=[],k=function(ye,Me){var We=[];i?We=O.map(function(Ue){var Ze=l.dataSet.getFieldFormatter(Ue);return bA(Ze(Me[Ue],Me))}):We=O.map(function(Ue){return bA(Me[Ue])}),l.options.showSeriesNumber&&(We=[bA(ye+1)].concat(We)),R.push(We.join(s))};try{for(var z=Ms(x.entries()),j=z.next();!j.done;j=z.next()){var q=kr(j.value,2),ee=q[0],le=q[1];k(ee,le)}}catch(ye){u={error:ye}}finally{try{j&&!j.done&&(g=z.return)&&g.call(z)}finally{if(u)throw u.error}}return R},r4=function(l,s,i){if(!l)return"";var u=l.fieldValue,g=l.valueField,C=l.data;if(ga(u))return J8(u);if(!i)return"".concat(u);var x=s.dataSet.getFieldFormatter(g);return x(u,C)},n4=function(l,s,i,u){var g=[];if(l){var C=l.fieldValue,x=l.valueField,E=l.data;if(ga(C))return g=e4(C,u),g;if(hu(C)&&i.length>1)return g.push.apply(g,nn([],kr(i),!1)),g;if(!u)g.push(C);else{var O=s.dataSet.getFieldFormatter(x);g.push(O(C,E))}}else g.push.apply(g,nn([],kr(i),!1));return g.join(" ")},CP=function(l){var s=IR(l);return ki(s)?s:l},i4=function(l,s,i){var u=CP(s.label),g=ki(u)?u.length:1,C=i.options.placeholder,x=js(C)?C(l):C;return Array(g).fill(x)},a4=function(l){var s=l.map(function(i){return i.map(function(u){return ki(u)?u:ki(i[0])?nn([u],kr(new Array(i[0].length-1)),!1):u})});return s},bP=function(l){var s,i,u,g,C=(u=(i=(s=l.spreadsheet)===null||s===void 0?void 0:s.dataSet)===null||i===void 0?void 0:i.getFieldFormatter)===null||u===void 0?void 0:u.call(i,l.field);return(g=C==null?void 0:C(l.label))!==null&&g!==void 0?g:l.label},o4=function(l){var s=[],i=function(u){if(u.id!==lh){var g=bP(u);if(s.unshift(g),u!=null&&u.parent)return i(u.parent)}};return i(l),s},l4=function(l){var s,i;return typeof l=="object"?{isFormatHeader:(s=l.isFormatHeader)!==null&&s!==void 0?s:!1,isFormatData:(i=l.isFormatData)!==null&&i!==void 0?i:!1}:{isFormatHeader:l!=null?l:!1,isFormatData:l!=null?l:!1}},s4=function(l,s,i){var u,g,C,x,E,O=l4(i),R=O.isFormatHeader,k=O.isFormatData,z=(E=l==null?void 0:l.facet)===null||E===void 0?void 0:E.layoutResult,j=z.rowsHierarchy,q=z.rowLeafNodes,ee=z.colLeafNodes,le=z.getCellMeta,ye=j.maxLevel,Me=l.dataCfg.fields.valueInCols,We=j.sampleNodesForAllLevels.map(function(Ot){return l.dataSet.getFieldName(Ot.key)}),Ue=q.reduce(function(Ot,br){var $t,Tn=(($t=br.level)!==null&&$t!==void 0?$t:0)+1;return Tn>Ot?Tn:Ot},0),Ze=[],Ut=0;if(!l.isPivotMode())Ze=t4(l,s,k);else{var mr=q.filter(function(Ot){return Ot.height!==0});try{for(var xr=Ms(mr),Kr=xr.next();!Kr.done;Kr=xr.next()){var mn=Kr.value,Vn=[];if(R)Vn=o4(mn);else{mn.label=Ye(mn==null?void 0:mn.label);var In=mn.id.replace(Ux,"");Vn=In.split(Ml)}var Un=ye+1,di=Un-Vn.length;di>0&&Vn.push.apply(Vn,nn([],kr(new Array(di)),!1));var Bi=l.dataSet.getFieldName(no(Vn));Vn[Vn.length-1]=Bi;try{for(var Rn=(C=void 0,Ms(ee)),Kn=Rn.next();!Kn.done;Kn=Rn.next()){var xo=Kn.value;if(Me){var to=le(mn.rowIndex,xo.colIndex);Vn.push(r4(to,l,k))}else{var to=le(mn.rowIndex,xo.colIndex),Bo=i4(to,xo,l),aa=n4(to,l,Bo,k);ki(aa)?Vn=Vn.concat.apply(Vn,nn([],kr(aa),!1)):Vn.push(aa)}}}catch(Ot){C={error:Ot}}finally{try{Kn&&!Kn.done&&(x=Rn.return)&&x.call(Rn)}finally{if(C)throw C.error}}Ut=n0([Vn.length,Ut]);var ko=Vn.map(function(Ot){return bA(Ot)}).join(s);Ze.push(ko)}}catch(Ot){u={error:Ot}}finally{try{Kr&&!Kr.done&&(g=xr.return)&&g.call(xr)}finally{if(u)throw u.error}}}var Xa=[];if(Nn(ee)&&!l.isPivotMode())Xa=[We];else{var mu=0,ss=uv(ee).map(function(Ot){for(var br=Ot,$t=[];br.level!==void 0;){var Tn=CP(br.label);ki(Tn)?mu=n0([mu,vy(Tn)]):Tn=R&&l.isPivotMode()?bP(br):Tn,$t.push(Tn),br=br.parent}return $t});mu>1&&(ss=a4(ss));for(var To=ss.map(function(Ot){return Ot.length}),Cl=n0(To),Bh=[],_v=function(Ot){var br=ss.map(function($t){return $t.length=0;fc-=1)_v(fc);Xa=Bh.map(function(Ot,br){var $t,Tn;if(l.isPivotMode()){var _i=l.facet.cornerHeader.cfg,Ei=_i.columns,zo=_i.rows,ms=_i.data,Ks=ms.filter(function(My){var Sd=My.cornerType;return Sd===f0.Col});if(br0&&Ot.unshift.apply(Ot,nn([],kr(new Array(br)),!1)),Ot.map(function($t){return bA($t)}).join(s)}).join(`\r +`),OA=[Wp].concat(Ze),hD=OA.join(`\r +`);return hD},u4=function(l){var s,i,u,g,C,x,E=(u=(i=(s=l.target)===null||s===void 0?void 0:s.attrs)===null||i===void 0?void 0:i.appendInfo)===null||u===void 0?void 0:u.cellData,O=(C=(g=l.target).get)===null||C===void 0?void 0:C.call(g,"parent"),R=((x=O==null?void 0:O.getMeta)===null||x===void 0?void 0:x.call(O))||E;return{target:O,viewMeta:R,event:l}},PR=function(l,s,i){var u,g=l.split(Ml);if(i)u=[l];else{u=[GT(g[0],g[1])];for(var C=2;C0&&g>0},s.prototype.getStyle=function(i){return Ii(this.theme,i||this.cellType)},s.prototype.getResizeAreaStyle=function(){return this.getStyle("resizeArea")},s.prototype.shouldDrawResizeAreaByType=function(i,u){var g=this.spreadsheet.options.interaction.resize;return Bp(g)?g:js(g.visible)?g.visible(u):g[i]},s.prototype.getCellArea=function(){var i=this.meta,u=i.x,g=i.y,C=i.height,x=i.width;return{x:u,y:g,height:C,width:x}},s.prototype.getContentArea=function(){var i=this.getStyle()||this.theme.dataCell,u=(i==null?void 0:i.cell).padding;return eP(this.getCellArea(),u)},s.prototype.getIconPosition=function(i){return i===void 0&&(i=1),this.getTextAndIconPosition(i).icon},s.prototype.drawTextShape=function(){var i=this.getFormattedFieldValue().formattedValue,u=this.getMaxTextWidth(),g=this.getTextStyle(),C=this.spreadsheet,x=C.options.placeholder,E=C.measureTextWidth,O=NM(this,x),R=FM({measureTextWidth:E,text:i,maxWidth:u,fontParam:g,placeholder:O});this.actualText=R,this.actualTextWidth=E(R,g);var k=this.getTextPosition();this.textShape=w_(this,[this.textShape],k.x,k.y,R,g),this.textShapes.push(this.textShape)},s.prototype.drawLinkFieldShape=function(i,u){if(i){var g=this.spreadsheet.options.style.device;if(!cc(g)){var C=this.getTextStyle(),x=this.getTextPosition(),E=x.x;C.textAlign==="center"?E-=this.actualTextWidth/2:C.textAlign==="right"&&(E-=this.actualTextWidth);var O=this.textShape.getBBox().maxY;this.linkFieldShape=df(this,{x1:E,y1:O+1,x2:E+this.actualTextWidth,y2:O+1},{stroke:u,lineWidth:1})}this.textShape.attr({fill:u,cursor:"pointer",appendInfo:{isLinkFieldText:!0,cellData:this.meta}})}},s.prototype.getLinkFieldStyle=function(){return this.getTextStyle().linkTextFill},s.prototype.drawLinkField=function(i){var u=this.spreadsheet.options.interaction.linkFields,g=u===void 0?[]:u,C=this.getLinkFieldStyle(),x=c4(g,i);this.drawLinkFieldShape(x,C)},s.prototype.updateByState=function(i,u){var g=this;this.spreadsheet.interaction.setInteractedCells(u);var C=Ii(this.theme,"".concat(this.cellType,".cell.interactionState.").concat(i));Qi(C,function(x,E){var O=za(oI(mo,function(R){return Ih(R,E)}));O.forEach(function(R){var k=g.stateShapes.has(R),z=k?g.stateShapes.get(R):g[R],j=ki(z)?z:[z];if(k&&j.forEach(function(ee){ee.set("visible",!0)}),R==="interactiveBorderShape"&&E==="borderWidth"&&Rh(x)){var q=g.getInteractiveBorderShapeStyle(x);Qi(q,function(ee,le){wv(j,le,ee)})}wv(j,Gs[E],x)})})},s.prototype.getInteractiveBorderShapeStyle=function(i){var u=this.getCellArea(),g=u.x,C=u.y,x=u.height,E=u.width,O=this.theme.dataCell.cell,R=O.horizontalBorderWidth,k=O.verticalBorderWidth;return{x:g+k/2+i/2,y:C+R/2+i/2,width:E-k-i,height:x-R-i}},s.prototype.hideInteractionShape=function(){this.stateShapes.forEach(function(i){wv(i,Gs.backgroundOpacity,0),wv(i,Gs.backgroundColor,"transparent"),wv(i,Gs.borderOpacity,0),wv(i,Gs.borderWidth,1),wv(i,Gs.borderColor,"transparent")})},s.prototype.clearUnselectedState=function(){wv(this.backgroundShape,Gs.backgroundOpacity,1),wv(this.textShapes,Gs.textOpacity,1),wv(this.linkFieldShape,Gs.opacity,1)},s.prototype.getTextShape=function(){return this.textShape},s.prototype.getTextShapes=function(){return this.textShapes||[this.textShape]},s.prototype.addTextShape=function(i){i&&this.textShapes.push(i)},s.prototype.getConditionIconShape=function(){return this.conditionIconShape},s.prototype.getConditionIconShapes=function(){return this.conditionIconShapes||[this.conditionIconShape]},s.prototype.addConditionIconShape=function(i){i&&this.conditionIconShapes.push(i)},s.prototype.resetTextAndConditionIconShapes=function(){this.textShapes=[],this.conditionIconShapes=[]},Object.defineProperty(s.prototype,"cellConditions",{get:function(){return this.conditions},enumerable:!1,configurable:!0}),s.prototype.drawConditionIconShapes=function(){var i,u=this.findFieldCondition((i=this.conditions)===null||i===void 0?void 0:i.icon);if(u&&u.mapping){var g=this.mappingValue(u),C=this.getIconPosition(),x=this.theme.dataCell.icon.size;Nn(g==null?void 0:g.icon)||(this.conditionIconShape=QI(this,ur(ur({},C),{name:g.icon,width:x,height:x,fill:g.fill})),this.addConditionIconShape(this.conditionIconShape))}},s.prototype.getTextConditionFill=function(i){var u,g,C=i.fill,x=this.findFieldCondition((u=this.conditions)===null||u===void 0?void 0:u.text);return x!=null&&x.mapping&&(C=((g=this.mappingValue(x))===null||g===void 0?void 0:g.fill)||i.fill),C},s.prototype.getCrossBackgroundColor=function(i){var u=this.getStyle().cell,g=u.crossBackgroundColor,C=u.backgroundColorOpacity;return g&&i%2===0?{backgroundColorOpacity:C,backgroundColor:g}:{backgroundColorOpacity:C,backgroundColor:this.getStyle().cell.backgroundColor}},s}(nu),xP=function(l,s){return s?s(l[ra],l[Es]):l[Es]},HM=function(l,s){var i=s.getMeta().id;return l.some(function(u){return ff(u.id,i)})},wA=function(l,s){return"".concat(l).concat(sh).concat(s)},f4=function(l){var s=l.interaction.getSelectedCellHighlight(),i=s.currentRow,u=s.currentCol,g=s.rowHeader,C=s.colHeader;return i||u||g||C},kR=function(l){return l.type===Mn.DATA_CELL},h4=function(l,s){Qi(l,function(i){kR(i)&&i.rowIndex===s.getMeta().rowIndex&&s.updateByState(hi.SELECTED)})},d4=function(l,s){Qi(l,function(i){kR(i)&&i.colIndex===s.getMeta().colIndex&&s.updateByState(hi.SELECTED)})},v4=function(l,s){Qi(l,function(i){kR(i)&&i.rowIndex===s.getMeta().rowIndex&&i.colIndex===s.getMeta().colIndex&&s.updateByState(hi.SELECTED)})},p4=function(l,s,i){var u=i.interaction.getSelectedCellHighlight(),g=u.rowHeader,C=u.colHeader,x=u.currentRow,E=u.currentCol,O=s.cellType===Mn.ROW_CELL,R=i.isTableMode()&&i.options.showSeriesNumber&&g&&O;(x||R)&&h4(l,s),E&&d4(l,s),(g||C)&&v4(l,s)},bx=function(l){Ni(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return Object.defineProperty(s.prototype,"cellType",{get:function(){return Mn.DATA_CELL},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"valueRangeByField",{get:function(){return this.spreadsheet.dataSet.getValueRangeByField(this.meta.valueField)},enumerable:!1,configurable:!0}),s.prototype.handleByStateName=function(i,u){HM(i,this)&&this.updateByState(u)},s.prototype.handleSearchResult=function(i){if(HM(i,this)){var u=m(i,function(g){return g==null?void 0:g.isTarget});u.id===this.getMeta().id?this.updateByState(hi.HIGHLIGHT):this.updateByState(hi.SEARCH_RESULT)}},s.prototype.handleSelect=function(i){var u,g=(u=i==null?void 0:i[0])===null||u===void 0?void 0:u.type;switch(g){case Mn.COL_CELL:this.changeRowColSelectState("colIndex");break;case Mn.ROW_CELL:this.changeRowColSelectState("rowIndex");break;case Mn.DATA_CELL:f4(this.spreadsheet)?p4(i,this,this.spreadsheet):HM(i,this)?this.updateByState(hi.SELECTED):this.spreadsheet.options.interaction.selectedCellsSpotlight&&this.updateByState(hi.UNSELECTED);break}},s.prototype.handleHover=function(i){var u=te(i);if(u.type!==Mn.DATA_CELL){this.hideInteractionShape();return}var g=this.spreadsheet.interaction.getHoverHighlight(),C=g.currentRow,x=g.currentCol;if(C||x){var E=this.meta.colIndex,O=this.meta.rowIndex;x&&E===(u==null?void 0:u.colIndex)||C&&O===(u==null?void 0:u.rowIndex)?this.updateByState(hi.HOVER):this.hideInteractionShape()}var R=this.getMeta(),k=R.id,z=R.rowIndex,j=R.colIndex;ff(u.id,k)&&ff(u.rowIndex,z)&&ff(u.colIndex,j)&&this.updateByState(hi.HOVER_FOCUS)},s.prototype.update=function(){var i=this.spreadsheet.interaction.getCurrentStateName(),u=this.spreadsheet.interaction.getCells();if(i===hi.ALL_SELECTED){this.updateByState(hi.SELECTED);return}if(!(Nn(u)||!i))switch(i){case hi.SELECTED:this.handleSelect(u);break;case hi.HOVER_FOCUS:case hi.HOVER:this.handleHover(u);break;case hi.SEARCH_RESULT:this.handleSearchResult(u);break;default:this.handleByStateName(u,i);break}},s.prototype.setMeta=function(i){l.prototype.setMeta.call(this,i),this.initCell()},s.prototype.drawTextShape=function(){l.prototype.drawTextShape.call(this),this.drawLinkField(this.meta)},s.prototype.initCell=function(){this.resetTextAndConditionIconShapes(),this.drawBackgroundShape(),this.drawInteractiveBgShape(),this.shouldHideRowSubtotalData()||(this.drawConditionIntervalShape(),this.drawTextShape(),this.drawConditionIconShapes()),this.drawInteractiveBorderShape(),this.meta.isFrozenCorner&&this.drawBorderShape(),this.update()},s.prototype.getDefaultTextFill=function(i){var u=i.fill,g=this.getBackgroundColor(),C=g.backgroundColor,x=g.intelligentReverseTextColor;return d_(C)&&i.fill===ch&&x&&(u=Gd),u},s.prototype.getTextStyle=function(){var i=this.meta.isTotals,u=i?this.theme.dataCell.bolderText:this.theme.dataCell.text,g=this.getTextConditionFill(ur(ur({},u),{fill:this.getDefaultTextFill(u)}));return ur(ur({},u),{fill:g})},s.prototype.getIconStyle=function(){var i,u=this.theme.dataCell.icon,g=u.size,C=u.margin,x=this.findFieldCondition((i=this.conditions)===null||i===void 0?void 0:i.icon),E=x&&x.mapping&&{size:g,margin:C,position:a8(x)};return E},s.prototype.drawConditionIntervalShape=function(){this.conditionIntervalShape=f8(this)},s.prototype.shouldHideRowSubtotalData=function(){var i,u=((i=this.spreadsheet.options.totals)!==null&&i!==void 0?i:{}).row,g=u===void 0?{}:u,C=this.meta.rowIndex,x=this.spreadsheet.facet.layoutResult.rowLeafNodes[C],E=!(x!=null&&x.isGrandTotals)&&(x==null?void 0:x.isTotals);return this.spreadsheet.options.hierarchyType==="tree"&&!g.showSubTotals&&E},s.prototype.getFormattedFieldValue=function(){if(this.shouldHideRowSubtotalData())return{value:null,formattedValue:sh};var i=this.meta,u=i.rowId,g=i.valueField,C=i.fieldValue,x=i.data,E=this.spreadsheet.dataSet.getFieldMeta(u),O=E?u:g,R=this.spreadsheet.dataSet.getFieldFormatter(O),k=R(C,x,this.meta);return{value:C,formattedValue:k}},s.prototype.getMaxTextWidth=function(){var i=this.getContentArea().width;return rP(i,this.getIconStyle())},s.prototype.getTextPosition=function(){return this.getTextAndIconPosition().text},s.prototype.getBackgroundColor=function(){var i,u=this.getCrossBackgroundColor(this.meta.rowIndex),g=u.backgroundColor,C=u.backgroundColorOpacity;if(this.shouldHideRowSubtotalData())return{backgroundColor:g,backgroundColorOpacity:C};var x=this.findFieldCondition((i=this.conditions)===null||i===void 0?void 0:i.background),E=!1;if(x&&x.mapping){var O=this.mappingValue(x);O&&(g=O.fill,E=O.intelligentReverseTextColor)}return{backgroundColor:g,backgroundColorOpacity:C,intelligentReverseTextColor:E}},s.prototype.drawBackgroundShape=function(){var i=this.getBackgroundColor(),u=i.backgroundColor,g=i.backgroundColorOpacity;this.backgroundShape=xd(this,ur(ur({},this.getCellArea()),{fill:u,fillOpacity:g}))},s.prototype.drawInteractiveBorderShape=function(){var i=1,u=this.getCellArea(),g=u.x,C=u.y,x=u.height,E=u.width;this.stateShapes.set("interactiveBorderShape",xd(this,{x:g+i,y:C+i,width:E-i*2,height:x-i*2},{capture:!1,visible:!1}))},s.prototype.drawInteractiveBgShape=function(){this.stateShapes.set("interactiveBgShape",xd(this,ur({},this.getCellArea()),{visible:!1}))},s.prototype.changeRowColSelectState=function(i){var u=this.spreadsheet.interaction,g=Ii(this.meta,i),C=u.getState(),x=C.nodes,E=x===void 0?[]:x,O=C.cells,R=O===void 0?[]:O,k=!1;if(this.spreadsheet.isTableMode()&&E.length){var z=E[0].hierarchy.getLeaves();k=z.some(function(j,q){return E.some(function(ee){return ee===j})?q===g:!1})}else k=nn(nn([],kr(E),!1),kr(R),!1).some(function(j){return Ii(j,i)===g});k?this.updateByState(hi.SELECTED):this.spreadsheet.options.interaction.selectedCellsSpotlight?this.updateByState(hi.UNSELECTED):this.hideInteractionShape()},s.prototype.drawBorderShape=function(){var i=this;[Ru.BOTTOM,Ru.RIGHT].forEach(function(u){var g=Cx(u,i.getCellArea(),i.getStyle().cell),C=g.position,x=g.style;df(i,C,x)})},s.prototype.findFieldCondition=function(i){var u=this;return Y(i,function(g){return g.field instanceof RegExp?g.field.test(u.meta.valueField):g.field===u.meta.valueField})},s.prototype.mappingValue=function(i){var u=this.meta.fieldValue,g=this.spreadsheet.isTableMode()?this.spreadsheet.dataSet.getCellData({query:{rowIndex:this.meta.rowIndex}}):this.meta.data;return i==null?void 0:i.mapping(u,g)},s.prototype.updateByState=function(i){if(l.prototype.updateByState.call(this,i,this),i===hi.UNSELECTED){var u=Ii(this.theme,"".concat(this.cellType,".cell.interactionState.").concat(i));u&&this.toggleConditionIntervalShapeOpacity(u.opacity)}},s.prototype.clearUnselectedState=function(){l.prototype.clearUnselectedState.call(this),this.toggleConditionIntervalShapeOpacity(1)},s.prototype.toggleConditionIntervalShapeOpacity=function(i){wv(this.conditionIntervalShape,Gs.backgroundOpacity,i),wv(this.conditionIconShapes,Gs.opacity,i)},s.prototype.drawLeftBorder=function(){var i=Cx(Ru.LEFT,this.getCellArea(),this.getStyle().cell),u=i.position,g=i.style;df(this,u,g)},s}(BR),g4=function(l){Ni(s,l);function s(i,u,g){return l.call(this,g,i,u)||this}return s.prototype.handleRestOptions=function(){for(var i=[],u=0;u0&&E.length0&&C.push(z)});var x=s.getChildren(),E=T4(x),O=EP(E,C),R=EP(C,E);Qi(O,function(k){var z=m(x,function(j){return ff(j.getMeta().id,k.viewMeta.id)});z==null||z.remove(!0)}),Qi(R,function(k){var z=k.cells,j=k.viewMeta;s.add(_P(l,z,j))})}}},MP=function(l){var s=l.includes(Ml)?"id":"field";return s},FR=function(l,s){s===void 0&&(s=[]);var i=l.getInitColumnLeafNodes();return Mh(s.map(function(u){var g=MP(u);return i.find(function(C){return C[g]===u})}))},A4=function(l,s){if(s===void 0&&(s=[]),Nn(s))return{prev:null,next:null};var i=l.getInitColumnLeafNodes(),u=FR(l,s).map(function(O){return O==null?void 0:O.colIndex}),g=Math.max.apply(Math,nn([],kr(u),!1)),C=Math.min.apply(Math,nn([],kr(u),!1)),x=i.find(function(O){return O.colIndex===g+1}),E=i.find(function(O){return O.colIndex===C-1});return{prev:E||null,next:x||null}},I4=function(l,s){if(Nn(s))return[];var i=Number.NEGATIVE_INFINITY;return l.reduce(function(u,g,C){if(!s.includes(g))return u;if(C===i+1){var x=no(u);x.push(g)}else{var E=[g];u.push(E)}return i=C,u},[])},TP=function(l,s,i){s===void 0&&(s=[]),i===void 0&&(i=!1);var u=function(z,j){z===void 0&&(z=[]),j===void 0&&(j=[]),l.setOptions({interaction:{hiddenColumnFields:z}}),l.interaction.reset(),l.store.set("hiddenColumnsDetail",j),l.render(!1,{reBuildHiddenColumnsDetail:!1})};if(Nn(s)&&i){u();return}var g=l.store.get("hiddenColumnsDetail",[]),C=l.options.interaction.hiddenColumnFields;if(!(ff(s,C)&&!i)){var x=va(nn(nn([],kr(s),!1),kr(C),!1)),E=FR(l,x).every(function(z,j,q){var ee=q[j+1];return!ee||Math.abs(z.colIndex-ee.colIndex)===1}),O=A4(l,E?x:s),R={hideColumnNodes:FR(l,s),displaySiblingNode:O},k=nn(nn([],kr(g),!1),[R],!1);l.emit(Dr.LAYOUT_COLS_HIDDEN,R,k),u(x,k)}},R4=function(l){var s=l.dataCfg.fields.columns,i=s===void 0?[]:s;return l.isTableMode()?i:l.getInitColumnLeafNodes().map(function(u){var g=u.id;return g})},NR=function(l,s,i){s===void 0&&(s=[]),i===void 0&&(i=!1),Nn(s)&&i&&TP(l,s,!0);var u=R4(l),g=kM(u),C=I4(g,s);C.forEach(function(x){TP(l,x,i)})},D4=function(l,s){var i=l.getColumnLeafNodes(),u=l.getInitColumnLeafNodes(),g=MP(s);return Ii(no(i),g)===s&&Ii(no(u),g)!==s},L4=function(l){return(l==null?void 0:l.next)||(l==null?void 0:l.prev)},P4=function(l){var s=L4(l);return s==null?void 0:s.id},HR=function(l,s){return P4(l)===s},xA=function(l){var s=l.type,i=l.id,u=l.theme,g=l.width,C=l.height,x=dC(l,["type","id","theme","width","height"]),E=s===Cc.Horizontal?u.size:null,O=s===Cc.Vertical?u.size:null;return{fill:u.background,fillOpacity:u.backgroundOpacity,cursor:"".concat(s,"-resize"),width:E,height:O,appendInfo:ur(ur({},x),{isResizeArea:!0,type:s,id:i,width:g,height:C,size:u.size})}},SA=function(l,s){if(l.foregroundGroup){var i=l.foregroundGroup.findById(s);return i||l.foregroundGroup.addGroup({id:s,zIndex:lC})}},zR=function(l,s,i){var u=i!=null?i:{},g=u.scrollX,C=g===void 0?0:g,x=u.scrollY,E=x===void 0?0:x,O=!(l.x-C>s.x+s.width||l.x+l.width-Cs.y+s.height||l.y+l.height-E1){var R=O.slice(0,O.length-1).join(Ml);return[R,O[O.length-1]]}return O}),C=Array.from(new Set(g.map(function(E){return E[0]})));g.sort(function(E,O){var R=E.slice(0,E.length-1),k=O.slice(0,O.length-1);if(R.join()!==k.join()){var z=C.indexOf(R[0]),j=C.indexOf(k[0]);return z-j}var q=s.indexOf(E[E.length-1]),ee=s.indexOf(O[O.length-1]);return q-ee});var x=g.map(function(E){return E.join(Ml)});return ER(i,x)},k4=function(l){var s=l.originValues,i=l.measureValues,u=l.sortParam,g=l.dataSet,C=u.sortFunc,x=u.sortFieldId,E=u.sortMethod,O=C(ur({data:i},u));return O!=null&&O.length?(g.fields.rows.indexOf(x)>0||g.fields.columns.indexOf(x)>0)&&!Ih(O[0],Ml)?DP({sortByValues:O,originValues:s}):RP(O,s,YT(E)):s},F4=function(l){var s=l.sortParam,i=l.measureValues,u=l.originValues,g=l.dataSet,C=s.sortByMeasure,x=s.query,E=s.sortFieldId,O=s.sortMethod,R=g.fields,k=R.rows,z=R.columns,j=k.includes(E),q;if(C){var ee=IP(i,O,C===A0?x[ra]:C);q=S8(E,j?k:kM(z),ee)}else q=Ee(IP(i,O));return RP(q,u,YT(O))},N4=function(l){var s=l.sortParam,i=l.originValues,u=l.measureValues,g=l.dataSet,C=s.sortFunc,x=s.sortMethod,E=s.sortBy,O=i,R={originValues:i,measureValues:u,sortParam:s,dataSet:g};return C?O=k4(R):E?O=DP({sortByValues:E,originValues:i}):(YT(x)||GR(x))&&(O=F4(R)),O},H4=function(l,s,i){var u,g={},C=Ih(l,Ml);if(C)for(var x=J3(l,Ml),E=!((u=s==null?void 0:s.rows)===null||u===void 0)&&u.includes(i)?s.rows:kM(s.columns),O=0;O<=kA(E,i);O++)g[E[O]]=x[O];else g[i]=l;return g},LP=function(l){return l.filter(function(s){return s!==ra})},z4=function(l){var s=l.dataSet,i=l.sortParam,u=l.originValues,g=s.fields,C=i.sortByMeasure,x=i.query,E=i.sortFieldId,O=s.getMultiData(x,void 0,void 0,void 0,!0),R=kM(g.columns);if(C!==A0){var k=ic(g.rows,R);return O.filter(function(We){var Ue=new Set(za(We));return k.every(function(Ze){return Ue.has(Ze)})})}var z=Ih(g.rows,E),j=LP(z?g.rows:R),q=LP(z?R:g.rows),ee=j[j.indexOf(E)+1],le=za(x),ye=q.filter(function(We){return!le.includes(We)}),Me=O.filter(function(We){var Ue=new Set(za(We));if(!Ue.has(E)||Ue.has(ee))return!1;var Ze=ye.every(function(Ut){return!Ue.has(Ut)});return Ze});return Nn(Me)?Mh(Ee(u,function(We){var Ue=H4(We,g,E);return s.getTotalValue(ur(ur({},x),Ue))})):Me},W4=function(l){var s=l.dataSet,i=l.sortParam,u=l.originValues,g=l.isSortByMeasure,C;return g?C=z4(l):C=u,N4({sortParam:i,originValues:u,measureValues:C,dataSet:s})},PP=function(l,s){if(l!=null&&l.sortMethod){if(YT(l==null?void 0:l.sortMethod))return"groupAsc";if(GR(l==null?void 0:l.sortMethod))return"groupDesc"}if(s)return"SortDown"},$R=function(l){Ni(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s.prototype.handleRestOptions=function(){for(var i=[],u=0;u0?g.right:0)},s.prototype.getColResizeAreaKey=function(){return this.meta.key},s.prototype.getColResizeArea=function(){return SA(this.spreadsheet,Ko)},s.prototype.getHorizontalResizeAreaName=function(){return"".concat(ts).concat(this.meta.key)},s.prototype.drawHorizontalResizeArea=function(){var i,u,g=((u=(i=this.spreadsheet.options.style)===null||i===void 0?void 0:i.colCfg)===null||u===void 0?void 0:u.height)===0;if(!(g||!this.shouldDrawResizeAreaByType("colCellVertical",this))){var C=this.headerConfig,x=C.cornerWidth,E=C.viewportWidth,O=this.meta,R=O.y,k=O.height,z=this.getResizeAreaStyle(),j=this.getColResizeArea(),q=this.getHorizontalResizeAreaName(),ee=j.find(function(ye){return ye.attrs.name===q});if(!ee){var le=x+E;j.addShape("rect",{attrs:ur(ur({},xA({theme:z,type:Cc.Vertical,id:this.getColResizeAreaKey(),effect:au.Field,offsetX:0,offsetY:R,width:le,height:k,meta:this.meta})),{name:q,x:0,y:R+k-z.size/2,width:le})})}}},s.prototype.shouldAddVerticalResizeArea=function(){var i=this.meta,u=i.x,g=i.y,C=i.width,x=i.height,E=this.headerConfig,O=E.scrollX,R=E.scrollY,k=E.scrollContainsRowHeader,z=E.cornerWidth,j=E.height,q=E.width,ee=this.getResizeAreaStyle(),le={x:u+C-ee.size/2,y:g,width:ee.size,height:x},ye={x:k?-z:0,y:0,width:k?z+q:q,height:j};return zR(le,ye,{scrollX:O,scrollY:R})},s.prototype.getVerticalResizeAreaOffset=function(){var i=this.meta,u=i.x,g=i.y,C=this.headerConfig,x=C.scrollX,E=C.position;return{x:E.x+u-x,y:E.y+g}},s.prototype.drawVerticalResizeArea=function(){if(!(!this.meta.isLeaf||!this.shouldDrawResizeAreaByType("colCellHorizontal",this))){var i=this.meta,u=i.label,g=i.width,C=i.height,x=this.getResizeAreaStyle(),E=this.getColResizeArea();if(this.shouldAddVerticalResizeArea()){var O=this.getVerticalResizeAreaOffset(),R=O.x,k=O.y;E.addShape("rect",{attrs:ur(ur({},xA({theme:x,type:Cc.Horizontal,effect:au.Cell,id:u,offsetX:R,offsetY:k,width:g,height:C,meta:this.meta})),{x:R+g-x.size/2,y:k,height:C})})}}},s.prototype.drawResizeArea=function(){this.drawHorizontalResizeArea(),this.drawVerticalResizeArea()},s.prototype.drawHorizontalBorder=function(){var i=Cx(Ru.TOP,this.meta,this.theme.colCell.cell),u=i.position,g=i.style;df(this,u,g)},s.prototype.drawVerticalBorder=function(i){var u=Cx(i,this.meta,this.theme.colCell.cell),g=u.position,C=u.style;df(this,g,C)},s.prototype.drawBorders=function(){var i=this.spreadsheet,u=i.options,g=i.isTableMode;this.meta.colIndex===0&&g()&&!u.showSeriesNumber&&this.drawVerticalBorder(Ru.LEFT),this.drawHorizontalBorder(),this.drawVerticalBorder(Ru.RIGHT)},s.prototype.hasHiddenColumnCell=function(){var i=this,u=this.spreadsheet.options,g=u.interaction.hiddenColumnFields,C=g===void 0?[]:g,x=u.tooltip.operation,E=this.spreadsheet.store.get("hiddenColumnsDetail",[]);return Nn(E)||Nn(C)||!x.hiddenColumns?!1:!!E.find(function(O){return HR(O==null?void 0:O.displaySiblingNode,i.meta.id)})},s.prototype.getExpandIconTheme=function(){var i=this.getStyle();return i.icon},s.prototype.addExpandColumnSplitLine=function(){var i=this.meta,u=i.x,g=i.y,C=i.width,x=i.height,E=this.theme.splitLine,O=E.horizontalBorderColor,R=E.horizontalBorderWidth,k=E.horizontalBorderColorOpacity,z=E.borderDash,j=this.isLastColumn()?u+C-R:u;df(this,{x1:j,y1:g,x2:j,y2:g+x},{stroke:O,lineWidth:R,strokeOpacity:k,lineDash:z})},s.prototype.addExpandColumnIconShapes=function(){this.hasHiddenColumnCell()&&(this.addExpandColumnSplitLine(),this.addExpandColumnIcons())},s.prototype.addExpandColumnIcons=function(){var i=this.isLastColumn();this.addExpandColumnIcon(i),this.isAllDisplaySiblingNodeHidden()&&i&&this.addExpandColumnIcon(!1)},s.prototype.addExpandColumnIcon=function(i){var u=this,g=this.getExpandColumnIconConfig(i),C=QI(this,ur(ur({},g),{name:"ExpandColIcon",cursor:"pointer"}));C.on("click",function(){u.spreadsheet.emit(Dr.LAYOUT_COLS_EXPANDED,u.meta)})},s.prototype.getExpandColumnIconConfig=function(i){var u=this.getExpandIconTheme().size,g=this.getCellArea(),C=g.x,x=g.y,E=g.width,O=g.height,R=C-u,k=i?R+E:R,z=x+O/2-u/2;return{x:k,y:z,width:u*2,height:u}},s.prototype.isLastColumn=function(){return D4(this.spreadsheet,this.meta.id)},s.prototype.isAllDisplaySiblingNodeHidden=function(){var i=this.meta.id,u=this.spreadsheet.store.get("hiddenColumnsDetail",[]),g=u.find(function(x){var E,O=x.displaySiblingNode;return((E=O==null?void 0:O.next)===null||E===void 0?void 0:E.id)===i}),C=u.find(function(x){var E,O=x.displaySiblingNode;return((E=O==null?void 0:O.prev)===null||E===void 0?void 0:E.id)===i});return C&&g},s}($R),G4=function(l){Ni(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s.prototype.isBolderText=function(){var i=this.meta.cornerType;return i===f0.Col},Object.defineProperty(s.prototype,"cellType",{get:function(){return Mn.CORNER_CELL},enumerable:!1,configurable:!0}),s.prototype.initCell=function(){l.prototype.initCell.call(this),this.resetTextAndConditionIconShapes(),this.drawBackgroundShape(),this.drawTreeIcon(),this.drawCellText(),this.drawConditionIconShapes(),this.drawActionIcons(),this.drawBorderShape(),this.drawResizeArea(),this.update()},s.prototype.drawCellText=function(){this.drawTextShape()},s.prototype.drawTextShape=function(){var i=this.getContentArea().x,u=this.getCellArea(),g=u.y,C=u.height,x=this.getTextStyle(),E=this.getCornerText(),O=this.getMaxTextWidth(),R=NM(this.meta,this.spreadsheet.options.placeholder),k=this.spreadsheet.measureTextWidth,z=FM({measureTextWidth:k,text:E,maxWidth:O,fontParam:x,placeholder:R});this.actualText=z;var j=z.indexOf(rp),q=z,ee="";if(j!==-1&&this.spreadsheet.isHierarchyTreeType()){var le=j+(bR()?1:0);q=E.substr(0,le),ee=E.slice(le),ee=FM({measureTextWidth:k,text:ee,maxWidth:O,fontParam:x})}var ye=nP({x:i+this.getTreeIconWidth(),y:g,width:O,height:C},x).x,Me=g+(Nn(ee)?C/2:C/4);this.addTextShape(w_(this,[this.textShapes[0]],ye,Me,q,x)),Nn(ee)||this.addTextShape(w_(this,[this.textShapes[1]],ye,g+C*.75,ee,x)),this.actualTextWidth=n0([k(q,x),k(ee,x)])},s.prototype.drawTreeIcon=function(){var i=this;if(!(!this.showTreeIcon()||this.meta.cornerType===f0.Col)){var u=this.headerConfig.hierarchyCollapse,g=this.getStyle().icon.size,C=this.getTextStyle(),x=C.textBaseline,E=C.fill,O=this.getContentArea();this.treeIcon=QL(this,{x:O.x,y:JI(O,x,g),width:g,height:g},E,u,function(){i.headerConfig.spreadsheet.store.set("scrollY",0),i.headerConfig.spreadsheet.emit(Dr.LAYOUT_TREE_ROWS_COLLAPSE_ALL,u)})}},s.prototype.drawBorderShape=function(){var i=this;[Ru.TOP,Ru.LEFT].forEach(function(u){var g=Cx(u,i.getCellArea(),i.getStyle().cell),C=g.position,x=g.style;df(i,C,x)})},s.prototype.isLastRowCornerCell=function(){var i=this.meta,u=i.cornerType,g=i.field,C=this.headerConfig.rows;return u===f0.Row&&(this.spreadsheet.isHierarchyTreeType()||no(C)===g)},s.prototype.getResizeAreaEffect=function(){var i=this.meta.cornerType;return i===f0.Series?au.Series:this.isLastRowCornerCell()&&this.spreadsheet.isHierarchyTreeType()?au.Tree:au.Field},s.prototype.drawResizeArea=function(){if(this.shouldDrawResizeAreaByType("cornerCellHorizontal",this)){var i=this.getResizeAreaStyle(),u=SA(this.spreadsheet,L0),g=this.headerConfig,C=g.position,x=g.scrollX,E=g.scrollY,O=g.width,R=g.height,k=this.meta,z=k.x,j=k.y,q=k.width,ee=k.height,le=k.field,ye=k.cornerType,Me={x:z+q-i.size/2,y:j,width:i.size,height:ee},We={x:0,y:0,width:O,height:R};if(!(ye===f0.Col||!zR(Me,We,{scrollX:x,scrollY:E}))){var Ue=C.x+z-x,Ze=C.y+(this.isLastRowCornerCell()?0:j);u.addShape("rect",{attrs:ur(ur({},xA({theme:i,id:le,type:Cc.Horizontal,effect:this.getResizeAreaEffect(),offsetX:Ue,offsetY:Ze,width:q,height:ee,meta:this.meta})),{x:Ue+q-i.size/2,y:Ze,height:this.isLastRowCornerCell()?R:ee})})}}},s.prototype.showTreeIcon=function(){var i;return this.spreadsheet.isHierarchyTreeType()&&((i=this.meta)===null||i===void 0?void 0:i.x)===0},s.prototype.getIconPosition=function(){var i,u,g=(u=(i=this.textShapes)===null||i===void 0?void 0:i[0])===null||u===void 0?void 0:u.cfg.attrs,C=this.getTextStyle(),x=C.textBaseline,E=C.textAlign,O=this.getStyle().icon,R=O.size,k=O.margin,z=(g==null?void 0:g.x)+I2([[wO("center"),Kc(this.actualTextWidth/2)],[wO("right"),Kc(0)],[nR,Kc(this.actualTextWidth)]])(E)+k.left,j=JI(this.getContentArea(),x,R);return{x:z,y:j}},s.prototype.getTreeIconWidth=function(){var i=this.getStyle().icon,u=i.size,g=i.margin;return this.showTreeIcon()?u+g.right:0},s.prototype.getTextStyle=function(){var i=this.getStyle(),u=i.text,g=i.bolderText,C=this.isBolderText()?u:g,x=this.getTextConditionFill(C);return ur(ur({},C),{fill:x})},s.prototype.getMaxTextWidth=function(){var i=this.getContentArea().width;return i-this.getTreeIconWidth()-this.getActionIconsWidth()},s.prototype.getTextPosition=function(){return{x:0,y:0}},s.prototype.getFormattedFieldValue=function(){return OP(this.meta,this.spreadsheet.dataSet.getFieldName(this.meta.label))},s.prototype.getCornerText=function(){var i=this.getFormattedFieldValue().formattedValue;return i},s}($R),a6=function(){function l(s){this.EVENT="gesture",this.gm=s}return l.prototype.do=function(s){var i=s.type;switch(i){case"touchstart":this.onTouchStart(s);break;case"touchmove":this.onTouchMove(s);break;case"touchend":this.onTouchEnd(s);break;case"touchcancel":this.onTouchCancel(s);break;default:return}},l.prototype.emit=function(s){this.gm.emit(this.EVENT,s)},l}(),$4=function(l){Ni(s,l);function s(){var i=l!==null&&l.apply(this,arguments)||this;return i.EVENT="pan",i}return s.prototype.onTouchCancel=function(i){},s.prototype.onTouchEnd=function(i){},s.prototype.onTouchMove=function(i){var u=i.x,g=i.y,C=u-this.preX,x=g-this.preY;this.preX=u,this.preY=g,this.emit({x:u,y:g,deltaX:C,deltaY:x,event:i})},s.prototype.onTouchStart=function(i){var u=i.x,g=i.y;this.preX=u,this.preY=g},s}(a6),S_=typeof performance=="object"&&performance.now?performance:Date,U4=300,BP=10,Y4=function(l){Ni(s,l);function s(){var i=l!==null&&l.apply(this,arguments)||this;return i.EVENT="press",i}return s.prototype.onTouchCancel=function(i){this.clearTimeout()},s.prototype.onTouchEnd=function(i){this.clearTimeout()},s.prototype.onTouchMove=function(i){var u=i.x,g=i.y;(u-this.touchStartX>BP||g-this.touchStartY>BP)&&this.clearTimeout()},s.prototype.onTouchStart=function(i){var u=this;this.clearTimeout();var g=i.x,C=i.y;this.touchStartTime=S_.now(),this.touchStartX=g,this.touchStartY=C,this.pressTimeout=window.setTimeout(function(){u.emit({x:g,y:C,event:i})},U4)},s.prototype.clearTimeout=function(){window.clearTimeout(this.pressTimeout)},s}(a6),j4=100,V4=function(l){Ni(s,l);function s(){var i=l!==null&&l.apply(this,arguments)||this;return i.EVENT="swipe",i.latestMoveTime=0,i.ms=0,i.speedX=0,i.speedY=0,i.preX=0,i.preY=0,i}return s.prototype.onTouchCancel=function(i){},s.prototype.onTouchEnd=function(i){var u=this.speedX,g=this.speedY;if(S_.now()-this.latestMoveTime=O?C=l:Ox?l+s-i>g?C=i:C=l+s-g:C=l+(s-g)/2,C},o6=function(l){Ni(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return Object.defineProperty(s.prototype,"cellType",{get:function(){return Mn.ROW_CELL},enumerable:!1,configurable:!0}),s.prototype.destroy=function(){var i;l.prototype.destroy.call(this),(i=this.gm)===null||i===void 0||i.destroy()},s.prototype.initCell=function(){l.prototype.initCell.call(this),this.drawBackgroundShape(),this.drawInteractiveBgShape(),this.drawInteractiveBorderShape(),this.drawTextShape(),this.drawConditionIconShapes(),this.drawTreeIcon(),this.drawTreeLeafNodeAlignDot(),this.drawRectBorder(),this.drawResizeAreaInLeaf(),this.drawActionIcons(),this.update()},s.prototype.getBackgroundColor=function(){var i=this.getCrossBackgroundColor(this.meta.rowIndex),u=i.backgroundColor,g=i.backgroundColorOpacity;return this.getBackgroundColorByCondition(u,g)},s.prototype.drawInteractiveBorderShape=function(){var i=2;this.stateShapes.set("interactiveBorderShape",xd(this,this.getInteractiveBorderShapeStyle(i),{visible:!1}))},s.prototype.drawInteractiveBgShape=function(){this.stateShapes.set("interactiveBgShape",xd(this,ur({},this.getCellArea()),{visible:!1}))},s.prototype.showTreeIcon=function(){return this.spreadsheet.isHierarchyTreeType()&&!this.meta.isLeaf},s.prototype.showTreeLeafNodeAlignDot=function(){var i;return((i=this.spreadsheet.options.style)===null||i===void 0?void 0:i.showTreeLeafNodeAlignDot)&&this.spreadsheet.isHierarchyTreeType()},s.prototype.getParentTreeIconCfg=function(){if(!(!this.showTreeLeafNodeAlignDot()||!this.spreadsheet.isHierarchyTreeType()||!this.meta.isLeaf))return Ii(this.meta,"parent.belongsCell.treeIcon.cfg")},s.prototype.drawTreeIcon=function(){var i=this;if(this.showTreeIcon()){var u=this.meta,g=u.isCollapsed,C=u.id,x=u.hierarchy,E=this.getContentArea().x,O=this.getTextStyle().fill,R=this.getStyle().icon.size,k=this.getContentIndent(),z=E+k,j=this.getIconYPosition();this.treeIcon=QL(this,{x:z,y:j,width:R,height:R},O,g,function(){if(!cc()){if(!g){var q=i.spreadsheet.store.get("scrollY"),ee=i.spreadsheet.facet.panelBBox.viewportHeight||0,le=nB(i.meta),ye=x.height-le;if(q>0&&q+ee>ye){var Me=ye-ee;i.spreadsheet.store.set("scrollY",Me>0?Me:0)}}i.spreadsheet.emit(Dr.ROW_CELL_COLLAPSE_TREE_ROWS,{id:C,isCollapsed:!g,node:i.meta})}}),cc()&&(this.gm=new FP(this,{gestures:["Tap"]}),this.gm.on("tap",function(){i.spreadsheet.emit(Dr.ROW_CELL_COLLAPSE_TREE_ROWS,{id:C,isCollapsed:!g,node:i.meta})}))}},s.prototype.drawTreeLeafNodeAlignDot=function(){var i=this.getParentTreeIconCfg();if(i){var u=this.getStyle().icon,g=u.size,C=u.margin,x=i.x+g+C.right,E=this.getTextPosition().y,O=this.getTextStyle(),R=O.fill,k=O.fontSize,z=g/5;this.treeLeafNodeAlignDot=qL(this,{x:x+g/2,y:E+(k-z)/2,r:z,fill:R,fillOpacity:.3})}},s.prototype.isBolderText=function(){var i=this.meta,u=i.isLeaf,g=i.isTotals,C=i.level;return!u&&C===0||g},s.prototype.drawTextShape=function(){l.prototype.drawTextShape.call(this),this.drawLinkField(this.meta)},s.prototype.drawRectBorder=function(){var i=this,u=this.getCellArea().x,g=this.getContentIndent(),C=this.spreadsheet.isHierarchyTreeType()?u:u+g;[Ru.BOTTOM,Ru.LEFT].forEach(function(x){var E=Cx(x,ur(ur({},i.getCellArea()),{x:C}),i.getStyle().cell),O=E.position,R=E.style;df(i,O,R)})},s.prototype.drawResizeAreaInLeaf=function(){if(!(!this.meta.isLeaf||!this.shouldDrawResizeAreaByType("rowCellVertical",this))){var i=this.getCellArea(),u=i.x,g=i.y,C=i.width,x=i.height,E=this.getResizeAreaStyle(),O=SA(this.spreadsheet,tp),R=this.headerConfig,k=R.position,z=R.seriesNumberWidth,j=R.width,q=R.viewportHeight,ee=R.scrollX,le=R.scrollY,ye={x:u,y:g+x-E.size/2,width:C,height:E.size},Me={x:0,y:0,width:j,height:q};if(zR(ye,Me,{scrollX:ee,scrollY:le})){var We=(k==null?void 0:k.x)+u-ee+z,Ue=(k==null?void 0:k.y)+g-le,Ze=this.spreadsheet.isFrozenRowHeader()?j-z-(u-ee):C;O.addShape("rect",{attrs:ur(ur({},xA({id:this.meta.id,theme:E,type:Cc.Vertical,effect:au.Cell,offsetX:We,offsetY:Ue,width:C,height:x,meta:this.meta})),{x:We,y:Ue+x-E.size/2,width:Ze})})}}},s.prototype.getContentIndent=function(){if(!this.spreadsheet.isHierarchyTreeType())return 0;for(var i=this.getStyle(),u=i.icon,g=i.cell,C=u.size+u.margin.right,x=this.meta.parent,E=0;x;)x.height!==0&&(E+=C),x=x.parent;return this.showTreeLeafNodeAlignDot()&&(E+=this.isTreeLevel()?0:g.padding.right+u.margin.right),E},s.prototype.getTextIndent=function(){var i=this.getStyle().icon,u=i.size,g=i.margin,C=this.getContentIndent(),x=this.showTreeIcon()||this.isTreeLevel()&&this.showTreeLeafNodeAlignDot()?u+g.right:0;return C+x},s.prototype.isTreeLevel=function(){return m(Ii(this.meta,"parent.children"),function(i){return!i.isLeaf})},s.prototype.getIconPosition=function(){var i=this.textShape.cfg.attrs,u=i.x,g=i.y,C=i.textAlign,x=this.getStyle().icon.margin.left;return C==="left"?{x:u+this.actualTextWidth+x,y:g}:C==="right"?{x:u+x,y:g}:{x:u+this.actualTextWidth/2+x,y:g}},s.prototype.getMaxTextWidth=function(){var i=this.getContentArea().width;return i-this.getTextIndent()-this.getActionIconsWidth()},s.prototype.getTextArea=function(){var i=this.getContentArea(),u=this.getTextIndent();return ur(ur({},i),{x:i.x+u,width:i.width-u})},s.prototype.getAdjustTextAreaHeight=function(i,u,g){var C=i.height;return!this.spreadsheet.facet.vScrollBar&&i.y+i.height>u+g&&(C=u+g-i.y),C},s.prototype.getTextPosition=function(){var i=this.getTextArea(),u=this.headerConfig,g=u.scrollY,C=u.viewportHeight,x=this.getAdjustTextAreaHeight(i,g,C),E=this.getTextStyle().fontSize,O=HP(i.y,x,g,C,E),R=UT(i,this.getTextStyle(),0,this.getIconStyle(),this.getActionIconsCount()).text.x;return{x:R,y:O}},s.prototype.getIconYPosition=function(){var i=this.getTextPosition().y,u=this.getStyle().icon.size,g=this.getTextStyle().fontSize;return i+(g-u)/2},s}($R),iB=function(l,s,i,u){var g,C,x=Ii(u,"size"),E=Ii(u,"margin"),O=0;return l.options.showDefaultHeaderActionIcon?O=1:O=(C=(g=WR(l.options.headerActionIcons,s,i))===null||g===void 0?void 0:g.iconNames.length)!==null&&C!==void 0?C:0,O*(x+E.left)+(O>0?E.right:0)},zP=function(l,s,i){var u,g,C=((u=i.icon.margin)===null||u===void 0?void 0:u.left)||0,x=((g=i.icon.margin)===null||g===void 0?void 0:g.right)||0,E=l.store.get("hiddenColumnsDetail",[]),O=!1,R=!1;E.forEach(function(z){var j,q,ee,le;((q=(j=z==null?void 0:z.displaySiblingNode)===null||j===void 0?void 0:j.prev)===null||q===void 0?void 0:q.field)===s&&(O=!0),((le=(ee=z==null?void 0:z.displaySiblingNode)===null||ee===void 0?void 0:ee.next)===null||le===void 0?void 0:le.field)===s&&(R=!0)});var k=Ii(i,"icon.size");return{left:R?k+x:0,right:O?k+C:0}},aB=function(l,s,i){var u=Ii(i,"cell.padding"),g=zP(l,s.field,i);return u.left+u.right+iB(l,s,Mn.COL_CELL,Ii(i,"icon"))+g.left+g.right},UR=function(l){Ni(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s.prototype.handleRestOptions=function(){for(var i=[],u=0;u0?s:new g(u)},bn.comparedTo=bn.cmp=function(l){var s,i,u,g,C=this,x=C.d,E=(l=new C.constructor(l)).d,O=C.s,R=l.s;if(!x||!E)return!O||!R?NaN:O!==R?O:x===E?0:!x^O<0?1:-1;if(!x[0]||!E[0])return x[0]?O:E[0]?-R:0;if(O!==R)return O;if(C.e!==l.e)return C.e>l.e^O<0?1:-1;for(u=x.length,g=E.length,s=0,i=uE[s]^O<0?1:-1;return u===g?0:u>g^O<0?1:-1},bn.cosine=bn.cos=function(){var l,s,i=this,u=i.constructor;return i.d?i.d[0]?(l=u.precision,s=u.rounding,u.precision=l+Math.max(i.e,i.sd())+Ca,u.rounding=1,i=bB(u,t5(u,i)),u.precision=l,u.rounding=s,Ji(wx==2||wx==3?i.neg():i,l,s,!0)):new u(1):new u(NaN)},bn.cubeRoot=bn.cbrt=function(){var l,s,i,u,g,C,x,E,O,R,k=this,z=k.constructor;if(!k.isFinite()||k.isZero())return new z(k);for(Ia=!1,C=k.s*Fc(k.s*k,1/3),!C||Math.abs(C)==1/0?(i=$f(k.d),l=k.e,(C=(l-i.length+1)%3)&&(i+=C==1||C==-2?"0":"00"),C=Fc(i,1/3),l=Ph((l+1)/3)-(l%3==(l<0?-1:2)),C==1/0?i="5e"+l:(i=C.toExponential(),i=i.slice(0,i.indexOf("e")+1)+l),u=new z(i),u.s=k.s):u=new z(C.toString()),x=(l=z.precision)+3;;)if(E=u,O=E.times(E).times(E),R=O.plus(k),u=Zl(R.plus(k).times(E),R.plus(O),x+2,1),$f(E.d).slice(0,x)===(i=$f(u.d)).slice(0,x))if(i=i.slice(x-3,x+1),i=="9999"||!g&&i=="4999"){if(!g&&(Ji(E,l+1,0),E.times(E).times(E).eq(k))){u=E;break}x+=4,g=1}else{(!+i||!+i.slice(1)&&i.charAt(0)=="5")&&(Ji(u,l+1,1),s=!u.times(u).times(u).eq(k));break}return Ia=!0,Ji(u,l,z.rounding,s)},bn.decimalPlaces=bn.dp=function(){var l,s=this.d,i=NaN;if(s){if(l=s.length-1,i=(l-Ph(this.e/Ca))*Ca,l=s[l],l)for(;l%10==0;l/=10)i--;i<0&&(i=0)}return i},bn.dividedBy=bn.div=function(l){return Zl(this,new this.constructor(l))},bn.dividedToIntegerBy=bn.divToInt=function(l){var s=this,i=s.constructor;return Ji(Zl(s,new i(l),0,1,1),i.precision,i.rounding)},bn.equals=bn.eq=function(l){return this.cmp(l)===0},bn.floor=function(){return Ji(new this.constructor(this),this.e+1,3)},bn.greaterThan=bn.gt=function(l){return this.cmp(l)>0},bn.greaterThanOrEqualTo=bn.gte=function(l){var s=this.cmp(l);return s==1||s===0},bn.hyperbolicCosine=bn.cosh=function(){var l,s,i,u,g,C=this,x=C.constructor,E=new x(1);if(!C.isFinite())return new x(C.s?1/0:NaN);if(C.isZero())return E;i=x.precision,u=x.rounding,x.precision=i+Math.max(C.e,C.sd())+4,x.rounding=1,g=C.d.length,g<32?(l=Math.ceil(g/3),s=(1/p6(4,l)).toString()):(l=16,s="2.3283064365386962890625e-10"),C=VT(x,1,C.times(s),new x(1),!0);for(var O,R=l,k=new x(8);R--;)O=C.times(C),C=E.minus(O.times(k.minus(O.times(k))));return Ji(C,x.precision=i,x.rounding=u,!0)},bn.hyperbolicSine=bn.sinh=function(){var l,s,i,u,g=this,C=g.constructor;if(!g.isFinite()||g.isZero())return new C(g);if(s=C.precision,i=C.rounding,C.precision=s+Math.max(g.e,g.sd())+4,C.rounding=1,u=g.d.length,u<3)g=VT(C,2,g,g,!0);else{l=1.4*Math.sqrt(u),l=l>16?16:l|0,g=g.times(1/p6(5,l)),g=VT(C,2,g,g,!0);for(var x,E=new C(5),O=new C(16),R=new C(20);l--;)x=g.times(g),g=g.times(E.plus(x.times(O.times(x).plus(R))))}return C.precision=s,C.rounding=i,Ji(g,s,i,!0)},bn.hyperbolicTangent=bn.tanh=function(){var l,s,i=this,u=i.constructor;return i.isFinite()?i.isZero()?new u(i):(l=u.precision,s=u.rounding,u.precision=l+7,u.rounding=1,Zl(i.sinh(),i.cosh(),u.precision=l,u.rounding=s)):new u(i.s)},bn.inverseCosine=bn.acos=function(){var l,s=this,i=s.constructor,u=s.abs().cmp(1),g=i.precision,C=i.rounding;return u!==-1?u===0?s.isNeg()?Sy(i,g,C):new i(0):new i(NaN):s.isZero()?Sy(i,g+4,C).times(.5):(i.precision=g+6,i.rounding=1,s=s.asin(),l=Sy(i,g+4,C).times(.5),i.precision=g,i.rounding=C,l.minus(s))},bn.inverseHyperbolicCosine=bn.acosh=function(){var l,s,i=this,u=i.constructor;return i.lte(1)?new u(i.eq(1)?0:NaN):i.isFinite()?(l=u.precision,s=u.rounding,u.precision=l+Math.max(Math.abs(i.e),i.sd())+4,u.rounding=1,Ia=!1,i=i.times(i).minus(1).sqrt().plus(i),Ia=!0,u.precision=l,u.rounding=s,i.ln()):new u(i)},bn.inverseHyperbolicSine=bn.asinh=function(){var l,s,i=this,u=i.constructor;return!i.isFinite()||i.isZero()?new u(i):(l=u.precision,s=u.rounding,u.precision=l+2*Math.max(Math.abs(i.e),i.sd())+6,u.rounding=1,Ia=!1,i=i.times(i).plus(1).sqrt().plus(i),Ia=!0,u.precision=l,u.rounding=s,i.ln())},bn.inverseHyperbolicTangent=bn.atanh=function(){var l,s,i,u,g=this,C=g.constructor;return g.isFinite()?g.e>=0?new C(g.abs().eq(1)?g.s/0:g.isZero()?g:NaN):(l=C.precision,s=C.rounding,u=g.sd(),Math.max(u,l)<2*-g.e-1?Ji(new C(g),l,s,!0):(C.precision=i=u-g.e,g=Zl(g.plus(1),new C(1).minus(g),i+l,1),C.precision=l+4,C.rounding=1,g=g.ln(),C.precision=l,C.rounding=s,g.times(.5))):new C(NaN)},bn.inverseSine=bn.asin=function(){var l,s,i,u,g=this,C=g.constructor;return g.isZero()?new C(g):(s=g.abs().cmp(1),i=C.precision,u=C.rounding,s!==-1?s===0?(l=Sy(C,i+4,u).times(.5),l.s=g.s,l):new C(NaN):(C.precision=i+6,C.rounding=1,g=g.div(new C(1).minus(g.times(g)).sqrt().plus(1)).atan(),C.precision=i,C.rounding=u,g.times(2)))},bn.inverseTangent=bn.atan=function(){var l,s,i,u,g,C,x,E,O,R=this,k=R.constructor,z=k.precision,j=k.rounding;if(R.isFinite()){if(R.isZero())return new k(R);if(R.abs().eq(1)&&z+4<=KR)return x=Sy(k,z+4,j).times(.25),x.s=R.s,x}else{if(!R.s)return new k(NaN);if(z+4<=KR)return x=Sy(k,z+4,j).times(.5),x.s=R.s,x}for(k.precision=E=z+10,k.rounding=1,i=Math.min(28,E/Ca+2|0),l=i;l;--l)R=R.div(R.times(R).plus(1).sqrt().plus(1));for(Ia=!1,s=Math.ceil(E/Ca),u=1,O=R.times(R),x=new k(R),g=R;l!==-1;)if(g=g.times(O),C=x.minus(g.div(u+=2)),g=g.times(O),x=C.plus(g.div(u+=2)),x.d[s]!==void 0)for(l=s;x.d[l]===C.d[l]&&l--;);return i&&(x=x.times(2<this.d.length-2},bn.isNaN=function(){return!this.s},bn.isNegative=bn.isNeg=function(){return this.s<0},bn.isPositive=bn.isPos=function(){return this.s>0},bn.isZero=function(){return!!this.d&&this.d[0]===0},bn.lessThan=bn.lt=function(l){return this.cmp(l)<0},bn.lessThanOrEqualTo=bn.lte=function(l){return this.cmp(l)<1},bn.logarithm=bn.log=function(l){var s,i,u,g,C,x,E,O,R=this,k=R.constructor,z=k.precision,j=k.rounding,q=5;if(l==null)l=new k(10),s=!0;else{if(l=new k(l),i=l.d,l.s<0||!i||!i[0]||l.eq(1))return new k(NaN);s=l.eq(10)}if(i=R.d,R.s<0||!i||!i[0]||R.eq(1))return new k(i&&!i[0]?-1/0:R.s!=1?NaN:i?0:1/0);if(s)if(i.length>1)C=!0;else{for(g=i[0];g%10===0;)g/=10;C=g!==1}if(Ia=!1,E=z+q,x=T_(R,E),u=s?v6(k,E+10):T_(l,E),O=Zl(x,u,E,1),MA(O.d,g=z,j))do if(E+=10,x=T_(R,E),u=s?v6(k,E+10):T_(l,E),O=Zl(x,u,E,1),!C){+$f(O.d).slice(g+1,g+15)+1==1e14&&(O=Ji(O,z+1,0));break}while(MA(O.d,g+=10,j));return Ia=!0,Ji(O,z,j)},bn.minus=bn.sub=function(l){var s,i,u,g,C,x,E,O,R,k,z,j,q=this,ee=q.constructor;if(l=new ee(l),!q.d||!l.d)return!q.s||!l.s?l=new ee(NaN):q.d?l.s=-l.s:l=new ee(l.d||q.s!==l.s?q:NaN),l;if(q.s!=l.s)return l.s=-l.s,q.plus(l);if(R=q.d,j=l.d,E=ee.precision,O=ee.rounding,!R[0]||!j[0]){if(j[0])l.s=-l.s;else if(R[0])l=new ee(q);else return new ee(O===3?-0:0);return Ia?Ji(l,E,O):l}if(i=Ph(l.e/Ca),k=Ph(q.e/Ca),R=R.slice(),C=k-i,C){for(z=C<0,z?(s=R,C=-C,x=j.length):(s=j,i=k,x=R.length),u=Math.max(Math.ceil(E/Ca),x)+2,C>u&&(C=u,s.length=1),s.reverse(),u=C;u--;)s.push(0);s.reverse()}else{for(u=R.length,x=j.length,z=u0;--u)R[x++]=0;for(u=j.length;u>C;){if(R[--u]x?C+1:x+1,g>x&&(g=x,i.length=1),i.reverse();g--;)i.push(0);i.reverse()}for(x=R.length,g=k.length,x-g<0&&(g=x,i=k,k=R,R=i),s=0;g;)s=(R[--g]=R[g]+k[g]+s)/xy|0,R[g]%=xy;for(s&&(R.unshift(s),++u),x=R.length;R[--x]==0;)R.pop();return l.d=R,l.e=d6(R,u),Ia?Ji(l,E,O):l},bn.precision=bn.sd=function(l){var s,i=this;if(l!==void 0&&l!==!!l&&l!==1&&l!==0)throw Error(E_+l);return i.d?(s=KP(i.d),l&&i.e+1>s&&(s=i.e+1)):s=NaN,s},bn.round=function(){var l=this,s=l.constructor;return Ji(new s(l),l.e+1,s.rounding)},bn.sine=bn.sin=function(){var l,s,i=this,u=i.constructor;return i.isFinite()?i.isZero()?new u(i):(l=u.precision,s=u.rounding,u.precision=l+Math.max(i.e,i.sd())+Ca,u.rounding=1,i=xB(u,t5(u,i)),u.precision=l,u.rounding=s,Ji(wx>2?i.neg():i,l,s,!0)):new u(NaN)},bn.squareRoot=bn.sqrt=function(){var l,s,i,u,g,C,x=this,E=x.d,O=x.e,R=x.s,k=x.constructor;if(R!==1||!E||!E[0])return new k(!R||R<0&&(!E||E[0])?NaN:E?x:1/0);for(Ia=!1,R=Math.sqrt(+x),R==0||R==1/0?(s=$f(E),(s.length+O)%2==0&&(s+="0"),R=Math.sqrt(s),O=Ph((O+1)/2)-(O<0||O%2),R==1/0?s="5e"+O:(s=R.toExponential(),s=s.slice(0,s.indexOf("e")+1)+O),u=new k(s)):u=new k(R.toString()),i=(O=k.precision)+3;;)if(C=u,u=C.plus(Zl(x,C,i+2,1)).times(.5),$f(C.d).slice(0,i)===(s=$f(u.d)).slice(0,i))if(s=s.slice(i-3,i+1),s=="9999"||!g&&s=="4999"){if(!g&&(Ji(C,O+1,0),C.times(C).eq(x))){u=C;break}i+=4,g=1}else{(!+s||!+s.slice(1)&&s.charAt(0)=="5")&&(Ji(u,O+1,1),l=!u.times(u).eq(x));break}return Ia=!0,Ji(u,O,k.rounding,l)},bn.tangent=bn.tan=function(){var l,s,i=this,u=i.constructor;return i.isFinite()?i.isZero()?new u(i):(l=u.precision,s=u.rounding,u.precision=l+10,u.rounding=1,i=i.sin(),i.s=1,i=Zl(i,new u(1).minus(i.times(i)).sqrt(),l+10,0),u.precision=l,u.rounding=s,Ji(wx==2||wx==4?i.neg():i,l,s,!0)):new u(NaN)},bn.times=bn.mul=function(l){var s,i,u,g,C,x,E,O,R,k=this,z=k.constructor,j=k.d,q=(l=new z(l)).d;if(l.s*=k.s,!j||!j[0]||!q||!q[0])return new z(!l.s||j&&!j[0]&&!q||q&&!q[0]&&!j?NaN:!j||!q?l.s/0:l.s*0);for(i=Ph(k.e/Ca)+Ph(l.e/Ca),O=j.length,R=q.length,O=0;){for(s=0,g=O+u;g>u;)E=C[g]+q[u]*j[g-u-1]+s,C[g--]=E%xy|0,s=E/xy|0;C[g]=(C[g]+s)%xy|0}for(;!C[--x];)C.pop();return s?++i:C.shift(),l.d=C,l.e=d6(C,i),Ia?Ji(l,z.precision,z.rounding):l},bn.toBinary=function(l,s){return JR(this,2,l,s)},bn.toDecimalPlaces=bn.toDP=function(l,s){var i=this,u=i.constructor;return i=new u(i),l===void 0?i:(Sv(l,0,__),s===void 0?s=u.rounding:Sv(s,0,8),Ji(i,l+i.e+1,s))},bn.toExponential=function(l,s){var i,u=this,g=u.constructor;return l===void 0?i=H1(u,!0):(Sv(l,0,__),s===void 0?s=g.rounding:Sv(s,0,8),u=Ji(new g(u),l+1,s),i=H1(u,!0,l+1)),u.isNeg()&&!u.isZero()?"-"+i:i},bn.toFixed=function(l,s){var i,u,g=this,C=g.constructor;return l===void 0?i=H1(g):(Sv(l,0,__),s===void 0?s=C.rounding:Sv(s,0,8),u=Ji(new C(g),l+g.e+1,s),i=H1(u,!1,l+u.e+1)),g.isNeg()&&!g.isZero()?"-"+i:i},bn.toFraction=function(l){var s,i,u,g,C,x,E,O,R,k,z,j,q=this,ee=q.d,le=q.constructor;if(!ee)return new le(q);if(R=i=new le(1),u=O=new le(0),s=new le(u),C=s.e=KP(ee)-q.e-1,x=C%Ca,s.d[0]=Fc(10,x<0?Ca+x:x),l==null)l=C>0?s:R;else{if(E=new le(l),!E.isInt()||E.lt(R))throw Error(E_+E);l=E.gt(s)?C>0?s:R:E}for(Ia=!1,E=new le($f(ee)),k=le.precision,le.precision=C=ee.length*Ca*2;z=Zl(E,s,0,1,1),g=i.plus(z.times(u)),g.cmp(l)!=1;)i=u,u=g,g=R,R=O.plus(z.times(g)),O=g,g=s,s=E.minus(z.times(g)),E=g;return g=Zl(l.minus(i),u,0,1,1),O=O.plus(g.times(R)),i=i.plus(g.times(u)),O.s=R.s=q.s,j=Zl(R,u,C,1).minus(q).abs().cmp(Zl(O,i,C,1).minus(q).abs())<1?[R,u]:[O,i],le.precision=k,Ia=!0,j},bn.toHexadecimal=bn.toHex=function(l,s){return JR(this,16,l,s)},bn.toNearest=function(l,s){var i=this,u=i.constructor;if(i=new u(i),l==null){if(!i.d)return i;l=new u(1),s=u.rounding}else{if(l=new u(l),s===void 0?s=u.rounding:Sv(s,0,8),!i.d)return l.s?i:l;if(!l.d)return l.s&&(l.s=i.s),l}return l.d[0]?(Ia=!1,i=Zl(i,l,0,s,1).times(l),Ia=!0,Ji(i)):(l.s=i.s,i=l),i},bn.toNumber=function(){return+this},bn.toOctal=function(l,s){return JR(this,8,l,s)},bn.toPower=bn.pow=function(l){var s,i,u,g,C,x,E=this,O=E.constructor,R=+(l=new O(l));if(!E.d||!l.d||!E.d[0]||!l.d[0])return new O(Fc(+E,R));if(E=new O(E),E.eq(1))return E;if(u=O.precision,C=O.rounding,l.eq(1))return Ji(E,u,C);if(s=Ph(l.e/Ca),s>=l.d.length-1&&(i=R<0?-R:R)<=yB)return g=qP(O,E,i,u),l.s<0?new O(1).div(g):Ji(g,u,C);if(x=E.s,x<0){if(sO.maxE+1||s0?x/0:0):(Ia=!1,O.rounding=E.s=1,i=Math.min(12,(s+"").length),g=qR(l.times(T_(E,u+i)),u),g.d&&(g=Ji(g,u+5,1),MA(g.d,u,C)&&(s=u+10,g=Ji(qR(l.times(T_(E,s+i)),s),s+5,1),+$f(g.d).slice(u+1,u+15)+1==1e14&&(g=Ji(g,u+1,0)))),g.s=x,Ia=!0,O.rounding=C,Ji(g,u,C))},bn.toPrecision=function(l,s){var i,u=this,g=u.constructor;return l===void 0?i=H1(u,u.e<=g.toExpNeg||u.e>=g.toExpPos):(Sv(l,1,__),s===void 0?s=g.rounding:Sv(s,0,8),u=Ji(new g(u),l,s),i=H1(u,l<=u.e||u.e<=g.toExpNeg,l)),u.isNeg()&&!u.isZero()?"-"+i:i},bn.toSignificantDigits=bn.toSD=function(l,s){var i=this,u=i.constructor;return l===void 0?(l=u.precision,s=u.rounding):(Sv(l,1,__),s===void 0?s=u.rounding:Sv(s,0,8)),Ji(new u(i),l,s)},bn.toString=function(){var l=this,s=l.constructor,i=H1(l,l.e<=s.toExpNeg||l.e>=s.toExpPos);return l.isNeg()&&!l.isZero()?"-"+i:i},bn.truncated=bn.trunc=function(){return Ji(new this.constructor(this),this.e+1,1)},bn.valueOf=bn.toJSON=function(){var l=this,s=l.constructor,i=H1(l,l.e<=s.toExpNeg||l.e>=s.toExpPos);return l.isNeg()?"-"+i:i};function $f(l){var s,i,u,g=l.length-1,C="",x=l[0];if(g>0){for(C+=x,s=1;si)throw Error(E_+l)}function MA(l,s,i,u){var g,C,x,E;for(C=l[0];C>=10;C/=10)--s;return--s<0?(s+=Ca,g=0):(g=Math.ceil((s+1)/Ca),s%=Ca),C=Fc(10,Ca-s),E=l[g]%C|0,u==null?s<3?(s==0?E=E/100|0:s==1&&(E=E/10|0),x=i<4&&E==99999||i>3&&E==49999||E==5e4||E==0):x=(i<4&&E+1==C||i>3&&E+1==C/2)&&(l[g+1]/C/100|0)==Fc(10,s-2)-1||(E==C/2||E==0)&&(l[g+1]/C/100|0)==0:s<4?(s==0?E=E/1e3|0:s==1?E=E/100|0:s==2&&(E=E/10|0),x=(u||i<4)&&E==9999||!u&&i>3&&E==4999):x=((u||i<4)&&E+1==C||!u&&i>3&&E+1==C/2)&&(l[g+1]/C/1e3|0)==Fc(10,s-3)-1,x}function h6(l,s,i){for(var u,g=[0],C,x=0,E=l.length;xi-1&&(g[u+1]===void 0&&(g[u+1]=0),g[u+1]+=g[u]/i|0,g[u]%=i)}return g.reverse()}function bB(l,s){var i,u,g;if(s.isZero())return s;u=s.d.length,u<32?(i=Math.ceil(u/3),g=(1/p6(4,i)).toString()):(i=16,g="2.3283064365386962890625e-10"),l.precision+=i,s=VT(l,1,s.times(g),new l(1));for(var C=i;C--;){var x=s.times(s);s=x.times(x).minus(x).times(8).plus(1)}return l.precision-=i,s}var Zl=function(){function l(u,g,C){var x,E=0,O=u.length;for(u=u.slice();O--;)x=u[O]*g+E,u[O]=x%C|0,E=x/C|0;return E&&u.unshift(E),u}function s(u,g,C,x){var E,O;if(C!=x)O=C>x?1:-1;else for(E=O=0;Eg[E]?1:-1;break}return O}function i(u,g,C,x){for(var E=0;C--;)u[C]-=E,E=u[C]1;)u.shift()}return function(u,g,C,x,E,O){var R,k,z,j,q,ee,le,ye,Me,We,Ue,Ze,Ut,mr,xr,Kr,mn,Vn,In,Un,di=u.constructor,Bi=u.s==g.s?1:-1,Rn=u.d,Kn=g.d;if(!Rn||!Rn[0]||!Kn||!Kn[0])return new di(!u.s||!g.s||(Rn?Kn&&Rn[0]==Kn[0]:!Kn)?NaN:Rn&&Rn[0]==0||!Kn?Bi*0:Bi/0);for(O?(q=1,k=u.e-g.e):(O=xy,q=Ca,k=Ph(u.e/q)-Ph(g.e/q)),In=Kn.length,mn=Rn.length,Me=new di(Bi),We=Me.d=[],z=0;Kn[z]==(Rn[z]||0);z++);if(Kn[z]>(Rn[z]||0)&&k--,C==null?(mr=C=di.precision,x=di.rounding):E?mr=C+(u.e-g.e)+1:mr=C,mr<0)We.push(1),ee=!0;else{if(mr=mr/q+2|0,z=0,In==1){for(j=0,Kn=Kn[0],mr++;(z1&&(Kn=l(Kn,j,O),Rn=l(Rn,j,O),In=Kn.length,mn=Rn.length),Kr=In,Ue=Rn.slice(0,In),Ze=Ue.length;Ze=O/2&&++Vn;do j=0,R=s(Kn,Ue,In,Ze),R<0?(Ut=Ue[0],In!=Ze&&(Ut=Ut*O+(Ue[1]||0)),j=Ut/Vn|0,j>1?(j>=O&&(j=O-1),le=l(Kn,j,O),ye=le.length,Ze=Ue.length,R=s(le,Ue,ye,Ze),R==1&&(j--,i(le,In=10;j/=10)z++;Me.e=z+k*q-1,Ji(Me,E?C+Me.e+1:C,x,ee)}return Me}}();function Ji(l,s,i,u){var g,C,x,E,O,R,k,z,j,q=l.constructor;e:if(s!=null){if(z=l.d,!z)return l;for(g=1,E=z[0];E>=10;E/=10)g++;if(C=s-g,C<0)C+=Ca,x=s,k=z[j=0],O=k/Fc(10,g-x-1)%10|0;else if(j=Math.ceil((C+1)/Ca),E=z.length,j>=E)if(u){for(;E++<=j;)z.push(0);k=O=0,g=1,C%=Ca,x=C-Ca+1}else break e;else{for(k=E=z[j],g=1;E>=10;E/=10)g++;C%=Ca,x=C-Ca+g,O=x<0?0:k/Fc(10,g-x-1)%10|0}if(u=u||s<0||z[j+1]!==void 0||(x<0?k:k%Fc(10,g-x-1)),R=i<4?(O||u)&&(i==0||i==(l.s<0?3:2)):O>5||O==5&&(i==4||u||i==6&&(C>0?x>0?k/Fc(10,g-x):0:z[j-1])%10&1||i==(l.s<0?8:7)),s<1||!z[0])return z.length=0,R?(s-=l.e+1,z[0]=Fc(10,(Ca-s%Ca)%Ca),l.e=-s||0):z[0]=l.e=0,l;if(C==0?(z.length=j,E=1,j--):(z.length=j+1,E=Fc(10,Ca-C),z[j]=x>0?(k/Fc(10,g-x)%Fc(10,x)|0)*E:0),R)for(;;)if(j==0){for(C=1,x=z[0];x>=10;x/=10)C++;for(x=z[0]+=E,E=1;x>=10;x/=10)E++;C!=E&&(l.e++,z[0]==xy&&(z[0]=1));break}else{if(z[j]+=E,z[j]!=xy)break;z[j--]=0,E=1}for(C=z.length;z[--C]===0;)z.pop()}return Ia&&(l.e>q.maxE?(l.d=null,l.e=NaN):l.e0?C=C.charAt(0)+"."+C.slice(1)+M_(u):x>1&&(C=C.charAt(0)+"."+C.slice(1)),C=C+(l.e<0?"e":"e+")+l.e):g<0?(C="0."+M_(-g-1)+C,i&&(u=i-x)>0&&(C+=M_(u))):g>=x?(C+=M_(g+1-x),i&&(u=i-g-1)>0&&(C=C+"."+M_(u))):((u=g+1)0&&(g+1===x&&(C+="."),C+=M_(u))),C}function d6(l,s){var i=l[0];for(s*=Ca;i>=10;i/=10)s++;return s}function v6(l,s,i){if(s>CB)throw Ia=!0,i&&(l.precision=i),Error(jP);return Ji(new l(u6),s,1,!0)}function Sy(l,s,i){if(s>KR)throw Error(jP);return Ji(new l(c6),s,i,!0)}function KP(l){var s=l.length-1,i=s*Ca+1;if(s=l[s],s){for(;s%10==0;s/=10)i--;for(s=l[0];s>=10;s/=10)i++}return i}function M_(l){for(var s="";l--;)s+="0";return s}function qP(l,s,i,u){var g,C=new l(1),x=Math.ceil(u/Ca+4);for(Ia=!1;;){if(i%2&&(C=C.times(s),r5(C.d,x)&&(g=!0)),i=Ph(i/2),i===0){i=C.d.length-1,g&&C.d[i]===0&&++C.d[i];break}s=s.times(s),r5(s.d,x)}return Ia=!0,C}function QP(l){return l.d[l.d.length-1]&1}function JP(l,s,i){for(var u,g=new l(s[0]),C=0;++C17)return new j(l.d?l.d[0]?l.s<0?0:1/0:1:l.s?l.s<0?0:l:NaN);for(s==null?(Ia=!1,O=ee):O=s,E=new j(.03125);l.e>-2;)l=l.times(E),z+=5;for(u=Math.log(Fc(2,z))/Math.LN10*2+5|0,O+=u,i=C=x=new j(1),j.precision=O;;){if(C=Ji(C.times(l),O,1),i=i.times(++k),E=x.plus(Zl(C,i,O,1)),$f(E.d).slice(0,O)===$f(x.d).slice(0,O)){for(g=z;g--;)x=Ji(x.times(x),O,1);if(s==null)if(R<3&&MA(x.d,O-u,q,R))j.precision=O+=10,i=C=E=new j(1),k=0,R++;else return Ji(x,j.precision=ee,q,Ia=!0);else return j.precision=ee,x}x=E}}function T_(l,s){var i,u,g,C,x,E,O,R,k,z,j,q=1,ee=10,le=l,ye=le.d,Me=le.constructor,We=Me.rounding,Ue=Me.precision;if(le.s<0||!ye||!ye[0]||!le.e&&ye[0]==1&&ye.length==1)return new Me(ye&&!ye[0]?-1/0:le.s!=1?NaN:ye?0:le);if(s==null?(Ia=!1,k=Ue):k=s,Me.precision=k+=ee,i=$f(ye),u=i.charAt(0),Math.abs(C=le.e)<15e14){for(;u<7&&u!=1||u==1&&i.charAt(1)>3;)le=le.times(l),i=$f(le.d),u=i.charAt(0),q++;C=le.e,u>1?(le=new Me("0."+i),C++):le=new Me(u+"."+i.slice(1))}else return R=v6(Me,k+2,Ue).times(C+""),le=T_(new Me(u+"."+i.slice(1)),k-ee).plus(R),Me.precision=Ue,s==null?Ji(le,Ue,We,Ia=!0):le;for(z=le,O=x=le=Zl(le.minus(1),le.plus(1),k,1),j=Ji(le.times(le),k,1),g=3;;){if(x=Ji(x.times(j),k,1),R=O.plus(Zl(x,new Me(g),k,1)),$f(R.d).slice(0,k)===$f(O.d).slice(0,k))if(O=O.times(2),C!==0&&(O=O.plus(v6(Me,k+2,Ue).times(C+""))),O=Zl(O,new Me(q),k,1),s==null)if(MA(O.d,k-ee,We,E))Me.precision=k+=ee,R=x=le=Zl(z.minus(1),z.plus(1),k,1),j=Ji(le.times(le),k,1),g=E=1;else return Ji(O,Me.precision=Ue,We,Ia=!0);else return Me.precision=Ue,O;O=R,g+=2}}function e5(l){return String(l.s*l.s/0)}function QR(l,s){var i,u,g;for((i=s.indexOf("."))>-1&&(s=s.replace(".","")),(u=s.search(/e/i))>0?(i<0&&(i=u),i+=+s.slice(u+1),s=s.substring(0,u)):i<0&&(i=s.length),u=0;s.charCodeAt(u)===48;u++);for(g=s.length;s.charCodeAt(g-1)===48;--g);if(s=s.slice(u,g),s){if(g-=u,l.e=i=i-u-1,l.d=[],u=(i+1)%Ca,i<0&&(u+=Ca),ul.constructor.maxE?(l.d=null,l.e=NaN):l.e-1){if(s=s.replace(/(\d)_(?=\d)/g,"$1"),ZP.test(s))return QR(l,s)}else if(s==="Infinity"||s==="NaN")return+s||(l.s=NaN),l.e=NaN,l.d=null,l;if(gB.test(s))i=16,s=s.toLowerCase();else if(pB.test(s))i=2;else if(mB.test(s))i=8;else throw Error(E_+s);for(C=s.search(/p/i),C>0?(O=+s.slice(C+1),s=s.substring(2,C)):s=s.slice(2),C=s.indexOf("."),x=C>=0,u=l.constructor,x&&(s=s.replace(".",""),E=s.length,C=E-C,g=qP(u,new u(i),C,C*2)),R=h6(s,i,xy),k=R.length-1,C=k;R[C]===0;--C)R.pop();return C<0?new u(l.s*0):(l.e=d6(R,k),l.d=R,Ia=!1,x&&(l=Zl(l,g,E*4)),O&&(l=l.times(Math.abs(O)<54?Fc(2,O):_y.pow(2,O))),Ia=!0,l)}function xB(l,s){var i,u=s.d.length;if(u<3)return s.isZero()?s:VT(l,2,s,s);i=1.4*Math.sqrt(u),i=i>16?16:i|0,s=s.times(1/p6(5,i)),s=VT(l,2,s,s);for(var g,C=new l(5),x=new l(16),E=new l(20);i--;)g=s.times(s),s=s.times(C.plus(g.times(x.times(g).minus(E))));return s}function VT(l,s,i,u,g){var C,x,E,O,R=l.precision,k=Math.ceil(R/Ca);for(Ia=!1,O=i.times(i),E=new l(u);;){if(x=Zl(E.times(O),new l(s++*s++),R,1),E=g?u.plus(x):u.minus(x),u=Zl(x.times(O),new l(s++*s++),R,1),x=E.plus(u),x.d[k]!==void 0){for(C=k;x.d[C]===E.d[C]&&C--;);if(C==-1)break}C=E,E=u,u=x,x=C}return Ia=!0,x.d.length=k+1,x}function p6(l,s){for(var i=l;--s;)i*=l;return i}function t5(l,s){var i,u=s.s<0,g=Sy(l,l.precision,1),C=g.times(.5);if(s=s.abs(),s.lte(C))return wx=u?4:1,s;if(i=s.divToInt(g),i.isZero())wx=u?3:2;else{if(s=s.minus(i.times(g)),s.lte(C))return wx=QP(i)?u?2:3:u?4:1,s;wx=QP(i)?u?1:4:u?3:2}return s.minus(g).abs()}function JR(l,s,i,u){var g,C,x,E,O,R,k,z,j,q=l.constructor,ee=i!==void 0;if(ee?(Sv(i,1,__),u===void 0?u=q.rounding:Sv(u,0,8)):(i=q.precision,u=q.rounding),!l.isFinite())k=e5(l);else{for(k=H1(l),x=k.indexOf("."),ee?(g=2,s==16?i=i*4-3:s==8&&(i=i*3-2)):g=s,x>=0&&(k=k.replace(".",""),j=new q(1),j.e=k.length-x,j.d=h6(H1(j),10,g),j.e=j.d.length),z=h6(k,10,g),C=O=z.length;z[--O]==0;)z.pop();if(!z[0])k=ee?"0p+0":"0";else{if(x<0?C--:(l=new q(l),l.d=z,l.e=C,l=Zl(l,j,i,u,0,g),z=l.d,C=l.e,R=YP),x=z[i],E=g/2,R=R||z[i+1]!==void 0,R=u<4?(x!==void 0||R)&&(u===0||u===(l.s<0?3:2)):x>E||x===E&&(u===4||R||u===6&&z[i-1]&1||u===(l.s<0?8:7)),z.length=i,R)for(;++z[--i]>g-1;)z[i]=0,i||(++C,z.unshift(1));for(O=z.length;!z[O-1];--O);for(x=0,k="";x1)if(s==16||s==8){for(x=s==16?4:3,--O;O%x;O++)k+="0";for(z=h6(k,g,s),O=z.length;!z[O-1];--O);for(x=1,k="1.";xO)for(C-=O;C--;)k+="0";else Cs)return l.length=s,!0}function SB(l){return new this(l).abs()}function _B(l){return new this(l).acos()}function EB(l){return new this(l).acosh()}function MB(l,s){return new this(l).plus(s)}function TB(l){return new this(l).asin()}function OB(l){return new this(l).asinh()}function AB(l){return new this(l).atan()}function IB(l){return new this(l).atanh()}function RB(l,s){l=new this(l),s=new this(s);var i,u=this.precision,g=this.rounding,C=u+4;return!l.s||!s.s?i=new this(NaN):!l.d&&!s.d?(i=Sy(this,C,1).times(s.s>0?.25:.75),i.s=l.s):!s.d||l.isZero()?(i=s.s<0?Sy(this,u,g):new this(0),i.s=l.s):!l.d||s.isZero()?(i=Sy(this,C,1).times(.5),i.s=l.s):s.s<0?(this.precision=C,this.rounding=1,i=this.atan(Zl(l,s,C,1)),s=Sy(this,C,1),this.precision=u,this.rounding=g,i=l.s<0?i.minus(s):i.plus(s)):i=this.atan(Zl(l,s,C,1)),i}function DB(l){return new this(l).cbrt()}function LB(l){return Ji(l=new this(l),l.e+1,2)}function PB(l,s,i){return new this(l).clamp(s,i)}function BB(l){if(!l||typeof l!="object")throw Error(f6+"Object expected");var s,i,u,g=l.defaults===!0,C=["precision",1,__,"rounding",0,8,"toExpNeg",-jT,0,"toExpPos",0,jT,"maxE",0,jT,"minE",-jT,0,"modulo",0,9];for(s=0;s=C[s+1]&&u<=C[s+2])this[i]=u;else throw Error(E_+i+": "+u);if(i="crypto",g&&(this[i]=ZR[i]),(u=l[i])!==void 0)if(u===!0||u===!1||u===0||u===1)if(u)if(typeof crypto!="undefined"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[i]=!0;else throw Error(VP);else this[i]=!1;else throw Error(E_+i+": "+u);return this}function kB(l){return new this(l).cos()}function FB(l){return new this(l).cosh()}function n5(l){var s,i,u;function g(C){var x,E,O,R=this;if(!(R instanceof g))return new g(C);if(R.constructor=g,i5(C)){R.s=C.s,Ia?!C.d||C.e>g.maxE?(R.e=NaN,R.d=null):C.e=10;E/=10)x++;Ia?x>g.maxE?(R.e=NaN,R.d=null):x=429e7?s[C]=crypto.getRandomValues(new Uint32Array(1))[0]:E[C++]=g%1e7;else if(crypto.randomBytes){for(s=crypto.randomBytes(u*=4);C=214e7?crypto.randomBytes(4).copy(s,C):(E.push(g%1e7),C+=4);C=u/4}else throw Error(VP);else for(;C=10;g/=10)u++;u=Kr&&(x=Kr-Ue),E+Ze>=mn&&(E=mn-Ze),{x,y:E}},s5=function(l){return ur({operator:{onClick:Zd,menus:[]},enterable:!0,enableFormat:!0},l)},tD=function(l){return ur(ur({},l==null?void 0:l.colQuery),l==null?void 0:l.rowQuery)},g6=function(l,s){var i;if(l){var u=s.style,g=s.className,C=g===void 0?[]:g,x=s.visible;if(u&&Object.assign(l.style,u),C.length){var E=C.filter(Boolean);(i=l.classList).add.apply(i,nn([],kr(E),!1))}l.classList.toggle(yR,x),l.classList.toggle(YI,!x)}},hk=function(l){var s=Rh(l)&&Number.isNaN(l),i=l==="";return hu(l)||s||i?"-":l},rD=function(l,s){var i,u=(i=l==null?void 0:l.dataSet)===null||i===void 0?void 0:i.getFieldFormatter(s);return function(g,C){return hk(u(g,C))}},m6=function(l,s){var i,u=s.data,g=s.field,C=s.valueField,x=s.useCompleteDataForFormatter,E=x===void 0?!0:x,O=(i=l==null?void 0:l.dataSet)===null||i===void 0?void 0:i.getFieldName(g),R=rD(l,g),k=ga(u[g])?JSON.stringify(u[g]):u[g],z=R(C||k,E?u:void 0);return{name:O,value:z}},u5=function(l,s,i){var u=h(ic([],s),function(C){return C!==ra&&i[C]}),g=Ee(u,function(C){return m6(l,{data:i,field:C,useCompleteDataForFormatter:!1})});return g},dk=function(l,s,i){var u,g,C,x,E=(i||{}).isTotals,O=[],R=[];if(s){var k=(g=(u=l==null?void 0:l.dataSet)===null||u===void 0?void 0:u.fields)===null||g===void 0?void 0:g.columns,z=(x=(C=l==null?void 0:l.dataSet)===null||C===void 0?void 0:C.fields)===null||x===void 0?void 0:x.rows;O=u5(l,kM(k||[]),s),R=u5(l,z,s)}return Nn(O)&&Nn(R)&&E&&(O=[{value:vu("\u603B\u8BA1")}]),{cols:O,rows:R}},vk=function(l,s,i){if(s){var u=i.isTotals,g=s[ra],C=s[g],x=[];if(u)x.push(m6(l,{data:s,field:g,valueField:Ii(s,Es)}));else if(ck(C)&&l.getTooltipDataItemMappingCallback()){var E=xP(s,l.getTooltipDataItemMappingCallback());Qi(E,function(O,R){x.push(m6(l,{data:E,field:R}))})}else x.push(m6(l,{data:s,field:g}));return x}},pk=function(l,s,i){var u;if(i)return vu("\u603B\u8BA1");var g=(u=l==null?void 0:l.dataSet)===null||u===void 0?void 0:u.getFieldName(s);return g&&g!=="undefined"?g:""},c5=function(l,s,i){i===void 0&&(i=!0);var u=[];return Qi(s,function(g,C){Qi(l,function(x){!i&&x.colIndex!==-1?u.push([C,x.colIndex]):i&&x.rowIndex!==-1&&u.push([x.rowIndex,C])})}),u},gk=function(l,s){var i,u=s.rowLeafNodes,g=s.colLeafNodes,C=l.interaction.getState(),x=C.nodes,E=x===void 0?[]:x,O=C.cells,R=O===void 0?[]:O,k=(i=R==null?void 0:R[0])===null||i===void 0?void 0:i.type;return k===Mn.COL_CELL?c5(E,u,!1):k===Mn.ROW_CELL?c5(E,g):[]},mk=function(l,s,i){var u,g=(u=l.facet)===null||u===void 0?void 0:u.layoutResult,C=function(O){var R=s==null?void 0:s.getMeta(),k=R==null?void 0:R.isTotals,z=(s==null?void 0:s.cellType)===Mn.COL_CELL,j=(s==null?void 0:s.cellType)===Mn.ROW_CELL;if(!z&&!j)return!1;var q=g.colNodes.find(function(ye){return ye.colIndex===O.colIndex}),ee=g.rowNodes.find(function(ye){return ye.rowIndex===O.rowIndex}),le=z?ee==null?void 0:ee.isTotals:q==null?void 0:q.isTotals;return!k&&(O==null?void 0:O.isTotals)||k&&le};if(i){var x=gk(l,g);return Mh(Ee(x,function(O){var R=kr(O,2),k=R[0],z=R[1],j=g.getCellMeta(k,z);if(!C(j))return(j==null?void 0:j.data)||tD(j)}))}var E=l.interaction.getCells();return E.filter(function(O){var R=g.getCellMeta(O.rowIndex,O.colIndex);return!C(R)}).map(function(O){var R=g.getCellMeta(O.rowIndex,O.colIndex);return(R==null?void 0:R.data)||tD(R)})},yk=function(l){var s=l.spreadsheet,i=l.targetCell,u=l.options,g=u===void 0?{}:u,C=[],x={},E=s.isTableMode();if(E&&(g!=null&&g.showSingleTips)){var O=s.dataSet.getMultiData({});return[{selectedData:O,name:"",value:""}]}var R=mk(s,i,g.showSingleTips);return Qi(R,function(k){var z;x[k==null?void 0:k[ra]]?(z=x[k==null?void 0:k[ra]])===null||z===void 0||z.push(k):x[k==null?void 0:k[ra]]=[k]}),j2(x,function(k,z){var j,q=pk(s,z,g==null?void 0:g.isTotals),ee="",le="";if(H2(k,function(Ze){return a5(Ii(Ze,Es))})){var ye=s.options.placeholder,Me=NM(x,ye);ee=Me,le=Me}else{var We=rD(s,z),Ue=o5(k,Es);le=Ue,ee=(j=We==null?void 0:We(Ue,k))!==null&&j!==void 0?j:parseFloat(Ue.toPrecision(sC))}C.push({selectedData:k,name:q,value:ee,originValue:le})}),C},Ck=function(l){if(l){var s=l.getMeta();if(!s.isTotals){var i=m(s.spreadsheet.dataCfg.meta,{field:s.field||s.value||s.valueField}),u=i==null?void 0:i.field;return s.spreadsheet.dataSet.getFieldDescription(u)}}},bk=function(l){var s=l.spreadsheet,i=l.cellInfos,u=i===void 0?[]:i,g=l.options,C=g===void 0?{}:g,x=l.targetCell,E=null,O=null,R=null,k=Ck(x),z=u[0]||{};if(!(C!=null&&C.hideSummary))E=yk({spreadsheet:s,options:C,targetCell:x});else if(C.showSingleTips){var j=rD(s,z.valueField),q=j(z.value),ee=C.enableFormat?s.dataSet.getFieldName(z.value)||q:s.dataSet.getFieldName(z.valueField);z.name=ee||""}else O=dk(s,z,C),R=vk(s,z,C);var le=z||{},ye=le.interpretation,Me=le.infos,We=le.tips,Ue=le.name;return{summaries:E,interpretation:ye,infos:Me,tips:We,name:Ue,headInfo:O,details:R,description:k}},wk=function(l){return Ee(l,function(s){var i=s.getMeta();return cm({},i.query||{},C3(i,["colIndex","rowIndex"]))})},nD=function(l){if(!l.interaction.isSelectedState())return[];var s=l.dataCfg.fields.valueInCols;return l.interaction.getCells().reduce(function(i,u){var g=l.facet.layoutResult.getCellMeta(u==null?void 0:u.rowIndex,u==null?void 0:u.colIndex),C=tD(g);if(Nn(g)||Nn(C))return[];var x=ur(ur({},C),{colIndex:s?g.colIndex:null,rowIndex:s?null:g.rowIndex}),E=i.find(function(O){return ff(x,O)});return E||i.push(x),i},[])},xk=function(l,s){l===void 0&&(l={});var i=function(E){return N1(l,E)},u=l.col,g=l.row,C=l.data,x=l.corner;return s===Mn.COL_CELL?i(u):s===Mn.ROW_CELL?i(g):s===Mn.DATA_CELL?i(C):s===Mn.CORNER_CELL?i(x):ur({},l)},y6=function(l,s){var i;if(!(!s||!l)){var u=(i=l.getCellType)===null||i===void 0?void 0:i.call(l,s==null?void 0:s.target);return xk(l.options.tooltip,u)}},f5=function(l,s){var i=s.defaultMenus,u=i===void 0?[]:i,g=s.cell,C=function(E){return E===void 0&&(E=[]),E.filter(function(O){var R;return js(O.visible)?O.visible(g):(R=O.visible)!==null&&R!==void 0?R:!0}).map(function(O){return O.children&&(O.children=C(O.children)),O})},x=C(l.menus);return{onClick:l.onClick,menus:Mh(nn(nn([],kr(u),!1),kr(x),!1))}},Sk=function(l,s){for(var i=!1,u=s;u&&u!==document.body;){if(l===u){i=!0;break}u=u.parentElement}return i},_k=function(){for(var l=[],s=0;s1},l}(),iD=function(l){Ni(s,l);function s(){var i=l!==null&&l.apply(this,arguments)||this;return i.handleDimensionValuesSort=function(){Qi(i.sortParams,function(u){var g=u.sortFieldId,C=u.sortByMeasure;if(g){var x=nn([],kr(i.sortedDimensionValues[g]||[]),!1),E=W4({dataSet:i,sortParam:u,originValues:x,isSortByMeasure:!Nn(C)});i.sortedDimensionValues[g]=E}})},i.getCustomData=function(u){for(var g,C=!1,x=i.indexesData,E=function(R){var k=u[R];C?r0(k)?x=TR(x):x=(g=hy(x))===null||g===void 0?void 0:g.map(function(z){return z&&Ii(z,k)}):r0(k)?C=!0:x=x==null?void 0:x[k]},O=0;O0;R--){var k=E[R-1];if(za(i).includes(k))k!==ra&&(O=!0);else if(O)return!0}return!1};return x(g)||x(C)},s.prototype.checkAccordQueryWithDimensionValue=function(i){var u,g,C=i.dimensionValues,x=i.query,E=i.dimensions,O=i.field;try{for(var R=Ms(E.entries()),k=R.next();!k.done;k=R.next()){var z=kr(k.value,2),j=z[0],q=z[1],ee=Ii(x,q);if(ee){var le=C.split(Ml),ye=le[j];if(ye!==ee)return!1}if(O===q)break}}catch(Me){u={error:Me}}finally{try{k&&!k.done&&(g=R.return)&&g.call(R)}finally{if(u)throw u.error}}return!0},s.prototype.getTotalGroupQueries=function(i,u){for(var g=[u],C=null,x=function(R){var k,z,j=i[R];if(za(u).includes(j))j!==ra&&(C=j);else if(C){var q=E.sortedDimensionValues[C],ee=[],le=function(Ue){var Ze,Ut,mr=[];try{for(var xr=(Ze=void 0,Ms(q)),Kr=xr.next();!Kr.done;Kr=xr.next()){var mn=Kr.value;if(E.checkAccordQueryWithDimensionValue({dimensionValues:mn,query:Ue,dimensions:i,field:C})){var Vn=mn.split(Ml),In=Vn[R];In!=="undefined"&&mr.push(In)}}}catch(di){Ze={error:di}}finally{try{Kr&&!Kr.done&&(Ut=xr.return)&&Ut.call(xr)}finally{if(Ze)throw Ze.error}}var Un=va(mr).map(function(di){var Bi;return ur(ur({},Ue),(Bi={},Bi[j]=di,Bi))});ee=ic(ee,Un)};try{for(var ye=(k=void 0,Ms(g)),Me=ye.next();!Me.done;Me=ye.next()){var We=Me.value;le(We)}}catch(Ue){k={error:Ue}}finally{try{Me&&!Me.done&&(z=ye.return)&&z.call(ye)}finally{if(k)throw k.error}}g=ee,C=j}},E=this,O=i.length-1;O>=0;O--)x(O);return g},s.prototype.getGroupTotalMultiData=function(i,u){var g,C,x,E,O=this.fields,R=O.rows,k=O.columns,z=[],j=this.getTotalGroupQueries(i,u),q=[];try{for(var ee=Ms(j),le=ee.next();!le.done;le=ee.next()){var ye=le.value;q=ic(q,this.getTotalGroupQueries(k,ye))}}catch(xr){g={error:xr}}finally{try{le&&!le.done&&(C=ee.return)&&C.call(ee)}finally{if(g)throw g.error}}try{for(var Me=Ms(q),We=Me.next();!We.done;We=Me.next()){var ye=We.value,Ue=x_(i,ye),Ze=x_(k,ye),Ut=gA({rowDimensionValues:Ue,colDimensionValues:Ze,careUndefined:!0,isFirstCreate:!0,rowFields:R,colFields:k,rowPivotMeta:this.rowPivotMeta,colPivotMeta:this.colPivotMeta}),mr=this.getCustomData(Ut);z=ic(z,Mh(TR(mr)))}}catch(xr){x={error:xr}}finally{try{We&&!We.done&&(E=Me.return)&&E.call(Me)}finally{if(x)throw x.error}}return z},s.prototype.getMultiData=function(i,u,g,C,x){var E;if(Nn(i))return Mh(MR(this.indexesData));var O=this.fields,R=O.rows,k=O.columns,z=O.values,j=Nn(C)?R:R.concat(C),q=!x&&this.checkExistDimensionGroup(i),ee=[];if(q)ee=this.getGroupTotalMultiData(j,i);else{var le=x_(j,i),ye=x_(k,i),Me=gA({rowDimensionValues:le,colDimensionValues:ye,careUndefined:!0,isFirstCreate:!0,rowFields:R,colFields:k,rowPivotMeta:this.rowPivotMeta,colPivotMeta:this.colPivotMeta}),We=this.getCustomData(Me);if(ee=Mh(TR(We)),u){var Ue=[],Ze=jL(le,R),Ut=jL(ye,k);if(g)Ue=Ze;else{var mr=((E=za(i))===null||E===void 0?void 0:E.length)===1&&fy(i,ra);if(mr)Ue=Ut;else{var xr=function(Vn){return J5(Vn==null?void 0:Vn.filter(function(In){return!(z!=null&&z.includes(In))}))},Kr=xr(ye),mn=xr(le);Kr?Ue=Ze:mn?Ue=Ut:Ue=nn(nn([],kr(Ze),!1),kr(Ut),!1)}}ee=ee.filter(function(Vn){return!(Ue!=null&&Ue.find(function(In){var Un;return In!==ra&&((Un=za(Vn))===null||Un===void 0?void 0:Un.includes(In))}))})}}return ee||[]},s.prototype.getFieldFormatter=function(i,u){return i===A0?this.getFieldFormatterForTotalValue(u):l.prototype.getFieldFormatter.call(this,i)},s.prototype.getFieldFormatterForTotalValue=function(i){var u;return!this.spreadsheet.isValueInCols()&&i&&(u=Ii(i.rowQuery,ra)),u=u!=null?u:Ii(this.fields.values,0),l.prototype.getFieldFormatter.call(this,u)},s.prototype.handleCustomMeasuresOrder=function(i,u){var g=va(nn([],kr(u),!1));return u.length>=i?(g.splice(i,0,ra),g):nn(nn([],kr(g),!1),[ra],!1)},s.prototype.isCustomMeasuresPosition=function(i){return Rh(i)},s.prototype.getRowData=function(i){return this.getMultiData(i.rowQuery)},s}(h5),Ok=function(l){Ni(s,l);function s(){var i=l!==null&&l.apply(this,arguments)||this;return i.handleDimensionValueFilter=function(){Qi(i.filterParams,function(u){var g=u.filterKey,C=u.filteredValues,x=u.customFilter,E=new Set(C),O=function(R){return!E.has(R[g])};i.displayData=nn(nn(nn([],kr(i.getStartRows()),!1),kr(h(i.getMovableRows(),function(R){return x?x(R)&&O(R):O(R)})),!1),kr(i.getEndRows()),!1)})},i.handleDimensionValuesSort=function(){Qi(i.sortParams,function(u){var g=u.sortFieldId,C=u.sortBy,x=u.sortFunc,E=u.sortMethod,O=u.query;if(g){var R=i.getMovableRows(),k=[];if(O){var z=[];R.forEach(function(le){for(var ye=Object.keys(O),Me=!0,We=0;Weu.trackLen?ee=u.trackLen-u.thumbLen:q+u.thumbLen=C&&EC&&E<=l[x+1]},u);return g=Math.min(g===-1?1/0:g,l.length-2),{start:u,end:g}},Ak=function(l,s){var i=s.width,u=s.originalWidth,g=Math.min(u-i,l);return g<0?0:g},oD=function(l,s,i){var u=Math.min(s-i,l);return u<0?0:u},TA=function(l,s){if(l===void 0&&(l=[]),Nn(l))return[];var i=[];return l.forEach(function(u){if(u instanceof s&&i.push(u),u instanceof nu){var g=u.getChildren();g.forEach(function(C){C instanceof s&&i.push(C)})}}),i},p5=function(l,s,i){return i.slice(l,s+1).map(function(u){return u.x+u.width})},lD=function(l,s,i){for(var u=[],g=l;g=g&&l<=C&&s>=x&&s<=E},m5=function(l){for(var s=kr(l,4),i=s[0],u=s[1],g=s[2],C=s[3],x=[],E=i;E<=u;E+=1)for(var O=g;O<=C;O+=1)x.push([E,O]);return x},Rk=function(l,s){var i=[],u=[];if(Nn(l))return Nn(s)?{add:i,remove:u}:{add:m5(s),remove:u};if(Nn(s))return{add:i,remove:m5(l)};for(var g=kr(l,4),C=g[0],x=g[1],E=g[2],O=g[3],R=kr(s,4),k=R[0],z=R[1],j=R[2],q=R[3],ee=C;ee<=x;ee++)for(var le=E;le<=O;le++)g5(ee,le,s)||u.push([ee,le]);for(var ee=k;ee<=z;ee+=1)for(var le=j;le<=q;le+=1)g5(ee,le,l)||i.push([ee,le]);return{add:i,remove:u}},Dk=function(l,s){var i=[],u=[];return Object.keys(s).forEach(function(g){var C=Rk((l==null?void 0:l[g])||[],s[g]),x=C.add,E=C.remove;i.push.apply(i,nn([],kr(x),!1)),u.push.apply(u,nn([],kr(E),!1))}),{add:i,remove:u}},y5=function(){function l(s,i){i===void 0&&(i=!1),this.x=0,this.y=0,this.minX=0,this.minY=0,this.maxX=0,this.maxY=0,this.width=0,this.height=0,this.originalWidth=0,this.originalHeight=0,this.viewportHeight=0,this.viewportWidth=0,this.facet=s,this.spreadsheet=s.spreadsheet,this.layoutResult=s.layoutResult,i&&this.calculateBBox()}return l}(),C5=function(l){Ni(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s.prototype.calculateBBox=function(){var i=this.getCornerBBoxWidth(),u=this.getCornerBBoxHeight();this.width=i,this.height=u,this.maxX=i,this.maxY=u},s.prototype.getCornerBBoxOriginalHeight=function(){var i=this.layoutResult.colsHierarchy,u=this.spreadsheet.options.style.colCfg;return i.sampleNodeForLastLevel?Math.floor(i.height):u==null?void 0:u.height},s.prototype.getCornerBBoxHeight=function(){return this.originalHeight=this.getCornerBBoxOriginalHeight(),this.originalHeight},s.prototype.getCornerBBoxWidth=function(){var i=this.layoutResult.rowsHierarchy;return this.originalWidth=Math.floor(i.width+this.facet.getSeriesNumberWidth()),this.spreadsheet.isScrollContainsRowHeader()?this.originalWidth:this.adjustCornerBBoxWidth()},s.prototype.adjustCornerBBoxWidth=function(){var i=this.layoutResult.colsHierarchy,u=this.spreadsheet.options.width,g=u*_o,C=i==null?void 0:i.width,x=u-this.originalWidth;if(this.originalWidth<=g||C<=x)return this.originalWidth;var E=0,O=u-g;return C<=O?E=this.originalWidth-(C-x):E=g,Math.floor(E)},s}(y5),Lk=function(l){Ni(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s.prototype.calculateBBox=function(){this.originalWidth=this.facet.getRealWidth(),this.originalHeight=this.facet.getRealHeight();var i=this.facet.cornerBBox,u={x:Math.floor(i.maxX),y:Math.floor(i.maxY)},g=this.spreadsheet.theme.scrollBar.size,C=this.spreadsheet.options,x=C.width,E=C.height,O=Math.max(0,x-u.x),R=Math.max(0,E-u.y-g);this.x=u.x,this.y=u.y,this.width=O,this.height=R,this.viewportHeight=Math.abs(Math.floor(Math.min(R,this.originalHeight))),this.viewportWidth=Math.abs(Math.floor(Math.min(O,this.originalWidth))),this.maxX=u.x+this.viewportWidth,this.maxY=u.y+this.viewportHeight,this.minX=u.x,this.minY=u.y;var k=this.spreadsheet.options,z=k.frozenTrailingColCount,j=k.frozenTrailingRowCount;z>0&&(this.viewportWidth=this.width,this.maxX=u.x+this.width),j>0&&(this.viewportHeight=this.height,this.maxY=u.y+this.height)},s}(y5),C6=function(l){Ni(s,l);function s(i){var u=l.call(this,i)||this;return u.isHeaderCellInViewport=function(g,C,x,E){return g+C>=x&&x+E>=g},u.headerConfig=i,u}return s.prototype.getConfig=function(){return this.headerConfig},s.prototype.clearResizeAreaGroup=function(i){var u=this.get("parent"),g=u==null?void 0:u.findById(i);g==null||g.clear()},s.prototype.render=function(i){this.clearResizeAreaGroup(i),this.clear(),this.layout(),this.offset(),this.clip()},s.prototype.onScrollXY=function(i,u,g){this.headerConfig.scrollX=i,this.headerConfig.scrollY=u,this.render(g)},s.prototype.onRowScrollX=function(i,u){this.headerConfig.scrollX=i,this.render(u)},s.prototype.clear=function(){l.prototype.clear.call(this)},s}(nu),sD=function(l){Ni(s,l);function s(i){var u=l.call(this,i)||this;return u.scrollGroup=u.addGroup({name:Yc,zIndex:fb}),u}return s.prototype.onColScroll=function(i,u){this.headerConfig.scrollX!==i&&(this.headerConfig.scrollX=i,this.render(u))},s.prototype.clip=function(){var i=this.headerConfig,u=i.width,g=i.height,C=i.scrollX,x=i.spreadsheet,E=x.isFrozenRowHeader();this.scrollGroup.setClip({type:"rect",attrs:{x:E?C:0,y:0,width:E?u:u+C,height:g}})},s.prototype.clear=function(){var i,u;(i=this.scrollGroup)===null||i===void 0||i.clear(),(u=this.background)===null||u===void 0||u.remove(!0)},s.prototype.getCellInstance=function(i,u,g){return new _A(i,u,g)},s.prototype.getCellGroup=function(i){return this.scrollGroup},s.prototype.isColCellInRect=function(i){var u=this.headerConfig,g=u.spreadsheet,C=u.cornerWidth,x=u.width,E=u.scrollX;return x+E>i.x&&E-(g.isFrozenRowHeader()?0:C)0,this.cfg.showViewportRightShadow=Math.floor(i)le.y&&zle.x&&j-k=0;g--){var C=u[g];C instanceof nu?C.set("children",[]):u[g].remove()}i.foregroundGroup.set("children",[]),i.backgroundGroup.set("children",[])},this.scrollWithAnimation=function(u,g,C){var x,E,O,R;u===void 0&&(u={}),g===void 0&&(g=200);var k=i.getAdjustedScrollOffset({scrollX:((x=u.offsetX)===null||x===void 0?void 0:x.value)||0,scrollY:((E=u.offsetY)===null||E===void 0?void 0:E.value)||0,rowHeaderScrollX:((O=u.rowHeaderOffsetX)===null||O===void 0?void 0:O.value)||0}),z=k.scrollX,j=k.scrollY,q=k.rowHeaderScrollX;(R=i.timer)===null||R===void 0||R.stop();var ee=i.getScrollOffset(),le=[z!=null?z:ee.scrollX,j!=null?j:ee.scrollY,q!=null?q:ee.rowHeaderScrollX],ye=Nh(Object.values(ee),le);i.timer=Ao(function(Me){try{var We=Math.min(Me/g,1),Ue=kr(ye(We),3),Ze=Ue[0],Ut=Ue[1],mr=Ue[2];i.setScrollOffset({rowHeaderScrollX:mr,scrollX:Ze,scrollY:Ut}),i.startScroll(),Me>g&&(i.timer.stop(),C==null||C())}catch(xr){console.error(xr),i.timer.stop()}})},this.scrollImmediately=function(u){var g,C,x;u===void 0&&(u={});var E=i.getAdjustedScrollOffset({scrollX:((g=u.offsetX)===null||g===void 0?void 0:g.value)||0,scrollY:((C=u.offsetY)===null||C===void 0?void 0:C.value)||0,rowHeaderScrollX:((x=u.rowHeaderOffsetX)===null||x===void 0?void 0:x.value)||0}),O=E.scrollX,R=E.scrollY,k=E.rowHeaderScrollX;i.setScrollOffset({scrollX:O,scrollY:R,rowHeaderScrollX:k}),i.startScroll()},this.startScroll=function(u){var g,C,x;u===void 0&&(u=!1);var E=i.getScrollOffset(),O=E.rowHeaderScrollX,R=E.scrollX,k=E.scrollY;(g=i.hRowScrollBar)===null||g===void 0||g.onlyUpdateThumbOffset(i.getScrollBarOffset(O,i.hRowScrollBar)),(C=i.hScrollBar)===null||C===void 0||C.onlyUpdateThumbOffset(i.getScrollBarOffset(R,i.hScrollBar)),(x=i.vScrollBar)===null||x===void 0||x.onlyUpdateThumbOffset(i.getScrollBarOffset(k,i.vScrollBar)),i.dynamicRenderCell(u)},this.getRendererHeight=function(){var u=i.getCellRange(),g=u.start,C=u.end;return i.viewCellHeights.getCellOffsetY(C+1)-i.viewCellHeights.getCellOffsetY(g)},this.getAdjustedScrollOffset=function(u){var g=u.scrollX,C=u.scrollY,x=u.rowHeaderScrollX;return{scrollX:oD(g,i.layoutResult.colsHierarchy.width,i.panelBBox.width),scrollY:oD(C,i.getRendererHeight(),i.panelBBox.height),rowHeaderScrollX:Ak(x,i.cornerBBox)}},this.renderRowScrollBar=function(u){if(!i.cfg.spreadsheet.isScrollContainsRowHeader()&&i.cornerBBox.widthi.panelBBox.minX&&gi.panelBBox.minY&&Ci.cornerBBox.minX&&gi.cornerBBox.minY&&C=i.cornerBBox.width,le=i.hRowScrollBar&&i.isScrollOverTheCornerArea({offsetX:z,offsetY:j})||((O=i.hScrollBar)===null||O===void 0?void 0:O.thumbOffset)+((R=i.hScrollBar)===null||R===void 0?void 0:R.thumbLen)>=q;return k>=0&&le&&ee},this.isScrollToTop=function(u){var g;return i.vScrollBar?u<=0&&((g=i.vScrollBar)===null||g===void 0?void 0:g.thumbOffset)<=0:!0},this.isScrollToBottom=function(u){var g,C,x;return i.vScrollBar?u>=0&&((g=i.vScrollBar)===null||g===void 0?void 0:g.thumbOffset)+((C=i.vScrollBar)===null||C===void 0?void 0:C.thumbLen)>=((x=i.panelBBox)===null||x===void 0?void 0:x.height):!0},this.isVerticalScrollOverTheViewport=function(u){return!i.isScrollToTop(u)&&!i.isScrollToBottom(u)},this.isHorizontalScrollOverTheViewport=function(u){return!i.isScrollToLeft(u)&&!i.isScrollToRight(u)},this.isScrollOverTheViewport=function(u){var g=u.deltaY,C=u.deltaX,x=u.offsetY,E=x<=i.cornerBBox.maxY;return E?!1:g!==0?i.isVerticalScrollOverTheViewport(g):C!==0?i.isHorizontalScrollOverTheViewport(u):!1},this.cancelScrollFrame=function(){return cc()&&i.scrollFrameId?!1:(cancelAnimationFrame(i.scrollFrameId),!0)},this.clearScrollFrameIdOnMobile=function(){cc()&&(i.scrollFrameId=null)},this.stopScrollChainingIfNeeded=function(u){var g=i.spreadsheet.options.interaction;g.overscrollBehavior!=="auto"&&i.stopScrollChaining(u)},this.stopScrollChaining=function(u){var g,C;u!=null&&u.cancelable&&((g=u==null?void 0:u.preventDefault)===null||g===void 0||g.call(u));var x=u==null?void 0:u.originalEvent;x!=null&&x.cancelable&&((C=x==null?void 0:x.preventDefault)===null||C===void 0||C.call(x))},this.onWheel=function(u){var g=i.spreadsheet.options.interaction,C=u.deltaX,x=u.deltaY,E=u.offsetX,O=u.offsetY,R=u.shiftKey;R&&Qn()&&(E=E-C+x,C=x,O-=x,x=0);var k=kr($5(C,x,g.scrollSpeedRatio),2),z=k[0],j=k[1];if(i.spreadsheet.hideTooltip(),i.spreadsheet.interaction.clearHoverTimer(),!i.isScrollOverTheViewport({deltaX:z,deltaY:j,offsetX:E,offsetY:O})){i.stopScrollChainingIfNeeded(u);return}i.stopScrollChaining(u),i.spreadsheet.interaction.addIntercepts([na.HOVER]),i.cancelScrollFrame()&&(i.scrollFrameId=requestAnimationFrame(function(){var q,ee=i.getScrollOffset(),le=ee.scrollX,ye=ee.scrollY,Me=ee.rowHeaderScrollX;z!==0&&(i.showHorizontalScrollBar(),i.updateHorizontalRowScrollOffset({offsetX:E,offsetY:O,offset:z+Me}),i.updateHorizontalScrollOffset({offsetX:E,offsetY:O,offset:z+le})),j!==0&&(i.showVerticalScrollBar(),(q=i.vScrollBar)===null||q===void 0||q.emitScrollChange(j+ye)),i.delayHideScrollbarOnMobile(),i.clearScrollFrameIdOnMobile()}))},this.addCell=function(u){var g=i.spreadsheet.panelScrollGroup;g==null||g.add(u)},this.realCellRender=function(u,g){var C=i.calculateXYIndexes(u,g);zp.getInstance().logger("renderIndex:",i.preCellIndexes,C);var x=Dk(i.preCellIndexes,C),E=x.add,O=x.remove;zp.getInstance().debugCallback(oA,function(){Qi(E,function(k){var z=kr(k,2),j=z[0],q=z[1],ee=i.layoutResult.getCellMeta(q,j);if(ee){var le=i.cfg.dataCell(ee);le.set("name","".concat(j,"-").concat(q)),i.addCell(le)}});var R=TA(i.panelGroup.getChildren(),bx);Qi(O,function(k){var z=kr(k,2),j=z[0],q=z[1],ee=m(R,function(le){return le.get("name")==="".concat(j,"-").concat(q)});ee==null||ee.remove(!0)}),zp.getInstance().logger("Render Cell Panel: ".concat(R==null?void 0:R.length,", Add: ").concat(E==null?void 0:E.length,", Remove: ").concat(O==null?void 0:O.length))}),i.preCellIndexes=C,i.spreadsheet.emit(Dr.LAYOUT_AFTER_REAL_DATA_CELL_RENDER,{add:E,remove:O,spreadsheet:i.spreadsheet})},this.getGridInfo=function(){var u=kr(i.preCellIndexes.center,4),g=u[0],C=u[1],x=u[2],E=u[3],O=p5(g,C,i.layoutResult.colLeafNodes),R=lD(x,E,i.viewCellHeights);return{cols:O,rows:R}},this.onAfterScroll=il(function(){var u=i.spreadsheet,g=u.interaction,C=u.container;if(!g.isSelectedState()&&(g.removeIntercepts([na.HOVER]),g.getHoverAfterScroll())){var x=g.eventController.canvasMousemoveEvent;if(x){var E=x.x,O=x.y,R=C.getShape(E,O);R&&C.emit(El.MOUSE_MOVE,ur(ur({},x),{shape:R,target:R,timestamp:performance.now()}))}}},300),this.cfg=s,this.spreadsheet=s.spreadsheet,this.init()}return Object.defineProperty(l.prototype,"scrollBarTheme",{get:function(){return this.spreadsheet.theme.scrollBar},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"scrollBarSize",{get:function(){return this.scrollBarTheme.size},enumerable:!1,configurable:!0}),l.prototype.getCellCustomWidth=function(s,i){return js(i)?i==null?void 0:i(s):i},l.prototype.getCellDraggedWidth=function(s){var i=this.cfg.colCfg;return Ii(i==null?void 0:i.widthByFieldValue,"".concat(s.value))},l.prototype.render=function(){q5(this.spreadsheet.dataCfg.fields)||(this.adjustScrollOffset(),this.renderHeaders(),this.renderScrollBars(),this.renderBackground(),this.dynamicRenderCell())},l.prototype.adjustScrollOffset=function(){var s=this.getAdjustedScrollOffset(this.getScrollOffset());this.setScrollOffset(s)},l.prototype.getSeriesNumberWidth=function(){var s=this.cfg.showSeriesNumber;return s?this.spreadsheet.theme.rowCell.seriesNumberWidth:0},l.prototype.getCanvasHW=function(){return{width:this.cfg.width,height:this.cfg.height}},l.prototype.updateScrollOffset=function(s){var i,u,g,C,x,E;if(((i=s.rowHeaderOffsetX)===null||i===void 0?void 0:i.value)!==void 0){!((u=s.rowHeaderOffsetX)===null||u===void 0)&&u.animate?this.scrollWithAnimation(s):this.scrollImmediately(s);return}if(((g=s.offsetX)===null||g===void 0?void 0:g.value)!==void 0){!((C=s.offsetX)===null||C===void 0)&&C.animate?this.scrollWithAnimation(s):this.scrollImmediately(s);return}((x=s.offsetY)===null||x===void 0?void 0:x.value)!==void 0&&(!((E=s.offsetY)===null||E===void 0)&&E.animate?this.scrollWithAnimation(s):this.scrollImmediately(s))},l.prototype.getPaginationScrollY=function(){var s=this.cfg.pagination;if(s){var i=s.current,u=i===void 0?yx:i,g=s.pageSize,C=this.viewCellHeights,x=Math.max((u-1)*g,0);return C.getCellOffsetY(x)}return 0},l.prototype.destroy=function(){this.unbindEvents(),this.clearAllGroup(),this.preCellIndexes=null,cancelAnimationFrame(this.scrollFrameId)},l.prototype.calculateXYIndexes=function(s,i){var u=this.panelBBox,g=u.viewportHeight,C=u.viewportWidth,x=SR(s,i,this.viewCellWidths,this.viewCellHeights,{width:C,height:g,x:0,y:0},this.getRealScrollX(this.cornerBBox.width));return{center:x}},l.prototype.calculateCornerBBox=function(){this.cornerBBox=new C5(this,!0)},l.prototype.getCellRange=function(){var s=this.cfg.pagination;return X5(this.viewCellHeights,s)},l.prototype.clip=function(s,i){var u,g=this.spreadsheet.isFrozenRowHeader();(u=this.spreadsheet.panelScrollGroup)===null||u===void 0||u.setClip({type:"rect",attrs:{x:g?s:0,y:i,width:this.panelBBox.width+(g?0:s),height:this.panelBBox.height}})},l.prototype.translateRelatedGroups=function(s,i,u){var g,C,x,E,O,R;C_(this.spreadsheet.panelScrollGroup,this.cornerBBox.width-s,this.cornerBBox.height-i),(g=this.rowHeader)===null||g===void 0||g.onScrollXY(this.getRealScrollX(s,u),i,tp),(C=this.rowIndexHeader)===null||C===void 0||C.onScrollXY(this.getRealScrollX(s,u),i,D0),(x=this.cornerHeader)===null||x===void 0||x.onCorScroll(this.getRealScrollX(s,u),L0),(E=this.centerFrame)===null||E===void 0||E.onChangeShadowVisibility(s,this.getRealWidth()-this.panelBBox.width),(O=this.centerFrame)===null||O===void 0||O.onBorderScroll(this.getRealScrollX(s)),(R=this.columnHeader)===null||R===void 0||R.onColScroll(s,Ko)},l.prototype.init=function(){var s=this;zp.getInstance().debugCallback(aA,function(){s.layoutResult=s.doLayout(),s.saveInitColumnLeafNodes(s.layoutResult.colLeafNodes),s.spreadsheet.emit(Dr.LAYOUT_AFTER_HEADER_LAYOUT,s.layoutResult)}),this.calculateCellWidthHeight(),this.calculateCornerBBox(),this.calculatePanelBBox(),this.clipPanelGroup(),this.bindEvents()},l.prototype.renderBackground=function(){var s=this.getCanvasHW(),i=s.width,u=s.height,g=this.spreadsheet.theme.background,C=g.color,x=g.opacity;this.backgroundGroup.addShape("rect",{attrs:{fill:C,opacity:x,x:0,y:0,width:i,height:u}})},l.prototype.renderScrollBars=function(){var s=this.getScrollOffset(),i=s.scrollX,u=s.scrollY,g=s.rowHeaderScrollX,C=this.panelBBox,x=C.width,E=C.height,O=this.layoutResult.colsHierarchy.width,R=this.getRealHeight();this.renderRowScrollBar(g),this.renderHScrollBar(x,O,i),this.renderVScrollBar(E,R,u)},l.prototype.renderHeaders=function(){var s=this.getSeriesNumberWidth();this.rowHeader=this.getRowHeader(),this.columnHeader=this.getColHeader(),s>0&&!this.rowIndexHeader&&(this.rowIndexHeader=this.getSeriesNumberHeader()),this.cornerHeader=this.getCornerHeader(),this.centerFrame=this.getCenterFrame(),this.rowIndexHeader&&this.foregroundGroup.add(this.rowIndexHeader),this.rowHeader&&this.foregroundGroup.add(this.rowHeader),this.foregroundGroup.add(this.columnHeader),this.foregroundGroup.add(this.cornerHeader),this.foregroundGroup.add(this.centerFrame)},l.prototype.getRowHeader=function(){var s,i,u;if(!this.rowHeader){var g=this.panelBBox,C=g.y,x=g.viewportHeight,E=g.viewportWidth,O=g.height,R=this.getSeriesNumberWidth();return new b5({width:this.cornerBBox.width,height:O,viewportWidth:E,viewportHeight:x,position:{x:0,y:C},data:this.layoutResult.rowNodes,hierarchyType:this.cfg.hierarchyType,linkFields:(u=(i=(s=this.cfg.spreadsheet.options)===null||s===void 0?void 0:s.interaction)===null||i===void 0?void 0:i.linkFields)!==null&&u!==void 0?u:[],seriesNumberWidth:R,spreadsheet:this.spreadsheet})}return this.rowHeader},l.prototype.getColHeader=function(){if(!this.columnHeader){var s=this.panelBBox,i=s.x,u=s.width,g=s.viewportHeight,C=s.viewportWidth;return new sD({width:u,cornerWidth:this.cornerBBox.width,height:this.cornerBBox.height,viewportWidth:C,viewportHeight:g,position:{x:i,y:0},data:this.layoutResult.colNodes,scrollContainsRowHeader:this.cfg.spreadsheet.isScrollContainsRowHeader(),sortParam:this.cfg.spreadsheet.store.get("sortParam"),spreadsheet:this.spreadsheet})}return this.columnHeader},l.prototype.getCornerHeader=function(){return this.cornerHeader?this.cornerHeader:Pk.getCornerHeader(this.panelBBox,this.cornerBBox,this.getSeriesNumberWidth(),this.cfg,this.layoutResult,this.spreadsheet)},l.prototype.getSeriesNumberHeader=function(){return kk.getSeriesNumberHeader(this.panelBBox,this.getSeriesNumberWidth(),this.layoutResult.rowsHierarchy.getNodes(0),this.spreadsheet,this.cornerBBox.width)},l.prototype.getCenterFrame=function(){var s;if(!this.centerFrame){var i=this.panelBBox,u=i.viewportWidth,g=i.viewportHeight,C=this.cornerBBox.width,x=this.cornerBBox.height,E=(s=this.cfg)===null||s===void 0?void 0:s.frame,O={position:{x:this.cornerBBox.x,y:this.cornerBBox.y},width:C,height:x,viewportWidth:u,viewportHeight:g,showViewportLeftShadow:!1,showViewportRightShadow:!1,scrollContainsRowHeader:this.cfg.spreadsheet.isScrollContainsRowHeader(),isPivotMode:this.cfg.spreadsheet.isPivotMode(),spreadsheet:this.cfg.spreadsheet};return E?E(O):new Bk(O)}return this.centerFrame},l.prototype.updatePanelScrollGroup=function(){this.gridInfo=this.getGridInfo(),this.spreadsheet.panelScrollGroup.update(this.gridInfo)},l.prototype.dynamicRenderCell=function(s){var i=this.getScrollOffset(),u=i.scrollX,g=i.scrollY,C=i.rowHeaderScrollX,x=g+this.getPaginationScrollY(),E=oD(x,this.viewCellHeights.getTotalHeight(),this.panelBBox.viewportHeight);this.spreadsheet.hideTooltip(),this.spreadsheet.interaction.clearHoverTimer(),this.realCellRender(u,E),this.updatePanelScrollGroup(),this.translateRelatedGroups(u,E,C),this.clip(u,E),s||this.emitScrollEvent({scrollX:u,scrollY:E,rowHeaderScrollX:C}),this.onAfterScroll()},l.prototype.emitScrollEvent=function(s){this.spreadsheet.emit(Dr.LAYOUT_CELL_SCROLL,s),this.spreadsheet.emit(Dr.GLOBAL_SCROLL,s)},l.prototype.saveInitColumnLeafNodes=function(s){s===void 0&&(s=[]);var i=this.spreadsheet,u=i.store,g=i.options,C=g.interaction.hiddenColumnFields,x=s.length+C.length,E=u.get("initColumnLeafNodes",[]);x!==E.length&&u.set("initColumnLeafNodes",s)},l.prototype.getHiddenColumnsInfo=function(s){var i=this.spreadsheet.store.get("hiddenColumnsDetail",[]);return Nn(i)?null:i.find(function(u){var g;return(g=u==null?void 0:u.hideColumnNodes)===null||g===void 0?void 0:g.some(function(C){return C.id===s.id})})},l.prototype.getCornerNodes=function(){var s;return((s=this.cornerHeader)===null||s===void 0?void 0:s.getNodes())||[]},l}(),x5=function(l){var s,i,u,g=l.facetCfg,C=l.customTreeItems,x=C===void 0?[]:C,E=l.level,O=l.parentNode,R=l.hierarchy,k=g.spreadsheet,z=g.collapsedRows,j=g.hierarchyCollapse;try{for(var q=Ms(x),ee=q.next();!ee.done;ee=q.next()){var le=ee.value,ye=le.key,Me=le.title,We=le.collapsed,Ue=le.children,Ze=dC(le,["key","title","collapsed","children"]),Ut=(u={},u[ra]=ye,u),mr=GT(O.id,Me),xr=We!=null?We:!1,Kr=Ii(z,mr),mn=Kr!=null?Kr:j||xr,Vn=new Zi({id:mr,key:ye,label:Me,value:Me,level:E,parent:O,field:ye,isTotals:!1,isCollapsed:mn,hierarchy:R,query:Ut,spreadsheet:k,extra:Ze});E>R.maxLevel&&(R.maxLevel=E),Nn(Ue)&&(Vn.isLeaf=!0);var In=gu(g,O,Vn,R);!Nn(Ue)&&!mn&&In&&x5({facetCfg:g,parentNode:Vn,level:E+1,hierarchy:R,customTreeItems:Ue})}}catch(Un){s={error:Un}}finally{try{ee&&!ee.done&&(i=q.return)&&i.call(q)}finally{if(s)throw s.error}}},Fk=function(l,s,i){var u=l.getTotalsConfig(s);if(u.showGrandTotals){var g=u.reverseLayout?"unshift":"push";i[g](new pu({label:u.label,isSubTotals:!1,isGrandTotals:!0}))}},Nk=(lh+Ml).length,S5=function(l){var s,i,u,g,C,x,E,O=l.parentNode,R=l.currentField,k=l.level,z=l.facetCfg,j=l.hierarchy,q=l.pivotMeta,ee=z.spreadsheet,le=z.dataSet,ye=z.collapsedRows,Me=z.hierarchyCollapse,We=z.rowExpandDepth,Ue=O.query,Ze=O.id,Ut=((g=ee.dataCfg.fields.rows)===null||g===void 0?void 0:g.length)<=k,mr=((C=le==null?void 0:le.sortedDimensionValues)===null||C===void 0?void 0:C[R])||[],xr=pA(Array.from(q.keys())),Kr=ER(xr,mr,function(_v){return lh===Ze?_v:GT(Ze,_v).slice(Nk)}),mn=wd(Kr,z,O,R),Vn=ee.store.get("drillItemsNum");Ut&&Vn>0&&(mn=mn.slice(0,Vn)),k===0&&Fk(ee,R,mn);try{for(var In=Ms(mn),Un=In.next();!Un.done;Un=In.next()){var di=Un.value,Bi=di instanceof pu,Rn=Bi?null:q.get(di),Kn=void 0,xo=Ue,to=!1,Bo=!1;if(Bi){var aa=di;to=aa.isGrandTotals,Bo=aa.isSubTotals,Kn=vu(di.label),xo=Ue}else Kn=di,xo=ur(ur({},Ue),(u={},u[R]=Kn,u));var ko=GT(Ze,Kn),Xa=ye==null?void 0:ye[ko],mu=Rh(We)?k>We:null,ss=(x=Xa!=null?Xa:mu)!==null&&x!==void 0?x:Me,To=new Zi({id:ko,key:R,label:Kn,value:Kn,level:k,parent:O,field:R,isTotals:Bi,isGrandTotals:to,isSubTotals:Bo,isCollapsed:ss,hierarchy:j,query:xo,spreadsheet:ee});k>j.maxLevel&&(j.maxLevel=k);var Cl=!(!((E=Rn==null?void 0:Rn.children)===null||E===void 0)&&E.size);(Cl||Bi)&&(To.isLeaf=!0),Cl||(To.isTotals=!0);var Bh=gu(z,O,To,j);!Cl&&!ss&&!Bi&&Bh&&S5({level:k+1,currentField:Rn.childField,pivotMeta:Rn.children,facetCfg:z,parentNode:To,hierarchy:j})}}catch(_v){s={error:_v}}finally{try{Un&&!Un.done&&(i=In.return)&&i.call(In)}finally{if(s)throw s.error}}},_5=function(l){var s=l.isValueInCols,i=l.moreThanOneValue,u=l.rootNode,g=l.facetCfg,C=l.hierarchy,x=l.fields,E=l.isRowHeader,O,R;E?(O=!s&&i,R=!s&&!i):(O=s&&i,R=s&&!i),$L({addTotalMeasureInTotal:O,addMeasureInTotalQuery:R,parentNode:u,currentField:x[0],fields:x,facetCfg:g,hierarchy:C})},Hk=function(l){var s=l.facetCfg,i=l.rootNode,u=l.hierarchy,g=s.dataSet.fields.customTreeItems;x5({customTreeItems:g,facetCfg:s,level:0,parentNode:i,hierarchy:u})},zk=function(l){var s=l.facetCfg,i=l.rootNode,u=l.hierarchy,g=s.hierarchyType,C=s.rows,x=s.dataSet;g==="tree"?S5({level:0,currentField:C[0],pivotMeta:x.rowPivotMeta,facetCfg:s,parentNode:i,hierarchy:u}):Hk(l)},Wk=function(l){var s=l.spreadsheet;s.isHierarchyTreeType()?zk(l):_5(l)},Gk=function(l){var s=l.isPivotMode,i=l.hierarchy,u=l.rootNode,g=l.facetCfg;s?_5(l):Q5({parentNode:u,hierarchy:i,facetCfg:g})},uD=function(l){var s=l.isRowHeader,i=l.facetCfg,u=i.spreadsheet,g=i.rows,C=g===void 0?[]:g,x=i.columns,E=x===void 0?[]:x,O=u.dataCfg.fields.valueInCols,R=u.isPivotMode(),k=i.dataSet.moreThanOneValue(),z=Zi.rootNode(),j=new ls,q={isValueInCols:O,isPivotMode:R,moreThanOneValue:k,rootNode:z,hierarchy:j,spreadsheet:u,facetCfg:i,fields:s?C:E,isRowHeader:s};s?Wk(q):Gk(q);var ee=function(){return s&&u.isHierarchyTreeType()?j.getNodes():j.getLeaves()};return{hierarchy:j,leafNodes:ee()}},$k=function(l){Ni(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return Object.defineProperty(s.prototype,"rowCellTheme",{get:function(){return this.spreadsheet.theme.rowCell.cell},enumerable:!1,configurable:!0}),s.prototype.getContentHeight=function(){var i=this.layoutResult,u=i.rowsHierarchy,g=i.colsHierarchy;return u.height+g.height},s.prototype.doLayout=function(){var i=uD({isRowHeader:!0,facetCfg:this.cfg}),u=i.leafNodes,g=i.hierarchy,C=uD({isRowHeader:!1,facetCfg:this.cfg}),x=C.leafNodes,E=C.hierarchy;this.calculateNodesCoordinate(u,g,x,E);var O=this.cfg,R=O.dataSet,k=O.spreadsheet,z=function(q,ee){var le,ye,Me,We=q||0,Ue=ee||0,Ze=u[We],Ut=x[Ue];if(!Ze||!Ut)return null;var mr=Ze.query,xr=Ut.query,Kr=Ze.isTotals||Ze.isTotalMeasure||Ut.isTotals||Ut.isTotalMeasure,mn=k.options.hierarchyType,Vn=(ye=Ii(k,"facet.cfg.colCfg.hideMeasureColumn"))!==null&&ye!==void 0?ye:!1,In=Vn&&mn!=="customTree"?(le={},le[ra]=(Me=R.fields.values)===null||Me===void 0?void 0:Me[0],le):{},Un=gM({},mr,xr,In),di=mA(Ze,Ut),Bi=R.getCellData({query:Un,rowNode:Ze,isTotals:Kr,totalStatus:di}),Rn,Kn=null;return Nn(Bi)?Rn=Ii(Un,[ra],""):(Rn=Ii(Bi,[ra],""),Kn=Ii(Bi,[Es],null),Kr&&(Rn=Ii(Un,[ra],""),Kn=Ii(Bi,Rn,null))),{spreadsheet:k,x:Ut.x,y:Ze.y,width:Ut.width,height:Ze.height,data:Bi,rowIndex:We,colIndex:Ue,isTotals:Kr,valueField:Rn,fieldValue:Kn,rowQuery:mr,colQuery:xr,rowId:Ze.id,colId:Ut.id,id:wA(Ze.id,Ut.id)}},j={colNodes:E.getNodes(),colsHierarchy:E,rowNodes:g.getNodes(),rowsHierarchy:g,rowLeafNodes:u,colLeafNodes:x,getCellMeta:z,spreadsheet:k};return ZI(this.cfg,j)},s.prototype.calculateNodesCoordinate=function(i,u,g,C){this.calculateRowNodesCoordinate(i,u,g),this.calculateColNodesCoordinate(g,C,i,u.width)},s.prototype.calculateColNodesCoordinate=function(i,u,g,C){for(var x,E,O,R=Zi.blankNode(),k=u.getNodes(),z=u.sampleNodesForAllLevels,j=0;jIn&&(Vn=xo,In=to)}}}var Bo=mn>In,aa=Bo?xr:Vn,ko=Bo?Kr:0;zp.getInstance().logger("Max Label In Col:",i.field,aa,In);var Xa=this.spreadsheet.measureTextWidth(aa,ur(ur({},We),{fontSize:Math.max(Ut.fontSize,We.fontSize)}));return Xa+((R=Ue.padding)===null||R===void 0?void 0:R.left)+((k=Ue.padding)===null||k===void 0?void 0:k.right)+ko}return this.spreadsheet.isHierarchyTreeType()?this.getAdaptTreeColWidth(i,u,g):this.getAdaptGridColWidth(u,C)},s.prototype.getColNodeHeight=function(i){var u=this.cfg.colCfg,g=Ii(u,["heightByField",i.key]);return g!=null?g:u==null?void 0:u.height},s.prototype.getExpectedCellIconWidth=function(i,u,g){var C,x=0;if(u)x=1;else{var E=WR(Ee(this.spreadsheet.options.headerActionIcons,function(O){return ur(ur({},O),{displayCondition:function(){return!0}})}),null,i);x=(C=E==null?void 0:E.iconNames.length)!==null&&C!==void 0?C:0}return x?x*(g.size+g.margin.left)+g.margin.right:0},s.prototype.calculateRowNodesCoordinate=function(i,u,g){var C,x,E,O,R,k,z,j,q,ee,le=this.cfg,ye=le.cellCfg,Me=le.spreadsheet,We=Me.isHierarchyTreeType(),Ue=Ii(Me,"options.style.rowCfg.heightByField",{}),Ze=(E=u.sampleNodesForAllLevels)!==null&&E!==void 0?E:[];if(We)u.width=this.getTreeRowHeaderWidth();else try{for(var Ut=Ms(u.sampleNodesForAllLevels),mr=Ut.next();!mr.done;mr=Ut.next()){var xr=mr.value;xr.width=this.calculateGridRowNodesWidth(xr,g),u.width+=xr.width;var Kr=(O=Ze[xr.level-1])!==null&&O!==void 0?O:{x:0,width:0};xr.x=(Kr==null?void 0:Kr.x)+(Kr==null?void 0:Kr.width)}}catch(Rn){C={error:Rn}}finally{try{mr&&!mr.done&&(x=Ut.return)&&x.call(Ut)}finally{if(C)throw C.error}}for(var mn=Zi.blankNode(),Vn=u.getNodes(),In=0;In0;Me--){var We=q[Me],Ue=We===ra&&R;le.includes(We)||Ue||(ye[Me-1]+=ye[Me],ye[Me]=0)}return ye},s.prototype.adjustTotalNodesCoordinate=function(i){var u=i.hierarchy,g=i.isRowHeader,C=i.isSubTotal,x=this.getMultipleMap(u,g,C),E=h(u.getNodes(),function(R){return C?R.isSubTotals:R.isGrandTotals}),O=g?"width":"height";Qi(E,function(R){var k=x[R.level];if(!k&&C)for(var z=1;k<1;)k=x[R.level-z]-z,z++;for(var j=0,q=function(le){j+=u.sampleNodesForAllLevels.find(function(ye){return ye.level===R.level+le})[O]},ee=0;eex&&(x=q)}}return x},s.prototype.getAdaptGridColWidth=function(i,u){var g=this.cfg,C=g.rows,x=g.cellCfg,E=C.length,O=i.length,R=this.getCanvasHW().width,k=R-this.getSeriesNumberWidth(),z=Math.max(1,E+O);return u?Math.max(AR(x),(k-u)/O):Math.max(AR(x),k/z)},s.prototype.getTreeRowHeaderWidth=function(){var i,u,g,C,x=this.cfg,E=x.rows,O=x.dataSet,R=x.rowCfg,k=x.treeRowsWidth,z=k!=null?k:R==null?void 0:R.treeRowsWidth;if(z)return z;var j=this.getCellCustomWidth(null,R==null?void 0:R.width);if(j)return j;var q=E.map(function(We){return O.getFieldName(We)}).join("/"),ee=this.spreadsheet.theme.cornerCell,le=ee.bolderText,ye=ee.icon,Me=1+this.spreadsheet.measureTextWidth(q,le)+ye.size*2+((i=ye.margin)===null||i===void 0?void 0:i.left)+((u=ye.margin)===null||u===void 0?void 0:u.right)+((g=this.rowCellTheme.padding)===null||g===void 0?void 0:g.left)+((C=this.rowCellTheme.padding)===null||C===void 0?void 0:C.right);return Math.max(z!=null?z:fC,Me)},s.prototype.getCompactGridRowWidth=function(i){var u=this,g,C=this.cfg,x=C.dataSet,E=C.spreadsheet,O=E.theme.rowCell,R=O.bolderText,k=O.icon,z=O.cell,j=E.theme.cornerCell,q=j.bolderText,ee=j.icon,le=j.cell,ye=i.field,Me=i.isLeaf,We=this.getExpectedCellIconWidth(Mn.ROW_CELL,!E.isValueInCols()&&Me&&E.options.showDefaultHeaderActionIcon,k),Ue=(g=x.getDimensionValues(ye))===null||g===void 0?void 0:g.slice(0,yc).map(function(mn){var Vn,In;return(In=(Vn=u.spreadsheet.dataSet.getFieldFormatter(ye))===null||Vn===void 0?void 0:Vn(mn))!==null&&In!==void 0?In:mn}),Ze=SO(Ue,function(mn){return"".concat(mn).length}),Ut=E.measureTextWidth(Ze,R)+We+z.padding.left+z.padding.right,mr=x.getFieldName(ye),xr=this.getExpectedCellIconWidth(Mn.CORNER_CELL,!1,ee),Kr=E.measureTextWidth(mr,q)+xr+le.padding.left+le.padding.right;return zp.getInstance().logger("Max Label In Row:",ye,Ut>Kr?Ze:mr),Math.max(Ut,Kr)},s.prototype.getViewCellHeights=function(i){var u=i.rowLeafNodes,g=Q2(u,function(C,x){return C.push(no(C)+x.height),C},[0]);return{getTotalHeight:function(){return no(g)},getCellOffsetY:function(C){return g[C]},getTotalLength:function(){return g.length-1},getIndexRange:function(C,x){return v5(g,C,x)}}},s}(w5),Uk=function(l){Ni(s,l);function s(i){var u=this,g;u=l.call(this,i)||this,u.getScrollGroupClipBBox=function(){var O,R=u.headerConfig,k=R.width,z=R.height,j=R.scrollX,q=R.spreadsheet,ee=q.options;if(!ee.frozenColCount&&!ee.frozenTrailingColCount)return{x:j,y:0,width:k,height:z};for(var le=(O=q.facet)===null||O===void 0?void 0:O.layoutResult.colLeafNodes,ye=b_(q.options,le.length),Me=ye.frozenColCount,We=ye.frozenTrailingColCount,Ue=0,Ze=0,Ut=0;Ut0){var Bo=ye.reduce(function(mu,ss,To){return To0?j:ee;df(Kn,{x1:Bo,x2:Bo,y1:le,y2:le+aa},ur({},xo)),Rn.showShadow&&C>0&&Kn.addShape("rect",{attrs:{x:Bo,y:le,width:Rn.shadowWidth,height:aa,fill:g.getShadowFill(0)}})}if(Ut>0){var ko=le+g.getTotalHeightForRange(Me.start,Me.start+Ut-1),Xa=mn>0?z:q;df(Kn,{x1:0,x2:Xa,y1:ko,y2:ko},ur({},to)),Rn.showShadow&&Un>0&&Kn.addShape("rect",{attrs:{x:0,y:ko,width:Xa,height:Rn.shadowWidth,fill:g.getShadowFill(90)}})}if(mn>0){var Bo=ye[ye.length-mn].x,aa=In?j:ee;df(Kn,{x1:Bo,x2:Bo,y1:le,y2:le+aa},ur({},xo)),Rn.showShadow&&Math.floor(C)0){var ko=g.panelBBox.maxY-g.getTotalHeightForRange(Me.end-In+1,Me.end),Xa=mn>0?z:q;df(Kn,{x1:0,x2:Xa,y1:ko,y2:ko},ur({},to)),Rn.showShadow&&Un0&&(z.width=E[u-1].x+E[u-1].width-0,z.range=[0,u-1]),g>0&&(q.height=O.getCellOffsetY(R.start+g)-O.getCellOffsetY(R.start),q.range=[R.start,R.start+g-1]),C>0&&(j.width=E[E.length-1].x-E[E.length-C].x+E[E.length-1].width,j.range=[E.length-C,E.length-1]),x>0&&(ee.height=O.getCellOffsetY(R.end+1)-O.getCellOffsetY(R.end+1-x),ee.range=[R.end-x+1,R.end])},s.prototype.calculateXYIndexes=function(i,u){var g,C,x,E=this.layoutResult.colLeafNodes.length,O=this.getCellRange(),R=this.panelBBox,k=R.viewportHeight,z=R.viewportWidth,j=this.getFrozenOptionsDirectly(),q=j.frozenColCount,ee=q===void 0?0:q,le=j.frozenRowCount,ye=le===void 0?0:le,Me=j.frozenTrailingColCount,We=Me===void 0?0:Me,Ue=j.frozenTrailingRowCount,Ze=Ue===void 0?0:Ue,Ut={width:z,height:k,x:0,y:0};if(We>0||ee>0){var mr=this.frozenGroupInfo,xr=mr.frozenTrailingCol,Kr=mr.frozenCol;Ut.width-=xr.width+Kr.width,Ut.x+=(g=Kr.width)!==null&&g!==void 0?g:0}if(Ze>0||ye>0){var mn=this.frozenGroupInfo,Vn=mn.frozenRow,In=mn.frozenTrailingRow;Ut.height0)for(var mr=dA(Ue,0,Ze).trailingColCount,xr=z.filter(function(Kr){return Kr.isLeaf}),Me=1;Me<=mr;Me++){var We=xr[xr.length-Me];Me===1?We.x=Ut-We.width:We.x=k.x-We.width,k=We}this.autoCalculateColNodeWidthAndX(i)},s.prototype.autoCalculateColNodeWidthAndX=function(i){for(var u=null,g=i.slice(0);g.length;){var C=g.shift(),x=C.parent;u!==x&&x&&(g.push(x),x.x=x.children[0].x,x.width=x.children.map(function(E){return E.width}).reduce(function(E,O){return E+O},0),u=x)}},s.prototype.calculateColLeafNodesWidth=function(i,u){var g=this.cfg,C=g.colCfg,x=g.dataSet,E=g.spreadsheet,O=this.spreadsheet.getLayoutWidthType(),R=this.getCellDraggedWidth(i);if(Rh(R))return R;var k=this.getCellCustomWidth(i,C==null?void 0:C.width);if(Rh(k))return k;var z;if(O===Cf.Compact){var j=x.getDisplayDataSet(),q=x.getFieldFormatter(i.field),ee=SO(j==null?void 0:j.slice(0,50).map(function(mr){var xr;return"".concat((xr=q==null?void 0:q(mr[i.field]))!==null&&xr!==void 0?xr:mr[i.field])}),function(mr){return E.measureTextWidthRoughly(mr)});zp.getInstance().logger("Max Label In Col:",i.field,ee);var le=E.theme.colCell.bolderText,ye=E.theme.dataCell,Me=ye.text,We=ye.cell,Ue=1,Ze=E.measureTextWidth(ee,Me)+We.padding.left+We.padding.right+Ue,Ut=E.measureTextWidth(i.label,le)+aB(this.spreadsheet,i,E.theme.colCell);z=Math.max(Ut,Ze)}else z=u;return i.field===ah&&(z=this.getSeriesNumberWidth()),z},s.prototype.getCellHeight=function(i){if(this.rowOffsets){var u=Ii(this.spreadsheet,"options.style.rowCfg.heightByField",{}),g=u==null?void 0:u[String(i)];if(Rh(g))return g}return this.getDefaultCellHeight()},s.prototype.getViewCellHeights=function(){var i=this,u=this.cfg.dataSet,g=this.getDefaultCellHeight();return{getTotalHeight:function(){return i.rowOffsets?no(i.rowOffsets):g*u.getDisplayDataSet().length},getCellOffsetY:function(C){if(C<=0)return 0;if(i.rowOffsets)return i.rowOffsets[C];for(var x=0,E=0;Eee?We=ee-mr-xr:WeMe?Ue=Me-xr:Ue<=ye?Ue=ye+xr:Ut=!1,{x:{value:We,needScroll:Ze},y:{value:Ue,needScroll:Ut}}},i.rectanglesIntersect=function(u,g){return u.maxX>g.minX&&u.minXg.minY},i.autoScrollIntervalId=null,i.autoScrollConfig=b1(mi),i.validateYIndex=function(u){var g,C,x=i.spreadsheet.facet,E=x.frozenGroupInfo,O=0,R=(g=E==null?void 0:E.frozenRow)===null||g===void 0?void 0:g.range;if(R&&(O=R[1]+1),uk?null:u},i.validateXIndex=function(u){var g,C,x=i.spreadsheet.facet,E=x.frozenGroupInfo,O=0,R=(g=E==null?void 0:E.frozenCol)===null||g===void 0?void 0:g.range;if(R&&(O=R[1]+1),uk?null:u},i.adjustNextColIndexWithFrozen=function(u,g){var C=i.spreadsheet,x=C.facet,E=C.dataSet,O=C.options,R=E.getDisplayDataSet().length,k=x.layoutResult.colLeafNodes.length,z=b_(O,k,R),j=z.frozenTrailingColCount,q=z.frozenColCount,ee=x.panelScrollGroupIndexes;return j>0&&g===iu.SCROLL_DOWN&&BM(u,j,k)?ee[1]:q>0&&g===iu.SCROLL_UP&&PM(u,q)?ee[0]:u},i.adjustNextRowIndexWithFrozen=function(u,g){var C=i.spreadsheet,x=C.facet,E=C.dataSet,O=C.options,R=E.getDisplayDataSet().length,k=x.layoutResult.colLeafNodes.length,z=x.getCellRange(),j=b_(O,k,R),q=j.frozenTrailingRowCount,ee=j.frozenRowCount,le=x.panelScrollGroupIndexes;return q>0&&g===iu.SCROLL_DOWN&&hA(u,z.end,q)?le[3]:ee>0&&g===iu.SCROLL_UP&&qI(u,z.start,ee)?le[2]:u},i.getWillScrollRowIndexDiff=function(u){return u===iu.SCROLL_DOWN?F0.SCROLL_DOWN:F0.SCROLL_UP},i.getDefaultWillScrollToRowIndex=function(u){var g=i.adjustNextRowIndexWithFrozen(i.endBrushPoint.rowIndex,u),C=g+i.getWillScrollRowIndexDiff(u);return i.validateYIndex(C)},i.getWillScrollToRowIndex=function(u){return i.getDefaultWillScrollToRowIndex(u)},i.getNextScrollDelta=function(u){var g=i.spreadsheet.facet.getScrollOffset(),C=g.scrollX,x=g.scrollY,E=0,O=0;if(u.y.scroll){var R=u.y.value>0?iu.SCROLL_DOWN:iu.SCROLL_UP,k=i.getWillScrollToRowIndex(R),z=dB(k,R,i.spreadsheet)-x,j=hu(k)||hu(z)||Number.isNaN(z);O=j?0:z}if(u.x.scroll){var R=u.x.value>0?iu.SCROLL_DOWN:iu.SCROLL_UP,q=i.adjustNextColIndexWithFrozen(i.endBrushPoint.colIndex,R),ee=i.validateXIndex(q+(u.x.value>0?1:-1));E=hu(ee)?0:hB(ee,R,i.spreadsheet)-C}return{x:E,y:O}},i.onScrollAnimationComplete=function(){i.scrollAnimationComplete=!0,i.brushSelectionStage!==$s.UN_DRAGGED&&i.renderPrepareSelected(i.endBrushPoint)},i.autoScroll=function(u){if(u===void 0&&(u=!1),!(i.brushSelectionStage===$s.UN_DRAGGED||!i.scrollAnimationComplete)){var g=i.autoScrollConfig,C=i.spreadsheet.facet.getScrollOffset(),x=u?"rowHeaderOffsetX":"offsetX",E={rowHeaderOffsetX:{value:C.rowHeaderScrollX,animate:!0},offsetX:{value:C.scrollX,animate:!0},offsetY:{value:C.scrollY,animate:!0}},O=i.getNextScrollDelta(g),R=O.x,k=O.y;if(k===0&&R===0){i.clearAutoScroll();return}if(g.y.scroll&&(E.offsetY.value+=k),g.x.scroll){var z=E[x];z.value+=R,z.value<0&&(z.value=0)}i.scrollAnimationComplete=!1;var j=g.x.scroll?1:3,q=Math.max(16,300-i.mouseMoveDistanceFromCanvas*j);i.spreadsheet.facet.scrollWithAnimation(E,q,i.onScrollAnimationComplete)}},i.handleScroll=I(function(u,g,C){if(C===void 0&&(C=!1),i.brushSelectionStage!==$s.UN_DRAGGED){var x=i.formatBrushPointForScroll({x:u,y:g},C),E=x.x,O=E.value,R=E.needScroll,k=x.y,z=k.value,j=k.needScroll,q=i.autoScrollConfig;j&&(q.y.value=g,q.y.scroll=!0),R&&(q.x.value=u,q.x.scroll=!0),i.setMoveDistanceFromCanvas({x:u,y:g},R,j),i.renderPrepareSelected({x:O,y:z}),(j||R)&&(i.clearAutoScroll(),i.autoScroll(C),i.autoScrollIntervalId=setInterval(function(){i.autoScroll(C)},16))}},30),i.clearAutoScroll=function(){i.autoScrollIntervalId&&(clearInterval(i.autoScrollIntervalId),i.autoScrollIntervalId=null,i.resetScrollDelta())},i.onUpdateCells=function(u,g){return g()},i.showPrepareSelectedCells=function(){i.brushRangeCells=i.getBrushRangeCells(),i.spreadsheet.interaction.changeState({cells:Ee(i.brushRangeCells,function(u){return wy(u)}),stateName:hi.PREPARE_SELECT,force:!0,onUpdateCells:i.onUpdateCells})},i.renderPrepareSelected=function(u){var g=u.x,C=u.y,x=i.spreadsheet.container.getShape(g,C),E=i.spreadsheet.getCell(x),O=E instanceof bx||E instanceof o6||E instanceof _A;if(!(!E||!O)){var R=E.getMeta(),k=R.rowIndex,z=R.colIndex;i.endBrushPoint={x:g,y:C,rowIndex:k,colIndex:z};var j=i.spreadsheet.interaction;j.addIntercepts([na.HOVER]),j.clearStyleIndependent(),i.isValidBrushSelection()&&(i.showPrepareSelectedCells(),i.updatePrepareSelectMask())}},i}return s.prototype.bindEvents=function(){this.bindMouseDown(),this.bindMouseMove(),this.bindMouseUp()},s.prototype.getPrepareSelectMaskTheme=function(){var i;return(i=this.spreadsheet.theme)===null||i===void 0?void 0:i.prepareSelectMask},s.prototype.initPrepareSelectMaskShape=function(){var i=this.spreadsheet.foregroundGroup;if(i){i.removeChild(this.prepareSelectMaskShape);var u=this.getPrepareSelectMaskTheme();this.prepareSelectMaskShape=i.addShape("rect",{visible:!1,attrs:{width:0,height:0,x:0,y:0,fill:u==null?void 0:u.backgroundColor,fillOpacity:u==null?void 0:u.backgroundOpacity,zIndex:Fx},capture:!1})}},s.prototype.setBrushSelectionStage=function(i){this.brushSelectionStage=i},s.prototype.isPointInCanvas=function(i){var u=this.spreadsheet.facet.getCanvasHW(),g=u.height,C=u.width,x=this.spreadsheet.facet.panelBBox,E=x.minX,O=x.minY;return i.x>E&&i.xO&&i.ythis.brushSelectionMinimumMoveDistance||g.y-u.y>this.brushSelectionMinimumMoveDistance;return C},s.prototype.setDisplayedCells=function(){this.displayedCells=this.spreadsheet.interaction.getPanelGroupAllDataCells()},s.prototype.updatePrepareSelectMask=function(){var i=this.getBrushRange(),u=this.getPrepareSelectMaskPosition(i),g=u.x,C=u.y;this.prepareSelectMaskShape.attr({x:g,y:C,width:i.width,height:i.height}),this.prepareSelectMaskShape.show()},s.prototype.hidePrepareSelectMaskShape=function(){var i;(i=this.prepareSelectMaskShape)===null||i===void 0||i.hide()},s.prototype.resetScrollDelta=function(){this.autoScrollConfig=b1(mi)},s.prototype.getBrushPoint=function(i){var u=this.spreadsheet.facet.getScrollOffset(),g=u.scrollY,C=u.scrollX,x={x:i==null?void 0:i.x,y:i==null?void 0:i.y},E=this.spreadsheet.getCell(i.target),O=E.getMeta(),R=O.colIndex,k=O.rowIndex;return ur(ur({},x),{rowIndex:k,colIndex:R,scrollY:g,scrollX:C})},s.prototype.getBrushRange=function(){var i,u,g,C,x,E,O,R,k=this.spreadsheet.facet.getScrollOffset(),z=k.scrollX,j=k.scrollY,q=Math.min(this.startBrushPoint.rowIndex,(i=this.endBrushPoint)===null||i===void 0?void 0:i.rowIndex),ee=Math.max(this.startBrushPoint.rowIndex,(u=this.endBrushPoint)===null||u===void 0?void 0:u.rowIndex),le=Math.min(this.startBrushPoint.colIndex,(g=this.endBrushPoint)===null||g===void 0?void 0:g.colIndex),ye=Math.max(this.startBrushPoint.colIndex,(C=this.endBrushPoint)===null||C===void 0?void 0:C.colIndex),Me=this.startBrushPoint.x+this.startBrushPoint.scrollX-z,We=this.startBrushPoint.y+this.startBrushPoint.scrollY-j,Ue=Math.min(Me,(x=this.endBrushPoint)===null||x===void 0?void 0:x.x),Ze=Math.max(Me,(E=this.endBrushPoint)===null||E===void 0?void 0:E.x),Ut=Math.min(We,(O=this.endBrushPoint)===null||O===void 0?void 0:O.y),mr=Math.max(We,(R=this.endBrushPoint)===null||R===void 0?void 0:R.y);return{start:{rowIndex:q,colIndex:le,x:Ue,y:Ut},end:{rowIndex:ee,colIndex:ye,x:Ze,y:mr},width:Ze-Ue,height:mr-Ut}},s.prototype.getBrushRangeCells=function(){var i=this;return this.setDisplayedCells(),this.displayedCells.filter(function(u){var g=u.getMeta();return i.isInBrushRange(g)})},s.prototype.mouseDown=function(i){var u;(u=i==null?void 0:i.preventDefault)===null||u===void 0||u.call(i),!this.spreadsheet.interaction.hasIntercepts([na.CLICK])&&(this.setBrushSelectionStage($s.CLICK),this.initPrepareSelectMaskShape(),this.setDisplayedCells(),this.startBrushPoint=this.getBrushPoint(i))},s.prototype.addBrushIntercepts=function(){this.spreadsheet.interaction.addIntercepts([na.BRUSH_SELECTION])},s.prototype.bindMouseUp=function(i){var u=this;i===void 0&&(i=!1),this.spreadsheet.on(Dr.GLOBAL_MOUSE_UP,function(g){if(u.brushSelectionStage!==$s.DRAGGED){u.resetDrag();return}if(i&&u.clearAutoScroll(),u.isValidBrushSelection()){u.addBrushIntercepts(),u.updateSelectedCells();var C=nD(u.spreadsheet);u.spreadsheet.showTooltipWithInfo(g,C)}u.spreadsheet.interaction.getCurrentStateName()===hi.PREPARE_SELECT&&u.spreadsheet.interaction.reset(),u.resetDrag()}),this.spreadsheet.on(Dr.GLOBAL_CONTEXT_MENU,function(){u.brushSelectionStage!==$s.UN_DRAGGED&&(u.spreadsheet.interaction.removeIntercepts([na.HOVER]),u.resetDrag())})},s.prototype.autoBrushScroll=function(i,u){var g,C;if(u===void 0&&(u=!1),this.clearAutoScroll(),!this.isPointInCanvas(i)){var x=(i==null?void 0:i.x)-((g=this.endBrushPoint)===null||g===void 0?void 0:g.x),E=(i==null?void 0:i.y)-((C=this.endBrushPoint)===null||C===void 0?void 0:C.y);return this.handleScroll(x,E,u),!0}return!1},s.prototype.emitBrushSelectionEvent=function(i,u){this.spreadsheet.emit(i,u),this.spreadsheet.emit(Dr.GLOBAL_SELECTED,u),Nn(u)&&this.spreadsheet.interaction.removeIntercepts([na.HOVER])},s.prototype.getVisibleBrushRangeCells=function(i){return this.brushRangeCells.find(function(u){var g=u.getMeta();return(g==null?void 0:g.id)===i})},s.prototype.isInBrushRange=function(i){return!1},s.prototype.bindMouseDown=function(){},s.prototype.bindMouseMove=function(){},s.prototype.updateSelectedCells=function(){},s.prototype.getPrepareSelectMaskPosition=function(i){return{x:i.start.x,y:i.start.y}},s}(Ey),eF=function(l){Ni(s,l);function s(){var i=l!==null&&l.apply(this,arguments)||this;return i.displayedCells=[],i.brushRangeCells=[],i.onUpdateCells=function(u){return u.updateCells(u.getAllColHeaderCells())},i}return s.prototype.bindEvents=function(){this.bindMouseDown(),this.bindMouseMove(),this.bindMouseUp()},s.prototype.bindMouseDown=function(){var i=this;this.spreadsheet.on(Dr.COL_CELL_MOUSE_DOWN,function(u){i.spreadsheet.interaction.getBrushSelection().col&&l.prototype.mouseDown.call(i,u)})},s.prototype.isPointInCanvas=function(i){var u=this.spreadsheet.facet.getCanvasHW().width,g=this.spreadsheet.facet.cornerBBox,C=g.width,x=g.minY,E=g.maxY;return i.x>=C&&i.x<=u&&i.y>=x&&i.y<=E},s.prototype.bindMouseMove=function(){var i=this;this.spreadsheet.on(Dr.COL_CELL_MOUSE_MOVE,function(u){if(i.brushSelectionStage!==$s.UN_DRAGGED){i.setBrushSelectionStage($s.DRAGGED);var g=i.spreadsheet.container.getPointByEvent(u.originalEvent);i.isPointInCanvas(g)&&i.renderPrepareSelected(g)}})},s.prototype.setDisplayedCells=function(){this.displayedCells=this.spreadsheet.interaction.getAllColHeaderCells()},s.prototype.isInBrushRange=function(i){var u=this.getBrushRange(),g=u.start,C=u.end,x=this.spreadsheet.facet.getScrollOffset().scrollX,E=this.spreadsheet.facet.cornerBBox,O=i.x,R=O===void 0?0:O,k=i.y,z=k===void 0?0:k,j=i.width,q=j===void 0?0:j,ee=i.height,le=ee===void 0?0:ee;return this.rectanglesIntersect({minX:g.x-E.width+x,minY:g.y,maxX:C.x-E.width+x,maxY:C.y},{minX:R,maxX:R+q,minY:z,maxY:z+le})},s.prototype.updateSelectedCells=function(){var i=this.spreadsheet.interaction;i.changeState({cells:Ee(this.brushRangeCells,wy),stateName:hi.BRUSH_SELECTED,onUpdateCells:this.onUpdateCells}),this.spreadsheet.emit(Dr.COL_CELL_BRUSH_SELECTION,this.brushRangeCells),this.spreadsheet.emit(Dr.GLOBAL_SELECTED,this.brushRangeCells),Nn(this.brushRangeCells)&&i.removeIntercepts([na.HOVER])},s.prototype.addBrushIntercepts=function(){this.spreadsheet.interaction.addIntercepts([na.COL_BRUSH_SELECTION])},s}(cD),tF=function(l){Ni(s,l);function s(){var i=l!==null&&l.apply(this,arguments)||this;return i.displayedCells=[],i.brushRangeCells=[],i.getSelectedCellMetas=function(u){var g=[],C=i.spreadsheet.facet.layoutResult,x=C.rowLeafNodes,E=x===void 0?[]:x,O=C.colLeafNodes,R=O===void 0?[]:O,k=K2(u.start.rowIndex,u.end.rowIndex+1),z=K2(u.start.colIndex,u.end.colIndex+1);return k.forEach(function(j){z.forEach(function(q){var ee=String(R[q].id),le=Nn(E)?String(j):String(E[j].id);g.push({colIndex:q,rowIndex:j,id:"".concat(le,"-").concat(ee),type:Mn.DATA_CELL,rowId:le,colId:ee,spreadsheet:i.spreadsheet})})}),g},i}return s.prototype.bindMouseDown=function(){var i=this;this.spreadsheet.on(Dr.DATA_CELL_MOUSE_DOWN,function(u){i.spreadsheet.interaction.getBrushSelection().data&&(l.prototype.mouseDown.call(i,u),i.resetScrollDelta())})},s.prototype.bindMouseMove=function(){var i=this;this.spreadsheet.on(Dr.GLOBAL_MOUSE_MOVE,function(u){if(i.brushSelectionStage!==$s.UN_DRAGGED){i.setBrushSelectionStage($s.DRAGGED);var g=i.spreadsheet.container.getPointByEvent(u);i.autoBrushScroll(g)||i.renderPrepareSelected(g)}})},s.prototype.isInBrushRange=function(i){var u=this.getBrushRange(),g=u.start,C=u.end,x=i.rowIndex,E=i.colIndex;return x>=g.rowIndex&&x<=C.rowIndex&&E>=g.colIndex&&E<=C.colIndex},s.prototype.updateSelectedCells=function(){var i=this.getBrushRange(),u=this.getSelectedCellMetas(i);this.spreadsheet.interaction.changeState({cells:u,stateName:hi.SELECTED,onUpdateCells:VR});var g=this.getScrollBrushRangeCells(u);this.emitBrushSelectionEvent(Dr.DATA_CELL_BRUSH_SELECTION,g)},s.prototype.getScrollBrushRangeCells=function(i){var u=this;return i.map(function(g){var C=u.getVisibleBrushRangeCells(g.id);if(C)return C;var x=u.spreadsheet.facet.layoutResult.getCellMeta(g.rowIndex,g.colIndex),E=u.spreadsheet.isTableMode()?EA:bx;return new E(x,u.spreadsheet)})},s.prototype.bindMouseUp=function(){l.prototype.bindMouseUp.call(this,!0)},s.prototype.getPrepareSelectMaskPosition=function(i){var u=this.spreadsheet.facet.panelBBox,g=u.minX,C=u.minY,x=Math.max(i.start.x,g),E=Math.max(i.start.y,C);return{x,y:E}},s}(cD),rF=function(l){Ni(s,l);function s(){var i=l!==null&&l.apply(this,arguments)||this;return i.isInBrushRange=function(u){var g=i.getBrushRange(),C=g.start,x=g.end,E=i.spreadsheet.facet.getScrollOffset(),O=E.scrollY,R=E.rowHeaderScrollX,k=i.spreadsheet.facet.cornerBBox,z=u.x,j=z===void 0?0:z,q=u.y,ee=q===void 0?0:q,le=u.width,ye=le===void 0?0:le,Me=u.height,We=Me===void 0?0:Me;return i.rectanglesIntersect({minX:C.x+R,minY:C.y-k.height+O,maxX:x.x+R,maxY:x.y-k.height+O},{minX:j,maxX:j+ye,minY:ee,maxY:ee+We})},i.onUpdateCells=function(u){return u.updateCells(u.getAllRowHeaderCells())},i.getSelectedRowNodes=function(){return i.spreadsheet.getRowNodes().filter(i.isInBrushRange)},i.getVisibleRowLeafCellByScrollDirection=function(u){var g=i.spreadsheet.interaction.getAllRowHeaderCells();return u===iu.SCROLL_DOWN?no(g):g.find(function(C){var x=C.getMeta();return x.isLeaf})},i.getWillScrollToRowIndex=function(u){var g,C;if(!hu(i.endBrushPoint.rowIndex))return i.getDefaultWillScrollToRowIndex(u);var x=i.getVisibleRowLeafCellByScrollDirection(u),E=(C=(g=x==null?void 0:x.getMeta())===null||g===void 0?void 0:g.rowIndex)!==null&&C!==void 0?C:0,O=E+i.getWillScrollRowIndexDiff(u);return i.validateYIndex(O)},i}return s.prototype.bindMouseDown=function(){var i=this;this.spreadsheet.on(Dr.ROW_CELL_MOUSE_DOWN,function(u){i.spreadsheet.interaction.getBrushSelection().row&&l.prototype.mouseDown.call(i,u)})},s.prototype.isPointInCanvas=function(i){var u=this.spreadsheet.facet.getCanvasHW().height,g=this.spreadsheet.facet.cornerBBox,C=g.minX,x=g.height,E=g.maxX;return i.x>=C&&i.x<=E&&i.y>=x&&i.y<=u},s.prototype.bindMouseMove=function(){var i=this;this.spreadsheet.on(Dr.GLOBAL_MOUSE_MOVE,function(u){if(i.brushSelectionStage!==$s.UN_DRAGGED){i.setBrushSelectionStage($s.DRAGGED);var g=i.spreadsheet.container.getPointByEvent(u);i.autoBrushScroll(g,!0)||i.renderPrepareSelected(g)}})},s.prototype.setDisplayedCells=function(){this.displayedCells=this.spreadsheet.interaction.getAllRowHeaderCells()},s.prototype.updateSelectedCells=function(){var i=this.getSelectedRowNodes(),u=this.getScrollBrushRangeCells(i),g=Ee(u,wy);this.spreadsheet.interaction.changeState({cells:g,stateName:hi.BRUSH_SELECTED,onUpdateCells:this.onUpdateCells}),this.emitBrushSelectionEvent(Dr.ROW_CELL_BRUSH_SELECTION,u)},s.prototype.addBrushIntercepts=function(){this.spreadsheet.interaction.addIntercepts([na.ROW_BRUSH_SELECTION])},s.prototype.getScrollBrushRangeCells=function(i){var u=this;return i.map(function(g){var C=u.getVisibleBrushRangeCells(g.id);return C||new o6(g,u.spreadsheet)})},s.prototype.getPrepareSelectMaskPosition=function(i){var u=this.spreadsheet.facet.panelBBox.minY,g=i.start.x,C=Math.max(i.start.y,u);return{x:g,y:C}},s}(cD),nF=function(l){Ni(s,l);function s(){var i=l!==null&&l.apply(this,arguments)||this;return i.isMultiSelection=!1,i}return s.prototype.bindEvents=function(){this.bindKeyboardDown(),this.bindDataCellClick(),this.bindKeyboardUp(),this.bindMouseMove()},s.prototype.reset=function(){this.isMultiSelection=!1,this.spreadsheet.interaction.removeIntercepts([na.CLICK])},s.prototype.bindKeyboardDown=function(){var i=this;this.spreadsheet.on(Dr.GLOBAL_KEYBOARD_DOWN,function(u){l6(u)&&(i.isMultiSelection=!0,i.spreadsheet.interaction.addIntercepts([na.CLICK]))})},s.prototype.bindKeyboardUp=function(){var i=this;this.spreadsheet.on(Dr.GLOBAL_KEYBOARD_UP,function(u){l6(u)&&i.reset()})},s.prototype.bindMouseMove=function(){var i=this;this.spreadsheet.on(Dr.GLOBAL_MOUSE_MOVE,function(u){i.isMultiSelection&&!GP(u)&&i.reset()})},s.prototype.getSelectedCells=function(i){var u=i.getMeta().id,g=this.spreadsheet.interaction,C=g.getCells([Mn.DATA_CELL]),x=[];return g.getCurrentStateName()!==hi.SELECTED&&(C=[]),C.find(function(E){return E.id===u})?x=C.filter(function(E){return E.id!==u}):x=nn(nn([],kr(C),!1),[wy(i)],!1),x},s.prototype.bindDataCellClick=function(){var i=this;this.spreadsheet.on(Dr.DATA_CELL_CLICK,function(u){u.stopPropagation();var g=i.spreadsheet.getCell(u.target),C=g.getMeta(),x=i.spreadsheet,E=x.interaction;if(x.options,i.isMultiSelection&&C){var O=i.getSelectedCells(g);if(Nn(O)){E.clearState(),i.spreadsheet.hideTooltip();return}E.addIntercepts([na.CLICK,na.HOVER]),i.spreadsheet.hideTooltip(),E.changeState({cells:O,stateName:hi.SELECTED,onUpdateCells:VR}),i.spreadsheet.emit(Dr.GLOBAL_SELECTED,E.getActiveCells()),i.spreadsheet.showTooltipWithInfo(u,nD(i.spreadsheet))}})},s}(Ey),iF=function(){function l(s){var i=this;this.canvasEventHandlers=[],this.s2EventHandlers=[],this.domEventListeners=[],this.isCanvasEffect=!1,this.isGuiIconShape=function(u){return u instanceof rb&&u.attrs.type===fA.type},this.onCanvasMousedown=function(u){if(i.target=u.target,i.spreadsheet.interaction.clearHoverTimer(),i.isResizeArea(u)){i.spreadsheet.emit(Dr.LAYOUT_RESIZE_MOUSE_DOWN,u);var g=function(x){if(!i.spreadsheet.getCanvasElement())return!1;i.spreadsheet.getCanvasElement()!==x.target&&(u.clientX=x.clientX,u.clientY=x.clientY,u.originalEvent=x,i.spreadsheet.emit(Dr.LAYOUT_RESIZE_MOUSE_MOVE,u))};window.addEventListener("mousemove",g),window.addEventListener("mouseup",function(){window.removeEventListener("mousemove",g)},{once:!0});return}var C=i.spreadsheet.getCellType(u.target);switch(C){case Mn.DATA_CELL:i.spreadsheet.emit(Dr.DATA_CELL_MOUSE_DOWN,u);break;case Mn.ROW_CELL:i.spreadsheet.emit(Dr.ROW_CELL_MOUSE_DOWN,u);break;case Mn.COL_CELL:i.spreadsheet.emit(Dr.COL_CELL_MOUSE_DOWN,u);break;case Mn.CORNER_CELL:i.spreadsheet.emit(Dr.CORNER_CELL_MOUSE_DOWN,u);break;case Mn.MERGED_CELL:i.spreadsheet.emit(Dr.MERGED_CELLS_MOUSE_DOWN,u);break}},this.onCanvasMousemove=function(u){if(i.canvasMousemoveEvent=u,i.isResizeArea(u)){i.activeResizeArea(u),i.spreadsheet.emit(Dr.LAYOUT_RESIZE_MOUSE_MOVE,u);return}i.resetResizeArea();var g=i.spreadsheet.getCell(u.target);if(g){var C=g.cellType;switch(C){case Mn.DATA_CELL:i.spreadsheet.emit(Dr.DATA_CELL_MOUSE_MOVE,u);break;case Mn.ROW_CELL:i.spreadsheet.emit(Dr.ROW_CELL_MOUSE_MOVE,u);break;case Mn.COL_CELL:i.spreadsheet.emit(Dr.COL_CELL_MOUSE_MOVE,u);break;case Mn.CORNER_CELL:i.spreadsheet.emit(Dr.CORNER_CELL_MOUSE_MOVE,u);break;case Mn.MERGED_CELL:i.spreadsheet.emit(Dr.MERGED_CELLS_MOUSE_MOVE,u);break}if(!i.hasBrushSelectionIntercepts())switch(i.spreadsheet.emit(Dr.GLOBAL_HOVER,u),C){case Mn.DATA_CELL:i.spreadsheet.emit(Dr.DATA_CELL_HOVER,u);break;case Mn.ROW_CELL:i.spreadsheet.emit(Dr.ROW_CELL_HOVER,u);break;case Mn.COL_CELL:i.spreadsheet.emit(Dr.COL_CELL_HOVER,u);break;case Mn.CORNER_CELL:i.spreadsheet.emit(Dr.CORNER_CELL_HOVER,u);break;case Mn.MERGED_CELL:i.spreadsheet.emit(Dr.MERGED_CELLS_HOVER,u);break}}},this.onCanvasMouseup=function(u){if(i.isResizeArea(u)){i.spreadsheet.emit(Dr.LAYOUT_RESIZE_MOUSE_UP,u);return}var g=i.spreadsheet.getCell(u.target);if(g){var C=g.cellType;if(i.target===u.target){var x=i.isGuiIconShape(u.target);switch(C){case Mn.DATA_CELL:i.spreadsheet.emit(Dr.DATA_CELL_CLICK,u);break;case Mn.ROW_CELL:if(x)break;i.spreadsheet.emit(Dr.ROW_CELL_CLICK,u);break;case Mn.COL_CELL:if(x)break;i.spreadsheet.emit(Dr.COL_CELL_CLICK,u);break;case Mn.CORNER_CELL:if(x)break;i.spreadsheet.emit(Dr.CORNER_CELL_CLICK,u);break;case Mn.MERGED_CELL:i.spreadsheet.emit(Dr.MERGED_CELLS_CLICK,u);break}}switch(C){case Mn.DATA_CELL:i.spreadsheet.emit(Dr.DATA_CELL_MOUSE_UP,u);break;case Mn.ROW_CELL:i.spreadsheet.emit(Dr.ROW_CELL_MOUSE_UP,u);break;case Mn.COL_CELL:i.spreadsheet.emit(Dr.COL_CELL_MOUSE_UP,u);break;case Mn.CORNER_CELL:i.spreadsheet.emit(Dr.CORNER_CELL_MOUSE_UP,u);break;case Mn.MERGED_CELL:i.spreadsheet.emit(Dr.MERGED_CELLS_MOUSE_UP,u);break}}},this.onCanvasClick=function(u){i.spreadsheet.emit(Dr.GLOBAL_CLICK,u)},this.onCanvasDoubleClick=function(u){var g=i.spreadsheet;if(i.isResizeArea(u)){g.emit(Dr.LAYOUT_RESIZE_MOUSE_UP,u);return}g.emit(Dr.GLOBAL_DOUBLE_CLICK,u);var C=g.getCell(u.target);if(C){var x=C.cellType;if(i.target===u.target)switch(x){case Mn.DATA_CELL:g.emit(Dr.DATA_CELL_DOUBLE_CLICK,u);break;case Mn.ROW_CELL:g.emit(Dr.ROW_CELL_DOUBLE_CLICK,u);break;case Mn.COL_CELL:g.emit(Dr.COL_CELL_DOUBLE_CLICK,u);break;case Mn.CORNER_CELL:g.emit(Dr.CORNER_CELL_DOUBLE_CLICK,u);break;case Mn.MERGED_CELL:g.emit(Dr.MERGED_CELLS_DOUBLE_CLICK,u);break}}},this.onCanvasMouseout=function(u){if(!(!i.isAutoResetSheetStyle||u!=null&&u.shape)){var g=i.spreadsheet.interaction;!g.isSelectedState()&&!(g.intercepts.size>0)&&g.reset()}},this.onCanvasContextMenu=function(u){var g=i.spreadsheet;if(i.isResizeArea(u)){g.emit(Dr.LAYOUT_RESIZE_MOUSE_UP,u);return}g.emit(Dr.GLOBAL_CONTEXT_MENU,u);var C=i.spreadsheet.getCellType(u.target);switch(C){case Mn.DATA_CELL:i.spreadsheet.emit(Dr.DATA_CELL_CONTEXT_MENU,u);break;case Mn.ROW_CELL:i.spreadsheet.emit(Dr.ROW_CELL_CONTEXT_MENU,u);break;case Mn.COL_CELL:i.spreadsheet.emit(Dr.COL_CELL_CONTEXT_MENU,u);break;case Mn.CORNER_CELL:i.spreadsheet.emit(Dr.CORNER_CELL_CONTEXT_MENU,u);break;case Mn.MERGED_CELL:i.spreadsheet.emit(Dr.MERGED_CELLS_CONTEXT_MENU,u);break}},this.spreadsheet=s,this.bindEvents()}return Object.defineProperty(l.prototype,"canvasContainer",{get:function(){return this.spreadsheet.container},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isAutoResetSheetStyle",{get:function(){return this.spreadsheet.options.interaction.autoResetSheetStyle},enumerable:!1,configurable:!0}),l.prototype.bindEvents=function(){var s=this;this.clearAllEvents(),this.addCanvasEvent(El.CLICK,this.onCanvasClick),this.addCanvasEvent(El.MOUSE_DOWN,this.onCanvasMousedown),this.addCanvasEvent(El.MOUSE_MOVE,this.onCanvasMousemove),this.addCanvasEvent(El.MOUSE_OUT,this.onCanvasMouseout),this.addCanvasEvent(El.MOUSE_UP,this.onCanvasMouseup),this.addCanvasEvent(El.DOUBLE_CLICK,this.onCanvasDoubleClick),this.addCanvasEvent(El.CONTEXT_MENU,this.onCanvasContextMenu),this.addS2Event(Dr.GLOBAL_ACTION_ICON_CLICK,function(){s.spreadsheet.interaction.addIntercepts([na.HOVER]),s.spreadsheet.interaction.clearState()}),this.addDomEventListener(window,El.CLICK,function(i){s.resetSheetStyle(i),s.isCanvasEffect=s.isMouseOnTheCanvasContainer(i)}),this.addDomEventListener(window,El.KEY_DOWN,function(i){s.onKeyboardCopy(i),s.onKeyboardEsc(i),s.spreadsheet.emit(Dr.GLOBAL_KEYBOARD_DOWN,i)}),this.addDomEventListener(window,El.KEY_UP,function(i){s.spreadsheet.emit(Dr.GLOBAL_KEYBOARD_UP,i)}),this.addDomEventListener(window,El.MOUSE_UP,function(i){s.spreadsheet.emit(Dr.GLOBAL_MOUSE_UP,i)}),this.addDomEventListener(window,El.MOUSE_MOVE,function(i){s.spreadsheet.emit(Dr.GLOBAL_MOUSE_MOVE,i)})},l.prototype.onKeyboardCopy=function(s){if(this.isCanvasEffect&&this.spreadsheet.options.interaction.enableCopy&&uP(s.key,Fl.COPY)&&(s.metaKey||s.ctrlKey)){var i=gP(this.spreadsheet);hu(i)||this.spreadsheet.emit(Dr.GLOBAL_COPIED,i)}},l.prototype.onKeyboardEsc=function(s){this.isCanvasEffect&&uP(s.key,Fl.ESC)&&this.resetSheetStyle(s)},l.prototype.resetSheetStyle=function(s){if(!(!this.isAutoResetSheetStyle||!this.spreadsheet)){var i=this.spreadsheet.interaction;if(i.hasIntercepts([na.BRUSH_SELECTION,na.COL_BRUSH_SELECTION,na.ROW_BRUSH_SELECTION])){i.removeIntercepts([na.BRUSH_SELECTION,na.ROW_BRUSH_SELECTION,na.COL_BRUSH_SELECTION]);return}this.isMouseOnTheTooltip(s)||this.isMouseOnTheCanvasContainer(s)||(this.spreadsheet.emit(Dr.GLOBAL_RESET,s),i.reset())}},l.prototype.isMouseEvent=function(s){return sy(s,"clientX")&&sy(s,"clientY")},l.prototype.isMouseOnTheCanvasContainer=function(s){if(this.isMouseEvent(s)){var i=this.spreadsheet.getCanvasElement();if(!i)return!1;var u=i.getBoundingClientRect()||{},g=u.x,C=u.y,x=this.getContainerRect(),E=x.width,O=x.height;return i.contains(s.target)&&s.clientX<=g+E&&s.clientY<=C+O}return!1},l.prototype.getContainerRect=function(){var s,i=this.spreadsheet,u=i.facet,g=i.options,C=u.hRowScrollBar||u.hScrollBar,x=(u==null?void 0:u.panelBBox)||{},E=x.maxX,O=x.maxY,R=g.width,k=g.height,z=((s=C==null?void 0:C.theme)===null||s===void 0?void 0:s.size)||0;return{width:Math.min(R,E),height:Math.min(k,O+z)}},l.prototype.isMouseOnTheTooltip=function(s){var i,u,g,C,x=this.spreadsheet.tooltip;if(!(x!=null&&x.visible))return!1;var E=((g=(u=(i=this.spreadsheet.tooltip)===null||i===void 0?void 0:i.container)===null||u===void 0?void 0:u.getBoundingClientRect)===null||g===void 0?void 0:g.call(u))||{},O=E.x,R=E.y,k=E.width,z=E.height;return s.target instanceof Node?Sk((C=this.spreadsheet.tooltip)===null||C===void 0?void 0:C.container,s.target):this.isMouseEvent(s)?s.clientX>=O&&s.clientX<=O+k&&s.clientY>=R&&s.clientY<=R+z:!1},l.prototype.isResizeArea=function(s){var i=Ii(s.target,"attrs.appendInfo");return i==null?void 0:i.isResizeArea},l.prototype.activeResizeArea=function(s){this.resetResizeArea();var i=s.target;this.spreadsheet.store.set("activeResizeArea",i),i.attr(Gs.backgroundOpacity,this.spreadsheet.theme.resizeArea.interactionState.hover.backgroundOpacity)},l.prototype.resetResizeArea=function(){var s=this.spreadsheet.store.get("activeResizeArea");Nn(s)||s.attr(Gs.backgroundOpacity,this.spreadsheet.theme.resizeArea.backgroundOpacity),this.spreadsheet.store.set("activeResizeArea",s)},l.prototype.hasBrushSelectionIntercepts=function(){return this.spreadsheet.interaction.hasIntercepts([na.HOVER,na.BRUSH_SELECTION,na.ROW_BRUSH_SELECTION,na.COL_BRUSH_SELECTION])},l.prototype.clear=function(){this.unbindEvents()},l.prototype.unbindEvents=function(){this.clearAllEvents()},l.prototype.addCanvasEvent=function(s,i){var u;(u=this.canvasContainer)===null||u===void 0||u.on(s,i),this.canvasEventHandlers.push({type:s,handler:i})},l.prototype.addS2Event=function(s,i){this.spreadsheet.on(s,i),this.s2EventHandlers.push({type:s,handler:i})},l.prototype.addDomEventListener=function(s,i,u){if(s.addEventListener){var g=this.spreadsheet.options.interaction.eventListenerOptions;s.addEventListener(i,u,g),this.domEventListeners.push({target:s,type:i,handler:u,options:g})}else console.error("Please make sure ".concat(s," has addEventListener function"))},l.prototype.clearAllEvents=function(){var s=this;Qi(this.canvasEventHandlers,function(i){var u,g=i.type,C=i.handler;(u=s.canvasContainer)===null||u===void 0||u.off(g,C)}),Qi(this.s2EventHandlers,function(i){var u=i.type,g=i.handler;s.spreadsheet.off(u,g)}),Qi(this.domEventListeners,function(i){i.target.removeEventListener(i.type,i.handler,i.options)}),this.canvasEventHandlers=[],this.s2EventHandlers=[],this.domEventListeners=[]},l}(),aF=function(l){Ni(s,l);function s(){var i=l!==null&&l.apply(this,arguments)||this;return i.isRangeSelection=!1,i.handleColClick=function(u){u.stopPropagation();var g=i.spreadsheet.interaction,C=i.spreadsheet.getCell(u.target),x=C==null?void 0:C.getMeta();if(!hu(x==null?void 0:x.x)){g.addIntercepts([na.HOVER]);var E=[wy(C)],O=i.spreadsheet.store.get("lastClickedCell");if(i.isRangeSelection&&O&&O.cellType===C.cellType&&O.getMeta().level===C.getMeta().level){var R=kr([i.spreadsheet.facet.layoutResult.rowsHierarchy.maxLevel,i.spreadsheet.facet.layoutResult.colsHierarchy.maxLevel],2),k=R[0],z=R[1],j=jR(O.getMeta(),C.getMeta()),q=j.start,ee=j.end;C instanceof bx?E=i.handleSeriesNumberRowSelected(q.rowIndex,ee.rowIndex,C):C.cellType===Mn.ROW_CELL&&C.getMeta().level===k?E=i.handleRowSelected(q.rowIndex,ee.rowIndex,C):C.cellType===Mn.COL_CELL&&C.getMeta().level===z&&(E=i.handleColSelected(q.colIndex,ee.colIndex,C)),g.changeState({cells:E,stateName:hi.SELECTED})}else Nn(g.getCells())&&g.removeIntercepts([na.HOVER]),i.spreadsheet.store.set("lastClickedCell",C);var le=E.map(function(ye){var Me=ye.id;return Me});g.updateCells(g.getRowColActiveCells(le)),i.spreadsheet.emit(Dr.GLOBAL_SELECTED,g.getActiveCells())}},i}return s.prototype.bindEvents=function(){this.bindKeyboardDown(),this.bindDataCellClick(),this.bindColCellClick(),this.bindKeyboardUp(),this.bindMouseMove()},s.prototype.reset=function(){this.isRangeSelection=!1,this.spreadsheet.interaction.removeIntercepts([na.CLICK])},s.prototype.bindKeyboardDown=function(){var i=this;this.spreadsheet.on(Dr.GLOBAL_KEYBOARD_DOWN,function(u){u.key===Fl.SHIFT&&(i.isRangeSelection=!0,i.spreadsheet.interaction.addIntercepts([na.CLICK]))})},s.prototype.bindKeyboardUp=function(){var i=this;this.spreadsheet.on(Dr.GLOBAL_KEYBOARD_UP,function(u){u.key===Fl.SHIFT&&i.reset()})},s.prototype.bindMouseMove=function(){var i=this;this.spreadsheet.on(Dr.GLOBAL_MOUSE_MOVE,function(u){i.isRangeSelection&&!u.shiftKey&&i.reset()})},s.prototype.bindColCellClick=function(){var i=this;this.spreadsheet.isTableMode()&&this.spreadsheet.on(Dr.ROW_CELL_CLICK,function(u){i.handleColClick(u)}),this.spreadsheet.on(Dr.COL_CELL_CLICK,function(u){i.handleColClick(u)})},s.prototype.bindDataCellClick=function(){var i=this;this.spreadsheet.on(Dr.DATA_CELL_CLICK,function(u){u.stopPropagation();var g=i.spreadsheet.getCell(u.target),C=g.getMeta(),x=i.spreadsheet.interaction;if(C){var E=i.spreadsheet.store.get("lastClickedCell"),O=i.isRangeSelection&&(E==null?void 0:E.cellType)===g.cellType;if(!O){i.spreadsheet.store.set("lastClickedCell",g);return}var R=jR(E.getMeta(),g.getMeta()),k=R.start,z=R.end,j=K2(k.colIndex,z.colIndex+1).flatMap(function(q){var ee=i.spreadsheet.facet.layoutResult.colLeafNodes[q].id;return K2(k.rowIndex,z.rowIndex+1).map(function(le){var ye=i.spreadsheet.facet.getSeriesNumberWidth()||i.spreadsheet.isTableMode()?String(le):i.spreadsheet.facet.layoutResult.rowLeafNodes[le].id;return{id:ye+"-"+ee,colIndex:q,rowIndex:le,type:g.cellType}})});x.addIntercepts([na.CLICK,na.HOVER]),x.changeState({cells:j,stateName:hi.SELECTED}),i.spreadsheet.showTooltipWithInfo(u,nD(i.spreadsheet)),i.spreadsheet.emit(Dr.GLOBAL_SELECTED,x.getActiveCells())}})},s.prototype.handleSeriesNumberRowSelected=function(i,u,g){var C=this.spreadsheet.facet.layoutResult.colLeafNodes[0].id;return K2(i,u+1).map(function(x){var E=String(x);return{id:E+"-"+C,colIndex:0,rowIndex:x,type:g.cellType}})},s.prototype.handleRowSelected=function(i,u,g){return this.spreadsheet.facet.layoutResult.rowNodes.filter(function(C){var x=C.rowIndex;return Pp(x,i,u+1)}).map(function(C){return{id:C.id,colIndex:C.colIndex,rowIndex:C.rowIndex,type:g.cellType}})},s.prototype.handleColSelected=function(i,u,g){return this.spreadsheet.facet.layoutResult.colLeafNodes.filter(function(C){var x=C.colIndex;return Pp(x,i,u+1)}).map(function(C){return{id:C.id,colIndex:C.colIndex,rowIndex:C.rowIndex,type:g.cellType}})},s}(Ey),oF=function(l){Ni(s,l);function s(){var i=l!==null&&l.apply(this,arguments)||this;return i.resizeStartPosition={},i.resizeMouseMove=function(u){var g,C;if(!((g=i.resizeReferenceGroup)===null||g===void 0)&&g.get("visible")){(C=u==null?void 0:u.preventDefault)===null||C===void 0||C.call(u);var x=u.originalEvent,E=i.getResizeInfo(),O=i.resizeReferenceGroup.getChildren()||[];if(!Nn(O)){var R=kr(O,2),k=R[1],z=kr(uv(k.attr("path")),2),j=z[0],q=z[1];E.type===Cc.Horizontal?i.updateHorizontalResizingEndGuideLinePosition(x,E,j,q):i.updateVerticalResizingEndGuideLinePosition(x,E,j,q),i.updateResizeGuideLineTheme(k),k.attr("path",[j,q])}}},i}return s.prototype.bindEvents=function(){this.bindMouseDown(),this.bindMouseMove(),this.bindMouseUp()},s.prototype.initResizeGroup=function(){if(!this.resizeReferenceGroup){this.resizeReferenceGroup=this.spreadsheet.foregroundGroup.addGroup();var i=this.spreadsheet.options,u=i.width,g=i.height,C=this.getResizeAreaTheme(),x=C.guideLineColor,E=C.guideLineDash,O=C.size,R={path:"",lineDash:E,stroke:x,lineWidth:O};this.resizeReferenceGroup.addShape("path",{id:cC,attrs:R}),this.resizeReferenceGroup.addShape("path",{id:xb,attrs:R}),this.resizeReferenceGroup.addShape("rect",{id:Yx,attrs:{appendInfo:{isResizeArea:!0},x:0,y:0,width:u,height:g,fill:"transparent"}})}},s.prototype.getResizeAreaTheme=function(){return this.spreadsheet.theme.resizeArea},s.prototype.setResizeTarget=function(i){this.resizeTarget=i},s.prototype.getGuideLineWidthAndHeight=function(){var i=this.spreadsheet.options,u=i.width,g=i.height,C=this.spreadsheet.facet.panelBBox,x=C.maxY,E=C.maxX,O=Math.min(E,u),R=Math.min(x,g);return{width:O,height:R}},s.prototype.getResizeShapes=function(){var i;return((i=this.resizeReferenceGroup)===null||i===void 0?void 0:i.get("children"))||[]},s.prototype.setResizeMaskCursor=function(i){var u=kr(this.getResizeShapes(),3),g=u[2];g==null||g.attr("cursor",i)},s.prototype.updateResizeGuideLinePosition=function(i,u){var g=this.getResizeShapes();if(!Nn(g)){var C=kr(g,2),x=C[0],E=C[1],O=u.type,R=u.offsetX,k=u.offsetY,z=u.width,j=u.height,q=this.getGuideLineWidthAndHeight(),ee=q.width,le=q.height;if(this.setResizeMaskCursor("".concat(O,"-resize")),O===Cc.Horizontal){x.attr("path",[["M",R,k],["L",R,le]]),E.attr("path",[["M",R+z,k],["L",R+z,le]]),this.resizeStartPosition.offsetX=i.offsetX,this.resizeStartPosition.clientX=i.clientX;return}x.attr("path",[["M",R,k],["L",ee,k]]),E.attr("path",[["M",R,k+j],["L",ee,k+j]]),this.resizeStartPosition.offsetY=i.offsetY,this.resizeStartPosition.clientY=i.clientY}},s.prototype.bindMouseDown=function(){var i=this;this.spreadsheet.on(Dr.LAYOUT_RESIZE_MOUSE_DOWN,function(u){var g=u.target,C=u.originalEvent,x=i.getCellAppendInfo(u.target);i.spreadsheet.store.set("resized",!1),x!=null&&x.isResizeArea&&(i.spreadsheet.interaction.reset(),i.spreadsheet.interaction.addIntercepts([na.RESIZE]),i.setResizeTarget(g),i.showResizeGroup(),i.updateResizeGuideLinePosition(C,x))})},s.prototype.bindMouseMove=function(){var i=this;this.spreadsheet.on(Dr.LAYOUT_RESIZE_MOUSE_MOVE,function(u){I(i.resizeMouseMove,33)(u)})},s.prototype.getResizeGuideLinePosition=function(){var i=kr(this.resizeReferenceGroup.getChildren()||[],2),u=i[0],g=i[1],C=(u==null?void 0:u.attr("path"))||[],x=(g==null?void 0:g.attr("path"))||[],E=kr(C[0]||[],3),O=E[1],R=O===void 0?0:O,k=E[2],z=k===void 0?0:k,j=kr(x[0]||[],3),q=j[1],ee=q===void 0?0:q,le=j[2],ye=le===void 0?0:le;return{start:{x:R,y:z},end:{x:ee,y:ye}}},s.prototype.getDisAllowResizeInfo=function(){var i,u=this.getResizeInfo(),g=this.spreadsheet.options.interaction.resize,C=u.width,x=u.height,E=u.resizedWidth,O=u.resizedHeight,R=(i=g==null?void 0:g.disable)===null||i===void 0?void 0:i.call(g,u),k=R?C:E,z=R?x:O;return{displayWidth:k,displayHeight:z,isDisabled:R}},s.prototype.getResizeWidthDetail=function(){var i,u,g=this.getResizeInfo(),C=this.getDisAllowResizeInfo().displayWidth;switch(g.effect){case au.Field:return{eventType:Dr.LAYOUT_RESIZE_ROW_WIDTH,style:{rowCfg:{widthByField:(i={},i[g.id]=C,i)}}};case au.Tree:return{eventType:Dr.LAYOUT_RESIZE_TREE_WIDTH,style:{treeRowsWidth:C,rowCfg:{treeRowsWidth:C}}};case au.Cell:return{eventType:Dr.LAYOUT_RESIZE_COL_WIDTH,style:{colCfg:{widthByFieldValue:(u={},u[g.id]=C,u)}}};case au.Series:return{eventType:Dr.LAYOUT_RESIZE_SERIES_WIDTH,seriesNumberWidth:C};default:return null}},s.prototype.getResizeHeightDetail=function(){var i,u,g=this.spreadsheet.options,C=g.interaction.resize,x=g.style.rowCfg.heightByField,E=this.spreadsheet.theme.rowCell.cell.padding,O=this.getResizeInfo(),R=this.getDisAllowResizeInfo().displayHeight,k=R-E.top-E.bottom,z;switch(O.effect){case au.Field:return{eventType:Dr.LAYOUT_RESIZE_COL_HEIGHT,style:{colCfg:{heightByField:(i={},i[O.id]=R,i)}}};case au.Cell:return x!=null&&x[String(O.id)]||(C==null?void 0:C.rowResizeType)===rd.CURRENT?z={rowCfg:{heightByField:(u={},u[O.id]=k,u)}}:z={cellCfg:{height:k}},{eventType:Dr.LAYOUT_RESIZE_ROW_HEIGHT,style:z};default:return null}},s.prototype.getResizeDetail=function(){var i=this.getResizeInfo();return i.type===Cc.Horizontal?this.getResizeWidthDetail():this.getResizeHeightDetail()},s.prototype.showResizeGroup=function(){this.initResizeGroup(),this.resizeReferenceGroup.set("visible",!0)},s.prototype.hideResizeGroup=function(){this.resizeReferenceGroup.set("visible",!1)},s.prototype.bindMouseUp=function(){var i=this;this.spreadsheet.on(Dr.GLOBAL_MOUSE_UP,function(){var u;i.setResizeMaskCursor("default"),!(!i.resizeReferenceGroup||Nn((u=i.resizeReferenceGroup)===null||u===void 0?void 0:u.getChildren()))&&(i.hideResizeGroup(),i.renderResizedResult())})},s.prototype.updateResizeGuideLineTheme=function(i){var u=this.getResizeAreaTheme(),g=u.guideLineColor,C=u.guideLineDisableColor,x=this.getDisAllowResizeInfo().isDisabled;i.attr("stroke",x?C:g),this.setResizeMaskCursor(x?"no-drop":"default")},s.prototype.updateHorizontalResizingEndGuideLinePosition=function(i,u,g,C){var x=i.clientX-this.resizeStartPosition.clientX;u.width+xZe?void 0:{row:u.rowIndex,col:g?Ze:u.colIndex+1};case Fl.ARROW_LEFT:return u.colIndex-1xr?void 0:{row:g?xr:u.rowIndex+1,col:u.colIndex}}},s.prototype.calculateOffset=function(i,u,g){var C=i.options,x=C.frozenRowCount,E=x===void 0?0:x,O=C.frozenTrailingRowCount,R=O===void 0?0:O,k=i.facet,z=i.frozenColGroup,j=i.frozenTrailingColGroup,q=i.frozenRowGroup,ee=i.frozenTrailingRowGroup,le=k.layoutResult.colLeafNodes,ye=k.getScrollOffset(),Me=ye.scrollX,We=ye.scrollY,Ue=k.panelBBox,Ze=Ue.viewportHeight,Ut=Ue.viewportWidth,mr=Ii(i,"theme.splitLine"),xr=z?Math.floor(z.getBBox().width-mr.verticalBorderWidth/2):0,Kr=j?Math.floor(j.getBBox().width):0,mn=q?Math.floor(q.getBBox().height-mr.horizontalBorderWidth/2):0,Vn=ee?Math.floor(ee.getBBox().height):0,In=SR(Me,We,k.viewCellWidths,k.viewCellHeights,{width:Ut-xr-Kr,height:Ze-mn-Vn,x:xr,y:mn},k.getRealScrollX(k.cornerBBox.width)),Un=-1,di=-1,Bi=le.find(function(Kn){return Kn.colIndex===g});if(g<=In[0]?Un=Bi.x-xr:g>=In[1]&&g=In[3]){var Rn=k.viewCellHeights.getCellOffsetY(u+1);di=Rn+Vn-Ze}return{offsetX:Un,offsetY:di}},s.prototype.scrollToActiveCell=function(i,u,g){var C=this.calculateOffset(i,u,g),x=C.offsetX,E=C.offsetY,O=i.facet,R=i.facet.getScrollOffset(),k=R.scrollX,z=R.scrollY;O.scrollWithAnimation({offsetX:{value:x>-1?x:k},offsetY:{value:E>-1?E:z}})},s}(Ey),sF=function(){function l(s){var i=this;this.interactions=new Map,this.intercepts=new Set,this.hoverTimer=null,this.defaultState={cells:[],force:!1},this.onTriggerInteractionsResetEffect=function(){i.interactions.forEach(function(u){u.reset()})},this.selectAll=function(){i.changeState({stateName:hi.ALL_SELECTED})},this.getCellChildrenNodes=function(u){var g,C=(g=u==null?void 0:u.getMeta)===null||g===void 0?void 0:g.call(u),x=(u==null?void 0:u.cellType)===Mn.ROW_CELL,E=i.spreadsheet.isHierarchyTreeType();return E&&x?Zi.getAllLeaveNodes(C).filter(function(O){return O.rowIndex===C.rowIndex}):Zi.getAllChildrenNodes(C)},this.selectHeaderCell=function(u){var g;u===void 0&&(u={});var C=u.cell;if(!Nn(C)){var x=(g=C==null?void 0:C.getMeta)===null||g===void 0?void 0:g.call(C);if(!(!x||hu(x==null?void 0:x.x))){i.addIntercepts([na.HOVER]);var E=i.spreadsheet.isHierarchyTreeType(),O=(C==null?void 0:C.cellType)===Mn.COL_CELL,R=i.getState(),k=i.isSelectedCell(C),z=(u==null?void 0:u.isMultiSelection)&&i.isSelectedState(),j=k?[]:i.getCellChildrenNodes(C),q=k?[]:[wy(C)];if(z&&(q=ic(R==null?void 0:R.cells,q),j=ic(R==null?void 0:R.nodes,j),k&&(q=q.filter(function(ye){var Me=ye.id;return Me!==x.id}),j=j.filter(function(ye){return!(ye!=null&&ye.id.includes(x.id))}))),Nn(q)){i.reset(),i.spreadsheet.emit(Dr.GLOBAL_SELECTED,i.getActiveCells());return}var ee=j.filter(function(ye){return ye==null?void 0:ye.isLeaf});i.changeState({cells:q,nodes:ee,stateName:hi.SELECTED});var le=q.map(function(ye){var Me=ye.id;return Me});return i.updateCells(i.getRowColActiveCells(le)),(!E||O)&&i.highlightNodes(j),i.spreadsheet.emit(Dr.GLOBAL_SELECTED,i.getActiveCells()),!0}}},this.highlightNodes=function(u){u===void 0&&(u=[]),u.forEach(function(g){var C;(C=g==null?void 0:g.belongsCell)===null||C===void 0||C.updateByState(hi.SELECTED,g.belongsCell)})},this.mergeCells=function(u,g){_4(i.spreadsheet,u,g)},this.unmergeCell=function(u){M4(i.spreadsheet,u)},this.spreadsheet=s,this.registerEventController(),this.registerInteractions(),window.addEventListener("visibilitychange",this.onTriggerInteractionsResetEffect)}return l.prototype.destroy=function(){this.interactions.clear(),this.intercepts.clear(),this.eventController.clear(),this.clearHoverTimer(),this.resetState(),window.removeEventListener("visibilitychange",this.onTriggerInteractionsResetEffect)},l.prototype.reset=function(){this.clearState(),this.clearHoverTimer(),this.intercepts.clear(),this.spreadsheet.hideTooltip()},l.prototype.setState=function(s){fB(this.spreadsheet,s)},l.prototype.getState=function(){return this.spreadsheet.store.get(P0)||this.defaultState},l.prototype.setInteractedCells=function(s){var i=this.getInteractedCells().concat([s]),u=this.getState();u.interactedCells=i,this.setState(u)},l.prototype.getInteractedCells=function(){var s=this.getState();return(s==null?void 0:s.interactedCells)||[]},l.prototype.resetState=function(){this.spreadsheet.store.set(P0,this.defaultState)},l.prototype.getCurrentStateName=function(){return this.getState().stateName},l.prototype.isEqualStateName=function(s){return this.getCurrentStateName()===s},l.prototype.isStateOf=function(s){var i=this.getState();return(i==null?void 0:i.stateName)===s},l.prototype.isSelectedState=function(){return this.isStateOf(hi.SELECTED)||this.isStateOf(hi.BRUSH_SELECTED)},l.prototype.isAllSelectedState=function(){return this.isStateOf(hi.ALL_SELECTED)},l.prototype.isHoverFocusState=function(){return this.isStateOf(hi.HOVER_FOCUS)},l.prototype.isHoverState=function(){return this.isStateOf(hi.HOVER)},l.prototype.isActiveCell=function(s){return!!this.getCells().find(function(i){return s.getMeta().id===i.id})},l.prototype.isSelectedCell=function(s){return this.isSelectedState()&&this.isActiveCell(s)},l.prototype.getCells=function(s){var i=this.getState(),u=(i==null?void 0:i.cells)||[];return hu(s)?u:u.filter(function(g){return s.includes(g.type)})},l.prototype.getActiveCells=function(){var s=this.getCells().map(function(u){return u.id}),i=this.getAllCells();return Ee(s,function(u){return m(i,function(g){var C;return((C=g==null?void 0:g.getMeta())===null||C===void 0?void 0:C.id)===u})}).filter(function(u){return u})},l.prototype.clearStyleIndependent=function(){!this.isSelectedState()&&!this.isHoverState()&&!this.isAllSelectedState()||this.getPanelGroupAllDataCells().forEach(function(s){s.hideInteractionShape()})},l.prototype.getPanelGroupAllUnSelectedDataCells=function(){var s=this;return this.getPanelGroupAllDataCells().filter(function(i){return!s.isActiveCell(i)})},l.prototype.getPanelGroupAllDataCells=function(){var s;return TA((s=this.spreadsheet.panelGroup)===null||s===void 0?void 0:s.getChildren(),bx)},l.prototype.getAllRowHeaderCells=function(){var s,i,u=((s=this.spreadsheet.foregroundGroup)===null||s===void 0?void 0:s.getChildren())||[],g=u.find(function(x){return x instanceof b5}),C=((i=g==null?void 0:g.cfg)===null||i===void 0?void 0:i.children)||[];return TA(C,o6).filter(function(x){return x.cellType===Mn.ROW_CELL})},l.prototype.getAllColHeaderCells=function(){var s,i,u=((s=this.spreadsheet.foregroundGroup)===null||s===void 0?void 0:s.getChildren())||[],g=u.find(function(x){return x instanceof sD}),C=((i=g==null?void 0:g.cfg)===null||i===void 0?void 0:i.children)||[];return TA(C,_A).filter(function(x){return x.cellType===Mn.COL_CELL})},l.prototype.getRowColActiveCells=function(s){return ic(this.getAllRowHeaderCells(),this.getAllColHeaderCells()).filter(function(i){return s.includes(i.getMeta().id)})},l.prototype.getAllCells=function(){return ic(this.getPanelGroupAllDataCells(),this.getAllRowHeaderCells(),this.getAllColHeaderCells())},l.prototype.hideColumns=function(s,i){s===void 0&&(s=[]),i===void 0&&(i=!0),NR(this.spreadsheet,s,i)},l.prototype.getBrushSelectionInfo=function(s){var i,u,g;return Bp(s)?{dataBrushSelection:s,rowBrushSelection:s,colBrushSelection:s}:{dataBrushSelection:(i=s==null?void 0:s.data)!==null&&i!==void 0?i:!1,rowBrushSelection:(u=s==null?void 0:s.row)!==null&&u!==void 0?u:!1,colBrushSelection:(g=s==null?void 0:s.col)!==null&&g!==void 0?g:!1}},l.prototype.getDefaultInteractions=function(){var s=this.spreadsheet.options.interaction,i=s.resize,u=s.brushSelection,g=s.multiSelection,C=s.rangeSelection,x=s.selectedCellMove,E=this.getBrushSelectionInfo(u),O=E.dataBrushSelection,R=E.rowBrushSelection,k=E.colBrushSelection;return[{key:kl.CORNER_CELL_CLICK,interaction:Qk},{key:kl.DATA_CELL_CLICK,interaction:Xk},{key:kl.ROW_COLUMN_CLICK,interaction:Kk},{key:kl.ROW_TEXT_CLICK,interaction:qk},{key:kl.MERGED_CELLS_CLICK,interaction:Zk},{key:kl.HOVER,interaction:Jk,enable:!cc()},{key:kl.BRUSH_SELECTION,interaction:tF,enable:!cc()&&O},{key:kl.ROW_BRUSH_SELECTION,interaction:rF,enable:!cc()&&R},{key:kl.COL_BRUSH_SELECTION,interaction:eF,enable:!cc()&&k},{key:kl.COL_ROW_RESIZE,interaction:oF,enable:!cc()&&i},{key:kl.DATA_CELL_MULTI_SELECTION,interaction:nF,enable:!cc()&&g},{key:kl.RANGE_SELECTION,interaction:aF,enable:!cc()&&C},{key:kl.SELECTED_CELL_MOVE,interaction:M5,enable:!cc()&&x}]},l.prototype.registerInteractions=function(){var s=this,i=this.spreadsheet.options.interaction.customInteractions;this.interactions.clear();var u=this.getDefaultInteractions();u.forEach(function(g){var C=g.key,x=g.interaction,E=g.enable;E!==!1&&s.interactions.set(C,new x(s.spreadsheet))}),Nn(i)||Qi(i,function(g){var C=g.interaction;s.interactions.set(g.key,new C(s.spreadsheet))})},l.prototype.registerEventController=function(){this.eventController=new iF(this.spreadsheet)},l.prototype.draw=function(){this.spreadsheet.container.draw()},l.prototype.clearState=function(){$P(this.spreadsheet)&&this.draw()},l.prototype.changeState=function(s){var i=this,u=this.spreadsheet.interaction,g=s.cells,C=g===void 0?[]:g,x=s.force,E=s.stateName,O=s.onUpdateCells;if(Nn(C)&&E===hi.SELECTED){x&&u.changeState({cells:[],stateName:hi.UNSELECTED});return}this.getCurrentStateName()===hi.ALL_SELECTED&&this.clearStyleIndependent(),this.clearState(),this.setState(s);var R=function(){i.updatePanelGroupAllDataCells()};O?O(this,R):R(),this.draw()},l.prototype.updatePanelGroupAllDataCells=function(){this.updateCells(this.getPanelGroupAllDataCells())},l.prototype.updateCells=function(s){s===void 0&&(s=[]),s.forEach(function(i){i.update()})},l.prototype.addIntercepts=function(s){var i=this;s===void 0&&(s=[]),s.forEach(function(u){i.intercepts.add(u)})},l.prototype.hasIntercepts=function(s){var i=this;return s===void 0&&(s=[]),s.some(function(u){return i.intercepts.has(u)})},l.prototype.removeIntercepts=function(s){var i=this;s===void 0&&(s=[]),s.forEach(function(u){i.intercepts.delete(u)})},l.prototype.clearHoverTimer=function(){clearTimeout(this.hoverTimer)},l.prototype.setHoverTimer=function(s){this.hoverTimer=s},l.prototype.getHoverTimer=function(){return this.hoverTimer},l.prototype.getSelectedCellHighlight=function(){var s=this.spreadsheet.options.interaction.selectedCellHighlight;if(Bp(s))return{rowHeader:s,colHeader:s,currentRow:!1,currentCol:!1};var i=s!=null?s:{},u=i.rowHeader,g=u===void 0?!1:u,C=i.colHeader,x=C===void 0?!1:C,E=i.currentRow,O=E===void 0?!1:E,R=i.currentCol,k=R===void 0?!1:R;return{rowHeader:g,colHeader:x,currentRow:O,currentCol:k}},l.prototype.getHoverAfterScroll=function(){return this.spreadsheet.options.interaction.hoverAfterScroll},l.prototype.getHoverHighlight=function(){var s=this.spreadsheet.options.interaction.hoverHighlight;if(Bp(s))return{rowHeader:s,colHeader:s,currentRow:s,currentCol:s};var i=s!=null?s:{},u=i.rowHeader,g=u===void 0?!1:u,C=i.colHeader,x=C===void 0?!1:C,E=i.currentRow,O=E===void 0?!1:E,R=i.currentCol,k=R===void 0?!1:R;return{rowHeader:g,colHeader:x,currentRow:O,currentCol:k}},l.prototype.getBrushSelection=function(){var s=this.spreadsheet.options.interaction.brushSelection;if(Bp(s))return{data:s,row:s,col:s};var i=s!=null?s:{},u=i.data,g=u===void 0?!1:u,C=i.row,x=C===void 0?!1:C,E=i.col,O=E===void 0?!1:E;return{data:g,row:x,col:O}},l}(),uF=function(){function l(s){var i=this;this.viewport=window,this.isDevicePixelRatioChange=!1,this.init=function(){i.initDevicePixelRatioListener(),i.initDeviceZoomListener()},this.destroy=function(){i.removeDevicePixelRatioListener(),i.removeDeviceZoomListener()},this.removeDevicePixelRatioListener=function(){var u;!((u=i.devicePixelRatioMedia)===null||u===void 0)&&u.removeEventListener?i.devicePixelRatioMedia.removeEventListener("change",i.renderByDevicePixelRatioChanged):i.devicePixelRatioMedia.removeListener(i.renderByDevicePixelRatioChanged)},this.initDeviceZoomListener=function(){var u,g;cc()||(g=(u=i.viewport)===null||u===void 0?void 0:u.visualViewport)===null||g===void 0||g.addEventListener("resize",i.renderByZoomScaleWithoutResizeEffect)},this.removeDeviceZoomListener=function(){var u,g;cc()||(g=(u=i.viewport)===null||u===void 0?void 0:u.visualViewport)===null||g===void 0||g.removeEventListener("resize",i.renderByZoomScaleWithoutResizeEffect)},this.renderByZoomScaleWithoutResizeEffect=function(u){i.isDevicePixelRatioChange=!1,i.renderByZoomScale(u)},this.renderByDevicePixelRatioChanged=function(){i.isDevicePixelRatioChange=!0,i.renderByDevicePixelRatio()},this.renderByDevicePixelRatio=function(u){u===void 0&&(u=window.devicePixelRatio);var g=i.spreadsheet,C=g.container,x=g.options,E=x.width,O=x.height,R=x.devicePixelRatio,k=i.spreadsheet.getCanvasElement(),z=C.get("pixelRatio");if(!(z===u||!k)){var j=Math.max(u,R,Us);C.set("pixelRatio",j),C.changeSize(E,O),i.spreadsheet.render(!1)}},this.renderByZoomScale=il(function(u){var g=Math.ceil(u.target.scale);g>=1&&!i.isDevicePixelRatioChange&&i.renderByDevicePixelRatio(g)},350),this.spreadsheet=s}return l.prototype.initDevicePixelRatioListener=function(){var s;this.devicePixelRatioMedia=window.matchMedia("(resolution: ".concat(window.devicePixelRatio,"dppx)")),!((s=this.devicePixelRatioMedia)===null||s===void 0)&&s.addEventListener?this.devicePixelRatioMedia.addEventListener("change",this.renderByDevicePixelRatioChanged):this.devicePixelRatioMedia.addListener(this.renderByDevicePixelRatioChanged)},l}(),fD=function(){function l(s){this.visible=!1,this.position={x:0,y:0},this.spreadsheet=s}return l.prototype.show=function(s){var i,u,g,C=s.position,x=s.options,E=s.content,O=s.event,R=s5(x).enterable,k=this.spreadsheet.options.tooltip||{},z=k.autoAdjustBoundary,j=k.adjustPosition;this.visible=!0,this.options=s;var q=this.getContainer();this.renderContent(E);var ee=fk({spreadsheet:this.spreadsheet,position:C,tooltipContainer:q,autoAdjustBoundary:z}),le=ee.x,ye=ee.y;this.position=(i=j==null?void 0:j({position:{x:le,y:ye},event:O}))!==null&&i!==void 0?i:{x:le,y:ye},g6(q,{style:{left:"".concat((u=this.position)===null||u===void 0?void 0:u.x,"px"),top:"".concat((g=this.position)===null||g===void 0?void 0:g.y,"px"),pointerEvents:R?"all":"none"},visible:!0})},l.prototype.hide=function(){this.visible=!1,this.container&&(g6(this.container,{style:{pointerEvents:"none"},visible:!1}),this.resetPosition())},l.prototype.destroy=function(){var s,i;this.visible=!1,this.container&&(this.resetPosition(),(i=(s=this.container).remove)===null||i===void 0||i.call(s),this.container=null)},l.prototype.renderContent=function(s){if(this.container){this.clearContent();var i=(this.spreadsheet.options.tooltip||{}).content,u=s!=null?s:i;if(!hu(u)){if(typeof u=="string"){this.container.innerHTML=u;return}u instanceof Element&&this.container.appendChild(u)}}},l.prototype.clearContent=function(){this.container&&(this.container.innerHTML="")},l.prototype.disablePointerEvent=function(){this.container&&this.container.style.pointerEvents!=="none"&&g6(this.container,{style:{pointerEvents:"none"}})},l.prototype.resetPosition=function(){this.position={x:0,y:0}},l.prototype.getContainer=function(){var s;if(!this.container){var i=this.spreadsheet.options.tooltip,u=((s=i.getContainer)===null||s===void 0?void 0:s.call(i))||document.body,g=document.createElement("div");return g6(g,{style:i.style,className:[HT].concat(i.className)}),u.appendChild(g),this.container=g,this.container}return this.container},l}(),T5=function(l){Ni(s,l);function s(i,u,g){var C=l.call(this)||this;return C.store=new W5,C.untypedOn=C.on,C.untypedEmit=C.emit,C.on=function(x,E){return C.untypedOn(x,E)},C.emit=function(x){for(var E=[],O=1;O=0&&ye<=255?k:z}}catch(Me){O={error:Me}}finally{try{ee&&!ee.done&&(R=q.return)&&R.call(q)}finally{if(O)throw O.error}}return j},C.dataCfg=s6(u),C.options=UP(g),C.dataSet=C.getDataSet(C.options),C.setDebug(),C.initTooltip(),C.initGroups(i),C.bindEvents(),C.initInteraction(),C.initTheme(),C.initHdAdapter(),C.registerIcons(),C.setOverscrollBehavior(),C}return s.prototype.setOverscrollBehavior=function(){var i=this.options.interaction.overscrollBehavior,u=window.getComputedStyle(document.body).getPropertyValue("overscroll-behavior"),g=u&&u!=="auto";g?this.store.set("initOverscrollBehavior",u):i&&(document.body.style.overscrollBehavior=i)},s.prototype.restoreOverscrollBehavior=function(){document.body.style.overscrollBehavior=this.store.get("initOverscrollBehavior")||""},s.prototype.setDebug=function(){zp.getInstance().setDebug(this.options.debug)},s.prototype.initTheme=function(){this.setThemeCfg({name:"default"})},s.prototype.getMountContainer=function(i){var u=cf(i)?document.querySelector(i):i;if(!u)throw new Error("Target mount container is not a DOM element");return u},s.prototype.initHdAdapter=function(){this.options.hdAdapter&&(this.hdAdapter=new uF(this),this.hdAdapter.init())},s.prototype.initInteraction=function(){var i,u;(u=(i=this.interaction)===null||i===void 0?void 0:i.destroy)===null||u===void 0||u.call(i),this.interaction=new sF(this)},s.prototype.initTooltip=function(){var i,u,g,C;(u=(i=this.tooltip)===null||i===void 0?void 0:i.destroy)===null||u===void 0||u.call(i),this.tooltip=this.renderTooltip(),this.tooltip instanceof fD||console.warn("[Custom Tooltip]: ".concat((C=(g=this.tooltip)===null||g===void 0?void 0:g.constructor)===null||C===void 0?void 0:C.toString()," should be extends from BaseTooltip"))},s.prototype.renderTooltip=function(){var i,u;return((u=(i=this.options.tooltip)===null||i===void 0?void 0:i.renderTooltip)===null||u===void 0?void 0:u.call(i,this))||new fD(this)},s.prototype.showTooltip=function(i){var u,g,C=i.content,x=i.event,E=this.getCell(x==null?void 0:x.target),O=js(C)?C(E,i):C;(g=(u=this.tooltip).show)===null||g===void 0||g.call(u,ur(ur({},i),{content:O}))},s.prototype.showTooltipWithInfo=function(i,u,g){var C,x=y6(this,i),E=x.showTooltip,O=x.content;if(E){var R=this.getCell(i==null?void 0:i.target),k=(C=g==null?void 0:g.data)!==null&&C!==void 0?C:bk({spreadsheet:this,cellInfos:u,targetCell:R,options:ur({enableFormat:!0},g)});this.showTooltip({data:k,position:{x:i.clientX,y:i.clientY},options:ur({enterable:!0},g),event:i,content:O})}},s.prototype.hideTooltip=function(){var i,u;(u=(i=this.tooltip).hide)===null||u===void 0||u.call(i)},s.prototype.destroyTooltip=function(){var i,u;(u=(i=this.tooltip).destroy)===null||u===void 0||u.call(i)},s.prototype.registerIcons=function(){var i=this.options.customSVGIcons;Nn(i)||Qi(i,function(u){wR(u.name,u.svg)})},s.prototype.setDataCfg=function(i,u){this.store.set("originalDataCfg",i),u?this.dataCfg=s6(i):this.dataCfg=s6(this.dataCfg,i),Ek(this)},s.prototype.setOptions=function(i,u){var g;this.hideTooltip(),u?this.options=UP(i):this.options=N1(this.options,i),(u||!((g=i.tooltip)===null||g===void 0)&&g.renderTooltip)&&this.initTooltip(),this.registerIcons()},s.prototype.render=function(i,u){if(i===void 0&&(i=!0),u===void 0&&(u={}),!!this.getCanvasElement()){var g=u.reBuildDataSet,C=g===void 0?!1:g,x=u.reBuildHiddenColumnsDetail,E=x===void 0?!0:x;this.emit(Dr.LAYOUT_BEFORE_RENDER),C&&(this.dataSet=this.getDataSet(this.options)),i&&(this.clearDrillDownData("",!0),this.dataSet.setDataCfg(this.dataCfg)),this.buildFacet(),E&&this.initHiddenColumnsDetail(),this.emit(Dr.LAYOUT_AFTER_RENDER)}},s.prototype.destroy=function(){var i,u,g,C,x;this.restoreOverscrollBehavior(),this.emit(Dr.LAYOUT_DESTROY),(i=this.facet)===null||i===void 0||i.destroy(),(u=this.hdAdapter)===null||u===void 0||u.destroy(),(g=this.interaction)===null||g===void 0||g.destroy(),(C=this.store)===null||C===void 0||C.clear(),this.destroyTooltip(),this.clearCanvasEvent(),(x=this.container)===null||x===void 0||x.destroy(),i8()},s.prototype.setThemeCfg=function(i){i===void 0&&(i={});var u=(i==null?void 0:i.theme)||{},g=fo(ur(ur({},i),{spreadsheet:this}));this.theme=N1(g,u)},s.prototype.setTheme=function(i){this.theme=N1(this.theme,i)},s.prototype.updatePagination=function(i){this.options=N1(this.options,{pagination:i}),this.store.set("scrollX",0),this.store.set("scrollY",0)},s.prototype.getContentHeight=function(){return this.facet.getContentHeight()},s.prototype.changeSize=function(i,u){i===void 0&&(i=this.options.width),u===void 0&&(u=this.options.height),this.changeSheetSize(i,u)},s.prototype.changeSheetSize=function(i,u){i===void 0&&(i=this.options.width),u===void 0&&(u=this.options.height);var g=this.getCanvasElement(),C=this.container.get("width"),x=this.container.get("height"),E=i!==C||u!==x;!E||!g||(this.options=N1(this.options,{width:i,height:u}),this.container.changeSize(i,u))},s.prototype.getCanvasElement=function(){return this.container.get("el")},s.prototype.getLayoutWidthType=function(){return this.options.style.layoutWidthType},s.prototype.getRowNodes=function(i){return i===void 0&&(i=-1),i===-1?this.facet.layoutResult.rowNodes:this.facet.layoutResult.rowNodes.filter(function(u){return u.level===i})},s.prototype.getRowLeafNodes=function(){var i;return((i=this.facet)===null||i===void 0?void 0:i.layoutResult.rowLeafNodes)||[]},s.prototype.getColumnNodes=function(i){var u;i===void 0&&(i=-1);var g=((u=this.facet)===null||u===void 0?void 0:u.layoutResult.colNodes)||[];return i===-1?g:g.filter(function(C){return C.level===i})},s.prototype.getColumnLeafNodes=function(){var i;return((i=this.facet)===null||i===void 0?void 0:i.layoutResult.colLeafNodes)||[]},s.prototype.updateScrollOffset=function(i){var u={offsetX:{value:void 0,animate:!1},offsetY:{value:void 0,animate:!1},rowHeaderOffsetX:{value:void 0,animate:!1}};this.facet.updateScrollOffset(N1(u,i))},s.prototype.getTooltipDataItemMappingCallback=function(){var i;return(i=this.options)===null||i===void 0?void 0:i.mappingDisplayDataItem},s.prototype.getCell=function(i){for(var u,g=i;g&&!(g instanceof Uc);){if(g instanceof BR)return g;g=(u=g.get)===null||u===void 0?void 0:u.call(g,"parent")}return null},s.prototype.getCellType=function(i){var u=this.getCell(i);return u==null?void 0:u.cellType},s.prototype.getTotalsConfig=function(i){var u=this.options.totals,g=this.dataSet.fields.rows,C=Ii(u,Ih(g,i)?"row":"col",{}),x=C.showSubTotals&&Ih(C.subTotalsDimensions,i)?C.showSubTotals:!1;return ur(ur({label:vu("\u603B\u8BA1"),subLabel:vu("\u5C0F\u8BA1"),totalsGroupDimensions:[],subTotalsGroupDimensions:[]},C),{showSubTotals:x})},s.prototype.initGroups=function(i){var u=this.options,g=u.width,C=u.height,x=u.supportCSSTransform,E=u.devicePixelRatio;this.container=new Uc({container:this.getMountContainer(i),width:g,height:C,localRefresh:!1,supportCSSTransform:x,pixelRatio:Math.max(E,Us)}),this.backgroundGroup=this.container.addGroup({name:Hx,zIndex:zd}),this.panelGroup=this.container.addGroup({name:Jv,zIndex:I0}),this.foregroundGroup=this.container.addGroup({name:Gu,zIndex:cb}),this.initPanelGroupChildren(),this.updateContainerStyle()},s.prototype.updateContainerStyle=function(){var i=this.getCanvasElement();i&&(i.style.display="block")},s.prototype.initPanelGroupChildren=function(){this.panelScrollGroup=new Vk({name:zx,zIndex:Nx,s2:this}),this.panelGroup.add(this.panelScrollGroup)},s.prototype.getInitColumnLeafNodes=function(){return this.store.get("initColumnLeafNodes",[])},s.prototype.clearColumnLeafNodes=function(){this.store.set("initColumnLeafNodes",void 0)},s.prototype.clearCanvasEvent=function(){var i=this,u=this.getEvents();A1(u,function(g,C){i.off(C)})},s.prototype.updateSortMethodMap=function(i,u,g){var C;g===void 0&&(g=!1);var x=g?null:this.store.get("sortMethodMap");this.store.set("sortMethodMap",ur(ur({},x),(C={},C[i]=u,C)))},s.prototype.getMenuDefaultSelectedKeys=function(i){var u=this.store.get("sortMethodMap"),g=Ii(u,i);return g?[g]:[]},s}(qn),cF=function(l){Ni(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s.prototype.getDataSet=function(i){var u=i.dataSet,g=i.hierarchyType;if(u)return u(this);var C=g==="customTree"?new d5(this):new iD(this);return C},s.prototype.getContentHeight=function(){return this.facet.getContentHeight()},s.prototype.isPivotMode=function(){return!0},s.prototype.isTableMode=function(){return!1},s.prototype.isHierarchyTreeType=function(){var i=this.options.hierarchyType;return i==="tree"||i==="customTree"},s.prototype.isScrollContainsRowHeader=function(){return!this.isFrozenRowHeader()},s.prototype.isFrozenRowHeader=function(){var i;return(i=this.options)===null||i===void 0?void 0:i.frozenRowHeader},s.prototype.isValueInCols=function(){return this.dataSet.fields.valueInCols},s.prototype.clearDrillDownData=function(i,u){this.dataSet instanceof iD&&(this.dataSet.clearDrillDownData(i),u||(this.interaction.reset(),this.render(!1)))},s.prototype.getFacetCfgFromDataSetAndOptions=function(){var i=this,u=this.dataSet,g=u.fields,C=u.meta,x=this.options,E=x.style,O=x.dataCell,R=function(k){return new bx(k,i)};return ur(ur(ur(ur({},this.options),g),E),{meta:C,spreadsheet:this,dataSet:this.dataSet,dataCell:O!=null?O:R})},s.prototype.buildFacet=function(){var i,u=this.getFacetCfgFromDataSetAndOptions();(i=this.facet)===null||i===void 0||i.destroy(),this.facet=new $k(u),this.facet.render()},s.prototype.bindEvents=function(){this.off(Dr.ROW_CELL_COLLAPSE_TREE_ROWS),this.off(Dr.LAYOUT_TREE_ROWS_COLLAPSE_ALL),this.on(Dr.ROW_CELL_COLLAPSE_TREE_ROWS,this.handleRowCellCollapseTreeRows),this.on(Dr.LAYOUT_TREE_ROWS_COLLAPSE_ALL,this.handleTreeRowsCollapseAll)},s.prototype.handleRowCellCollapseTreeRows=function(i){var u,g=i.id,C=i.isCollapsed,x={style:{collapsedRows:(u={},u[g]=C,u)}};this.emit(Dr.LAYOUT_COLLAPSE_ROWS,{collapsedRows:x.style.collapsedRows,meta:i==null?void 0:i.node}),this.setOptions(x),this.render(!1),this.emit(Dr.LAYOUT_AFTER_COLLAPSE_ROWS,{collapsedRows:x.style.collapsedRows,meta:i==null?void 0:i.node})},s.prototype.handleTreeRowsCollapseAll=function(i){var u={style:{hierarchyCollapse:!i,collapsedRows:null,rowExpandDepth:null}};this.setOptions(u),this.render(!1)},s.prototype.groupSortByMethod=function(i,u){var g=this.dataCfg.fields,C=g.rows,x=g.columns,E=this.options.style.colCfg.hideMeasureColumn,O=this.isValueInCols()?no(C):no(x),R=u.query,k=u.value,z=uv(R),j=k;E&&this.isValueInCols()&&(j=this.dataSet.fields.values[0],z[ra]=j);var q={sortFieldId:O,sortMethod:i,sortByMeasure:j,query:z},ee=this.dataCfg.sortParams.filter(function(ye){return(ye==null?void 0:ye.sortFieldId)!==O});this.updateSortMethodMap(u.id,i,!0);var le=nn(nn([],kr(ee),!1),[q],!1);this.emit(Dr.RANGE_SORT,le),this.setDataCfg(ur(ur({},this.dataCfg),{sortParams:le})),this.render()},s.prototype.handleGroupSort=function(i,u){var g=this;i.stopPropagation(),this.interaction.addIntercepts([na.HOVER]);var C=this.getMenuDefaultSelectedKeys(u==null?void 0:u.id),x={onClick:function(E){var O=E.key,R=O;g.groupSortByMethod(R,u),g.emit(Dr.RANGE_SORTED,i)},menus:VI(),defaultSelectedKeys:C};this.showTooltipWithInfo(i,[],{operator:x,onlyMenu:!0,forceRender:!0})},s}(T5),fF=function(l){Ni(s,l);function s(){return l!==null&&l.apply(this,arguments)||this}return s}(E5),hF=function(l){Ni(s,l);function s(){var i=l!==null&&l.apply(this,arguments)||this;return i.onSortTooltipClick=function(u,g){var C=u.key,x=g.field,E={sortFieldId:x,sortMethod:C};i.updateSortMethodMap(g.id,C),i.emit(Dr.RANGE_SORT,[E])},i}return s.prototype.getDataSet=function(i){var u=i.dataSet;return u?u(this):new Ok(this)},s.prototype.isPivotMode=function(){return!1},s.prototype.isTableMode=function(){return!0},s.prototype.isHierarchyTreeType=function(){return!1},s.prototype.isScrollContainsRowHeader=function(){return!1},s.prototype.isFrozenRowHeader=function(){return!1},s.prototype.clearDrillDownData=function(){},s.prototype.isValueInCols=function(){return!1},s.prototype.bindEvents=function(){},s.prototype.initPanelGroupChildren=function(){var i,u=this;l.prototype.initPanelGroupChildren.call(this);var g={zIndex:db,s2:this};i=kr([vb,pb,Wx,ep,Jh,R0].map(function(C){var x=new fF(ur({name:C},g));return u.panelGroup.add(x),x}),6),this.frozenRowGroup=i[0],this.frozenColGroup=i[1],this.frozenTrailingRowGroup=i[2],this.frozenTrailingColGroup=i[3],this.frozenTopGroup=i[4],this.frozenBottomGroup=i[5]},s.prototype.getFacetCfgFromDataSetAndOptions=function(){var i=this,u=this.dataSet,g=u.fields,C=u.meta,x=this.options,E=x.style,O=x.dataCell,R=function(k){return i.options.showSeriesNumber&&k.colIndex===0?new YR(k,i):new EA(k,i)};return ur(ur(ur(ur({},this.options),g),E),{meta:C,spreadsheet:this,dataSet:this.dataSet,dataCell:O!=null?O:R})},s.prototype.buildFacet=function(){var i,u=this.getFacetCfgFromDataSetAndOptions();(i=this.facet)===null||i===void 0||i.destroy(),this.facet=new jk(u),this.facet.render()},s.prototype.clearFrozenGroups=function(){this.frozenRowGroup.set("children",[]),this.frozenColGroup.set("children",[]),this.frozenTrailingRowGroup.set("children",[]),this.frozenTrailingColGroup.set("children",[]),this.frozenTopGroup.set("children",[]),this.frozenBottomGroup.set("children",[])},s.prototype.destroy=function(){l.prototype.destroy.call(this),this.clearFrozenGroups(),this.off(Dr.RANGE_SORT),this.off(Dr.RANGE_FILTER)},s.prototype.handleGroupSort=function(i,u){var g=this;i.stopPropagation(),this.interaction.addIntercepts([na.HOVER]);var C=this.getMenuDefaultSelectedKeys(u==null?void 0:u.id),x={onClick:function(E){var O=E.key,R=O;g.onSortTooltipClick({key:R},u)},menus:XI(),defaultSelectedKeys:C};this.showTooltipWithInfo(i,[],{operator:x,onlyMenu:!0,forceRender:!0})},s}(T5)},47165:function(ti,On,rt){"use strict";rt.d(On,{Ct:function(){return jf},f0:function(){return $i},uZ:function(){return kn},VS:function(){return wi},d9:function(){return Ci},FX:function(){return oe},Ds:function(){return Gn},b$:function(){return ll},e5:function(){return Nt},S6:function(){return tr},yW:function(){return xe},hX:function(){return re},sE:function(){return Tr},cx:function(){return jn},Wx:function(){return ri},ri:function(){return qn},xH:function(){return Et},U5:function(){return pf},U2:function(){return Io},Lo:function(){return Mv},rx:function(){return Oe},ru:function(){return lr},vM:function(){return Ht},Ms:function(){return Yt},wH:function(){return ea},YM:function(){return un},q9:function(){return oe},cq:function(){return ks},kJ:function(){return Pt},jn:function(){return ol},J_:function(){return ho},kK:function(){return Pn},xb:function(){return yu},Xy:function(){return Cu},mf:function(){return Dt},BD:function(){return nr},UM:function(){return D},Ft:function(){return _d},hj:function(){return vi},vQ:function(){return oa},Kn:function(){return ot},PO:function(){return yr},HD:function(){return dr},P9:function(){return Ft},o8:function(){return Ln},XP:function(){return Tt},Z$:function(){return Jr},vl:function(){return St},UI:function(){return Qr},Q8:function(){return Ri},Fp:function(){return Vt},UT:function(){return ys},HP:function(){return Wi},VV:function(){return ir},F:function(){return al},CD:function(){return $i},wQ:function(){return Du},ZT:function(){return Ed},CE:function(){return Jo},ei:function(){return po},u4:function(){return er},Od:function(){return cr},U7:function(){return fi},t8:function(){return Oi},dp:function(){return Ev},G:function(){return Te},MR:function(){return vn},ng:function(){return bt},P2:function(){return bl},qo:function(){return wl},c$:function(){return kh},BB:function(){return Nc},jj:function(){return cn},EL:function(){return Fs},jC:function(){return Mr},VO:function(){return Rl},I:function(){return Xn}});var Ve=function(De){return De!==null&&typeof De!="function"&&isFinite(De.length)},Ce=Ve,lt=function(De,dt){return Ce(De)?De.indexOf(dt)>-1:!1},oe=lt,fr=function(De,dt){if(!Ce(De))return De;for(var Xt=[],pr=0;pr-1;)Ie.call(De,En,1);return De},et=null,mt=Array.prototype.splice,fe=function(dt,Xt){if(!Ce(dt))return[];for(var pr=dt?Xt.length:0,Br=pr-1;pr--;){var En=void 0,xi=Xt[pr];(pr===Br||xi!==En)&&(En=xi,mt.call(dt,xi,1))}return dt},pt=fe,wt=function(De,dt,Xt){if(!Pt(De)&&!yr(De))return De;var pr=Xt;return tr(De,function(Br,En){pr=dt(pr,Br,En)}),pr},er=wt,Lt=function(De,dt){var Xt=[];if(!Ce(De))return Xt;for(var pr=-1,Br=[],En=De.length;++prEn[Ra])return 1;if(Br[Ra]Xt?Xt:De},kn=Sn,Sr=function(De,dt){var Xt=dt.toString(),pr=Xt.indexOf(".");if(pr===-1)return Math.round(De);var Br=Xt.substr(pr+1).length;return Br>20&&(Br=20),parseFloat(De.toFixed(Br))},qn=Sr,An=function(De){return Ft(De,"Number")},vi=An,ba=function(De){return isNumber(De)&&De%1!==0},Ai=null,Za=function(De){return isNumber(De)&&De%2===0},Ur=null,ni=Number.isInteger?Number.isInteger:function(De){return vi(De)&&De%1===0},qs=null,Ka=function(De){return isNumber(De)&&De<0},Ma=null,pi=1e-5;function oa(De,dt,Xt){return Xt===void 0&&(Xt=pi),Math.abs(De-dt)0},Il=null,ys=function(De,dt){if(Pt(De)){for(var Xt,pr=-1/0,Br=0;Brpr&&(Xt=En,pr=xi)}return Xt}},al=function(De,dt){if(Pt(De)){for(var Xt,pr=1/0,Br=0;Brdt?(pr&&(clearTimeout(pr),pr=null),Ra=Ql,xi=De.apply(Br,En),pr||(Br=En=null)):!pr&&Xt.trailing!==!1&&(pr=setTimeout(Xo,Td)),xi};return Sl.cancel=function(){clearTimeout(pr),Ra=0,pr=Br=En=null},Sl},wl=function(De){return Ce(De)?Array.prototype.slice.call(De):[]},Pu={},Fs=function(De){return De=De||"g",Pu[De]?Pu[De]+=1:Pu[De]=1,De+Pu[De]},Ed=function(){};function Ev(De){return D(De)?0:Ce(De)?De.length:Object.keys(De).length}var Md=rt(85556),oo,xl=Wi(function(De,dt){dt===void 0&&(dt={});var Xt=dt.fontSize,pr=dt.fontFamily,Br=dt.fontWeight,En=dt.fontStyle,xi=dt.fontVariant;return oo||(oo=document.createElement("canvas").getContext("2d")),oo.font=[En,xi,Br,Xt+"px",pr].join(" "),oo.measureText(dr(De)?De:"").width},function(De,dt){return dt===void 0&&(dt={}),(0,Md.pr)([De],Rl(dt)).join("")}),Mv=function(De,dt,Xt,pr){pr===void 0&&(pr="...");var Br=16,En=xl(pr,Xt),xi=dr(De)?De:Nc(De),Ra=dt,Xo=[],Sl,Ql;if(xl(De,Xt)<=dt)return De;for(;Sl=xi.substr(0,Br),Ql=xl(Sl,Xt),!(Ql+En>Ra&&Ql>Ra);)if(Xo.push(Sl),Ra-=Ql,xi=xi.substr(Br),!xi)return Xo.join("");for(;Sl=xi.substr(0,1),Ql=xl(Sl,Xt),!(Ql+En>Ra);)if(Xo.push(Sl),Ra-=Ql,xi=xi.substr(1),!xi)return Xo.join("");return""+Xo.join("")+pr},Ns=function(){function De(){this.map={}}return De.prototype.has=function(dt){return this.map[dt]!==void 0},De.prototype.get=function(dt,Xt){var pr=this.map[dt];return pr===void 0?Xt:pr},De.prototype.set=function(dt,Xt){this.map[dt]=Xt},De.prototype.clear=function(){this.map={}},De.prototype.delete=function(dt){delete this.map[dt]},De.prototype.size=function(){return Object.keys(this.map).length},De}(),jf=Ns},89446:function(ti,On,rt){"use strict";rt.d(On,{k3:function(){return Yt},P$:function(){return vi},vg:function(){return Hc},Re:function(){return Yf},YP:function(){return Fh}});var Ve=rt(87363);function Ce(pe){"@babel/helpers - typeof";return Ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ae){return typeof Ae}:function(Ae){return Ae&&typeof Symbol=="function"&&Ae.constructor===Symbol&&Ae!==Symbol.prototype?"symbol":typeof Ae},Ce(pe)}var lt=function(){};function oe(pe,Ae){for(var Ke=pe,jt=void 0;Ke&&!jt;)jt=Object.getOwnPropertyDescriptor(Ke,Ae),Ke=Object.getPrototypeOf(Ke);return jt}function fr(pe){if(Ce(pe)!=="object"||pe===null||Object.prototype.toString.call(pe)!=="[object Object]")return!1;var Ae=Object.getPrototypeOf(pe);if(Ae===null)return!0;var Ke=Object.prototype.hasOwnProperty.call(Ae,"constructor")&&Ae.constructor;return typeof Ke=="function"&&Ke instanceof Ke&&Ke.toString()===Object.toString()}var re;(function(pe){var Ae=pe.Tracker=Symbol("Tracker"),Ke=pe.Notifier=Symbol("Notifier"),jt=pe.Observable=Symbol("Observable"),Lr=pe.ObservableProperties=Symbol("ObservableProperties"),qr=pe.KeepOrigin=Symbol("KeepOrigin"),Ln=pe.Self=Symbol("Self")})(re||(re={}));var ie;function Nt(pe){"@babel/helpers - typeof";return Nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ae){return typeof Ae}:function(Ae){return Ae&&typeof Symbol=="function"&&Ae.constructor===Symbol&&Ae!==Symbol.prototype?"symbol":typeof Ae},Nt(pe)}var Rt;(function(pe){function Ae(Lr){return!!Lr&&Nt(Lr)==="object"&&"dispose"in Lr&&typeof Lr.dispose=="function"}pe.is=Ae;function Ke(Lr){return{dispose:Lr}}pe.create=Ke;var jt=pe.NONE=Ke(lt)})(Rt||(Rt={}));var rr;(function(pe){function Ae(Ke){return!!Ke&&Nt(Ke)==="object"&&"disposed"in Ke&&typeof Ke.disposed=="boolean"}pe.is=Ae})(rr||(rr={}));function Ft(pe){"@babel/helpers - typeof";return Ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ae){return typeof Ae}:function(Ae){return Ae&&typeof Symbol=="function"&&Ae.constructor===Symbol&&Ae!==Symbol.prototype?"symbol":typeof Ae},Ft(pe)}var Dt;function U(){return typeof Reflect!="undefined"&&Reflect.get?U=Reflect.get.bind():U=function(Ae,Ke,jt){var Lr=D(Ae,Ke);if(Lr){var qr=Object.getOwnPropertyDescriptor(Lr,Ke);return qr.get?qr.get.call(arguments.length<3?Ae:jt):qr.value}},U.apply(this,arguments)}function D(pe,Ae){for(;!Object.prototype.hasOwnProperty.call(pe,Ae)&&(pe=Ct(pe),pe!==null););return pe}function Pt(pe,Ae){if(typeof Ae!="function"&&Ae!==null)throw new TypeError("Super expression must either be null or a function");pe.prototype=Object.create(Ae&&Ae.prototype,{constructor:{value:pe,writable:!0,configurable:!0}}),Object.defineProperty(pe,"prototype",{writable:!1}),Ae&&ot(pe,Ae)}function ot(pe,Ae){return ot=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(jt,Lr){return jt.__proto__=Lr,jt},ot(pe,Ae)}function Gt(pe){var Ae=Tt();return function(){var jt=Ct(pe),Lr;if(Ae){var qr=Ct(this).constructor;Lr=Reflect.construct(jt,arguments,qr)}else Lr=jt.apply(this,arguments);return tr(this,Lr)}}function tr(pe,Ae){if(Ae&&(Ft(Ae)==="object"||typeof Ae=="function"))return Ae;if(Ae!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ar(pe)}function ar(pe){if(pe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return pe}function Tt(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(pe){return!1}}function Ct(pe){return Ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Ke){return Ke.__proto__||Object.getPrototypeOf(Ke)},Ct(pe)}function nr(){"use strict";nr=function(){return Ae};var pe,Ae={},Ke=Object.prototype,jt=Ke.hasOwnProperty,Lr=Object.defineProperty||function($n,Qr,Bn){$n[Qr]=Bn.value},qr=typeof Symbol=="function"?Symbol:{},Ln=qr.iterator||"@@iterator",si=qr.asyncIterator||"@@asyncIterator",Pn=qr.toStringTag||"@@toStringTag";function fi($n,Qr,Bn){return Object.defineProperty($n,Qr,{value:Bn,enumerable:!0,configurable:!0,writable:!0}),$n[Qr]}try{fi({},"")}catch($n){fi=function(Bn,Ri,qi){return Bn[Ri]=qi}}function wi($n,Qr,Bn,Ri){var qi=Qr&&Qr.prototype instanceof Wi?Qr:Wi,$i=Object.create(qi.prototype),Io=new Cu(Ri||[]);return Lr($i,"_invoke",{value:ws($n,Bn,Io)}),$i}function ci($n,Qr,Bn){try{return{type:"normal",arg:$n.call(Qr,Bn)}}catch(Ri){return{type:"throw",arg:Ri}}}Ae.wrap=wi;var Vr="suspendedStart",Dn="suspendedYield",Ci="executing",oi="completed",Gn={};function Wi(){}function Gi(){}function pa(){}var Ao={};fi(Ao,Ln,function(){return this});var ll=Object.getPrototypeOf,vo=ll&&ll(ll(ta([])));vo&&vo!==Ke&&jt.call(vo,Ln)&&(Ao=vo);var Dl=pa.prototype=Wi.prototype=Object.create(Ao);function eu($n){["next","throw","return"].forEach(function(Qr){fi($n,Qr,function(Bn){return this._invoke(Qr,Bn)})})}function ks($n,Qr){function Bn(qi,$i,Io,Oi){var Ro=ci($n[qi],$n,$i);if(Ro.type!=="throw"){var po=Ro.arg,Jo=po.value;return Jo&&Ft(Jo)=="object"&&jt.call(Jo,"__await")?Qr.resolve(Jo.__await).then(function(bl){Bn("next",bl,Io,Oi)},function(bl){Bn("throw",bl,Io,Oi)}):Qr.resolve(Jo).then(function(bl){po.value=bl,Io(po)},function(bl){return Bn("throw",bl,Io,Oi)})}Oi(Ro.arg)}var Ri;Lr(this,"_invoke",{value:function($i,Io){function Oi(){return new Qr(function(Ro,po){Bn($i,Io,Ro,po)})}return Ri=Ri?Ri.then(Oi,Oi):Oi()}})}function ws($n,Qr,Bn){var Ri=Vr;return function(qi,$i){if(Ri===Ci)throw new Error("Generator is already running");if(Ri===oi){if(qi==="throw")throw $i;return{value:pe,done:!0}}for(Bn.method=qi,Bn.arg=$i;;){var Io=Bn.delegate;if(Io){var Oi=sl(Io,Bn);if(Oi){if(Oi===Gn)continue;return Oi}}if(Bn.method==="next")Bn.sent=Bn._sent=Bn.arg;else if(Bn.method==="throw"){if(Ri===Vr)throw Ri=oi,Bn.arg;Bn.dispatchException(Bn.arg)}else Bn.method==="return"&&Bn.abrupt("return",Bn.arg);Ri=Ci;var Ro=ci($n,Qr,Bn);if(Ro.type==="normal"){if(Ri=Bn.done?oi:Dn,Ro.arg===Gn)continue;return{value:Ro.arg,done:Bn.done}}Ro.type==="throw"&&(Ri=oi,Bn.method="throw",Bn.arg=Ro.arg)}}}function sl($n,Qr){var Bn=Qr.method,Ri=$n.iterator[Bn];if(Ri===pe)return Qr.delegate=null,Bn==="throw"&&$n.iterator.return&&(Qr.method="return",Qr.arg=pe,sl($n,Qr),Qr.method==="throw")||Bn!=="return"&&(Qr.method="throw",Qr.arg=new TypeError("The iterator does not provide a '"+Bn+"' method")),Gn;var qi=ci(Ri,$n.iterator,Qr.arg);if(qi.type==="throw")return Qr.method="throw",Qr.arg=qi.arg,Qr.delegate=null,Gn;var $i=qi.arg;return $i?$i.done?(Qr[$n.resultName]=$i.value,Qr.next=$n.nextLoc,Qr.method!=="return"&&(Qr.method="next",Qr.arg=pe),Qr.delegate=null,Gn):$i:(Qr.method="throw",Qr.arg=new TypeError("iterator result is not an object"),Qr.delegate=null,Gn)}function yu($n){var Qr={tryLoc:$n[0]};1 in $n&&(Qr.catchLoc=$n[1]),2 in $n&&(Qr.finallyLoc=$n[2],Qr.afterLoc=$n[3]),this.tryEntries.push(Qr)}function xs($n){var Qr=$n.completion||{};Qr.type="normal",delete Qr.arg,$n.completion=Qr}function Cu($n){this.tryEntries=[{tryLoc:"root"}],$n.forEach(yu,this),this.reset(!0)}function ta($n){if($n||$n===""){var Qr=$n[Ln];if(Qr)return Qr.call($n);if(typeof $n.next=="function")return $n;if(!isNaN($n.length)){var Bn=-1,Ri=function qi(){for(;++Bn<$n.length;)if(jt.call($n,Bn))return qi.value=$n[Bn],qi.done=!1,qi;return qi.value=pe,qi.done=!0,qi};return Ri.next=Ri}}throw new TypeError(Ft($n)+" is not iterable")}return Gi.prototype=pa,Lr(Dl,"constructor",{value:pa,configurable:!0}),Lr(pa,"constructor",{value:Gi,configurable:!0}),Gi.displayName=fi(pa,Pn,"GeneratorFunction"),Ae.isGeneratorFunction=function($n){var Qr=typeof $n=="function"&&$n.constructor;return!!Qr&&(Qr===Gi||(Qr.displayName||Qr.name)==="GeneratorFunction")},Ae.mark=function($n){return Object.setPrototypeOf?Object.setPrototypeOf($n,pa):($n.__proto__=pa,fi($n,Pn,"GeneratorFunction")),$n.prototype=Object.create(Dl),$n},Ae.awrap=function($n){return{__await:$n}},eu(ks.prototype),fi(ks.prototype,si,function(){return this}),Ae.AsyncIterator=ks,Ae.async=function($n,Qr,Bn,Ri,qi){qi===void 0&&(qi=Promise);var $i=new ks(wi($n,Qr,Bn,Ri),qi);return Ae.isGeneratorFunction(Qr)?$i:$i.next().then(function(Io){return Io.done?Io.value:$i.next()})},eu(Dl),fi(Dl,Pn,"Generator"),fi(Dl,Ln,function(){return this}),fi(Dl,"toString",function(){return"[object Generator]"}),Ae.keys=function($n){var Qr=Object($n),Bn=[];for(var Ri in Qr)Bn.push(Ri);return Bn.reverse(),function qi(){for(;Bn.length;){var $i=Bn.pop();if($i in Qr)return qi.value=$i,qi.done=!1,qi}return qi.done=!0,qi}},Ae.values=ta,Cu.prototype={constructor:Cu,reset:function(Qr){if(this.prev=0,this.next=0,this.sent=this._sent=pe,this.done=!1,this.delegate=null,this.method="next",this.arg=pe,this.tryEntries.forEach(xs),!Qr)for(var Bn in this)Bn.charAt(0)==="t"&&jt.call(this,Bn)&&!isNaN(+Bn.slice(1))&&(this[Bn]=pe)},stop:function(){this.done=!0;var Qr=this.tryEntries[0].completion;if(Qr.type==="throw")throw Qr.arg;return this.rval},dispatchException:function(Qr){if(this.done)throw Qr;var Bn=this;function Ri(po,Jo){return Io.type="throw",Io.arg=Qr,Bn.next=po,Jo&&(Bn.method="next",Bn.arg=pe),!!Jo}for(var qi=this.tryEntries.length-1;qi>=0;--qi){var $i=this.tryEntries[qi],Io=$i.completion;if($i.tryLoc==="root")return Ri("end");if($i.tryLoc<=this.prev){var Oi=jt.call($i,"catchLoc"),Ro=jt.call($i,"finallyLoc");if(Oi&&Ro){if(this.prev<$i.catchLoc)return Ri($i.catchLoc,!0);if(this.prev<$i.finallyLoc)return Ri($i.finallyLoc)}else if(Oi){if(this.prev<$i.catchLoc)return Ri($i.catchLoc,!0)}else{if(!Ro)throw new Error("try statement without catch or finally");if(this.prev<$i.finallyLoc)return Ri($i.finallyLoc)}}}},abrupt:function(Qr,Bn){for(var Ri=this.tryEntries.length-1;Ri>=0;--Ri){var qi=this.tryEntries[Ri];if(qi.tryLoc<=this.prev&&jt.call(qi,"finallyLoc")&&this.prev=0;--Bn){var Ri=this.tryEntries[Bn];if(Ri.finallyLoc===Qr)return this.complete(Ri.completion,Ri.afterLoc),xs(Ri),Gn}},catch:function(Qr){for(var Bn=this.tryEntries.length-1;Bn>=0;--Bn){var Ri=this.tryEntries[Bn];if(Ri.tryLoc===Qr){var qi=Ri.completion;if(qi.type==="throw"){var $i=qi.arg;xs(Ri)}return $i}}throw new Error("illegal catch attempt")},delegateYield:function(Qr,Bn,Ri){return this.delegate={iterator:ta(Qr),resultName:Bn,nextLoc:Ri},this.method==="next"&&(this.arg=pe),Gn}},Ae}function It(pe,Ae,Ke,jt,Lr,qr,Ln){try{var si=pe[qr](Ln),Pn=si.value}catch(fi){Ke(fi);return}si.done?Ae(Pn):Promise.resolve(Pn).then(jt,Lr)}function Bt(pe){return function(){var Ae=this,Ke=arguments;return new Promise(function(jt,Lr){var qr=pe.apply(Ae,Ke);function Ln(Pn){It(qr,jt,Lr,Ln,si,"next",Pn)}function si(Pn){It(qr,jt,Lr,Ln,si,"throw",Pn)}Ln(void 0)})}}function Ir(pe,Ae){var Ke=typeof Symbol!="undefined"&&pe[Symbol.iterator]||pe["@@iterator"];if(!Ke){if(Array.isArray(pe)||(Ke=yr(pe))||Ae&&pe&&typeof pe.length=="number"){Ke&&(pe=Ke);var jt=0,Lr=function(){};return{s:Lr,n:function(){return jt>=pe.length?{done:!0}:{done:!1,value:pe[jt++]}},e:function(Pn){function fi(wi){return Pn.apply(this,arguments)}return fi.toString=function(){return Pn.toString()},fi}(function(Pn){throw Pn}),f:Lr}}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 qr=!0,Ln=!1,si;return{s:function(){Ke=Ke.call(pe)},n:function(){var fi=Ke.next();return qr=fi.done,fi},e:function(Pn){function fi(wi){return Pn.apply(this,arguments)}return fi.toString=function(){return Pn.toString()},fi}(function(Pn){Ln=!0,si=Pn}),f:function(){try{!qr&&Ke.return!=null&&Ke.return()}finally{if(Ln)throw si}}}}function yr(pe,Ae){if(pe){if(typeof pe=="string")return Xr(pe,Ae);var Ke=Object.prototype.toString.call(pe).slice(8,-1);if(Ke==="Object"&&pe.constructor&&(Ke=pe.constructor.name),Ke==="Map"||Ke==="Set")return Array.from(pe);if(Ke==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ke))return Xr(pe,Ae)}}function Xr(pe,Ae){(Ae==null||Ae>pe.length)&&(Ae=pe.length);for(var Ke=0,jt=new Array(Ae);Ke1&&arguments[1]!==void 0?arguments[1]:void 0;this._callbacks||(this._callbacks=[]),this._callbacks.push([Ke,jt])}},{key:"remove",value:function(Ke){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0;if(this._callbacks){for(var Lr=!1,qr=0;qr=pe.length?{done:!0}:{done:!1,value:pe[jt++]}},e:function(Pn){function fi(wi){return Pn.apply(this,arguments)}return fi.toString=function(){return Pn.toString()},fi}(function(Pn){throw Pn}),f:Lr}}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 qr=!0,Ln=!1,si;return{s:function(){Ke=Ke.call(pe)},n:function(){var fi=Ke.next();return qr=fi.done,fi},e:function(Pn){function fi(wi){return Pn.apply(this,arguments)}return fi.toString=function(){return Pn.toString()},fi}(function(Pn){Ln=!0,si=Pn}),f:function(){try{!qr&&Ke.return!=null&&Ke.return()}finally{if(Ln)throw si}}}}function mt(pe,Ae){if(pe){if(typeof pe=="string")return fe(pe,Ae);var Ke=Object.prototype.toString.call(pe).slice(8,-1);if(Ke==="Object"&&pe.constructor&&(Ke=pe.constructor.name),Ke==="Map"||Ke==="Set")return Array.from(pe);if(Ke==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ke))return fe(pe,Ae)}}function fe(pe,Ae){(Ae==null||Ae>pe.length)&&(Ae=pe.length);for(var Ke=0,jt=new Array(Ae);Kepe.length)&&(Ae=pe.length);for(var Ke=0,jt=new Array(Ae);Ke2&&arguments[2]!==void 0?arguments[2]:!1,qr=pe.find(Ke,jt);return qr?Lr===null?qr.onChange:Lr?qr.onChangeAsync:qr.onChangeSync:Et.None}}]),pe}(),ji;(function(pe){var Ae=pe.token=Symbol("Notifiable");function Ke(Vr){return Sr.isObject(Vr)&&!!Vr[re.Notifier]}pe.is=Ke;function jt(Vr){return Vr[re.Notifier]}pe.getNotifier=jt;function Lr(Vr){if(Ke(Vr))return jt(Vr)}pe.tryGetNotifier=Lr;function qr(Vr,Dn){Reflect.defineMetadata(Ae,Dn,Vr)}pe.set=qr;function Ln(Vr){return Reflect.getMetadata(Ae,Vr)}pe.get=Ln;function si(Vr){return!Sr.isObject(Vr)||Object.isFrozen(Vr)?!1:!!(Vr instanceof Array||Vr instanceof Map||fr(Vr))}pe.canBeNotifiable=si;function Pn(Vr){if(Ke(Vr)||!Sr.canBeObservable(Vr))return Vr;var Dn=Sr.getOrigin(Vr),Ci=ji.get(Dn);return Ci||(Dn instanceof Array?fi(Dn):Dn instanceof Map?ci(Dn):fr(Dn)?wi(Dn):Vr)}pe.transform=Pn;function fi(Vr){var Dn=oa.getOrCreate(Vr),Ci=new Proxy(Vr,{get:function(Gn,Wi){if(Wi===re.Notifier)return Dn;if(Wi===re.Self)return Gn;var Gi=Reflect.get(Gn,Wi);if(Ai(Vr,Wi))return Gi;var pa=Sr.getOrigin(Gi);return ji.transform(pa)},set:function(Gn,Wi,Gi){var pa=Reflect.set(Gn,Wi,Gi);return Dn.notify(Gi),pa}});return qr(Vr,Ci),Ci}pe.transformArray=fi;function wi(Vr){var Dn=oa.getOrCreate(Vr),Ci=new Proxy(Vr,{get:function(Gn,Wi){if(Wi===re.Notifier)return Dn;if(Wi===re.Self)return Gn;var Gi=Reflect.get(Gn,Wi);if(Ai(Vr,Wi))return Gi;var pa=Sr.getOrigin(Gi);return ji.transform(pa)},set:function(Gn,Wi,Gi){var pa=Reflect.set(Gn,Wi,Gi);return Dn.notify(Gi),pa},deleteProperty:function(Gn,Wi){var Gi=Reflect.deleteProperty(Gn,Wi);return Dn.notify(void 0),Gi}});return qr(Vr,Ci),Ci}pe.transformPlainObject=wi;function ci(Vr){var Dn=oa.getOrCreate(Vr),Ci=new Proxy(Vr,{get:function(Gn,Wi){if(Wi===re.Notifier)return Dn;if(Wi===re.Self)return Gn;var Gi;switch(Wi){case"delete":return function(){for(var Ao=arguments.length,ll=new Array(Ao),vo=0;vo2&&arguments[2]!==void 0?arguments[2]:!1;if(!Sr.canBeObservable(ci))return ci;var Ci=ci;al.is(ci)&&(Ci=al.getOrigin(ci)),Ci=Sr.getOrigin(Ci);var oi=void 0;return jt(Ci,Vr)&&(oi=Ke(Ci,Vr),oi)?(oi[al.activator]&&oi[al.activator](),oi):ji.canBeNotifiable(Ci)?fi(Ci,Vr,Dn):Pn(Ci,Vr)}pe.track=wi})(Qs||(Qs={}));function Du(pe){"@babel/helpers - typeof";return Du=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ae){return typeof Ae}:function(Ae){return Ae&&typeof Symbol=="function"&&Ae.constructor===Symbol&&Ae!==Symbol.prototype?"symbol":typeof Ae},Du(pe)}function Uf(pe,Ae){return kh(pe)||bs(pe,Ae)||Js(pe,Ae)||Lu()}function Lu(){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 Js(pe,Ae){if(pe){if(typeof pe=="string")return Cs(pe,Ae);var Ke=Object.prototype.toString.call(pe).slice(8,-1);if(Ke==="Object"&&pe.constructor&&(Ke=pe.constructor.name),Ke==="Map"||Ke==="Set")return Array.from(pe);if(Ke==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ke))return Cs(pe,Ae)}}function Cs(pe,Ae){(Ae==null||Ae>pe.length)&&(Ae=pe.length);for(var Ke=0,jt=new Array(Ae);Keyr.length)&&(Xr=yr.length);for(var Tr=0,fn=new Array(Xr);Tret.length)&&(mt=et.length);for(var fe=0,pt=new Array(mt);feet.length)&&(mt=et.length);for(var fe=0,pt=new Array(mt);feet.length)&&(mt=et.length);for(var fe=0,pt=new Array(mt);feet.length)&&(mt=et.length);for(var fe=0,pt=new Array(mt);fefr()(dr)?1:-1:!isNaN(cr)&&!isNaN(dr)?(0,Ce.toNumber)(cr)-(0,Ce.toNumber)(dr):cr-dr}).map(function(er){return er[1]})},ir=function(Ie,ct){return Ie.every(function(qt){var et=qt[ct];return typeof et=="string"&&!Number.isNaN(Number(et))})},be=function(Ie,ct){return Ie.every(function(qt){var et=qt[ct];return isNaN(et)&&!isNaN(Date.parse(et))?!0:/^([12]\d{3})(0\d|1[0-2])([0-2]\d|3[01])$/.test(et)&&moment(et).isValid()})},Oe=function(Ie,ct){var qt,et,mt,fe,pt,wt,er,Lt,cr,dr,jr,vn={x:void 0,y:void 0,split:void 0},cn={x:void 0,y:void 0,split:void 0},Xn={x:void 0,y:void 0},un={row:[],column:[],value:[],valueType:"average"},Jr={},tt={};if(!Ie||!(Ie!=null&&Ie.length))return{numMap:Jr,timeMap:tt,barSetting:vn,lineSetting:cn,pieSetting:Xn,pivottableSetting:un};var de=Object.keys(Ie[0]),ve=Ie.slice(1,11);de.forEach(function(An){Jr[An]=ir(ve,An),tt[An]=be(ve,An)});var ce=(qt=ct.find(function(An){return!Jr[An.name]}))===null||qt===void 0?void 0:qt.name,we=(et=ct.find(function(An){return!Jr[An.name]&&ce!==An.name}))===null||et===void 0?void 0:et.name,xe=(mt=ct.find(function(An){return Jr[An.name]}))===null||mt===void 0?void 0:mt.name,ke=(fe=ct.find(function(An){return Jr[An.name]&&xe!==An.name}))===null||fe===void 0?void 0:fe.name,Te=ce||ke,st=xe||we;vn={x:Te,y:st,split:void 0};var xt=(pt=ct.find(function(An){return tt[An.name]}))===null||pt===void 0?void 0:pt.name,Ht=(wt=ct.find(function(An){return Jr[An.name]&&!tt[An.name]}))===null||wt===void 0?void 0:wt.name,Yt=(er=ct.find(function(An){return!Jr[An.name]&&!tt[An.name]}))===null||er===void 0?void 0:er.name,lr=xt,vr=Ht||Yt;cn={x:lr,y:vr,split:void 0},Xn={x:Te,y:st};var Gr=(Lt=ct.find(function(An){return!Jr[An.name]&&!tt[An.name]}))===null||Lt===void 0?void 0:Lt.name,Zt=(cr=ct.find(function(An){return!Jr[An.name]&&!tt[An.name]&&ce!==An.name}))===null||cr===void 0?void 0:cr.name,Nr=(dr=ct.find(function(An){return Jr[An.name]}))===null||dr===void 0?void 0:dr.name,en=(jr=ct.find(function(An){return Jr[An.name]&&Nr!==An.name}))===null||jr===void 0?void 0:jr.name,Sn=Gr||en?[Gr||en]:[],kn=Zt?[Zt]:[],Sr=Nr?[Nr]:[],qn=Object.keys(Jr).length>0?"average":"count";return un={row:Sn,column:kn,value:Sr,valueType:qn},{numMap:Jr,timeMap:tt,barSetting:vn,lineSetting:cn,pieSetting:Xn,pivottableSetting:un}}},53829:function(ti,On){"use strict";function rt(Nt){"@babel/helpers - typeof";return rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Rt){return typeof Rt}:function(Rt){return Rt&&typeof Symbol=="function"&&Rt.constructor===Symbol&&Rt!==Symbol.prototype?"symbol":typeof Rt},rt(Nt)}function Ve(Nt,Rt){for(var rr=0;rr0&&arguments[0]!==void 0?arguments[0]:Ve.C.Instance;return function(Gt){Reflect.defineMetadata("Scope",ot,Gt)}}function Pt(ot){return function(Gt){Reflect.defineMetadata(fr,ot,Gt),Ce.Z.modelCtors.set(ot,Gt)}}},63044:function(ti,On,rt){"use strict";rt.d(On,{BvW:function(){return wg},iG8:function(){return V3},E5N:function(){return ks},$_G:function(){return jl},l3E:function(){return bs},A4U:function(){return c1},ixp:function(){return ys},L00:function(){return lr}});var Ve=rt(18706),Ce=rt(76311),lt=rt(87004),oe=rt(12611),fr=rt.n(oe),re=rt(87363),ie=rt.n(re);function Nt(d){"@babel/helpers - typeof";return Nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},Nt(d)}function Rt(d,p){if(!(d instanceof p))throw new TypeError("Cannot call a class as a function")}function rr(d,p){for(var y=0;y=0)&&Object.prototype.propertyIsEnumerable.call(d,w)&&(y[w]=d[w])}return y}function we(d,p){if(d==null)return{};var y={},w=Object.keys(d),I,P;for(P=0;P=0)&&(y[I]=d[I]);return y}var xe=function(p){var y=p.type,w=p.colorful,I=p.className,P=p.style,N=ce(p,wt),$=y;if(w){var V=y.match(/icon-[^ ]*/);return $=V?V[0]:y,re.createElement("svg",ve({className:fe()(I,"svg-one-icon"),"aria-hidden":!0},N),re.createElement("use",{xlinkHref:"#".concat($)}))}return re.createElement("i",ve({className:fe()(I,"one-icon",y),style:P,"data-testid":"".concat(y)},N))},ke=new RegExp(/icon-([\w-_]+)/),Te=function(d){vn(y,d);var p=Xn(y);function y(){return er(this,y),p.apply(this,arguments)}return cr(y,[{key:"componentDidMount",value:function(){this.createSVG()}},{key:"componentDidUpdate",value:function(){this.createSVG()}},{key:"createSVG",value:function(){if(this.props.colorful){var I,P=this.props.type,N=(I=ke.exec(P))===null||I===void 0?void 0:I[0];N&&et(N)}}},{key:"render",value:function(){return re.createElement(xe,this.props)}}]),y}(re.Component),st=null,xt=rt(61533),Ht=rt.n(xt),Yt=re.createContext(null);function lr(){return re.useContext(Yt)}var vr=Yt,Gr={theme:"dark",antdStyleContext:{}},Zt=rt(81821);function Nr(d,p,y,w,I){var P=I||{},N=P.onCleanUp;if(w){var $=document.querySelector("#".concat(w));if($){var V=xt.unmountComponentAtNode($);if(V&&$.parentNode){$.parentNode.removeChild($);return}}}var J=document.createElement("div");w&&(J.id=w),document.body.appendChild(J);var ue,_e,Se=new Promise(function(He,gt){ue=He,_e=gt}).then(function(He){return je(),He});function Qe(){var He=xt.unmountComponentAtNode(J);He&&J.parentNode&&(J.parentNode.removeChild(J),N&&N())}function ut(){setTimeout(function(){xt.render(re.createElement(Zt.ConfigProvider,Gr.antdStyleContext||{},re.createElement(vr.Provider,{value:{spreadsheet:y,logger:y.logger,theme:Gr.theme,commandManager:y.commandManager}},re.createElement(d,{onCancel:je,resolver:ue,params:p}))),J)})}function je(){for(var He=arguments.length,gt=new Array(He),Mt=0;Mt',kn='',Sr='',qn='',An='',vi='',ba='',Ai="SERIES_NUM_KEY",Za=32,Ur=function(d){return d.mount="mount",d.copyByKey="copyByKey",d.copyByClick="copyByClick",d.dragColWidth="dragColWidth",d.dragColHeight="dragColHeight",d.dragRowHeight="dragRowHeight",d.brushSelection="brushSelection",d.selectAllByClick="selectAllByClick",d.selectAllByKey="selectAllByKey",d.filterCol="filterCol",d.redo="redo",d.undo="undo",d.sortCol="sortCol",d.search="search",d.frozenCol="frozenCol",d.filterExpressionClick="filterExpressionClick",d.editCell="editCell",d.searchFilter="searchFilter",d.setType="setType",d.sortManage="sortManage",d.filterManage="filterManage",d.detailJson="json",d.detailText="text",d.detailExt="ext",d.triggerHint="triggerHint",d.acceptUrlHint="acceptUrlHint",d.openDiagnosis="openDiagnosis",d.splitKVCol="splitKVCol",d.splitCol="splitCol",d.copyLineNumAndSensitiveData="copyLineNumAndSensitiveData",d.pasteFromClipboard="pasteFromClipboard",d.addRow="addRow",d.addCol="addRow",d.removeRow="removeRow",d.toggleMode="toggleMode",d.dataExplore="dataExplore",d.loadEdits="loadEdits",d.conditionalFormatting="conditionalFormatting",d.exportData="exportData",d.diffTable="diffTable",d.diffCaculate="diffCaculate",d.graphRecommendation="graphRecommendation",d.useFormulaEngine="useFormulaEngine",d.errorCollect="errorCollect",d}({}),ni=function(d){return d.IsEqualTo="IsEqualTo",d.IsGreaterThan="IsGreaterThan",d.IsLessThan="IsLessThan",d.IsStartsWith="IsStartsWith",d.IsEndsWith="IsEndsWith",d.IsNotStartsWith="IsNotStartsWith",d.IsNotEndsWith="IsNotEndsWith",d.Contains="Contains",d.DoesntContain="DoesntContain",d.IsDateBefore="IsDateBefore",d.IsDateAfter="IsDateAfter",d}({}),qs="__$$id$$__",Ka={isOriginal:1,isDimension:2,isComputed:4,isAggregation:8},Ma=function(d){return d.COUNT="COUNT",d.COUNT_DISTINCT="COUNT_DISTINCT",d.AVERAGE="AVERAGE",d.SUM="SUM",d.MAX="MAX",d.MIN="MIN",d.MEDIAN="MEDIAN",d}({}),pi=function(d){return d.String="string",d.Number="number",d.Date="date",d}({}),oa="#FFFFFF",ji=function(d){return d.TEXT="TEXT",d.DATE="DATE",d.SELECT="SELECT",d.TEXTAREA="TEXTAREA",d.MULTIPLE="MULTIPLE",d}({}),Qo=null,Oo=function(d){return d.pivot="pivot",d.table="table",d}({}),Il=function(d){return d.PASTE_SUCCESS="paste:success",d.HANDLER_ERROR="handler:error",d.CLICK_DESENSITIZED_FIELD="click:desensitized-field",d.DATACELL_BLUR="blur:datacell",d.COLCELL_DRAGEND="dragend:colcell",d}({});function ys(d,p){var y=lr(),w=y.spreadsheet,I=ie().useCallback(function(){try{for(var P=arguments.length,N=new Array(P),$=0;$d.length)&&(p=d.length);for(var y=0,w=new Array(p);y2&&arguments[2]!==void 0?arguments[2]:!1,I=y.facet.getScrollOffset(),P=(y.getColumnNodes()[0]||{height:0}).height,N=(0,oe.pick)(p,["x","y","width","height"]);return N.x-=I.scrollX||0,N.y-=(I.scrollY||0)-P,w&&N.yd.length)&&(p=d.length);for(var y=0,w=new Array(p);y=0;--gr){var _r=this.tryEntries[gr],Wr=_r.completion;if(_r.tryLoc==="root")return sr("end");if(_r.tryLoc<=this.prev){var $r=w.call(_r,"catchLoc"),Zr=w.call(_r,"finallyLoc");if($r&&Zr){if(this.prev<_r.catchLoc)return sr(_r.catchLoc,!0);if(this.prev<_r.finallyLoc)return sr(_r.finallyLoc)}else if($r){if(this.prev<_r.catchLoc)return sr(_r.catchLoc,!0)}else{if(!Zr)throw new Error("try statement without catch or finally");if(this.prev<_r.finallyLoc)return sr(_r.finallyLoc)}}}},abrupt:function($e,ft){for(var sr=this.tryEntries.length-1;sr>=0;--sr){var gr=this.tryEntries[sr];if(gr.tryLoc<=this.prev&&w.call(gr,"finallyLoc")&&this.prev=0;--ft){var sr=this.tryEntries[ft];if(sr.finallyLoc===$e)return this.complete(sr.completion,sr.afterLoc),on(sr),He}},catch:function($e){for(var ft=this.tryEntries.length-1;ft>=0;--ft){var sr=this.tryEntries[ft];if(sr.tryLoc===$e){var gr=sr.completion;if(gr.type==="throw"){var _r=gr.arg;on(sr)}return _r}}throw new Error("illegal catch attempt")},delegateYield:function($e,ft,sr){return this.delegate={iterator:hn($e),resultName:ft,nextLoc:sr},this.method==="next"&&(this.arg=d),He}},p}function wn(d,p,y,w,I,P,N){try{var $=d[P](N),V=$.value}catch(J){y(J);return}$.done?p(V):Promise.resolve(V).then(w,I)}function gn(d){return function(){var p=this,y=arguments;return new Promise(function(w,I){var P=d.apply(p,y);function N(V){wn(P,w,I,N,$,"next",V)}function $(V){wn(P,w,I,N,$,"throw",V)}N(void 0)})}}function Mi(d,p){if(!(d instanceof p))throw new TypeError("Cannot call a class as a function")}function Ba(d,p){for(var y=0;y-1?P:N},offsetX:{value:$}}),ue()}));case 1:case"end":return J.stop()}},w)}));function y(w,I,P,N){return p.apply(this,arguments)}return y}()}]),d}(),ql=Wo(function d(p,y,w,I){var P=this;Mi(this,d),this.spreadsheet=void 0,this.rowIndex=void 0,this.field=void 0,this.splitCharacter=void 0,this.value=void 0,this.getCellConnectData=function(){var N=P.field,$=P.rowIndex,V=P.spreadsheet.dataCfg,J=V.data,ue=(0,oe.get)(V,"data.".concat($,".").concat(N,"diffPosition"));return{dataMirror:(0,oe.get)(J,"".concat($,".").concat(N),""),summaryRowCfg:V,diffPosition:ue}},this.getDiffCharacter=function(N,$){return(0,oe.slice)(P.splitCharacter,N,$).join("")},this.caculateCharacter=function(N,$){P.splitCharacter=(P.value||N||"").split("");var V=(0,oe.reverse)((0,oe.cloneDeep)($||[])),J=V.map(function(ue,_e){var Se={highLight:!0,value:P.getDiffCharacter(ue[0],ue[1]+1)},Qe=_e!==0?P.getDiffCharacter(V[_e-1][1]+1,ue[0]):void 0;return _e===0?P.handleFirstHighlight(ue,Se,V.length):_e===V.length-1?ue[1]===P.splitCharacter.length-1?[Qe,Se]:[Qe,Se,P.getDiffCharacter(ue[1]+1,P.splitCharacter.length)]:[Qe,Se]});return V.length===0?P.value||N:J.flat(1)},this.handleFirstHighlight=function(N,$,V){return N[0]===0?N[1]===0&&V===1&&P.splitCharacter.length>1||(0,oe.last)(N)d.length)&&(p=d.length);for(var y=0,w=new Array(p);y1&&Qe(function($r){return $r-1})}},{icon:ie().createElement(Te,{type:"icon-danjiantouwangxia"}),callback:function(){return Se<(0,oe.size)(P.dataSet.getDisplayDataSet())-1&&Qe(function($r){return $r+1})}},{icon:ie().createElement(Te,{type:"icon-huabansuoxiao"}),callback:function(){return y(!1)}}],it=(0,re.useMemo)(function(){return ie().createElement("div",{className:"modal-head"},ie().createElement("div",null,"\u667A\u80FD\u89E3\u6790"),ie().createElement("div",null,ie().createElement("span",{className:"line-count"},"\u5F53\u524D\uFF1A\u7B2C".concat(hr?Se:Se+1,"\u884C")),hn.map(function(Wr){return ie().createElement("span",{onClick:Wr.callback},Wr.icon)})))},[Se,P,Qe,hr]),$e=(0,re.useCallback)(function(Wr){var $r=Wr==null?void 0:Wr.map(function(Zr){return Zr.field});return $r.every(function(Zr,Wn){return Number(Zr.slice((0,oe.size)(Zr)-(0,oe.size)("".concat(Wn+1)),(0,oe.size)(Zr)))===Wn+1})},[]),ft=(0,re.useMemo)(function(){var Wr;return P==null||(Wr=P.dataCfg)===null||Wr===void 0||(Wr=Wr.meta)===null||Wr===void 0?void 0:Wr.map(function($r,Zr){var Wn,pn;return{key:"".concat($r.field,"_").concat(Zr,"_").concat(Se),keyIndex:Zr+1,id:$e(P==null||(Wn=P.dataCfg)===null||Wn===void 0?void 0:Wn.meta)?(pn=$r.field)===null||pn===void 0?void 0:pn.slice(0,(0,oe.size)($r.field)-(0,oe.size)("".concat(Zr+1))):$r.field,value:Mt==null?void 0:Mt[$r.field]}})},[Se,P,Mt,$e]),sr=(0,re.useMemo)(function(){if(Kt){var Wr,$r,Zr,Wn,pn=(Wr=vt.dataSet.getDisplayDataSet())===null||Wr===void 0?void 0:Wr[Se],xn=($r=At.dataSet.getDisplayDataSet())===null||$r===void 0?void 0:$r[Se],Hi=At==null||(Zr=At.dataCfg)===null||Zr===void 0?void 0:Zr.meta;return vt==null||(Wn=vt.dataCfg)===null||Wn===void 0||(Wn=Wn.meta)===null||Wn===void 0?void 0:Wn.map(function(ua,ii){var va,Ja,jo=Hi[ii].field;return{key:"".concat(ua.field,"_").concat(ii,"_").concat(Se),keyIndex:ii+1,sourceId:$e(vt==null||(va=vt.dataCfg)===null||va===void 0?void 0:va.meta)?(Ja=ua.field)===null||Ja===void 0?void 0:Ja.slice(0,(0,oe.size)(ua.field)-(0,oe.size)("".concat(ii+1))):ua.field,sourceValue:pn==null?void 0:pn[ua.field],tragetId:$e(Hi)?jo==null?void 0:jo.slice(0,(0,oe.size)(jo)-(0,oe.size)("".concat(ii+1))):jo,targetValue:xn[jo]}})}return null},[Se,vt,At,$e,Kt]),gr=(0,re.useCallback)(function(Wr,$r){var Zr=new ql($r==="sourceId"?vt:At,Se,Wr==null?void 0:Wr[$r]).caculate();return typeof Zr=="string"?Zr:Zr.map(function(Wn){return typeof Wn=="string"?Wn:ie().createElement("span",{className:$r==="sourceId"?"different-red":"different-green"},Wn==null?void 0:Wn.value)})},[Se,vt,At]),_r=[{title:"\u5E8F\u53F7",dataIndex:"keyIndex",width:Kt?"5%":void 0},{title:Kt?"\u6765\u6E90\u8868\u5B57\u6BB5\u540D":"\u5B57\u6BB5\u540D",dataIndex:Kt?"sourceId":"id",width:Kt?"10%":void 0},{title:Kt?"\u6765\u6E90\u8868\u503C":"\u503C",dataIndex:Kt?"sourceValue":"value",render:function($r,Zr){return Kt?gr(Zr,"sourceId"):$r}},Kt&&{title:"\u76EE\u6807\u8868\u5B57\u6BB5\u540D",dataIndex:"tragetId",width:"10%"},Kt&&{title:"\u76EE\u6807\u8868\u503C",dataIndex:"targetValue",render:function($r,Zr){return gr(Zr,"tragetId")}}].filter(Boolean);return ie().createElement(Zt.Modal,{title:it,closable:!1,visible:!0,width:Kt?"100%":void 0,onCancel:function(){return y(!1)},className:fe()("weave-diagnosis-container",$),footer:null},ie().createElement("div",{className:"weave-diagnosis-container"},ie().createElement(Zt.Table,{rowKey:function($r){return $r.key},dataSource:Kt?sr:ft,columns:_r,pagination:!1,scroll:{y:Kt?window.screen.height-200:400}})))}var qr=function d(p){return p?["auto","scroll"].includes(getComputedStyle(p).overflowY)||(p==null?void 0:p.id)==="root"?p:d(p==null?void 0:p.parentElement):null};function Ln(d){var p=d.params,y=d.resolver,w=p.newStyle,I=w===void 0?!1:w,P=p.renderedXBoundary,N=lr(),$=N.spreadsheet,V=N.theme,J=(0,re.useRef)(null),ue=(0,re.useRef)(null),_e=$.facet.getScrollOffset(),Se=_e.scrollY,Qe=_e.scrollX,ut=(0,re.useMemo)(function(){return Qe&&!$.options.frozenColCount?"none":void 0},[Qe,$.options.frozenColCount]),je=(0,re.useMemo)(function(){var _t,vt=$==null||(_t=$.container.cfg.container)===null||_t===void 0?void 0:_t.getBoundingClientRect(),At={left:window.scrollX+vt.left,top:window.scrollY+vt.top+p.y+25-(p.rowIndex===0?0:Se),width:p.width,height:p.height,wrapperScrollElement:qr($==null?void 0:$.container.cfg.container),XBoundary:[P[0]+vt.x,P[1]+vt.x]};return At},[$==null?void 0:$.container.cfg.container,p,Se,P]),He=je.width,gt=je.height,Mt=je.left,yt=je.top,Wt=je.wrapperScrollElement,Ye=je.XBoundary;return ie().useEffect(function(){var _t=(0,oe.throttle)(function(At){var Kt=At.clientXYe[1]||At.clientYyt+gt-window.scrollY;Kt&&y(!1)},10,{leading:!0}),vt=function(Kt){y(!1)};return $.on(Ce.ch4.GLOBAL_SCROLL,vt),Wt==null||Wt.addEventListener("scroll",vt),window.addEventListener("mousemove",_t),window.addEventListener("scroll",vt),function(){window.removeEventListener("mousemove",_t),window.removeEventListener("scroll",vt),Wt==null||Wt.removeEventListener("scroll",vt),$.off(Ce.ch4.GLOBAL_SCROLL,vt)}},[y,J.current,$,Wt,gt,yt,Ye]),ie().createElement("div",{ref:J,style:{zIndex:500,position:"absolute",overflow:"hidden",left:I?Mt+He:Mt,top:I?yt-10:yt,width:I?void 0:He,height:gt,pointerEvents:"none",display:ut},className:fe()("row-icon-container",V,{"new-style":I}),id:"diagniosis_row_head_".concat(p.rowIndex)},ie().createElement("span",{className:fe()("icon",{"new-icon":I}),onMouseMove:function(vt){return vt.stopPropagation()},onClick:function(vt){vt.stopPropagation(),Nr(Lr,{index:fr().toNumber(p.rowIndex)},$),y(!1)},ref:ue},ie().createElement(Te,{type:"one-icon dataphin-icon icon-zhinengjiexi",style:{fontSize:"15px"}}),I&&ie().createElement("span",null," \xA0\u667A\u80FD\u89E3\u6790")))}function si(d){"@babel/helpers - typeof";return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},si(d)}function Pn(d,p){var y=Object.keys(d);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(d);p&&(w=w.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),y.push.apply(y,w)}return y}function fi(d){for(var p=1;p0&&arguments[0]!==void 0?arguments[0]:1,P=this.getTextStyle(),N=this.getIconStyle(),$=this.getContentArea(),V=this.spreadsheet.dataCfg.summaryRowCfg;if(V&&V.visible&&!this.meta.showIconInColumnCell&&V.rowIndex===this.meta.rowIndex){var J=(this.spreadsheet.options.style.rowCfg.heightByField||{})[String(this.meta.rowIndex)];$.height=J-V.height;var ue=this.getStyle();$.y-=ue.cell.padding.top}return(0,Ce.o0q)($,P,this.actualTextWidth,N,I)}},{key:"getFormattedFieldValue",value:function(){var I=Gn(eu(y.prototype),"getFormattedFieldValue",this).call(this),P=Number(I.formattedValue),N=this.spreadsheet.options.seriesNumberStartOffset;return(0,oe.isNil)(N)?I:(P=Number(I.formattedValue),isNaN(P)||(P+=N),fi(fi({},I),{},{formattedValue:String(P)}))}},{key:"drawRowHeadIcon",value:function(){var I,P=this,N=((I=this.backgroundShape)===null||I===void 0?void 0:I.attr())||{},$=N.width,V=N.height,J=N.x,ue=N.y,_e=this.meta.rowIndex,Se=[J,J+$];this.on("mouseover",(0,oe.throttle)(function(Qe){var ut=document.getElementById("diagniosis_row_head_".concat(_e));!ut&&_e!==0&&Nr(Ln,{width:$,height:V,x:J,y:ue,rowIndex:_e,newStyle:!0,renderedXBoundary:Se},P.spreadsheet)},10))}}]),y}(Ce.DUx),ws=ks,sl,yu,xs;function Cu(d){"@babel/helpers - typeof";return Cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},Cu(d)}function ta(d,p,y){return p=$n(p),p in d?Object.defineProperty(d,p,{value:y,enumerable:!0,configurable:!0,writable:!0}):d[p]=y,d}function $n(d){var p=Qr(d,"string");return Cu(p)=="symbol"?p:String(p)}function Qr(d,p){if(Cu(d)!="object"||!d)return d;var y=d[Symbol.toPrimitive];if(y!==void 0){var w=y.call(d,p||"default");if(Cu(w)!="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return(p==="string"?String:Number)(d)}var Bn=function(d){return d.zh_CN="zh_CN",d.zh_TW="zh_TW",d.en_US="en_US",d}({}),Ri=Bn.zh_CN,qi={zh_CN:{addCol:"\u63D2\u5165\u5217",copy:"\u590D\u5236",copyRow:"\u590D\u5236\u884C",copyCol:"\u590D\u5236\u5217",hideCol:"\u9690\u85CF\u5217",copyRowHeader:"\u590D\u5236\u884C\u5934",copyColHeader:"\u590D\u5236\u5217\u5934",downloadTxt:"\u5BFC\u51FA\u4E3ATXT",downloadCsv:"\u5BFC\u51FA\u4E3ACSV",copySuccess:"\u590D\u5236\u6210\u529F",copyTip:"\u5DF2\u590D\u5236\u5230\u526A\u5207\u677F",copyToExcel:"\u590D\u5236\u5230Excel",deleteRow:"\u5220\u9664\u884C",insertRow:"\u63D2\u5165\u884C",insertCol:"\u63D2\u5165\u5217",splitCol:"\u62C6\u5206\u5217",noResult:"\u65E0\u7ED3\u679C",currentFieldValue:"\u5F53\u524D\u5B57\u6BB5\u503C",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",asc:"\u5347\u5E8F",desc:"\u964D\u5E8F",noSort:"\u4E0D\u6392\u5E8F",clear:"\u6E05\u9664\u5185\u5BB9",clearFilter:"\u6E05\u9664\u7B5B\u9009",selectAll:"\u5168\u9009",filter:"\u6570\u503C\u7B5B\u9009",filterSearch:"\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD",dataSort:"\u6570\u636E\u6392\u5E8F",frozen:"\u56FA\u5B9A\u6B64\u5217",unfrozen:"\u53D6\u6D88\u56FA\u5B9A\u5217",required:"\u8BF7\u586B\u5199",customFilter:"\u81EA\u5B9A\u4E49\u7B5B\u9009",filterExpression:"\u9AD8\u7EA7\u7B5B\u9009",joinType:"\u7EC4\u5408\u7C7B\u578B",diagnosisRow:"\u89E3\u6790\u5F53\u524D\u884C",conditionalFormatting:"\u6761\u4EF6\u683C\u5F0F",adaptiveCol:"\u81EA\u9002\u5E94\u5C55\u5F00\u5217",pivotTable:"\u900F\u89C6\u8868",baseTable:"\u660E\u7EC6\u8868",filterExpressions:(sl={},ta(ta(ta(ta(ta(ta(ta(ta(ta(ta(sl,ni.IsEqualTo,"\u7B49\u4E8E"),ni.IsGreaterThan,"\u5927\u4E8E"),ni.IsLessThan,"\u5C0F\u4E8E"),ni.IsStartsWith,"\u5F00\u5934\u662F"),ni.IsNotStartsWith,"\u5F00\u5934\u4E0D\u662F"),ni.IsEndsWith,"\u7ED3\u5C3E\u662F"),ni.IsNotEndsWith,"\u7ED3\u5C3E\u4E0D\u662F"),ni.Contains,"\u5305\u542B"),ni.DoesntContain,"\u4E0D\u5305\u542B"),ni.IsDateBefore,"\u5728\u65E5\u671F\u4E4B\u524D"),ta(sl,ni.IsDateAfter,"\u5728\u65E5\u671F\u4E4B\u540E")),backTop:"\u56DE\u5230\u9876\u90E8",backBottom:"\u76F4\u8FBE\u5E95\u90E8",deleteCell:"\u6E05\u9664\u5185\u5BB9",addRemark:"\u5907\u6CE8"},en_US:{addCol:"\u63D2\u5165\u5217",copy:"Copy",copyRow:"Copy row",copyCol:"Copy col",hideCol:"Hide col",copyRowHeader:"Copy row header",copyColHeader:"Copy col header",downloadTxt:"download txt",downloadCsv:"download CSV",copySuccess:"Copy successful",copyTip:"Copied to clipboard",copyToExcel:"\u590D\u5236\u5230Excel",deleteRow:"Delete row",insertRow:"Insert row",insertCol:"\u63D2\u5165\u5217",splitCol:"\u62C6\u5206\u5217",noResult:"No result",currentFieldValue:"Current field value",confirm:"Confirm",cancel:"Cancel",asc:"Asc",desc:"Desc",noSort:"None",clear:"Clear Content",clearFilter:"\u6E05\u9664\u7B5B\u9009",selectAll:"Select all",filter:"Value filter",filterSearch:"Please input keyword",dataSort:"Sort data",frozen:"Frozen this column",unfrozen:"Unfrozen this column",customFilter:"custom filter",required:"please fill",filterExpression:"filter with expression",joinType:"Join type",diagnosisRow:"diagnosis row",pivotTable:"pivot table",baseTable:"base table",conditionalFormatting:"\u6761\u4EF6\u683C\u5F0F",adaptiveCol:"\u81EA\u9002\u5E94\u5C55\u5F00\u5217",filterExpressions:(yu={},ta(ta(ta(ta(ta(ta(ta(ta(ta(ta(yu,ni.IsEqualTo,"is equal to"),ni.IsGreaterThan,"is greater than"),ni.IsLessThan,"is less than"),ni.IsStartsWith,"starts with"),ni.IsNotStartsWith,"not starts with"),ni.IsEndsWith,"ends with"),ni.IsNotEndsWith,"not ends with"),ni.Contains,"contains"),ni.DoesntContain,"does not contain"),ni.IsDateBefore,"before date"),ta(yu,ni.IsDateAfter,"after date")),backTop:"Back to top",backBottom:"Back to bottom",deleteCell:"delete content",addRemark:"\u5907\u6CE8"},zh_TW:{addCol:"\u63D2\u5165\u5217",copy:"\u590D\u5236",copySuccess:"\u590D\u5236\u6210\u529F",copyTip:"\u5DF2\u590D\u5236\u5230\u526A\u5207\u677F",copyToExcel:"\u590D\u5236\u5230Excel",deleteRow:"\u5220\u9664\u884C",insertRow:"\u63D2\u5165\u884C",hideCol:"\u9690\u85CF\u5217",insertCol:"\u63D2\u5165\u5217",splitCol:"\u62C6\u5206\u5217",noResult:"\u65E0\u7ED3\u679C",currentFieldValue:"\u5F53\u524D\u5B57\u6BB5\u503C",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",asc:"\u5347\u5E8F",desc:"\u964D\u5E8F",noSort:"\u4E0D\u6392\u5E8F",clear:"\u6E05\u9664\u5185\u5BB9",clearFilter:"\u6E05\u9664\u7B5B\u9009",selectAll:"\u5168\u9009",filter:"\u6570\u503C\u7B5B\u9009",filterSearch:"\u8BF7\u8F93\u5165\u641C\u7D22\u5173\u952E\u8BCD",dataSort:"\u6570\u636E\u6392\u5E8F",frozen:"\u56FA\u5B9A\u6B64\u5217",unfrozen:"\u53D6\u6D88\u56FA\u5B9A\u5217",required:"\u8BF7\u586B\u5199",customFilter:"\u81EA\u5B9A\u4E49\u7B5B\u9009",filterExpression:"\u9AD8\u7EA7\u7B5B\u9009",joinType:"\u7EC4\u5408\u7C7B\u578B",diagnosisRow:"\u89E3\u6790\u5F53\u524D\u884C",conditionalFormatting:"\u6761\u4EF6\u683C\u5F0F",adaptiveCol:"\u81EA\u9002\u5E94\u5C55\u5F00\u5217",filterExpressions:(xs={},ta(ta(ta(ta(ta(ta(ta(ta(ta(ta(xs,ni.IsEqualTo,"\u7B49\u4E8E"),ni.IsGreaterThan,"\u5927\u4E8E"),ni.IsLessThan,"\u5C0F\u4E8E"),ni.IsStartsWith,"\u5F00\u5934\u662F"),ni.IsNotStartsWith,"\u5F00\u5934\u4E0D\u662F"),ni.IsEndsWith,"\u7ED3\u5C3E\u662F"),ni.IsNotEndsWith,"\u7ED3\u5C3E\u4E0D\u662F"),ni.Contains,"\u5305\u542B"),ni.DoesntContain,"\u4E0D\u5305\u542B"),ni.IsDateBefore,"\u5728\u65E5\u671F\u4E4B\u524D"),ta(xs,ni.IsDateAfter,"\u5728\u65E5\u671F\u4E4B\u540E")),backTop:"\u56DE\u5230\u9876\u90E8",backBottom:"\u76F4\u8FBE\u5E95\u90E8",deleteCell:"\u6E05\u9664\u5185\u5BB9",addRemark:"\u5907\u6CE8"}},$i=function(p){Ri=p},Io=function(p){var y=qi[Ri],w=(0,oe.get)(y,p);return!w||!(0,oe.isString)(w)?"":w},Oi=Io;function Ro(d){"@babel/helpers - typeof";return Ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},Ro(d)}function po(d,p,y){return p=jf(p),p in d?Object.defineProperty(d,p,{value:y,enumerable:!0,configurable:!0,writable:!0}):d[p]=y,d}function Jo(){return typeof Reflect!="undefined"&&Reflect.get?Jo=Reflect.get.bind():Jo=function(p,y,w){var I=bl(p,y);if(I){var P=Object.getOwnPropertyDescriptor(I,y);return P.get?P.get.call(arguments.length<3?p:w):P.value}},Jo.apply(this,arguments)}function bl(d,p){for(;!Object.prototype.hasOwnProperty.call(d,p)&&(d=oo(d),d!==null););return d}function wl(d,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(p&&p.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),Object.defineProperty(d,"prototype",{writable:!1}),p&&Pu(d,p)}function Pu(d,p){return Pu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,I){return w.__proto__=I,w},Pu(d,p)}function Fs(d){var p=Md();return function(){var w=oo(d),I;if(p){var P=oo(this).constructor;I=Reflect.construct(w,arguments,P)}else I=w.apply(this,arguments);return Ed(this,I)}}function Ed(d,p){if(p&&(Ro(p)==="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ev(d)}function Ev(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function Md(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(d){return!1}}function oo(d){return oo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(y){return y.__proto__||Object.getPrototypeOf(y)},oo(d)}function xl(d,p){if(!(d instanceof p))throw new TypeError("Cannot call a class as a function")}function Mv(d,p){for(var y=0;ythis.operand}}]),y}(Xt),xi=function(d){wl(y,d);var p=Fs(y);function y(){var w;xl(this,y);for(var I=arguments.length,P=new Array(I),N=0;N0&&(N=N.filter(function(_e){return!J.includes(_e)})),this.options.version!==void 0&&(N=N.filter(function(_e){var Se=tu.findExposeMetadata(p,_e);return!Se||!Se.options?!0:I.checkVersion(Se.options.since,Se.options.until)})),this.options.groups&&this.options.groups.length?N=N.filter(function(_e){var Se=tu.findExposeMetadata(p,_e);return!Se||!Se.options?!0:I.checkGroups(Se.options.groups)}):N=N.filter(function(_e){var Se=tu.findExposeMetadata(p,_e);return!Se||!Se.options||!Se.options.groups||!Se.options.groups.length})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(N=N.filter(function(ue){return I.options.excludePrefixes.every(function(_e){return ue.substr(0,_e.length)!==_e})})),N=N.filter(function(ue,_e,Se){return Se.indexOf(ue)===_e}),N},d.prototype.checkVersion=function(p,y){var w=!0;return w&&p&&(w=this.options.version>=p),w&&y&&(w=this.options.version=d.length?{done:!0}:{done:!1,value:d[w++]}},e:function(J){throw J},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 P=!0,N=!1,$;return{s:function(){y=y.call(d)},n:function(){var J=y.next();return P=J.done,J},e:function(J){N=!0,$=J},f:function(){try{!P&&y.return!=null&&y.return()}finally{if(N)throw $}}}}function La(d,p){if(d){if(typeof d=="string")return Rd(d,p);var y=Object.prototype.toString.call(d).slice(8,-1);if(y==="Object"&&d.constructor&&(y=d.constructor.name),y==="Map"||y==="Set")return Array.from(d);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return Rd(d,p)}}function Rd(d,p){(p==null||p>d.length)&&(p=d.length);for(var y=0,w=new Array(p);yd.length)&&(p=d.length);for(var y=0,w=new Array(p);yut?1:QeHe?1:jeWt?1:ytHe?1:je_e?1:ue<_e?-1:0}):p.dataCfg.types[I]===pi.Date?(0,oe.orderBy)(w,[function(N){var $;return lo()(($=N==null?void 0:N[I])!==null&&$!==void 0?$:0)}],[P.toLocaleLowerCase()]):w.sort(function(N,$){var V,J,ue=(V=N[I])!==null&&V!==void 0?V:"",_e=(J=$[I])!==null&&J!==void 0?J:"",Se=Ce.Xzc.ASC===P?ue:_e,Qe=Ce.Xzc.ASC===P?_e:ue,ut=/^\d*[\.]?\d*$/,je=/[a-zA-Z]/;if(ut.test(Se)&&ut.test(Qe)){var He=Wc(Se),gt=Wc(Qe);return He>gt?1:HeQe?1:Se=p?d.call(null):I.id=requestAnimationFrame(w)}var I={id:requestAnimationFrame(w)};return I}var Qf=-1;function Jf(d){if(d===void 0&&(d=!1),Qf===-1||d){var p=document.createElement("div"),y=p.style;y.width="50px",y.height="50px",y.overflow="scroll",document.body.appendChild(p),Qf=p.offsetWidth-p.clientWidth,document.body.removeChild(p)}return Qf}var Di=null;function Pd(d){if(d===void 0&&(d=!1),Di===null||d){var p=document.createElement("div"),y=p.style;y.width="50px",y.height="50px",y.overflow="scroll",y.direction="rtl";var w=document.createElement("div"),I=w.style;return I.width="100px",I.height="100px",p.appendChild(w),document.body.appendChild(p),p.scrollLeft>0?Di="positive-descending":(p.scrollLeft=1,p.scrollLeft===0?Di="negative":Di="positive-ascending"),document.body.removeChild(p),Di}return Di}var Z1=150,K1=function(p){var y=p.columnIndex,w=p.data,I=p.rowIndex;return I+":"+y},Ax=null,Gc=null,Yy=null;function Bd(d){var p,y=d.getColumnOffset,w=d.getColumnStartIndexForOffset,I=d.getColumnStopIndexForStartIndex,P=d.getColumnWidth,N=d.getEstimatedTotalHeight,$=d.getEstimatedTotalWidth,V=d.getOffsetForColumnAndAlignment,J=d.getOffsetForRowAndAlignment,ue=d.getRowHeight,_e=d.getRowOffset,Se=d.getRowStartIndexForOffset,Qe=d.getRowStopIndexForStartIndex,ut=d.initInstanceProps,je=d.shouldResetStyleCacheOnItemSizeChange,He=d.validateProps;return p=function(gt){(0,_n.Z)(Mt,gt);function Mt(Wt){var Ye;return Ye=gt.call(this,Wt)||this,Ye._instanceProps=ut(Ye.props,(0,Yv.Z)(Ye)),Ye._resetIsScrollingTimeoutId=null,Ye._outerRef=void 0,Ye.state={instance:(0,Yv.Z)(Ye),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:typeof Ye.props.initialScrollLeft=="number"?Ye.props.initialScrollLeft:0,scrollTop:typeof Ye.props.initialScrollTop=="number"?Ye.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},Ye._callOnItemsRendered=void 0,Ye._callOnItemsRendered=(0,Ld.Z)(function(_t,vt,At,Kt,hr,Hr,sn,on){return Ye.props.onItemsRendered({overscanColumnStartIndex:_t,overscanColumnStopIndex:vt,overscanRowStartIndex:At,overscanRowStopIndex:Kt,visibleColumnStartIndex:hr,visibleColumnStopIndex:Hr,visibleRowStartIndex:sn,visibleRowStopIndex:on})}),Ye._callOnScroll=void 0,Ye._callOnScroll=(0,Ld.Z)(function(_t,vt,At,Kt,hr){return Ye.props.onScroll({horizontalScrollDirection:At,scrollLeft:_t,scrollTop:vt,verticalScrollDirection:Kt,scrollUpdateWasRequested:hr})}),Ye._getItemStyle=void 0,Ye._getItemStyle=function(_t,vt){var At=Ye.props,Kt=At.columnWidth,hr=At.direction,Hr=At.rowHeight,sn=Ye._getItemStyleCache(je&&Kt,je&&hr,je&&Hr),on=_t+":"+vt,rn;if(sn.hasOwnProperty(on))rn=sn[on];else{var hn=y(Ye.props,vt,Ye._instanceProps),it=hr==="rtl";sn[on]=rn={position:"absolute",left:it?void 0:hn,right:it?hn:void 0,top:_e(Ye.props,_t,Ye._instanceProps),height:ue(Ye.props,_t,Ye._instanceProps),width:P(Ye.props,vt,Ye._instanceProps)}}return rn},Ye._getItemStyleCache=void 0,Ye._getItemStyleCache=(0,Ld.Z)(function(_t,vt,At){return{}}),Ye._onScroll=function(_t){var vt=_t.currentTarget,At=vt.clientHeight,Kt=vt.clientWidth,hr=vt.scrollLeft,Hr=vt.scrollTop,sn=vt.scrollHeight,on=vt.scrollWidth;Ye.setState(function(rn){if(rn.scrollLeft===hr&&rn.scrollTop===Hr)return null;var hn=Ye.props.direction,it=hr;if(hn==="rtl")switch(Pd()){case"negative":it=-hr;break;case"positive-descending":it=on-Kt-hr;break}it=Math.max(0,Math.min(it,on-Kt));var $e=Math.max(0,Math.min(Hr,sn-At));return{isScrolling:!0,horizontalScrollDirection:rn.scrollLeftrn?ft:0,Wr=sr>sn?ft:0;this.scrollTo({scrollLeft:At!==void 0?V(this.props,At,vt,it,this._instanceProps,Wr):it,scrollTop:Kt!==void 0?J(this.props,Kt,vt,$e,this._instanceProps,_r):$e})},yt.componentDidMount=function(){var Ye=this.props,_t=Ye.initialScrollLeft,vt=Ye.initialScrollTop;if(this._outerRef!=null){var At=this._outerRef;typeof _t=="number"&&(At.scrollLeft=_t),typeof vt=="number"&&(At.scrollTop=vt)}this._callPropsCallbacks()},yt.componentDidUpdate=function(){var Ye=this.props.direction,_t=this.state,vt=_t.scrollLeft,At=_t.scrollTop,Kt=_t.scrollUpdateWasRequested;if(Kt&&this._outerRef!=null){var hr=this._outerRef;if(Ye==="rtl")switch(Pd()){case"negative":hr.scrollLeft=-vt;break;case"positive-ascending":hr.scrollLeft=vt;break;default:var Hr=hr.clientWidth,sn=hr.scrollWidth;hr.scrollLeft=sn-Hr-vt;break}else hr.scrollLeft=Math.max(0,vt);hr.scrollTop=Math.max(0,At)}this._callPropsCallbacks()},yt.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&ka(this._resetIsScrollingTimeoutId)},yt.render=function(){var Ye=this.props,_t=Ye.children,vt=Ye.className,At=Ye.columnCount,Kt=Ye.direction,hr=Ye.height,Hr=Ye.innerRef,sn=Ye.innerElementType,on=Ye.innerTagName,rn=Ye.itemData,hn=Ye.itemKey,it=hn===void 0?K1:hn,$e=Ye.outerElementType,ft=Ye.outerTagName,sr=Ye.rowCount,gr=Ye.style,_r=Ye.useIsScrolling,Wr=Ye.width,$r=this.state.isScrolling,Zr=this._getHorizontalRangeToRender(),Wn=Zr[0],pn=Zr[1],xn=this._getVerticalRangeToRender(),Hi=xn[0],ua=xn[1],ii=[];if(At>0&&sr)for(var va=Hi;va<=ua;va++)for(var Ja=Wn;Ja<=pn;Ja++)ii.push((0,re.createElement)(_t,{columnIndex:Ja,data:rn,isScrolling:_r?$r:void 0,key:it({columnIndex:Ja,data:rn,rowIndex:va}),rowIndex:va,style:this._getItemStyle(va,Ja)}));var jo=N(this.props,this._instanceProps),ao=$(this.props,this._instanceProps);return(0,re.createElement)($e||ft||"div",{className:vt,onScroll:this._onScroll,ref:this._outerRefSetter,style:(0,So.Z)({position:"relative",height:hr,width:Wr,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:Kt},gr)},(0,re.createElement)(sn||on||"div",{children:ii,ref:Hr,style:{height:jo,pointerEvents:$r?"none":void 0,width:ao}}))},yt._callPropsCallbacks=function(){var Ye=this.props,_t=Ye.columnCount,vt=Ye.onItemsRendered,At=Ye.onScroll,Kt=Ye.rowCount;if(typeof vt=="function"&&_t>0&&Kt>0){var hr=this._getHorizontalRangeToRender(),Hr=hr[0],sn=hr[1],on=hr[2],rn=hr[3],hn=this._getVerticalRangeToRender(),it=hn[0],$e=hn[1],ft=hn[2],sr=hn[3];this._callOnItemsRendered(Hr,sn,it,$e,on,rn,ft,sr)}if(typeof At=="function"){var gr=this.state,_r=gr.horizontalScrollDirection,Wr=gr.scrollLeft,$r=gr.scrollTop,Zr=gr.scrollUpdateWasRequested,Wn=gr.verticalScrollDirection;this._callOnScroll(Wr,$r,_r,Wn,Zr)}},yt._getHorizontalRangeToRender=function(){var Ye=this.props,_t=Ye.columnCount,vt=Ye.overscanColumnCount,At=Ye.overscanColumnsCount,Kt=Ye.overscanCount,hr=Ye.rowCount,Hr=this.state,sn=Hr.horizontalScrollDirection,on=Hr.isScrolling,rn=Hr.scrollLeft,hn=vt||At||Kt||1;if(_t===0||hr===0)return[0,0,0,0];var it=w(this.props,rn,this._instanceProps),$e=I(this.props,it,rn,this._instanceProps),ft=!on||sn==="backward"?Math.max(1,hn):1,sr=!on||sn==="forward"?Math.max(1,hn):1;return[Math.max(0,it-ft),Math.max(0,Math.min(_t-1,$e+sr)),it,$e]},yt._getVerticalRangeToRender=function(){var Ye=this.props,_t=Ye.columnCount,vt=Ye.overscanCount,At=Ye.overscanRowCount,Kt=Ye.overscanRowsCount,hr=Ye.rowCount,Hr=this.state,sn=Hr.isScrolling,on=Hr.verticalScrollDirection,rn=Hr.scrollTop,hn=At||Kt||vt||1;if(_t===0||hr===0)return[0,0,0,0];var it=Se(this.props,rn,this._instanceProps),$e=Qe(this.props,it,rn,this._instanceProps),ft=!sn||on==="backward"?Math.max(1,hn):1,sr=!sn||on==="forward"?Math.max(1,hn):1;return[Math.max(0,it-ft),Math.max(0,Math.min(hr-1,$e+sr)),it,$e]},Mt}(re.PureComponent),p.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},p}var b0=function(p,y){var w=p.children,I=p.direction,P=p.height,N=p.innerTagName,$=p.outerTagName,V=p.overscanColumnsCount,J=p.overscanCount,ue=p.overscanRowsCount,_e=p.width,Se=y.instance},w0=50,jv=function(p,y){var w=p.rowCount,I=y.rowMetadataMap,P=y.estimatedRowHeight,N=y.lastMeasuredRowIndex,$=0;if(N>=w&&(N=w-1),N>=0){var V=I[N];$=V.offset+V.size}var J=w-N-1,ue=J*P;return $+ue},jy=function(p,y){var w=p.columnCount,I=y.columnMetadataMap,P=y.estimatedColumnWidth,N=y.lastMeasuredColumnIndex,$=0;if(N>=w&&(N=w-1),N>=0){var V=I[N];$=V.offset+V.size}var J=w-N-1,ue=J*P;return $+ue},vc=function(p,y,w,I){var P,N,$;if(p==="column"?(P=I.columnMetadataMap,N=y.columnWidth,$=I.lastMeasuredColumnIndex):(P=I.rowMetadataMap,N=y.rowHeight,$=I.lastMeasuredRowIndex),w>$){var V=0;if($>=0){var J=P[$];V=J.offset+J.size}for(var ue=$+1;ue<=w;ue++){var _e=N(ue);P[ue]={offset:V,size:_e},V+=_e}p==="column"?I.lastMeasuredColumnIndex=w:I.lastMeasuredRowIndex=w}return P[w]},Vv=function(p,y,w,I){var P,N;p==="column"?(P=w.columnMetadataMap,N=w.lastMeasuredColumnIndex):(P=w.rowMetadataMap,N=w.lastMeasuredRowIndex);var $=N>0?P[N].offset:0;return $>=I?Vy(p,y,w,N,0,I):zu(p,y,w,Math.max(0,N),I)},Vy=function(p,y,w,I,P,N){for(;P<=I;){var $=P+Math.floor((I-P)/2),V=vc(p,y,$,w).offset;if(V===N)return $;VN&&(I=$-1)}return P>0?P-1:0},zu=function(p,y,w,I,P){for(var N=p==="column"?y.columnCount:y.rowCount,$=1;I=Se-V&&P<=_e+V?I="auto":I="center"),I){case"start":return _e;case"end":return Se;case"center":return Math.round(Se+(_e-Se)/2);case"auto":default:return P>=Se&&P<=_e?P:Se>_e||P_t.clientWidth?Jf():0:Ye=_t.scrollHeight>_t.clientHeight?Jf():0}this.scrollTo(P(this.props,je,He,Wt,this._instanceProps,Ye))},Qe.componentDidMount=function(){var je=this.props,He=je.direction,gt=je.initialScrollOffset,Mt=je.layout;if(typeof gt=="number"&&this._outerRef!=null){var yt=this._outerRef;He==="horizontal"||Mt==="horizontal"?yt.scrollLeft=gt:yt.scrollTop=gt}this._callPropsCallbacks()},Qe.componentDidUpdate=function(){var je=this.props,He=je.direction,gt=je.layout,Mt=this.state,yt=Mt.scrollOffset,Wt=Mt.scrollUpdateWasRequested;if(Wt&&this._outerRef!=null){var Ye=this._outerRef;if(He==="horizontal"||gt==="horizontal")if(He==="rtl")switch(Pd()){case"negative":Ye.scrollLeft=-yt;break;case"positive-ascending":Ye.scrollLeft=yt;break;default:var _t=Ye.clientWidth,vt=Ye.scrollWidth;Ye.scrollLeft=vt-_t-yt;break}else Ye.scrollLeft=yt;else Ye.scrollTop=yt}this._callPropsCallbacks()},Qe.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&ka(this._resetIsScrollingTimeoutId)},Qe.render=function(){var je=this.props,He=je.children,gt=je.className,Mt=je.direction,yt=je.height,Wt=je.innerRef,Ye=je.innerElementType,_t=je.innerTagName,vt=je.itemCount,At=je.itemData,Kt=je.itemKey,hr=Kt===void 0?ru:Kt,Hr=je.layout,sn=je.outerElementType,on=je.outerTagName,rn=je.style,hn=je.useIsScrolling,it=je.width,$e=this.state.isScrolling,ft=Mt==="horizontal"||Hr==="horizontal",sr=ft?this._onScrollHorizontal:this._onScrollVertical,gr=this._getRangeToRender(),_r=gr[0],Wr=gr[1],$r=[];if(vt>0)for(var Zr=_r;Zr<=Wr;Zr++)$r.push((0,re.createElement)(He,{data:At,key:hr(Zr,At),index:Zr,isScrolling:hn?$e:void 0,style:this._getItemStyle(Zr)}));var Wn=w(this.props,this._instanceProps);return(0,re.createElement)(sn||on||"div",{className:gt,onScroll:sr,ref:this._outerRefSetter,style:(0,So.Z)({position:"relative",height:yt,width:it,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:Mt},rn)},(0,re.createElement)(Ye||_t||"div",{children:$r,ref:Wt,style:{height:ft?"100%":Wn,pointerEvents:$e?"none":void 0,width:ft?Wn:"100%"}}))},Qe._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var je=this.props.itemCount;if(je>0){var He=this._getRangeToRender(),gt=He[0],Mt=He[1],yt=He[2],Wt=He[3];this._callOnItemsRendered(gt,Mt,yt,Wt)}}if(typeof this.props.onScroll=="function"){var Ye=this.state,_t=Ye.scrollDirection,vt=Ye.scrollOffset,At=Ye.scrollUpdateWasRequested;this._callOnScroll(_t,vt,At)}},Qe._getRangeToRender=function(){var je=this.props,He=je.itemCount,gt=je.overscanCount,Mt=this.state,yt=Mt.isScrolling,Wt=Mt.scrollDirection,Ye=Mt.scrollOffset;if(He===0)return[0,0,0,0];var _t=N(this.props,Ye,this._instanceProps),vt=$(this.props,_t,Ye,this._instanceProps),At=!yt||Wt==="backward"?Math.max(1,gt):1,Kt=!yt||Wt==="forward"?Math.max(1,gt):1;return[Math.max(0,_t-At),Math.max(0,Math.min(He-1,vt+Kt)),_t,vt]},Se}(re.PureComponent),p.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},p}var J1=function(p,y){var w=p.children,I=p.direction,P=p.height,N=p.layout,$=p.innerTagName,V=p.outerTagName,J=p.width,ue=y.instance;if(0)var _e},Xy=50,eh=function(p,y,w){var I=p,P=I.itemSize,N=w.itemMetadataMap,$=w.lastMeasuredIndex;if(y>$){var V=0;if($>=0){var J=N[$];V=J.offset+J.size}for(var ue=$+1;ue<=y;ue++){var _e=P(ue);N[ue]={offset:V,size:_e},V+=_e}w.lastMeasuredIndex=y}return N[y]},eb=function(p,y,w){var I=y.itemMetadataMap,P=y.lastMeasuredIndex,N=P>0?I[P].offset:0;return N>=w?Zy(p,y,P,0,w):Wu(p,y,Math.max(0,P),w)},Zy=function(p,y,w,I,P){for(;I<=w;){var N=I+Math.floor((w-I)/2),$=eh(p,N,y).offset;if($===P)return N;$P&&(w=N-1)}return I>0?I-1:0},Wu=function(p,y,w,I){for(var P=p.itemCount,N=1;w=w&&(N=w-1),N>=0){var V=I[N];$=V.offset+V.size}var J=w-N-1,ue=J*P;return $+ue},tb=Fd({getItemOffset:function(p,y,w){return eh(p,y,w).offset},getItemSize:function(p,y,w){return w.itemMetadataMap[y].size},getEstimatedTotalSize:S0,getOffsetForIndexAndAlignment:function(p,y,w,I,P,N){var $=p.direction,V=p.height,J=p.layout,ue=p.width,_e=$==="horizontal"||J==="horizontal",Se=_e?ue:V,Qe=eh(p,y,P),ut=S0(p,P),je=Math.max(0,Math.min(ut-Se,Qe.offset)),He=Math.max(0,Qe.offset-Se+Qe.size+N);switch(w==="smart"&&(I>=He-Se&&I<=je+Se?w="auto":w="center"),w){case"start":return je;case"end":return He;case"center":return Math.round(He+(je-He)/2);case"auto":default:return I>=He&&I<=je?I:I=Se-J&&I<=_e+J?w="auto":w="center"),w){case"start":return _e;case"end":return Se;case"center":var Qe=Math.round(Se+(_e-Se)/2);return Qeue+Math.floor(J/2)?ue:Qe;case"auto":default:return I>=Se&&I<=_e?I:Se>_e||I=Se-V&&I<=_e+V?w="auto":w="center"),w){case"start":return _e;case"end":return Se;case"center":var Qe=Math.round(Se+(_e-Se)/2);return Qeue+Math.floor(V/2)?ue:Qe;case"auto":default:return I>=Se&&I<=_e?I:Se>_e||I=gt-ut&&I<=He+ut?w="auto":w="center"),w){case"start":return He;case"end":return gt;case"center":{var Mt=Math.round(gt+(He-gt)/2);return Mtje+Math.floor(ut/2)?je:Mt}case"auto":default:return I>=gt&&I<=He?I:I0?[re.createElement("span",{className:"highlight",key:ue},$[ue-1]),J]:J});return re.createElement("span",{className:P},V)},Zv=Xv,Nd;function Kh(d){"@babel/helpers - typeof";return Kh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},Kh(d)}function Kv(d,p){var y=Object.keys(d);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(d);p&&(w=w.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),y.push.apply(y,w)}return y}function _s(d){for(var p=1;pd.length)&&(p=d.length);for(var y=0,w=new Array(p);y= ").concat(y)},M0=(Nd={},Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Nd,so.IsInValues,{toFunc:function(p){return function(y,w){var I;return p==null||(I=p.value)===null||I===void 0?void 0:I.includes(y[w])}},toSQL:function(p,y){return"".concat(p," IN (").concat((y.value||[]).map(function(w){return"'".concat(go(w),"'")}).join(","),")")},toSQLJson:function(p,y){return{column:p,operator:"in",value:(y.value||[]).map(function(w){return go(w)}),type:"string"}}}),so.IsEqualTo,{toSQL:function(p,y){return"".concat(p," = '").concat(go(y.value),"'")},toFunc:function(p){return function(y,w){return(0,oe.toString)(p==null?void 0:p.value)===(0,oe.toString)(y[w])}},toSQLJson:function(p,y){return{column:p,operator:"equal",value:go(y.value),type:"string"}}}),so.IsStartsWith,{toSQL:function(p,y){return"".concat(p," LIKE '").concat(go(y.value),"%'")},toFunc:function(p){return function(y,w){return(0,oe.toString)(y[w]).startsWith((0,oe.toString)(p.value))}},toSQLJson:function(p,y){return{column:p,operator:"likestart",value:go(y.value),type:"string"}}}),so.IsEndsWith,{toSQL:function(p,y){return"".concat(p," LIKE '%").concat(go(y.value),"'")},toFunc:function(p){return function(y,w){return(0,oe.toString)(y[w]).endsWith((0,oe.toString)(p.value))}},toSQLJson:function(p,y){return{column:p,operator:"likeend",value:go(y.value),type:"string"}}}),so.IsNotStartsWith,{toSQL:function(p,y){return"".concat(p," NOT LIKE '").concat(go(y.value),"%'")},toFunc:function(p){return function(y,w){return!(0,oe.toString)(y[w]).startsWith((0,oe.toString)(p.value))}},toSQLJson:function(p,y){return{column:p,operator:"notlikestart",value:go(y.value),type:"string"}}}),so.IsNotEndsWith,{toSQL:function(p,y){return"".concat(p," NOT LIKE '%").concat(go(y.value),"'")},toFunc:function(p){return function(y,w){return!(0,oe.toString)(y[w]).endsWith((0,oe.toString)(p.value))}},toSQLJson:function(p,y){return{column:p,operator:"notlikeend",value:go(y.value),type:"string"}}}),so.Contains,{toSQL:function(p,y){return"".concat(p," LIKE '%").concat(go(y.value),"%'")},toFunc:function(p){return function(y,w){return(0,oe.toString)(y[w]).includes((0,oe.toString)(p.value))}},toSQLJson:function(p,y){return{column:p,operator:"like",value:go(y.value),type:"string"}}}),so.DoesntContain,{toSQL:function(p,y){return"".concat(p," NOT LIKE '%").concat(go(y.value),"%'")},toFunc:function(p){return function(y,w){return!(0,oe.toString)(y[w]).includes((0,oe.toString)(p.value))}},toSQLJson:function(p,y){return{column:p,operator:"notlike",value:go(y.value),type:"string"}}}),so.IsNotEqualTo,{toSQL:function(p,y){return"".concat(p," <> '").concat(go(y.value),"'")},toFunc:function(p){return function(y,w){return(0,oe.toString)(p.value)!==(0,oe.toString)(y[w])}},toSQLJson:function(p,y){return{column:p,operator:"notequal",value:go(y.value),type:"string"}}}),so.IsDate,{toSQL:function(p,y){var w=lo()(y.value).format("YYYYMMDD");return"".concat(p," IS ").concat(w)},toFunc:function(p){return function(y,w){return lo()(y[w]).isSame(p.value,"day")}},toSQLJson:function(p,y){return{column:p,operator:"equal",value:lo()(y.value).format("YYYYMMDD"),type:"datetime"}}}),Ti(Ti(Ti(Nd,so.IsBetweenDate,{toSQL:function(p,y){var w=lo()(y.value[0]).format("YYYYMMDD"),I=lo()(y.value[1]).format("YYYYMMDD");return Qy(p,w,I)},toFunc:function(p){return function(y,w){return lo()(y[w]).isSameOrAfter(p.value[0],"day")&&lo()(y[w]).isSameOrBefore(p.value[1],"day")}},toSQLJson:function(p,y){return{column:p,operator:"between",value:[lo()(y.value[0]).format("YYYYMMDD"),lo()(y.value[1]).format("YYYYMMDD")],type:"datetime"}}}),so.IsTextDate,{toSQL:function(p,y){var w=lo()(y.value).format("YYYYMMDD");return"".concat(p," IS ").concat(w)},toFunc:function(p){return function(y,w){return lo()(y[w]).isSame(p.value,"day")}},toSQLJson:function(p,y){return{column:p,operator:"equal",value:lo()(y.value).format("YYYYMMDD"),type:"datetime"}}}),so.IsBetween,{toSQL:function(p,y){var w=y.value,I=w.min,P=w.max;return Qy(p,I,P)},toFunc:function(p){var y=p.value,w=y.min,I=y.max;return function(P,N){var $=P[N];return!isNaN(Number(w))&&!isNaN(Number(I))?$>=w&&$<=I:isNaN(Number(w))?isNaN(Number(I))?!0:$<=I:$>=w}},toSQLJson:function(p,y){return{column:p,operator:"between",value:[y.value.min,y.value.max],type:"double"}}})),ja=function(d){return d.RangeSelect="RangeSelect",d.ValueSelect="ValueSelect",d.ConditionSelect="ConditionSelect",d.DateSelect="DateSelect",d}(ja||{}),I_=[{key:ja.RangeSelect,value:"\u8303\u56F4\u7B5B\u9009"},{key:ja.ValueSelect,value:"\u9009\u503C\u7B5B\u9009"}],R_=[{key:ja.ValueSelect,value:"\u9009\u503C\u7B5B\u9009"},{key:ja.ConditionSelect,value:"\u6761\u4EF6\u7B5B\u9009"}],No=[{key:ja.RangeSelect,value:"\u8303\u56F4\u7B5B\u9009"},{key:ja.DateSelect,value:"\u65F6\u95F4\u7B5B\u9009"}],qv=function(){return!0},rb=function(p){var y=Object.keys(p);if(y.length===0)return qv;var w=y.map(function(I){var P=p[I].filterLogic;if(!P||!P.type)return qv;try{var N=M0[P.type],$=N.toFunc(P);return function(V){return $(V,I)}}catch(V){return console.error(V),qv}});return function(I){return!w.some(function(P){return!P(I)})}},mc=[{value:"IsEqualTo",label:"\u7B49\u4E8E"},{value:"IsNotEqualTo",label:"\u4E0D\u7B49\u4E8E"},{value:"Contains",label:"\u5305\u542B"},{value:"DoesntContain",label:"\u4E0D\u5305\u542B"},{value:"IsStartsWith",label:"\u5F00\u5934\u662F"},{value:"IsEndsWith",label:"\u7ED3\u5C3E\u662F"},{value:"IsNotStartsWith",label:"\u5F00\u5934\u4E0D\u662F"},{value:"IsNotEndsWith",label:"\u7ED3\u5C3E\u4E0D\u662F"}],Rx=function(p){var y,w=p.checkboxValue,I=p.setCheckboxValue,P=p.fieldName,N=lr(),$=N.spreadsheet,V=(0,re.useState)(""),J=se(V,2),ue=J[0],_e=J[1],Se=$==null||(y=$.dataCfg)===null||y===void 0||(y=y.data)===null||y===void 0||(y=y.filter(function(ut){var je;return(je=String(ut==null?void 0:ut[P]))===null||je===void 0?void 0:je.includes(ue)}))===null||y===void 0?void 0:y.map(function(ut){return String(ut==null?void 0:ut[P])}),Qe=["ALL"].concat(qh(new Set(Se)));return ie().createElement("div",{className:"sort-content-numselect"},ie().createElement(Zt.Input,{prefix:ie().createElement(Te,{type:"dataphin-icon anticon icon-sousuojiedian"}),onChange:function(je){_e(je.target.value)},placeholder:"\u641C\u7D22",value:ue}),ie().createElement(ng,{className:"list",height:200,width:"100%",itemCount:Qe.length,itemSize:32,itemData:Qe},function(ut){var je,He=ut.index,gt=ut.style,Mt=ut.data,yt=(je=Mt[He])!==null&&je!==void 0?je:"";return ie().createElement("div",{style:_s(_s({},gt),{},{paddingLeft:"2em"}),className:"listItem"},He===0?ie().createElement(Zt.Checkbox,{className:"checkboxItem",checked:w.length===Mt.length-1,onChange:function(){w.length===Mt.length-1?I([]):I(Mt.slice(1))}},ie().createElement(Zv,{className:"sort-content-numselect-text",text:"\u5168\u9009",keyword:ue})):ie().createElement(Zt.Checkbox,{className:"checkboxItem",checked:w.includes(Mt[He]),onChange:function(Ye){I(function(_t){return _t.includes(Mt[He])?_t.filter(function(vt){return vt!==Mt[He]}):[].concat(qh(_t),[Mt[He]])})}},ie().createElement(Zv,{className:"sort-content-numselect-text",text:Mt[He],keyword:ue})))}))},D_=function(p){switch(p){case pi.String:return ja.ValueSelect;case pi.Date:return ja.RangeSelect;case pi.Number:return ja.RangeSelect;default:return ja.ValueSelect}};function L_(d){var p,y,w=d.params,I=d.onCancel,P=d.resolver,N=lr(),$=N.spreadsheet,V=N.commandManager,J=N.theme,ue=Kc(w.x,w.y,320,417),_e=Rl(gi.m.MODIFYCOLCONFIG,V).colConfigs[w.fieldName],Se=function(Vi){var ma,Xi,Ga=_e==null||(ma=_e.filterLogic)===null||ma===void 0?void 0:ma.type;if(Ga===so.IsInValues&&Vi===ja.ValueSelect||Ga===so.IsBetween&&Vi===ja.RangeSelect||Ga===so.IsBetweenDate&&Vi===ja.RangeSelect||Ga===so.IsDate&&Vi===ja.DateSelect||Ga===so.IsTextDate&&Vi===so.IsTextDate){var bo;return _e==null||(bo=_e.filterLogic)===null||bo===void 0?void 0:bo.value}if(mc!=null&&(Xi=mc.map(function(Ls){return Ls.value}))!==null&&Xi!==void 0&&Xi.includes(Ga)&&Vi===ja.ConditionSelect){var gl;return{if:Ga,value:_e==null||(gl=_e.filterLogic)===null||gl===void 0?void 0:gl.value}}},Qe=(_e==null?void 0:_e.contentType)||pi.String,ut=(0,re.useState)((_e==null||(p=_e.filterLogic)===null||p===void 0?void 0:p.radioType)||D_(Qe)),je=se(ut,2),He=je[0],gt=je[1],Mt=(0,re.useState)((_e==null||(y=_e.filterLogic)===null||y===void 0?void 0:y.type)===so.IsTextDate),yt=se(Mt,2),Wt=yt[0],Ye=yt[1],_t=(0,re.useState)(Se(so.IsTextDate)||""),vt=se(_t,2),At=vt[0],Kt=vt[1],hr=(0,re.useState)(Se(ja.ValueSelect)||[]),Hr=se(hr,2),sn=Hr[0],on=Hr[1],rn=(0,re.useState)(Se(ja.RangeSelect)||{min:void 0,max:void 0}),hn=se(rn,2),it=hn[0],$e=hn[1],ft=(0,re.useState)(Se(ja.ConditionSelect)||{if:"IsEqualTo",value:""}),sr=se(ft,2),gr=sr[0],_r=sr[1],Wr=(0,re.useState)(Se(ja.RangeSelect)||[]),$r=se(Wr,2),Zr=$r[0],Wn=$r[1],pn=(0,re.useState)(Se(ja.DateSelect)||""),xn=se(pn,2),Hi=xn[0],ua=xn[1],ii=function(){return Qe===pi.Number?I_:Qe===pi.Date?No:R_},va=(0,re.useRef)(),Ja=function(){if(He===ja.ValueSelect)return{type:so.IsInValues,value:sn};if(He===ja.ConditionSelect)return{type:gr.if,value:gr.value};if(He===ja.RangeSelect&&Qe===pi.Number)return{type:so.IsBetween,value:it};if(He===ja.RangeSelect&&Qe===pi.Date)return{type:Wt?so.IsTextDate:so.IsBetweenDate,value:Wt?At:Zr};if(He===ja.DateSelect)return{type:Wt?so.IsTextDate:so.IsDate,value:Wt?At:Hi}},jo=function(){if(Qe===pi.Number){if(He===ja.RangeSelect)return ie().createElement("div",{className:"sort-content-numrange"},ie().createElement(Zt.InputNumber,{value:it.min,onChange:function(ma){$e({min:ma,max:it.max})},placeholder:"min\u503C"}),ie().createElement("span",{className:"sort-content-link"},"~"),ie().createElement(Zt.InputNumber,{value:it.max,onChange:function(ma){$e({min:it.min,max:ma})},placeholder:"max\u503C"}));if(He===ja.ValueSelect)return ie().createElement(Rx,{checkboxValue:sn,setCheckboxValue:on,fieldName:w==null?void 0:w.fieldName})}else if(Qe===pi.Date){if(He===ja.RangeSelect)return ie().createElement("div",{className:"sort-content-dateRange"},Wt?ie().createElement(Zt.Input,{value:At,onChange:function(ma){Kt(ma.target.value)},placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"}):ie().createElement(th,{value:Zr!=null&&Zr[0]?[gc?$c()(Zr==null?void 0:Zr[0],nu):lo()(Zr==null?void 0:Zr[0],nu),gc?$c()(Zr==null?void 0:Zr[1],nu):lo()(Zr==null?void 0:Zr[1],nu)]:[],onChange:function(ma,Xi){Wn(Xi)},placeholder:["\u9009\u62E9\u8D77\u59CB\u65E5\u671F","\u9009\u62E9\u7ED3\u675F\u65E5\u671F"],format:nu,getCalendarContainer:function(ma){return ma.parentElement},renderExtraFooter:function(){return ie().createElement("div",{className:"sort-content-dateRange-footer"},ie().createElement(Zt.Button,{onClick:I},"\u53D6\u6D88"),ie().createElement(Zt.Button,{type:"primary"},"\u786E\u8BA4"))}}),ie().createElement("span",{className:"sort-content-dateRange-link",onClick:function(){Ye(function(ma){return!ma})}},Wt?"\u9009\u62E9\u65E5\u671F":"\u6587\u672C\u8F93\u5165"));if(He===ja.DateSelect)return ie().createElement("div",{className:"sort-content-dateRange"},Wt?ie().createElement(Zt.Input,{value:At,onChange:function(ma){Kt(ma.target.value)},placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9"}):ie().createElement(Zt.DatePicker,{value:Hi&&lo()(Hi,nu),format:nu,onChange:function(ma,Xi){ua(Xi)},placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4"}),ie().createElement("span",{className:"sort-content-dateRange-link",onClick:function(){Ye(function(ma){return!ma})}},Wt?"\u9009\u62E9\u65E5\u671F":"\u6587\u672C\u8F93\u5165"))}else{if(He===ja.ValueSelect)return ie().createElement(Rx,{checkboxValue:sn,setCheckboxValue:on,fieldName:w==null?void 0:w.fieldName});if(He===ja.ConditionSelect)return ie().createElement("div",{className:"sort-content-textSelct"},ie().createElement(Zt.Select,{defaultValue:gr.if,onChange:function(ma){_r({if:ma,value:gr.value})},getPopupContainer:function(ma){return ma.parentNode}},mc==null?void 0:mc.map(function(Vi){return ie().createElement(Zt.Select.Option,{key:Vi.value},Vi.label)})),ie().createElement(Zt.Input,{value:gr.value,onChange:function(ma){var Xi;_r({if:gr.if,value:ma==null||(Xi=ma.target)===null||Xi===void 0?void 0:Xi.value})},placeholder:"\u8BF7\u8F93\u5165\u5185\u5BB9",style:{width:178,height:28}}))}};function ao(){V.commit({id:gi.m.MODIFYCOLCONFIG,params:{colId:w.fieldName,value:{filterLogic:{}}}}),P(!0)}return ie().createElement("div",{className:fe()("weave-sheetquery-sort-container",{dark:J==="dark"}),style:_s(_s({},ue),{},{width:320}),ref:va},ie().createElement(Zt.Radio.Group,{className:"sort-tab",value:He,onChange:function(Vi){return gt(Vi.target.value)},size:"small"},ii().map(function(Ya){return ie().createElement(Zt.Radio.Button,{value:Ya.key},Ya.value)})),ie().createElement("div",{className:"sort-content"},ie().createElement("div",{className:"sort-content-name"},"\u7B5B\u9009\u5B57\u6BB5\uFF1A",(w==null?void 0:w.fieldName)||""),jo()),ie().createElement("div",{className:"sort-bottom"},ie().createElement("div",{className:"left",onClick:ao},ie().createElement(Te,{type:"one-icon icon-shuaxin2 anticon-dpicon"}),"\u6E05\u9664\u7B5B\u9009"),ie().createElement("div",{className:"right"},ie().createElement(Zt.Button,{onClick:I},"\u53D6\u6D88"),ie().createElement(Zt.Button,{className:"sort-bottom-primary",type:"primary",onClick:function(){var Vi,ma;V.commit({id:gi.m.MODIFYCOLCONFIG,params:{colId:w.fieldName,value:{filterLogic:{radioType:He,type:(Vi=Ja())===null||Vi===void 0?void 0:Vi.type,value:(ma=Ja())===null||ma===void 0?void 0:ma.value}}}}),P(!0)}},"\u786E\u5B9A"))))}function rh(d){"@babel/helpers - typeof";return rh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},rh(d)}function nh(d){return O0(d)||Jy(d)||Hd(d)||T0()}function T0(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jy(d){if(typeof Symbol!="undefined"&&d[Symbol.iterator]!=null||d["@@iterator"]!=null)return Array.from(d)}function O0(d){if(Array.isArray(d))return ib(d)}function eC(d,p){return Dx(d)||P_(d,p)||Hd(d,p)||nb()}function nb(){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 Hd(d,p){if(d){if(typeof d=="string")return ib(d,p);var y=Object.prototype.toString.call(d).slice(8,-1);if(y==="Object"&&d.constructor&&(y=d.constructor.name),y==="Map"||y==="Set")return Array.from(d);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return ib(d,p)}}function ib(d,p){(p==null||p>d.length)&&(p=d.length);for(var y=0,w=new Array(p);y_t?1:Ye<_t?-1:0}:((je=d[_e])===null||je===void 0?void 0:je.contentType)===pi.Date?Qe=function(gt,Mt){var yt,Wt,Ye=lo()((yt=gt==null?void 0:gt[_e])!==null&&yt!==void 0?yt:0),_t=lo()((Wt=Mt==null?void 0:Mt[_e])!==null&&Wt!==void 0?Wt:0),vt=Ce.Xzc.ASC===Se?Ye:_t,At=Ce.Xzc.ASC===Se?_t:Ye;return vt>At?1:vtsn?1:HrAt?1:vtHe)return 1;if(jed.length)&&(p=d.length);for(var y=0,w=new Array(p);y-1){var _e=I.dataCfg.meta[ue].name;I.dataCfg.meta[ue].displayName=V,I.dataCfg.meta[ue].name=V;var Se=this.data.modify(J,{alias:V});return function(){I.dataCfg.meta[ue].displayName=_e,I.dataCfg.meta[ue].name=_e,N.data.modify(J,Se)}}}}],[{key:"transform",value:function(I){return new y(I)}}]),y}(Jl),Mb=sa(Go.prototype,"data",[ap],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),sa(Go,"transform",[_b],Object.getOwnPropertyDescriptor(Go,"transform"),Go),sa(Go.prototype,"renameCol",[Eb],Object.getOwnPropertyDescriptor(Go.prototype,"renameCol"),Go.prototype),Go))||$d)||$d),Vd=(Nl=(0,Fn.mY)(gi.m.REMOVECOL),bf=(0,Fn.wv)(),z0=(0,Fn.wx)(),fg=(0,Fn.MP)(),Nl(Ud=bf(Ud=(cl=function(d){Ys(y,d);var p=ga(y);function y(){return fl(this,y),p.apply(this,arguments)}return yi(y,[{key:"renameCol",value:function(I,P){var N=this._cmdObject.params.colId,$=P.columnTransformer.addPipe(function(V){var J=Yd(V),ue=J.findIndex(function(_e){return _e.name===N});return J.splice(ue,1),J});return $}}],[{key:"transform",value:function(I){return new y(I)}}]),y}(Jl),sa(cl,"transform",[z0],Object.getOwnPropertyDescriptor(cl,"transform"),cl),sa(cl.prototype,"renameCol",[fg],Object.getOwnPropertyDescriptor(cl.prototype,"renameCol"),cl.prototype),cl))||Ud)||Ud);function $0(d){"@babel/helpers - typeof";return $0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},$0(d)}var Rb,pg,Db,Lb,pC,gC,Xd,Ui,xf,nd,gg;function Vs(d,p,y,w){y&&Object.defineProperty(d,p,{enumerable:y.enumerable,configurable:y.configurable,writable:y.writable,value:y.initializer?y.initializer.call(w):void 0})}function mg(d,p){for(var y=0;y=0;P--)I[P].revert()}}else I.isRevertable()&&(this.current.pop(),this.future.push(I),I.revert());this.rerunTransformers(),this.spreadsheet.render(!0),this.emit(xa.undo,I)}}},{key:"redo",value:function(){if(this.future.length){this.spreadsheet.logger&&this.spreadsheet.logger(Ur.redo);var I=this.future.pop();Array.isArray(I)?this.commit(I.map(function(P){return P._cmdObject})):this.commit(I._cmdObject),this.rerunTransformers(),this.emit(xa.redo,I)}}},{key:"save",value:function(){var I=this.current.map(function(P){return Array.isArray(P)?P.map(function(N){return N.toJSON()}):P.toJSON()});return I}},{key:"markAllAsSynchronized",value:function(){this.current.forEach(function(I){Array.isArray(I)?I.forEach(function(P){P._cmdObject.synchronized=!0}):I._cmdObject.synchronized=!0})}},{key:"recover",value:function(I){var P=this,N=performance.now();try{for(var $=JSON.parse(I),V=-1,J=$.length-1;J>=0;J--)if(uo($[J])){V=J;break}for(var ue=function(){var Qe=_e===$.length-1,ut=_e<=V;_e===0&&(ea.k3.paused=!0),Qe&&(ea.k3.paused=!1);var je=$[_e],He=$[_e+1];if(uo(je))return 1;if(Array.isArray(je))je.forEach(function(Mt){if(Mt.params&&Mt.params[Fn.FL]){var yt=la.Z.modelCtors.get(Mt.params[Fn.FL]);Yp(yt,Mt.params,{}),Mt.params=Yp(yt,Mt.params,{})}uo(He)&&(Mt.rollbackId=He.recordId),ut&&(Mt.synchronized=!0)}),P.commit(je,!Qe);else{if(je.params&&je.params[Fn.FL]){var gt=la.Z.modelCtors.get(je.params[Fn.FL]);Yp(gt,je.params,{}),je.params=Yp(gt,je.params,{})}ut&&(je.synchronized=!0),uo(He)&&(je.rollbackId=He.recordId),P.commit(je,!Qe)}},_e=0;_e<$.length;_e++)ue();this.spreadsheet.logger(Ur.loadEdits,{elapsed:performance.now()-N}),this.emit(xa.recovered),this.dataTransformer.addPipe(function(Se){return Se}),this.spreadsheet.render()}catch(Se){console.error(Se);return}}}]),y}(dc.Z);function qd(d){"@babel/helpers - typeof";return qd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},qd(d)}function Qd(d,p){var y=Object.keys(d);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(d);p&&(w=w.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),y.push.apply(y,w)}return y}function Tl(d){for(var p=1;pd.length)&&(p=d.length);for(var y=0,w=new Array(p);y=Se&&ut=Se&&ut=ue?on=hn.x-At:w>=sn[1]&&wWt.start+$-1)rn=I.viewCellHeights.getCellOffsetY(Wt.start+y),rn=rn-hr;else if(y>=sn[3]&&yV?P.left=V+ue-w-20:P.left=p+ue,y+I>$?P.bottom=-(J-20):P.top=y+J,P},zb=function(p,y){return p.length?y.length?[p[0]].concat(X0(p.slice(1).filter(function(w){return y.includes(w[qs])}))):p:[]},Jd=function(p){return p.map(function(y,w){return Tl(Tl({},y),{},hl({},qs,w))})},Jx=function(p){return p.map(function(y,w){var I=Tl({},y);return delete I[ROW_ID_PROP],I})},mC=function(p,y,w,I){var P=p.find(function(V){return V[I]===y}),N=p.findIndex(function(V){return V[I]===w}),$=p.filter(function(V){return V[I]!==y});return $.splice(N,0,P),$},bc=function(p){return(p==null?void 0:p.map(function(y){return typeof y=="string"?y:y.key}))||[]},ev=function(p,y){var w;if(p.op1&&p.value1){var I={funcA:{key:p.op,operand:p.value},funcB:{key:p.op1,operand:p.value1},type:p.condition};w=I}else{var P={key:p.op,operand:p.value};w=P}var N=$p(w),$=N.filter.bind(N),V=function(ue){return ue&&ue[y]&&$(ue[y])};return V.serialize=N.serialize.bind(N),V.original=p,V},As=function(p){var y=p.sort,w=p.logger,I=p.fieldName,P=p.spreadsheet,N=p.commandManager,$=p.append,V=$===void 0?!1:$;w&&w(Ur.sortCol),y==="NONE"?K0(I,P,N):yC(I,P,y,N,V)},K0=function(p,y,w){var I=y.dataCfg,P=(0,oe.cloneDeep)(I.sortParams);w.commit({id:gi.m.SORT,params:I.sortParams.filter(function(N){return N.sortFieldId!==p}),revert:function(){y.setDataCfg(Tl(Tl({},I),{},{sortParams:P})),y.render(!0),y.emit(Ce.ch4.RANGE_SORTED,y.dataSet.getDisplayDataSet())}})},yC=function(p,y,w,I,P){var N=y.dataCfg,$=(0,oe.cloneDeep)(N.sortParams),V=P?N.sortParams.filter(function(J){return J.sortFieldId!==p}).concat({sortFieldId:p,sortMethod:w}):[{sortFieldId:p,sortMethod:w}];I.commit({id:gi.m.SORT,params:V,revert:function(){y.setDataCfg(Tl(Tl({},N),{},{sortParams:$})),y.render(!0),y.emit(Ce.ch4.RANGE_SORTED,y.dataSet.getDisplayDataSet())}})},jM=function(p){try{var y=/^/.test(p)&&!/{/g.test(p),w=p.split("^"),I=y&&w.length>1&&w.every(function(P){return/=/.test(P)});return I}catch(P){return!1}},ad=function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return function(y){return p.length?p.reduce(function(w,I){return I(w)},y):y}},Sf=function(p,y){var w;return isFunction(y)?y(p):(p==null||(w=p.dataSet)===null||w===void 0?void 0:w.originData)||[]},eS=function(p){var y=function($){if($===0)return"A";for(var V="";$>0;)V=String.fromCharCode($%26+65)+V,$=Math.floor($/26);return V},w=p[0]||[],I=w.map(function(N,$){return{name:N,displayName:y($)}}),P=p.map(function(N,$){var V={};return N.forEach(function(J,ue){V[w[ue]]=$===0?w[ue]:J}),V});return{columns:I,content:P}},X_=function(p){var y=p.dataCfg.fields.columns.map(function(I){return I.toString()}),w=[y];return p.dataSet.originData.forEach(function(I,P){P===0&&I[y[0]]===y[0]||w.push(y.map(function(N){var $=I[N];return $===void 0?"":$}))}),w},$o=function(p){return typeof p!="string"?!1:/^=/.test(p)&&p.length>=2},q0=function(p,y){var w=p.dataSet.originData,I=p.interaction.getInteractedCells().filter(function(P){return P.cellType===Ce.Czd.DATA_CELL});y.commit(I.map(function(P){var N=P.getMeta(),$=N.rowIndex,V=N.valueField,J=Nb($,p),ue=new Y0;if(J!==-1)return ue.oldValue=w[$][V],ue.newValue="",ue.rowIndex=J,ue.valueField=V,ue}).filter(Boolean).map(function(P){return{id:gi.m.EDITCELL,params:P}}))},CC=function(p,y){var w=bg(p,y),I=w.dimensions,P=w.aggregations,N=[].concat(X0(I),X0(P.map(function($){return $.col})));return function($,V){var J=N.indexOf($.name),ue=N.indexOf(V.name);return J!==-1&&ue!==-1?J-ue:J!==-1?-1:ue!==-1?1:y.hasEdge($.name,V.name)?-1:y.hasEdge(V.name,$.name)?1:0}},bg=function(p,y){var w={dimensions:[],aggregations:[]};return Object.keys(p.colConfigs).forEach(function(I){var P,N;((P=p.colConfigs[I])===null||P===void 0?void 0:P.type)&Ka.isDimension&&w.dimensions.push(I),((N=p.colConfigs[I])===null||N===void 0?void 0:N.type)&Ka.isAggregation&&w.aggregations.push({col:I,aggregateType:p.colConfigs[I].aggregateType})}),y&&y.getOrderedDimensions&&(w.dimensions=y.getOrderedDimensions(w.dimensions)),w},od=[],bC=function(p){return od.push(p),function(){var y=od.findIndex(function(w){return w===p});y!==-1&&od.splice(y,1)}};function wc(d){"@babel/helpers - typeof";return wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},wc(d)}var up=["className","text","line","italic","keyword","placement","overlayClassName","alwaysHidden","getPopupContainer","customTooltipRender","ellipsisInMiddle"],_f=["className","text","length","line","italic","placement","keyword","overlayClassName","alwaysHidden","getPopupContainer","customTooltipRender","ellipsisInMiddle","ellipsisHeadLen","ellipsisTailLen"];function cp(d,p){var y=Object.keys(d);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(d);p&&(w=w.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),y.push.apply(y,w)}return y}function Wb(d){for(var p=1;p=0)&&Object.prototype.propertyIsEnumerable.call(d,w)&&(y[w]=d[w])}return y}function wC(d,p){if(d==null)return{};var y={},w=Object.keys(d),I,P;for(P=0;P=0)&&(y[I]=d[I]);return y}function xC(d,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(p&&p.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),Object.defineProperty(d,"prototype",{writable:!1}),p&&J0(d,p)}function J0(d,p){return J0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,I){return w.__proto__=I,w},J0(d,p)}function SC(d){var p=Xu();return function(){var w=xc(d),I;if(p){var P=xc(this).constructor;I=Reflect.construct(w,arguments,P)}else I=w.apply(this,arguments);return ld(this,I)}}function ld(d,p){if(p&&(wc(p)==="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Is(d)}function Is(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function Xu(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(d){return!1}}function xc(d){return xc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(y){return y.__proto__||Object.getPrototypeOf(y)},xc(d)}function Gb(d,p){for(var y=0;y2&&arguments[2]!==void 0?arguments[2]:0,I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,P=[],N=0,$=0,V=p.length-1,J=!0;N$)&&$++,J=!1):((I===0||I>p.length-V)&&V--,J=!0)}if($===V&&y+2>N&&($++,P.push(p[$])),$===V+1)return p;var _e=p.substring(0,$),Se=p.substring(V+1,p.length);return"".concat(_e,"...").concat(Se)};function Ub(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:14,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,I=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!d||typeof d!="string")return"";if(y)return Z_(d,p,w,I);for(var P=[],N=0,$=0;NN&&P.push(d[$]);var J=P.join("");return J===d?J:"".concat(J,"...")}var K_=nl(function d(){tS(this,d),this.className="",this.text="",this.length=void 0,this.line=void 0,this.italic=!1,this.placement="topLeft",this.keyword="",this.overlayClassName="",this.alwaysHidden=void 0,this.getPopupContainer=void 0,this.customTooltipRender=void 0,this.ellipsisInMiddle=!1,this.ellipsisHeadLen=void 0,this.ellipsisTailLen=void 0}),Yb=function(d){xC(y,d);var p=SC(y);function y(){var w;tS(this,y);for(var I=arguments.length,P=new Array(I),N=0;NI.clientHeight)}},{key:"getDecoratedChildren",value:function(I,P,N,$,V){var J=N?re.createElement(Zv,{text:I,keyword:N}):I;return P?re.createElement("i",{className:$},J):re.createElement("span",{className:$},J)}},{key:"renderByLine",value:function(){var I=this,P=this.props,N=P.className,$=P.text,V=P.line,J=P.italic,ue=P.keyword,_e=P.placement,Se=P.overlayClassName,Qe=P.alwaysHidden,ut=P.getPopupContainer,je=P.customTooltipRender,He=P.ellipsisInMiddle,gt=fp(P,up),Mt=this.state.tooltipVisible,yt=this.getDecoratedChildren(String($),J,ue,N,Se),Wt=re.cloneElement(yt,Wb({className:fe()("multi-line",{"single-line":V===1},N),style:{WebkitLineClamp:V},ref:function(_t){I.el=_t}},gt));return Qe?Wt:je?je(Wt):re.createElement(Zt.Tooltip,{overlayClassName:Se,getPopupContainer:ut,visible:Mt,onVisibleChange:this.handleTooltipVisibleChange,mouseEnterDelay:.3,title:$,placement:_e},Wt)}},{key:"renderByLength",value:function(){var I=this.props,P=I.className,N=I.text,$=I.length,V=I.line,J=I.italic,ue=I.placement,_e=ue===void 0?"topLeft":ue,Se=I.keyword,Qe=I.overlayClassName,ut=I.alwaysHidden,je=I.getPopupContainer,He=I.customTooltipRender,gt=I.ellipsisInMiddle,Mt=I.ellipsisHeadLen,yt=I.ellipsisTailLen,Wt=fp(I,_f),Ye="".concat(N),_t=Ub(Ye,$,gt,Mt,Mt?0:yt),vt=re.cloneElement(this.getDecoratedChildren(_t,J,Se,P,Qe),Wt);if(He)return He(vt);var At=_t!==Ye&&!ut?re.createElement(Zt.Tooltip,{title:Ye,placement:_e,overlayClassName:Qe,getPopupContainer:je,overlayStyle:{wordWrap:"break-word",wordBreak:"break-all"}},vt):vt;return At}},{key:"render",value:function(){var I=this.props,P=I.text,N=I.length,$=I.line;return P==null||!String(P)?null:($&&N&&console.warn("[Abbr] \u8BF7\u4E0D\u8981\u540C\u65F6\u914D\u7F6E `line` \u548C `length` \u5C5E\u6027\uFF0C\u5C06\u4F18\u5148\u4F7F\u7528 `line` \u5C5E\u6027"),$?this.renderByLine():this.renderByLength())}}]),y}(re.PureComponent);Yb.defaultProps=new K_;var wg=Yb;function EC(d){"@babel/helpers - typeof";return EC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},EC(d)}function q_(d,p){var y=Object.keys(d);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(d);p&&(w=w.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),y.push.apply(y,w)}return y}function sd(d){for(var p=1;pd.length)&&(p=d.length);for(var y=0,w=new Array(p);yd.length)&&(p=d.length);for(var y=0,w=new Array(p);yd.length)&&(p=d.length);for(var y=0,w=new Array(p);y600?hr(600):hr(ml)};if(bo.target===on.current){var Ls=bo.clientX,Hf=(0,oe.throttle)(function(vs){vs.preventDefault();var ml=vs.clientX-Ls+Kt;gl(ml)},15),Dh=function vs(ml){ml.preventDefault(),ml.stopPropagation();var Fp=ml.clientX-Ls+Kt;gl(Fp),document.removeEventListener("mouseup",vs),document.removeEventListener("mousemove",Hf)};document.addEventListener("mousemove",Hf),document.addEventListener("mouseup",Dh)}};return document.addEventListener("mousedown",Xi),function(){document.removeEventListener("mousedown",Xi)}},[Kt]);var hn=(0,re.useState)(sn.customFilter?Tu.ByExpression:Tu.ByValue),it=ha(hn,2),$e=it[0],ft=it[1],sr=(0,re.useState)({}),gr=ha(sr,2),_r=gr[0],Wr=gr[1],$r=ie().useState(Qa(je,ut)),Zr=ha($r,2),Wn=Zr[0],pn=Zr[1];ie().useLayoutEffect(function(){var Xi=function(bo){var gl,Ls=bo.target;if(!((gl=_t.current)!==null&&gl!==void 0&&gl.contains(Ls))&&Ls.parentNode){if(Ls.nodeName==="INPUT")return;N()}};return window.addEventListener("click",Xi),function(){window.removeEventListener("click",Xi)}},[_t.current]);var xn=(0,re.useState)(Wn),Hi=ha(xn,1),ua=Hi[0],ii=function(Ga){pn(Ga.target.value)},va=(0,re.useState)(sn.customFilter?(P=sn.customFilter)===null||P===void 0?void 0:P.original:{op:Object.keys(Tv)[0],value:""}),Ja=ha(va,2),jo=Ja[0],ao=Ja[1],Ya=function(Ga,bo,gl){return ie().createElement("div",{className:fe()(["weave-field-filter-tab-item",gl,{active:$e===Ga}]),onClick:function(){ft(Ga)}},bo)},Vi=function(){$e===Tu.ByValue?(Wr({}),pn("NONE")):ao(dl(dl({},jo),{},{op1:null,value:"",value1:""})),Wt(function(Ga){return dl(dl({},Ga),{},{filter:!0})})},ma=function(Ga){Wn!==ua&&As({sort:Wn,spreadsheet:ue,logger:_e,fieldName:je,commandManager:Se}),$e===Tu.ByValue?yt.filter&&(_e&&_e(Ur.filterCol),Se.commit({id:gi.m.FILTER,params:{filterKey:je,filteredValues:Object.entries(_r).map(function(bo){var gl=ha(bo,2),Ls=gl[0],Hf=gl[1];if(Hf)return Ls}).filter(function(bo){return!(0,oe.isUndefined)(bo)&&!(0,oe.isNull)(bo)})},revert:function(){ue.emit(Ce.ch4.RANGE_FILTER,sn)}})):(_e&&_e(Ur.filterExpressionClick),Se.commit({id:gi.m.FILTERBYEXP,params:{expression:jo,fieldName:je},revert:function(){ue.emit(Ce.ch4.RANGE_FILTER,sn)}})),V(!0)};return ie().createElement("div",{className:fe()("weave-field-filter-modal",{light:Hr},"dp-filter-modal-wrapper"),style:dl(dl({},rn),{},{width:Kt}),ref:_t,"data-testid":"weave-field-filter-modal"},ie().createElement("div",{className:"resizable",ref:on,"data-testid":"resizable"}),ie().createElement("div",{className:fe()("tab","ant-modal-body")},Ya(Tu.ByValue,"\u6309\u5185\u5BB9","left"),Ya(Tu.ByExpression,"\u6309\u6761\u4EF6","right")),ie().createElement("div",{className:fe()("weave-field-filter-container","ant-modal-body")},$e===Tu.ByValue?ie().createElement(rv,{value:_r,params:dl(dl({},$),{},{filterParams:Qe}),isMultipleSelect:Ye,skipNum:He,onChange:function(Ga){Wr(Ga)},setDirty:Wt,showSort:!0,sort:Wn,sortChange:ii}):ie().createElement(Sa,{value:jo,params:$,onChange:function(Ga){ao(Ga)}})),ie().createElement("div",{className:fe()("footer","ant-modal-footer")},ie().createElement("div",{className:"left",onClick:Vi},ie().createElement(Te,{type:"one-icon icon-shuaxin2 anticon-dpicon"}),"\u6E05\u9664\u7B5B\u9009"),ie().createElement("div",{className:"right"},ie().createElement(Zt.Button,{type:"ghost",onClick:N,className:"btn"},"\u53D6\u6D88"),ie().createElement(Zt.Button,{type:"primary",onClick:ma,className:"btn"},"\u786E\u5B9A"))))},Do=rt(64649),Co=rt(50189),Of=rt(13285),Ha=rt(8136),lu=rt(53782),_g=rt(37220),AC=rt(99664),IC=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Ku=void 0;function Qc(d,p){var y=d.prefixCls,w=d.invalidate,I=d.item,P=d.renderItem,N=d.responsive,$=d.responsiveDisabled,V=d.registerSize,J=d.itemKey,ue=d.className,_e=d.style,Se=d.children,Qe=d.display,ut=d.order,je=d.component,He=je===void 0?"div":je,gt=(0,lu.Z)(d,IC),Mt=N&&!Qe;function yt(At){V(J,At)}re.useEffect(function(){return function(){yt(null)}},[]);var Wt=P&&I!==Ku?P(I):Se,Ye;w||(Ye={opacity:Mt?0:1,height:Mt?0:Ku,overflowY:Mt?"hidden":Ku,order:N?ut:Ku,pointerEvents:Mt?"none":Ku,position:Mt?"absolute":Ku});var _t={};Mt&&(_t["aria-hidden"]=!0);var vt=re.createElement(He,(0,So.Z)({className:fe()(!w&&y,ue),style:(0,Co.Z)((0,Co.Z)({},Ye),_e)},_t,gt,{ref:p}),Wt);return N&&(vt=re.createElement(_g.Z,{onResize:function(Kt){var hr=Kt.offsetWidth;yt(hr)},disabled:$},vt)),vt}var lS=re.forwardRef(Qc);lS.displayName="Item";var RC=lS,zl=rt(44771),Eg=rt(94068);function am(d){if(typeof MessageChannel=="undefined")(0,Eg.Z)(d);else{var p=new MessageChannel;p.port1.onmessage=function(){return d()},p.port2.postMessage(void 0)}}function Kb(){var d=re.useRef(null),p=function(w){d.current||(d.current=[],am(function(){(0,xt.unstable_batchedUpdates)(function(){d.current.forEach(function(I){I()}),d.current=null})})),d.current.push(w)};return p}function Jc(d,p){var y=re.useState(p),w=(0,Ha.Z)(y,2),I=w[0],P=w[1],N=(0,zl.Z)(function($){d(function(){P($)})});return[I,N]}var DC=ie().createContext(null),Ho=["component"],LC=["className"],pp=["className"],zn=function(p,y){var w=re.useContext(DC);if(!w){var I=p.component,P=I===void 0?"div":I,N=(0,lu.Z)(p,Ho);return re.createElement(P,(0,So.Z)({},N,{ref:y}))}var $=w.className,V=(0,lu.Z)(w,LC),J=p.className,ue=(0,lu.Z)(p,pp);return re.createElement(DC.Provider,{value:null},re.createElement(RC,(0,So.Z)({ref:y,className:fe()($,J)},V,ue)))},om=re.forwardRef(zn);om.displayName="RawItem";var qu=om,PC=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],qb="responsive",Qb="invalidate";function fd(d){return"+ ".concat(d.length," ...")}function sS(d,p){var y=d.prefixCls,w=y===void 0?"rc-overflow":y,I=d.data,P=I===void 0?[]:I,N=d.renderItem,$=d.renderRawItem,V=d.itemKey,J=d.itemWidth,ue=J===void 0?10:J,_e=d.ssr,Se=d.style,Qe=d.className,ut=d.maxCount,je=d.renderRest,He=d.renderRawRest,gt=d.suffix,Mt=d.component,yt=Mt===void 0?"div":Mt,Wt=d.itemComponent,Ye=d.onVisibleChange,_t=(0,lu.Z)(d,PC),vt=_e==="full",At=Kb(),Kt=Jc(At,null),hr=(0,Ha.Z)(Kt,2),Hr=hr[0],sn=hr[1],on=Hr||0,rn=Jc(At,new Map),hn=(0,Ha.Z)(rn,2),it=hn[0],$e=hn[1],ft=Jc(At,0),sr=(0,Ha.Z)(ft,2),gr=sr[0],_r=sr[1],Wr=Jc(At,0),$r=(0,Ha.Z)(Wr,2),Zr=$r[0],Wn=$r[1],pn=Jc(At,0),xn=(0,Ha.Z)(pn,2),Hi=xn[0],ua=xn[1],ii=(0,re.useState)(null),va=(0,Ha.Z)(ii,2),Ja=va[0],jo=va[1],ao=(0,re.useState)(null),Ya=(0,Ha.Z)(ao,2),Vi=Ya[0],ma=Ya[1],Xi=re.useMemo(function(){return Vi===null&&vt?Number.MAX_SAFE_INTEGER:Vi||0},[Vi,Hr]),Ga=(0,re.useState)(!1),bo=(0,Ha.Z)(Ga,2),gl=bo[0],Ls=bo[1],Hf="".concat(w,"-item"),Dh=Math.max(gr,Zr),vs=ut===qb,ml=P.length&&vs,Fp=ut===Qb,a0=ml||typeof ut=="number"&&P.length>ut,zf=(0,re.useMemo)(function(){var yn=P;return ml?Hr===null&&vt?yn=P:yn=P.slice(0,Math.min(P.length,on/ue)):typeof ut=="number"&&(yn=P.slice(0,ut)),yn},[P,ue,Hr,ut,ml]),gv=(0,re.useMemo)(function(){return ml?P.slice(Xi+1):P.slice(zf.length)},[P,zf,ml,Xi]),Wf=(0,re.useCallback)(function(yn,zi){var Vl;return typeof V=="function"?V(yn):(Vl=V&&(yn==null?void 0:yn[V]))!==null&&Vl!==void 0?Vl:zi},[V]),Lh=(0,re.useCallback)(N||function(yn){return yn},[N]);function hf(yn,zi,Vl){Vi===yn&&(zi===void 0||zi===Ja)||(ma(yn),Vl||(Ls(ynon){hf(Si-1,yn-bi-Hi+Zr);break}}gt&&mv(0)+Hi>on&&jo(null)}},[on,it,Zr,Hi,Wf,zf]);var vx=gl&&!!gv.length,yv={};Ja!==null&&ml&&(yv={position:"absolute",left:Ja,top:0});var Cd={prefixCls:Hf,responsive:ml,component:Wt,invalidate:Fp},P1=$?function(yn,zi){var Vl=Wf(yn,zi);return re.createElement(DC.Provider,{key:Vl,value:(0,Co.Z)((0,Co.Z)({},Cd),{},{order:zi,item:yn,itemKey:Vl,registerSize:Pc,display:zi<=Xi})},$(yn,zi))}:function(yn,zi){var Vl=Wf(yn,zi);return re.createElement(RC,(0,So.Z)({},Cd,{order:zi,key:Vl,item:yn,renderItem:Lh,itemKey:Vl,registerSize:Pc,display:zi<=Xi}))},l0,a_={order:vx?Xi:Number.MAX_SAFE_INTEGER,className:"".concat(Hf,"-rest"),registerSize:ps,display:vx};if(He)He&&(l0=re.createElement(DC.Provider,{value:(0,Co.Z)((0,Co.Z)({},Cd),a_)},He(gv)));else{var B1=je||fd;l0=re.createElement(RC,(0,So.Z)({},Cd,a_),typeof B1=="function"?B1(gv):B1)}var Cv=re.createElement(yt,(0,So.Z)({className:fe()(!Fp&&w,Qe),style:Se,ref:p},_t),zf.map(P1),a0?l0:null,gt&&re.createElement(RC,(0,So.Z)({},Cd,{responsive:vs,responsiveDisabled:!ml,order:Xi,className:"".concat(Hf,"-suffix"),registerSize:i_,display:!0,style:yv}),gt));return vs&&(Cv=re.createElement(_g.Z,{onResize:o0,disabled:!ml},Cv)),Cv}var gp=re.forwardRef(sS);gp.displayName="Overflow",gp.Item=qu,gp.RESPONSIVE=qb,gp.INVALIDATE=Qb;var uS=gp,gh=uS,Wl=rt(24391),ia=rt(46882),Ou=rt(74485),vl=re.createContext(null);function hd(d,p){return d===void 0?null:"".concat(d,"-").concat(p)}function Qu(d){var p=re.useContext(vl);return hd(p,d)}var iv=rt(8805),lm=["children","locked"],ef=re.createContext(null);function tf(d,p){var y=(0,Co.Z)({},d);return Object.keys(p).forEach(function(w){var I=p[w];I!==void 0&&(y[w]=I)}),y}function mh(d){var p=d.children,y=d.locked,w=(0,lu.Z)(d,lm),I=re.useContext(ef),P=(0,iv.Z)(function(){return tf(I,w)},[I,w],function(N,$){return!y&&(N[0]!==$[0]||!(0,ia.Z)(N[1],$[1],!0))});return re.createElement(ef.Provider,{value:P},p)}var cS=[],mp=re.createContext(null);function sm(){return re.useContext(mp)}var Jb=re.createContext(cS);function Mg(d){var p=re.useContext(Jb);return re.useMemo(function(){return d!==void 0?[].concat((0,Of.Z)(p),[d]):p},[p,d])}var dd=re.createContext(null),BC=re.createContext({}),um=BC,kC=rt(5661);function yh(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,kC.Z)(d)){var y=d.nodeName.toLowerCase(),w=["input","select","textarea","button"].includes(y)||d.isContentEditable||y==="a"&&!!d.getAttribute("href"),I=d.getAttribute("tabindex"),P=Number(I),N=null;return I&&!Number.isNaN(P)?N=P:w&&N===null&&(N=0),w&&d.disabled&&(N=null),N!==null&&(N>=0||p&&N<0)}return!1}function Tg(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=(0,Of.Z)(d.querySelectorAll("*")).filter(function(w){return yh(w,p)});return yh(d,p)&&y.unshift(d),y}var za=null;function fS(){za=document.activeElement}function FC(){za=null}function ew(){if(za)try{za.focus()}catch(d){}}function cm(d,p){if(p.keyCode===9){var y=Tg(d),w=y[p.shiftKey?0:y.length-1],I=w===document.activeElement||d===document.activeElement;if(I){var P=y[p.shiftKey?y.length-1:0];P.focus(),p.preventDefault()}}}var Fi={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(p){var y=p.keyCode;if(p.altKey&&!p.ctrlKey||p.metaKey||y>=Fi.F1&&y<=Fi.F12)return!1;switch(y){case Fi.ALT:case Fi.CAPS_LOCK:case Fi.CONTEXT_MENU:case Fi.CTRL:case Fi.DOWN:case Fi.END:case Fi.ESC:case Fi.HOME:case Fi.INSERT:case Fi.LEFT:case Fi.MAC_FF_META:case Fi.META:case Fi.NUMLOCK:case Fi.NUM_CENTER:case Fi.PAGE_DOWN:case Fi.PAGE_UP:case Fi.PAUSE:case Fi.PRINT_SCREEN:case Fi.RIGHT:case Fi.SHIFT:case Fi.UP:case Fi.WIN_KEY:case Fi.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(p){if(p>=Fi.ZERO&&p<=Fi.NINE||p>=Fi.NUM_ZERO&&p<=Fi.NUM_MULTIPLY||p>=Fi.A&&p<=Fi.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&p===0)return!0;switch(p){case Fi.SPACE:case Fi.QUESTION_MARK:case Fi.NUM_PLUS:case Fi.NUM_MINUS:case Fi.NUM_PERIOD:case Fi.NUM_DIVISION:case Fi.SEMICOLON:case Fi.DASH:case Fi.EQUALS:case Fi.COMMA:case Fi.PERIOD:case Fi.SLASH:case Fi.APOSTROPHE:case Fi.SINGLE_QUOTE:case Fi.OPEN_SQUARE_BRACKET:case Fi.BACKSLASH:case Fi.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},rf=Fi,Og=rf.LEFT,tw=rf.RIGHT,Gl=rf.UP,fm=rf.DOWN,Ch=rf.ENTER,hS=rf.ESC,$l=rf.HOME,Ag=rf.END,rw=[Gl,fm,Og,tw];function yp(d,p,y,w){var I,P="prev",N="next",$="children",V="parent";if(d==="inline"&&w===Ch)return{inlineTrigger:!0};var J=(0,Do.Z)((0,Do.Z)({},Gl,P),fm,N),ue=(0,Do.Z)((0,Do.Z)((0,Do.Z)((0,Do.Z)({},Og,y?N:P),tw,y?P:N),fm,$),Ch,$),_e=(0,Do.Z)((0,Do.Z)((0,Do.Z)((0,Do.Z)((0,Do.Z)((0,Do.Z)({},Gl,P),fm,N),Ch,$),hS,V),Og,y?$:V),tw,y?V:$),Se={inline:J,horizontal:ue,vertical:_e,inlineSub:J,horizontalSub:_e,verticalSub:_e},Qe=(I=Se["".concat(d).concat(p?"":"Sub")])===null||I===void 0?void 0:I[w];switch(Qe){case P:return{offset:-1,sibling:!0};case N:return{offset:1,sibling:!0};case V:return{offset:-1,sibling:!1};case $:return{offset:1,sibling:!1};default:return null}}function dS(d){for(var p=d;p;){if(p.getAttribute("data-menu-list"))return p;p=p.parentElement}return null}function nw(d,p){for(var y=d||document.activeElement;y;){if(p.has(y))return y;y=y.parentElement}return null}function iw(d,p){var y=Tg(d,!0);return y.filter(function(w){return p.has(w)})}function Ig(d,p,y){var w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!d)return null;var I=iw(d,p),P=I.length,N=I.findIndex(function($){return y===$});return w<0?N===-1?N=P-1:N-=1:w>0&&(N+=1),N=(N+P)%P,I[N]}var Rg=function(p,y){var w=new Set,I=new Map,P=new Map;return p.forEach(function(N){var $=document.querySelector("[data-menu-id='".concat(hd(y,N),"']"));$&&(w.add($),P.set($,N),I.set(N,$))}),{elements:w,key2element:I,element2key:P}};function NC(d,p,y,w,I,P,N,$,V,J){var ue=re.useRef(),_e=re.useRef();_e.current=p;var Se=function(){Eg.Z.cancel(ue.current)};return re.useEffect(function(){return function(){Se()}},[]),function(Qe){var ut=Qe.which;if([].concat(rw,[Ch,hS,$l,Ag]).includes(ut)){var je=P(),He=Rg(je,w),gt=He,Mt=gt.elements,yt=gt.key2element,Wt=gt.element2key,Ye=yt.get(p),_t=nw(Ye,Mt),vt=Wt.get(_t),At=yp(d,N(vt,!0).length===1,y,ut);if(!At&&ut!==$l&&ut!==Ag)return;(rw.includes(ut)||[$l,Ag].includes(ut))&&Qe.preventDefault();var Kt=function($e){if($e){var ft=$e,sr=$e.querySelector("a");sr!=null&&sr.getAttribute("href")&&(ft=sr);var gr=Wt.get($e);$(gr),Se(),ue.current=(0,Eg.Z)(function(){_e.current===gr&&ft.focus()})}};if([$l,Ag].includes(ut)||At.sibling||!_t){var hr;!_t||d==="inline"?hr=I.current:hr=dS(_t);var Hr,sn=iw(hr,Mt);ut===$l?Hr=sn[0]:ut===Ag?Hr=sn[sn.length-1]:Hr=Ig(hr,Mt,_t,At.offset),Kt(Hr)}else if(At.inlineTrigger)V(vt);else if(At.offset>0)V(vt,!0),Se(),ue.current=(0,Eg.Z)(function(){He=Rg(je,w);var it=_t.getAttribute("aria-controls"),$e=document.getElementById(it),ft=Ig($e,He.elements);Kt(ft)},5);else if(At.offset<0){var on=N(vt,!0),rn=on[on.length-2],hn=yt.get(rn);V(rn,!1),Kt(hn)}}J==null||J(Qe)}}function eE(d){Promise.resolve().then(d)}var Dg="__RC_UTIL_PATH_SPLIT__",aw=function(p){return p.join(Dg)},tE=function(p){return p.split(Dg)},ow="rc-menu-more";function hm(){var d=re.useState({}),p=(0,Ha.Z)(d,2),y=p[1],w=(0,re.useRef)(new Map),I=(0,re.useRef)(new Map),P=re.useState([]),N=(0,Ha.Z)(P,2),$=N[0],V=N[1],J=(0,re.useRef)(0),ue=(0,re.useRef)(!1),_e=function(){ue.current||y({})},Se=(0,re.useCallback)(function(yt,Wt){var Ye=aw(Wt);I.current.set(Ye,yt),w.current.set(yt,Ye),J.current+=1;var _t=J.current;eE(function(){_t===J.current&&_e()})},[]),Qe=(0,re.useCallback)(function(yt,Wt){var Ye=aw(Wt);I.current.delete(Ye),w.current.delete(yt)},[]),ut=(0,re.useCallback)(function(yt){V(yt)},[]),je=(0,re.useCallback)(function(yt,Wt){var Ye=w.current.get(yt)||"",_t=tE(Ye);return Wt&&$.includes(_t[0])&&_t.unshift(ow),_t},[$]),He=(0,re.useCallback)(function(yt,Wt){return yt.some(function(Ye){var _t=je(Ye,!0);return _t.includes(Wt)})},[je]),gt=function(){var Wt=(0,Of.Z)(w.current.keys());return $.length&&Wt.push(ow),Wt},Mt=(0,re.useCallback)(function(yt){var Wt="".concat(w.current.get(yt)).concat(Dg),Ye=new Set;return(0,Of.Z)(I.current.keys()).forEach(function(_t){_t.startsWith(Wt)&&Ye.add(I.current.get(_t))}),Ye},[]);return re.useEffect(function(){return function(){ue.current=!0}},[]),{registerPath:Se,unregisterPath:Qe,refreshOverflowKeys:ut,isSubPathKey:He,getKeyPath:je,getKeys:gt,getSubPathKeys:Mt}}function dm(d){var p=re.useRef(d);p.current=d;var y=re.useCallback(function(){for(var w,I=arguments.length,P=new Array(I),N=0;N1&&(Mt.motionAppear=!1);var yt=Mt.onVisibleChanged;return Mt.onVisibleChanged=function(Wt){return!Se.current&&!Wt&&He(!0),yt==null?void 0:yt(Wt)},je?null:re.createElement(mh,{mode:P,locked:!Se.current},re.createElement(Ii.default,(0,So.Z)({visible:gt},Mt,{forceRender:V,removeOnLeave:!1,leavedClassName:"".concat($,"-hidden")}),function(Wt){var Ye=Wt.className,_t=Wt.style;return re.createElement(WC,{id:p,className:Ye,style:_t},I)}))}var pl=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Xs=["active"],GC=re.forwardRef(function(d,p){var y=d.style,w=d.className,I=d.title,P=d.eventKey,N=d.warnKey,$=d.disabled,V=d.internalPopupClose,J=d.children,ue=d.itemIcon,_e=d.expandIcon,Se=d.popupClassName,Qe=d.popupOffset,ut=d.popupStyle,je=d.onClick,He=d.onMouseEnter,gt=d.onMouseLeave,Mt=d.onTitleClick,yt=d.onTitleMouseEnter,Wt=d.onTitleMouseLeave,Ye=(0,lu.Z)(d,pl),_t=Qu(P),vt=re.useContext(ef),At=vt.prefixCls,Kt=vt.mode,hr=vt.openKeys,Hr=vt.disabled,sn=vt.overflowDisabled,on=vt.activeKey,rn=vt.selectedKeys,hn=vt.itemIcon,it=vt.expandIcon,$e=vt.onItemClick,ft=vt.onOpenChange,sr=vt.onActive,gr=re.useContext(um),_r=gr._internalRenderSubMenuItem,Wr=re.useContext(dd),$r=Wr.isSubPathKey,Zr=Mg(),Wn="".concat(At,"-submenu"),pn=Hr||$,xn=re.useRef(),Hi=re.useRef(),ua=ue!=null?ue:hn,ii=_e!=null?_e:it,va=hr.includes(P),Ja=!sn&&va,jo=$r(rn,P),ao=uw(P,pn,yt,Wt),Ya=ao.active,Vi=(0,lu.Z)(ao,Xs),ma=re.useState(!1),Xi=(0,Ha.Z)(ma,2),Ga=Xi[0],bo=Xi[1],gl=function(ps){pn||bo(ps)},Ls=function(ps){gl(!0),He==null||He({key:P,domEvent:ps})},Hf=function(ps){gl(!1),gt==null||gt({key:P,domEvent:ps})},Dh=re.useMemo(function(){return Ya||(Kt!=="inline"?Ga||$r([on],P):!1)},[Kt,Ya,on,Ga,P,$r]),vs=zC(Zr.length),ml=function(ps){pn||(Mt==null||Mt({key:P,domEvent:ps}),Kt==="inline"&&ft(P,!va))},Fp=dm(function(Pc){je==null||je(bh(Pc)),$e(Pc)}),a0=function(ps){Kt!=="inline"&&ft(P,ps)},zf=function(){sr(P)},gv=_t&&"".concat(_t,"-popup"),Wf=re.createElement("div",(0,So.Z)({role:"menuitem",style:vs,className:"".concat(Wn,"-title"),tabIndex:pn?null:-1,ref:xn,title:typeof I=="string"?I:null,"data-menu-id":sn&&_t?null:_t,"aria-expanded":Ja,"aria-haspopup":!0,"aria-controls":gv,"aria-disabled":pn,onClick:ml,onFocus:zf},Vi),I,re.createElement(Af,{icon:Kt!=="horizontal"?ii:void 0,props:(0,Co.Z)((0,Co.Z)({},d),{},{isOpen:Ja,isSubMenu:!0})},re.createElement("i",{className:"".concat(Wn,"-arrow")}))),Lh=re.useRef(Kt);if(Kt!=="inline"&&Zr.length>1?Lh.current="vertical":Lh.current=Kt,!sn){var hf=Lh.current;Wf=re.createElement(av,{mode:hf,prefixCls:Wn,visible:!V&&Ja&&Kt!=="inline",popupClassName:Se,popupOffset:Qe,popupStyle:ut,popup:re.createElement(mh,{mode:hf==="horizontal"?"vertical":hf},re.createElement(WC,{id:gv,ref:Hi},J)),disabled:pn,onVisibleChange:a0},Wf)}var o0=re.createElement(gh.Item,(0,So.Z)({ref:p,role:"none"},Ye,{component:"li",style:y,className:fe()(Wn,"".concat(Wn,"-").concat(Kt),w,(0,Do.Z)((0,Do.Z)((0,Do.Z)((0,Do.Z)({},"".concat(Wn,"-open"),Ja),"".concat(Wn,"-active"),Dh),"".concat(Wn,"-selected"),jo),"".concat(Wn,"-disabled"),pn)),onMouseEnter:Ls,onMouseLeave:Hf}),Wf,!sn&&re.createElement(fw,{id:gv,open:Ja,keyPath:Zr},J));return _r&&(o0=_r(o0,d,{selected:jo,active:Dh,open:Ja,disabled:pn})),re.createElement(mh,{onItemClick:Fp,mode:Kt==="horizontal"?"vertical":Kt,itemIcon:ua,expandIcon:ii},o0)}),su=re.forwardRef(function(d,p){var y=d.eventKey,w=d.children,I=Mg(y),P=fs(w,I),N=sm();re.useEffect(function(){if(N)return N.registerPath(y,I),function(){N.unregisterPath(y,I)}},[I]);var $;return N?$=P:$=re.createElement(GC,(0,So.Z)({ref:p},d),P),re.createElement(Jb.Provider,{value:I},$)}),Zs=su,Ol=rt(33940);function bS(d){var p=d.className,y=d.style,w=re.useContext(ef),I=w.prefixCls,P=sm();return P?null:re.createElement("li",{role:"separator",className:fe()("".concat(I,"-item-divider"),p),style:y})}var wS=["className","title","eventKey","children"],lE=re.forwardRef(function(d,p){var y=d.className,w=d.title,I=d.eventKey,P=d.children,N=(0,lu.Z)(d,wS),$=re.useContext(ef),V=$.prefixCls,J="".concat(V,"-item-group");return re.createElement("li",(0,So.Z)({ref:p,role:"presentation"},N,{onClick:function(_e){return _e.stopPropagation()},className:fe()(J,y)}),re.createElement("div",{role:"presentation",className:"".concat(J,"-title"),title:typeof w=="string"?w:void 0},w),re.createElement("ul",{role:"group",className:"".concat(J,"-list")},P))}),nf=re.forwardRef(function(d,p){var y=d.eventKey,w=d.children,I=Mg(y),P=fs(w,I),N=sm();return N?P:re.createElement(lE,(0,So.Z)({ref:p},lw(d,["warnKey"])),P)}),hw=nf,dw=["label","children","key","type"];function $C(d,p){var y=p.item,w=p.group,I=p.submenu,P=p.divider;return(d||[]).map(function(N,$){if(N&&(0,Ol.Z)(N)==="object"){var V=N,J=V.label,ue=V.children,_e=V.key,Se=V.type,Qe=(0,lu.Z)(V,dw),ut=_e!=null?_e:"tmp-".concat($);return ue||Se==="group"?Se==="group"?re.createElement(w,(0,So.Z)({key:ut},Qe,{title:J}),$C(ue,p)):re.createElement(I,(0,So.Z)({key:ut},Qe,{title:J}),$C(ue,p)):Se==="divider"?re.createElement(P,(0,So.Z)({key:ut},Qe)):re.createElement(y,(0,So.Z)({key:ut},Qe),J)}return null}).filter(function(N){return N})}function mm(d,p,y,w){var I=d,P=(0,Co.Z)({divider:bS,item:Ul,group:hw,submenu:Zs},w);return p&&(I=$C(p,P)),fs(I,y)}var VM=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],ec=[],Cp=re.forwardRef(function(d,p){var y,w=d,I=w.prefixCls,P=I===void 0?"rc-menu":I,N=w.rootClassName,$=w.style,V=w.className,J=w.tabIndex,ue=J===void 0?0:J,_e=w.items,Se=w.children,Qe=w.direction,ut=w.id,je=w.mode,He=je===void 0?"vertical":je,gt=w.inlineCollapsed,Mt=w.disabled,yt=w.disabledOverflow,Wt=w.subMenuOpenDelay,Ye=Wt===void 0?.1:Wt,_t=w.subMenuCloseDelay,vt=_t===void 0?.1:_t,At=w.forceSubMenuRender,Kt=w.defaultOpenKeys,hr=w.openKeys,Hr=w.activeKey,sn=w.defaultActiveFirst,on=w.selectable,rn=on===void 0?!0:on,hn=w.multiple,it=hn===void 0?!1:hn,$e=w.defaultSelectedKeys,ft=w.selectedKeys,sr=w.onSelect,gr=w.onDeselect,_r=w.inlineIndent,Wr=_r===void 0?24:_r,$r=w.motion,Zr=w.defaultMotions,Wn=w.triggerSubMenuAction,pn=Wn===void 0?"hover":Wn,xn=w.builtinPlacements,Hi=w.itemIcon,ua=w.expandIcon,ii=w.overflowedIndicator,va=ii===void 0?"...":ii,Ja=w.overflowedIndicatorPopupClassName,jo=w.getPopupContainer,ao=w.onClick,Ya=w.onOpenChange,Vi=w.onKeyDown,ma=w.openAnimation,Xi=w.openTransitionName,Ga=w._internalRenderMenuItem,bo=w._internalRenderSubMenuItem,gl=w._internalComponents,Ls=(0,lu.Z)(w,VM),Hf=re.useMemo(function(){return[mm(Se,_e,ec,gl),mm(Se,_e,ec,{})]},[Se,_e,gl]),Dh=(0,Ha.Z)(Hf,2),vs=Dh[0],ml=Dh[1],Fp=re.useState(!1),a0=(0,Ha.Z)(Fp,2),zf=a0[0],gv=a0[1],Wf=re.useRef(),Lh=Ju(ut),hf=Qe==="rtl",o0=(0,Wl.Z)(Kt,{value:hr,postState:function(Vo){return Vo||ec}}),Pc=(0,Ha.Z)(o0,2),ps=Pc[0],i_=Pc[1],mv=function(Vo){var yl=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Gf(){i_(Vo),Ya==null||Ya(Vo)}yl?(0,xt.flushSync)(Gf):Gf()},vx=re.useState(ps),yv=(0,Ha.Z)(vx,2),Cd=yv[0],P1=yv[1],l0=re.useRef(!1),a_=re.useMemo(function(){return(He==="inline"||He==="vertical")&>?["vertical",gt]:[He,!1]},[He,gt]),B1=(0,Ha.Z)(a_,2),Cv=B1[0],yn=B1[1],zi=Cv==="inline",Vl=re.useState(Cv),Si=(0,Ha.Z)(Vl,2),bi=Si[0],uc=Si[1],px=re.useState(yn),ya=(0,Ha.Z)(px,2),bv=ya[0],wo=ya[1];re.useEffect(function(){uc(Cv),wo(yn),l0.current&&(zi?i_(Cd):mv(ec))},[Cv,yn]);var eo=re.useState(0),_M=(0,Ha.Z)(eo,2),o_=_M[0],LT=_M[1],Xl=o_>=vs.length-1||bi!=="horizontal"||yt;re.useEffect(function(){zi&&P1(ps)},[ps]),re.useEffect(function(){return l0.current=!0,function(){l0.current=!1}},[]);var s0=hm(),l_=s0.registerPath,EM=s0.unregisterPath,MM=s0.refreshOverflowKeys,s_=s0.isSubPathKey,QO=s0.getKeyPath,TM=s0.getKeys,OM=s0.getSubPathKeys,u_=re.useMemo(function(){return{registerPath:l_,unregisterPath:EM}},[l_,EM]),PT=re.useMemo(function(){return{isSubPathKey:s_}},[s_]);re.useEffect(function(){MM(Xl?ec:vs.slice(o_+1).map(function(os){return os.key}))},[o_,Xl]);var JO=(0,Wl.Z)(Hr||sn&&((y=vs[0])===null||y===void 0?void 0:y.key),{value:Hr}),Np=(0,Ha.Z)(JO,2),gy=Np[0],gx=Np[1],BT=dm(function(os){gx(os)}),c_=dm(function(){gx(void 0)});(0,re.useImperativeHandle)(p,function(){return{list:Wf.current,focus:function(Vo){var yl,Gf=TM(),Bc=Rg(Gf,Lh),p_=Bc.elements,kc=Bc.key2element,g_=Bc.element2key,FT=iw(Wf.current,p_),NT=gy!=null?gy:FT[0]?g_.get(FT[0]):(yl=vs.find(function(F1){return!F1.props.disabled}))===null||yl===void 0?void 0:yl.key,my=kc.get(NT);if(NT&&my){var u0;my==null||(u0=my.focus)===null||u0===void 0||u0.call(my,Vo)}}}});var f_=(0,Wl.Z)($e||[],{value:ft,postState:function(Vo){return Array.isArray(Vo)?Vo:Vo==null?ec:[Vo]}}),AM=(0,Ha.Z)(f_,2),k1=AM[0],h_=AM[1],eA=function(Vo){if(rn){var yl=Vo.key,Gf=k1.includes(yl),Bc;it?Gf?Bc=k1.filter(function(kc){return kc!==yl}):Bc=[].concat((0,Of.Z)(k1),[yl]):Bc=[yl],h_(Bc);var p_=(0,Co.Z)((0,Co.Z)({},Vo),{},{selectedKeys:Bc});Gf?gr==null||gr(p_):sr==null||sr(p_)}!it&&ps.length&&bi!=="inline"&&mv(ec)},tA=dm(function(os){ao==null||ao(bh(os)),eA(os)}),IM=dm(function(os,Vo){var yl=ps.filter(function(Bc){return Bc!==os});if(Vo)yl.push(os);else if(bi!=="inline"){var Gf=OM(os);yl=yl.filter(function(Bc){return!Gf.has(Bc)})}(0,ia.Z)(ps,yl,!0)||mv(yl,!0)}),d_=function(Vo,yl){var Gf=yl!=null?yl:!ps.includes(Vo);IM(Vo,Gf)},kT=NC(bi,gy,hf,Lh,Wf,TM,QO,gx,d_,Vi);re.useEffect(function(){gv(!0)},[]);var rA=re.useMemo(function(){return{_internalRenderMenuItem:Ga,_internalRenderSubMenuItem:bo}},[Ga,bo]),v_=bi!=="horizontal"||yt?vs:vs.map(function(os,Vo){return re.createElement(mh,{key:os.key,overflowDisabled:Vo>o_},os)}),RM=re.createElement(gh,(0,So.Z)({id:ut,ref:Wf,prefixCls:"".concat(P,"-overflow"),component:"ul",itemComponent:Ul,className:fe()(P,"".concat(P,"-root"),"".concat(P,"-").concat(bi),V,(0,Do.Z)((0,Do.Z)({},"".concat(P,"-inline-collapsed"),bv),"".concat(P,"-rtl"),hf),N),dir:Qe,style:$,role:"menu",tabIndex:ue,data:v_,renderRawItem:function(Vo){return Vo},renderRawRest:function(Vo){var yl=Vo.length,Gf=yl?vs.slice(-yl):null;return re.createElement(Zs,{eventKey:ow,title:va,disabled:Xl,internalPopupClose:yl===0,popupClassName:Ja},Gf)},maxCount:bi!=="horizontal"||yt?gh.INVALIDATE:gh.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Vo){LT(Vo)},onKeyDown:kT},Ls));return re.createElement(um.Provider,{value:rA},re.createElement(vl.Provider,{value:Lh},re.createElement(mh,{prefixCls:P,rootClassName:N,mode:bi,openKeys:ps,rtl:hf,disabled:Mt,motion:zf?$r:null,defaultMotions:zf?Zr:null,activeKey:gy,onActive:BT,onInactive:c_,selectedKeys:k1,inlineIndent:Wr,subMenuOpenDelay:Ye,subMenuCloseDelay:vt,forceSubMenuRender:At,builtinPlacements:xn,triggerSubMenuAction:pn,getPopupContainer:jo,itemIcon:Hi,expandIcon:ua,onItemClick:tA,onOpenChange:IM},re.createElement(dd.Provider,{value:PT},RM),re.createElement("div",{style:{display:"none"},"aria-hidden":!0},re.createElement(mp.Provider,{value:u_},ml)))))}),ym=Cp,Lg=ym;Lg.Item=Ul,Lg.SubMenu=Zs,Lg.ItemGroup=hw,Lg.Divider=bS;var ov=Lg,Cm=rt(30808);function vw(d,p){return d.classList?!!p&&d.classList.contains(p):(" "+(d.className.baseVal||d.className)+" ").indexOf(" "+p+" ")!==-1}function xS(d,p){d.classList?d.classList.add(p):vw(d,p)||(typeof d.className=="string"?d.className=d.className+" "+p:d.setAttribute("class",(d.className&&d.className.baseVal||"")+" "+p))}function UC(d,p){return d.replace(new RegExp("(^|\\s)"+p+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function SS(d,p){d.classList?d.classList.remove(p):typeof d.className=="string"?d.className=UC(d.className,p):d.setAttribute("class",UC(d.className&&d.className.baseVal||"",p))}var _S={disabled:!1},bm=ie().createContext(null),YC=function(p){return p.scrollTop},Pg="unmounted",bp="exited",lv="entering",wp="entered",jC="exiting",tc=function(d){(0,_n.Z)(p,d);function p(w,I){var P;P=d.call(this,w,I)||this;var N=I,$=N&&!N.isMounting?w.enter:w.appear,V;return P.appearStatus=null,w.in?$?(V=bp,P.appearStatus=lv):V=wp:w.unmountOnExit||w.mountOnEnter?V=Pg:V=bp,P.state={status:V},P.nextCallback=null,P}p.getDerivedStateFromProps=function(I,P){var N=I.in;return N&&P.status===Pg?{status:bp}:null};var y=p.prototype;return y.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},y.componentDidUpdate=function(I){var P=null;if(I!==this.props){var N=this.state.status;this.props.in?N!==lv&&N!==wp&&(P=lv):(N===lv||N===wp)&&(P=jC)}this.updateStatus(!1,P)},y.componentWillUnmount=function(){this.cancelNextCallback()},y.getTimeouts=function(){var I=this.props.timeout,P,N,$;return P=N=$=I,I!=null&&typeof I!="number"&&(P=I.exit,N=I.enter,$=I.appear!==void 0?I.appear:N),{exit:P,enter:N,appear:$}},y.updateStatus=function(I,P){if(I===void 0&&(I=!1),P!==null)if(this.cancelNextCallback(),P===lv){if(this.props.unmountOnExit||this.props.mountOnEnter){var N=this.props.nodeRef?this.props.nodeRef.current:Ht().findDOMNode(this);N&&YC(N)}this.performEnter(I)}else this.performExit();else this.props.unmountOnExit&&this.state.status===bp&&this.setState({status:Pg})},y.performEnter=function(I){var P=this,N=this.props.enter,$=this.context?this.context.isMounting:I,V=this.props.nodeRef?[$]:[Ht().findDOMNode(this),$],J=V[0],ue=V[1],_e=this.getTimeouts(),Se=$?_e.appear:_e.enter;if(!I&&!N||_S.disabled){this.safeSetState({status:wp},function(){P.props.onEntered(J)});return}this.props.onEnter(J,ue),this.safeSetState({status:lv},function(){P.props.onEntering(J,ue),P.onTransitionEnd(Se,function(){P.safeSetState({status:wp},function(){P.props.onEntered(J,ue)})})})},y.performExit=function(){var I=this,P=this.props.exit,N=this.getTimeouts(),$=this.props.nodeRef?void 0:Ht().findDOMNode(this);if(!P||_S.disabled){this.safeSetState({status:bp},function(){I.props.onExited($)});return}this.props.onExit($),this.safeSetState({status:jC},function(){I.props.onExiting($),I.onTransitionEnd(N.exit,function(){I.safeSetState({status:bp},function(){I.props.onExited($)})})})},y.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},y.safeSetState=function(I,P){P=this.setNextCallback(P),this.setState(I,P)},y.setNextCallback=function(I){var P=this,N=!0;return this.nextCallback=function($){N&&(N=!1,P.nextCallback=null,I($))},this.nextCallback.cancel=function(){N=!1},this.nextCallback},y.onTransitionEnd=function(I,P){this.setNextCallback(P);var N=this.props.nodeRef?this.props.nodeRef.current:Ht().findDOMNode(this),$=I==null&&!this.props.addEndListener;if(!N||$){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var V=this.props.nodeRef?[this.nextCallback]:[N,this.nextCallback],J=V[0],ue=V[1];this.props.addEndListener(J,ue)}I!=null&&setTimeout(this.nextCallback,I)},y.render=function(){var I=this.state.status;if(I===Pg)return null;var P=this.props,N=P.children,$=P.in,V=P.mountOnEnter,J=P.unmountOnExit,ue=P.appear,_e=P.enter,Se=P.exit,Qe=P.timeout,ut=P.addEndListener,je=P.onEnter,He=P.onEntering,gt=P.onEntered,Mt=P.onExit,yt=P.onExiting,Wt=P.onExited,Ye=P.nodeRef,_t=(0,Cm.Z)(P,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ie().createElement(bm.Provider,{value:null},typeof N=="function"?N(I,_t):ie().cloneElement(ie().Children.only(N),_t))},p}(ie().Component);tc.contextType=bm,tc.propTypes={};function vd(){}tc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:vd,onEntering:vd,onEntered:vd,onExit:vd,onExiting:vd,onExited:vd},tc.UNMOUNTED=Pg,tc.EXITED=bp,tc.ENTERING=lv,tc.ENTERED=wp,tc.EXITING=jC;var rc=tc,pd=function(p,y){return p&&y&&y.split(" ").forEach(function(w){return xS(p,w)})},VC=function(p,y){return p&&y&&y.split(" ").forEach(function(w){return SS(p,w)})},XC=function(d){(0,_n.Z)(p,d);function p(){for(var w,I=arguments.length,P=new Array(I),N=0;Nd.length)&&(p=d.length);for(var y=0,w=new Array(p);yd.length)&&(p=d.length);for(var y=0,w=new Array(p);y0&&arguments[0]!==void 0?arguments[0]:N.x,Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:N.y;P(!1);var hr=qC(qC({},N),{},{x:At,y:Kt});Nr(_m.get(wh.SortPopover),hr,V)};return re.createElement(MS,{visible:!0,onEntered:function(){ut(!0)}},re.createElement("div",{className:fe()("column-menu-container","col-menu-modal-container"),ref:He,style:Mt,onMouseDown:function(At){return At.stopPropagation()}},re.createElement(ov,{getPopupContainer:function(At){return He.current},ref:je,className:fe()("menu",{light:gt}),onSelect:function(At){[Ce.Xzc.ASC,Ce.Xzc.DESC].includes(At.key)?Wt(At.key):(J&&J(Ur.setType),KC.emit("typeChange",{fieldName:N.fieldName,type:At.key})),P(!1)}},re.createElement(Ul,{key:Ce.Xzc.ASC},re.createElement("div",{className:"sort"},re.createElement(Te,{type:"one-icon dataphin-icon icon-riqi1"}),"\u5347\u5E8F",yt===Ce.Xzc.ASC?re.createElement(Te,{className:"icon",type:"one-icon icon-duihao anticon-dpicon"}):null)),re.createElement(Ul,{key:Ce.Xzc.DESC},re.createElement("div",{className:"sort"},re.createElement(Te,{type:"one-icon dataphin-icon icon-riqi"}),"\u964D\u5E8F",yt===Ce.Xzc.DESC?re.createElement(Te,{className:"icon",type:"one-icon icon-duihao anticon-dpicon"}):null)),re.createElement(Ul,{key:"filter"},re.createElement("div",{onClick:function(At){_t(At.clientX,At.clientY)}},re.createElement(Te,{type:"one-icon icon-shaixuan3"}),"\u7B5B\u9009")),re.createElement(Zs,{getPopupContainer:function(At){return He.current},popupClassName:fe()("menu",{light:gt}),popupOffset:[0,0],rootClassName:"menu",key:"col",title:re.createElement("div",{className:"colSubmenu"},re.createElement(Te,{type:"one-icon icon-site-special anticon-dpicon"}),"\u5217\u8BBE\u7F6E")},re.createElement(Ul,{key:pi.Number},re.createElement("div",{className:"subMenuItem"},"\u6570\u503C",Ye===pi.Number?re.createElement(Te,{type:"one-icon icon-duihao anticon-dpicon"}):null)),re.createElement(Ul,{key:pi.String},re.createElement("div",{className:"subMenuItem"},"\u5B57\u7B26\u4E32",Ye===pi.String?re.createElement(Te,{type:"one-icon icon-duihao anticon-dpicon"}):null)),re.createElement(Ul,{key:pi.Date},re.createElement("div",{className:"subMenuItem"},"\u65E5\u671F",Ye===pi.Date?re.createElement(Te,{type:"one-icon icon-duihao anticon-dpicon"}):null))))))},Sp=e1,wh=function(d){return d.SortPopover="SortPopover",d.ColumnMenu="ColumnMenu",d.EditInput="EditInput",d}(wh||{}),_m=new Map,t1=function(p,y){_m.set(p,y)};t1(wh.SortPopover,OC),t1(wh.ColumnMenu,Sp);var IS=rt(16532);function uu(d){"@babel/helpers - typeof";return uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},uu(d)}function RS(d){return LS(d)||mw(d)||BS(d)||DS()}function DS(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mw(d){if(typeof Symbol!="undefined"&&d[Symbol.iterator]!=null||d["@@iterator"]!=null)return Array.from(d)}function LS(d){if(Array.isArray(d))return r1(d)}function PS(d,p){return dE(d)||hE(d,p)||BS(d,p)||yw()}function yw(){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 BS(d,p){if(d){if(typeof d=="string")return r1(d,p);var y=Object.prototype.toString.call(d).slice(8,-1);if(y==="Object"&&d.constructor&&(y=d.constructor.name),y==="Map"||y==="Set")return Array.from(d);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return r1(d,p)}}function r1(d,p){(p==null||p>d.length)&&(p=d.length);for(var y=0,w=new Array(p);y=_e?N[_e]!==void 0?isEqual(P[_e],N[_e])||($.pre[Se]=!0,$.next[Se]=!0):$.pre[Se]=!0:$.next[Se]=!0}return p&&kg in p&&($.pre={}),y&&kg in y&&($.next={}),$},mE=function(p,y){if(!(!(p!=null&&p.length)&&!(y!=null&&y.length))){for(var w=Math.max(p.length,y.length),I=0;I=0&&p1&&arguments[1]!==void 0?arguments[1]:!1;if(p.getMeta().showIconInColumnCell)return!1;var w=p.getMeta();return w.rowIndex===0&&w.colIndex>0&&y},gd=26,GS=74,Sh=4,Am=26,Ng=16,Mw=4,Tw=4,Ow=gd+Sh-Mw,Ep=GS+Sh-Mw,Aw="#effbe5",Iw="#ffefe5",eT=function(d){Sw(y,d);var p=_w(y);function y(w,I){var P;return CE(this,y),P=p.call(this,w,I),P.isRowHeader=!1,P.isMaskCol=!1,P}return QM(y,[{key:"initCell",value:function(){var I;this.isRowHeader=JM(this,this.spreadsheet.dataCfg.sortable||!1),this.isRowHeader&&(this.isMaskCol=en.test(this.getFormattedFieldValue().formattedValue)),xh(Mc(y.prototype),"initCell",this).call(this),!this.meta.showIconInColumnCell&&this.drawActionIcon(),(I=this.spreadsheet.dataCfg)!==null&&I!==void 0&&I.compareType&&this.drawCompareColor(),this.meta.useDiagnosis&&this.getDiagniosis();var P=this.spreadsheet.dataCfg.data[this.meta.rowIndex];P&&kg in P&&this.drawPlaceholder()}},{key:"showTooltip",value:function(I){var P=I.clientX,N=I.clientY;this.spreadsheet.tooltip.show({content:"\u5F53\u524D\u5B57\u6BB5\u5206\u533A\u7684\u6570\u636E\u672A\u4EA7\u51FA",position:{x:P,y:N}})}},{key:"getFormattedFieldValue",value:function(){var I=this,P=xh(Mc(y.prototype),"getFormattedFieldValue",this).call(this);return od.forEach(function(N){N.condition(I,I.spreadsheet)&&(P.formattedValue=N.parse(I,I.spreadsheet))}),P}},{key:"compareToolTip",value:function(I){var P,N=this,$=I.clientX,V=I.clientY,J=this.meta,ue=J.colIndex,_e=J.rowIndex,Se=this.spreadsheet.dataCfg;(Se==null?void 0:Se.showCompareDetail)!==!1&&(P=Se.data)!==null&&P!==void 0&&(P=P[_e])!==null&&P!==void 0&&P[ue]&&(this.spreadsheet.tooltip.show({content:"\u53CC\u51FB\u4EE5\u67E5\u770B\u8BE6\u7EC6\u6BD4\u5BF9\u5185\u5BB9",position:{x:$,y:V}}),this.on("mouseout",function(Qe){N.spreadsheet.tooltip.hide()}))}},{key:"clearCompareToolTip",value:function(I){var P=I.clientX,N=I.clientY;this.spreadsheet.tooltip.hide()}},{key:"drawTextShape",value:function(){var I=this.meta,P=I.valueField,N=I.rowIndex,$=I.spreadsheet,V=$.dataCfg,J=(0,oe.get)(V,"data.".concat(N,".").concat(P,"diffPosition")),ue=Array.isArray(J)&&(0,oe.size)(J)>0;ue&&this.drawDiffTextShape(),xh(Mc(y.prototype),"drawTextShape",this).call(this)}},{key:"drawDiffTextShape",value:function(){var I=this,P=this.meta,N=P.valueField,$=P.rowIndex,V=P.spreadsheet,J=this.spreadsheet.dataCfg.compareType==="src"?"#ff9c6e80":"#95de6480",ue=this.getFormattedFieldValue(),_e=ue.formattedValue,Se=xh(Mc(y.prototype),"getMaxTextWidth",this).call(this),Qe=this.getTextStyle(),ut=this.spreadsheet,je=ut.options.placeholder,He=ut.measureTextWidth,gt=(0,Ce.o3g)(this,je),Mt=(0,Ce.Lov)({measureTextWidth:He,text:_e,maxWidth:Se,fontParam:Qe,placeholder:gt}),yt=this.getTextPosition(),Wt=(0,oe.endsWith)(Mt,Ce.SBE),Ye=new ql(V,$,N,Wt?Mt.replace(Ce.SBE,""):Mt).caculate(),_t=Fh({isEllips:Wt,diffResult:Ye,textStyle:Qe,ellips:Ce.SBE});_t.forEach(function(vt,At){if(_p(vt)==="object"){var Kt={width:He(vt.value,Qe),textAlign:Qe.textAlign,height:10,fill:J,x:Bs({textMap:_t,index:At,x:yt.x,measureTextWidth:He,textStyle:Qe}),y:yt.y-5};(0,Ce.gO9)(I,Kt)}})}},{key:"getCellArea",value:function(){var I=this.meta,P=I.x,N=I.y,$=I.height,V=I.width,J=this.spreadsheet.dataCfg.summaryRowCfg;if(J&&J.visible&&!this.meta.showIconInColumnCell&&this.meta.rowIndex===J.rowIndex){var ue=Za,_e=(this.spreadsheet.options.style.rowCfg.heightByField||{})[String(this.meta.rowIndex)];return _e&&(ue=_e-J.height),{x:P,y:N,height:ue,width:V}}return{x:P,y:N,height:$,width:V}}},{key:"getTextStyle",value:function(){var I=xh(Mc(y.prototype),"getTextStyle",this).call(this),P=this.spreadsheet.dataCfg.types,N=this.meta.valueField;return P[N]===pi.Number&&(I.textAlign="right"),I}},{key:"getStyle",value:function(){var I,P=xh(Mc(y.prototype),"getStyle",this).call(this),N=this.meta,$=N.colIndex,V=N.rowIndex,J=N.fieldValue,ue=N.valueField,_e=N.x,Se=N.y,Qe=N.newDesensitize,ut=this.spreadsheet.dataCfg;if((I=ut.data)!==null&&I!==void 0&&(I=I[V])!==null&&I!==void 0&&I[$]){var je,He=(je=this.spreadsheet.theme)===null||je===void 0?void 0:je.compareTable,gt;if((ut==null?void 0:ut.compareType)==="src"){var Mt;gt=(He==null||(Mt=He.sourceTable)===null||Mt===void 0?void 0:Mt.background)||Iw}else{var yt;gt=(He==null||(yt=He.targetTable)===null||yt===void 0?void 0:yt.background)||Aw}return Rs(Rs({},P),{},{cell:Rs(Rs({},P.cell),{},{backgroundColor:gt,crossBackgroundColor:gt})})}return this.isRowHeader&&this.isMaskCol?Rs(Rs({},P),{},{cell:Rs(Rs({},P.cell),{},{padding:Rs(Rs({},P.cell.padding),{},{left:Qe?Ep+P.cell.padding.left:Ow+P.cell.padding.left})})}):P}},{key:"getIconStyle",value:function(){var I,P,N=(I=this.theme)===null||I===void 0||(I=I.dataCell)===null||I===void 0?void 0:I.icon,$=N.size,V=N.margin,J=this.findFieldCondition((P=this.conditions)===null||P===void 0?void 0:P.icon),ue={size:$,margin:V,position:Tm(J)};if(J||this.isRowHeader)return ue}},{key:"isInproduced",value:function(){var I=this.getCustomMeta();return!!(I!=null&&I.inproduced)}},{key:"getCustomMeta",value:function(){var I=this.meta;return(0,oe.find)(I.spreadsheet.dataCfg.meta,{field:I.field||I.value||I.valueField})}},{key:"drawBackgroundShape",value:function(){var I,P=this,N=this.getBackgroundColor(),$=N.backgroundColor,V=N.backgroundColorOpacity,J=$,ue=(I=this.getCustomMeta())===null||I===void 0?void 0:I.conditionalFormatters;ue&&Array.isArray(ue)?J=ue.reduce(function(_e,Se){return Se(P.meta.fieldValue)||_e},J):this.isRowHeader&&this.isInproduced()&&(J="#3b273f"),this.backgroundShape=(0,Ce.gO9)(this,Rs(Rs({},this.getCellArea()),{},{fill:J,fillOpacity:V}))}},{key:"drawActionIcon",value:function(){var I=this,P=this.getCellArea(),N=P.x,$=this.getContentArea(),V=$.x,J=$.width;if(this.isRowHeader){var ue,_e,Se,Qe,ut,je,He,gt,Mt,yt,Wt=Qa(this.meta.valueField,this.spreadsheet.dataCfg.sortParams),Ye=sp(this.meta.valueField,this.spreadsheet.dataCfg.filterParams),_t=Ye.filteredValues.length||Ye.customFilter,vt=this.spreadsheet.theme.filterIcon,At={fill:(vt==null?void 0:vt.color)||"white",name:Om[Wt.toLowerCase()]},Kt=this.getIconPosition(),hr=this.getCellArea(),Hr=(ue=this.theme)===null||ue===void 0||(ue=ue.dataCell)===null||ue===void 0?void 0:ue.icon,sn=Hr.size,on=sn===void 0?0:sn,rn=Hr.margin,hn={x:V+J-((_e=rn==null?void 0:rn.right)!==null&&_e!==void 0?_e:0)-on+Tw,y:Kt.y},it=_t?((Se=this.spreadsheet.theme.filterIcon)===null||Se===void 0?void 0:Se.activeBackground)||((Qe=this.spreadsheet.theme.background)===null||Qe===void 0?void 0:Qe.color)||"#fff":((ut=this.spreadsheet.theme.filterIcon)===null||ut===void 0?void 0:ut.background)||((je=this.spreadsheet.theme.background)===null||je===void 0?void 0:je.color)||"#fff",$e=(0,Ce.gO9)(this,Rs(Rs({},hn),{},{width:on,height:on,lineWidth:2,lineJoin:"round",fill:_t?((He=this.spreadsheet.theme.filterIcon)===null||He===void 0?void 0:He.activeBackground)||((gt=this.spreadsheet.theme.background)===null||gt===void 0?void 0:gt.color)||"#fff":((Mt=this.spreadsheet.theme.filterIcon)===null||Mt===void 0?void 0:Mt.background)||((yt=this.spreadsheet.theme.background)===null||yt===void 0?void 0:yt.color)||"#fff"})),ft=(0,Ce.hYO)(this,Rs({x:hn.x+3,y:hn.y+3,width:on-6,height:on-6},At));if(this.isMaskCol){var sr=hr.heightP+V?P+V:gt;Se.push([He,N+$],[Mt,N+$])}break}return Se}},{key:"drawPlaceholder",value:function(){(0,Ce.JVc)(this,{points:this.getPloyLinePoint(),stroke:this.spreadsheet.theme.cornerCell.cell.verticalBorderColor,strokeOpacity:.7})}}]),y}(Ce.esq),$S=eT;function a1(d){"@babel/helpers - typeof";return a1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},a1(d)}function Im(){"use strict";Im=function(){return p};var d,p={},y=Object.prototype,w=y.hasOwnProperty,I=Object.defineProperty||function(it,$e,ft){it[$e]=ft.value},P=typeof Symbol=="function"?Symbol:{},N=P.iterator||"@@iterator",$=P.asyncIterator||"@@asyncIterator",V=P.toStringTag||"@@toStringTag";function J(it,$e,ft){return Object.defineProperty(it,$e,{value:ft,enumerable:!0,configurable:!0,writable:!0}),it[$e]}try{J({},"")}catch(it){J=function(ft,sr,gr){return ft[sr]=gr}}function ue(it,$e,ft,sr){var gr=$e&&$e.prototype instanceof gt?$e:gt,_r=Object.create(gr.prototype),Wr=new rn(sr||[]);return I(_r,"_invoke",{value:hr(it,ft,Wr)}),_r}function _e(it,$e,ft){try{return{type:"normal",arg:it.call($e,ft)}}catch(sr){return{type:"throw",arg:sr}}}p.wrap=ue;var Se="suspendedStart",Qe="suspendedYield",ut="executing",je="completed",He={};function gt(){}function Mt(){}function yt(){}var Wt={};J(Wt,N,function(){return this});var Ye=Object.getPrototypeOf,_t=Ye&&Ye(Ye(hn([])));_t&&_t!==y&&w.call(_t,N)&&(Wt=_t);var vt=yt.prototype=gt.prototype=Object.create(Wt);function At(it){["next","throw","return"].forEach(function($e){J(it,$e,function(ft){return this._invoke($e,ft)})})}function Kt(it,$e){function ft(gr,_r,Wr,$r){var Zr=_e(it[gr],it,_r);if(Zr.type!=="throw"){var Wn=Zr.arg,pn=Wn.value;return pn&&a1(pn)=="object"&&w.call(pn,"__await")?$e.resolve(pn.__await).then(function(xn){ft("next",xn,Wr,$r)},function(xn){ft("throw",xn,Wr,$r)}):$e.resolve(pn).then(function(xn){Wn.value=xn,Wr(Wn)},function(xn){return ft("throw",xn,Wr,$r)})}$r(Zr.arg)}var sr;I(this,"_invoke",{value:function(_r,Wr){function $r(){return new $e(function(Zr,Wn){ft(_r,Wr,Zr,Wn)})}return sr=sr?sr.then($r,$r):$r()}})}function hr(it,$e,ft){var sr=Se;return function(gr,_r){if(sr===ut)throw new Error("Generator is already running");if(sr===je){if(gr==="throw")throw _r;return{value:d,done:!0}}for(ft.method=gr,ft.arg=_r;;){var Wr=ft.delegate;if(Wr){var $r=Hr(Wr,ft);if($r){if($r===He)continue;return $r}}if(ft.method==="next")ft.sent=ft._sent=ft.arg;else if(ft.method==="throw"){if(sr===Se)throw sr=je,ft.arg;ft.dispatchException(ft.arg)}else ft.method==="return"&&ft.abrupt("return",ft.arg);sr=ut;var Zr=_e(it,$e,ft);if(Zr.type==="normal"){if(sr=ft.done?je:Qe,Zr.arg===He)continue;return{value:Zr.arg,done:ft.done}}Zr.type==="throw"&&(sr=je,ft.method="throw",ft.arg=Zr.arg)}}}function Hr(it,$e){var ft=$e.method,sr=it.iterator[ft];if(sr===d)return $e.delegate=null,ft==="throw"&&it.iterator.return&&($e.method="return",$e.arg=d,Hr(it,$e),$e.method==="throw")||ft!=="return"&&($e.method="throw",$e.arg=new TypeError("The iterator does not provide a '"+ft+"' method")),He;var gr=_e(sr,it.iterator,$e.arg);if(gr.type==="throw")return $e.method="throw",$e.arg=gr.arg,$e.delegate=null,He;var _r=gr.arg;return _r?_r.done?($e[it.resultName]=_r.value,$e.next=it.nextLoc,$e.method!=="return"&&($e.method="next",$e.arg=d),$e.delegate=null,He):_r:($e.method="throw",$e.arg=new TypeError("iterator result is not an object"),$e.delegate=null,He)}function sn(it){var $e={tryLoc:it[0]};1 in it&&($e.catchLoc=it[1]),2 in it&&($e.finallyLoc=it[2],$e.afterLoc=it[3]),this.tryEntries.push($e)}function on(it){var $e=it.completion||{};$e.type="normal",delete $e.arg,it.completion=$e}function rn(it){this.tryEntries=[{tryLoc:"root"}],it.forEach(sn,this),this.reset(!0)}function hn(it){if(it||it===""){var $e=it[N];if($e)return $e.call(it);if(typeof it.next=="function")return it;if(!isNaN(it.length)){var ft=-1,sr=function gr(){for(;++ft=0;--gr){var _r=this.tryEntries[gr],Wr=_r.completion;if(_r.tryLoc==="root")return sr("end");if(_r.tryLoc<=this.prev){var $r=w.call(_r,"catchLoc"),Zr=w.call(_r,"finallyLoc");if($r&&Zr){if(this.prev<_r.catchLoc)return sr(_r.catchLoc,!0);if(this.prev<_r.finallyLoc)return sr(_r.finallyLoc)}else if($r){if(this.prev<_r.catchLoc)return sr(_r.catchLoc,!0)}else{if(!Zr)throw new Error("try statement without catch or finally");if(this.prev<_r.finallyLoc)return sr(_r.finallyLoc)}}}},abrupt:function($e,ft){for(var sr=this.tryEntries.length-1;sr>=0;--sr){var gr=this.tryEntries[sr];if(gr.tryLoc<=this.prev&&w.call(gr,"finallyLoc")&&this.prev=0;--ft){var sr=this.tryEntries[ft];if(sr.finallyLoc===$e)return this.complete(sr.completion,sr.afterLoc),on(sr),He}},catch:function($e){for(var ft=this.tryEntries.length-1;ft>=0;--ft){var sr=this.tryEntries[ft];if(sr.tryLoc===$e){var gr=sr.completion;if(gr.type==="throw"){var _r=gr.arg;on(sr)}return _r}}throw new Error("illegal catch attempt")},delegateYield:function($e,ft,sr){return this.delegate={iterator:hn($e),resultName:ft,nextLoc:sr},this.method==="next"&&(this.arg=d),He}},p}function Rw(d,p,y,w,I,P,N){try{var $=d[P](N),V=$.value}catch(J){y(J);return}$.done?p(V):Promise.resolve(V).then(w,I)}function US(d){return function(){var p=this,y=arguments;return new Promise(function(w,I){var P=d.apply(p,y);function N(V){Rw(P,w,I,N,$,"next",V)}function $(V){Rw(P,w,I,N,$,"throw",V)}N(void 0)})}}var bE=function(p){return/^\s*$/.test(p)},YS=function(p){var y=useSpreadSheet(),w=y.spreadsheet,I=y.commandManager,P=y.logger,N=p.disablePaste,$=p.disableModifyColumns,V=$===void 0?[]:$;return useEffect(function(){var J=function(){var ue=US(Im().mark(function _e(Se){var Qe,ut,je,He,gt,Mt,yt,Wt,Ye,_t,vt,At,Kt,hr,Hr;return Im().wrap(function(on){for(;;)switch(on.prev=on.next){case 0:Qe=!0;try{ut=w.interaction.getInteractedCells().filter(function(rn){return rn.cellType===CellTypes.DATA_CELL})[0].getMeta(),je=document.activeElement,ut&&Qe&&(je==null?void 0:je.tagName)==="BODY"&&(He=ut.rowIndex,gt=ut.colIndex,Mt=w.dataSet.originData,yt=Se.clipboardData,Wt=[],yt.types.includes("text/html")?(_t=new DOMParser().parseFromString(yt.getData("text/html"),"text/html"),vt=Array.from(_t.querySelectorAll("table tr")),vt.length===0?Wt=[[((Ye=_t.querySelectorAll("span")[0])===null||Ye===void 0?void 0:Ye.textContent)||""]]:Wt=vt.map(function(rn){return Array.from(rn.children).map(function(hn){var it=hn.textContent||"";return bE(it)?"":it.trimEnd()})})):yt.types.includes("text/plain")&&(yt.getData("text/plain").includes(` +`)?Wt=yt.getData("text/plain").split(` +`).map(function(rn){return rn.split(" ")}):Wt=[[yt.getData("text/plain")]]),Wt.length===1&&Wt[0].length===1?(At=(Wt[0][0]||"").replace(/^\"|\"$/g,""),Kt=w.interaction.getInteractedCells().filter(function(rn){return rn instanceof DataCell}).map(function(rn){var hn=new EditCellMeta,it=rn.getMeta(),$e=it.rowIndex,ft=it.valueField,sr=getDisplayRowMappedIndex($e,w);return hn.oldValue=Mt[$e][ft],hn.newValue=At,hn.rowIndex=sr,hn.valueField=ft,hn}).filter(Boolean).filter(function(rn){return!V.includes(rn.valueField)}).map(function(rn){return{id:CommandId.EDITCELL,params:rn}}),I.commit(Kt)):(hr=w.dataCfg.fields.columns,Hr=flatten(Wt.map(function(rn,hn){var it=getDisplayRowMappedIndex(He+hn,w);if(it===-1){var $e={};return hr.slice(gt-1,rn.length).forEach(function(ft,sr){$e[ft]=rn[sr]}),{id:CommandId.ADDROW,params:{count:1,index:w.dataSet.originData.length,presetData:$e}}}else return rn.map(function(ft,sr){var gr=(ft||"").replace(/^\"|\"$/g,""),_r=gt+sr-1;if(_r<=hr.length){var Wr=hr[_r],$r=new EditCellMeta;return $r.oldValue=Mt[He][Wr],$r.newValue=gr,$r.rowIndex=it,$r.valueField=Wr,$r}}).filter(Boolean).filter(function(ft){return!V.includes(ft.valueField)}).map(function(ft){return{id:CommandId.EDITCELL,params:ft}})}).reverse()),I.commit(Hr)),w.emit(CustomS2Event.PASTE_SUCCESS,Se,w.dataSet.originData),P(S2tableLogKey.pasteFromClipboard))}catch(rn){console.info(rn)}case 2:case"end":return on.stop()}},_e)}));return function(Se){return ue.apply(this,arguments)}}();return N||window.addEventListener("paste",J),function(){window.removeEventListener("paste",J)}},[N,V]),null};function wE(d,p){return SE(d)||xE(d,p)||tT(d,p)||Rm()}function Rm(){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 tT(d,p){if(d){if(typeof d=="string")return Dw(d,p);var y=Object.prototype.toString.call(d).slice(8,-1);if(y==="Object"&&d.constructor&&(y=d.constructor.name),y==="Map"||y==="Set")return Array.from(d);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return Dw(d,p)}}function Dw(d,p){(p==null||p>d.length)&&(p=d.length);for(var y=0,w=new Array(p);y=gt?$(Dm.TOP):$(Dm.BOTTOM),V.current=He}},300);useS2EventHandler(S2Event.GLOBAL_SCROLL,J);var ue=React.useMemo(function(){return N===Dm.TOP?i18n("backTop"):i18n("backBottom")},[N]),_e=React.useCallback(function(){if(N===Dm.TOP)scrollToCell(0,0,w);else{var Se,Qe=(w==null||(Se=w.dataSet)===null||Se===void 0?void 0:Se.originData)||[];scrollToCell(Qe.length-1,1,w)}},[N,w==null||(p=w.dataSet)===null||p===void 0?void 0:p.originData]);return N?React.createElement(React.Fragment,null,React.createElement(Tooltip,{title:ue,placement:"left"},React.createElement("div",{className:"back-top-icon","data-scroll":N===Dm.TOP,onClick:_e},React.createElement(AliIcon,{type:"anticon anticon-dpicon one-icon icon-zhiding"})))):null},Lm=function(){var p=useSpreadSheet(),y=p.spreadsheet,w=p.commandManager;return React.useEffect(function(){var I=function(N){try{var $=N.keyCode||N.which,V=y.interaction.getInteractedCells().filter(function(ue){return ue.cellType===CellTypes.DATA_CELL}),J=document.activeElement;$===8&&V!==null&&V!==void 0&&V.length&&(J==null?void 0:J.tagName)==="BODY"&&(N.preventDefault(),N.stopPropagation(),deleteContent(y,w))}catch(ue){console.info(ue)}};return window.addEventListener("keydown",I),function(){window.removeEventListener("keydown",I)}},[]),null},jS=function(p){var y=p.nodeList,w=y===void 0?[]:y,I=p.left,P=p.top,N=p.onDragStart,$=p.onDragEnd,V=p.onDragOver,J=p.onDragEnter,ue=p.onDrop;return React.createElement("div",{className:"weave-column-drag-container"},React.createElement("div",{className:"weave-column-drag-container-list",style:{left:"-".concat(I||0,"px"),top:"".concat(P||0,"px")}},w==null?void 0:w.map(function(_e){return React.createElement("div",{style:{width:"".concat(_e.width,"px"),height:"".concat(_e.height,"px"),userSelect:"none"},"data-cell":_e.id,draggable:!0,onDragStart:N,onDragEnd:$,onDragOver:V,onDragEnter:J,onDrop:ue})})))},Lw=null;function sv(d){"@babel/helpers - typeof";return sv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},sv(d)}function VS(d,p){var y=Object.keys(d);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(d);p&&(w=w.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),y.push.apply(y,w)}return y}function zg(d){for(var p=1;pd.length)&&(p=d.length);for(var y=0,w=new Array(p);yd.length)&&(p=d.length);for(var y=0,w=new Array(p);y1&&arguments[1]!==void 0?arguments[1]:ME.loading,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,I=ie().lazy(function(){return Fw(p)});return function(P){return ie().createElement(re.Suspense,{fallback:w?ie().createElement("div",{className:fe()("dynamic-import-loading",y)},ie().createElement(Zt.Spin,null)):null},ie().createElement(I,P))}},Nm=JS,Hm=function(){var d=function(p,y){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,I){w.__proto__=I}||function(w,I){for(var P in I)Object.prototype.hasOwnProperty.call(I,P)&&(w[P]=I[P])},d(p,y)};return function(p,y){d(p,y);function w(){this.constructor=p}p.prototype=y===null?Object.create(y):(w.prototype=y.prototype,new w)}}(),is=function(){return is=Object.assign||function(d){for(var p,y=1,w=arguments.length;yd.length)&&(p=d.length);for(var y=0,w=new Array(p);y=0)&&Object.prototype.propertyIsEnumerable.call(d,w)&&(y[w]=d[w])}return y}function DE(d,p){if(d==null)return{};var y={},w=Object.keys(d),I,P;for(P=0;P=0)&&(y[I]=d[I]);return y}var u2=function(p,y){return Math.min(Math.max(p,0),y)},p1=function(p){var y=p.overlayClassName,w=p.getInitailPositon,I=p.savePosition,P=I===void 0?oe.noop:I,N=p.children,$=p.zIndex,V=RE(p,d1),J=w(),ue=J.position,_e=J.size,Se=ie().useState(ue),Qe=Hw(Se,2),ut=Qe[0],je=Qe[1],He=ie().useState(_e),gt=Hw(He,2),Mt=gt[0],yt=gt[1],Wt=ie().useRef(!1),Ye=ie().useRef({x:0,y:0}),_t=ie().useRef({width:0,height:0});ie().useEffect(function(){var Kt=(0,oe.throttle)(function(Hr){if(Wt.current){Hr.preventDefault();var sn=Hr.clientX,on=Hr.clientY,rn=sn-Ye.current.x,hn=on-Ye.current.y,it=window.innerHeight-_e.height,$e=window.innerWidth-_e.width;je(function(ft){return{top:u2(ft.top+hn,it),right:u2(ft.right-rn,$e)}}),Ye.current={x:sn,y:on}}},10,{leading:!0}),hr=function(){P&&P(ut,Mt),Wt.current=!1};return window.addEventListener("mousemove",Kt),window.addEventListener("mouseup",hr),function(){window.removeEventListener("mousemove",Kt),window.removeEventListener("mouseup",hr)}},[P,ut,Mt,Wt.current]);var vt=function(hr){return hr.stopPropagation()},At=function(hr){hr.stopPropagation(),hr.preventDefault(),Wt.current=!0,Ye.current={x:hr.clientX,y:hr.clientY}};return ie().createElement("div",{className:y,style:Yg(Yg(Yg({},ut),Mt),{},{zIndex:$},V.style)},ie().createElement(OE,jm({},V,{onResizeStart:function(){_t.current=Yg({},Mt)},onResize:function(hr,Hr,sn,on){var rn,hn,it=(_t==null||(rn=_t.current)===null||rn===void 0?void 0:rn.width)+on.width,$e=(_t==null||(hn=_t.current)===null||hn===void 0?void 0:hn.height)+on.height;yt({width:it,height:$e})},size:Mt,maxWidth:window.innerWidth,maxHeight:window.innerHeight}),oe.isFunction?N({onClick:vt,onMouseDown:At}):N))},zw=p1,LE=rt(14214),g1=rt(30095);function PE(d,p){return kE(d)||f2(d,p)||jg(d,p)||BE()}function BE(){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 jg(d,p){if(d){if(typeof d=="string")return c2(d,p);var y=Object.prototype.toString.call(d).slice(8,-1);if(y==="Object"&&d.constructor&&(y=d.constructor.name),y==="Map"||y==="Set")return Array.from(d);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return c2(d,p)}}function c2(d,p){(p==null||p>d.length)&&(p=d.length);for(var y=0,w=new Array(p);yd.length)&&(p=d.length);for(var y=0,w=new Array(p);y=0)&&Object.prototype.propertyIsEnumerable.call(d,w)&&(y[w]=d[w])}return y}function Xm(d,p){if(d==null)return{};var y={},w=Object.keys(d),I,P;for(P=0;P=0)&&(y[I]=d[I]);return y}var WE=Nm(function(){return Promise.all([rt.e(632),rt.e(575)]).then(rt.bind(rt,39153))},"spin"),Gw=Nm(function(){return Promise.all([rt.e(632),rt.e(757)]).then(rt.bind(rt,28581))},"spin"),Zm=Nm(function(){return Promise.all([rt.e(632),rt.e(697)]).then(rt.bind(rt,74121))},"spin"),y2=function(p){var y=p.chartConfig,w=qg(p,d2),I=(0,re.useState)(0),P=p2(I,2),N=P[0],$=P[1],V=lr(),J=V.spreadsheet,ue=V.theme,_e=V.commandManager,Se=function(){switch(y.type){case af.oX.PIE:return ie().createElement(WE,Kg({},w,{reloadSignal:N,theme:ue}));case af.oX.LINE:return ie().createElement(Zm,Kg({},w,{reloadSignal:N,theme:ue}));case af.oX.BAR:return ie().createElement(Gw,Kg({},w,{reloadSignal:N,theme:ue}));default:return ie().createElement(Zm,Kg({},w,{reloadSignal:N,theme:ue}))}},Qe={backgroundColor:ue==="dark"?"#222c3f":"white",color:ue==="dark"?"white":"#222c3f",boxShadow:ue==="dark"?null:"0 4px 10px 0 rgb(0 0 0 / 40%)",border:ue==="dark"?"1px solid rgba(255, 255, 255, 0.08)":null,borderRadius:"4px"};return ie().createElement(zw,{zIndex:12,overlayClassName:fe()("weave-chart-container","chart-draggable"),style:m1({position:"fixed"},Qe),getInitailPositon:function(){return{position:{top:window.innerHeight/2-300,right:40},size:{width:400,height:300}}}},function(ut){var je=ut.onClick,He=ut.onMouseDown;return ie().createElement(ie().Fragment,null,ie().createElement("div",{className:fe()("s2-chart-header","async-header"),style:m1(m1({},Qe),{},{boxShadow:"none",borderBottom:"1px solid rgba(255, 255, 255, 0.08)"}),onClick:je,onDoubleClick:function(Mt){Nr(Vm,{chartId:w.id},J)},onMouseDown:He},ie().createElement("div",null,y.type),ie().createElement("div",{style:{cursor:"pointer"}},ie().createElement(Te,{type:"one-icon dataphin-icon icon-filetree-op-reload",onClick:function(){$(function(Mt){return Mt+1})}}),ie().createElement(Te,{type:"one-icon icon-guanbixiao",onClick:function(){_e.commit({id:gi.m.REMOVECHART,params:y.id})}}))),Se())})},GE=y2;function Oc(d){"@babel/helpers - typeof";return Oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},Oc(d)}function y1(d,p){var y=Object.keys(d);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(d);p&&(w=w.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),y.push.apply(y,w)}return y}function Km(d){for(var p=1;pd.length)&&(p=d.length);for(var y=0,w=new Array(p);y=ua&&(ii=0),hn(ii);var va=xn[ii];Hl(va.row,va.col,$e)},Zr=function(xn){var Hi=xn.length,ua=rn-1;ua<0&&(ua=Hi-1),hn(ua);var ii=xn[ua];Hl(ii.row,ii.col,$e)},Wn=function(xn){var Hi=[];$e&&(Hi=$e.dataSet.getDisplayDataSet());var ua=function(ao){return b1(xn,ao,P.slice().sort(function(Ya,Vi){return N.indexOf(Ya.name)-N.indexOf(Vi.name)}),_t)},ii=ua(Hi);if($==null||$(ii),V){var va=zb(Hi,ii.map(function(jo){return jo.id})),Ja=ua(va);ii=Ja}Hr(ii),hn(-1),ii.length>0&&$r(ii,-1)};return(0,re.useEffect)(function(){ut&&setTimeout(function(){Wn(ut)},0)},[V,ue,_t]),Mt?ie().createElement("div",{className:fe()("weave-search-container","dp-spreadsheet-search",qm(qm({},"search-dark",gr==="dark"),"search-light",gr==="light"))},ie().createElement(Zt.Input.Search,{ref:function(xn){_e.current=xn},className:fe()("input-search","dp-spreadsheet-search-input"),value:ut,prefix:ie().createElement(Te,{onClick:function(){hr.length>0&&$r(hr,rn)},type:"one-icon icon-sousuo1 anticon-dpicon",className:fe()("search-icon",qm(qm({},"search-dark",gr==="dark"),"search-light",gr==="light"))}),onChange:function(xn){je(xn.target.value),Wn(xn.target.value)},onPressEnter:function(xn){hr.length>0&&$r(hr,rn)}}),ie().createElement("div",{className:fe()("active-index","active-index")},ie().createElement("div",{className:fe()("btn","prev","btns")},ie().createElement(Te,{onClick:function(){hr.length>0&&Zr(hr)},type:"one-icon icon-danjiantouwangzuo anticon-dpicon",className:"search-icon"})),rn>-1?ie().createElement("div",null,rn+1,"/",hr.length):Oi("noResult"),ie().createElement("div",{className:fe()("btn","next","btns")},ie().createElement(Te,{onClick:function(){hr.length>0&&$r(hr,rn)},type:"one-icon icon-danjiantouwangyou anticon-dpicon",className:"search-icon"}))),ie().createElement(Zt.Tooltip,{title:"\u5339\u914D\u5927\u5C0F\u5199"},ie().createElement("div",{onClick:function(){vt(!_t)},className:fe()(["matchCase",{active:_t,iconLight:gr==="light"},"match-case-icon"])},"Aa")),ie().createElement(Zt.Tooltip,{title:V?"\u53D6\u6D88\u8FC7\u6EE4":"\u8FC7\u6EE4"},ie().createElement(Te,{onClick:function(){return J()},type:"one-icon icon-FILTERguolv anticon-dpicon",className:fe()(["filter-icon",{active:V,iconLight:gr==="light"}])})),ie().createElement(Te,{onClick:function(){return Wr()},type:"one-icon icon-guanbixiao anticon-dpicon",className:fe()("close-icon",{iconLight:gr==="light"})})):null},function(d,p){return!!((0,oe.isEqual)(d.columns,p.columns)&&(0,oe.isEqual)(d.filterSearch,p.filterSearch)&&(0,oe.isEqual)(d.showSearch,p.showSearch)&&(0,oe.isEqual)(d.sortFilterCfg,p.sortFilterCfg)&&(0,oe.isEqual)(d.sortedColumn,p.sortedColumn))}),QE=w2,cv=function(p){return p.key==="a"&&(p.metaKey||p.ctrlKey)},$w=function(){var p=lr(),y=p.spreadsheet,w=ie().useCallback(function(I){if(y&&cv(I)){if(document.activeElement!==document.body)return;I.stopPropagation(),I.preventDefault(),y.logger(Ur.selectAllByKey),y.interaction.selectAll()}},[y]);return Cs(w),null},Uw=ie().memo($w),x2=function(p){var y=p.dataCfg.meta.map(function(w){return w.field});return y.every(function(w,I){return Number(w.slice((0,oe.size)(w)-(0,oe.size)("".concat(I+1)),(0,oe.size)(w)))===I+1})},Mh=function(p,y){var w=p.dataCfg.meta;return(w.find(function(I){return I.name===y})||{field:y}).field},ic=function(p,y){var w=p.dataSet.getDisplayDataSet()[0]||{},I=p.dataSet.getDisplayDataSet(),P=I.length,N=x2(p),$=0,V=[],J=(0,oe.pick)(w,Object.keys(w).filter(function(yt){return w[yt]&&en.test(w[yt])})),ue=p.interaction.getState().cells,_e=ue&&ue.every(function(yt){return yt.type===Ce.Czd.ROW_CELL}),Se=ue&&ue.every(function(yt){return yt.type===Ce.Czd.COL_CELL});if(ue&&ue.every(function(yt){return yt.type===Ce.Czd.DATA_CELL})){var Qe=ue.map(function(yt){return yt.rowIndex}),ut=ue.map(function(yt){return Mh(p,yt.id.split("[&]")[1])}),je=Object.keys(J).filter(function(yt){return ut.includes(yt)}),He=new Set(ue).size;He===1?$=1:$=Qe[Qe.length-1]-Qe[0]+1,V=je}else $=P,V=N?Object.values(J):Object.keys(J);if(y===Ce.lbT.COL||Se){if(Se){var gt=ue.map(function(yt){return Mh(p,yt.id.split("[&]")[1])}),Mt=Object.keys(J).filter(function(yt){return gt.includes(yt)});V=Mt}$=P}return(y===Ce.lbT.ROW||_e)&&(_e&&($=ue.length),V=N?Object.values(J):Object.keys(J)),V=V.map(function(yt){return(0,oe.get)(p.dataCfg.meta.find(function(Wt){return Wt.field===yt}),"desensitizes[0]")}).filter(Boolean),{length:$,sensitiveField:V}},nT=function(p){return p.key==="c"&&(p.metaKey||p.ctrlKey)},Yw=function(){var p=lr(),y=p.spreadsheet,w=ie().useCallback(function(I){if(document.activeElement===document.body&&y&&nT(I)){y.logger(Ur.copyByKey);try{(0,Ce.aPw)(y)}catch(V){y.logger(Ur.errorCollect,{error:V,fields:y.dataCfg.fields,id:Ur.copyByKey})}var P=ic(y),N=P.length,$=P.sensitiveField;y.logger(Ur.copyLineNumAndSensitiveData,{length:N,sensitiveField:$}),Zt.message.success(Oi("copySuccess"))}},[y]);return Cs(w),null},w1=ie().memo(Yw);function qo(d,p){return Vw(d)||x1(d,p)||ty(d,p)||jw()}function jw(){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 ty(d,p){if(d){if(typeof d=="string")return S2(d,p);var y=Object.prototype.toString.call(d).slice(8,-1);if(y==="Object"&&d.constructor&&(y=d.constructor.name),y==="Map"||y==="Set")return Array.from(d);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return S2(d,p)}}function S2(d,p){(p==null||p>d.length)&&(p=d.length);for(var y=0,w=new Array(p);y=0?hn:0,animate:!1},offsetY:{value:it>=0?it:0,animate:!1}})}},ie().createElement("div",{className:["weave-summary-row-container"].join(" "),style:{width:At,transform:"translateX(".concat(-gt,"px)")}},Se.facet.layoutResult.colLeafNodes.map(function(hr,Hr){return _t&&Hr===0?null:ie().createElement("div",{key:hr.id+$+hr.width,style:{width:"".concat(hr.width,"px"),height:"100%"},className:["summary-row-cell","weave-summary-row-cell",{light:Qe==="light"}].join(" ")},ie().createElement(Jg,{renderSummaryCell:I,item:hr,s2Instance:Se,typeHints:V}))})))},iT=Zw;function ry(d){"@babel/helpers - typeof";return ry=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},ry(d)}function JE(d,p){var y=Object.keys(d);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(d);p&&(w=w.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),y.push.apply(y,w)}return y}function ny(d){for(var p=1;pd.length)&&(p=d.length);for(var y=0,w=new Array(p);yd.length)&&(p=d.length);for(var y=0,w=new Array(p);y0&&arguments[0]!==void 0?arguments[0]:P.x,hr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P.y;I(!1);var Hr=_1(_1({},P),{},{x:Kt,y:hr});Nr(L_,Hr,$)};return re.createElement(MS,{visible:!0,onEntered:function(){Qe(!0)}},re.createElement("div",{className:fe()("column-menu-container","col-menu-modal-container","slim"),ref:ut,style:Wt,onMouseDown:function(Kt){return Kt.stopPropagation()}},re.createElement(ov,{getPopupContainer:function(Kt){return ut.current},className:fe()("menu",{light:yt}),style:{width:130},onSelect:function(Kt){[Ce.Xzc.ASC,Ce.Xzc.DESC].includes(Kt.key)?_t(Kt.key):(V&&V(Ur.setType),KC.emit("typeChange",{fieldName:P.fieldName,type:Kt.key})),I(!1)}},re.createElement(Ul,{key:Ce.Xzc.ASC},re.createElement("div",{className:"sort"},re.createElement(Te,{type:"one-icon dataphin-icon icon-riqi1"}),"\u5347\u5E8F",Ye===Ce.Xzc.ASC?re.createElement(Te,{className:"icon",type:"one-icon icon-duihao anticon-dpicon"}):null)),re.createElement(Ul,{key:Ce.Xzc.DESC},re.createElement("div",{className:"sort"},re.createElement(Te,{type:"one-icon dataphin-icon icon-riqi"}),"\u964D\u5E8F",Ye===Ce.Xzc.DESC?re.createElement(Te,{className:"icon",type:"one-icon icon-duihao anticon-dpicon"}):null)),re.createElement(Ul,{key:"filter"},re.createElement("div",{onClick:function(Kt){vt(Kt.clientX,Kt.clientY)}},re.createElement(Te,{type:"one-icon icon-shaixuan3"}),"\u7B5B\u9009")),re.createElement(ov.Divider,null),He&Ka.isAggregation?re.createElement(re.Fragment,null,re.createElement(Ul,{key:"aggregate",onClick:function(){J.commit({id:gi.m.MODIFYCOLCONFIG,params:{colId:P.fieldName,value:{type:He&~Ka.isAggregation}}})}},"\u53D6\u6D88\u8BBE\u4E3A\u6C47\u603B\u503C"),re.createElement(Zs,{getPopupContainer:function(Kt){return ut.current},popupClassName:fe()("menu",{light:yt}),popupOffset:[0,0],rootClassName:"menu",key:"aggregateType",title:re.createElement("div",{className:"colSubmenu"},"\u6C47\u603B\u7C7B\u578B")},[{name:"\u8BA1\u6570",type:Ma.COUNT},{name:"\u53BB\u91CD\u8BA1\u6570",type:Ma.COUNT_DISTINCT}].concat(gt===pi.Number?[{name:"\u6C42\u548C",type:Ma.SUM},{name:"\u6700\u5C0F\u503C",type:Ma.MIN},{name:"\u6700\u5927\u503C",type:Ma.MAX},{name:"\u4E2D\u4F4D\u6570",type:Ma.MEDIAN},{name:"\u5E73\u5747\u503C",type:Ma.AVERAGE}]:[]).map(function(At){return re.createElement(Ul,{key:At.type,disabled:Mt===At.type},re.createElement("div",{className:"subMenuItem",onClick:function(){J.commit({id:gi.m.MODIFYCOLCONFIG,params:{colId:P.fieldName,value:{aggregateType:At.type}}})}},At.name,Mt===At.type?re.createElement(Te,{type:"one-icon icon-duihao anticon-dpicon"}):null))}))):re.createElement(Ul,{key:"aggregate",onClick:function(){J.commit({id:gi.m.MODIFYCOLCONFIG,params:{colId:P.fieldName,value:{type:(He|Ka.isAggregation)&~Ka.isDimension}}})}},"\u8BBE\u4E3A\u6C47\u603B\u503C"),He&Ka.isDimension?re.createElement(Ul,{key:"dimension",onClick:function(){J.commit({id:gi.m.MODIFYCOLCONFIG,params:{colId:P.fieldName,value:{type:He&~Ka.isDimension}}})}},"\u53D6\u6D88\u8BBE\u4E3A\u5206\u7C7B\u7EF4\u5EA6"):re.createElement(Ul,{key:"dimension",onClick:function(){J.commit({id:gi.m.MODIFYCOLCONFIG,params:{colId:P.fieldName,value:{type:(He|Ka.isDimension)&~Ka.isAggregation}}}),window.dispatchEvent(new CustomEvent("weave:triggersidebar",{detail:"aggregate"}))}},"\u8BBE\u4E3A\u5206\u7C7B\u7EF4\u5EA6"),re.createElement(Zs,{getPopupContainer:function(Kt){return ut.current},popupClassName:fe()("menu",{light:yt}),popupOffset:[0,0],rootClassName:"menu",key:"col",title:re.createElement("div",{className:"colSubmenu"},"\u5B57\u6BB5\u7C7B\u578B")},[{name:"\u5B57\u7B26\u4E32",type:pi.String},{name:"\u6570\u503C",type:pi.Number},{name:"\u65E5\u671F",type:pi.Date}].map(function(At){return re.createElement(Ul,{key:At.type,disabled:gt===At.type},re.createElement("div",{className:"subMenuItem",onClick:function(){J.commit({id:gi.m.MODIFYCOLCONFIG,params:{colId:P.fieldName,value:{contentType:At.type}}})}},At.name,gt===At.type?re.createElement(Te,{type:"one-icon icon-duihao anticon-dpicon"}):null))})),re.createElement(ov.Divider,null),re.createElement(Ul,{key:"create",onClick:function(Kt){$.logger(Ur.addCol),Nr(Kw,{x:P.x,y:P.y,colId:P.fieldName},$)}},"\u65B0\u589E\u7A7A\u5B57\u6BB5"),re.createElement(Ul,{key:"rename",onClick:function(){var Kt={target:P.cell};$.emit(Ce.ch4.COL_CELL_DOUBLE_CLICK,Kt)}},"\u5B57\u6BB5\u91CD\u547D\u540D"),re.createElement(Ul,{key:"delete",onClick:function(){J.commit({params:{colId:P.fieldName},id:gi.m.REMOVECOL})}},"\u5220\u9664\u5B57\u6BB5"))))},oy=sT;function Bf(d){"@babel/helpers - typeof";return Bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},Bf(d)}var M1=void 0;function ly(d,p){var y=Object.keys(d);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(d);p&&(w=w.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),y.push.apply(y,w)}return y}function Th(d){for(var p=1;pd.length)&&(p=d.length);for(var y=0,w=new Array(p);yd.length)&&(p=d.length);for(var y=0,w=new Array(p);yd.length)&&(p=d.length);for(var y=0,w=new Array(p);yd.length)&&(p=d.length);for(var y=0,w=new Array(p);yd.length)&&(p=d.length);for(var y=0,w=new Array(p);y=0)&&Object.prototype.propertyIsEnumerable.call(d,w)&&(y[w]=d[w])}return y}function nO(d,p){if(d==null)return{};var y={},w=Object.keys(d),I,P;for(P=0;P=0)&&(y[I]=d[I]);return y}function hT(d,p){var y=Object.keys(d);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(d);p&&(w=w.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),y.push.apply(y,w)}return y}function _a(d){for(var p=1;p340&&!c0[Zi.value]&&(Zi.width=340);var cA=ui.dataCfg.summaryRowCfg;cA&&cA.visible&&ua&&!c0[Zi.value]&&(Zi.width=Math.max(232,Zi.width,cA.width))}}},$r)),YI=sc(yR,2),jI=YI[0],yy=YI[1];(0,re.useEffect)(function(){(0,oe.isNumber)(xn)&&yy(function(Qn){return _a(_a({},Qn),{},{seriesNumberStartOffset:xn})})},[xn]),(0,re.useEffect)(function(){if(Xl&&Xl.visible&&!yv&&!(0,oe.isNil)(Xl==null?void 0:Xl.rowIndex)){UI(function(Qn){return _a(_a({},Qn),{},T1({},String(Xl.rowIndex),Xl.height+Za||300))});return}Xl&&yv&&(Xl.visible?F1(function(Qn){return _a(_a({},Qn),{},T1({},Ce.O6N,Xl.height+(0,oe.get)($r,"style.colCfg.height",25)))}):F1(function(Qn){return _a(_a({},Qn),{},T1({},Ce.O6N,(0,oe.get)($r,"style.colCfg.height",25)))})),Xl&&!(0,oe.isNil)(Xl==null?void 0:Xl.rowIndex)&&UI(function(Qn){return _a(_a({},Qn),{},T1({},String(Xl.rowIndex),null))})},[Xl,yv]);var Hp=(0,re.useRef)(null);(0,re.useLayoutEffect)(function(){if(Hp.current){var Qn=Hp.current,ui=Qn.offsetWidth,fo=Qn.offsetHeight;yy(function(Zi){return _a(_a({},Zi),{},{width:ui,height:fo})})}},[N]),(0,re.useEffect)(function(){Bc({})},[px]),(0,re.useEffect)(function(){var Qn=Jd(P);ya(Qn),_M(pT(Qn,I))},[P]),(0,re.useEffect)(function(){Si.current.typeHints=eo},[eo]),(0,re.useEffect)(function(){Object.keys($r).length&&yy(function(Qn){return(0,oe.merge)(Qn,$r)})},[$r]);var CR=(0,oe.partition)([].concat(s1.childContribution,B1).filter(Boolean),function(Qn){return Qn.signature&&Qn.signature===Gg.BEFORE_TABLE}),VI=sc(CR,2),XI=VI[0],mx=VI[1],yx=function(){var ui=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return I.forEach(function(fo){return delete fo.conditionalFormatters}),Object.assign(N2(ad(gx.transformers)(I),ad(gy.transformers)(px),_a({sortable:hr,frozenCols:f_,summaryRowCfg:Xl,rowsForSearchFilter:d_,compareType:Lh,comparesheet:{sourceTable:MM,targetTable:s_},showCompareDetail:Cd,dataCellError:P1},ui),eo),{})};(0,re.useEffect)(function(){var Qn=(0,ea.YP)(BT,"transformers",function(){yy(ad(BT.transformers))});return function(){return Qn.dispose()}},[yy]),(0,re.useEffect)(function(){var Qn=(0,ea.YP)(gy,"transformers",function(){u_(yx())}),ui=(0,ea.YP)(gx,"transformers",function(){u_(yx())});return function(){ui.dispose(),Qn.dispose()}},[u_,yx]),jI.frozenColCount!==c_.cols.length+1&&yy(function(Qn){return _a(_a({},Qn),{},{frozenColCount:c_.cols.length+1})}),(0,re.useEffect)(function(){u_(yx())},[px,I,f_,eo,Xl,d_,P1,MM,s_]),(0,re.useEffect)(function(){if(h_&&RM.length)kT(RM.map(function(ui){return ui.id}));else if(d_.length){kT([]);var Qn=yx({rowsForSearchFilter:[]});Si.current.setDataCfg(Qn),Si.current.dataSet.setDataCfg(Qn)}},[h_,RM]);var cc=(0,re.useCallback)(function(Qn,ui,fo){return Si.current=new Ce.HZt(Qn,ui,fo),lM++,Si.current.__id=lM,ut||(Si.current.off(Ce.ch4.DATA_CELL_HOVER),Si.current.off(Ce.ch4.COL_CELL_HOVER),Si.current.off(Ce.ch4.ROW_CELL_HOVER)),Si.current.logger=function(Zi,ls){sr(Zi,ls)},Si.current.commandManager=Np,ue(Si.current),Si.current},[]);(0,re.useEffect)(function(){sr(Ur.mount)},[]),(0,re.useEffect)(function(){if(Hp.current){var Qn=Hp.current,ui=new ResizeObserver((0,oe.debounce)(function(){if(Hp.current){var fo=Hp.current,Zi=fo.offsetWidth,ls=fo.offsetHeight;if(ls===0||Zi===0)return;yy(function(pu){return _a(_a({},pu),{},{width:Zi-Mt,height:ls-_t-(mv?36:0)})})}},200));return ui.observe(Qn),function(){ui.unobserve(Qn)}}},[_t,mv,Mt]),(0,re.useEffect)(function(){_r&&$i(_r)},[_r]),(0,re.useLayoutEffect)(function(){if(Hp.current){var Qn=function(Zi){Math.abs(Zi.deltaX)>10&&Zi.preventDefault()},ui=Hp.current;return ui.addEventListener("wheel",Qn),function(){return ui.removeEventListener("wheel",Qn)}}},[Hp.current]),(0,re.useEffect)(function(){(!(0,oe.isNil)(u0)||!(0,oe.isNil)(g_)||!(0,oe.isNil)(DM))&&yy(function(Qn){var ui,fo;return _a(_a({},Qn),{},{style:_a(_a({},Qn.style),{},{colCfg:_a(_a({},(ui=Qn.style)===null||ui===void 0?void 0:ui.colCfg),{},{widthByFieldValue:g_,heightByField:u0}),rowCfg:_a(_a({},(fo=Qn.style)===null||fo===void 0?void 0:fo.rowCfg),{},{heightByField:DM})})})})},[u0,g_,DM]),(0,re.useEffect)(function(){if(Si.current){var Qn=Si.current,ui=function(wd){Bc(function(gu){return _a(_a({},gu),{},{filterParams:Qn.dataCfg.filterParams})}),gl(Qn.dataCfg.filterParams),setTimeout(function(){var gu;sn(((gu=Si.current)===null||gu===void 0||(gu=gu.dataSet)===null||gu===void 0?void 0:gu.getDisplayDataSet())||[])})},fo=function(wd){Bc(function(gu){return _a(_a({},gu),{},{sortParams:Qn.dataCfg.sortParams})}),Hf(Qn.dataCfg.sortParams)},Zi=function(){return sr(Ur.brushSelection)},ls=function(wd){FT(function(gu){return _a(_a({},gu),(0,oe.get)(wd,"style.colCfg.widthByFieldValue")||{})}),sr(Ur.dragColWidth)},pu=function(wd){F1(function(gu){return _a(_a({},gu),(0,oe.get)(wd,"style.colCfg.heightByField")||{})}),sr(Ur.dragColHeight)},c0=function(wd){UI(function(gu){return _a(_a({},gu),(0,oe.get)(wd,"style.rowCfg.heightByField")||{})}),sr(Ur.dragRowHeight)};return Si.current.on(Ce.ch4.RANGE_FILTERED,ui),Si.current.on(Ce.ch4.RANGE_SORTED,fo),Si.current.on(Ce.ch4.DATA_CELL_BRUSH_SELECTION,Zi),Si.current.on(Ce.ch4.LAYOUT_RESIZE_COL_WIDTH,ls),Si.current.on(Ce.ch4.LAYOUT_RESIZE_COL_HEIGHT,pu),Si.current.on(Ce.ch4.LAYOUT_RESIZE_ROW_HEIGHT,c0),function(){Qn.off(Ce.ch4.RANGE_FILTERED,ui),Qn.off(Ce.ch4.RANGE_SORTED,fo),Qn.off(Ce.ch4.DATA_CELL_BRUSH_SELECTION,Zi),Qn.off(Ce.ch4.LAYOUT_RESIZE_COL_WIDTH,ls),Qn.off(Ce.ch4.LAYOUT_RESIZE_COL_HEIGHT,pu),Qn.off(Ce.ch4.LAYOUT_RESIZE_ROW_HEIGHT,c0)}}},[sn,Si.current]);var bR=ie().useMemo(function(){var Qn=typeof At=="string"?At:"dark";return Gr.theme=Qn,Gr.antdStyleContext=Wt,Np.setSpreadSheet(Si.current),{spreadsheet:Si.current,logger:sr,theme:Qn,commandManager:Np}},[sr,Si.current,At,Np,Wt]);return(0,re.useEffect)(function(){return KC.on("typeChange",function(Qn){_M(function(ui){return _a(_a({},ui),{},T1({},Qn.fieldName,Qn.type))})}),function(){KC.removeAllListeners()}},[]),ie().createElement(vr.Provider,{value:bR},ie().createElement(vv,null),ie().createElement(YE,{tableData:OM.data,columns:I}),ie().createElement(Su,{columns:I,visible:jo,onVisibleChange:ma}),ie().createElement(cu,{columns:I,visible:Ya,onVisibleChange:Ga}),ie().createElement(Uw,null),ie().createElement(I2,{menus:it,menusWidth:$e,useDataExploreMenu:Wn}),va?ie().createElement(w1,null):null,pn,ie().createElement(fu,null),ie().createElement(Dc,null),ie().createElement(R2,null),ie().createElement(QE,{showSearch:on,onShowSearchChange:rn,columns:I,sortedColumn:bc((w=OM.fields)===null||w===void 0?void 0:w.columns),filterSearch:h_,toggleFilterSearch:function(){h_||sr(Ur.searchFilter),eA(function(ui){return!ui})},sortFilterCfg:Gf,onSearch:function(ui){os(ui)}}),mv&&ie().createElement(mv,uy({},d,{summaryRowCfg:Xl,setSummaryRowCfg:s0})),XI.length&&Si.current?XI.map(function(Qn){return ie().createElement(Qn,d)}):null,ie().createElement("div",{className:["s2-table-container","dp-spreadsheet-container"].join(" "),ref:Hp,style:_a(_a({},i_),{},{display:{hidden:"none"}[d.hidden?"hidden":"block"]}),onClick:function(){var ui,fo,Zi=document.activeElement;(ui=Zi.classList)!==null&&ui!==void 0&&ui.contains("monaco-mouse-cursor-text")&&(fo=Hp.current)!==null&&fo!==void 0&&fo.contains(Zi)||Zi.blur&&Zi.blur()}},!Se&&zf&&!Wf?ie().createElement(qE,{enableCopy:!0,disabled:!zf}):null,l_?ie().createElement(iT,{renderSummaryCell:ua,cfg:Xl,showIconInColumnCell:yv,customHeights:DM,sheetWidth:jI.width,typeHints:eo}):null,l_?ie().createElement(lt.HZ,uy({},zi,{dataCfg:OM,adaptive:!1,options:jI,onDataCellSelectMove:function(ui){Fp(ui)},onDataCellDoubleClick:function(ui){var fo,Zi,ls,pu,c0=ui==null||(fo=ui.viewMeta)===null||fo===void 0||(fo=fo.spreadsheet)===null||fo===void 0||(fo=fo.dataCfg)===null||fo===void 0?void 0:fo.data,bd=ui==null||(Zi=ui.viewMeta)===null||Zi===void 0?void 0:Zi.rowIndex,wd=ui==null||(ls=ui.viewMeta)===null||ls===void 0?void 0:ls.colIndex;if((0,oe.isNil)(Lh)){vs(ui.viewMeta);return}if(c0!=null&&(pu=c0[bd])!==null&&pu!==void 0&&pu[wd]){vs(ui.viewMeta);return}},spreadsheet:cc,onColCellClick:hf||function(Qn){if(Qn.viewMeta.colIndex===0){var ui;sr(Ur.selectAllByClick),(ui=Si.current)===null||ui===void 0||ui.interaction.changeState({stateName:Ce._61.ALL_SELECTED})}},themeCfg:{theme:Vl,name:"default"}})):null,mx.length&&Si.current?mx.map(function(Qn){return ie().createElement(Qn,d)}):null))});sM.displayName="BaseTable";var ax=sM,aO=function(){return addHOCEnhancer(sM)};function O1(d){"@babel/helpers - typeof";return O1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},O1(d)}function gT(d,p){var y=Object.keys(d);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(d);p&&(w=w.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),y.push.apply(y,w)}return y}function oO(d){for(var p=1;pd.length)&&(p=d.length);for(var y=0,w=new Array(p);y=0)&&Object.prototype.propertyIsEnumerable.call(d,w)&&(y[w]=d[w])}return y}function ds(d,p){if(d==null)return{};var y={},w=Object.keys(d),I,P;for(P=0;P=0)&&(y[I]=d[I]);return y}var Lc=function(p){var y=p.refToOtherTable,w=useSpreadSheet(),I=useCallback(function(P){var N=P.scrollX,$=P.scrollY,V=y==null?void 0:y.current.getS2Ref();if(V&&w.spreadsheet)try{V.facet.setScrollOffset({scrollX:N,scrollY:$}),V.facet.startScroll(!0)}catch(J){console.error(J)}},[w]);return useS2EventHandler(S2Event.GLOBAL_SCROLL,I),null},Po=null,sf=null;function pv(){return pv=Object.assign?Object.assign.bind():function(d){for(var p=1;pd.length)&&(p=d.length);for(var y=0,w=new Array(p);yd.length)&&(p=d.length);for(var y=0,w=new Array(p);yd.length)&&(p=d.length);for(var y=0,w=new Array(p);y=0;--gr){var _r=this.tryEntries[gr],Wr=_r.completion;if(_r.tryLoc==="root")return sr("end");if(_r.tryLoc<=this.prev){var $r=w.call(_r,"catchLoc"),Zr=w.call(_r,"finallyLoc");if($r&&Zr){if(this.prev<_r.catchLoc)return sr(_r.catchLoc,!0);if(this.prev<_r.finallyLoc)return sr(_r.finallyLoc)}else if($r){if(this.prev<_r.catchLoc)return sr(_r.catchLoc,!0)}else{if(!Zr)throw new Error("try statement without catch or finally");if(this.prev<_r.finallyLoc)return sr(_r.finallyLoc)}}}},abrupt:function($e,ft){for(var sr=this.tryEntries.length-1;sr>=0;--sr){var gr=this.tryEntries[sr];if(gr.tryLoc<=this.prev&&w.call(gr,"finallyLoc")&&this.prev=0;--ft){var sr=this.tryEntries[ft];if(sr.finallyLoc===$e)return this.complete(sr.completion,sr.afterLoc),on(sr),He}},catch:function($e){for(var ft=this.tryEntries.length-1;ft>=0;--ft){var sr=this.tryEntries[ft];if(sr.tryLoc===$e){var gr=sr.completion;if(gr.type==="throw"){var _r=gr.arg;on(sr)}return _r}}throw new Error("illegal catch attempt")},delegateYield:function($e,ft,sr){return this.delegate={iterator:hn($e),resultName:ft,nextLoc:sr},this.method==="next"&&(this.arg=d),He}},p}function Bp(d,p,y,w,I,P,N){try{var $=d[P](N),V=$.value}catch(J){y(J);return}$.done?p(V):Promise.resolve(V).then(w,I)}function ET(d){return function(){var p=this,y=arguments;return new Promise(function(w,I){var P=d.apply(p,y);function N(V){Bp(P,w,I,N,$,"next",V)}function $(V){Bp(P,w,I,N,$,"throw",V)}N(void 0)})}}function zA(d,p,y){var w=document.createElement("a"),I=new Uint8Array([239,187,191]),P=new Blob([I,d],{type:y});w.href=URL.createObjectURL(P),w.download=p,w.click()}var B6={text:Oi("copy"),onClick:function(p,y){y.logger(Ur.copyByClick),(0,Ce.aPw)(y);var w=ic(y),I=w.length,P=w.sensitiveField;y.logger(Ur.copyLineNumAndSensitiveData,{length:I,sensitiveField:P}),Zt.message.success(Oi("copyTip"))},icon:ie().createElement(Te,{type:"anticon anticon-dpicon icon-copy-english-name"}),condition:function(p,y){return!!y.interaction.getInteractedCells().length}},xD={text:Oi("copyRow"),onClick:function(p,y){y.logger(Ur.copyByClick);var w=(0,Ce.TVL)(y,Ce.lbT.ROW),I=ic(y,Ce.lbT.ROW),P=I.length,N=I.sensitiveField;y.logger(Ur.copyLineNumAndSensitiveData,{length:P,sensitiveField:N}),(0,Ce.vQq)(w).then(function(){Zt.message.success(Oi("copyTip"))})},icon:ie().createElement(Te,{type:"anticon anticon-dpicon icon-copy-english-name"}),condition:function(p,y){return!!y.interaction.getInteractedCells().length}},SD={text:Oi("copyCol"),onClick:function(p,y){y.logger(Ur.copyByClick);var w=(0,Ce.TVL)(y,Ce.lbT.COL),I=ic(y,Ce.lbT.COL),P=I.length,N=I.sensitiveField;y.logger(Ur.copyLineNumAndSensitiveData,{length:P,sensitiveField:N}),(0,Ce.vQq)(w).then(function(){Zt.message.success(Oi("copyTip"))})},icon:ie().createElement(Te,{type:"anticon anticon-dpicon icon-copy-english-name"}),condition:function(p,y){return!!y.interaction.getInteractedCells().length}},_D={text:Oi("copyColHeader"),onClick:function(){var d=ET(dy().mark(function y(w,I){var P,N,$,V;return dy().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return I.logger(Ur.copyByClick),P=I.getColumnLeafNodes().filter(function(_e){return _e.colIndex!==0}),N=I.interaction.getInteractedCells(),$=N.map(function(_e){return _e.getMeta()}).reduce(function(_e,Se){return _e.find(function(Qe){return Qe===Se.colIndex})||_e.push(Se.colIndex),_e},[]),V=P.filter(function(_e){return $.includes(_e.colIndex)}).reduce(function(_e,Se){return _e+Se.field+" "},"").slice(0,-1),ue.next=7,(0,Ce.vQq)(V);case 7:Zt.message.success(Oi("copyTip"));case 8:case"end":return ue.stop()}},y)}));function p(y,w){return d.apply(this,arguments)}return p}(),icon:ie().createElement(Te,{type:"anticon anticon-dpicon icon-copy-english-name"}),condition:function(p,y){return!!y.interaction.getInteractedCells().length}},ED={text:Oi("copyRowHeader"),onClick:function(){var d=ET(dy().mark(function y(w,I){var P,N;return dy().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return I.logger(Ur.copyByClick),P=I.interaction.getInteractedCells().map(function(J){return J.getMeta()}),N=P.reduce(function(J,ue){return J.find(function(_e){return _e===ue.rowIndex})||J.push(ue.rowIndex),J},[]).reduce(function(J,ue){return J+ue+` +`},"").slice(0,-1),V.next=5,(0,Ce.vQq)(N);case 5:Zt.message.success(Oi("copyTip"));case 6:case"end":return V.stop()}},y)}));function p(y,w){return d.apply(this,arguments)}return p}(),icon:ie().createElement(Te,{type:"anticon anticon-dpicon icon-copy-english-name"}),condition:function(p,y){return!!y.interaction.getInteractedCells().length}},MD={text:Oi("downloadTxt"),onClick:function(){var d=ET(dy().mark(function y(w,I){var P;return dy().wrap(function($){for(;;)switch($.prev=$.next){case 0:I.logger(Ur.copyByClick),P=(0,Ce.TVL)(I,Ce.lbT.ALL),zA(P,"a.txt","text/plain");case 3:case"end":return $.stop()}},y)}));function p(y,w){return d.apply(this,arguments)}return p}(),icon:ie().createElement(Te,{type:"anticon anticon-dpicon icon-copy-english-name"})},TD={text:Oi("downloadCsv"),onClick:function(){var d=ET(dy().mark(function y(w,I){var P,N;return dy().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:P=bc(I.dataCfg.fields.columns),N=I.dataSet.getDisplayDataSet().map(function(J){return P.map(function(ue){return(0,Ce.Wb9)(J[ue])}).join(",")}).join(`\r +`),I.logger(Ur.copyByClick),zA(N,"a.csv","text/csv");case 4:case"end":return V.stop()}},y)}));function p(y,w){return d.apply(this,arguments)}return p}(),icon:ie().createElement(Te,{type:"anticon anticon-dpicon icon-copy-english-name"})},OD=null,Nn=function(p){return{text:i18n("deleteRow"),onClick:function(w,I){var P=I.interaction.getInteractedCells().filter(function(N){return N instanceof TableSeriesCell}).map(function(N){return Number(N.getMeta().rowId)});return p(function(N){return N.filter(function($,V){return!P.includes(V)})}),w},condition:function(w,I){return I.interaction.getInteractedCells().some(function(P){return P instanceof TableSeriesCell})}}},ff=null,AD=function(p){return{text:i18n("insertRow"),onClick:function(w,I){var P=I.interaction.getInteractedCells()[0].getMeta(),N=P.rowIndex;return p(function($){return $.slice(0,N).concat([{}]).concat($.slice(N))}),w},condition:function(w,I){return I.interaction.getInteractedCells().some(function(P){return P instanceof TableSeriesCell})}}},ID=null;function k6(d,p){return Rh(d)||N6(d,p)||F6(d,p)||WA()}function WA(){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 F6(d,p){if(d){if(typeof d=="string")return GA(d,p);var y=Object.prototype.toString.call(d).slice(8,-1);if(y==="Object"&&d.constructor&&(y=d.constructor.name),y==="Map"||y==="Set")return Array.from(d);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return GA(d,p)}}function GA(d,p){(p==null||p>d.length)&&(p=d.length);for(var y=0,w=new Array(p);y100?Se=100:Se.indexOf("e")!==-1&&(Se=Se.replace("e","")),y==null||y({lines:Se}),$(Se)},[y]),ue=ie().useCallback(function(){w==null||w(N)},[N,w]);return ie().createElement("div",null,"\u63D2\u5165",ie().createElement(Zt.Input,{type:"number",style:{width:"40px"},min:1,max:100,onClick:V,size:"small",value:N,onChange:J,onPressEnter:ue}),"\u884C")},RD={text:ie().createElement(gO,null),onClick:function(p,y,w){var I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{lines:1},P=y.interaction.getInteractedCells()[0].getMeta(),N=P.rowIndex;return y.logger(Ur.addRow),w.commit({id:gi.m.ADDROW,params:{count:+I.lines,index:Nb(N,y)+1}}),p},condition:function(p,y){return y.interaction.getInteractedCells().some(function(w){return w instanceof Ce.DUx})}},DD=null,LD={text:Oi("addCol"),onClick:function(p,y,w){var I=ns(p);return y.logger(Ur.addCol),Nr(Kw,{x:p.clientX,y:p.clientY,colId:I},y),p},condition:function(p,y){return y.interaction.getInteractedCells().some(function(w){return w instanceof Ce.esq})}},PD=null,hu={text:Oi("deleteRow"),onClick:function(p,y,w){var I=(0,oe.uniq)(y.interaction.getInteractedCells().map(function(P){return P.getMeta().rowIndex}));return y.logger(Ur.removeRow),w.commit(I.map(function(P){return Nb(P,y)}).sort(function(P,N){return N-P}).map(function(P){return{id:gi.m.REMOVEROW,params:{count:1,index:P}}})),p},condition:function(p,y){return y.interaction.getInteractedCells().some(function(w){return w instanceof Ce.DUx})}},BD=null,kD=function(p){return{text:i18n("insertCol"),onClick:function(w,I){var P=I.interaction.getInteractedCells()[0].getMeta(),N=P.rowIndex;return p(function($){return $.slice(0,N).concat([{}]).concat($.slice(N))}),w}}},FD=null;function U2(d){"@babel/helpers - typeof";return U2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},U2(d)}function $A(d,p){var y=Object.keys(d);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(d);p&&(w=w.filter(function(I){return Object.getOwnPropertyDescriptor(d,I).enumerable})),y.push.apply(y,w)}return y}function mO(d){for(var p=1;pd.length)&&(p=d.length);for(var y=0,w=new Array(p);y1&&P>=0&&P11?'=CONCATENATE("'.concat(ue,'")'):ue)}},(0,Ce.aPw)(y);var N=ic(y),$=N.length,V=N.sensitiveField;y.logger(Ur.copyLineNumAndSensitiveData,{length:$,sensitiveField:V}),P&&y.options.interaction&&(y.options.interaction.copyWithFormat=!y.options.interaction.copyWithFormat),y.dataSet.getFieldFormatter=I,Zt.message.success(Oi("copyTip"))},icon:ie().createElement(Te,{type:"anticon anticon-dpicon icon-copy-english-name"}),condition:function(p,y){return!!y.interaction.getInteractedCells().length}},YD=null;function du(){return(du=Object.assign||function(d){for(var p=1;p=0||(I[y]=d[y]);return I}function fM(d){var p=(0,re.useRef)(d),y=(0,re.useRef)(function(w){p.current&&p.current(w)});return p.current=d,y.current}var Y2=function(d,p,y){return p===void 0&&(p=0),y===void 0&&(y=1),d>y?y:d0:He.buttons>0)&&I.current?P(VA(I.current,He,$.current)):je(!1)},ut=function(){return je(!1)};function je(He){var gt=V.current,Mt=yO(I.current),yt=He?Mt.addEventListener:Mt.removeEventListener;yt(gt?"touchmove":"mousemove",Qe),yt(gt?"touchend":"mouseup",ut)}return[function(He){var gt=He.nativeEvent,Mt=I.current;if(Mt&&(XA(gt),!function(Wt,Ye){return Ye&&!fx(Wt)}(gt,V.current)&&Mt)){if(fx(gt)){V.current=!0;var yt=gt.changedTouches||[];yt.length&&($.current=yt[0].identifier)}Mt.focus(),P(VA(Mt,gt,$.current)),je(!0)}},function(He){var gt=He.which||He.keyCode;gt<37||gt>40||(He.preventDefault(),N({left:gt===39?.05:gt===37?-.05:0,top:gt===40?.05:gt===38?-.05:0}))},je]},[N,P]),ue=J[0],_e=J[1],Se=J[2];return(0,re.useEffect)(function(){return Se},[Se]),re.createElement("div",du({},w,{onTouchStart:ue,onMouseDown:ue,className:"react-colorful__interactive",ref:I,onKeyDown:_e,tabIndex:0,role:"slider"}))}),j2=function(d){return d.filter(Boolean).join(" ")},bO=function(d){var p=d.color,y=d.left,w=d.top,I=w===void 0?.5:w,P=j2(["react-colorful__pointer",d.className]);return re.createElement("div",{className:P,style:{top:100*I+"%",left:100*y+"%"}},re.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:p}}))},Ds=function(d,p,y){return p===void 0&&(p=0),y===void 0&&(y=Math.pow(10,p)),Math.round(y*d)/y},wO={grad:.9,turn:360,rad:360/(2*Math.PI)},ZA=function(d){return AT(xO(d))},xO=function(d){return d[0]==="#"&&(d=d.substring(1)),d.length<6?{r:parseInt(d[0]+d[0],16),g:parseInt(d[1]+d[1],16),b:parseInt(d[2]+d[2],16),a:d.length===4?Ds(parseInt(d[3]+d[3],16)/255,2):1}:{r:parseInt(d.substring(0,2),16),g:parseInt(d.substring(2,4),16),b:parseInt(d.substring(4,6),16),a:d.length===8?Ds(parseInt(d.substring(6,8),16)/255,2):1}},hM=function(d,p){return p===void 0&&(p="deg"),Number(d)*(wO[p]||1)},n0=function(d){var p=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(d);return p?dM({h:hM(p[1],p[2]),s:Number(p[3]),l:Number(p[4]),a:p[5]===void 0?1:Number(p[5])/(p[6]?100:1)}):{h:0,s:0,v:0,a:1}},SO=n0,dM=function(d){var p=d.s,y=d.l;return{h:d.h,s:(p*=(y<50?y:100-y)/100)>0?2*p/(y+p)*100:0,v:y+p,a:d.a}},KA=function(d){return _O(pM(d))},vM=function(d){var p=d.s,y=d.v,w=d.a,I=(200-p)*y/100;return{h:Ds(d.h),s:Ds(I>0&&I<200?p*y/100/(I<=100?I:200-I)*100:0),l:Ds(I/2),a:Ds(w,2)}},MT=function(d){var p=vM(d);return"hsl("+p.h+", "+p.s+"%, "+p.l+"%)"},TT=function(d){var p=vM(d);return"hsla("+p.h+", "+p.s+"%, "+p.l+"%, "+p.a+")"},pM=function(d){var p=d.h,y=d.s,w=d.v,I=d.a;p=p/360*6,y/=100,w/=100;var P=Math.floor(p),N=w*(1-y),$=w*(1-(p-P)*y),V=w*(1-(1-p+P)*y),J=P%6;return{r:Ds(255*[w,$,N,N,V,w][J]),g:Ds(255*[V,w,w,$,N,N][J]),b:Ds(255*[N,N,V,w,w,$][J]),a:Ds(I,2)}},gM=function(d){var p=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(d);return p?V2({h:hM(p[1],p[2]),s:Number(p[3]),v:Number(p[4]),a:p[5]===void 0?1:Number(p[5])/(p[6]?100:1)}):{h:0,s:0,v:0,a:1}},V6=gM,qA=function(d){var p=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(d);return p?AT({r:Number(p[1])/(p[2]?100/255:1),g:Number(p[3])/(p[4]?100/255:1),b:Number(p[5])/(p[6]?100/255:1),a:p[7]===void 0?1:Number(p[7])/(p[8]?100:1)}):{h:0,s:0,v:0,a:1}},X6=qA,OT=function(d){var p=d.toString(16);return p.length<2?"0"+p:p},_O=function(d){var p=d.r,y=d.g,w=d.b,I=d.a,P=I<1?OT(Ds(255*I)):"";return"#"+OT(p)+OT(y)+OT(w)+P},AT=function(d){var p=d.r,y=d.g,w=d.b,I=d.a,P=Math.max(p,y,w),N=P-Math.min(p,y,w),$=N?P===p?(y-w)/N:P===y?2+(w-p)/N:4+(p-y)/N:0;return{h:Ds(60*($<0?$+6:$)),s:Ds(P?N/P*100:0),v:Ds(P/255*100),a:I}},V2=function(d){return{h:Ds(d.h),s:Ds(d.s),v:Ds(d.v),a:Ds(d.a,2)}},QA=re.memo(function(d){var p=d.hue,y=d.onChange,w=j2(["react-colorful__hue",d.className]);return re.createElement("div",{className:w},re.createElement(CO,{onMove:function(I){y({h:360*I.left})},onKey:function(I){y({h:Y2(p+360*I.left,0,360)})},"aria-label":"Hue","aria-valuenow":Ds(p),"aria-valuemax":"360","aria-valuemin":"0"},re.createElement(bO,{className:"react-colorful__hue-pointer",left:p/360,color:MT({h:p,s:100,v:100,a:1})})))}),JA=re.memo(function(d){var p=d.hsva,y=d.onChange,w={backgroundColor:MT({h:p.h,s:100,v:100,a:1})};return re.createElement("div",{className:"react-colorful__saturation",style:w},re.createElement(CO,{onMove:function(I){y({s:100*I.left,v:100-100*I.top})},onKey:function(I){y({s:Y2(p.s+100*I.left,0,100),v:Y2(p.v-100*I.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+Ds(p.s)+"%, Brightness "+Ds(p.v)+"%"},re.createElement(bO,{className:"react-colorful__saturation-pointer",top:1-p.v/100,left:p.s/100,color:MT(p)})))}),R1=function(d,p){if(d===p)return!0;for(var y in d)if(d[y]!==p[y])return!1;return!0},i0=function(d,p){return d.replace(/\s/g,"")===p.replace(/\s/g,"")},eI=function(d,p){return d.toLowerCase()===p.toLowerCase()||R1(xO(d),xO(p))};function tI(d,p,y){var w=fM(y),I=(0,re.useState)(function(){return d.toHsva(p)}),P=I[0],N=I[1],$=(0,re.useRef)({color:p,hsva:P});(0,re.useEffect)(function(){if(!d.equal(p,$.current.color)){var J=d.toHsva(p);$.current={hsva:J,color:p},N(J)}},[p,d]),(0,re.useEffect)(function(){var J;R1(P,$.current.hsva)||d.equal(J=d.fromHsva(P),$.current.color)||($.current={hsva:P,color:J},w(J))},[P,d,w]);var V=(0,re.useCallback)(function(J){N(function(ue){return Object.assign({},ue,J)})},[]);return[P,V]}var rI,EO=typeof window!="undefined"?re.useLayoutEffect:re.useEffect,nI=function(){return rI||rt.nc},jD=function(d){rI=d},MO=new Map,iI=function(d){EO(function(){var p=d.current?d.current.ownerDocument:document;if(p!==void 0&&!MO.has(p)){var y=p.createElement("style");y.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,MO.set(p,y);var w=nI();w&&y.setAttribute("nonce",w),p.head.appendChild(y)}},[])},hx=function(d){var p=d.className,y=d.colorModel,w=d.color,I=w===void 0?y.defaultColor:w,P=d.onChange,N=ux(d,["className","colorModel","color","onChange"]),$=(0,re.useRef)(null);iI($);var V=tI(y,I,P),J=V[0],ue=V[1],_e=j2(["react-colorful",p]);return re.createElement("div",du({},N,{ref:$,className:_e}),re.createElement(JA,{hsva:J,onChange:ue}),re.createElement(QA,{hue:J.h,onChange:ue,className:"react-colorful__last-control"}))},TO={defaultColor:"000",toHsva:ZA,fromHsva:function(d){return KA({h:d.h,s:d.s,v:d.v,a:1})},equal:eI},Z6=function(d){return re.createElement(hx,du({},d,{colorModel:TO}))},K6=function(d){var p=d.className,y=d.hsva,w=d.onChange,I={backgroundImage:"linear-gradient(90deg, "+TT(Object.assign({},y,{a:0}))+", "+TT(Object.assign({},y,{a:1}))+")"},P=j2(["react-colorful__alpha",p]),N=Ds(100*y.a);return e.createElement("div",{className:P},e.createElement("div",{className:"react-colorful__alpha-gradient",style:I}),e.createElement(CO,{onMove:function($){w({a:$.left})},onKey:function($){w({a:Y2(y.a+$.left)})},"aria-label":"Alpha","aria-valuetext":N+"%","aria-valuenow":N,"aria-valuemin":"0","aria-valuemax":"100"},e.createElement(bO,{className:"react-colorful__alpha-pointer",left:y.a,color:TT(y)})))},dx=function(d){var p=d.className,y=d.colorModel,w=d.color,I=w===void 0?y.defaultColor:w,P=d.onChange,N=ux(d,["className","colorModel","color","onChange"]),$=r(null);iI($);var V=tI(y,I,P),J=V[0],ue=V[1],_e=j2(["react-colorful",p]);return e.createElement("div",du({},N,{ref:$,className:_e}),e.createElement(JA,{hsva:J,onChange:ue}),e.createElement(QA,{hue:J.h,onChange:ue}),e.createElement(K6,{hsva:J,onChange:ue,className:"react-colorful__last-control"}))},q6={defaultColor:"0001",toHsva:ZA,fromHsva:KA,equal:eI},VD=function(d){return e.createElement(dx,du({},d,{colorModel:q6}))},OO={defaultColor:{h:0,s:0,l:0,a:1},toHsva:dM,fromHsva:vM,equal:R1},IT=function(d){return e.createElement(dx,du({},d,{colorModel:OO}))},aI={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:n0,fromHsva:TT,equal:i0},oI=function(d){return e.createElement(dx,du({},d,{colorModel:aI}))},Q6={defaultColor:{h:0,s:0,l:0},toHsva:function(d){return dM({h:d.h,s:d.s,l:d.l,a:1})},fromHsva:function(d){return{h:(p=vM(d)).h,s:p.s,l:p.l};var p},equal:R1},XD=function(d){return e.createElement(hx,du({},d,{colorModel:Q6}))},J6={defaultColor:"hsl(0, 0%, 0%)",toHsva:SO,fromHsva:MT,equal:i0},e3=function(d){return e.createElement(hx,du({},d,{colorModel:J6}))},t3={defaultColor:{h:0,s:0,v:0,a:1},toHsva:function(d){return d},fromHsva:V2,equal:R1},r3=function(d){return e.createElement(dx,du({},d,{colorModel:t3}))},AO={defaultColor:"hsva(0, 0%, 0%, 1)",toHsva:gM,fromHsva:function(d){var p=V2(d);return"hsva("+p.h+", "+p.s+"%, "+p.v+"%, "+p.a+")"},equal:i0},lI=function(d){return e.createElement(dx,du({},d,{colorModel:AO}))},n3={defaultColor:{h:0,s:0,v:0},toHsva:function(d){return{h:d.h,s:d.s,v:d.v,a:1}},fromHsva:function(d){var p=V2(d);return{h:p.h,s:p.s,v:p.v}},equal:R1},ZD=function(d){return e.createElement(hx,du({},d,{colorModel:n3}))},i3={defaultColor:"hsv(0, 0%, 0%)",toHsva:V6,fromHsva:function(d){var p=V2(d);return"hsv("+p.h+", "+p.s+"%, "+p.v+"%)"},equal:i0},KD=function(d){return e.createElement(hx,du({},d,{colorModel:i3}))},a3={defaultColor:{r:0,g:0,b:0,a:1},toHsva:AT,fromHsva:pM,equal:R1},qD=function(d){return e.createElement(dx,du({},d,{colorModel:a3}))},o3={defaultColor:"rgba(0, 0, 0, 1)",toHsva:qA,fromHsva:function(d){var p=pM(d);return"rgba("+p.r+", "+p.g+", "+p.b+", "+p.a+")"},equal:i0},QD=function(d){return e.createElement(dx,du({},d,{colorModel:o3}))},l3={defaultColor:{r:0,g:0,b:0},toHsva:function(d){return AT({r:d.r,g:d.g,b:d.b,a:1})},fromHsva:function(d){return{r:(p=pM(d)).r,g:p.g,b:p.b};var p},equal:R1},JD=function(d){return e.createElement(hx,du({},d,{colorModel:l3}))},s3={defaultColor:"rgb(0, 0, 0)",toHsva:X6,fromHsva:function(d){var p=pM(d);return"rgb("+p.r+", "+p.g+", "+p.b+")"},equal:i0},eL=function(d){return e.createElement(hx,du({},d,{colorModel:s3}))},u3=/^#?([0-9A-F]{3,8})$/i,IO=function(d){var p=d.color,y=p===void 0?"":p,w=d.onChange,I=d.onBlur,P=d.escape,N=d.validate,$=d.format,V=d.process,J=ux(d,["color","onChange","onBlur","escape","validate","format","process"]),ue=o(function(){return P(y)}),_e=ue[0],Se=ue[1],Qe=fM(w),ut=fM(I),je=a(function(gt){var Mt=P(gt.target.value);Se(Mt),N(Mt)&&Qe(V?V(Mt):Mt)},[P,V,N,Qe]),He=a(function(gt){N(gt.target.value)||Se(P(y)),ut(gt)},[y,P,N,ut]);return n(function(){Se(P(y))},[y,P]),e.createElement("input",du({},J,{value:$?$(_e):_e,spellCheck:"false",onChange:je,onBlur:He}))},sI=function(d){return"#"+d},tL=function(d){var p=d.prefixed,y=d.alpha,w=ux(d,["prefixed","alpha"]),I=a(function(N){return N.replace(/([^0-9A-F]+)/gi,"").substring(0,y?8:6)},[y]),P=a(function(N){return function($,V){var J=u3.exec($),ue=J?J[1].length:0;return ue===3||ue===6||!!V&&ue===4||!!V&&ue===8}(N,y)},[y]);return e.createElement(IO,du({},w,{escape:I,format:p?sI:void 0,process:sI,validate:P}))};function X2(d){"@babel/helpers - typeof";return X2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},X2(d)}var uI,cI,fI,hI,dI,vI,RT,DT,pI,RO,kp,DO,gI,LO,PO,mI,yI,CI,BO;function c3(d,p){return d3(d)||h3(d,p)||f3(d,p)||Z2()}function Z2(){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 f3(d,p){if(d){if(typeof d=="string")return mM(d,p);var y=Object.prototype.toString.call(d).slice(8,-1);if(y==="Object"&&d.constructor&&(y=d.constructor.name),y==="Map"||y==="Set")return Array.from(d);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return mM(d,p)}}function mM(d,p){(p==null||p>d.length)&&(p=d.length);for(var y=0,w=new Array(p);yd.length)&&(p=d.length);for(var y=0,w=new Array(p);y0&&arguments[0]!==void 0?arguments[0]:"",p=arguments.length>1?arguments[1]:void 0,y=arguments.length>2?arguments[2]:void 0,w=[],I=cloneDeep(p),P=d.split(":"),N=P[0].split("$").filter(Boolean),$=P[1].split("$").filter(Boolean),V=p.indexOf(p.find(function(Se){return Se.field===N[0]})),J=p.indexOf(p.find(function(Se){return Se.field===$[0]})),ue=I.filter(function(Se,Qe){return Qe>=V&&Qe<=J}).map(function(Se){return Se.field});ue.forEach(function(Se){var Qe=y.filter(function(ut){return ut.getMeta().valueField===Se});w=[].concat(HO(w),HO(Qe))});var _e=w.filter(function(Se){var Qe=Se.getMeta(),ut=Qe.rowIndex;return N[1]===$[1]?ut===toNumber(N[1])-1:ut>=toNumber(N[1])-1&&ut<=toNumber($[1])-1});return{cells:_e,metaCells:_I(_e)}}function T3(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",p=arguments.length>1?arguments[1]:void 0,y=d.split("$").filter(Boolean),w=p.filter(function(I){var P=I.getMeta(),N=P.rowIndex,$=P.valueField;return N===toNumber(y[1])-1&&$===y[0]});return{cells:w,metaCells:_I(w)}}function fL(d){if(d)try{if(isArray(d)){var p=head(d),y=last(d),w=p.getMeta(),I=w.rowIndex,P=w.valueField,N=y.getMeta(),$=N.rowIndex,V=N.valueField,J=I===$&&P===V;return J?"$".concat(P,"$").concat(I+1):"$".concat(P,"$").concat(I+1,":$").concat(V,"$").concat($+1)}var ue=d.getMeta(),_e=ue.rowIndex,Se=ue.valueField;return"$".concat(Se,"$").concat(_e+1)}catch(Qe){return""}}function O3(d){var p=d.split(",");if(size(p)===0)return!0;var y=every(p,function(w){return toString(w).includes("$")?SI.test(w)?w.split(":").every(function(I){return EI(I)}):EI(w):!1});return y}function hL(d){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",y=arguments.length>2?arguments[2]:void 0;try{var w=O3(p);if(w){var I=p.split(",").length;if(I===0)return{isPass:!1,message:"\u8BF7\u8F93\u5165\u9009\u533A\u5B57\u6BB5"};if(I===1){if(SI.test(p)){var P=WO(p,y,d),N=P.cells,$=P.metaCells;return{cells:N,isPass:!0,message:"",metaCells:$}}var V=T3(p,d),J=V.cells,ue=V.metaCells;return{cells:J,isPass:!0,message:"",metaCells:ue}}}else throw new Error("\u975E\u6B63\u786E\u683C\u5F0F")}catch(_e){return{isPass:!1,message:_e.message}}}function MI(d,p){return K2(d)||R3(d,p)||I3(d,p)||A3()}function A3(){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 I3(d,p){if(d){if(typeof d=="string")return GO(d,p);var y=Object.prototype.toString.call(d).slice(8,-1);if(y==="Object"&&d.constructor&&(y=d.constructor.name),y==="Map"||y==="Set")return Array.from(d);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return GO(d,p)}}function GO(d,p){(p==null||p>d.length)&&(p=d.length);for(var y=0,w=new Array(p);yd.length)&&(p=d.length);for(var y=0,w=new Array(p);y0&&(Lt=1/Math.sqrt(Lt)),fe[0]=pt[0]*Lt,fe[1]=pt[1]*Lt,fe}function Ir(fe,pt){return fe[0]*pt[0]+fe[1]*pt[1]}function yr(fe,pt,wt){var er=pt[0]*wt[1]-pt[1]*wt[0];return fe[0]=fe[1]=0,fe[2]=er,fe}function Xr(fe,pt,wt,er){var Lt=pt[0],cr=pt[1];return fe[0]=Lt+er*(wt[0]-Lt),fe[1]=cr+er*(wt[1]-cr),fe}function Tr(fe,pt){pt=pt||1;var wt=glMatrix.RANDOM()*2*Math.PI;return fe[0]=Math.cos(wt)*pt,fe[1]=Math.sin(wt)*pt,fe}function fn(fe,pt,wt){var er=pt[0],Lt=pt[1];return fe[0]=wt[0]*er+wt[2]*Lt,fe[1]=wt[1]*er+wt[3]*Lt,fe}function jn(fe,pt,wt){var er=pt[0],Lt=pt[1];return fe[0]=wt[0]*er+wt[2]*Lt+wt[4],fe[1]=wt[1]*er+wt[3]*Lt+wt[5],fe}function ai(fe,pt,wt){var er=pt[0],Lt=pt[1];return fe[0]=wt[0]*er+wt[3]*Lt+wt[6],fe[1]=wt[1]*er+wt[4]*Lt+wt[7],fe}function ri(fe,pt,wt){var er=pt[0],Lt=pt[1];return fe[0]=wt[0]*er+wt[4]*Lt+wt[12],fe[1]=wt[1]*er+wt[5]*Lt+wt[13],fe}function ze(fe,pt,wt,er){var Lt=pt[0]-wt[0],cr=pt[1]-wt[1],dr=Math.sin(er),jr=Math.cos(er);return fe[0]=Lt*jr-cr*dr+wt[0],fe[1]=Lt*dr+cr*jr+wt[1],fe}function Et(fe,pt){var wt=fe[0],er=fe[1],Lt=pt[0],cr=pt[1],dr=Math.sqrt(wt*wt+er*er)*Math.sqrt(Lt*Lt+cr*cr),jr=dr&&(wt*Lt+er*cr)/dr;return Math.acos(Math.min(Math.max(jr,-1),1))}function Pr(fe){return fe[0]=0,fe[1]=0,fe}function zt(fe){return"vec2("+fe[0]+", "+fe[1]+")"}function Vt(fe,pt){return fe[0]===pt[0]&&fe[1]===pt[1]}function ir(fe,pt){var wt=fe[0],er=fe[1],Lt=pt[0],cr=pt[1];return Math.abs(wt-Lt)<=glMatrix.EPSILON*Math.max(1,Math.abs(wt),Math.abs(Lt))&&Math.abs(er-cr)<=glMatrix.EPSILON*Math.max(1,Math.abs(er),Math.abs(cr))}var be=null,Oe=Nt,Re=null,Ie=null,ct=null,qt=null,et=null,mt=function(){var fe=Ce();return function(pt,wt,er,Lt,cr,dr){var jr,vn;for(wt||(wt=2),er||(er=0),Lt?vn=Math.min(Lt*wt+er,pt.length):vn=pt.length,jr=er;jr>>8,Ft[Dt*2+1]=D%256}return Ft},decompressFromUint8Array:function(Rt){if(Rt==null)return Nt.decompress(Rt);for(var rr=new Array(Rt.length/2),Ft=0,Dt=rr.length;Ft>1}else{for(U=1,Dt=0;Dt>1}ar--,ar==0&&(ar=Math.pow(2,Ct),Ct++),delete Pt[tr]}else for(U=D[tr],Dt=0;Dt>1;ar--,ar==0&&(ar=Math.pow(2,Ct),Ct++),D[Gt]=Tt++,tr=String(ot)}if(tr!==""){if(Object.prototype.hasOwnProperty.call(Pt,tr)){if(tr.charCodeAt(0)<256){for(Dt=0;Dt>1}else{for(U=1,Dt=0;Dt>1}ar--,ar==0&&(ar=Math.pow(2,Ct),Ct++),delete Pt[tr]}else for(U=D[tr],Dt=0;Dt>1;ar--,ar==0&&(ar=Math.pow(2,Ct),Ct++)}for(U=2,Dt=0;Dt>1;for(;;)if(It=It<<1,Bt==rr-1){nr.push(Ft(It));break}else Bt++;return nr.join("")},decompress:function(Rt){return Rt==null?"":Rt==""?null:Nt._decompress(Rt.length,32768,function(rr){return Rt.charCodeAt(rr)})},_decompress:function(Rt,rr,Ft){var Dt=[],U,D=4,Pt=4,ot=3,Gt="",tr=[],ar,Tt,Ct,nr,It,Bt,Ir,yr={val:Ft(0),position:rr,index:1};for(ar=0;ar<3;ar+=1)Dt[ar]=ar;for(Ct=0,It=Math.pow(2,2),Bt=1;Bt!=It;)nr=yr.val&yr.position,yr.position>>=1,yr.position==0&&(yr.position=rr,yr.val=Ft(yr.index++)),Ct|=(nr>0?1:0)*Bt,Bt<<=1;switch(U=Ct){case 0:for(Ct=0,It=Math.pow(2,8),Bt=1;Bt!=It;)nr=yr.val&yr.position,yr.position>>=1,yr.position==0&&(yr.position=rr,yr.val=Ft(yr.index++)),Ct|=(nr>0?1:0)*Bt,Bt<<=1;Ir=lt(Ct);break;case 1:for(Ct=0,It=Math.pow(2,16),Bt=1;Bt!=It;)nr=yr.val&yr.position,yr.position>>=1,yr.position==0&&(yr.position=rr,yr.val=Ft(yr.index++)),Ct|=(nr>0?1:0)*Bt,Bt<<=1;Ir=lt(Ct);break;case 2:return""}for(Dt[3]=Ir,Tt=Ir,tr.push(Ir);;){if(yr.index>Rt)return"";for(Ct=0,It=Math.pow(2,ot),Bt=1;Bt!=It;)nr=yr.val&yr.position,yr.position>>=1,yr.position==0&&(yr.position=rr,yr.val=Ft(yr.index++)),Ct|=(nr>0?1:0)*Bt,Bt<<=1;switch(Ir=Ct){case 0:for(Ct=0,It=Math.pow(2,8),Bt=1;Bt!=It;)nr=yr.val&yr.position,yr.position>>=1,yr.position==0&&(yr.position=rr,yr.val=Ft(yr.index++)),Ct|=(nr>0?1:0)*Bt,Bt<<=1;Dt[Pt++]=lt(Ct),Ir=Pt-1,D--;break;case 1:for(Ct=0,It=Math.pow(2,16),Bt=1;Bt!=It;)nr=yr.val&yr.position,yr.position>>=1,yr.position==0&&(yr.position=rr,yr.val=Ft(yr.index++)),Ct|=(nr>0?1:0)*Bt,Bt<<=1;Dt[Pt++]=lt(Ct),Ir=Pt-1,D--;break;case 2:return tr.join("")}if(D==0&&(D=Math.pow(2,ot),ot++),Dt[Ir])Gt=Dt[Ir];else if(Ir===Pt)Gt=Tt+Tt.charAt(0);else return null;tr.push(Gt),Dt[Pt++]=Tt+Gt.charAt(0),D--,Tt=Gt,D==0&&(D=Math.pow(2,ot),ot++)}}};return Nt}();Ve=function(){return Ce}.call(On,rt,On,ti),Ve!==void 0&&(ti.exports=Ve)},61320:function(ti,On,rt){ti=rt.nmd(ti);(function(Ve,Ce){ti.exports=Ce()})(this,function(){"use strict";var Ve;function Ce(){return Ve.apply(null,arguments)}function lt(F){Ve=F}function oe(F){return F instanceof Array||Object.prototype.toString.call(F)==="[object Array]"}function fr(F){return F!=null&&Object.prototype.toString.call(F)==="[object Object]"}function re(F,X){return Object.prototype.hasOwnProperty.call(F,X)}function ie(F){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(F).length===0;var X;for(X in F)if(re(F,X))return!1;return!0}function Nt(F){return F===void 0}function Rt(F){return typeof F=="number"||Object.prototype.toString.call(F)==="[object Number]"}function rr(F){return F instanceof Date||Object.prototype.toString.call(F)==="[object Date]"}function Ft(F,X){var se=[],ge,Xe=F.length;for(ge=0;ge>>0,ge;for(ge=0;ge0)for(se=0;se=0;return(or?se?"+":"":"-")+Math.pow(10,Math.max(0,Xe)).toString().substr(1)+ge}var zt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Vt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ir={},be={};function Oe(F,X,se,ge){var Xe=ge;typeof ge=="string"&&(Xe=function(){return this[ge]()}),F&&(be[F]=Xe),X&&(be[X[0]]=function(){return Pr(Xe.apply(this,arguments),X[1],X[2])}),se&&(be[se]=function(){return this.localeData().ordinal(Xe.apply(this,arguments),F)})}function Re(F){return F.match(/\[[\s\S]/)?F.replace(/^\[|\]$/g,""):F.replace(/\\/g,"")}function Ie(F){var X=F.match(zt),se,ge;for(se=0,ge=X.length;se=0&&Vt.test(F);)F=F.replace(Vt,ge),Vt.lastIndex=0,se-=1;return F}var et={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function mt(F){var X=this._longDateFormat[F],se=this._longDateFormat[F.toUpperCase()];return X||!se?X:(this._longDateFormat[F]=se.match(zt).map(function(ge){return ge==="MMMM"||ge==="MM"||ge==="DD"||ge==="dddd"?ge.slice(1):ge}).join(""),this._longDateFormat[F])}var fe="Invalid date";function pt(){return this._invalidDate}var wt="%d",er=/\d{1,2}/;function Lt(F){return this._ordinal.replace("%d",F)}var cr={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function dr(F,X,se,ge){var Xe=this._relativeTime[se];return Tr(Xe)?Xe(F,X,se,ge):Xe.replace(/%d/i,F)}function jr(F,X){var se=this._relativeTime[F>0?"future":"past"];return Tr(se)?se(X):se.replace(/%s/i,X)}var vn={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function cn(F){return typeof F=="string"?vn[F]||vn[F.toLowerCase()]:void 0}function Xn(F){var X={},se,ge;for(ge in F)re(F,ge)&&(se=cn(ge),se&&(X[se]=F[ge]));return X}var un={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Jr(F){var X=[],se;for(se in F)re(F,se)&&X.push({unit:se,priority:un[se]});return X.sort(function(ge,Xe){return ge.priority-Xe.priority}),X}var tt=/\d/,de=/\d\d/,ve=/\d{3}/,ce=/\d{4}/,we=/[+-]?\d{6}/,xe=/\d\d?/,ke=/\d\d\d\d?/,Te=/\d\d\d\d\d\d?/,st=/\d{1,3}/,xt=/\d{1,4}/,Ht=/[+-]?\d{1,6}/,Yt=/\d+/,lr=/[+-]?\d+/,vr=/Z|[+-]\d\d:?\d\d/gi,Gr=/Z|[+-]\d\d(?::?\d\d)?/gi,Zt=/[+-]?\d+(\.\d{1,3})?/,Nr=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,en=/^[1-9]\d?/,Sn=/^([1-9]\d|\d)/,kn;kn={};function Sr(F,X,se){kn[F]=Tr(X)?X:function(ge,Xe){return ge&&se?se:X}}function qn(F,X){return re(kn,F)?kn[F](X._strict,X._locale):new RegExp(An(F))}function An(F){return vi(F.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(X,se,ge,Xe,or){return se||ge||Xe||or}))}function vi(F){return F.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ba(F){return F<0?Math.ceil(F)||0:Math.floor(F)}function Ai(F){var X=+F,se=0;return X!==0&&isFinite(X)&&(se=ba(X)),se}var Za={};function Ur(F,X){var se,ge=X,Xe;for(typeof F=="string"&&(F=[F]),Rt(X)&&(ge=function(or,Yr){Yr[X]=Ai(or)}),Xe=F.length,se=0;se68?1900:2e3)};var Du=Lu("FullYear",!0);function Uf(){return Ka(this.year())}function Lu(F,X){return function(se){return se!=null?(Cs(this,F,se),Ce.updateOffset(this,X),this):Js(this,F)}}function Js(F,X){if(!F.isValid())return NaN;var se=F._d,ge=F._isUTC;switch(X){case"Milliseconds":return ge?se.getUTCMilliseconds():se.getMilliseconds();case"Seconds":return ge?se.getUTCSeconds():se.getSeconds();case"Minutes":return ge?se.getUTCMinutes():se.getMinutes();case"Hours":return ge?se.getUTCHours():se.getHours();case"Date":return ge?se.getUTCDate():se.getDate();case"Day":return ge?se.getUTCDay():se.getDay();case"Month":return ge?se.getUTCMonth():se.getMonth();case"FullYear":return ge?se.getUTCFullYear():se.getFullYear();default:return NaN}}function Cs(F,X,se){var ge,Xe,or,Yr,li;if(!(!F.isValid()||isNaN(se))){switch(ge=F._d,Xe=F._isUTC,X){case"Milliseconds":return void(Xe?ge.setUTCMilliseconds(se):ge.setMilliseconds(se));case"Seconds":return void(Xe?ge.setUTCSeconds(se):ge.setSeconds(se));case"Minutes":return void(Xe?ge.setUTCMinutes(se):ge.setMinutes(se));case"Hours":return void(Xe?ge.setUTCHours(se):ge.setHours(se));case"Date":return void(Xe?ge.setUTCDate(se):ge.setDate(se));case"FullYear":break;default:return}or=se,Yr=F.month(),li=F.date(),li=li===29&&Yr===1&&!Ka(or)?28:li,Xe?ge.setUTCFullYear(or,Yr,li):ge.setFullYear(or,Yr,li)}}function bs(F){return F=cn(F),Tr(this[F])?this[F]():this}function kh(F,X){if(typeof F=="object"){F=Xn(F);var se=Jr(F),ge,Xe=se.length;for(ge=0;ge=0?(li=new Date(F+400,X,se,ge,Xe,or,Yr),isFinite(li.getFullYear())&&li.setFullYear(F)):li=new Date(F,X,se,ge,Xe,or,Yr),li}function ol(F){var X,se;return F<100&&F>=0?(se=Array.prototype.slice.call(arguments),se[0]=F+400,X=new Date(Date.UTC.apply(null,se)),isFinite(X.getUTCFullYear())&&X.setUTCFullYear(F)):X=new Date(Date.UTC.apply(null,arguments)),X}function Ps(F,X,se){var ge=7+X-se,Xe=(7+ol(F,0,ge).getUTCDay()-X)%7;return-Xe+ge-1}function ho(F,X,se,ge,Xe){var or=(7+se-ge)%7,Yr=Ps(F,ge,Xe),li=1+7*(X-1)+or+Yr,Ti,Oa;return li<=0?(Ti=F-1,Oa=Qs(Ti)+li):li>Qs(F)?(Ti=F+1,Oa=li-Qs(F)):(Ti=F,Oa=li),{year:Ti,dayOfYear:Oa}}function ql(F,X,se){var ge=Ps(F.year(),X,se),Xe=Math.floor((F.dayOfYear()-ge-1)/7)+1,or,Yr;return Xe<1?(Yr=F.year()-1,or=Xe+Bs(Yr,X,se)):Xe>Bs(F.year(),X,se)?(or=Xe-Bs(F.year(),X,se),Yr=F.year()+1):(Yr=F.year(),or=Xe),{week:or,year:Yr}}function Bs(F,X,se){var ge=Ps(F,X,se),Xe=Ps(F+1,X,se);return(Qs(F)-ge+Xe)/7}Oe("w",["ww",2],"wo","week"),Oe("W",["WW",2],"Wo","isoWeek"),Sr("w",xe,en),Sr("ww",xe,de),Sr("W",xe,en),Sr("WW",xe,de),ni(["w","ww","W","WW"],function(F,X,se,ge){X[ge.substr(0,1)]=Ai(F)});function Fh(F){return ql(F,this._week.dow,this._week.doy).week}var Hc={dow:0,doy:6};function _d(){return this._week.dow}function pe(){return this._week.doy}function Ae(F){var X=this.localeData().week(this);return F==null?X:this.add((F-X)*7,"d")}function Ke(F){var X=ql(this,1,4).week;return F==null?X:this.add((F-X)*7,"d")}Oe("d",0,"do","day"),Oe("dd",0,0,function(F){return this.localeData().weekdaysMin(this,F)}),Oe("ddd",0,0,function(F){return this.localeData().weekdaysShort(this,F)}),Oe("dddd",0,0,function(F){return this.localeData().weekdays(this,F)}),Oe("e",0,0,"weekday"),Oe("E",0,0,"isoWeekday"),Sr("d",xe),Sr("e",xe),Sr("E",xe),Sr("dd",function(F,X){return X.weekdaysMinRegex(F)}),Sr("ddd",function(F,X){return X.weekdaysShortRegex(F)}),Sr("dddd",function(F,X){return X.weekdaysRegex(F)}),ni(["dd","ddd","dddd"],function(F,X,se,ge){var Xe=se._locale.weekdaysParse(F,ge,se._strict);Xe!=null?X.d=Xe:Pt(se).invalidWeekday=F}),ni(["d","e","E"],function(F,X,se,ge){X[ge]=Ai(F)});function jt(F,X){return typeof F!="string"?F:isNaN(F)?(F=X.weekdaysParse(F),typeof F=="number"?F:null):parseInt(F,10)}function Lr(F,X){return typeof F=="string"?X.weekdaysParse(F)%7||7:isNaN(F)?null:F}function qr(F,X){return F.slice(X,7).concat(F.slice(0,X))}var Ln="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),si="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Pn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),fi=Nr,wi=Nr,ci=Nr;function Vr(F,X){var se=oe(this._weekdays)?this._weekdays:this._weekdays[F&&F!==!0&&this._weekdays.isFormat.test(X)?"format":"standalone"];return F===!0?qr(se,this._week.dow):F?se[F.day()]:se}function Dn(F){return F===!0?qr(this._weekdaysShort,this._week.dow):F?this._weekdaysShort[F.day()]:this._weekdaysShort}function Ci(F){return F===!0?qr(this._weekdaysMin,this._week.dow):F?this._weekdaysMin[F.day()]:this._weekdaysMin}function oi(F,X,se){var ge,Xe,or,Yr=F.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],ge=0;ge<7;++ge)or=U([2e3,1]).day(ge),this._minWeekdaysParse[ge]=this.weekdaysMin(or,"").toLocaleLowerCase(),this._shortWeekdaysParse[ge]=this.weekdaysShort(or,"").toLocaleLowerCase(),this._weekdaysParse[ge]=this.weekdays(or,"").toLocaleLowerCase();return se?X==="dddd"?(Xe=la.call(this._weekdaysParse,Yr),Xe!==-1?Xe:null):X==="ddd"?(Xe=la.call(this._shortWeekdaysParse,Yr),Xe!==-1?Xe:null):(Xe=la.call(this._minWeekdaysParse,Yr),Xe!==-1?Xe:null):X==="dddd"?(Xe=la.call(this._weekdaysParse,Yr),Xe!==-1||(Xe=la.call(this._shortWeekdaysParse,Yr),Xe!==-1)?Xe:(Xe=la.call(this._minWeekdaysParse,Yr),Xe!==-1?Xe:null)):X==="ddd"?(Xe=la.call(this._shortWeekdaysParse,Yr),Xe!==-1||(Xe=la.call(this._weekdaysParse,Yr),Xe!==-1)?Xe:(Xe=la.call(this._minWeekdaysParse,Yr),Xe!==-1?Xe:null)):(Xe=la.call(this._minWeekdaysParse,Yr),Xe!==-1||(Xe=la.call(this._weekdaysParse,Yr),Xe!==-1)?Xe:(Xe=la.call(this._shortWeekdaysParse,Yr),Xe!==-1?Xe:null))}function Gn(F,X,se){var ge,Xe,or;if(this._weekdaysParseExact)return oi.call(this,F,X,se);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),ge=0;ge<7;ge++){if(Xe=U([2e3,1]).day(ge),se&&!this._fullWeekdaysParse[ge]&&(this._fullWeekdaysParse[ge]=new RegExp("^"+this.weekdays(Xe,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[ge]=new RegExp("^"+this.weekdaysShort(Xe,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[ge]=new RegExp("^"+this.weekdaysMin(Xe,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[ge]||(or="^"+this.weekdays(Xe,"")+"|^"+this.weekdaysShort(Xe,"")+"|^"+this.weekdaysMin(Xe,""),this._weekdaysParse[ge]=new RegExp(or.replace(".",""),"i")),se&&X==="dddd"&&this._fullWeekdaysParse[ge].test(F))return ge;if(se&&X==="ddd"&&this._shortWeekdaysParse[ge].test(F))return ge;if(se&&X==="dd"&&this._minWeekdaysParse[ge].test(F))return ge;if(!se&&this._weekdaysParse[ge].test(F))return ge}}function Wi(F){if(!this.isValid())return F!=null?this:NaN;var X=Js(this,"Day");return F!=null?(F=jt(F,this.localeData()),this.add(F-X,"d")):X}function Gi(F){if(!this.isValid())return F!=null?this:NaN;var X=(this.day()+7-this.localeData()._week.dow)%7;return F==null?X:this.add(F-X,"d")}function pa(F){if(!this.isValid())return F!=null?this:NaN;if(F!=null){var X=Lr(F,this.localeData());return this.day(this.day()%7?X:X-7)}else return this.day()||7}function Ao(F){return this._weekdaysParseExact?(re(this,"_weekdaysRegex")||Dl.call(this),F?this._weekdaysStrictRegex:this._weekdaysRegex):(re(this,"_weekdaysRegex")||(this._weekdaysRegex=fi),this._weekdaysStrictRegex&&F?this._weekdaysStrictRegex:this._weekdaysRegex)}function ll(F){return this._weekdaysParseExact?(re(this,"_weekdaysRegex")||Dl.call(this),F?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(re(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=wi),this._weekdaysShortStrictRegex&&F?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function vo(F){return this._weekdaysParseExact?(re(this,"_weekdaysRegex")||Dl.call(this),F?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(re(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ci),this._weekdaysMinStrictRegex&&F?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Dl(){function F(Ws,gc){return gc.length-Ws.length}var X=[],se=[],ge=[],Xe=[],or,Yr,li,Ti,Oa;for(or=0;or<7;or++)Yr=U([2e3,1]).day(or),li=vi(this.weekdaysMin(Yr,"")),Ti=vi(this.weekdaysShort(Yr,"")),Oa=vi(this.weekdays(Yr,"")),X.push(li),se.push(Ti),ge.push(Oa),Xe.push(li),Xe.push(Ti),Xe.push(Oa);X.sort(F),se.sort(F),ge.sort(F),Xe.sort(F),this._weekdaysRegex=new RegExp("^("+Xe.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+ge.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+se.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+X.join("|")+")","i")}function eu(){return this.hours()%12||12}function ks(){return this.hours()||24}Oe("H",["HH",2],0,"hour"),Oe("h",["hh",2],0,eu),Oe("k",["kk",2],0,ks),Oe("hmm",0,0,function(){return""+eu.apply(this)+Pr(this.minutes(),2)}),Oe("hmmss",0,0,function(){return""+eu.apply(this)+Pr(this.minutes(),2)+Pr(this.seconds(),2)}),Oe("Hmm",0,0,function(){return""+this.hours()+Pr(this.minutes(),2)}),Oe("Hmmss",0,0,function(){return""+this.hours()+Pr(this.minutes(),2)+Pr(this.seconds(),2)});function ws(F,X){Oe(F,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),X)})}ws("a",!0),ws("A",!1);function sl(F,X){return X._meridiemParse}Sr("a",sl),Sr("A",sl),Sr("H",xe,Sn),Sr("h",xe,en),Sr("k",xe,en),Sr("HH",xe,de),Sr("hh",xe,de),Sr("kk",xe,de),Sr("hmm",ke),Sr("hmmss",Te),Sr("Hmm",ke),Sr("Hmmss",Te),Ur(["H","HH"],ji),Ur(["k","kk"],function(F,X,se){var ge=Ai(F);X[ji]=ge===24?0:ge}),Ur(["a","A"],function(F,X,se){se._isPm=se._locale.isPM(F),se._meridiem=F}),Ur(["h","hh"],function(F,X,se){X[ji]=Ai(F),Pt(se).bigHour=!0}),Ur("hmm",function(F,X,se){var ge=F.length-2;X[ji]=Ai(F.substr(0,ge)),X[Qo]=Ai(F.substr(ge)),Pt(se).bigHour=!0}),Ur("hmmss",function(F,X,se){var ge=F.length-4,Xe=F.length-2;X[ji]=Ai(F.substr(0,ge)),X[Qo]=Ai(F.substr(ge,2)),X[Oo]=Ai(F.substr(Xe)),Pt(se).bigHour=!0}),Ur("Hmm",function(F,X,se){var ge=F.length-2;X[ji]=Ai(F.substr(0,ge)),X[Qo]=Ai(F.substr(ge))}),Ur("Hmmss",function(F,X,se){var ge=F.length-4,Xe=F.length-2;X[ji]=Ai(F.substr(0,ge)),X[Qo]=Ai(F.substr(ge,2)),X[Oo]=Ai(F.substr(Xe))});function yu(F){return(F+"").toLowerCase().charAt(0)==="p"}var xs=/[ap]\.?m?\.?/i,Cu=Lu("Hours",!0);function ta(F,X,se){return F>11?se?"pm":"PM":se?"am":"AM"}var $n={calendar:ze,longDateFormat:et,invalidDate:fe,ordinal:wt,dayOfMonthOrdinalParse:er,relativeTime:cr,months:hc,monthsShort:Rl,week:Hc,weekdays:Ln,weekdaysMin:Pn,weekdaysShort:si,meridiemParse:xs},Qr={},Bn={},Ri;function qi(F,X){var se,ge=Math.min(F.length,X.length);for(se=0;se0;){if(Xe=Ro(or.slice(0,se).join("-")),Xe)return Xe;if(ge&&ge.length>=se&&qi(or,ge)>=se-1)break;se--}X++}return Ri}function Oi(F){return!!(F&&F.match("^[^/\\\\]*$"))}function Ro(F){var X=null,se;if(Qr[F]===void 0&&ti&&ti.exports&&Oi(F))try{X=Ri._abbr,se=void 0,Object(function(){var Xe=new Error("Cannot find module 'undefined'");throw Xe.code="MODULE_NOT_FOUND",Xe}()),po(X)}catch(ge){Qr[F]=null}return Qr[F]}function po(F,X){var se;return F&&(Nt(X)?se=wl(F):se=Jo(F,X),se?Ri=se:typeof console!="undefined"&&console.warn&&console.warn("Locale "+F+" not found. Did you forget to load it?")),Ri._abbr}function Jo(F,X){if(X!==null){var se,ge=$n;if(X.abbr=F,Qr[F]!=null)Xr("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),ge=Qr[F]._config;else if(X.parentLocale!=null)if(Qr[X.parentLocale]!=null)ge=Qr[X.parentLocale]._config;else if(se=Ro(X.parentLocale),se!=null)ge=se._config;else return Bn[X.parentLocale]||(Bn[X.parentLocale]=[]),Bn[X.parentLocale].push({name:F,config:X}),null;return Qr[F]=new ai(jn(ge,X)),Bn[F]&&Bn[F].forEach(function(Xe){Jo(Xe.name,Xe.config)}),po(F),Qr[F]}else return delete Qr[F],null}function bl(F,X){if(X!=null){var se,ge,Xe=$n;Qr[F]!=null&&Qr[F].parentLocale!=null?Qr[F].set(jn(Qr[F]._config,X)):(ge=Ro(F),ge!=null&&(Xe=ge._config),X=jn(Xe,X),ge==null&&(X.abbr=F),se=new ai(X),se.parentLocale=Qr[F],Qr[F]=se),po(F)}else Qr[F]!=null&&(Qr[F].parentLocale!=null?(Qr[F]=Qr[F].parentLocale,F===po()&&po(F)):Qr[F]!=null&&delete Qr[F]);return Qr[F]}function wl(F){var X;if(F&&F._locale&&F._locale._abbr&&(F=F._locale._abbr),!F)return Ri;if(!oe(F)){if(X=Ro(F),X)return X;F=[F]}return Io(F)}function Pu(){return ri(Qr)}function Fs(F){var X,se=F._a;return se&&Pt(F).overflow===-2&&(X=se[pi]<0||se[pi]>11?pi:se[oa]<1||se[oa]>ea(se[Ma],se[pi])?oa:se[ji]<0||se[ji]>24||se[ji]===24&&(se[Qo]!==0||se[Oo]!==0||se[Il]!==0)?ji:se[Qo]<0||se[Qo]>59?Qo:se[Oo]<0||se[Oo]>59?Oo:se[Il]<0||se[Il]>999?Il:-1,Pt(F)._overflowDayOfYear&&(Xoa)&&(X=oa),Pt(F)._overflowWeeks&&X===-1&&(X=ys),Pt(F)._overflowWeekday&&X===-1&&(X=al),Pt(F).overflow=X),F}var Ed=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ev=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Md=/Z|[+-]\d\d(?::?\d\d)?/,oo=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],xl=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Mv=/^\/?Date\((-?\d+)/i,Ns=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,jf={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function De(F){var X,se,ge=F._i,Xe=Ed.exec(ge)||Ev.exec(ge),or,Yr,li,Ti,Oa=oo.length,Ws=xl.length;if(Xe){for(Pt(F).iso=!0,X=0,se=Oa;XQs(Yr)||F._dayOfYear===0)&&(Pt(F)._overflowDayOfYear=!0),se=ol(Yr,0,F._dayOfYear),F._a[pi]=se.getUTCMonth(),F._a[oa]=se.getUTCDate()),X=0;X<3&&F._a[X]==null;++X)F._a[X]=ge[X]=Xe[X];for(;X<7;X++)F._a[X]=ge[X]=F._a[X]==null?X===2?1:0:F._a[X];F._a[ji]===24&&F._a[Qo]===0&&F._a[Oo]===0&&F._a[Il]===0&&(F._nextDay=!0,F._a[ji]=0),F._d=(F._useUTC?ol:Wo).apply(null,ge),or=F._useUTC?F._d.getUTCDay():F._d.getDay(),F._tzm!=null&&F._d.setUTCMinutes(F._d.getUTCMinutes()-F._tzm),F._nextDay&&(F._a[ji]=24),F._w&&typeof F._w.d!="undefined"&&F._w.d!==or&&(Pt(F).weekdayMismatch=!0)}}function Td(F){var X,se,ge,Xe,or,Yr,li,Ti,Oa;X=F._w,X.GG!=null||X.W!=null||X.E!=null?(or=1,Yr=4,se=Xo(X.GG,F._a[Ma],ql(Fo(),1,4).year),ge=Xo(X.W,1),Xe=Xo(X.E,1),(Xe<1||Xe>7)&&(Ti=!0)):(or=F._locale._week.dow,Yr=F._locale._week.doy,Oa=ql(Fo(),or,Yr),se=Xo(X.gg,F._a[Ma],Oa.year),ge=Xo(X.w,Oa.week),X.d!=null?(Xe=X.d,(Xe<0||Xe>6)&&(Ti=!0)):X.e!=null?(Xe=X.e+or,(X.e<0||X.e>6)&&(Ti=!0)):Xe=or),ge<1||ge>Bs(se,or,Yr)?Pt(F)._overflowWeeks=!0:Ti!=null?Pt(F)._overflowWeekday=!0:(li=ho(se,ge,Xe,or,Yr),F._a[Ma]=li.year,F._dayOfYear=li.dayOfYear)}Ce.ISO_8601=function(){},Ce.RFC_2822=function(){};function Nh(F){if(F._f===Ce.ISO_8601){De(F);return}if(F._f===Ce.RFC_2822){xi(F);return}F._a=[],Pt(F).empty=!0;var X=""+F._i,se,ge,Xe,or,Yr,li=X.length,Ti=0,Oa,Ws;for(Xe=qt(F._f,F._locale).match(zt)||[],Ws=Xe.length,se=0;se0&&Pt(F).unusedInput.push(Yr),X=X.slice(X.indexOf(ge)+ge.length),Ti+=ge.length),be[or]?(ge?Pt(F).empty=!1:Pt(F).unusedTokens.push(or),qs(or,ge,F)):F._strict&&!ge&&Pt(F).unusedTokens.push(or);Pt(F).charsLeftOver=li-Ti,X.length>0&&Pt(F).unusedInput.push(X),F._a[ji]<=12&&Pt(F).bigHour===!0&&F._a[ji]>0&&(Pt(F).bigHour=void 0),Pt(F).parsedDateParts=F._a.slice(0),Pt(F).meridiem=F._meridiem,F._a[ji]=Ty(F._locale,F._a[ji],F._meridiem),Oa=Pt(F).era,Oa!==null&&(F._a[Ma]=F._locale.erasConvertYear(Oa,F._a[Ma])),Ql(F),Fs(F)}function Ty(F,X,se){var ge;return se==null?X:F.meridiemHour!=null?F.meridiemHour(X,se):(F.isPM!=null&&(ge=F.isPM(se),ge&&X<12&&(X+=12),!ge&&X===12&&(X=0)),X)}function xx(F){var X,se,ge,Xe,or,Yr,li=!1,Ti=F._f.length;if(Ti===0){Pt(F).invalidFormat=!0,F._d=new Date(NaN);return}for(Xe=0;Xethis?this:F:tr()});function Ta(F,X){var se,ge;if(X.length===1&&oe(X[0])&&(X=X[0]),!X.length)return Fo();for(se=X[0],ge=1;gethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Vp(){if(!Nt(this._isDSTShifted))return this._isDSTShifted;var F={},X;return Ct(F,this),F=Ov(F),F._a?(X=F._isUTC?U(F._a):Fo(F._a),this._isDSTShifted=this.isValid()&&Ay(F._a,X.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function G1(){return this.isValid()?!this._isUTC:!1}function Iy(){return this.isValid()?this._isUTC:!1}function Ry(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Ex=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Mx=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ll(F,X){var se=F,ge=null,Xe,or,Yr;return bu(F)?se={ms:F._milliseconds,d:F._days,M:F._months}:Rt(F)||!isNaN(+F)?(se={},X?se[X]=+F:se.milliseconds=+F):(ge=Ex.exec(F))?(Xe=ge[1]==="-"?-1:1,se={y:0,d:Ai(ge[oa])*Xe,h:Ai(ge[ji])*Xe,m:Ai(ge[Qo])*Xe,s:Ai(ge[Oo])*Xe,ms:Ai(us(ge[Il]*1e3))*Xe}):(ge=Mx.exec(F))?(Xe=ge[1]==="-"?-1:1,se={y:Od(ge[2],Xe),M:Od(ge[3],Xe),w:Od(ge[4],Xe),d:Od(ge[5],Xe),h:Od(ge[6],Xe),m:Od(ge[7],Xe),s:Od(ge[8],Xe)}):se==null?se={}:typeof se=="object"&&("from"in se||"to"in se)&&(Yr=Tx(Fo(se.from),Fo(se.to)),se={},se.ms=Yr.milliseconds,se.M=Yr.months),or=new gf(se),bu(F)&&re(F,"_locale")&&(or._locale=F._locale),bu(F)&&re(F,"_isValid")&&(or._isValid=F._isValid),or}Ll.fn=gf.prototype,Ll.invalid=Iv;function Od(F,X){var se=F&&parseFloat(F.replace(",","."));return(isNaN(se)?0:se)*X}function Vf(F,X){var se={};return se.months=X.month()-F.month()+(X.year()-F.year())*12,F.clone().add(se.months,"M").isAfter(X)&&--se.months,se.milliseconds=+X-+F.clone().add(se.months,"M"),se}function Tx(F,X){var se;return F.isValid()&&X.isValid()?(X=Hh(X,F),F.isBefore(X)?se=Vf(F,X):(se=Vf(X,F),se.milliseconds=-se.milliseconds,se.months=-se.months),se):{milliseconds:0,months:0}}function Dv(F,X){return function(se,ge){var Xe,or;return ge!==null&&!isNaN(+ge)&&(Xr(X,"moment()."+X+"(period, number) is deprecated. Please use moment()."+X+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),or=se,se=ge,ge=or),Xe=Ll(se,ge),v0(this,Xe,F),this}}function v0(F,X,se,ge){var Xe=X._milliseconds,or=us(X._days),Yr=us(X._months);F.isValid()&&(ge=ge==null?!0:ge,Yr&&Mr(F,Js(F,"Month")+Yr*se),or&&Cs(F,"Date",Js(F,"Date")+or*se),Xe&&F._d.setTime(F._d.valueOf()+Xe*se),ge&&Ce.updateOffset(F,or||Yr))}var Xp=Dv(1,"add"),Fn=Dv(-1,"subtract");function Lv(F){return typeof F=="string"||F instanceof String}function Dy(F){return It(F)||rr(F)||Lv(F)||Rt(F)||p0(F)||Hs(F)||F===null||F===void 0}function Hs(F){var X=fr(F)&&!ie(F),se=!1,ge=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],Xe,or,Yr=ge.length;for(Xe=0;Xese.valueOf():se.valueOf()9999?ct(se,X?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Tr(Date.prototype.toISOString)?X?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ct(se,"Z")):ct(se,X?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function qp(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var F="moment",X="",se,ge,Xe,or;return this.isLocal()||(F=this.utcOffset()===0?"moment.utc":"moment.parseZone",X="Z"),se="["+F+'("]',ge=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",Xe="-MM-DD[T]HH:mm:ss.SSS",or=X+'[")]',this.format(se+ge+Xe+or)}function ky(F){F||(F=this.isUtc()?Ce.defaultFormatUtc:Ce.defaultFormat);var X=ct(this,F);return this.localeData().postformat(X)}function g0(F,X){return this.isValid()&&(It(F)&&F.isValid()||Fo(F).isValid())?Ll({to:this,from:F}).locale(this.locale()).humanize(!X):this.localeData().invalidDate()}function Fy(F){return this.from(Fo(),F)}function j1(F,X){return this.isValid()&&(It(F)&&F.isValid()||Fo(F).isValid())?Ll({from:this,to:F}).locale(this.locale()).humanize(!X):this.localeData().invalidDate()}function Ny(F){return this.to(Fo(),F)}function Qp(F){var X;return F===void 0?this._locale._abbr:(X=wl(F),X!=null&&(this._locale=X),this)}var m0=Ir("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(F){return F===void 0?this.localeData():this.locale(F)});function Hy(){return this._locale}var Fv=1e3,La=60*Fv,Rd=60*La,_l=(365*400+97)*24*Rd;function Wh(F,X){return(F%X+X)%X}function Gh(F,X,se){return F<100&&F>=0?new Date(F+400,X,se)-_l:new Date(F,X,se).valueOf()}function Ki(F,X,se){return F<100&&F>=0?Date.UTC(F+400,X,se)-_l:Date.UTC(F,X,se)}function zy(F){var X,se;if(F=cn(F),F===void 0||F==="millisecond"||!this.isValid())return this;switch(se=this._isUTC?Ki:Gh,F){case"year":X=se(this.year(),0,1);break;case"quarter":X=se(this.year(),this.month()-this.month()%3,1);break;case"month":X=se(this.year(),this.month(),1);break;case"week":X=se(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":X=se(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":X=se(this.year(),this.month(),this.date());break;case"hour":X=this._d.valueOf(),X-=Wh(X+(this._isUTC?0:this.utcOffset()*La),Rd);break;case"minute":X=this._d.valueOf(),X-=Wh(X,La);break;case"second":X=this._d.valueOf(),X-=Wh(X,Fv);break}return this._d.setTime(X),Ce.updateOffset(this,!0),this}function Nv(F){var X,se;if(F=cn(F),F===void 0||F==="millisecond"||!this.isValid())return this;switch(se=this._isUTC?Ki:Gh,F){case"year":X=se(this.year()+1,0,1)-1;break;case"quarter":X=se(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":X=se(this.year(),this.month()+1,1)-1;break;case"week":X=se(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":X=se(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":X=se(this.year(),this.month(),this.date()+1)-1;break;case"hour":X=this._d.valueOf(),X+=Rd-Wh(X+(this._isUTC?0:this.utcOffset()*La),Rd)-1;break;case"minute":X=this._d.valueOf(),X+=La-Wh(X,La)-1;break;case"second":X=this._d.valueOf(),X+=Fv-Wh(X,Fv)-1;break}return this._d.setTime(X),Ce.updateOffset(this,!0),this}function Zo(){return this._d.valueOf()-(this._offset||0)*6e4}function y0(){return Math.floor(this.valueOf()/1e3)}function $h(){return new Date(this.valueOf())}function Uh(){var F=this;return[F.year(),F.month(),F.date(),F.hour(),F.minute(),F.second(),F.millisecond()]}function Pl(){var F=this;return{years:F.year(),months:F.month(),date:F.date(),hours:F.hours(),minutes:F.minutes(),seconds:F.seconds(),milliseconds:F.milliseconds()}}function xu(){return this.isValid()?this.toISOString():null}function Yh(){return Gt(this)}function Xf(){return Dt({},Pt(this))}function ku(){return Pt(this).overflow}function C0(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Oe("N",0,0,"eraAbbr"),Oe("NN",0,0,"eraAbbr"),Oe("NNN",0,0,"eraAbbr"),Oe("NNNN",0,0,"eraName"),Oe("NNNNN",0,0,"eraNarrow"),Oe("y",["y",1],"yo","eraYear"),Oe("y",["yy",2],0,"eraYear"),Oe("y",["yyy",3],0,"eraYear"),Oe("y",["yyyy",4],0,"eraYear"),Sr("N",Ss),Sr("NN",Ss),Sr("NNN",Ss),Sr("NNNN",Vh),Sr("NNNNN",Zf),Ur(["N","NN","NNN","NNNN","NNNNN"],function(F,X,se,ge){var Xe=se._locale.erasParse(F,ge,se._strict);Xe?Pt(se).era=Xe:Pt(se).invalidEra=F}),Sr("y",Yt),Sr("yy",Yt),Sr("yyy",Yt),Sr("yyyy",Yt),Sr("yo",Ox),Ur(["y","yy","yyy","yyyy"],Ma),Ur(["yo"],function(F,X,se,ge){var Xe;se._locale._eraYearOrdinalRegex&&(Xe=F.match(se._locale._eraYearOrdinalRegex)),se._locale.eraYearOrdinalParse?X[Ma]=se._locale.eraYearOrdinalParse(F,Xe):X[Ma]=parseInt(F,10)});function Hv(F,X){var se,ge,Xe,or=this._eras||wl("en")._eras;for(se=0,ge=or.length;se=0)return or[ge]}function zv(F,X){var se=F.since<=F.until?1:-1;return X===void 0?Ce(F.since).year():Ce(F.since).year()+(X-F.offset)*se}function Wv(){var F,X,se,ge=this.localeData().eras();for(F=0,X=ge.length;For&&(X=or),Gy.call(this,F,X,se,ge,Xe))}function Gy(F,X,se,ge,Xe){var or=ho(F,X,se,ge,Xe),Yr=ol(or.year,0,or.dayOfYear);return this.year(Yr.getUTCFullYear()),this.month(Yr.getUTCMonth()),this.date(Yr.getUTCDate()),this}Oe("Q",0,"Qo","quarter"),Sr("Q",tt),Ur("Q",function(F,X){X[pi]=(Ai(F)-1)*3});function Nu(F){return F==null?Math.ceil((this.month()+1)/3):this.month((F-1)*3+this.month()%3)}Oe("D",["DD",2],"Do","date"),Sr("D",xe,en),Sr("DD",xe,de),Sr("Do",function(F,X){return F?X._dayOfMonthOrdinalParse||X._ordinalParse:X._dayOfMonthOrdinalParseLenient}),Ur(["D","DD"],oa),Ur("Do",function(F,X){X[oa]=Ai(F.match(xe)[0])});var Uv=Lu("Date",!0);Oe("DDD",["DDDD",3],"DDDo","dayOfYear"),Sr("DDD",st),Sr("DDDD",ve),Ur(["DDD","DDDD"],function(F,X,se){se._dayOfYear=Ai(F)});function $y(F){var X=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return F==null?X:this.add(F-X,"d")}Oe("m",["mm",2],0,"minute"),Sr("m",xe,Sn),Sr("mm",xe,de),Ur(["m","mm"],Qo);var Uy=Lu("Minutes",!1);Oe("s",["ss",2],0,"second"),Sr("s",xe,Sn),Sr("ss",xe,de),Ur(["s","ss"],Oo);var Bl=Lu("Seconds",!1);Oe("S",0,0,function(){return~~(this.millisecond()/100)}),Oe(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Oe(0,["SSS",3],0,"millisecond"),Oe(0,["SSSS",4],0,function(){return this.millisecond()*10}),Oe(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Oe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Oe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Oe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Oe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Sr("S",st,tt),Sr("SS",st,de),Sr("SSS",st,ve);var Su,Wc;for(Su="SSSS";Su.length<=9;Su+="S")Sr(Su,Yt);function qf(F,X){X[Il]=Ai(("0."+F)*1e3)}for(Su="S";Su.length<=9;Su+="S")Ur(Su,qf);Wc=Lu("Milliseconds",!1),Oe("z",0,0,"zoneAbbr"),Oe("zz",0,0,"zoneName");function So(){return this._isUTC?"UTC":""}function Yv(){return this._isUTC?"Coordinated Universal Time":""}var _n=nr.prototype;_n.add=Xp,_n.calendar=Ly,_n.clone=zh,_n.diff=Bv,_n.endOf=Nv,_n.format=ky,_n.from=g0,_n.fromNow=Fy,_n.to=j1,_n.toNow=Ny,_n.get=bs,_n.invalidAt=ku,_n.isAfter=U1,_n.isBefore=Ad,_n.isBetween=Y1,_n.isSame=Py,_n.isSameOrAfter=Zp,_n.isSameOrBefore=By,_n.isValid=Yh,_n.lang=m0,_n.locale=Qp,_n.localeData=Hy,_n.max=dc,_n.min=gi,_n.parsingFlags=Xf,_n.set=kh,_n.startOf=zy,_n.subtract=Fn,_n.toArray=Uh,_n.toObject=Pl,_n.toDate=$h,_n.toISOString=kv,_n.inspect=qp,typeof Symbol!="undefined"&&Symbol.for!=null&&(_n[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),_n.toJSON=xu,_n.toString=Kp,_n.unix=y0,_n.valueOf=Zo,_n.creationData=C0,_n.eraName=Wv,_n.eraNarrow=Fu,_n.eraAbbr=Gv,_n.eraYear=Jl,_n.year=Du,_n.isLeapYear=Uf,_n.weekYear=Wy,_n.isoWeekYear=$v,_n.quarter=_n.quarters=Nu,_n.month=an,_n.daysInMonth=wn,_n.week=_n.weeks=Ae,_n.isoWeek=_n.isoWeeks=Ke,_n.weeksInYear=Kf,_n.weeksInWeekYear=X1,_n.isoWeeksInYear=V1,_n.isoWeeksInISOWeekYear=zs,_n.date=Uv,_n.day=_n.days=Wi,_n.weekday=Gi,_n.isoWeekday=pa,_n.dayOfYear=$y,_n.hour=_n.hours=Cu,_n.minute=_n.minutes=Uy,_n.second=_n.seconds=Bl,_n.millisecond=_n.milliseconds=Wc,_n.utcOffset=Yp,_n.utc=Sx,_n.local=A_,_n.parseZone=Rv,_n.hasAlignedHourOffset=_x,_n.isDST=jp,_n.isLocal=G1,_n.isUtcOffset=Iy,_n.isUtc=Ry,_n.isUTC=Ry,_n.zoneAbbr=So,_n.zoneName=Yv,_n.dates=Ir("dates accessor is deprecated. Use date instead.",Uv),_n.months=Ir("months accessor is deprecated. Use month instead",an),_n.years=Ir("years accessor is deprecated. Use year instead",Du),_n.zone=Ir("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",O_),_n.isDSTShifted=Ir("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Vp);function Ld(F){return Fo(F*1e3)}function Zh(){return Fo.apply(null,arguments).parseZone()}function Hu(F){return F}var ka=ai.prototype;ka.calendar=Et,ka.longDateFormat=mt,ka.invalidDate=pt,ka.ordinal=Lt,ka.preparse=Hu,ka.postformat=Hu,ka.relativeTime=dr,ka.pastFuture=jr,ka.set=fn,ka.eras=Hv,ka.erasParse=Jp,ka.erasConvertYear=zv,ka.erasAbbrRegex=eg,ka.erasNameRegex=jh,ka.erasNarrowRegex=lo,ka.months=St,ka.monthsShort=Be,ka.monthsParse=Qt,ka.monthsRegex=Mi,ka.monthsShortRegex=gn,ka.week=Fh,ka.firstDayOfYear=pe,ka.firstDayOfWeek=_d,ka.weekdays=Vr,ka.weekdaysMin=Ci,ka.weekdaysShort=Dn,ka.weekdaysParse=Gn,ka.weekdaysRegex=Ao,ka.weekdaysShortRegex=ll,ka.weekdaysMinRegex=vo,ka.isPM=yu,ka.meridiem=ta;function rg(F,X,se,ge){var Xe=wl(),or=U().set(ge,X);return Xe[se](or,F)}function Qf(F,X,se){if(Rt(F)&&(X=F,F=void 0),F=F||"",X!=null)return rg(F,X,se,"month");var ge,Xe=[];for(ge=0;ge<12;ge++)Xe[ge]=rg(F,ge,se,"month");return Xe}function Jf(F,X,se,ge){typeof F=="boolean"?(Rt(X)&&(se=X,X=void 0),X=X||""):(X=F,se=X,F=!1,Rt(X)&&(se=X,X=void 0),X=X||"");var Xe=wl(),or=F?Xe._week.dow:0,Yr,li=[];if(se!=null)return rg(X,(se+or)%7,ge,"day");for(Yr=0;Yr<7;Yr++)li[Yr]=rg(X,(Yr+or)%7,ge,"day");return li}function Di(F,X){return Qf(F,X,"months")}function Pd(F,X){return Qf(F,X,"monthsShort")}function Z1(F,X,se){return Jf(F,X,se,"weekdays")}function K1(F,X,se){return Jf(F,X,se,"weekdaysShort")}function Ax(F,X,se){return Jf(F,X,se,"weekdaysMin")}po("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(F){var X=F%10,se=Ai(F%100/10)===1?"th":X===1?"st":X===2?"nd":X===3?"rd":"th";return F+se}}),Ce.lang=Ir("moment.lang is deprecated. Use moment.locale instead.",po),Ce.langData=Ir("moment.langData is deprecated. Use moment.localeData instead.",wl);var Gc=Math.abs;function Yy(){var F=this._data;return this._milliseconds=Gc(this._milliseconds),this._days=Gc(this._days),this._months=Gc(this._months),F.milliseconds=Gc(F.milliseconds),F.seconds=Gc(F.seconds),F.minutes=Gc(F.minutes),F.hours=Gc(F.hours),F.months=Gc(F.months),F.years=Gc(F.years),this}function Bd(F,X,se,ge){var Xe=Ll(X,se);return F._milliseconds+=ge*Xe._milliseconds,F._days+=ge*Xe._days,F._months+=ge*Xe._months,F._bubble()}function b0(F,X){return Bd(this,F,X,1)}function w0(F,X){return Bd(this,F,X,-1)}function jv(F){return F<0?Math.floor(F):Math.ceil(F)}function jy(){var F=this._milliseconds,X=this._days,se=this._months,ge=this._data,Xe,or,Yr,li,Ti;return F>=0&&X>=0&&se>=0||F<=0&&X<=0&&se<=0||(F+=jv(Vv(se)+X)*864e5,X=0,se=0),ge.milliseconds=F%1e3,Xe=ba(F/1e3),ge.seconds=Xe%60,or=ba(Xe/60),ge.minutes=or%60,Yr=ba(or/60),ge.hours=Yr%24,X+=ba(Yr/24),Ti=ba(vc(X)),se+=Ti,X-=jv(Vv(Ti)),li=ba(se/12),se%=12,ge.days=X,ge.months=se,ge.years=li,this}function vc(F){return F*4800/146097}function Vv(F){return F*146097/4800}function Vy(F){if(!this.isValid())return NaN;var X,se,ge=this._milliseconds;if(F=cn(F),F==="month"||F==="quarter"||F==="year")switch(X=this._days+ge/864e5,se=this._months+vc(X),F){case"month":return se;case"quarter":return se/3;case"year":return se/12}else switch(X=this._days+Math.round(Vv(this._months)),F){case"week":return X/7+ge/6048e5;case"day":return X+ge/864e5;case"hour":return X*24+ge/36e5;case"minute":return X*1440+ge/6e4;case"second":return X*86400+ge/1e3;case"millisecond":return Math.floor(X*864e5)+ge;default:throw new Error("Unknown unit "+F)}}function zu(F){return function(){return this.as(F)}}var x0=zu("ms"),Ix=zu("s"),q1=zu("m"),ru=zu("h"),Q1=zu("d"),kd=zu("w"),Fd=zu("M"),J1=zu("Q"),Xy=zu("y"),eh=x0;function eb(){return Ll(this)}function Zy(F){return F=cn(F),this.isValid()?this[F+"s"]():NaN}function Wu(F){return function(){return this.isValid()?this._data[F]:NaN}}var S0=Wu("milliseconds"),tb=Wu("seconds"),Ky=Wu("minutes"),ng=Wu("hours"),_0=Wu("days"),qy=Wu("months"),ig=Wu("years");function E0(){return ba(this.days()/7)}var pc=Math.round,mf={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function $c(F,X,se,ge,Xe){return Xe.relativeTime(X||1,!!se,F,ge)}function Xv(F,X,se,ge){var Xe=Ll(F).abs(),or=pc(Xe.as("s")),Yr=pc(Xe.as("m")),li=pc(Xe.as("h")),Ti=pc(Xe.as("d")),Oa=pc(Xe.as("M")),Ws=pc(Xe.as("w")),gc=pc(Xe.as("y")),th=or<=se.ss&&["s",or]||or0,th[4]=ge,$c.apply(null,th)}function Zv(F){return F===void 0?pc:typeof F=="function"?(pc=F,!0):!1}function Nd(F,X){return mf[F]===void 0?!1:X===void 0?mf[F]:(mf[F]=X,F==="s"&&(mf.ss=X-1),!0)}function Kh(F,X){if(!this.isValid())return this.localeData().invalidDate();var se=!1,ge=mf,Xe,or;return typeof F=="object"&&(X=F,F=!1),typeof F=="boolean"&&(se=F),typeof X=="object"&&(ge=Object.assign({},mf,X),X.s!=null&&X.ss==null&&(ge.ss=X.s-1)),Xe=this.localeData(),or=Xv(this,!se,ge,Xe),se&&(or=Xe.pastFuture(+this,or)),Xe.postformat(or)}var Kv=Math.abs;function _s(F){return(F>0)-(F<0)||+F}function qh(){if(!this.isValid())return this.localeData().invalidDate();var F=Kv(this._milliseconds)/1e3,X=Kv(this._days),se=Kv(this._months),ge,Xe,or,Yr,li=this.asSeconds(),Ti,Oa,Ws,gc;return li?(ge=ba(F/60),Xe=ba(ge/60),F%=60,ge%=60,or=ba(se/12),se%=12,Yr=F?F.toFixed(3).replace(/\.?0+$/,""):"",Ti=li<0?"-":"",Oa=_s(this._months)!==_s(li)?"-":"",Ws=_s(this._days)!==_s(li)?"-":"",gc=_s(this._milliseconds)!==_s(li)?"-":"",Ti+"P"+(or?Oa+or+"Y":"")+(se?Oa+se+"M":"")+(X?Ws+X+"D":"")+(Xe||ge||F?"T":"")+(Xe?gc+Xe+"H":"")+(ge?gc+ge+"M":"")+(F?gc+Yr+"S":"")):"P0D"}var Pa=gf.prototype;Pa.isValid=Av,Pa.abs=Yy,Pa.add=b0,Pa.subtract=w0,Pa.as=Vy,Pa.asMilliseconds=x0,Pa.asSeconds=Ix,Pa.asMinutes=q1,Pa.asHours=ru,Pa.asDays=Q1,Pa.asWeeks=kd,Pa.asMonths=Fd,Pa.asQuarters=J1,Pa.asYears=Xy,Pa.valueOf=eh,Pa._bubble=jy,Pa.clone=eb,Pa.get=Zy,Pa.milliseconds=S0,Pa.seconds=tb,Pa.minutes=Ky,Pa.hours=ng,Pa.days=_0,Pa.weeks=E0,Pa.months=qy,Pa.years=ig,Pa.humanize=Kh,Pa.toISOString=qh,Pa.toString=qh,Pa.toJSON=qh,Pa.locale=Qp,Pa.localeData=Hy,Pa.toIsoString=Ir("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",qh),Pa.lang=m0,Oe("X",0,0,"unix"),Oe("x",0,0,"valueOf"),Sr("x",lr),Sr("X",Zt),Ur("X",function(F,X,se){se._d=new Date(parseFloat(F)*1e3)}),Ur("x",function(F,X,se){se._d=new Date(Ai(F))});return Ce.version="2.30.1",lt(Fo),Ce.fn=_n,Ce.min=z1,Ce.max=tu,Ce.now=Oy,Ce.utc=U,Ce.unix=Ld,Ce.months=Di,Ce.isDate=rr,Ce.locale=po,Ce.invalid=tr,Ce.duration=Ll,Ce.isMoment=It,Ce.weekdays=Z1,Ce.parseZone=Zh,Ce.localeData=wl,Ce.isDuration=bu,Ce.monthsShort=Pd,Ce.weekdaysMin=Ax,Ce.defineLocale=Jo,Ce.updateLocale=bl,Ce.locales=Pu,Ce.weekdaysShort=K1,Ce.normalizeUnits=cn,Ce.relativeTimeRounding=Zv,Ce.relativeTimeThreshold=Nd,Ce.calendarFormat=$1,Ce.prototype=_n,Ce.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},Ce})},16532:function(ti){(function(On,rt){ti.exports=rt()})(this,()=>(()=>{"use strict";var On={644:(lt,oe,fr)=>{Object.defineProperty(oe,"__esModule",{value:!0}),oe.objectifyLcs=oe.objectifyArray=oe.stringifyArray=void 0;var re=fr(950),ie=fr(924);function Nt(Ft,Dt){var U=Dt.toString(),D=Ft.forward[U];return D||(D=String.fromCharCode(Ft.pointer),Ft.forward[U]=D,Ft.backward[D]=U,Ft.pointer++),D}function Rt(Ft){return function(Dt){return Ft.indexOf(Dt.state)>=0}}function rr(Ft,Dt,U){switch(!0){case Ft.state===ie.SES_DELETE:case Ft.state===ie.SES_ADD:Ft.left=Ft.right=Dt;break;case(Ft.state===ie.SES_COMMON&&U===-1):Ft.left=Dt;break;case(Ft.state===ie.SES_COMMON&&U===1):Ft.right=Dt}}oe.stringifyArray=function(Ft,Dt){var U={forward:{},backward:{},pointer:1};return[Ft.map(function(D){return Nt(U,D)}).join(""),Dt.map(function(D){return Nt(U,D)}).join(""),U]},oe.objectifyArray=function(Ft,Dt,U,D){var Pt=U.map(function(ot){return(0,re.createResultItem)(D.backward[ot.left],D.backward[ot.right],ot.state)});return Pt.filter(Rt([ie.SES_COMMON,ie.SES_DELETE])).forEach(function(ot,Gt){return rr(ot,Ft[Gt],-1)}),Pt.filter(Rt([ie.SES_COMMON,ie.SES_ADD])).forEach(function(ot,Gt){return rr(ot,Dt[Gt],1)}),Pt},oe.objectifyLcs=function(Ft,Dt){return Dt.filter(function(U){return U.state===ie.SES_COMMON}).map(function(U){return U.right})}},924:(lt,oe)=>{Object.defineProperty(oe,"__esModule",{value:!0}),oe.position=oe.SES_ADD=oe.SES_COMMON=oe.SES_DELETE=void 0,oe.SES_DELETE=-1,oe.SES_COMMON=0,oe.SES_ADD=1,oe.position=function(fr,re,ie){return{x:fr,y:re,k:ie}}},73:(lt,oe,fr)=>{Object.defineProperty(oe,"__esModule",{value:!0}),oe.onp=void 0;var re=fr(924),ie=fr(950);function Nt(rr,Ft){return rr.length>=Ft.length?{a:Ft,b:rr,m:Ft.length,n:rr.length,reverse:!0,offset:Ft.length+1}:{a:rr,b:Ft,m:rr.length,n:Ft.length,reverse:!1,offset:rr.length+1}}function Rt(rr,Ft,Dt,U,D,Pt,ot){for(var Gt=Nt(rr,Ft),tr=Gt.a,ar=Gt.b,Tt=Gt.n,Ct=Gt.m,nr=Gt.offset,It=Pt>ot?Dt[D-1+nr]:Dt[D+1+nr],Bt=Math.max(Pt,ot),Ir=Bt-D;Ir=Bt+1;fn--)yr[fn+Ct]=Rt(ot,Gt,nr,It,fn,yr[fn-1+Ct]+1,yr[fn+1+Ct]);yr[Bt+Ct]=Rt(ot,Gt,nr,It,Bt,yr[Bt-1+Ct]+1,yr[Bt+1+Ct])}while(yr[Bt+Ct]!==ar);for(var jn=Bt+2*Tr,ai=[],ri=nr[Bt+Ct];ri!==re.SES_DELETE;)ai[ai.length]=(0,re.position)(It[ri].x,It[ri].y,null),ri=It[ri].k;return[ai,jn]}(rr,Ft),U=Dt[0],D=Dt[1],Pt=function(ot,Gt,tr){for(var ar=Nt(ot,Gt),Tt=ar.a,Ct=ar.b,nr=ar.reverse,It=[],Bt=0,Ir=0,yr="",Xr=tr.length-1;Xr>=0;Xr--)for(;IrBt-Ir?(It[It.length]=nr?(0,ie.createResultItem)(Ct[Bt],Ct[Bt],re.SES_DELETE):(0,ie.createResultItem)(Ct[Bt],Ct[Bt],re.SES_ADD),++Bt):tr[Xr].y-tr[Xr].x{function fr(re,ie,Nt){return{left:re,right:ie,state:Nt}}Object.defineProperty(oe,"__esModule",{value:!0}),oe.createTextResults=oe.createResultItem=void 0,oe.createResultItem=fr,oe.createTextResults=function(re){if(re.length===0)return[];var ie=fr(re[0].left,re[0].right,re[0].state),Nt=[ie];return re.slice(1).forEach(function(Rt){Rt.state!==ie.state?(ie=fr(Rt.left,Rt.right,Rt.state),Nt.push(ie)):(ie.left+=Rt.left,ie.right+=Rt.right)}),Nt}}},rt={};function Ve(lt){var oe=rt[lt];if(oe!==void 0)return oe.exports;var fr=rt[lt]={exports:{}};return On[lt](fr,fr.exports,Ve),fr.exports}var Ce={};return(()=>{var lt=Ce;Object.defineProperty(lt,"__esModule",{value:!0}),lt.diffArray=lt.diffText=lt.SES_ADD=lt.SES_COMMON=lt.SES_DELETE=void 0;var oe=Ve(924);Object.defineProperty(lt,"SES_DELETE",{enumerable:!0,get:function(){return oe.SES_DELETE}}),Object.defineProperty(lt,"SES_COMMON",{enumerable:!0,get:function(){return oe.SES_COMMON}}),Object.defineProperty(lt,"SES_ADD",{enumerable:!0,get:function(){return oe.SES_ADD}});var fr=Ve(950),re=Ve(73),ie=Ve(644);lt.diffText=function(Nt,Rt){var rr=(0,re.onp)(Nt,Rt),Ft=rr[0];return{distance:rr[1],lcs:rr[2],results:(0,fr.createTextResults)(Ft)}},lt.diffArray=function(Nt,Rt){var rr=(0,ie.stringifyArray)(Nt,Rt),Ft=rr[0],Dt=rr[1],U=rr[2],D=(0,re.onp)(Ft,Dt),Pt=D[0],ot=D[1],Gt=(0,ie.objectifyArray)(Nt,Rt,Pt,U);return{distance:ot,lcs:(0,ie.objectifyLcs)(U,Gt),results:Gt}}})(),Ce})())},18706:function(ti,On,rt){var Ve=rt(27061);var Ce;(function(lt){(function(oe){var fr=typeof rt.g=="object"?rt.g:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),re=ie(lt);typeof fr.Reflect=="undefined"?fr.Reflect=lt:re=ie(fr.Reflect,re),oe(re);function ie(Nt,Rt){return function(rr,Ft){typeof Nt[rr]!="function"&&Object.defineProperty(Nt,rr,{configurable:!0,writable:!0,value:Ft}),Rt&&Rt(rr,Ft)}}})(function(oe){var fr=Object.prototype.hasOwnProperty,re=typeof Symbol=="function",ie=re&&typeof Symbol.toPrimitive!="undefined"?Symbol.toPrimitive:"@@toPrimitive",Nt=re&&typeof Symbol.iterator!="undefined"?Symbol.iterator:"@@iterator",Rt=typeof Object.create=="function",rr={__proto__:[]}instanceof Array,Ft=!Rt&&!rr,Dt={create:Rt?function(){return ve(Object.create(null))}:rr?function(){return ve({__proto__:null})}:function(){return ve({})},has:Ft?function(ce,we){return fr.call(ce,we)}:function(ce,we){return we in ce},get:Ft?function(ce,we){return fr.call(ce,we)?ce[we]:void 0}:function(ce,we){return ce[we]}},U=Object.getPrototypeOf(Function),D=typeof Ve=="object"&&Ve.env&&Ve.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",Pt=!D&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Jr(),ot=!D&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:tt(),Gt=!D&&typeof WeakMap=="function"?WeakMap:de(),tr=new Gt;function ar(ce,we,xe,ke){if(Oe(xe)){if(!wt(ce))throw new TypeError;if(!Lt(we))throw new TypeError;return fn(ce,we)}else{if(!wt(ce))throw new TypeError;if(!ct(we))throw new TypeError;if(!ct(ke)&&!Oe(ke)&&!Re(ke))throw new TypeError;return Re(ke)&&(ke=void 0),xe=pt(xe),jn(ce,we,xe,ke)}}oe("decorate",ar);function Tt(ce,we){function xe(ke,Te){if(!ct(ke))throw new TypeError;if(!Oe(Te)&&!cr(Te))throw new TypeError;zt(ce,we,ke,Te)}return xe}oe("metadata",Tt);function Ct(ce,we,xe,ke){if(!ct(xe))throw new TypeError;return Oe(ke)||(ke=pt(ke)),zt(ce,we,xe,ke)}oe("defineMetadata",Ct);function nr(ce,we,xe){if(!ct(we))throw new TypeError;return Oe(xe)||(xe=pt(xe)),ri(ce,we,xe)}oe("hasMetadata",nr);function It(ce,we,xe){if(!ct(we))throw new TypeError;return Oe(xe)||(xe=pt(xe)),ze(ce,we,xe)}oe("hasOwnMetadata",It);function Bt(ce,we,xe){if(!ct(we))throw new TypeError;return Oe(xe)||(xe=pt(xe)),Et(ce,we,xe)}oe("getMetadata",Bt);function Ir(ce,we,xe){if(!ct(we))throw new TypeError;return Oe(xe)||(xe=pt(xe)),Pr(ce,we,xe)}oe("getOwnMetadata",Ir);function yr(ce,we){if(!ct(ce))throw new TypeError;return Oe(we)||(we=pt(we)),Vt(ce,we)}oe("getMetadataKeys",yr);function Xr(ce,we){if(!ct(ce))throw new TypeError;return Oe(we)||(we=pt(we)),ir(ce,we)}oe("getOwnMetadataKeys",Xr);function Tr(ce,we,xe){if(!ct(we))throw new TypeError;Oe(xe)||(xe=pt(xe));var ke=ai(we,xe,!1);if(Oe(ke)||!ke.delete(ce))return!1;if(ke.size>0)return!0;var Te=tr.get(we);return Te.delete(xe),Te.size>0||tr.delete(we),!0}oe("deleteMetadata",Tr);function fn(ce,we){for(var xe=ce.length-1;xe>=0;--xe){var ke=ce[xe],Te=ke(we);if(!Oe(Te)&&!Re(Te)){if(!Lt(Te))throw new TypeError;we=Te}}return we}function jn(ce,we,xe,ke){for(var Te=ce.length-1;Te>=0;--Te){var st=ce[Te],xt=st(we,xe,ke);if(!Oe(xt)&&!Re(xt)){if(!ct(xt))throw new TypeError;ke=xt}}return ke}function ai(ce,we,xe){var ke=tr.get(ce);if(Oe(ke)){if(!xe)return;ke=new Pt,tr.set(ce,ke)}var Te=ke.get(we);if(Oe(Te)){if(!xe)return;Te=new Pt,ke.set(we,Te)}return Te}function ri(ce,we,xe){var ke=ze(ce,we,xe);if(ke)return!0;var Te=un(we);return Re(Te)?!1:ri(ce,Te,xe)}function ze(ce,we,xe){var ke=ai(we,xe,!1);return Oe(ke)?!1:mt(ke.has(ce))}function Et(ce,we,xe){var ke=ze(ce,we,xe);if(ke)return Pr(ce,we,xe);var Te=un(we);if(!Re(Te))return Et(ce,Te,xe)}function Pr(ce,we,xe){var ke=ai(we,xe,!1);if(!Oe(ke))return ke.get(ce)}function zt(ce,we,xe,ke){var Te=ai(xe,ke,!0);Te.set(ce,we)}function Vt(ce,we){var xe=ir(ce,we),ke=un(ce);if(ke===null)return xe;var Te=Vt(ke,we);if(Te.length<=0)return xe;if(xe.length<=0)return Te;for(var st=new ot,xt=[],Ht=0,Yt=xe;Ht=0&&Ht=this._keys.length?(this._index=-1,this._keys=we,this._values=we):this._index++,{value:Yt,done:!1}}return{value:void 0,done:!0}},xt.prototype.throw=function(Ht){throw this._index>=0&&(this._index=-1,this._keys=we,this._values=we),Ht},xt.prototype.return=function(Ht){return this._index>=0&&(this._index=-1,this._keys=we,this._values=we),{value:Ht,done:!0}},xt}();return function(){function xt(){this._keys=[],this._values=[],this._cacheKey=ce,this._cacheIndex=-2}return Object.defineProperty(xt.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),xt.prototype.has=function(Ht){return this._find(Ht,!1)>=0},xt.prototype.get=function(Ht){var Yt=this._find(Ht,!1);return Yt>=0?this._values[Yt]:void 0},xt.prototype.set=function(Ht,Yt){var lr=this._find(Ht,!0);return this._values[lr]=Yt,this},xt.prototype.delete=function(Ht){var Yt=this._find(Ht,!1);if(Yt>=0){for(var lr=this._keys.length,vr=Yt+1;vr=0;ct--)(Ie=zt[ct])&&(Re=(Oe<3?Ie(Re):Oe>3?Ie(Vt,ir,Re):Ie(Vt,ir))||Re);return Oe>3&&Re&&Object.defineProperty(Vt,ir,Re),Re}function re(zt,Vt){return function(ir,be){Vt(ir,be,zt)}}function ie(zt,Vt,ir,be,Oe,Re){function Ie(dr){if(dr!==void 0&&typeof dr!="function")throw new TypeError("Function expected");return dr}for(var ct=be.kind,qt=ct==="getter"?"get":ct==="setter"?"set":"value",et=!Vt&&zt?be.static?zt:zt.prototype:null,mt=Vt||(et?Object.getOwnPropertyDescriptor(et,be.name):{}),fe,pt=!1,wt=ir.length-1;wt>=0;wt--){var er={};for(var Lt in be)er[Lt]=Lt==="access"?{}:be[Lt];for(var Lt in be.access)er.access[Lt]=be.access[Lt];er.addInitializer=function(dr){if(pt)throw new TypeError("Cannot add initializers after decoration has completed");Re.push(Ie(dr||null))};var cr=(0,ir[wt])(ct==="accessor"?{get:mt.get,set:mt.set}:mt[qt],er);if(ct==="accessor"){if(cr===void 0)continue;if(cr===null||typeof cr!="object")throw new TypeError("Object expected");(fe=Ie(cr.get))&&(mt.get=fe),(fe=Ie(cr.set))&&(mt.set=fe),(fe=Ie(cr.init))&&Oe.unshift(fe)}else(fe=Ie(cr))&&(ct==="field"?Oe.unshift(fe):mt[qt]=fe)}et&&Object.defineProperty(et,be.name,mt),pt=!0}function Nt(zt,Vt,ir){for(var be=arguments.length>2,Oe=0;Oe0&&Re[Re.length-1])&&(et[0]===6||et[0]===2)){ir=0;continue}if(et[0]===3&&(!Re||et[1]>Re[0]&&et[1]=zt.length&&(zt=void 0),{value:zt&&zt[be++],done:!zt}}};throw new TypeError(Vt?"Object is not iterable.":"Symbol.iterator is not defined.")}function Gt(zt,Vt){var ir=typeof Symbol=="function"&&zt[Symbol.iterator];if(!ir)return zt;var be=ir.call(zt),Oe,Re=[],Ie;try{for(;(Vt===void 0||Vt-- >0)&&!(Oe=be.next()).done;)Re.push(Oe.value)}catch(ct){Ie={error:ct}}finally{try{Oe&&!Oe.done&&(ir=be.return)&&ir.call(be)}finally{if(Ie)throw Ie.error}}return Re}function tr(){for(var zt=[],Vt=0;Vt1||qt(wt,Lt)})},er&&(Oe[wt]=er(Oe[wt])))}function qt(wt,er){try{et(be[wt](er))}catch(Lt){pt(Re[0][3],Lt)}}function et(wt){wt.value instanceof Ct?Promise.resolve(wt.value.v).then(mt,fe):pt(Re[0][2],wt)}function mt(wt){qt("next",wt)}function fe(wt){qt("throw",wt)}function pt(wt,er){wt(er),Re.shift(),Re.length&&qt(Re[0][0],Re[0][1])}}function It(zt){var Vt,ir;return Vt={},be("next"),be("throw",function(Oe){throw Oe}),be("return"),Vt[Symbol.iterator]=function(){return this},Vt;function be(Oe,Re){Vt[Oe]=zt[Oe]?function(Ie){return(ir=!ir)?{value:Ct(zt[Oe](Ie)),done:!1}:Re?Re(Ie):Ie}:Re}}function Bt(zt){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Vt=zt[Symbol.asyncIterator],ir;return Vt?Vt.call(zt):(zt=typeof ot=="function"?ot(zt):zt[Symbol.iterator](),ir={},be("next"),be("throw"),be("return"),ir[Symbol.asyncIterator]=function(){return this},ir);function be(Re){ir[Re]=zt[Re]&&function(Ie){return new Promise(function(ct,qt){Ie=zt[Re](Ie),Oe(ct,qt,Ie.done,Ie.value)})}}function Oe(Re,Ie,ct,qt){Promise.resolve(qt).then(function(et){Re({value:et,done:ct})},Ie)}}function Ir(zt,Vt){return Object.defineProperty?Object.defineProperty(zt,"raw",{value:Vt}):zt.raw=Vt,zt}var yr=Object.create?function(zt,Vt){Object.defineProperty(zt,"default",{enumerable:!0,value:Vt})}:function(zt,Vt){zt.default=Vt};function Xr(zt){if(zt&&zt.__esModule)return zt;var Vt={};if(zt!=null)for(var ir in zt)ir!=="default"&&Object.prototype.hasOwnProperty.call(zt,ir)&&D(Vt,zt,ir);return yr(Vt,zt),Vt}function Tr(zt){return zt&&zt.__esModule?zt:{default:zt}}function fn(zt,Vt,ir,be){if(ir==="a"&&!be)throw new TypeError("Private accessor was defined without a getter");if(typeof Vt=="function"?zt!==Vt||!be:!Vt.has(zt))throw new TypeError("Cannot read private member from an object whose class did not declare it");return ir==="m"?be:ir==="a"?be.call(zt):be?be.value:Vt.get(zt)}function jn(zt,Vt,ir,be,Oe){if(be==="m")throw new TypeError("Private method is not writable");if(be==="a"&&!Oe)throw new TypeError("Private accessor was defined without a setter");if(typeof Vt=="function"?zt!==Vt||!Oe:!Vt.has(zt))throw new TypeError("Cannot write private member to an object whose class did not declare it");return be==="a"?Oe.call(zt,ir):Oe?Oe.value=ir:Vt.set(zt,ir),ir}function ai(zt,Vt){if(Vt===null||typeof Vt!="object"&&typeof Vt!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof zt=="function"?Vt===zt:zt.has(Vt)}function ri(zt,Vt,ir){if(Vt!=null){if(typeof Vt!="object"&&typeof Vt!="function")throw new TypeError("Object expected.");var be,Oe;if(ir){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");be=Vt[Symbol.asyncDispose]}if(be===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");be=Vt[Symbol.dispose],ir&&(Oe=be)}if(typeof be!="function")throw new TypeError("Object not disposable.");Oe&&(be=function(){try{Oe.call(this)}catch(Re){return Promise.reject(Re)}}),zt.stack.push({value:Vt,dispose:be,async:ir})}else ir&&zt.stack.push({async:!0});return Vt}var ze=typeof SuppressedError=="function"?SuppressedError:function(zt,Vt,ir){var be=new Error(ir);return be.name="SuppressedError",be.error=zt,be.suppressed=Vt,be};function Et(zt){function Vt(be){zt.error=zt.hasError?new ze(be,zt.error,"An error was suppressed during disposal."):be,zt.hasError=!0}function ir(){for(;zt.stack.length;){var be=zt.stack.pop();try{var Oe=be.dispose&&be.dispose.call(be.value);if(be.async)return Promise.resolve(Oe).then(ir,function(Re){return Vt(Re),ir()})}catch(Re){Vt(Re)}}if(zt.hasError)throw zt.error}return ir()}var Pr={__extends:Ce,__assign:lt,__rest:oe,__decorate:fr,__param:re,__metadata:Ft,__awaiter:Dt,__generator:U,__createBinding:D,__exportStar:Pt,__values:ot,__read:Gt,__spread:tr,__spreadArrays:ar,__spreadArray:Tt,__await:Ct,__asyncGenerator:nr,__asyncDelegator:It,__asyncValues:Bt,__makeTemplateObject:Ir,__importStar:Xr,__importDefault:Tr,__classPrivateFieldGet:fn,__classPrivateFieldSet:jn,__classPrivateFieldIn:ai,__addDisposableResource:ri,__disposeResources:Et}}}]); diff --git a/781.fdfb64c8.chunk.css b/781.fdfb64c8.chunk.css new file mode 100644 index 00000000..622133b7 --- /dev/null +++ b/781.fdfb64c8.chunk.css @@ -0,0 +1 @@ +.antv-s2-tooltip-container{position:fixed;user-select:text;min-width:200px;max-width:640px;max-height:100vh;overflow:auto;z-index:1024;display:inline-block;background:#fffffff5;border-radius:2px;box-shadow:0 1px 4px #0003;font-size:12px;font-family:Roboto,PingFang SC,Chinese Quote,BlinkMacSystemFont,Segoe UI,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}.antv-s2-tooltip-container-hide{opacity:0;visibility:hidden;pointer-events:none}.antv-s2-tooltip-container-hide *{transition:none}.antv-s2-tooltip-container-show{opacity:1;visibility:visible;pointer-events:all}.row-icon-container{display:flex;align-items:center;justify-content:center}.row-icon-container .icon{display:flex;align-items:center;justify-content:center;width:18px;height:18px;cursor:pointer;pointer-events:auto}.row-icon-container .icon.new-icon{width:auto;height:auto;padding:4px;border-radius:4px;box-shadow:0 2px 10px #b4b4b480}.row-icon-container .icon.new-icon .icon-mianbanfangda{margin-right:4px}.row-icon-container.dark{background-color:#1b2333;color:#fff}.row-icon-container.dark .icon-mianbanfangda{color:#fff}.row-icon-container.light{background-color:#fff;color:#000}.row-icon-container.light .icon-mianbanfangda{color:#000}.row-icon-container.new-style{border-radius:4px}.weave-diagnosis-container .ant-modal-body{max-height:40%;overflow-y:scroll}.weave-diagnosis-container .ant-modal-body .different-red{width:50%;overflow:hidden;text-align:center;background-color:#ff9c6e80}.weave-diagnosis-container .ant-modal-body .different-green{width:50%;overflow:hidden;text-align:center;background-color:#95de6480}.weave-diagnosis-container .ant-table-header{padding-bottom:9px!important;overflow:hidden!important}.weave-diagnosis-container .modal-head{display:flex;align-items:center;justify-content:space-between}.weave-diagnosis-container .modal-head .line-count{margin-right:10px;font-weight:400;font-size:12px}.weave-diagnosis-container .modal-head .icon-huabansuoxiao,.weave-diagnosis-container .modal-head .icon-danjiantouwangxia,.weave-diagnosis-container .modal-head .icon-danjiantouwangshang{cursor:pointer}.weave-diagnosis-container .modal-head .icon-danjiantouwangxia,.weave-diagnosis-container .modal-head .icon-huabansuoxiao{margin-left:10px}.weave-diagnosis-container.dark .icon-huabansuoxiao,.weave-diagnosis-container.dark .icon-danjiantouwangxia,.weave-diagnosis-container.dark .icon-danjiantouwangshang{color:#fff}.weave-diagnosis-container.light .icon-huabansuoxiao,.weave-diagnosis-container.light .icon-danjiantouwangxia,.weave-diagnosis-container.light .icon-danjiantouwangshang{color:#000}.weave-sort-modal .sortItem{display:flex}.weave-sort-modal .sortItem .select{width:140px;margin-right:10px}.weave-sort-modal .ant-modal-body{padding:12px}.weave-sort-modal .add{display:flex;align-items:center;margin-top:10px;margin-left:5px;cursor:pointer}.weave-sort-modal .add .icon{margin-left:5px;font-size:16px}.weave-sort-modal .weave-sort-item-container{margin-bottom:10px}.weave-sort-modal .footer{display:flex;justify-content:space-between}.weave-sort-modal .footer .left{display:flex;align-items:center;margin-left:10px;cursor:pointer}.weave-sort-modal .footer .right{display:flex}.weave-dnd-container{display:flex;align-items:center}.weave-dnd-container .icon{cursor:pointer;opacity:0}.weave-dnd-container .content{flex:1 1}.weave-dnd-container:hover .icon{opacity:1}.weave-dnd-container:hover .hidden{opacity:0}.weave-dnd-container .dragIcon{margin-right:3px;font-size:18px}.weave-sheetquery-sort-container{position:relative;min-height:184px;max-height:364px;padding-bottom:30px;background:#fff;border-radius:4px}.weave-sheetquery-sort-container.dark{color:#fff;background-color:#243047}.weave-sheetquery-sort-container.dark .sort-content-numselect-text{color:#fff}.weave-sheetquery-sort-container .sort-tab{margin:16px 0 16px 89px}.weave-sheetquery-sort-container .sort-tab .ant-radio-button-wrapper:last-child{border-start-end-radius:4px;border-end-end-radius:4px}.weave-sheetquery-sort-container .sort-tab .ant-radio-button-wrapper:first-child{border-start-start-radius:4px;border-end-start-radius:4px}.weave-sheetquery-sort-container .sort-tab .ant-radio-button-wrapper{height:24px;padding:0 12px;font-size:12px}.weave-sheetquery-sort-container .sort-tab .ant-radio-button-wrapper-checked{color:#3485ff}.weave-sheetquery-sort-container .sort-content .sort-content-name{margin-bottom:12px;padding:0 16px;font-size:12px}.weave-sheetquery-sort-container .sort-content .sort-content-numrange{padding:0 16px}.weave-sheetquery-sort-container .sort-content .sort-content-numrange .ant-input-number{width:132px;height:28px;border-radius:4px}.weave-sheetquery-sort-container .sort-content .sort-content-numrange .ant-input-number .ant-input-number-input{height:28px;font-size:12px;line-height:28px}.weave-sheetquery-sort-container .sort-content .sort-content-numrange .ant-input-number:hover{border:1px solid #40a9ff}.weave-sheetquery-sort-container .sort-content .sort-content-numrange .sort-content-link{margin:0 8px}.weave-sheetquery-sort-container .sort-content .sort-content-numselect .ant-input-affix-wrapper{width:286px;height:28px;margin:0 16px 4px;font-size:12px;line-height:28px;border-radius:4px}.weave-sheetquery-sort-container .sort-content .sort-content-numselect .ant-input-affix-wrapper .ant-input{height:18px;line-height:18px}.weave-sheetquery-sort-container .sort-content .sort-content-numselect .ant-checkbox-group{display:flex;flex-direction:column;max-height:192px;overflow-y:scroll}.weave-sheetquery-sort-container .sort-content .sort-content-numselect .ant-checkbox-group .ant-checkbox-wrapper{width:100%;height:32px;padding:0 16px;font-size:12px;line-height:32px}.weave-sheetquery-sort-container .sort-content .sort-content-numselect .sort-content-numselect-text{display:block;width:260px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.weave-sheetquery-sort-container .sort-content .sort-content-textSelct .ant-select{width:104px;margin:0 4px 0 16px}.weave-sheetquery-sort-container .sort-content .sort-content-textSelct .ant-select .ant-select-selection{height:28px;border-radius:4px}.weave-sheetquery-sort-container .sort-content .sort-content-textSelct .ant-select .ant-select-selection .ant-select-selection__rendered{height:28px;font-size:12px;line-height:28px}.weave-sheetquery-sort-container .sort-content .sort-content-textSelct .ant-select-dropdown-menu-item{font-size:12px}.weave-sheetquery-sort-container .sort-content .sort-content-textSelct input{font-size:12px;border-radius:4px}.weave-sheetquery-sort-container .sort-content .sort-content-dateRange .ant-picker,.weave-sheetquery-sort-container .sort-content .sort-content-dateRange .ant-input{width:230px;height:28px;margin:0 8px 0 16px;font-size:12px;border-radius:4px}.weave-sheetquery-sort-container .sort-content .sort-content-dateRange .ant-picker-input input{height:28px;font-size:12px}.weave-sheetquery-sort-container .sort-content .sort-content-dateRange .sort-content-dateRange-link{color:#4876ff;cursor:pointer}.weave-sheetquery-sort-container .sort-content .sort-content-dateRange .sort-content-dateRange-footer{margin-left:410px}.weave-sheetquery-sort-container .sort-content .sort-content-dateRange .sort-content-dateRange-footer .ant-btn{width:52px;height:20px;padding:0;font-size:12px;border-radius:4px}.weave-sheetquery-sort-container .sort-content .sort-content-dateRange .sort-content-dateRange-footer .ant-btn-primary{margin-left:8px}.weave-sheetquery-sort-container .sort-bottom{padding-top:10px;display:flex;justify-content:space-between;color:#fff;text-align:end;border-top:1px solid rgba(0,0,0,.08)}.weave-sheetquery-sort-container .sort-bottom .left{display:flex;align-items:center;padding-left:2em;cursor:pointer}.weave-sheetquery-sort-container .sort-bottom .right{display:flex}.weave-sheetquery-sort-container .sort-bottom .ant-btn{width:52px;height:28px;padding:0;font-size:12px;border-radius:4px}.weave-sheetquery-sort-container .sort-bottom .sort-bottom-primary{margin:0 16px 0 8px}.highlight{color:#468cff}.multi-line{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;hyphens:auto;white-space:pre-wrap;word-break:break-all}.single-line{line-height:inherit}.tab{display:flex}.weave-field-filter-container{height:332px}.weave-field-filter-tab-item{display:flex;flex:1 1;cursor:pointer;color:#ffffff80}.weave-field-filter-tab-item.active{color:#fff}.weave-field-filter-tab-item.left{justify-content:flex-end;margin-right:16px}.weave-field-filter-tab-item.right{justify-content:flex-start;margin-left:16px}.advancedFilterConfig.light .select{border:1px solid #d9d9d9;border-radius:5px}.advancedFilterConfig.light .select .ant-select-selection{color:#000;border:inherit}.advancedFilterConfig.light .select .anticon{color:#ffffff80}.advancedFilterConfig.light .addFilterConfig{color:#000}.advancedFilterConfig.light .input{color:#000;background-color:#0000;border:1px solid #d9d9d9}.advancedFilterConfig.light .radio .ant-radio-wrapper{color:#000}.advancedFilterConfig{color:#fff}.advancedFilterConfig .select{width:100%;margin-bottom:10px}.advancedFilterConfig .select .ant-select-selection{color:#fff;font-size:12px;background-color:#0000;border:1px solid #374164}.advancedFilterConfig .select .anticon{color:#ffffff80}.advancedFilterConfig .input{margin-bottom:10px;color:#fff;font-size:12px;background-color:#0000;border:1px solid #374164}.advancedFilterConfig .addFilterConfig{display:flex;align-items:center;font-size:12px;cursor:pointer}.advancedFilterConfig .addFilterConfig .icon{margin-right:5px;font-size:16px}.advancedFilterConfig .radio{margin-bottom:10px}.advancedFilterConfig .radio .ant-radio-wrapper{color:#fff;font-size:12px}.weave-field-filter-modal{box-shadow:0 2px 11px #00000017}.weave-field-filter-modal .fieldByValue{color:#fff}.weave-field-filter-modal .fieldByValue .checkboxText{color:#ffffffe6;font-size:12px}.weave-field-filter-modal .fieldByValue .weave-filter-search{margin-bottom:10px}.weave-field-filter-modal .fieldByValue .weave-filter-search .ant-input{color:#fff;background-color:#58627f80;border:none}.weave-field-filter-modal .fieldByValue .weave-filter-search .ant-input::placeholder{color:#fff}.weave-field-filter-modal .fieldByValue .weave-filter-search .ant-input-search-icon{color:#fff}.weave-field-filter-modal .fieldByValue .ant-radio-group{display:flex;justify-content:space-between;margin-bottom:12px}.weave-field-filter-modal .fieldByValue .ant-radio-group .ant-radio-wrapper{color:#fff;font-size:12px}.weave-field-filter-modal .ant-modal-close{display:none}.weave-field-filter-modal .ant-modal-body{padding:12px;background-color:#243047}.weave-field-filter-modal .ant-modal-footer{background-color:#243047;border-top:none;border-radius:0}.weave-field-filter-modal .footer{display:flex;justify-content:space-between;color:#fff}.weave-field-filter-modal .footer .left{display:flex;align-items:center;font-size:12px;cursor:pointer}.weave-field-filter-modal .footer .right{display:flex}.weave-field-filter-modal .footer .right .btn{width:45px;min-width:45px;height:24px;padding:0;font-size:12px;text-align:center}.listItem{display:flex;align-items:center;justify-content:space-between;padding-right:15px;color:#fff;font-size:12px}.weave-filter-pop .ant-popover-arrow{display:none}.weave-filter-pop .ant-popover-inner-content{padding:0}.expListItem{display:flex;align-items:center;justify-content:space-between;background-color:inherit;padding-right:5px;padding-left:5px;color:#000;cursor:pointer}.expListItem:hover{background-color:#ebeaeb}.expListItem.dark-theme{color:#fff}.expListItem.dark-theme:hover{background-color:#ffffff14}.popover{width:200px;height:240px}.popover .expListItem{font-size:12px}.fieldByValue .checkboxItem{display:flex;align-items:center}.fieldByValue .checkAll{display:flex;align-items:center;height:32px}.fieldByValue .checkboxText{margin-left:4px;color:#000}.fieldByValue .matchCase{width:20px;height:20px;margin-right:5px;color:#fff;line-height:20px;text-align:center;border-radius:2px;cursor:pointer;user-select:none}.fieldByValue .matchCase.active{background-color:#1890ff}.filterModalItemByValue .select{width:150px;height:32px;margin-right:10px}.filterModalItemByValuePopover .weave-filter-search{margin-bottom:10px}.filterModalItemByExp .select{width:150px;margin-right:10px}.filterModalItemByExp .advancedFilterConfig{width:200px}.filterModalItemByExp .advancedFilterConfig .select{width:200px;height:32px;margin-bottom:10px}.filterModalItemByExp .advancedFilterConfig .addFilterConfig{margin-top:10px}.filterModalItemByExp .advancedFilterConfig .radio{margin-top:10px;margin-bottom:10px}.weave-field-filter-modal.light .weave-field-filter-tab-item{color:#00000080}.weave-field-filter-modal.light .active{color:#000000e6}.weave-field-filter-modal.light .fieldByValue .checkboxText{color:#000}.weave-field-filter-modal.light .fieldByValue .weave-filter-search{margin-bottom:10px}.weave-field-filter-modal.light .fieldByValue .weave-filter-search .ant-input{color:#000000e6;background-color:#fff}.weave-field-filter-modal.light .fieldByValue .weave-filter-search .ant-input::placeholder{color:#00000073}.weave-field-filter-modal.light .fieldByValue .weave-filter-search .ant-input-search-icon{color:#00000073}.weave-field-filter-modal.light .fieldByValue .matchCase{color:#999}.weave-field-filter-modal.light .fieldByValue .matchCase.active{color:#000000e6;background-color:#fff}.weave-field-filter-modal.light .fieldByValue .listItem{color:#00000080}.weave-field-filter-modal.light .fieldByValue .ant-radio-group .ant-radio-wrapper,.weave-field-filter-modal.light .advancedFilterConfig{color:#000000e6}.weave-field-filter-modal.light .advancedFilterConfig .select{width:100%;margin-bottom:10px}.weave-field-filter-modal.light .advancedFilterConfig .select .ant-select-selection{color:#000000e6;background-color:#0000;border:1px solid rgba(0,0,0,.12)}.weave-field-filter-modal.light .advancedFilterConfig .select .anticon{color:#000}.weave-field-filter-modal.light .advancedFilterConfig .input{margin-bottom:10px;color:#000000e6;background-color:#fff;border:1px solid #d9d9d9}.weave-field-filter-modal.light .advancedFilterConfig .radio{margin-bottom:10px}.weave-field-filter-modal.light .advancedFilterConfig .radio .ant-radio-wrapper{color:#000}.weave-field-filter-modal.light .footer{color:#000000e6}.weave-field-filter-modal.light .ant-modal-body{color:#000;background-color:#fff}.weave-field-filter-modal.light .ant-modal-footer{color:#000000e6;background-color:#fff}.weave-select-dropdown,.weave-select-dropdown .ant-select-dropdown-menu-item{font-size:12px}.resizable{position:absolute;top:0;right:-5px;width:10px;height:100%;cursor:col-resize}@font-face{font-family:FontAwesome;src:url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/fonts/fontawesome-webfont.eot);src:url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/fonts/fontawesome-webfont.eot?#iefix) format("embedded-opentype"),url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/fonts/fontawesome-webfont.woff) format("woff"),url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/fonts/fontawesome-webfont.ttf) format("truetype"),url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.2.0/fonts/fontawesome-webfont.svg?#fontawesomeregular) format("svg");font-weight:400;font-style:normal}.rc-menu{outline:none;margin-bottom:0;padding-left:0;padding-right:0;list-style:none;border:1px solid #d9d9d9;box-shadow:0 0 4px #d9d9d9;border-radius:3px;color:#666}.rc-menu-rtl{direction:rtl}.rc-menu-hidden,.rc-menu-submenu-hidden{display:none}.rc-menu-collapse{overflow:hidden;transition:height .3s ease-out}.rc-menu-item-group-list{margin:0;padding:0}.rc-menu-item-group-title{color:#999;line-height:1.5;padding:8px 10px;border-bottom:1px solid #dedede}.rc-menu-item-active,.rc-menu-submenu-active>.rc-menu-submenu-title{background-color:#eaf8fe}.rc-menu-item-selected{background-color:#eaf8fe;transform:translateZ(0)}.rc-menu-submenu-selected{background-color:#eaf8fe}.rc-menu>li.rc-menu-submenu{padding:0}.rc-menu-horizontal.rc-menu-sub,.rc-menu-vertical.rc-menu-sub,.rc-menu-vertical-left.rc-menu-sub,.rc-menu-vertical-right.rc-menu-sub{min-width:160px;margin-top:0}.rc-menu-item,.rc-menu-submenu-title{margin:0;position:relative;display:block;padding:7px 7px 7px 16px;white-space:nowrap}.rc-menu-rtl .rc-menu-item,.rc-menu-rtl .rc-menu-submenu-title{padding:7px 16px 7px 7px}.rc-menu-item.rc-menu-item-disabled,.rc-menu-submenu-title.rc-menu-item-disabled,.rc-menu-item.rc-menu-submenu-disabled,.rc-menu-submenu-title.rc-menu-submenu-disabled{color:#777!important}.rc-menu-item-divider{height:1px;margin:1px 0;overflow:hidden;padding:0;line-height:0;background-color:#e5e5e5}.rc-menu-submenu-popup{position:absolute}.rc-menu-submenu-popup .submenu-title-wrapper{padding-right:20px}.rc-menu-submenu-rtl.rc-menu-submenu-popup .submenu-title-wrapper,.rc-menu-submenu-rtl .rc-menu-submenu-popup .submenu-title-wrapper{padding-right:0;padding-left:20px}.rc-menu-submenu>.rc-menu{background-color:#fff}.rc-menu .rc-menu-submenu-title .anticon,.rc-menu .rc-menu-item .anticon{width:14px;height:14px;margin-right:8px;top:-1px}.rc-menu-rtl .rc-menu .rc-menu-submenu-title .anticon,.rc-menu-rtl .rc-menu .rc-menu-item .anticon{margin-right:0;margin-left:8px}.rc-menu-horizontal{background-color:#f3f5f7;border:none;border-bottom:1px solid #d9d9d9;box-shadow:none;white-space:nowrap;overflow:hidden}.rc-menu-horizontal>.rc-menu-item,.rc-menu-horizontal>.rc-menu-submenu>.rc-menu-submenu-title{padding:15px 20px}.rc-menu-horizontal>.rc-menu-submenu,.rc-menu-horizontal>.rc-menu-item{border-bottom:2px solid transparent;display:inline-block;vertical-align:bottom}.rc-menu-horizontal>.rc-menu-submenu-active,.rc-menu-horizontal>.rc-menu-item-active{border-bottom:2px solid #2db7f5;background-color:#f3f5f7;color:#2baee9}.rc-menu-horizontal:after{content:" ";display:block;height:0;clear:both}.rc-menu-vertical,.rc-menu-vertical-left,.rc-menu-vertical-right,.rc-menu-inline{padding:12px 0}.rc-menu-vertical>.rc-menu-item,.rc-menu-vertical-left>.rc-menu-item,.rc-menu-vertical-right>.rc-menu-item,.rc-menu-inline>.rc-menu-item,.rc-menu-vertical>.rc-menu-submenu>.rc-menu-submenu-title,.rc-menu-vertical-left>.rc-menu-submenu>.rc-menu-submenu-title,.rc-menu-vertical-right>.rc-menu-submenu>.rc-menu-submenu-title,.rc-menu-inline>.rc-menu-submenu>.rc-menu-submenu-title{padding:12px 8px 12px 24px}.rc-menu-rtl.rc-menu-vertical>.rc-menu-item,.rc-menu-rtl.rc-menu-vertical-left>.rc-menu-item,.rc-menu-rtl.rc-menu-vertical-right>.rc-menu-item,.rc-menu-rtl.rc-menu-inline>.rc-menu-item,.rc-menu-rtl.rc-menu-vertical>.rc-menu-submenu>.rc-menu-submenu-title,.rc-menu-rtl.rc-menu-vertical-left>.rc-menu-submenu>.rc-menu-submenu-title,.rc-menu-rtl.rc-menu-vertical-right>.rc-menu-submenu>.rc-menu-submenu-title,.rc-menu-rtl.rc-menu-inline>.rc-menu-submenu>.rc-menu-submenu-title{padding:12px 24px 12px 8px}.rc-menu-vertical .rc-menu-submenu-arrow,.rc-menu-vertical-left .rc-menu-submenu-arrow,.rc-menu-vertical-right .rc-menu-submenu-arrow,.rc-menu-inline .rc-menu-submenu-arrow{display:inline-block;font: 14px/1 FontAwesome;font-size:inherit;vertical-align:baseline;text-align:center;text-transform:none;text-rendering:auto;position:absolute;right:16px;line-height:1.5em}.rc-menu-vertical .rc-menu-submenu-arrow:before,.rc-menu-vertical-left .rc-menu-submenu-arrow:before,.rc-menu-vertical-right .rc-menu-submenu-arrow:before,.rc-menu-inline .rc-menu-submenu-arrow:before{content:"\f0da"}.rc-menu-rtl.rc-menu-vertical .rc-menu-submenu-arrow:before,.rc-menu-rtl.rc-menu-vertical-left .rc-menu-submenu-arrow:before,.rc-menu-rtl.rc-menu-vertical-right .rc-menu-submenu-arrow:before,.rc-menu-rtl.rc-menu-inline .rc-menu-submenu-arrow:before,.rc-menu-submenu-rtl .rc-menu-vertical .rc-menu-submenu-arrow:before,.rc-menu-submenu-rtl .rc-menu-vertical-left .rc-menu-submenu-arrow:before,.rc-menu-submenu-rtl .rc-menu-vertical-right .rc-menu-submenu-arrow:before,.rc-menu-submenu-rtl .rc-menu-inline .rc-menu-submenu-arrow:before{content:"\f0d9"}.rc-menu-rtl.rc-menu-vertical .rc-menu-submenu-arrow,.rc-menu-rtl.rc-menu-vertical-left .rc-menu-submenu-arrow,.rc-menu-rtl.rc-menu-vertical-right .rc-menu-submenu-arrow,.rc-menu-rtl.rc-menu-inline .rc-menu-submenu-arrow,.rc-menu-submenu-rtl .rc-menu-vertical .rc-menu-submenu-arrow,.rc-menu-submenu-rtl .rc-menu-vertical-left .rc-menu-submenu-arrow,.rc-menu-submenu-rtl .rc-menu-vertical-right .rc-menu-submenu-arrow,.rc-menu-submenu-rtl .rc-menu-inline .rc-menu-submenu-arrow{right:auto;left:16px}.rc-menu-inline .rc-menu-submenu-arrow{transform:rotate(90deg);transition:transform .3s}.rc-menu-inline .rc-menu-submenu-open>.rc-menu-submenu-title .rc-menu-submenu-arrow{transform:rotate(-90deg)}.rc-menu-vertical.rc-menu-sub,.rc-menu-vertical-left.rc-menu-sub,.rc-menu-vertical-right.rc-menu-sub{padding:0}.rc-menu-submenu-rtl .rc-menu-vertical.rc-menu-sub,.rc-menu-submenu-rtl .rc-menu-vertical-left.rc-menu-sub,.rc-menu-submenu-rtl .rc-menu-vertical-right.rc-menu-sub{direction:rtl}.rc-menu-sub.rc-menu-inline{padding:0;border:none;border-radius:0;box-shadow:none}.rc-menu-sub.rc-menu-inline>.rc-menu-item,.rc-menu-sub.rc-menu-inline>.rc-menu-submenu>.rc-menu-submenu-title{padding-top:8px;padding-bottom:8px;padding-right:0}.rc-menu-rtl .rc-menu-sub.rc-menu-inline>.rc-menu-item,.rc-menu-rtl .rc-menu-sub.rc-menu-inline>.rc-menu-submenu>.rc-menu-submenu-title{padding-left:0}.rc-menu-open-slide-up-enter,.rc-menu-open-slide-up-appear{animation-duration:.3s;animation-fill-mode:both;transform-origin:0 0;opacity:0;animation-timing-function:cubic-bezier(.08,.82,.17,1);animation-play-state:paused}.rc-menu-open-slide-up-leave{animation-duration:.3s;animation-fill-mode:both;transform-origin:0 0;opacity:1;animation-timing-function:cubic-bezier(.6,.04,.98,.34);animation-play-state:paused}.rc-menu-open-slide-up-enter.rc-menu-open-slide-up-enter-active,.rc-menu-open-slide-up-appear.rc-menu-open-slide-up-appear-active{animation-name:rcMenuOpenSlideUpIn;animation-play-state:running}.rc-menu-open-slide-up-leave.rc-menu-open-slide-up-leave-active{animation-name:rcMenuOpenSlideUpOut;animation-play-state:running}@keyframes rcMenuOpenSlideUpIn{0%{opacity:0;transform-origin:0% 0%;transform:scaleY(0)}to{opacity:1;transform-origin:0% 0%;transform:scaleY(1)}}@keyframes rcMenuOpenSlideUpOut{0%{opacity:1;transform-origin:0% 0%;transform:scaleY(1)}to{opacity:0;transform-origin:0% 0%;transform:scaleY(0)}}.rc-menu-open-zoom-enter,.rc-menu-open-zoom-appear{opacity:0;animation-duration:.3s;animation-fill-mode:both;transform-origin:0 0;animation-timing-function:cubic-bezier(.08,.82,.17,1);animation-play-state:paused}.rc-menu-open-zoom-leave{animation-duration:.3s;animation-fill-mode:both;transform-origin:0 0;animation-timing-function:cubic-bezier(.6,.04,.98,.34);animation-play-state:paused}.rc-menu-open-zoom-enter.rc-menu-open-zoom-enter-active,.rc-menu-open-zoom-appear.rc-menu-open-zoom-appear-active{animation-name:rcMenuOpenZoomIn;animation-play-state:running}.rc-menu-open-zoom-leave.rc-menu-open-zoom-leave-active{animation-name:rcMenuOpenZoomOut;animation-play-state:running}.rc-menu-submenu-rtl.rc-menu-open-zoom-enter,.rc-menu-submenu-rtl.rc-menu-open-zoom-appear,.rc-menu-submenu-rtl.rc-menu-open-zoom-leave,.rc-menu-submenu-rtl .rc-menu-open-zoom-enter,.rc-menu-submenu-rtl .rc-menu-open-zoom-appear,.rc-menu-submenu-rtl .rc-menu-open-zoom-leave{transform-origin:top right!important}@keyframes rcMenuOpenZoomIn{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes rcMenuOpenZoomOut{0%{transform:scale(1)}to{opacity:0;transform:scale(0)}}.column-menu-container{position:relative;margin-top:-15px;margin-left:-15px}.column-menu-container.slim .menu .rc-menu-submenu-title,.column-menu-container.slim .menu .rc-menu-item{padding:4px 12px!important}.column-menu-container .colSubmenu{display:inline-flex}.column-menu-container .rc-menu-submenu-hidden{display:none}.column-menu-container .subMenu .rc-menu{margin-left:5px}.column-menu-container .rc-menu-root.menu{margin-top:20px;margin-left:20px}.column-menu-container .menu{z-index:999;width:94px;padding:0;color:#fff;background-color:#1b2333;border:none;box-shadow:none}.column-menu-container .menu .subMenuItem{display:flex}.column-menu-container .menu .subMenuItem .one-icon{margin-right:0;margin-left:8px}.column-menu-container .menu .sort .icon{margin-left:5px}.column-menu-container .menu .rc-menu{width:94px;min-width:94px!important;padding:0;color:#fff;background-color:#1b2333;border:none;box-shadow:none}.column-menu-container .menu .one-icon{margin-right:8px}.column-menu-container .menu .rc-menu-submenu-active>.rc-menu-submenu-title{background-color:#0003}.column-menu-container .menu .rc-menu-submenu-arrow{right:6px;margin-top:2px}.column-menu-container .menu .rc-menu-item-active{background-color:#0003}.column-menu-container .menu .rc-menu-item,.column-menu-container .menu .rc-menu-submenu-title{padding:8px 12px!important;cursor:pointer}.column-menu-container .menu .rc-menu-item-selected,.column-menu-container .menu .rc-menu-submenu-selected{background-color:#00000080}.column-menu-container .menu.light{color:unset;background-color:#fff;box-shadow:#0000001f 0 3px 6px -4px,#00000014 0 6px 16px,#0000000d 0 9px 28px 8px}.column-menu-container .menu.light .rc-menu{color:unset;background-color:#fff}.column-menu-container .menu.light .rc-menu-submenu-active>.rc-menu-submenu-title{background-color:#4876ff0f}.column-menu-container .menu.light .rc-menu-item-active,.column-menu-container .menu.light .rc-menu-item-selected,.column-menu-container .menu.light .rc-menu-submenu-selected{background-color:#4876ff0f}.appear-transition-enter{opacity:0!important}.appear-transition-enter-active{opacity:1!important;transition:opacity .3s}.appear-transition-enter-done,.appear-transition-exit{opacity:1!important}.appear-transition-exit-active{transition:opacity .3s;opacity:0!important}.appear-transition-exit-done{opacity:0!important}.back-top-icon{position:absolute;bottom:80px;right:50px;width:40px;height:40px;text-align:center;line-height:40px;border-radius:50%;background-color:#fff;cursor:pointer;box-shadow:0 0 6px 4px #0000001f}.back-top-icon[data-scroll=false]{transform:rotate(180deg)}.weave-column-drag-container{position:absolute;left:0;top:0;width:100%;height:inherit;overflow:hidden}.weave-column-drag-container .weave-column-drag-container-list{position:absolute;display:flex}.dynamic-import-loading{height:100%;width:100%;display:flex;justify-content:center;align-items:center}.dynamic-import-loading.loading{background-color:#ebeaef}.dark-theme .dynamic-import-loading.loading{background-color:#131c2a}.weave-chart-config .aggregation-select .ant-select-selection{background-color:#0000}.weave-chart-config .ant-drawer-body{height:calc(100% - 55px);position:relative}.weave-chart-config .weave-chart-config-contain{display:flex;align-items:center;margin-top:8px;margin-bottom:14px}.weave-chart-config .inline-label{display:flex;align-items:center}.weave-chart-config .inline-label .inline-label-label{line-height:28px}.weave-chart-config .real-label{width:42px}.weave-chart-config .chart-group{position:absolute;bottom:24px;right:24px}.weave-chart-config .chart-group>:last-child{margin-left:10px}.async-header{display:flex;justify-content:space-between;width:100%;height:40px;padding-right:1em;padding-left:1em;line-height:40px;border:none;cursor:move}.s2-cell-detail .copy{position:absolute;right:110px;bottom:24px}.s2-cell-detail .weave-cell-detail-container{overflow:auto;max-height:400px}.s2-cell-detail .weave-cell-detail-container .text-area{border:none;resize:none;width:100%;height:150px;background-color:#0000}.weave-search-container{position:absolute;top:-6px;right:0;z-index:50;display:flex;align-items:center;width:330px;height:35px;overflow:hidden;color:#ffffff80;background-color:#121925;box-shadow:0 0 8px 2px #00000029}.weave-search-container .close-icon{margin-right:5px;font-size:16px;cursor:pointer}.weave-search-container .close-icon.iconLight{color:#00000080}.weave-search-container .filter-icon{margin-right:3px;margin-left:5px;font-size:10px;cursor:pointer}.weave-search-container .filter-icon.active{color:#fff}.weave-search-container .filter-icon.active.iconLight{color:#333}.weave-search-container .filter-icon.iconLight{color:#00000080}.weave-search-container .search-icon.search-dark{color:#fff}.weave-search-container .active-index{display:flex;align-items:center;margin-right:5px;color:#fff}.weave-search-container .active-index .btn{display:flex;align-items:center;justify-content:center;width:12px;height:12px;border:1px solid rgba(255,255,255,.5);border-radius:50%;cursor:pointer}.weave-search-container .active-index .btn.prev{margin-right:5px}.weave-search-container .active-index .btn.next{margin-left:5px}.weave-search-container .matchCase{font-weight:700;cursor:pointer;user-select:none}.weave-search-container .matchCase.active{color:#fff}.weave-search-container .matchCase.active.iconLight{color:#333}.weave-search-container .matchCase.iconLight{color:#00000080}.weave-search-container .input-search{flex:1 1;margin-left:5px}.weave-search-container .input-search .ant-input-affix-wrapper .ant-input-prefix{left:5px}.weave-search-container .input-search .ant-input-suffix{display:none}.weave-search-container .input-search .ant-input{color:#fff;background-color:#0000}.weave-search-container.search-light{background-color:#f3f3f3;border-bottom-width:0;box-shadow:0 0 8px 2px #00000029}.weave-search-container.search-light .icon-guanbixiao,.weave-search-container.search-light .icon-FILTERguolv{color:#00000080;cursor:pointer}.weave-search-container.search-light:hover{border-bottom-width:1px}.weave-search-container.search-light .icon-sousuo1{color:#00000080;font-size:12px}.weave-search-container.search-light .active-index{color:#00000080}.weave-search-container.search-light .input-search .ant-input{color:#3e4760}.weave-summary-row-container-wrapper{position:absolute;left:0;z-index:1;display:flex;overflow:hidden;background-color:#fff;border-left:1px solid #454e71}.weave-summary-row-container-wrapper.light{border-left:1px solid rgba(0,0,0,.05)}.weave-summary-row-container-wrapper .weave-summary-row-container{display:flex;height:100%}.weave-summary-row-container-wrapper .weave-summary-row-cell{border-right:1px solid #454e71;border-bottom:1px solid #454e71}.weave-summary-row-container-wrapper .weave-summary-row-cell.light{border-right:1px solid rgba(0,0,0,.05);border-bottom:1px solid rgba(0,0,0,.05)}.weave-table-context-menu{padding:4px 0;color:#fff;border-right:none;box-shadow:0 2px 11px #00000017!important}.weave-table-context-menu li.ant-menu-item,.weave-table-context-menu li.ant-menu-submenu{height:28px;margin-top:0!important;margin-bottom:0!important;line-height:28px}.weave-table-context-menu li.ant-menu-item .ant-menu-submenu-title,.weave-table-context-menu li.ant-menu-submenu .ant-menu-submenu-title{height:28px;line-height:28px}.weave-table-context-menu li.ant-menu-item:hover,.weave-table-context-menu li.ant-menu-submenu:hover{background-color:#f5f5f5}.weave-table-context-menu .anticon{margin-right:4px}.weave-table-context-menu .dp-spreadsheet-contextmenu-item:hover{color:#1890ff}.weave-table-context-menu.contextmenu-dark{background-color:#1b2333}.weave-table-context-menu.contextmenu-dark.dp-spreadsheet-contextmenu-item:hover{color:#1890ff!important}.weave-table-context-menu.contextmenu-dark .dp-spreadsheet-contextmenu-item{color:#fff}.weave-table-context-menu.contextmenu-dark .ant-menu{background-color:#1b2333}.weave-table-context-menu.contextmenu-dark li.ant-menu-submenu:hover{background-color:inherit}.weave-table-context-menu.contextmenu-dark .ant-menu-item-disabled,.weave-table-context-menu.contextmenu-dark .ant-menu-submenu-disabled{color:#ffffff59!important}.weave-table-context-menu.contextmenu-dark .ant-menu-item-disabled:hover,.weave-table-context-menu.contextmenu-dark .ant-menu-submenu-disabled:hover{color:#3e4760!important}.weave-table-context-menu.contextmenu-light{background-color:#fff}.weave-table-context-menu.contextmenu-light .dp-spreadsheet-contextmenu-item:hover{color:#1890ff}.weave-table-context-menu.contextmenu-light .dp-spreadsheet-contextmenu-item{color:#3e4760}.weave-table-context-menu.contextmenu-light .ant-menu{background-color:#fff}.weave-split-column-container{width:200px;height:170px;padding:10px;box-shadow:0 2px 11px #00000017}.weave-split-column-container .buttons{text-align:right}.weave-split-column-container .buttons button{margin-right:5px}.weave-split-column-container.dark{background-color:#1b2333}.weave-split-column-container.white{background-color:#fff}.weave-filter-item{display:flex}.weave-filter-item .filterMethod{width:150px;margin-right:10px}.weave-filter-item .filter-modal-item-by-exp,.weave-filter-item .filter-modal-item-by-val{margin-right:10px}.weave-filter-item .filter-modal-item-by-exp{display:flex}.weave-filter-item .filter-modal-item-by-exp .ant-select-selection{color:#000}.weave-item-wrapper{margin-bottom:10px}.weave-add-filter{cursor:pointer}.dp-spreasheet-tooltip.antv-s2-tooltip-container-show{min-width:0px;max-width:300px;border-radius:8px;box-shadow:0 4px 10px #0006}.dp-spreasheet-tooltip.antv-s2-tooltip-container-show.dp-spreadsheet-hint-dark{color:#fff;background-color:#222c3f;border:1px solid rgba(255,255,255,.08)}.dp-spreasheet-tooltip.antv-s2-tooltip-container-show .hint-provided{height:30px;padding-left:1em;padding-right:1em;line-height:28px;max-width:200px;text-overflow:ellipsis}.s2-table-container{position:relative;height:100%}.s2-table-container .ant-spin-nested-loading,.s2-table-container .antv-s2-container{height:100%}.different-red{width:50%;overflow:hidden;text-align:center;background-color:#ff9c6e80}.different-green{width:50%;overflow:hidden;text-align:center;background-color:#95de6480}.src-base-table-group,.tar-base-table-group{position:absolute}.tar-base-table-group-vertical{position:absolute;left:50%}.compare-modal-detail{width:1200px!important}.compare-modal-detail .compare-modal-detail-top-alert{margin-top:25px}.compare-modal-detail .compare-modal-detail-diffTable .ant-table-tbody>tr>td{vertical-align:top}.workbook-toolbar{position:absolute;bottom:0;display:flex;width:100%;color:#000;background-color:#fff;height:24px}.workbook-toolbar.dark-theme{color:#fff;background-color:#121925}.workbook-toolbar.dark-theme .tabitem:hover{background-color:#ffffff80}.workbook-tab-active{border-top:#344c80 2px solid}.workbook-tab-tabitem{cursor:pointer;margin-left:1em;margin-right:1em}.workbook-tab-tabitem:hover{background-color:#344c8080;border-radius:5px}.weave-toolbar{display:flex;flex-shrink:0;align-items:center;border-radius:4px;height:36px;padding-right:10px;padding-left:10px;overflow:hidden;transition:height .5s}.weave-toolbar .iconContainer{display:flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:4px}.weave-toolbar .border{width:1px;height:16px;margin:8px 10px}.weave-toolbar.dark{color:#fff;background-color:#1b2333}.weave-toolbar.dark .border{background-color:#fff}.weave-toolbar.dark .iconContainer:hover{background-color:#468cff}.weave-toolbar.dark .active{background-color:#468cff;border-radius:4px}.weave-toolbar.dark .disabled{cursor:not-allowed;background-color:inherit}.weave-toolbar.dark .disabled:hover{background-color:inherit}.weave-toolbar.dark .toolbarItem{display:flex;align-items:center;justify-content:center;width:24px;height:24px;cursor:pointer}.weave-toolbar.dark .toolbarItem .one-icon,.weave-toolbar.dark .toolbarItem .svg-one-icon{color:#fff;font-size:12px}.weave-toolbar.dark .toolbarItem .one-icon:hover,.weave-toolbar.dark .toolbarItem .svg-one-icon:hover{color:#fff}.weave-toolbar.white{color:#1b2333;background-color:#fff}.weave-toolbar.white .border{background-color:#1b2333}.weave-toolbar.white .iconContainer:hover{background-color:#4876ff1f}.weave-toolbar.white .active{background-color:#4876ff1f;border-radius:4px}.weave-toolbar.white .active .one-icon{color:#4876ff!important}.weave-toolbar.white .disabled{cursor:not-allowed;background-color:inherit}.weave-toolbar.white .disabled:hover{background-color:inherit}.weave-toolbar.white .toolbarItem{display:flex;align-items:center;justify-content:center;width:24px;height:24px;cursor:pointer}.weave-toolbar.white .toolbarItem .one-icon,.weave-toolbar.white .toolbarItem .svg-one-icon{color:#000;font-size:12px}.selection-range-contianer{position:fixed}.selection-range-head{padding:5px;color:#4a4a49;text-align:center;background-color:#f7f7f5;border-bottom:1px solid #cccccb;border-radius:4px 4px 0 0}.selection-range-content{position:relative;height:calc(100% - 31px);padding:16px;background-color:#f2f2f1;border-radius:0 0 4px 4px}.selection-range-content input,.selection-range-content button{height:24px}.selection-range-content-footer{position:absolute;right:16px;bottom:16px}.selection-range-content-footer>:last-child{margin-left:10px}.synergy{position:absolute;opacity:10}.weave-summary-grid{display:grid;grid-template-rows:1fr 40px 40px;grid-template-columns:repeat(6,1fr);width:100%;height:100%}.weave-summary-grid .summary-graph{grid-area:"1/1/2/7";border-bottom:1px solid #454e71}.weave-summary-grid .cell.light{background-color:#fff}.weave-summary-grid .cell.light>div{color:#719ef8}.weave-summary-grid .cell.light{border:1px solid #719ef8}.weave-summary-grid .cell{display:flex;flex:1 1;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;background-color:#1b2333;border:1px solid #454e71}.weave-summary-grid .cell>span{color:#719ef8}.weave-summary-grid .cell:last-child{border-right:0}.weave-summary-grid .cell>div{justify-content:space-between;color:#ffffffa6;text-align:center} diff --git a/795.a62f37dd.async.js b/795.a62f37dd.async.js new file mode 100644 index 00000000..f5a2bd6f --- /dev/null +++ b/795.a62f37dd.async.js @@ -0,0 +1,252 @@ +"use strict";(self.webpackChunk_antv_li_website=self.webpackChunk_antv_li_website||[]).push([[795],{34795:function(ht,xe,i){i.d(xe,{es:function(){return Dn},FE:function(){return kn},Tl:function(){return Fn}});var $=i(36268),O=i(87971),ce=i(80445),Ae=i.n(ce),be=i(51490),re=i.n(be),ve=i(88104),ue=i.n(ve),Se=i(69024),x=i.n(Se),s=i(81821),je=i(90005),r=i.n(je),M=i(12611),m=i(87363),b=i(71022),W=[{imgUrl:"https://gw.alipayobjects.com/zos/antfincdn/3Cb1AYfvlq/44e305b2-498e-4ff3-924b-bba7c8fdafda.png",dataSources:[{url:"https://mdn.alipayobjects.com/afts/file/A*aMdOS56bGT8AAAAAAAAAAAAADrd2AQ/Most-photographed-attractions-in-the-world.json",id:"most-photographed-scenic",name:"\u5168\u7403\u62CD\u7167\u6700\u591A\u7684\u666F\u70B9",type:"json"}],demoName:"\u5168\u7403\u62CD\u7167\u6700\u591A\u7684\u666F\u70B9",layerList:[{id:"most-photographed-scenic",type:"BubbleLayer",metadata:{name:"\u5168\u7403\u62CD\u7167\u6700\u591A\u7684\u666F\u70B9"},sourceConfig:{datasetId:"most-photographed-scenic",parser:{type:"json",x:"lng",y:"lat"}},visConfig:{visible:!0,radius:3,fillColor:{field:"value",value:["rgb(102,37,6)","rgb(153,52,4)","rgb(204,76,2)","rgb(236,112,20)","rgb(254,153,41)","rgb(254,196,79)","rgb(254,227,145)"],scale:{type:"quantize"}},opacity:1,lineWidth:0,state:!1,blend:"additive",label:{field:void 0,visible:!0,style:{fill:"#a9abb1",fontSize:14,textAnchor:"center"}}}}]},{imgUrl:"https://gw.alipayobjects.com/mdn/rms_e7e1c6/afts/img/A*8lyORIRMDNYAAAAAAAAAAAAAARQnAQ",dataSources:[{url:"https://gw.alipayobjects.com/os/bmw-prod/5c4fdc5c-5cf7-46da-a361-f377938553dc.json",id:"heat-demo-1",name:"\u5168\u7403\u5730\u9707\u70ED\u529B\u5206\u5E03",type:"json"}],demoName:"\u5168\u7403\u5730\u9707\u70ED\u529B\u5206\u5E03",layerList:[{id:"heat-demo-1",type:"HeatmapLayer",metadata:{name:"\u5168\u7403\u5730\u9707\u70ED\u529B\u56FE\u5C42"},sourceConfig:{datasetId:"heat-demo-1",parser:{type:"json",x:"lon",y:"lat"}},visConfig:{visible:!0,size:{field:"mag",value:[0,1]},style:{intensity:4,radius:4,opacity:1,rampColors:{colors:["#FF4818","#F7B74A","#FFF598","#F27DEB","#8C1EB2","#421EB2"],positions:[0,.2,.4,.6,.8,1]}}}}]},{imgUrl:"https://gw.alipayobjects.com/mdn/rms_e7e1c6/afts/img/A*SLbgR72KKFsAAAAAAAAAAAAAARQnAQ",dataSources:[{url:"https://gw.alipayobjects.com/os/bmw-prod/0a544b66-a04b-4b98-9b69-d71258f5f577.json",id:"arc-line-data",name:"\u56FD\u5185\u5916\u822A\u73ED\u7EBF\u6570\u636E",type:"json"}],demoName:"\u56FD\u5185\u5916\u822A\u73ED\u7EBF",layerList:[{id:"arc-point-layer-examsple",type:"BubbleLayer",metadata:{name:"\u56FD\u5185\u5916\u673A\u573A\u56FE\u5C42"},sourceConfig:{datasetId:"arc-line-data",parser:{type:"json",x:"to_lon",y:"to_lat"}},visConfig:{visible:!0,zIndex:1,radius:5,fillColor:"#1890ff",opacity:1,strokeColor:"#fff",lineWidth:1,state:{active:{fillColor:!1,strokeColor:"yellow"},select:{fillColor:!1,strokeColor:"red"}}}},{id:"arc-line-example",type:"ArcLayer",metadata:{name:"\u56FD\u5185\u5916\u822A\u73ED\u5F27\u7EBF\u56FE\u5C42"},sourceConfig:{datasetId:"arc-line-data",parser:{type:"json",x:"from_lon",y:"from_lat",x1:"to_lon",y1:"to_lat"}},visConfig:{zIndex:2,visible:!0,size:1,style:{opacity:1,sourceColor:"#1890ff",targetColor:"#1890ff"},state:{active:{color:"yellow"}}}}]},{demoName:"\u52A0\u5DDE 2.5 \u7EA7\u4EE5\u4E0A\u5730\u9707\u6570\u636E",imgUrl:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*p7W-SKyg8ekAAAAAAAAAAAAADmJ7AQ/original",dataSources:[{name:"\u52A0\u5DDE 2.5 \u7EA7\u4EE5\u4E0A\u5730\u9707\u6570\u636E",id:"california-earthquakes",url:"https://mdn.alipayobjects.com/afts/file/A*8ARuTJPfyvcAAAAAAAAAAAAADrd2AQ/earthquake",type:"json"}],layerList:[{id:"california-earthquakes",type:"BubbleLayer",metadata:{name:"\u52A0\u5DDE 2.5 \u7EA7\u4EE5\u4E0A\u5730\u9707\u6570\u636E"},sourceConfig:{datasetId:"california-earthquakes",parser:{type:"json",x:"Longitude",y:"Latitude"}},visConfig:{visible:!0,fillColor:{field:"Magnitude",value:["#ffffcc","#c7e9b4","#7fcdbb","#41b6c4","#2c7fb8","#253494"],scale:{type:"quantile"}},opacity:1,strokeColor:"#fff",lineWidth:1,lineOpacity:1,label:{field:void 0,visible:!0,style:{fill:"#a9abb1",fontSize:14,textAnchor:"center"}},radius:{field:"Depth",value:[4,20]},state:{active:{fillColor:!1,strokeColor:"yellow"},select:{fillColor:!1,strokeColor:"red"}}}}]},{demoName:"\u4E2D\u56FD\u7701\u7EA7\u884C\u653F\u533A\u57DF",imgUrl:"https://gw.alipayobjects.com/mdn/rms_e7e1c6/afts/img/A*0W_dSre5Tq4AAAAAAAAAAAAAARQnAQ",dataSources:[{name:"\u4E2D\u56FD\u7701\u7EA7\u884C\u653F\u533A\u57DF",id:"china-provice",url:"https://npm.elemecdn.com/static-geo-atlas@0.1.0/geo-data/choropleth-data/country/100000_country_province.json",type:"geojson"}],layerList:[{id:"choroplethLayer",type:"ChoroplethLayer",metadata:{name:"\u4E2D\u56FD\u7701\u7EA7\u884C\u653F\u533A\u57DF\u56FE\u5C42"},sourceConfig:{datasetId:"china-provice",parser:{type:"json",geometry:"_geometry"}},visConfig:{visible:!0,fillColor:{field:"childrenNum",value:["#0f9960","#33a02c","#377eb8"],scale:{type:"quantize"}},opacity:1,strokeColor:"#a9abb1",lineWidth:1,lineOpacity:1,label:{field:"name",visible:!0,style:{fill:"#a9abb1",fontSize:14,textAnchor:"center",stroke:"#fff",strokeWidth:1}},state:{active:{fillColor:!1,strokeColor:"yellow"},select:{fillColor:!1,strokeColor:"red"}}}}]},{demoName:"\u4E2D\u56FD\u57CE\u5E02\u884C\u653F\u533A\u57DF",imgUrl:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*9t6mRpeK0DEAAAAAAAAAAAAADmJ7AQ/original",dataSources:[{name:"\u4E2D\u56FD\u57CE\u5E02\u884C\u653F\u533A\u57DF",id:"china-city",url:"https://mdn.alipayobjects.com/afts/file/A*6VJLQ5arJMgAAAAAAAAAAAAADrd2AQ/100000_country_city.json",type:"geojson"}],layerList:[{id:"choroplethCityLayer",type:"ChoroplethLayer",metadata:{name:"\u4E2D\u56FD\u57CE\u5E02\u884C\u653F\u533A\u57DF\u56FE\u5C42"},sourceConfig:{datasetId:"china-city",parser:{type:"json",geometry:"_geometry"}},visConfig:{visible:!0,fillColor:{field:"childrenNum",value:["#f7fbff","#ddebf7","#c6dcef","#6caed7","#4292c6","#2071b5","#08519c","#09306b"],scale:{type:"quantize",unknown:"#c0c0c0"},isReversed:!1},opacity:.9,strokeColor:"#1990ff",lineWidth:.3,lineOpacity:.7,label:{field:void 0,visible:!0,style:{fill:"#252525",fontSize:12,textAnchor:"center",stroke:"#fff",strokeWidth:1}},state:{active:{fillColor:!1,strokeColor:"yellow"},select:{fillColor:!1,strokeColor:"red"}}}}]},{demoName:"2017 \u5E74\u7F8E\u56FD\u5404\u53BF\u7684\u5931\u4E1A\u7387",imgUrl:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*w1DdRJcE1jQAAAAAAAAAAAAADmJ7AQ/original",dataSources:[{name:"2017 \u5E74\u7F8E\u56FD\u5404\u53BF\u7684\u5931\u4E1A\u7387",id:"unemployment-rates-for-US-counties",url:"https://mdn.alipayobjects.com/afts/file/A*UF2kT5xWRr4AAAAAAAAAAAAADrd2AQ/unemployment",type:"json"}],layerList:[{id:"unemployment-rates-for-US-counties",type:"ChoroplethLayer",metadata:{name:"2017 \u5E74\u7F8E\u56FD\u5404\u53BF\u7684\u5931\u4E1A\u7387"},sourceConfig:{datasetId:"unemployment-rates-for-US-counties",parser:{type:"json",geometry:"_geometry"}},visConfig:{visible:!0,fillColor:{field:"unemployment_rate",value:["rgb(255, 247, 243)","rgb(253, 224, 221)","rgb(252, 197, 192)","rgb(250, 159, 181)","rgb(247, 104, 161)","rgb(221, 52, 151)","rgb(174, 1, 126)","rgb(122, 1, 119)","rgb(73, 0, 106)"],scale:{type:"quantile"}},opacity:.8,strokeColor:"rgb(146, 112, 202)",lineWidth:1,lineOpacity:1,label:{field:void 0,visible:!0,style:{fill:"#a9abb1",fontSize:14,textAnchor:"center"}},state:{active:{fillColor:!1,strokeColor:"yellow"},select:{fillColor:!1,strokeColor:"red"}}}}]},{demoName:"\u65B0\u80FD\u6E90\u5145\u7535\u6869\u5206\u5E03",imgUrl:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*gH-fRrU4G7oAAAAAAAAAAAAADmJ7AQ/original.png",dataSources:[{name:"\u65B0\u80FD\u6E90\u5145\u7535\u6869\u5206\u5E03",id:"new-energy-charging-pile-distribution",url:"https://mdn.alipayobjects.com/afts/file/A*uaGISLpSx7AAAAAAAAAAAAAADrd2AQ/charging ",type:"json"}],layerList:[{id:"HexbinLayer_new-energy-charging-pile-distribution",type:"HexbinLayer",metadata:{name:"\u65B0\u80FD\u6E90\u5145\u7535\u6869\u5206\u5E03"},sourceConfig:{datasetId:"new-energy-charging-pile-distribution",parser:{type:"json",geometry:"_geometry"},transforms:[{type:"hexagon",size:1e3,field:"count",method:"sum"}]},visConfig:{visible:!0,aggregateSize:1e3,color:{field:"count",isReversed:!1,scale:{type:"quantize"},value:["#c2ad1f","#bf6261","#bb3432","#5c257d","#162044"]},style:{coverage:1,opacity:.6},state:{active:{fillColor:!1,strokeColor:"yellow"},select:{fillColor:!1,strokeColor:"red"}}}},{id:"BubbleLayer_new-energy-charging-pile-distribution",type:"BubbleLayer",metadata:{name:"\u5145\u7535\u6869\u56FE\u5C42"},sourceConfig:{datasetId:"new-energy-charging-pile-distribution",parser:{type:"json",geometry:"_geometry"}},visConfig:{visible:!0,lineOpacity:1,lineWidth:0,opacity:.8,radius:4,fillColor:"#f8dc31",blend:"normal",label:{field:void 0,visible:!1,style:{fill:"#c0c0c0",fontSize:14,textAnchor:"center"}},state:{active:{fillColor:!1,strokeColor:"red"},select:{fillColor:!1,strokeColor:"red"}}}}]},{imgUrl:"https://mdn.alipayobjects.com/mdn/huamei_qa8qxu/afts/img/A*g8RGQ47Xbc8AAAAAAAAAAAAADmJ7AQ",dataSources:[{url:"https://mdn.alipayobjects.com/afts/file/A*XCJJQK2L5O8AAAAAAAAAAAAADrd2AQ/city.json",id:"bus-travel-volume-example",name:"\u57CE\u5E02\u516C\u4EA4\u51FA\u884C\u91CF",type:"json"}],demoName:"\u57CE\u5E02\u516C\u4EA4\u51FA\u884C\u91CF",layerList:[{id:"bus-travel-volume-example",type:"H3HexagonLayer",metadata:{name:"\u57CE\u5E02\u516C\u4EA4\u51FA\u884C\u91CF\u56FE\u5C42"},sourceConfig:{datasetId:"bus-travel-volume-example",parser:{type:"json",hexagonId:"oh"}},visConfig:{visible:!0,fillColor:{field:"od_cnt",value:["rgb(127, 0, 0)","rgb(179, 0, 0)","rgb(215, 48, 31)","rgb(239, 101, 72)","rgb(252, 141, 89)","rgb(253, 187, 132)","rgb(253, 212, 158)","rgb(254, 232, 200)","rgb(255, 247, 236)"],scale:{type:"quantile"}},opacity:.8,lineWidth:0,minZoom:0,maxZoom:24,blend:"normal",state:{active:{fillColor:!1,strokeColor:"yellow"},select:{fillColor:!1,strokeColor:"red"}}}},{id:"bus-travel-volume-arcLayer",type:"ArcLayer",metadata:{name:"\u6210\u90FD\u516C\u4EA4\u51FA\u884C\u91CF\u5173\u7CFB"},sourceConfig:{parser:{type:"json",x:"f_lon",y:"f_lat",x1:"t_lon",y1:"t_lat"},datasetId:"bus-travel-volume-example"},visConfig:{size:1.5,color:"#5ad8a6",style:{opacity:.8,lineType:"solid",sourceColor:"#5ad8a6",targetColor:"#5B8FF9"},minZoom:1,maxZoom:23,blend:"normal",animate:{enable:!0,duration:4,interval:.8,trailLength:1},state:{active:{color:"yellow"}},visible:!1}}]}],ie=i(49231),u=i.n(ie),d=i(87651),de,me,fe,pe,Te=function(){var t=(0,b.Sr)(),a=t.colorPrimaryActive;return{caseDataset:(0,d.iv)(de||(de=u()([` + max-height: 500px; + overflow: hidden; + overflow-y: auto; + `]))),datasetItem:(0,d.iv)(me||(me=u()([` + cursor: pointer; + transition: all 0.2s; + &:hover { + transform: scale(1.1); + } + `]))),datasetItemSelect:(0,d.iv)(fe||(fe=u()([` + border: 2px solid `,`; + `])),a),datasetItemName:(0,d.iv)(pe||(pe=u()([` + margin: 8px 0 4px 0; + text-align: center; + `])))}},ge=Te,e=i(70293);function Ct(v){var t=v.onSubmit,a=v.onCancel,l=(0,b.F8)("case-dataset"),o=ge(),n=(0,m.useState)({dataSources:[],layers:[]}),f=x()(n,2),p=f[0],C=f[1],R=(0,m.useState)([]),_=x()(R,2),S=_[0],H=_[1],K=function(){var h=ue()(re()().mark(function E(c,Q){var V,N,B,w;return re()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return V=function(){var k=ue()(re()().mark(function T(G){var I,F;return re()().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.next=2,fetch(G);case 2:return I=J.sent,J.next=5,I.text();case 5:return F=J.sent,J.abrupt("return",F);case 7:case"end":return J.stop()}},T)}));return function(G){return k.apply(this,arguments)}}(),N=c.map(function(k){return V(k.url)}),U.next=4,Promise.all(N);case 4:B=U.sent,w=B.map(function(k,T){if(c[T].type==="json")return(0,O.kF)(k,c[T].name,c[T].id);if(c[T].type==="geojson")return(0,O.sk)(k,c[T].name,c[T].id);if(c[T].type==="csv")return(0,O.ZQ)(k,c[T].name,c[T].id)}).filter(function(k){return k!==void 0}),C({dataSources:w,layers:Q});case 7:case"end":return U.stop()}},E)}));return function(c,Q){return h.apply(this,arguments)}}();return(0,m.useEffect)(function(){var h=W.filter(function(c){return S.includes(c.demoName)}).map(function(c){return c.dataSources}),E=W.filter(function(c){return S.includes(c.demoName)}).map(function(c){return c.layerList});K((0,M.flatten)(h),(0,M.flatten)(E))},[S]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.Row,{className:r()(l,o.caseDataset),gutter:[42,24],children:W.map(function(h){return(0,e.jsx)(s.Col,{span:8,children:(0,e.jsxs)("div",{className:r()("".concat(l,"__item"),o.datasetItem),onClick:function(){S.includes(h.demoName)?H(S.filter(function(c){return c!==h.demoName})):H([].concat(Ae()(S),[h.demoName]))},children:[(0,e.jsx)("img",{style:{width:"100%",height:150},src:h.imgUrl,className:S.includes(h.demoName)?r()("".concat(l,"__item_select"),o.datasetItemSelect):""}),(0,e.jsx)("div",{className:r()("".concat(l,"__item-name"),o.datasetItemName),children:h.demoName})]})},h.demoName)})}),(0,e.jsx)("div",{className:r()("".concat(l,"__footer"),"ant-modal-footer"),children:(0,e.jsxs)(s.Space,{children:[(0,e.jsx)(s.Button,{onClick:function(){a()},children:"\u8FD4\u56DE"}),(0,e.jsx)(s.Button,{disabled:!p.dataSources.length,type:"primary",onClick:function(){t(p.dataSources,p.layers)},children:"\u6DFB\u52A0"})]})})]})}var De=(0,O.BP)({version:"v0.1",component:Ct,metadata:{name:"CaseDataset",displayName:"\u793A\u4F8B\u6570\u636E",description:"\u793A\u4F8B\u6570\u636E\u96C6"},container:{type:"Datasets",slot:"addDataset"}}),yt=i(91055),j=i.n(yt),xt=i(58335),At=i.n(xt),ee=i(16640),he=i.n(ee),se=i(63044),ke=i(50476),bt=i(40496),St=i(36012),Fe=i.n(St),jt=function(){return(0,e.jsxs)("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",children:[(0,e.jsx)("path",{d:"M747.7 288.2c0-17.6-14.4-32.1-32.1-32.1H306.4c-17.6 0-32.1 14.4-32.1 32.1 0 17.6 14.4 32.1 32.1 32.1h409.2c17.7 0 32.1-14.5 32.1-32.1zM306.4 448c-17.6 0-32.1 14.4-32.1 32.1 0 17.6 14.4 32.1 32.1 32.1h191.1c17.7 0 32.2-14.4 32.1-32.1 0-17.6-14.4-32.1-32.1-32.1H306.4zM766.6 776.8c-2.1-2.1-4.4-3.9-6.9-5.2 18.1-25.8 28.7-57.1 28.7-90.9 0-88.2-72.4-159.6-161.7-159.6S465 592.5 465 680.7s72.4 159.6 161.7 159.6c32.7 0 63.2-9.6 88.7-26.1 1.5 2.9 3.4 5.6 5.8 8l83.3 83.3c12.5 12.5 32.9 12.5 45.4 0s12.5-32.9 0-45.4l-83.3-83.3z m-139.9 0.6c-54.1 0-98-43.3-98-96.7s43.9-96.7 98-96.7 98 43.3 98 96.7c0 53.4-43.8 96.7-98 96.7z"}),(0,e.jsx)("path",{d:"M577.6 895.4H221.2c-35.2 0-64-28.8-64-64V192.8c0-35.2 28.8-64 64-64h547.3c35.2 0 64 28.8 64 64v318.4h0.3v0.1c0 17.7 14.4 32.1 32.2 32.1s32.2-14.4 32.2-32.1c0-1.2-0.1-2.3-0.2-3.5v-316c0-70.4-27.6-128-98-128H225c-70.4 0-128 57.6-128 128v639.8c0 70.4 57.6 128 128 128h352.2c17.8 0 32.2-14.4 32.2-32.1 0-17.6-14.2-31.9-31.8-32.1z"}),(0,e.jsx)("path",{d:"M832.7 639.3a32.2 32.1 0 1 0 64.4 0 32.2 32.1 0 1 0-64.4 0Z"})]})},Le,Ee,Be,we,Ie,_t=function(){var t=(0,b.Sr)(),a=t.colorBgContainer;return{datasetPreview:(0,d.iv)(Le||(Le=u()([` + min-width: 600px; + height: calc(100% - 200px); + `]))),modelTabel:(0,d.iv)(Ee||(Ee=u()([` + position: relative; + height: calc(100vh - 300px); + padding: 10px 0 20px; + `]))),tabelToolbar:(0,d.iv)(Be||(Be=u()([` + display: flex; + align-items: center; + height: 36px; + padding: 0 10px; + background: `,`; + `])),a),toolbarItem:(0,d.iv)(we||(we=u()([` + display: flex; + align-items: center; + justify-content: center; + width: 28px; + height: 24px; + margin-right: 10px; + border-radius: 4px; + cursor: pointer; + + &:hover { + background-color: rgba(255, 255, 255, 0.1); + } + + span { + display: flex; + align-items: center; + justify-content: center; + width: 24px; + height: 24px; + + svg { + width: 13px; + height: 13px; + fill: #fff; + } + } + `]))),toolbarItemActived:(0,d.iv)(Ie||(Ie=u()([` + background: rgba(255, 255, 255, 0.2); + `])))}},Nt=_t,Tt=i(25435),Dt=function(t){var a=t.type,l=Tt.DATASET_FIELD_TYPE_MAP[a],o=l.color,n=l.value;return(0,e.jsx)(s.Tag,{color:o,children:n})},kt=Dt,Ft=s.theme.useToken,Lt=function(){var t=(0,se.L00)(),a=t.spreadsheet;return(0,m.useEffect)(function(){return(0,ke.Dt)("fieldType",function(){return(0,e.jsx)(e.Fragment,{children:a.interaction.getAllColHeaderCells().map(function(l){return l.getMeta()}).map(function(l,o){var n,f=(0,se.l3E)(l,a),p=f.height,C=f.x,R="translate(".concat(C+5,"px,1px)"),_=(n=a.dataCfg)===null||n===void 0||(n=n.meta)===null||n===void 0||(n=n.find(function(S){return S.field===l.field}))===null||n===void 0?void 0:n.colType;return(l==null?void 0:l.colIndex)==0?null:(0,e.jsx)("div",{style:{position:"absolute",width:"40",pointerEvents:"none",height:p-10,transform:R},children:(0,e.jsx)(kt,{type:_})},o)})})}),function(){}},[]),null},Et=(0,se.A4U)({childContribution:[ke.ZP.childContribution,Lt],wrapperContribution:[bt.ZP.wrapperContribution]}),Bt=function(t){var a=t.datasetId,l=t.visible,o=t.onCancel,n=(0,b.F8)("dataset-preview"),f=Nt(),p=(0,O.OA)(a),C=(0,m.useState)(!0),R=x()(C,2),_=R[0],S=R[1],H=s.Modal.useModal(),K=x()(H,2),h=K[0],E=K[1],c=s.message.useMessage(),Q=x()(c,2),V=Q[0],N=Q[1],B=Ft(),w=B.token,Y=(0,M.merge)(se.$_G,{colCell:{cell:{backgroundColor:w.colorBgContainer,padding:{left:50},interactionState:{hover:{backgroundColor:w.colorBgElevated}}},bolderText:{textAlign:"left"}},rowCell:{cell:{backgroundColor:w.colorBgContainer}},dataCell:{cell:{backgroundColor:w.colorBgContainer,crossBackgroundColor:w.colorBgContainer,interactionState:{hover:{backgroundColor:w.colorBgElevated}}}}}),U=function(A){h.info({closable:!0,title:"\u5F53\u524D\u5B57\u6BB5\u503C",content:(0,e.jsx)(e.Fragment,{children:A}),okText:"\u590D\u5236",onOk:function(){var P=typeof A=="string"?A:JSON.stringify(A);Fe()(P),V.success("\u590D\u5236\u6210\u529F")}})};if(p!=null&&p.isLocalOrRemoteDataset){var k=p.data,T=k===void 0?[]:k,G=p.columns,I=G===void 0?[]:G,F=I.map(function(z){return{name:z.name,displayName:z.name,colType:z.type}}),le=T.map(function(z){return(0,M.mapValues)(z,function(A){return At()(A)!=="object"?A:JSON.stringify(A)})}),J=function(A){var ae=A,P=ae.summaryRowCfg,L=ae.setSummaryRowCfg;return(0,e.jsxs)("div",{className:r()("".concat(n,"__model-tabel__toolbar"),f.tabelToolbar),children:[(0,e.jsx)("div",{className:r()("".concat(n,"__model-tabel__toolbar-item"),f.toolbarItem,_?"".concat(n,"__model-tabel__toolbar-item-actived"):"",_?f.toolbarItemActived:""),children:(0,e.jsx)(s.Tooltip,{title:"\u9AD8\u4EAE",children:(0,e.jsx)(ee.BorderInnerOutlined,{onClick:function(){S(!_)}})})}),(0,e.jsx)("div",{className:r()("".concat(n,"__model-tabel__toolbar-item"),f.toolbarItem,P.visible?"".concat(n,"__model-tabel__toolbar-item-actived"):"",P.visible?f.toolbarItemActived:""),children:(0,e.jsx)(s.Tooltip,{title:"\u6570\u636E\u63A2\u67E5",children:(0,e.jsx)(he(),{component:jt,onClick:function(){L(function(te){return j()(j()({},te),{},{visible:!te.visible})})}})})})]})};return(0,e.jsxs)(s.Modal,{className:r()(n,f.datasetPreview),title:"".concat(p==null?void 0:p.metadata.name),open:l,bodyStyle:{padding:0},destroyOnClose:!0,width:"calc(100vw - 200px)",footer:!1,onCancel:function(){return o()},children:[E,N,(0,e.jsx)("div",{className:r()("".concat(n,"__model-tabel"),f.modelTabel),children:(0,e.jsx)(Et,{hoverable:!0,expandVacancy:!0,theme:Y,disableCellDetail:!0,Toolbar:J,s2Options:{frozenRowCount:1,interaction:{hoverHighlight:_},dataCell:function(A){return A.colIndex===0?new se.E5N(A,A.spreadsheet):new se.iG8(A,A.spreadsheet)}},onDataCellDoubleClick:function(A){U(A.fieldValue)},data:le,columns:F})})]})}},wt=Bt,Pe=(0,O.BP)({version:"v0.1",component:wt,metadata:{name:"DatasetPreview",displayName:"\u6570\u636E\u9884\u89C8",description:"\u9884\u89C8\u6570\u636E\u96C6"},container:{type:"Datasets",slot:"preview"}}),Ce=i(40795),It=function(t){return(0,e.jsx)(s.Tooltip,{placement:"right",title:"\u6587\u6863",children:(0,e.jsx)(s.Button,{id:"LITourDocs",type:"text",size:"middle",shape:"circle",icon:(0,e.jsx)(ee.ReadOutlined,{size:18}),onClick:function(){window.open(Ce.m8.createHref("/docs"))}})})},Pt=It,Ot=(0,O.BP)({version:"v0.1",component:Pt,metadata:{name:"Docs",displayName:"\u6587\u6863",description:"\u7528\u6237\u6307\u5357"},container:{type:"SideNav",slot:"bottom"}}),Mt=i(59767),Oe,Rt=function(){var t=(0,b.Sr)(),a=t.antCls;return{exportPopover:(0,d.iv)(Oe||(Oe=u()([` + `,`-popover-arrow { + display: none; + } + + `,`-popover-inner { + padding: 0;s + } + + `,`-popover-inner-content { + padding: 0; + } + `])),a,a,a)}},zt=Rt,_e=i(41991),Ht=i(57088),Vt=i(17728),Jt=i.n(Vt),Kt=function(){return(0,e.jsx)("svg",{viewBox:"0 0 14 14",fill:"currentColor",width:"1em",height:"1em",children:(0,e.jsx)("path",{d:"M13.8875145,13.1234844 C13.8687399,13.0691875 13.8499977,13.0329687 13.8312555,12.9786562 L11.3687445,8.83296875 C12.9187468,8.05754687 13.9640694,6.49009375 13.9640694,4.68728125 C13.9624994,2.09095312 11.7968694,0 9.10938728,0 L3.86404855,0 C3.04217572,0 2.37028902,0.648703125 2.37028902,1.44223437 L2.37028902,1.82090625 L0.746871676,1.82090625 C0.33593526,1.82090625 0,2.14526562 0,2.54203125 L0,13.4478437 C0,13.7540937 0.242191908,13.9879375 0.559368786,13.9879375 C0.615627746,13.9879375 0.67187052,13.9698281 0.72812948,13.9517187 L13.440615,13.9517187 C13.7578081,13.9517187 14,13.7178906 14,13.4116406 C14,13.321125 13.9624994,13.2125 13.8875145,13.1234844 Z M3.49061272,8.0394375 L3.49061272,2.9206875 L8.71719306,2.9206875 C9.74375723,2.9206875 10.5843723,3.73232812 10.5843723,4.7235 C10.5843723,5.71465625 9.76249942,6.5081875 8.71719306,6.5081875 L6.53280462,6.5081875 L6.53280462,6.52629688 C6.45781965,6.52629688 6.3828185,6.5625 6.3093711,6.59870313 C6.04843699,6.74354688 5.95469364,7.08598438 6.10467977,7.33792188 L8.3078104,11.0325469 L3.4906289,11.0325469 L3.4906289,8.0394375 L3.49061272,8.0394375 Z M1.1203237,12.8881406 L1.1203237,2.9206875 L2.3703052,2.9206875 L2.3703052,11.5545313 C2.3703052,11.8607813 2.61249711,12.0946094 2.92969017,12.0946094 L2.94843237,12.0946094 C2.98593295,12.1127188 3.04219191,12.1127188 3.09843468,12.1127188 L9.16563006,12.1127188 C9.48280694,12.1127188 9.72499884,11.878875 9.72499884,11.572625 L9.72499884,11.5364219 C9.76249942,11.3915938 9.74375723,11.2482813 9.66875607,11.1215469 L7.5593526,7.58835938 L8.6984185,7.58835938 C10.3406104,7.58835938 11.6843514,6.29095313 11.6843514,4.703875 C11.6843514,3.1168125 10.3406104,1.81939063 8.6984185,1.81939063 L3.4906289,1.81939063 L3.4906289,1.44073437 C3.4906289,1.24310937 3.65937341,1.08017187 3.86406474,1.08017187 L9.09061272,1.08017187 C11.143741,1.08017187 12.8234173,2.7019375 12.8234173,4.68578125 C12.8234173,6.21853125 11.8343538,7.5340625 10.4343538,8.05603125 C10.378111,8.07414063 10.3406104,8.09223438 10.2843514,8.11034375 C10.0234173,8.25517188 9.92967399,8.597625 10.0796763,8.8495625 L12.5062405,12.8881563 L1.12030751,12.8881563 L1.1203237,12.8881406 Z"})})},Ut=function(t){return(0,e.jsx)(he(),j()({component:Kt},t))},Qt=function(){return(0,e.jsx)("svg",{viewBox:"0 0 1024 1024",fill:"currentColor",width:"1em",height:"1em",children:(0,e.jsx)("path",{d:"M755 140.3l0.5-0.3h0.3L512 0 268.3 140h-0.3l0.8 0.4L68.6 256v512L512 1024l443.4-256V256L755 140.3z m-30 506.4v171.2L548 920.1V534.7L883.4 341v215.7l-158.4 90z m-584.4-90.6V340.8L476 534.4v385.7L300 818.5V646.7l-159.4-90.6zM511.7 280l171.1-98.3 166.3 96-336.9 194.5-337-194.6 165.7-95.7L511.7 280z"})})},Wt=function(t){return(0,e.jsx)(he(),j()({component:Qt},t))},Me,Re,ze,He,Gt=function(){var t=(0,b.Sr)(),a=t.colorBgContainer;return{codePreview:(0,d.iv)(Me||(Me=u()([` + display: flex; + flex-direction: column; + `]))),toolBar:(0,d.iv)(Re||(Re=u()([` + display: flex; + align-items: center; + justify-content: end; + width: 100%; + height: 32px; + padding: 6px 16px; + background: `,`; + border-radius: 10px 10px 0 0; + opacity: 0.7; + transition: opacity 0.3s; + + &:hover { + opacity: 1; + } + `])),a),action:(0,d.iv)(ze||(ze=u()([` + position: relative; + display: flex; + align-items: center; + width: 16px; + height: 16px; + `]))),actionIcon:(0,d.iv)(He||(He=u()([` + width: 16px; + height: 16px; + overflow: hidden; + color: rgba(255, 255, 255, 0.7); + font-size: 16px; + border: 0; + cursor: pointer; + transition: all 0.24s; + + &:hover { + color: rgba(255, 255, 255, 1); + } + `])))}},Zt=Gt,Ve=i(93707);function $t(v){return Jt().compressToBase64(v).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}var En={base:"vs-dark",inherit:!0,rules:[],colors:{"editor.foreground":"#ffffffd9","editor.background":"#282932","editor.selectionBackground":"#282932","editor.lineHighlightBackground":"#282932","editorCursor.foreground":"#819090","editorWhitespace.foreground":"#282932"}},Xt=function(t){var a=t.language,l=t.value,o=t.riddle,n=t.codesanbox,f=t.className,p=(0,b.F8)("code-preview"),C=Zt(),R=(0,m.useRef)(null),_=(0,m.useRef)(null),S=(0,Ve.nK)()&&o,H=(0,Ve.nK)()&&n,K=(0,m.useState)(!1),h=x()(K,2),E=h[0],c=h[1],Q=(0,m.useState)(!1),V=x()(Q,2),N=V[0],B=V[1],w=(0,m.useRef)(null),Y=function(){w.current&&clearTimeout(w.current)},U=o,k=n,T=function(){Fe()(l||""),B(!0),Y(),w.current=setTimeout(function(){B(!1)},3e3)},G=(0,e.jsx)("div",{className:r()("".concat(p,"__toolbar"),C.toolBar),children:(0,e.jsxs)(s.Space,{size:"middle",children:[H?(0,e.jsxs)("form",{className:r()("".concat(p,"__action"),C.action),action:"https://codesandbox.io/api/v1/sandboxes/define",method:"POST",target:"_blank",ref:_,onClick:function(){var F;(F=_.current)===null||F===void 0||F.submit()},children:[(0,e.jsx)("input",{type:"hidden",name:"parameters",value:$t(JSON.stringify(k))}),(0,e.jsx)(s.Tooltip,{title:"\u5728 CodeSandbox \u4E2D\u6253\u5F00",children:(0,e.jsx)(Wt,{className:r()("".concat(p,"__action-icon"),C.actionIcon)})})]}):null,S?(0,e.jsxs)("form",{className:r()("".concat(p,"__action"),C.action),action:"//riddle.alibaba-inc.com/riddles/define",method:"POST",target:"_blank",ref:R,onClick:function(){var F;(F=R.current)===null||F===void 0||F.submit()},children:[(0,e.jsx)("input",{type:"hidden",name:"data",value:JSON.stringify(U)}),(0,e.jsx)(s.Tooltip,{title:"\u5728 Riddle \u4E2D\u6253\u5F00",children:(0,e.jsx)(Ut,{className:r()("".concat(p,"__action-icon"),C.actionIcon)})})]}):null,(0,e.jsx)(s.Tooltip,{title:N?"\u590D\u5236\u6210\u529F":"\u590D\u5236\u4EE3\u7801",children:(0,e.jsx)(ee.CopyOutlined,{className:r()("".concat(p,"__action-icon"),C.actionIcon),onClick:T})})]})});return(0,e.jsxs)("div",{className:r()(f,C.codePreview,p),children:[E?G:null,(0,e.jsx)(Ht.ZP,{language:a,options:{readOnly:!0,minimap:{enabled:!1},lineNumbers:"off",overviewRulerBorder:!1,wordWrap:"off",wordWrapOverride1:"off"},onMount:function(){c(!0)},theme:"vs-dark",value:l})]})},Je=Xt,Yt=i(78453),Ke=i(90527),ye=function(t,a){var l=a.map(function(n){return"import ".concat(n.global," from '").concat(n.package,"';")}).join(` +`),o=a.map(function(n){return n.global}).join(", ");return`import React from 'react'; +import { ConfigProvider, theme } from 'antd'; +import { LocationInsightApp, Application } from '@antv/li-sdk'; +`.concat(l,` + +const config: Application = `).concat(JSON.stringify(t),` + +const assets = [`).concat(o,`]; +const appTheme = { algorithm: theme.darkAlgorithm, token: `).concat(JSON.stringify(Ke.vh.token),`, } + +export default () => { + const { token } = theme.useToken(); + const inheritedStyle = { color: token.colorText, fontSize: token.fontSize, fontFamily: token.fontFamily, lineHeight: token.lineHeight, background: token.colorBgLayout, } + + return ( + + + + ); +}; + `)},Ue=function(t){var a={"@ant-design/icons":"^5.0.1","@antv/l7":"^2.17.2","@antv/larkmap":"^1.4.1",antd:"^5.5.0","@antv/li-sdk":"^"+Yt.i8,react:"^18.0.0","react-dom":"^18.0.0"},l=t.reduce(function(o,n){return o[n.package]="^"+n.version,o},a);return l},qt=function(t){var a=Ue(t);return{title:"L7VP App",main:"index.js",dependencies:j()(j()({},a),{},{"react-scripts":"^5.0.0"}),devDependencies:{typescript:"^5.0.2","@types/react":"^18.0.0","@types/react-dom":"^18.0.0"},scripts:{start:"react-scripts start",build:"react-scripts build",test:"react-scripts test --env=jsdom",eject:"react-scripts eject"},browserslist:[">0.2%","not dead"]}},en=function(t,a){var l=` + + + + + + + +
    + + + `,o=`import React from 'react'; +import { createRoot } from 'react-dom/client'; +import App from './app'; +import 'antd/dist/reset.css'; +import './index.css'; + +createRoot(document.getElementById('container')).render(); + `,n="";return{files:{"package.json":{content:qt(a)},"index.css":{content:n},"index.tsx":{content:o},"app.tsx":{content:ye(t,a)},"index.html":{content:l}}}},tn=function(t,a){var l=`import { createRoot } from 'react-dom/client'; +`.concat(ye(t,a).replace(/export default/,"const APP ="),` +createRoot(mountNode).render(); +`),o="@import '~antd/dist/reset.css';",n={title:"L7VP App",js:l,css:o,json:JSON.stringify({name:"L7VP App",dependencies:Ue(a)},null,2)};return n},Qe,We,Ge,Ze,$e,nn=function(){return{appType:(0,d.iv)(Qe||(Qe=u()([` + margin: 8px 0 35px; + `]))),appContent:(0,d.iv)(We||(We=u()([` + margin: 8px 0 35px; + display: flex; + `]))),appTitle:(0,d.iv)(Ge||(Ge=u()([` + width: 185px; + margin-right: 60px; + `]))),appSubtitle:(0,d.iv)(Ze||(Ze=u()([` + color: rgb(160, 167, 180); + font-size: 11px; + `]))),codePreview:(0,d.iv)($e||($e=u()([` + width: 100%; + max-width: 600px; + height: 300px; + `])))}},an=nn,Ne=i(9256),on=i(74090),rn={HTML:"html",JSON:"json",SDK:"tsx"},sn=function(t){var a=t.visible,l=t.onVisbleChange,o=(0,b.F8)("export-app"),n=an(),f=(0,m.useState)("HTML"),p=x()(f,2),C=p[0],R=p[1],_=(0,m.useState)(),S=x()(_,2),H=S[0],K=S[1],h=(0,O.ox)(),E=h.editorService,c=E.getApplicationConfig(),Q=(0,m.useState)([]),V=x()(Q,2),N=V[0],B=V[1],w=(0,m.useState)(),Y=x()(w,2),U=Y[0],k=Y[1],T=c.spec.map.basemap&&c.spec.map.basemap==="Mapbox",G=c.spec.map.basemap&&["Gaode","GaodeV1","GaodeV2"].includes(c.spec.map.basemap);(0,m.useEffect)(function(){var P,L=(P=c.metadata)===null||P===void 0?void 0:P.assetPackageIds;(0,on.nl)().then(function(q){var te=Array.isArray(L)?q.filter(function(ne){return L.includes(ne.assetId)}):q;B(te)})},[]);var I=function(){var L="".concat(c.metadata.name,".").concat(rn[C]);if(C==="JSON")(0,_e.Di)(L,JSON.stringify(c));else if(C==="SDK")(0,_e.Di)(L,ye(c,N));else{var q=(0,Ne.VZ)(c,N,{token:H,aMapSecurityJsCode:U});(0,_e.Di)(L,q)}(0,Ne.lF)(12),l(!1)},F=function(){l(!1)},le=function(L){R(L.target.value)},J=function(){return(0,e.jsxs)("div",{className:r()("".concat(o,"__content"),n.appContent),children:[(0,e.jsxs)("div",{className:r()("".concat(o,"__title"),n.appTitle),children:[(0,e.jsx)("div",{children:"\u5E94\u7528\u914D\u7F6E"}),(0,e.jsx)("div",{className:r()("".concat(o,"__subtitle"),n.appSubtitle),children:"\u5E94\u7528\u7684\u914D\u7F6E\u6587\u4EF6\uFF0C\u5BFC\u51FA\u540E\u53EF\u4EE5\u901A\u8FC7\u9879\u76EE\u65B9\u5F0F\u518D\u6B21\u5BFC\u5165"})]}),(0,e.jsx)(Je,{className:r()("".concat(o,"__code-preview"),n.codePreview),language:"json",value:JSON.stringify(c,null," ")})]})},z=function(){var L=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:r()("".concat(o,"__content"),n.appContent),children:[(0,e.jsxs)("div",{className:r()("".concat(o,"__title"),n.appTitle),children:[(0,e.jsx)("div",{children:"Key \u914D\u7F6E"}),(0,e.jsxs)("div",{className:r()("".concat(o,"__subtitle"),n.appSubtitle),children:["\u5E94\u7528\u9700\u8981\u9AD8\u5FB7\u5E95\u56FE\u670D\u52A1\u7684"," ",(0,e.jsx)("a",{href:"https://lbs.amap.com/api/javascript-api-v2/prerequisites",target:"_blank",rel:"noreferrer",children:"Key"})]})]}),(0,e.jsx)(s.Input,{placeholder:"\u8BF7\u586B\u5199\u9AD8\u5FB7\u5F00\u653E\u5E73\u53F0\u7533\u8BF7\u7684 key",style:{width:400},onChange:function(ne){K(ne.target.value)}})]}),(0,e.jsxs)("div",{className:r()("".concat(o,"__content"),n.appContent),children:[(0,e.jsxs)("div",{className:r()("".concat(o,"__title"),n.appTitle),children:[(0,e.jsx)("div",{children:"\u5B89\u5168\u5BC6\u94A5\u914D\u7F6E"}),(0,e.jsxs)("div",{className:r()("".concat(o,"__subtitle"),n.appSubtitle),children:["\u5E94\u7528\u9700\u8981\u9AD8\u5FB7\u5E95\u56FE\u670D\u52A1\u7684"," ",(0,e.jsx)("a",{href:"https://lbs.amap.com/api/javascript-api-v2/prerequisites",target:"_blank",rel:"noreferrer",children:"\u5B89\u5168\u5BC6\u94A5"})]})]}),(0,e.jsx)(s.Input,{placeholder:"\u8BF7\u586B\u5199\u9AD8\u5FB7\u5F00\u653E\u5E73\u53F0\u7533\u8BF7\u7684\u5B89\u5168\u5BC6\u94A5",style:{width:400},onChange:function(ne){k(ne.target.value)}})]})]}),q=(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("div",{className:r()("".concat(o,"__content"),n.appContent),children:[(0,e.jsxs)("div",{className:r()("".concat(o,"__title"),n.appTitle),children:[(0,e.jsx)("div",{children:"Token \u914D\u7F6E"}),(0,e.jsxs)("div",{className:r()("".concat(o,"__subtitle"),n.appSubtitle),children:["\u5E94\u7528\u9700\u8981 Mapbox \u5E95\u56FE\u670D\u52A1\u7684"," ",(0,e.jsx)("a",{href:"https://account.mapbox.com/access-tokens/",target:"_blank",rel:"noreferrer",children:"Token"})]})]}),(0,e.jsx)(s.Input,{placeholder:"\u8BF7\u586B\u5199 Mapbox \u5E73\u53F0\u7533\u8BF7\u7684 token",style:{width:400},onChange:function(ne){K(ne.target.value)}})]})});return T?q:G?L:null},A=function(){return(0,e.jsxs)("div",{className:r()("".concat(o,"__content"),n.appContent),children:[(0,e.jsxs)("div",{className:r()("".concat(o,"__title"),n.appTitle),children:[(0,e.jsx)("div",{children:"SDK \u6E32\u67D3"}),(0,e.jsx)("div",{className:r()("".concat(o,"__subtitle"),n.appSubtitle),children:"\u5BFC\u51FA\u6E90\u4EE3\u7801\uFF0CSDK \u65B9\u5F0F\u63A5\u5165\u5230\u4E1A\u52A1\u7CFB\u7EDF\u4E2D"})]}),(0,e.jsx)(Je,{className:r()("".concat(o,"__code-preview"),n.codePreview),language:"typescript",codesanbox:en(c,N),riddle:tn(c,N),value:ye(c,N)})]})},ae=function(){return N.length===0?null:C==="HTML"?z():C==="JSON"?J():A()};return(0,e.jsxs)(s.Modal,{className:o,width:960,title:"\u5BFC\u51FA\u5E94\u7528",open:a,onCancel:F,destroyOnClose:!0,footer:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.Button,{onClick:F,children:"\u8FD4\u56DE"}),(0,e.jsx)(s.Button,{disabled:N.length===0,type:"primary",onClick:I,children:"\u5BFC\u51FA"})]}),children:[(0,e.jsx)("div",{className:r()("".concat(o,"__type"),n.appType),children:(0,e.jsxs)("div",{className:r()("".concat(o,"__content"),n.appContent),children:[(0,e.jsxs)("div",{className:r()("".concat(o,"__title"),n.appTitle),children:[(0,e.jsx)("div",{children:"\u5BFC\u51FA\u7684\u683C\u5F0F"}),(0,e.jsx)("div",{className:r()("".concat(o,"__subtitle"),n.appSubtitle),children:"\u9009\u62E9\u5BFC\u51FA\u7684\u683C\u5F0F"})]}),(0,e.jsxs)(s.Radio.Group,{onChange:le,value:C,children:[(0,e.jsx)(s.Radio,{value:"HTML",children:"HTML"}),(0,e.jsx)(s.Radio,{value:"SDK",children:"SDK"}),(0,e.jsx)(s.Radio,{value:"JSON",children:"JSON"})]})]})}),ae()]})},ln=sn,cn=function(t){var a=(0,b.F8)("export-popover"),l=zt(),o=(0,m.useState)(!1),n=x()(o,2),f=n[0],p=n[1],C=(0,m.useState)(!1),R=x()(C,2),_=R[0],S=R[1],H=(0,m.useState)(!1),K=x()(H,2),h=K[0],E=K[1],c=function(){p(!0)},Q=function(){S(!0)},V=(0,e.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,e.jsx)(s.Button,{type:"text",size:"middle",icon:(0,e.jsx)(ee.TableOutlined,{size:18}),onClick:c,children:"\u5BFC\u51FA\u6570\u636E"}),(0,e.jsx)(s.Button,{type:"text",size:"middle",icon:(0,e.jsx)(ee.CodeOutlined,{size:18}),onClick:Q,children:"\u5BFC\u51FA\u5E94\u7528"})]});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(s.Popover,{overlayClassName:r()(a,l.exportPopover),placement:"rightBottom",trigger:"click",content:V,onOpenChange:function(B){B&&E(!1)},children:(0,e.jsx)(s.Tooltip,{placement:"right",title:"\u5BFC\u51FA",open:h,onOpenChange:function(B){E(B)},children:(0,e.jsx)(s.Button,{id:"LITourExportApp",type:"text",size:"middle",shape:"circle",icon:(0,e.jsx)(ee.DownloadOutlined,{size:18})})})}),_&&(0,e.jsx)(ln,{visible:_,onVisbleChange:S}),f&&(0,e.jsx)(Mt.Z,{visible:f,onVisbleChange:p})]})},un=cn,Xe=(0,O.BP)({version:"v0.1",component:un,metadata:{name:"Export",displayName:"\u5BFC\u51FA",description:"\u6570\u636E\u4E0E\u5E94\u7528\u5BFC\u51FA"},container:{type:"SideNav",slot:"bottom"}}),Ye,dn=function(){return{logo:(0,d.iv)(Ye||(Ye=u()([` + margin: 15px 0; + cursor: pointer; + + img { + width: 26px; + height: 26px; + } + `])))}},pn=dn,vn=function(t){var a=(0,b.F8)("logo"),l=pn(),o=function(){Ce.m8.push("/project")};return(0,e.jsx)("div",{className:r()(a,l.logo),onClick:o,children:(0,e.jsx)("img",{src:Ke.Oi})})},mn=vn,fn=(0,O.BP)({version:"v0.1",component:mn,metadata:{name:"NavLogo",displayName:"Logo",description:"\u5BFC\u822A\u680F Logo"},container:{type:"SideNav",slot:"top"}}),gn=i(78020),Bn="li-editor-novice-tour",hn=[{key:1,title:"\u6DFB\u52A0\u6570\u636E\u96C6",status:"process",menu:"datasets"},{key:2,title:"\u6DFB\u52A0\u53EF\u89C6\u5316\u56FE\u5C42",status:"wait",menu:"layers"},{key:3,title:"\u5730\u56FE\u5BFC\u51FA\u5206\u4EAB",status:"wait",menu:"widgets"},{key:4,title:"\u7528\u6237\u6307\u5357",status:"wait",menu:"widgets"}],qe=[{title:"\u6DFB\u52A0\u6570\u636E\u96C6",key:"LITourAddDataset",target:function(){return document.getElementById("LITourAddDataset")}},{title:"\u6DFB\u52A0\u53EF\u89C6\u5316\u56FE\u5C42",key:"LITourAddVisualLayer",target:function(){return document.getElementById("LITourAddVisualLayer")}},{title:"\u5B8C\u6210\u5730\u56FE\u5236\u4F5C\uFF0C\u5BFC\u51FA\u5206\u4EAB",key:"LITourExportApp",target:function(){return document.getElementById("LITourExportApp")}},{title:"\u9605\u8BFB\u624B\u518C\uFF0C\u5FEB\u901F\u5165\u95E8",key:"LITourDocs",target:function(){return document.getElementById("LITourDocs")}}],Cn=function(){return(0,e.jsx)("svg",{width:"15px",height:"15px",viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:(0,e.jsx)("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,e.jsx)("path",{d:"M4.9678489,1.3826075 C8.31012853,-0.576268489 12.3192184,-0.389784816 15.3790084,1.53808248 C15.4935937,1.61192055 15.4928733,1.78214939 15.3736444,1.85395109 L14.0978957,2.62222925 C13.9886026,2.68804748 13.8520304,2.6948292 13.7386066,2.63646258 C13.1905076,2.36282194 12.6137116,2.14958565 12.010593,2.00071416 C10.970607,1.74569518 9.90840342,1.69271707 8.85335106,1.84565472 C7.76136852,2.00466142 6.72177749,2.37737642 5.76595952,2.9529867 C4.8081544,3.52979367 3.99373676,4.27359505 3.34100375,5.16528653 C2.71095499,6.0271462 2.25895212,6.99200586 1.99536933,8.03205673 C1.73178655,9.0721076 1.67339792,10.1341255 1.82105473,11.187951 C1.97142175,12.2778767 2.33903402,13.315133 2.90887125,14.265643 C3.47870848,15.2161529 4.21990448,16.0284306 5.1094904,16.6731857 C5.96854603,17.2985945 6.93155125,17.7455112 7.97153725,18.0005301 C9.01152326,18.2555491 10.0737268,18.3085272 11.1287792,18.1555896 C12.2207617,17.9965829 13.2603528,17.6238679 14.2161707,17.0482576 C15.1739759,16.4714506 15.9883935,15.7276492 16.6411265,14.8359578 C17.2711753,13.9740981 17.7231781,13.0092384 17.9867609,11.9691876 C18.1407455,11.3643753 18.2236826,10.7538363 18.2379463,10.141531 C18.2429514,10.0145396 18.3098682,9.89608148 18.4191613,9.83026326 L19.6949101,9.0619851 C19.8121518,8.99138009 19.9644417,9.06946342 19.9737082,9.20672633 C20.2394918,12.8576204 18.4818538,16.5304041 15.1196034,18.5552174 C10.3683304,21.4165096 4.21533345,19.8960401 1.38906036,15.1593382 C-1.43467549,10.4264989 0.189300038,4.18486864 4.9678489,1.3826075 Z M16.3466891,4.95062607 L17.7876947,5.02614597 C17.9874077,5.03661249 18.0919786,5.27522166 17.9665,5.43555412 L10.2347711,14.5486992 C9.81543005,15.0841339 9.00736079,15.0417848 8.64628512,14.4654502 L5.09928324,8.83771232 C4.99125133,8.6651421 5.12018635,8.43885722 5.31989928,8.44932373 L6.76090492,8.52484364 C7.07430061,8.54126801 7.36426878,8.71077624 7.5347935,8.98424731 L9.55980195,12.2018001 L15.5290147,5.32670623 C15.7270262,5.07569854 16.0302209,4.93404067 16.3466891,4.95062607 Z",fill:"#FFFFFF"})})})},et,tt,nt,at,ot,rt,it,st,lt,ct,ut,dt,pt,vt,mt,ft,yn=function(){var t=(0,b.Sr)(),a=t.antCls,l=t.colorBgContainer,o=t.colorTextSecondary,n=t.colorText,f=t.colorPrimary;return{noviceTour:(0,d.iv)(et||(et=u()([` + position: fixed; + right: 40px; + bottom: 10px; + border-radius: 20px; + `]))),tourPopover:(0,d.iv)(tt||(tt=u()([` + z-index: 2; + `]))),tourContent:(0,d.iv)(nt||(nt=u()([` + width: 180px; + `]))),tourContentHeader:(0,d.iv)(at||(at=u()([` + font-weight: 500; + font-size: 16px; + line-height: 22px; + `]))),tourContentMenu:(0,d.iv)(ot||(ot=u()([` + padding-top: 10px; + `]))),tourContentMenuItem:(0,d.iv)(rt||(rt=u()([` + display: flex; + align-items: center; + justify-content: space-between; + margin-bottom: 10px; + padding: 5px; + font-size: 12px; + border-radius: 5px; + + &:hover { + background-color: `,`; + } + `])),l),tourContentMenuItemSelected:(0,d.iv)(it||(it=u()([` + background-color: `,`; + `])),l),tourContentMenuItemHeader:(0,d.iv)(st||(st=u()([` + display: flex; + align-items: center; + height: 20px; + color: `,`; + line-height: 20px; + cursor: pointer; + `])),o),tourContentMenuItemHeaderSelected:(0,d.iv)(lt||(lt=u()([` + color: `,`; + `])),n),tourContentMenuItemHeaderIndex:(0,d.iv)(ct||(ct=u()([` + width: 20px; + margin-right: 5px; + text-align: center; + border-radius: 50%; + `]))),tourContentMenuItemHeaderIndexSelected:(0,d.iv)(ut||(ut=u()([` + color: `,`; + background-color: `,`; + `])),n,f),tourContentMenuItemNext:(0,d.iv)(dt||(dt=u()([` + height: 20px; + color: `,`; + line-height: 20px; + cursor: pointer; + `])),f),tourContentBtn:(0,d.iv)(pt||(pt=u()([` + width: 48px; + color: `,`; + font-size: 12px; + border-bottom: 1px solid `,`; + cursor: pointer; + &:hover { + color: `,`; + border-bottom: 1px solid `,`; + } + `])),o,o,f,f),tourContentTour:(0,d.iv)(vt||(vt=u()([` + width: 396px; + `,`-tour-content { + width: 350px; + } + `])),a),clearBtn:(0,d.iv)(mt||(mt=u()([` + display: flex; + margin: 20px 0 10px; + `]))),noTour:(0,d.iv)(ft||(ft=u()([` + color: `,`; + font-size: 12px; + cursor: pointer; + &:hover { + color: `,`; + } + `])),o,f)}},xn=yn,An="_LI_VNOVICE_TOUR_TIME",gt=2,bn=function(){var t=(0,b.F8)("editor-novice-tour"),a=xn(),l=(0,O.sZ)(),o=l.updateState,n=(0,m.useState)(hn),f=x()(n,2),p=f[0],C=f[1],R=(0,m.useState)(!0),_=x()(R,2),S=_[0],H=_[1],K=(0,m.useState)(!0),h=x()(K,2),E=h[0],c=h[1],Q=(0,m.useState)(!1),V=x()(Q,2),N=V[0],B=V[1],w=(0,m.useState)(!1),Y=x()(w,2),U=Y[0],k=Y[1],T=(0,gn.Z)(An,{defaultValue:0}),G=x()(T,2),I=G[0],F=G[1],le=(0,m.useState)(!0),J=x()(le,2),z=J[0],A=J[1];if((0,m.useEffect)(function(){(0,M.isNumber)(I)&&(I>gt||F(I+1))},[]),(0,M.isNumber)(I)&&I>gt&&E)return null;var ae=function(){o(function(y){y.activeNavMenuKey=p[0].menu,y.collapsed&&(y.collapsed=!1)})},P=function(y,Z,oe){switch(Z){case"pre":return oe.map(function(D){return D.key===y?j()(j()({},D),{},{status:"finish"}):D.key===y-1?(o(function(X){X.activeNavMenuKey=D.menu,X.collapsed&&(X.collapsed=!1)}),j()(j()({},D),{},{status:"process"})):D});case"next":return oe.map(function(D){return D.key===y?j()(j()({},D),{},{status:"finish"}):D.key===y+1?(o(function(X){X.activeNavMenuKey=D.menu,X.collapsed&&(X.collapsed=!1)}),j()(j()({},D),{},{status:"process"})):D});case"now":default:return oe.map(function(D){return D.key===y?(o(function(X){X.activeNavMenuKey=D.menu,X.collapsed&&(X.collapsed=!1)}),j()(j()({},D),{},{status:"process"})):j()(j()({},D),{},{status:D.status==="process"?"finish":D.status})})}},L=function(y,Z){var oe=P(y,Z,p);C(oe),B(!1),H(!0)},q=function(){var y=p[0];o(function(Z){Z.activeNavMenuKey=y.menu,Z.collapsed&&(Z.collapsed=!1)}),H(!1),c(!1),U&&F(Number.MAX_SAFE_INTEGER)},te=function(){if(A(!z),z)H(!1);else{var y,Z=(y=p.find(function(oe){return oe.status==="process"}))===null||y===void 0?void 0:y.key;Z&&L(Z,"now")}},ne=qe.map(function(g,y){return j()(j()({},g),{},{prevButtonProps:{onClick:function(){L(p[y].key,"pre")}},nextButtonProps:{children:y+1===qe.length?"\u5F00\u59CB\u4F7F\u7528":"\u4E0B\u4E00\u6B65",onClick:function(){y!==p.length-1?L(p[y].key,"next"):ae()}}})}),Ln=(0,e.jsxs)("div",{className:r()("".concat(t,"__tour-content"),a.tourContent),children:[N?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:r()("".concat(t,"__tour-content__header"),a.tourContentHeader),children:"\u8DF3\u8FC7\u5206\u6790\u64CD\u4F5C\u5F15\u5BFC\uFF1F"}),(0,e.jsx)("div",{className:r()("".concat(t,"__tour-content__clear-btn"),a.clearBtn),children:(0,e.jsxs)(s.Space,{children:[(0,e.jsx)(s.Button,{type:"primary",size:"small",onClick:function(){return q()},children:"\u5F00\u59CB\u4F7F\u7528"}),(0,e.jsx)(s.Button,{size:"small",onClick:function(){return B(!1)},children:"\u53D6\u6D88"})]})}),(0,e.jsx)("div",{className:r()("".concat(t,"__tour-content__no-tour"),a.noTour),children:(0,e.jsx)(s.Checkbox,{onChange:function(){return k(!U)},className:r()("".concat(t,"__tour-content__no-tour"),a.noTour),children:"\u4EE5\u540E\u4E0D\u9700\u8981\u64CD\u4F5C\u5F15\u5BFC"})})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:r()("".concat(t,"__tour-content__header"),a.tourContentHeader),children:"\u8BF7\u5F00\u59CB\u5206\u6790\u64CD\u4F5C\u5427"}),(0,e.jsx)("div",{className:r()("".concat(t,"__tour-content__menu"),a.tourContentMenu),children:p.map(function(g){return(0,e.jsxs)("div",{className:r()("".concat(t,"__tour-content__menu__item"),a.tourContentMenuItem,["process"].includes(g.status)&&"".concat(t,"__tour-content__menu__item_selected"),["process"].includes(g.status)&&a.tourContentMenuItemSelected),children:[(0,e.jsxs)("div",{className:r()("".concat(t,"__tour-content__menu__item-header"),a.tourContentMenuItemHeader),onClick:function(){return L(g.key,"now")},children:[(0,e.jsx)("div",{className:r()("".concat(t,"__tour-content__menu__item-header-index"),a.tourContentMenuItemHeaderIndex,["process","finish"].includes(g.status)&&"".concat(t,"__tour-content__menu__item-header-index_selected"),["process","finish"].includes(g.status)&&a.tourContentMenuItemHeaderIndexSelected),children:g.key}),(0,e.jsx)("div",{className:r()("".concat(t,"__tour-content__menu__item-header-title"),["process","finish"].includes(g.status)&&"".concat(t,"__tour-content__menu__item-header-title_selected")),children:g.title})]}),g.status==="process"&&g.key!==4&&(0,e.jsx)("div",{className:r()("".concat(t,"__tour-content__menu__item-next"),a.tourContentMenuItemNext),onClick:function(){return L(g.key,"next")},children:(0,e.jsx)(ee.ArrowRightOutlined,{})})]},g.key)})}),(0,e.jsx)("div",{className:r()("".concat(t,"__tour-content__btn"),a.tourContentBtn),onClick:function(){return B(!0)},children:"\u8DF3\u8FC7\u5F15\u5BFC"})]}),(0,e.jsx)(s.Tour,{open:S,current:p.findIndex(function(g){return g.status==="process"}),onClose:function(){return H(!1)},steps:ne,rootClassName:r()("".concat(t,"__tour-content__tour"),a.tourContentTour)})]});return E&&(0,e.jsx)(s.Popover,{overlayClassName:r()("".concat(t,"__popover"),a.tourPopover),placement:"topRight",open:z,content:Ln,trigger:"click",arrow:!1,destroyTooltipOnHide:!0,children:(0,e.jsx)(s.Button,{className:r()(t,a.noviceTour),type:"primary",icon:(0,e.jsx)(he(),{component:Cn}),onClick:te,children:"\u64CD\u4F5C\u5F15\u5BFC"})})},Sn=bn,jn=(0,O.BP)({version:"v0.1",component:Sn,metadata:{name:"NoviceTour",displayName:"\u65B0\u624B\u5F15\u5BFC",description:"\u7528\u4E8E\u5F15\u5BFC\u5206\u6790\u64CD\u4F5C"},container:{type:"SideNav",slot:"bottom"}}),_n=function(t){var a=(0,Ce.UO)(),l=a.id,o=l===void 0?"":l;return(0,e.jsx)(s.Tooltip,{placement:"right",title:"\u9884\u89C8",children:(0,e.jsx)(Ce.rU,{to:"/app/".concat(o,"?type=project"),target:"_blank",children:(0,e.jsx)(s.Button,{type:"text",size:"middle",shape:"circle",id:"LITourPreviewApp",icon:(0,e.jsx)(ee.DesktopOutlined,{size:18}),onClick:function(){(0,Ne.lF)(11)}})})})},Nn=_n,Tn=(0,O.BP)({version:"v0.1",component:Nn,metadata:{name:"Preview",displayName:"\u9884\u89C8",description:"\u9884\u89C8\u7F16\u8F91\u7ED3\u679C"},container:{type:"SideNav",slot:"bottom"}}),Dn=[$.rd,$.G9,$.kk,$.I6,$.u0,jn],kn=[Pe,De,Xe],Fn=[Pe,$.Sf,$.a,De,fn,Tn,$.sP,Xe,Ot,$.gt]},71022:function(ht,xe,i){i.d(xe,{Sr:function(){return s},JV:function(){return be},F8:function(){return je}});var $=i(69024),O=i.n($),ce=i(87363),Ae=i(40795),be=function(M){var m=(0,Ae.lr)(),b=O()(m,2),W=b[0],ie=b[1],u=W.get("nav")||"datasets",d=(0,ce.useState)(u),de=O()(d,2),me=de[0],fe=de[1];return(0,ce.useEffect)(function(){var pe=function(ge){W.set("nav",ge),ie(W),fe(ge)};return M.on("select-nav-menu",pe),function(){M.off("select-nav-menu",pe)}},[M,W,ie]),me},re=i(91055),ve=i.n(re),ue=i(81821),Se=ue.ConfigProvider.ConfigContext,x=function(){return(0,ce.useContext)(Se)},s=function(){var M=x(),m=M.getPrefixCls,b=m(),W=ue.theme.useToken,ie=W(),u=ie.token;return ve()(ve()({},u),{},{antCls:".".concat(b)})},je=function(M,m){var b,W=(b=m==null?void 0:m.prefixCls)!==null&&b!==void 0?b:"li-";return"".concat(W).concat(M!=null?M:"")}}}]); diff --git a/831.797bc60f.async.js b/831.797bc60f.async.js new file mode 100644 index 00000000..2d191582 --- /dev/null +++ b/831.797bc60f.async.js @@ -0,0 +1,97 @@ +(self.webpackChunk_antv_li_website=self.webpackChunk_antv_li_website||[]).push([[831],{65658:function(u,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};e.default=t},56873:function(u,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t={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"};e.default=t},24043:function(u,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t={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"};e.default=t},46944:function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;const r=a(t(70593));function a(l){return l&&l.__esModule?l:{default:l}}const o=r;e.default=o,u.exports=o},90116:function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;const r=a(t(85190));function a(l){return l&&l.__esModule?l:{default:l}}const o=r;e.default=o,u.exports=o},38432:function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;const r=a(t(78988));function a(l){return l&&l.__esModule?l:{default:l}}const o=r;e.default=o,u.exports=o},97683:function(u,e,t){"use client";"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return S}});var r=C(t(87363)),a=i(t(90005)),o=t(71763),l=i(t(35714)),g=i(t(81052)),c=t(41838),p=t(86641);function m(f,b){(b==null||b>f.length)&&(b=f.length);for(var P=0,R=new Array(b);P=0)&&Object.prototype.propertyIsEnumerable.call(f,R)&&(P[R]=f[R])}return P}function M(f,b){if(f==null)return{};var P={},R=Object.keys(f),A,D;for(D=0;D=0)&&(P[A]=f[A]);return P}function T(f,b){return j(f)||n(f,b)||_(f,b)||v()}function _(f,b){if(f){if(typeof f=="string")return m(f,b);var P=Object.prototype.toString.call(f).slice(8,-1);if(P==="Object"&&f.constructor&&(P=f.constructor.name),P==="Map"||P==="Set")return Array.from(P);if(P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P))return m(f,b)}}(0,c.setTwoToneColor)(o.blue.primary);var d=r.forwardRef(function(f,b){var P=f.className,R=f.icon,A=f.spin,D=f.rotate,E=f.tabIndex,z=f.onClick,L=f.twoToneColor,W=h(f,["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"]),F=r.useContext(l.default),V=F.prefixCls,G=V===void 0?"anticon":V,Q=F.rootClassName,q,Z=(0,a.default)(Q,G,(q={},O(q,"".concat(G,"-").concat(R.name),!!R.name),O(q,"".concat(G,"-spin"),!!A||R.name==="loading"),q),P),te=E;te===void 0&&z&&(te=-1);var I=D?{msTransform:"rotate(".concat(D,"deg)"),transform:"rotate(".concat(D,"deg)")}:void 0,B=T((0,p.normalizeTwoToneColors)(L),2),k=B[0],H=B[1];return r.createElement("span",x(s({role:"img","aria-label":R.name},W),{ref:b,tabIndex:te,onClick:z,className:Z}),r.createElement(g.default,{icon:R,primaryColor:k,secondaryColor:H,style:I}))});d.displayName="AntdIcon",d.getTwoToneColor=c.getTwoToneColor,d.setTwoToneColor=c.setTwoToneColor;var S=d},35714:function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});var r=t(87363),a=(0,r.createContext)({}),o=a},81052:function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return v}});var r=g(t(87363)),a=t(86641);function o(s,y,x){return y in s?Object.defineProperty(s,y,{value:x,enumerable:!0,configurable:!0,writable:!0}):s[y]=x,s}function l(s){if(typeof WeakMap!="function")return null;var y=new WeakMap,x=new WeakMap;return(l=function(h){return h?x:y})(s)}function g(s,y){if(!y&&s&&s.__esModule)return s;if(s===null||typeof s!="object"&&typeof s!="function")return{default:s};var x=l(y);if(x&&x.has(s))return x.get(s);var h={__proto__:null},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in s)if(T!=="default"&&Object.prototype.hasOwnProperty.call(s,T)){var _=M?Object.getOwnPropertyDescriptor(s,T):null;_&&(_.get||_.set)?Object.defineProperty(h,T,_):h[T]=s[T]}return h.default=s,x&&x.set(s,h),h}function c(s){for(var y=1;y=0)&&Object.prototype.propertyIsEnumerable.call(s,h)&&(x[h]=s[h])}return x}function O(s,y){if(s==null)return{};var x={},h=Object.keys(s),M,T;for(T=0;T=0)&&(x[M]=s[M]);return x}var i={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function w(s){var y=s.primaryColor,x=s.secondaryColor;i.primaryColor=y,i.secondaryColor=x||(0,a.getSecondaryColor)(y),i.calculated=!!x}function C(){return c({},i)}var n=function(s){var y=s.icon,x=s.className,h=s.onClick,M=s.style,T=s.primaryColor,_=s.secondaryColor,d=j(s,["icon","className","onClick","style","primaryColor","secondaryColor"]),S=r.useRef(),f=i;if(T&&(f={primaryColor:T,secondaryColor:_||(0,a.getSecondaryColor)(T)}),(0,a.useInsertStyles)(S),(0,a.warning)((0,a.isIconDefinition)(y),"icon should be icon definiton, but got ".concat(y)),!(0,a.isIconDefinition)(y))return null;var b=y;return b&&typeof b.icon=="function"&&(b=m(c({},b),{icon:b.icon(f.primaryColor,f.secondaryColor)})),(0,a.generate)(b.icon,"svg-".concat(b.name),m(c({className:x,onClick:h,style:M,"data-icon":b.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{ref:S}))};n.displayName="IconReact",n.getTwoToneColors=C,n.setTwoToneColors=w;var v=n},41838:function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function r(C,n){for(var v in n)Object.defineProperty(C,v,{enumerable:!0,get:n[v]})}r(e,{getTwoToneColor:function(){return w},setTwoToneColor:function(){return i}});var a=c(t(81052)),o=t(86641);function l(C,n){(n==null||n>C.length)&&(n=C.length);for(var v=0,s=new Array(n);v0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(d).reduce(function(S,f){var b=d[f];switch(f){case"class":S.className=b,delete S.class;break;default:delete S[f],S[C(f)]=b}return S},{})}function y(d,S,f){return f?c.default.createElement(d.tag,w({key:S},s(d.attrs),f),(d.children||[]).map(function(b,P){return y(b,"".concat(S,"-").concat(d.tag,"-").concat(P))})):c.default.createElement(d.tag,w({key:S},s(d.attrs)),(d.children||[]).map(function(b,P){return y(b,"".concat(S,"-").concat(d.tag,"-").concat(P))}))}function x(d){return(0,a.generate)(d)[0]}function h(d){return d?Array.isArray(d)?d:[d]:[]}var M={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},T=` +.anticon { + display: inline-flex; + align-items: center; + 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); + } +} +`,_=function(d){var S=(0,c.useContext)(p.default),f=S.csp,b=S.prefixCls,P=T;b&&(P=P.replace(/anticon/g,b)),(0,c.useEffect)(function(){var R=d.current,A=(0,l.getShadowRoot)(R);(0,o.updateCSS)(P,"@ant-design-icons",{prepend:!0,csp:f,attachTo:A})},[])}},94834:function(u,e,t){"use strict";t.r(e),t.d(e,{TinyColor:function(){return r.C},bounds:function(){return T},convertDecimalToHex:function(){return c.Wl},convertHexToDecimal:function(){return c.T6},default:function(){return _},fromRatio:function(){return j},hslToRgb:function(){return c.ve},hsvToRgb:function(){return c.WE},inputToRGB:function(){return i.uA},isReadable:function(){return l},isValidCSSUnit:function(){return i.ky},legacyRandom:function(){return O},mostReadable:function(){return g},names:function(){return a.R},numberInputToObject:function(){return c.Yt},parseIntFromHex:function(){return c.VD},random:function(){return w},readability:function(){return o},rgbToHex:function(){return c.vq},rgbToHsl:function(){return c.lC},rgbToHsv:function(){return c.py},rgbToRgb:function(){return c.rW},rgbaToArgbHex:function(){return c.GC},rgbaToHex:function(){return c.s},stringInputToObject:function(){return i.uz},tinycolor:function(){return r.H},toMsFilter:function(){return p}});var r=t(68645),a=t(97649);function o(d,S){var f=new r.C(d),b=new r.C(S);return(Math.max(f.getLuminance(),b.getLuminance())+.05)/(Math.min(f.getLuminance(),b.getLuminance())+.05)}function l(d,S,f){var b,P;f===void 0&&(f={level:"AA",size:"small"});var R=o(d,S);switch(((b=f.level)!==null&&b!==void 0?b:"AA")+((P=f.size)!==null&&P!==void 0?P:"small")){case"AAsmall":case"AAAlarge":return R>=4.5;case"AAlarge":return R>=3;case"AAAsmall":return R>=7;default:return!1}}function g(d,S,f){f===void 0&&(f={includeFallbackColors:!1,level:"AA",size:"small"});for(var b=null,P=0,R=f.includeFallbackColors,A=f.level,D=f.size,E=0,z=S;EP&&(P=W,b=new r.C(L))}return l(d,b,{level:A,size:D})||!R?b:(f.includeFallbackColors=!1,g(d,["#fff","#000"],f))}var c=t(47845);function p(d,S){var f=new r.C(d),b="#"+(0,c.GC)(f.r,f.g,f.b,f.a),P=b,R=f.gradientType?"GradientType = 1, ":"";if(S){var A=new r.C(S);P="#"+(0,c.GC)(A.r,A.g,A.b,A.a)}return"progid:DXImageTransform.Microsoft.gradient(".concat(R,"startColorstr=").concat(b,",endColorstr=").concat(P,")")}var m=t(39057);function j(d,S){var f={r:(0,m.JX)(d.r),g:(0,m.JX)(d.g),b:(0,m.JX)(d.b)};return d.a!==void 0&&(f.a=Number(d.a)),new r.C(f,S)}function O(){return new r.C({r:Math.random(),g:Math.random(),b:Math.random()})}var i=t(13144);function w(d){if(d===void 0&&(d={}),d.count!==void 0&&d.count!==null){var S=d.count,f=[];for(d.count=void 0;S>f.length;)d.count=null,d.seed&&(d.seed+=1),f.push(w(d));return d.count=S,f}var b=C(d.hue,d.seed),P=n(b,d),R=v(b,P,d),A={h:b,s:P,v:R};return d.alpha!==void 0&&(A.a=d.alpha),new r.C(A)}function C(d,S){var f=y(d),b=h(f,S);return b<0&&(b=360+b),b}function n(d,S){if(S.hue==="monochrome")return 0;if(S.luminosity==="random")return h([0,100],S.seed);var f=x(d).saturationRange,b=f[0],P=f[1];switch(S.luminosity){case"bright":b=55;break;case"dark":b=P-10;break;case"light":P=55;break;default:break}return h([b,P],S.seed)}function v(d,S,f){var b=s(d,S),P=100;switch(f.luminosity){case"dark":P=b+20;break;case"light":b=(P+b)/2;break;case"random":b=0,P=100;break;default:break}return h([b,P],f.seed)}function s(d,S){for(var f=x(d).lowerBounds,b=0;b=P&&S<=A){var E=(D-R)/(A-P),z=R-E*P;return E*S+z}}return 0}function y(d){var S=parseInt(d,10);if(!Number.isNaN(S)&&S<360&&S>0)return[S,S];if(typeof d=="string"){var f=T.find(function(A){return A.name===d});if(f){var b=M(f);if(b.hueRange)return b.hueRange}var P=new r.C(d);if(P.isValid){var R=P.toHsv().h;return[R,R]}}return[0,360]}function x(d){d>=334&&d<=360&&(d-=360);for(var S=0,f=T;S=P.hueRange[0]&&d<=P.hueRange[1])return P}throw Error("Color not found")}function h(d,S){if(S===void 0)return Math.floor(d[0]+Math.random()*(d[1]+1-d[0]));var f=d[1]||1,b=d[0]||0;S=(S*9301+49297)%233280;var P=S/233280;return Math.floor(b+P*(f-b))}function M(d){var S=d.lowerBounds[0][0],f=d.lowerBounds[d.lowerBounds.length-1][0],b=d.lowerBounds[d.lowerBounds.length-1][1],P=d.lowerBounds[0][1];return{name:d.name,hueRange:d.hueRange,lowerBounds:d.lowerBounds,saturationRange:[S,f],brightnessRange:[b,P]}}var T=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}],_=r.H},39216:function(u,e,t){"use strict";var r=t(87363),a=t.n(r),o=t(34182),l=t(24252),g={restoreOnUnmount:!1};function c(p,m){m===void 0&&(m=g);var j=(0,r.useRef)(l.Z?document.title:"");(0,r.useEffect)(function(){document.title=p},[p]),(0,o.Z)(function(){m.restoreOnUnmount&&(document.title=j.current)})}e.Z=c},97797:function(u,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;const t=a=>!isNaN(parseFloat(a))&&isFinite(a);var r=e.default=t},26509:function(u,e,t){"use strict";var r=t(36178).default;Object.defineProperty(e,"__esModule",{value:!0}),e.devUseWarning=e.default=e.WarningContext=void 0,e.noop=l,e.resetWarned=c;var a=r(t(87363)),o=r(t(55620));function l(){}let g=null;function c(){g=null,(0,o.resetWarned)()}let p=l;const m=e.WarningContext=a.createContext({}),j=e.devUseWarning=()=>{const i=()=>{};return i.deprecated=l,i};var O=e.default=p},85270:function(u,e,t){"use strict";var r=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(t(22313)),o=e.default=a.default},37648:function(u,e,t){"use strict";"use client";var r=t(36178).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.DisabledContextProvider=void 0;var a=r(t(87363));const o=a.createContext(!1),l=c=>{let{children:p,disabled:m}=c;const j=a.useContext(o);return a.createElement(o.Provider,{value:m!=null?m:j},p)};e.DisabledContextProvider=l;var g=e.default=o},75253:function(u,e,t){"use strict";"use client";var r=t(36178).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=g;var a=r(t(87363)),o=t(6958),l=t(1367);function g(c){const{children:p}=c,[,m]=(0,l.useToken)(),{motion:j}=m,O=a.useRef(!1);return O.current=O.current||j===!1,O.current?a.createElement(o.Provider,{motion:j},p):p}},25220:function(u,e,t){"use strict";"use client";var r=t(36178).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(t(87363)),o=t(26509);const l=null;var g=e.default=()=>null},86258:function(u,e,t){"use strict";"use client";var r=t(36178).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.SizeContextProvider=void 0;var a=r(t(87363));const o=a.createContext(void 0),l=c=>{let{children:p,size:m}=c;const j=a.useContext(o);return a.createElement(o.Provider,{value:m||j},p)};e.SizeContextProvider=l;var g=e.default=o},87869:function(u,e,t){"use strict";var r=t(36178).default;Object.defineProperty(e,"__esModule",{value:!0}),e.defaultIconPrefixCls=e.ConfigContext=e.ConfigConsumer=void 0;var a=r(t(87363));const o=e.defaultIconPrefixCls="anticon",l=(p,m)=>m||(p?`ant-${p}`:"ant"),g=e.ConfigContext=a.createContext({getPrefixCls:l,iconPrefixCls:o}),{Consumer:c}=g;e.ConfigConsumer=c},90010:function(u,e,t){"use strict";var r=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),e.getStyle=m,e.registerTheme=j;var a=t(71763),o=t(94834),l=r(t(14363)),g=t(6625),c=r(t(26509));const p=`-ant-${Date.now()}-${Math.random()}`;function m(O,i){const w={},C=(s,y)=>{let x=s.clone();return x=(y==null?void 0:y(x))||x,x.toRgbString()},n=(s,y)=>{const x=new o.TinyColor(s),h=(0,a.generate)(x.toRgbString());w[`${y}-color`]=C(x),w[`${y}-color-disabled`]=h[1],w[`${y}-color-hover`]=h[4],w[`${y}-color-active`]=h[6],w[`${y}-color-outline`]=x.clone().setAlpha(.2).toRgbString(),w[`${y}-color-deprecated-bg`]=h[0],w[`${y}-color-deprecated-border`]=h[2]};if(i.primaryColor){n(i.primaryColor,"primary");const s=new o.TinyColor(i.primaryColor),y=(0,a.generate)(s.toRgbString());y.forEach((h,M)=>{w[`primary-${M+1}`]=h}),w["primary-color-deprecated-l-35"]=C(s,h=>h.lighten(35)),w["primary-color-deprecated-l-20"]=C(s,h=>h.lighten(20)),w["primary-color-deprecated-t-20"]=C(s,h=>h.tint(20)),w["primary-color-deprecated-t-50"]=C(s,h=>h.tint(50)),w["primary-color-deprecated-f-12"]=C(s,h=>h.setAlpha(h.getAlpha()*.12));const x=new o.TinyColor(y[0]);w["primary-color-active-deprecated-f-30"]=C(x,h=>h.setAlpha(h.getAlpha()*.3)),w["primary-color-active-deprecated-d-02"]=C(x,h=>h.darken(2))}return i.successColor&&n(i.successColor,"success"),i.warningColor&&n(i.warningColor,"warning"),i.errorColor&&n(i.errorColor,"error"),i.infoColor&&n(i.infoColor,"info"),` + :root { + ${Object.keys(w).map(s=>`--${O}-${s}: ${w[s]};`).join(` +`)} + } + `.trim()}function j(O,i){const w=m(O,i);(0,l.default)()&&(0,g.updateCSS)(w,`${p}-dynamic-theme`)}},23181:function(u,e,t){"use strict";var r=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=t(87363),o=r(t(37648)),l=r(t(86258));function g(){const p=(0,a.useContext)(o.default),m=(0,a.useContext)(l.default);return{componentDisabled:p,componentSize:m}}var c=e.default=g},78461:function(u,e,t){"use strict";var r=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=p;var a=r(t(90742)),o=r(t(19765)),l=t(26509),g=t(1367),c=r(t(87758));function p(m,j,O){var i,w;const C=(0,l.devUseWarning)("ConfigProvider"),n=m||{},v=n.inherit===!1||!j?Object.assign(Object.assign({},g.defaultConfig),{hashed:(i=j==null?void 0:j.hashed)!==null&&i!==void 0?i:g.defaultConfig.hashed,cssVar:j==null?void 0:j.cssVar}):j,s=(0,c.default)();return(0,a.default)(()=>{var y,x;if(!m)return j;const h=Object.assign({},v.components);Object.keys(m.components||{}).forEach(_=>{h[_]=Object.assign(Object.assign({},h[_]),m.components[_])});const M=`css-var-${s.replace(/:/g,"")}`,T=((y=n.cssVar)!==null&&y!==void 0?y:v.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:O==null?void 0:O.prefixCls},typeof v.cssVar=="object"?v.cssVar:{}),typeof n.cssVar=="object"?n.cssVar:{}),{key:typeof n.cssVar=="object"&&((x=n.cssVar)===null||x===void 0?void 0:x.key)||M});return Object.assign(Object.assign(Object.assign({},v),n),{token:Object.assign(Object.assign({},v.token),n.token),components:h,cssVar:T})},[n,v],(y,x)=>y.some((h,M)=>{const T=x[M];return!(0,o.default)(h,T,!0)}))}},87758:function(u,e,t){"use strict";var r=t(36178).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(t(87363));const o=Object.assign({},a),{useId:l}=o,c=typeof l=="undefined"?()=>"":l;var p=e.default=c},64222:function(u,e,t){"use strict";"use client";var r=t(73203).default,a=t(36178).default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return v.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return v.ConfigContext}}),e.default=e.configConsumerProps=void 0,Object.defineProperty(e,"defaultIconPrefixCls",{enumerable:!0,get:function(){return v.defaultIconPrefixCls}}),e.warnContext=e.globalConfig=e.defaultPrefixCls=void 0;var o=a(t(87363)),l=t(1499),g=r(t(35714)),c=r(t(90742)),p=t(59038),m=a(t(26509)),j=r(t(3090)),O=a(t(98695)),i=r(t(19776)),w=r(t(75183)),C=t(25727),n=r(t(46190)),v=t(87869),s=t(90010),y=t(37648),x=r(t(23181)),h=r(t(78461)),M=r(t(75253)),T=r(t(25220)),_=a(t(86258)),d=r(t(51482)),S=function(I,B){var k={};for(var H in I)Object.prototype.hasOwnProperty.call(I,H)&&B.indexOf(H)<0&&(k[H]=I[H]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,H=Object.getOwnPropertySymbols(I);XB.endsWith("Color"))}const G=I=>{const{prefixCls:B,iconPrefixCls:k,theme:H,holderRender:X}=I;B!==void 0&&(D=B),k!==void 0&&(E=k),"holderRender"in I&&(L=X),H&&(V(H)?(0,s.registerTheme)(W(),H):z=H)},Q=()=>({getPrefixCls:(I,B)=>B||(I?`${W()}-${I}`:W()),getIconPrefixCls:F,getRootPrefixCls:()=>D||W(),getTheme:()=>z,holderRender:L});e.globalConfig=Q;const q=I=>{const{children:B,csp:k,autoInsertSpaceInButton:H,alert:X,anchor:ue,form:$,locale:N,componentSize:J,direction:ee,space:ce,virtual:Ce,dropdownMatchSelectWidth:ve,popupMatchSelectWidth:se,popupOverflow:pe,legacyLocale:ye,parentContext:ae,iconPrefixCls:we,theme:Oe,componentDisabled:Se,segmented:Te,statistic:Re,spin:_e,calendar:Ae,carousel:De,cascader:Ee,collapse:$e,typography:Ie,checkbox:ze,descriptions:He,divider:Le,drawer:Be,skeleton:We,steps:ke,image:Ne,layout:Fe,list:Xe,mentions:Ue,modal:Ve,progress:Ge,result:Ye,slider:Ke,breadcrumb:Qe,menu:Ze,pagination:Je,input:qe,textArea:et,empty:tt,badge:rt,radio:nt,rate:ot,switch:at,transfer:it,avatar:lt,message:ut,tag:ct,table:st,card:ft,tabs:dt,timeline:gt,timePicker:vt,upload:pt,notification:yt,tree:mt,colorPicker:ht,datePicker:bt,rangePicker:Ct,flex:Ot,wave:St,dropdown:Pt,warning:xt,tour:Mt,floatButtonGroup:jt}=I,Pe=o.useCallback((U,K)=>{const{prefixCls:re}=I;if(K)return K;const ne=re||ae.getPrefixCls("");return U?`${ne}-${U}`:ne},[ae.getPrefixCls,I.prefixCls]),fe=we||ae.iconPrefixCls||v.defaultIconPrefixCls,de=k||ae.csp;(0,d.default)(fe,de);const me=(0,h.default)(Oe,ae.theme,{prefixCls:Pe("")}),he={csp:de,autoInsertSpaceInButton:H,alert:X,anchor:ue,locale:N||ye,direction:ee,space:ce,virtual:Ce,popupMatchSelectWidth:se!=null?se:ve,popupOverflow:pe,getPrefixCls:Pe,iconPrefixCls:fe,theme:me,segmented:Te,statistic:Re,spin:_e,calendar:Ae,carousel:De,cascader:Ee,collapse:$e,typography:Ie,checkbox:ze,descriptions:He,divider:Le,drawer:Be,skeleton:We,steps:ke,image:Ne,input:qe,textArea:et,layout:Fe,list:Xe,mentions:Ue,modal:Ve,progress:Ge,result:Ye,slider:Ke,breadcrumb:Qe,menu:Ze,pagination:Je,empty:tt,badge:rt,radio:nt,rate:ot,switch:at,transfer:it,avatar:lt,message:ut,tag:ct,table:st,card:ft,tabs:dt,timeline:gt,timePicker:vt,upload:pt,notification:yt,tree:mt,colorPicker:ht,datePicker:bt,rangePicker:Ct,flex:Ot,wave:St,dropdown:Pt,warning:xt,tour:Mt,floatButtonGroup:jt},ie=Object.assign({},ae);Object.keys(he).forEach(U=>{he[U]!==void 0&&(ie[U]=he[U])}),R.forEach(U=>{const K=I[U];K&&(ie[U]=K)}),typeof H!="undefined"&&(ie.button=Object.assign({autoInsertSpace:H},ie.button));const le=(0,c.default)(()=>ie,ie,(U,K)=>{const re=Object.keys(U),ne=Object.keys(K);return re.length!==ne.length||re.some(ge=>U[ge]!==K[ge])}),wt=o.useMemo(()=>({prefixCls:fe,csp:de}),[fe,de]);let Y=o.createElement(o.Fragment,null,o.createElement(T.default,{dropdownMatchSelectWidth:ve}),B);const xe=o.useMemo(()=>{var U,K,re,ne;return(0,p.merge)(((U=w.default.Form)===null||U===void 0?void 0:U.defaultValidateMessages)||{},((re=(K=le.locale)===null||K===void 0?void 0:K.Form)===null||re===void 0?void 0:re.defaultValidateMessages)||{},((ne=le.form)===null||ne===void 0?void 0:ne.validateMessages)||{},($==null?void 0:$.validateMessages)||{})},[le,$==null?void 0:$.validateMessages]);Object.keys(xe).length>0&&(Y=o.createElement(j.default.Provider,{value:xe},Y)),N&&(Y=o.createElement(O.default,{locale:N,_ANT_MARK__:O.ANT_MARK},Y)),(fe||de)&&(Y=o.createElement(g.default.Provider,{value:wt},Y)),J&&(Y=o.createElement(_.SizeContextProvider,{size:J},Y)),Y=o.createElement(M.default,null,Y);const Tt=o.useMemo(()=>{const U=me||{},{algorithm:K,token:re,components:ne,cssVar:ge}=U,Rt=S(U,["algorithm","token","components","cssVar"]),Me=K&&(!Array.isArray(K)||K.length>0)?(0,l.createTheme)(K):C.defaultTheme,be={};Object.entries(ne||{}).forEach(_t=>{let[At,Dt]=_t;const oe=Object.assign({},Dt);"algorithm"in oe&&(oe.algorithm===!0?oe.theme=Me:(Array.isArray(oe.algorithm)||typeof oe.algorithm=="function")&&(oe.theme=(0,l.createTheme)(oe.algorithm)),delete oe.algorithm),be[At]=oe});const je=Object.assign(Object.assign({},n.default),re);return Object.assign(Object.assign({},Rt),{theme:Me,token:je,components:be,override:Object.assign({override:je},be),cssVar:ge})},[me]);return Oe&&(Y=o.createElement(C.DesignTokenContext.Provider,{value:Tt},Y)),le.warning&&(Y=o.createElement(m.WarningContext.Provider,{value:le.warning},Y)),Se!==void 0&&(Y=o.createElement(y.DisabledContextProvider,{disabled:Se},Y)),o.createElement(v.ConfigContext.Provider,{value:le},Y)},Z=I=>{const B=o.useContext(v.ConfigContext),k=o.useContext(i.default);return o.createElement(q,Object.assign({parentContext:B,legacyLocale:k},I))};Z.ConfigContext=v.ConfigContext,Z.SizeContext=_.default,Z.config=G,Z.useConfig=x.default,Object.defineProperty(Z,"SizeContext",{get:()=>_.default});var te=e.default=Z},51482:function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.useResetIconStyle}});var r=t(1367)},22313:function(u,e,t){"use strict";var r=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(t(91412)),o=r(t(14339));const l={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},a.default),timePickerLocale:Object.assign({},o.default)};var g=e.default=l},3090:function(u,e,t){"use strict";"use client";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(87363),a=e.default=(0,r.createContext)(void 0)},95288:function(u,e,t){"use strict";"use client";var r=t(73203).default,a=t(36178).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.SiderContext=void 0;var o=a(t(87363)),l=o,g=r(t(46944)),c=r(t(90116)),p=r(t(38432)),m=r(t(90005)),j=r(t(49811)),O=r(t(97797)),i=t(64222),w=t(56529),C=function(h,M){var T={};for(var _ in h)Object.prototype.hasOwnProperty.call(h,_)&&M.indexOf(_)<0&&(T[_]=h[_]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,_=Object.getOwnPropertySymbols(h);d<_.length;d++)M.indexOf(_[d])<0&&Object.prototype.propertyIsEnumerable.call(h,_[d])&&(T[_[d]]=h[_[d]]);return T};const n={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},v=e.SiderContext=l.createContext({}),s=(()=>{let h=0;return function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return h+=1,`${M}${h}`}})(),y=l.forwardRef((h,M)=>{const{prefixCls:T,className:_,trigger:d,children:S,defaultCollapsed:f=!1,theme:b="dark",style:P={},collapsible:R=!1,reverseArrow:A=!1,width:D=200,collapsedWidth:E=80,zeroWidthTriggerStyle:z,breakpoint:L,onCollapse:W,onBreakpoint:F}=h,V=C(h,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:G}=(0,o.useContext)(w.LayoutContext),[Q,q]=(0,o.useState)("collapsed"in h?h.collapsed:f),[Z,te]=(0,o.useState)(!1);(0,o.useEffect)(()=>{"collapsed"in h&&q(h.collapsed)},[h.collapsed]);const I=($,N)=>{"collapsed"in h||q($),W==null||W($,N)},B=(0,o.useRef)();B.current=$=>{te($.matches),F==null||F($.matches),Q!==$.matches&&I($.matches,"responsive")},(0,o.useEffect)(()=>{function $(J){return B.current(J)}let N;if(typeof window!="undefined"){const{matchMedia:J}=window;if(J&&L&&L in n){N=J(`screen and (max-width: ${n[L]})`);try{N.addEventListener("change",$)}catch(ee){N.addListener($)}$(N)}}return()=>{try{N==null||N.removeEventListener("change",$)}catch(J){N==null||N.removeListener($)}}},[L]),(0,o.useEffect)(()=>{const $=s("ant-sider-");return G.addSider($),()=>G.removeSider($)},[]);const k=()=>{I(!Q,"clickTrigger")},{getPrefixCls:H}=(0,o.useContext)(i.ConfigContext),X=()=>{const $=H("layout-sider",T),N=(0,j.default)(V,["collapsed"]),J=Q?E:D,ee=(0,O.default)(J)?`${J}px`:String(J),ce=parseFloat(String(E||0))===0?l.createElement("span",{onClick:k,className:(0,m.default)(`${$}-zero-width-trigger`,`${$}-zero-width-trigger-${A?"right":"left"}`),style:z},d||l.createElement(g.default,null)):null,se={expanded:A?l.createElement(p.default,null):l.createElement(c.default,null),collapsed:A?l.createElement(c.default,null):l.createElement(p.default,null)}[Q?"collapsed":"expanded"],pe=d!==null?ce||l.createElement("div",{className:`${$}-trigger`,onClick:k,style:{width:ee}},d||se):null,ye=Object.assign(Object.assign({},P),{flex:`0 0 ${ee}`,maxWidth:ee,minWidth:ee,width:ee}),ae=(0,m.default)($,`${$}-${b}`,{[`${$}-collapsed`]:!!Q,[`${$}-has-trigger`]:R&&d!==null&&!ce,[`${$}-below`]:!!Z,[`${$}-zero-width`]:parseFloat(ee)===0},_);return l.createElement("aside",Object.assign({className:ae},N,{style:ye,ref:M}),l.createElement("div",{className:`${$}-children`},S),R||Z&&ce?pe:null)},ue=l.useMemo(()=>({siderCollapsed:Q}),[Q]);return l.createElement(v.Provider,{value:ue},X())});var x=e.default=y},56529:function(u,e,t){"use strict";var r=t(36178).default;Object.defineProperty(e,"__esModule",{value:!0}),e.LayoutContext=void 0;var a=r(t(87363));const o=e.LayoutContext=a.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},18222:function(u,e,t){"use strict";var r=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var a=r(t(33590)),o=r(t(95288));function l(g,c,p){return typeof p=="boolean"?p:g.length?!0:(0,a.default)(c).some(j=>j.type===o.default)}},88198:function(u,e,t){"use strict";var r,a=t(36178).default,o=t(73203).default;r={value:!0},r=e.h4=r=e.VY=void 0;var l=o(t(9833)),g=a(t(87363)),c=o(t(90005)),p=o(t(49811)),m=t(64222),j=t(56529),O=o(t(18222)),i=o(t(63073)),w=function(T,_){var d={};for(var S in T)Object.prototype.hasOwnProperty.call(T,S)&&_.indexOf(S)<0&&(d[S]=T[S]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,S=Object.getOwnPropertySymbols(T);fg.forwardRef((P,R)=>g.createElement(f,Object.assign({ref:R,suffixCls:_,tagName:d},P)))}const n=g.forwardRef((T,_)=>{const{prefixCls:d,suffixCls:S,className:f,tagName:b}=T,P=w(T,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:R}=g.useContext(m.ConfigContext),A=R("layout",d),[D,E,z]=(0,i.default)(A),L=S?`${A}-${S}`:A;return D(g.createElement(b,Object.assign({className:(0,c.default)(d||L,f,E,z),ref:_},P)))}),v=g.forwardRef((T,_)=>{const{direction:d}=g.useContext(m.ConfigContext),[S,f]=g.useState([]),{prefixCls:b,className:P,rootClassName:R,children:A,hasSider:D,tagName:E,style:z}=T,L=w(T,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),W=(0,p.default)(L,["suffixCls"]),{getPrefixCls:F,layout:V}=g.useContext(m.ConfigContext),G=F("layout",b),Q=(0,O.default)(S,A,D),[q,Z,te]=(0,i.default)(G),I=(0,c.default)(G,{[`${G}-has-sider`]:Q,[`${G}-rtl`]:d==="rtl"},V==null?void 0:V.className,P,R,Z,te),B=g.useMemo(()=>({siderHook:{addSider:k=>{f(H=>[].concat((0,l.default)(H),[k]))},removeSider:k=>{f(H=>H.filter(X=>X!==k))}}}),[]);return q(g.createElement(j.LayoutContext.Provider,{value:B},g.createElement(E,Object.assign({ref:_,className:I,style:Object.assign(Object.assign({},V==null?void 0:V.style),z)},W),A)))}),s=C({tagName:"div",displayName:"Layout"})(v),y=e.h4=C({suffixCls:"header",tagName:"header",displayName:"Header"})(n),x=r=C({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(n),h=e.VY=C({suffixCls:"content",tagName:"main",displayName:"Content"})(n);var M=r=s},63073:function(u,e,t){"use strict";var r=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),e.prepareComponentToken=e.default=void 0;var a=t(1499),o=t(1367),l=r(t(86534));const g=m=>{const{antCls:j,componentCls:O,colorText:i,triggerColor:w,footerBg:C,triggerBg:n,headerHeight:v,headerPadding:s,headerColor:y,footerPadding:x,triggerHeight:h,zeroTriggerHeight:M,zeroTriggerWidth:T,motionDurationMid:_,motionDurationSlow:d,fontSize:S,borderRadius:f,bodyBg:b,headerBg:P,siderBg:R}=m;return{[O]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:b,"&, *":{boxSizing:"border-box"},[`&${O}-has-sider`]:{flexDirection:"row",[`> ${O}, > ${O}-content`]:{width:0}},[`${O}-header, &${O}-footer`]:{flex:"0 0 auto"},[`${O}-sider`]:{position:"relative",minWidth:0,background:R,transition:`all ${_}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${j}-menu${j}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:h},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:h,color:w,lineHeight:(0,a.unit)(h),textAlign:"center",background:n,cursor:"pointer",transition:`all ${_}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:v,insetInlineEnd:m.calc(T).mul(-1).equal(),zIndex:1,width:T,height:M,color:w,fontSize:m.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:R,borderStartStartRadius:0,borderStartEndRadius:f,borderEndEndRadius:f,borderEndStartRadius:0,cursor:"pointer",transition:`background ${d} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${d}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:m.calc(T).mul(-1).equal(),borderStartStartRadius:f,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:f}}}}},(0,l.default)(m)),{"&-rtl":{direction:"rtl"}}),[`${O}-header`]:{height:v,padding:s,color:y,lineHeight:(0,a.unit)(v),background:P,[`${j}-menu`]:{lineHeight:"inherit"}},[`${O}-footer`]:{padding:x,color:i,fontSize:S,background:C},[`${O}-content`]:{flex:"auto",color:i,minHeight:0}}},c=m=>{const{colorBgLayout:j,controlHeight:O,controlHeightLG:i,colorText:w,controlHeightSM:C,marginXXS:n,colorTextLightSolid:v,colorBgContainer:s}=m,y=i*1.25;return{colorBgHeader:"#001529",colorBgBody:j,colorBgTrigger:"#002140",bodyBg:j,headerBg:"#001529",headerHeight:O*2,headerPadding:`0 ${y}px`,headerColor:w,footerPadding:`${C}px ${y}px`,footerBg:j,siderBg:"#001529",triggerHeight:i+n*2,triggerBg:"#002140",triggerColor:v,zeroTriggerWidth:i,zeroTriggerHeight:i,lightSiderBg:s,lightTriggerBg:s,lightTriggerColor:w}};e.prepareComponentToken=c;var p=e.default=(0,o.genStyleHooks)("Layout",m=>[g(m)],c,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]})},86534:function(u,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;const t=a=>{const{componentCls:o,bodyBg:l,lightSiderBg:g,lightTriggerBg:c,lightTriggerColor:p}=a;return{[`${o}-sider-light`]:{background:g,[`${o}-sider-trigger`]:{color:p,background:c},[`${o}-sider-zero-width-trigger`]:{color:p,background:c,border:`1px solid ${l}`,borderInlineStart:0}}}};var r=e.default=t},19776:function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(87363);const a=(0,r.createContext)(void 0);var o=e.default=a},75183:function(u,e,t){"use strict";var r=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(t(51367)),o=r(t(85270)),l=r(t(22313)),g=r(t(14339));const c="${label} is not a valid ${type}",p={locale:"en",Pagination:a.default,DatePicker:l.default,TimePicker:g.default,Calendar:o.default,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:c,method:c,array:c,object:c,number:c,date:c,boolean:c,integer:c,float:c,regexp:c,email:c,url:c,hex:c},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty"}};var m=e.default=p},98695:function(u,e,t){"use strict";"use client";var r=t(73203).default,a=t(36178).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ANT_MARK=void 0,Object.defineProperty(e,"useLocale",{enumerable:!0,get:function(){return p.default}});var o=a(t(87363)),l=t(26509),g=t(33088),c=r(t(19776)),p=r(t(93138));const m=e.ANT_MARK="internalMark",j=i=>{const{locale:w={},children:C,_ANT_MARK__:n}=i;o.useEffect(()=>(0,g.changeConfirmLocale)(w&&w.Modal),[w]);const v=o.useMemo(()=>Object.assign(Object.assign({},w),{exist:!0}),[w]);return o.createElement(c.default.Provider,{value:v},C)};var O=e.default=j},93138:function(u,e,t){"use strict";var r=t(73203).default,a=t(36178).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(t(87363)),l=r(t(19776)),g=r(t(75183));const c=(m,j)=>{const O=o.useContext(l.default),i=o.useMemo(()=>{var C;const n=j||g.default[m],v=(C=O==null?void 0:O[m])!==null&&C!==void 0?C:{};return Object.assign(Object.assign({},typeof n=="function"?n():n),v||{})},[m,j,O]),w=o.useMemo(()=>{const C=O==null?void 0:O.locale;return O!=null&&O.exist&&!C?g.default.locale:C},[O]);return[i,w]};var p=e.default=c},33088:function(u,e,t){"use strict";var r=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),e.changeConfirmLocale=c,e.getConfirmLocale=p;var a=r(t(75183));let o=Object.assign({},a.default.Modal),l=[];const g=()=>l.reduce((m,j)=>Object.assign(Object.assign({},m),j),a.default.Modal);function c(m){if(m){const j=Object.assign({},m);return l.push(j),o=g(),()=>{l=l.filter(O=>O!==j),o=g()}}o=Object.assign({},a.default.Modal)}function p(){return o}},9631:function(u,e,t){"use strict";"use client";Object.defineProperty(e,"__esModule",{value:!0}),e.genLinkStyle=e.genFocusStyle=e.genFocusOutline=e.genCommonStyle=e.clearFix=void 0,Object.defineProperty(e,"operationUnit",{enumerable:!0,get:function(){return a.operationUnit}}),e.textEllipsis=e.resetIcon=e.resetComponent=void 0;var r=t(1499),a=t(59337);const o=e.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},l=function(i){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:i.colorText,fontSize:i.fontSize,lineHeight:i.lineHeight,listStyle:"none",fontFamily:w?"inherit":i.fontFamily}};e.resetComponent=l;const g=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}});e.resetIcon=g;const c=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});e.clearFix=c;const p=i=>({a:{color:i.colorLink,textDecoration:i.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${i.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:i.colorLinkHover},"&:active":{color:i.colorLinkActive},"&:active,\n &:hover":{textDecoration:i.linkHoverDecoration,outline:0},"&:focus":{textDecoration:i.linkFocusDecoration,outline:0},"&[disabled]":{color:i.colorTextDisabled,cursor:"not-allowed"}}});e.genLinkStyle=p;const m=(i,w,C,n)=>{const v=`[class^="${w}"], [class*=" ${w}"]`,s=C?`.${C}`:v,y={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let x={};return n!==!1&&(x={fontFamily:i.fontFamily,fontSize:i.fontSize}),{[s]:Object.assign(Object.assign(Object.assign({},x),y),{[v]:y})}};e.genCommonStyle=m;const j=i=>({outline:`${(0,r.unit)(i.lineWidthFocus)} solid ${i.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"});e.genFocusOutline=j;const O=i=>({"&:focus-visible":Object.assign({},j(i))});e.genFocusStyle=O},59337:function(u,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.operationUnit=void 0;const t=r=>({color:r.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${r.motionDurationSlow}`,"&:focus, &:hover":{color:r.colorLinkHover},"&:active":{color:r.colorLinkActive}});e.operationUnit=t},25727:function(u,e,t){"use strict";var r=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),e.defaultTheme=e.defaultConfig=e.DesignTokenContext=void 0;var a=r(t(87363)),o=t(1499),l=r(t(73919)),g=r(t(46190));const c=e.defaultTheme=(0,o.createTheme)(l.default),p=e.defaultConfig={token:g.default,override:{override:g.default},hashed:!0},m=e.DesignTokenContext=a.default.createContext(p)},67679:function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"PresetColors",{enumerable:!0,get:function(){return r.PresetColors}});var r=t(36419)},36419:function(u,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PresetColors=void 0;const t=e.PresetColors=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},1367:function(u,e,t){"use strict";var r=t(36178).default,a=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DesignTokenContext",{enumerable:!0,get:function(){return w.DesignTokenContext}}),Object.defineProperty(e,"PresetColors",{enumerable:!0,get:function(){return l.PresetColors}}),Object.defineProperty(e,"calc",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"defaultConfig",{enumerable:!0,get:function(){return w.defaultConfig}}),Object.defineProperty(e,"genComponentStyleHook",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"genPresetColor",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(e,"genStyleHooks",{enumerable:!0,get:function(){return m.genStyleHooks}}),Object.defineProperty(e,"genSubStyleComponent",{enumerable:!0,get:function(){return m.genSubStyleComponent}}),Object.defineProperty(e,"getLineHeight",{enumerable:!0,get:function(){return g.getLineHeight}}),Object.defineProperty(e,"mergeToken",{enumerable:!0,get:function(){return O.merge}}),Object.defineProperty(e,"statisticToken",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"useResetIconStyle",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"useStyleRegister",{enumerable:!0,get:function(){return o.useStyleRegister}}),Object.defineProperty(e,"useToken",{enumerable:!0,get:function(){return c.default}});var o=t(1499),l=t(67679),g=t(1512),c=a(t(67202)),p=a(t(32962)),m=r(t(5662)),j=a(t(39228)),O=r(t(76326)),i=a(t(50679)),w=t(25727)},63134:function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSolidColor=e.getAlphaColor=void 0;var r=t(94834);const a=(l,g)=>new r.TinyColor(l).setAlpha(g).toRgbString();e.getAlphaColor=a;const o=(l,g)=>new r.TinyColor(l).darken(g).toHexString();e.getSolidColor=o},37555:function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateNeutralColorPalettes=e.generateColorPalettes=void 0;var r=t(71763),a=t(63134);const o=g=>{const c=(0,r.generate)(g);return{1:c[0],2:c[1],3:c[2],4:c[3],5:c[4],6:c[5],7:c[6],8:c[4],9:c[5],10:c[6]}};e.generateColorPalettes=o;const l=(g,c)=>{const p=g||"#fff",m=c||"#000";return{colorBgBase:p,colorTextBase:m,colorText:(0,a.getAlphaColor)(m,.88),colorTextSecondary:(0,a.getAlphaColor)(m,.65),colorTextTertiary:(0,a.getAlphaColor)(m,.45),colorTextQuaternary:(0,a.getAlphaColor)(m,.25),colorFill:(0,a.getAlphaColor)(m,.15),colorFillSecondary:(0,a.getAlphaColor)(m,.06),colorFillTertiary:(0,a.getAlphaColor)(m,.04),colorFillQuaternary:(0,a.getAlphaColor)(m,.02),colorBgLayout:(0,a.getSolidColor)(p,4),colorBgContainer:(0,a.getSolidColor)(p,0),colorBgElevated:(0,a.getSolidColor)(p,0),colorBgSpotlight:(0,a.getAlphaColor)(m,.85),colorBgBlur:"transparent",colorBorder:(0,a.getSolidColor)(p,15),colorBorderSecondary:(0,a.getSolidColor)(p,6)}};e.generateNeutralColorPalettes=l},73919:function(u,e,t){"use strict";var r=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=O;var a=t(71763),o=t(46190),l=r(t(47841)),g=r(t(17991)),c=r(t(83400)),p=r(t(83098)),m=r(t(63921)),j=t(37555);function O(i){const w=Object.keys(o.defaultPresetColors).map(C=>{const n=(0,a.generate)(i[C]);return new Array(10).fill(1).reduce((v,s,y)=>(v[`${C}-${y+1}`]=n[y],v[`${C}${y+1}`]=n[y],v),{})}).reduce((C,n)=>(C=Object.assign(Object.assign({},C),n),C),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},i),w),(0,l.default)(i,{generateColorPalettes:j.generateColorPalettes,generateNeutralColorPalettes:j.generateNeutralColorPalettes})),(0,p.default)(i.fontSize)),(0,m.default)(i)),(0,c.default)(i)),(0,g.default)(i))}},46190:function(u,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultPresetColors=e.default=void 0;const t=e.defaultPresetColors={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},r=Object.assign(Object.assign({},t),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, +'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', +'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});var a=e.default=r},47841:function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var r=t(94834);function a(o,l){let{generateColorPalettes:g,generateNeutralColorPalettes:c}=l;const{colorSuccess:p,colorWarning:m,colorError:j,colorInfo:O,colorPrimary:i,colorBgBase:w,colorTextBase:C}=o,n=g(i),v=g(p),s=g(m),y=g(j),x=g(O),h=c(w,C),M=o.colorLink||o.colorInfo,T=g(M);return Object.assign(Object.assign({},h),{colorPrimaryBg:n[1],colorPrimaryBgHover:n[2],colorPrimaryBorder:n[3],colorPrimaryBorderHover:n[4],colorPrimaryHover:n[5],colorPrimary:n[6],colorPrimaryActive:n[7],colorPrimaryTextHover:n[8],colorPrimaryText:n[9],colorPrimaryTextActive:n[10],colorSuccessBg:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[10],colorErrorBg:y[1],colorErrorBgHover:y[2],colorErrorBgActive:y[3],colorErrorBorder:y[3],colorErrorBorderHover:y[4],colorErrorHover:y[5],colorError:y[6],colorErrorActive:y[7],colorErrorTextHover:y[8],colorErrorText:y[9],colorErrorTextActive:y[10],colorWarningBg:s[1],colorWarningBgHover:s[2],colorWarningBorder:s[3],colorWarningBorderHover:s[4],colorWarningHover:s[4],colorWarning:s[6],colorWarningActive:s[7],colorWarningTextHover:s[8],colorWarningText:s[9],colorWarningTextActive:s[10],colorInfoBg:x[1],colorInfoBgHover:x[2],colorInfoBorder:x[3],colorInfoBorderHover:x[4],colorInfoHover:x[4],colorInfo:x[6],colorInfoActive:x[7],colorInfoTextHover:x[8],colorInfoText:x[9],colorInfoTextActive:x[10],colorLinkHover:T[4],colorLink:T[6],colorLinkActive:T[7],colorBgMask:new r.TinyColor("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}},17991:function(u,e,t){"use strict";var r=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var a=r(t(22589));function o(l){const{motionUnit:g,motionBase:c,borderRadius:p,lineWidth:m}=l;return Object.assign({motionDurationFast:`${(c+g).toFixed(1)}s`,motionDurationMid:`${(c+g*2).toFixed(1)}s`,motionDurationSlow:`${(c+g*3).toFixed(1)}s`,lineWidthBold:m+1},(0,a.default)(p))}},83400:function(u,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;const t=a=>{const{controlHeight:o}=a;return{controlHeightSM:o*.75,controlHeightXS:o*.5,controlHeightLG:o*1.25}};var r=e.default=t},83098:function(u,e,t){"use strict";var r=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(t(1512));const o=g=>{const c=(0,a.default)(g),p=c.map(v=>v.size),m=c.map(v=>v.lineHeight),j=p[1],O=p[0],i=p[2],w=m[1],C=m[0],n=m[2];return{fontSizeSM:O,fontSize:j,fontSizeLG:i,fontSizeXL:p[3],fontSizeHeading1:p[6],fontSizeHeading2:p[5],fontSizeHeading3:p[4],fontSizeHeading4:p[3],fontSizeHeading5:p[2],lineHeight:w,lineHeightLG:n,lineHeightSM:C,fontHeight:Math.round(w*j),fontHeightLG:Math.round(n*i),fontHeightSM:Math.round(C*O),lineHeightHeading1:m[6],lineHeightHeading2:m[5],lineHeightHeading3:m[4],lineHeightHeading4:m[3],lineHeightHeading5:m[2]}};var l=e.default=o},1512:function(u,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,e.getLineHeight=t;function t(a){return(a+8)/a}function r(a){const o=new Array(10).fill(null).map((l,g)=>{const c=g-1,p=a*Math.pow(2.71828,c/5),m=g>1?Math.floor(p):Math.ceil(p);return Math.floor(m/2)*2});return o[1]=a,o.map(l=>({size:l,lineHeight:t(l)}))}},22589:function(u,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;const t=a=>{let o=a,l=a,g=a,c=a;return a<6&&a>=5?o=a+1:a<16&&a>=6?o=a+2:a>=16&&(o=16),a<7&&a>=5?l=4:a<8&&a>=7?l=5:a<14&&a>=8?l=6:a<16&&a>=14?l=7:a>=16&&(l=8),a<6&&a>=2?g=1:a>=6&&(g=2),a>4&&a<8?c=4:a>=8&&(c=6),{borderRadius:a,borderRadiusXS:g,borderRadiusSM:l,borderRadiusLG:o,borderRadiusOuter:c}};var r=e.default=t},63921:function(u,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){const{sizeUnit:a,sizeStep:o}=r;return{sizeXXL:a*(o+8),sizeXL:a*(o+4),sizeLG:a*(o+2),sizeMD:a*(o+1),sizeMS:a*o,size:a*o,sizeSM:a*(o-1),sizeXS:a*(o-2),sizeXXS:a*(o-3)}}},67202:function(u,e,t){"use strict";var r=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=C,e.unitless=e.ignore=e.getComputedToken=void 0;var a=r(t(87363)),o=t(1499),l=r(t(40050)),g=t(25727),c=r(t(46190)),p=r(t(450)),m=function(n,v){var s={};for(var y in n)Object.prototype.hasOwnProperty.call(n,y)&&v.indexOf(y)<0&&(s[y]=n[y]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,y=Object.getOwnPropertySymbols(n);x{const y=s.getDerivativeToken(n),{override:x}=v,h=m(v,["override"]);let M=Object.assign(Object.assign({},y),{override:x});return M=(0,p.default)(M),h&&Object.entries(h).forEach(T=>{let[_,d]=T;const{theme:S}=d,f=m(d,["theme"]);let b=f;S&&(b=w(Object.assign(Object.assign({},M),f),{override:f},S)),M[_]=b}),M};e.getComputedToken=w;function C(){const{token:n,hashed:v,theme:s,override:y,cssVar:x}=a.default.useContext(g.DesignTokenContext),h=`${l.default}-${v||""}`,M=s||g.defaultTheme,[T,_,d]=(0,o.useCacheToken)(M,[c.default,n],{salt:h,override:y,getComputedToken:w,formatToken:p.default,cssVar:x&&{prefix:x.prefix,key:x.key,unitless:j,ignore:O,preserve:i}});return[M,d,v?_:"",T,x]}},450:function(u,e,t){"use strict";var r=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var a=t(94834),o=r(t(46190)),l=r(t(99021)),g=function(p,m){var j={};for(var O in p)Object.prototype.hasOwnProperty.call(p,O)&&m.indexOf(O)<0&&(j[O]=p[O]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,O=Object.getOwnPropertySymbols(p);i{delete O[h]});const i=Object.assign(Object.assign({},j),O),w=480,C=576,n=768,v=992,s=1200,y=1600;if(i.motion===!1){const h="0s";i.motionDurationFast=h,i.motionDurationMid=h,i.motionDurationSlow=h}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:(0,l.default)(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:(0,l.default)(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:(0,l.default)(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*4,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:(0,l.default)(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowSecondary:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTertiary:` + 0 1px 2px 0 rgba(0, 0, 0, 0.03), + 0 1px 6px -1px rgba(0, 0, 0, 0.02), + 0 2px 4px 0 rgba(0, 0, 0, 0.02) + `,screenXS:w,screenXSMin:w,screenXSMax:C-1,screenSM:C,screenSMMin:C,screenSMMax:n-1,screenMD:n,screenMDMin:n,screenMDMax:v-1,screenLG:v,screenLGMin:v,screenLGMax:s-1,screenXL:s,screenXLMin:s,screenXLMax:y-1,screenXXL:y,screenXXLMin:y,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` + 0 1px 2px -2px ${new a.TinyColor("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new a.TinyColor("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new a.TinyColor("rgba(0, 0, 0, 0.09)").toRgbString()} + `,boxShadowDrawerRight:` + -6px 0 16px 0 rgba(0, 0, 0, 0.08), + -3px 0 6px -4px rgba(0, 0, 0, 0.12), + -9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerLeft:` + 6px 0 16px 0 rgba(0, 0, 0, 0.08), + 3px 0 6px -4px rgba(0, 0, 0, 0.12), + 9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerUp:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerDown:` + 0 -6px 16px 0 rgba(0, 0, 0, 0.08), + 0 -3px 6px -4px rgba(0, 0, 0, 0.12), + 0 -9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),O)}},39472:function(u,e,t){"use strict";var r=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(t(78983)),o=r(t(42081)),l=r(t(27557)),g=r(t(58724)),c=r(t(28359));const p="CALC_UNIT",m=new RegExp(p,"g");function j(i){return typeof i=="number"?`${i}${p}`:i}let O=e.default=function(i){function w(C){var n;return(0,a.default)(this,w),n=(0,l.default)(this,w),n.result="",C instanceof w?n.result=`(${C.result})`:typeof C=="number"?n.result=j(C):typeof C=="string"&&(n.result=C),n}return(0,g.default)(w,i),(0,o.default)(w,[{key:"add",value:function(n){return n instanceof w?this.result=`${this.result} + ${n.getResult()}`:(typeof n=="number"||typeof n=="string")&&(this.result=`${this.result} + ${j(n)}`),this.lowPriority=!0,this}},{key:"sub",value:function(n){return n instanceof w?this.result=`${this.result} - ${n.getResult()}`:(typeof n=="number"||typeof n=="string")&&(this.result=`${this.result} - ${j(n)}`),this.lowPriority=!0,this}},{key:"mul",value:function(n){return this.lowPriority&&(this.result=`(${this.result})`),n instanceof w?this.result=`${this.result} * ${n.getResult(!0)}`:(typeof n=="number"||typeof n=="string")&&(this.result=`${this.result} * ${n}`),this.lowPriority=!1,this}},{key:"div",value:function(n){return this.lowPriority&&(this.result=`(${this.result})`),n instanceof w?this.result=`${this.result} / ${n.getResult(!0)}`:(typeof n=="number"||typeof n=="string")&&(this.result=`${this.result} / ${n}`),this.lowPriority=!1,this}},{key:"getResult",value:function(n){return this.lowPriority||n?`(${this.result})`:this.result}},{key:"equal",value:function(n){const{unit:v=!0}=n||{};return this.result=this.result.replace(m,v?"px":""),typeof this.lowPriority!="undefined"?`calc(${this.result})`:this.result}}])}(c.default)},85478:function(u,e,t){"use strict";var r=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(t(78983)),o=r(t(42081)),l=r(t(27557)),g=r(t(58724)),c=r(t(28359));let p=e.default=function(m){function j(O){var i;return(0,a.default)(this,j),i=(0,l.default)(this,j),i.result=0,O instanceof j?i.result=O.result:typeof O=="number"&&(i.result=O),i}return(0,g.default)(j,m),(0,o.default)(j,[{key:"add",value:function(i){return i instanceof j?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof j?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof j?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof j?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}])}(c.default)},28359:function(u,e,t){"use strict";var r=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(t(42081)),o=r(t(78983));let l=(0,a.default)(function c(){(0,o.default)(this,c)});var g=e.default=l},32962:function(u,e,t){"use strict";var r=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(t(39472)),o=r(t(85478));const l=c=>{const p=c==="css"?a.default:o.default;return m=>new p(m)};var g=e.default=l},5662:function(u,e,t){"use strict";"use client";var r=t(73203).default,a=t(36178).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=s,e.genSubStyleComponent=e.genStyleHooks=void 0;var o=a(t(87363)),l=t(1499),g=t(93870),c=t(87869),p=t(9631),m=a(t(67202)),j=r(t(32962)),O=r(t(44584)),i=a(t(76326)),w=r(t(50679));const C=(M,T,_)=>{var d;return typeof _=="function"?_((0,i.merge)(T,(d=T[M])!==null&&d!==void 0?d:{})):_!=null?_:{}},n=(M,T,_,d)=>{const S=Object.assign({},T[M]);if(d!=null&&d.deprecatedTokens){const{deprecatedTokens:b}=d;b.forEach(P=>{let[R,A]=P;var D;(S!=null&&S[R]||S!=null&&S[A])&&((D=S[A])!==null&&D!==void 0||(S[A]=S==null?void 0:S[R]))})}const f=Object.assign(Object.assign({},_),S);return Object.keys(f).forEach(b=>{f[b]===T[b]&&delete f[b]}),f},v=(M,T)=>`${[T,M.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function s(M,T,_){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const S=Array.isArray(M)?M:[M,M],[f]=S,b=S.join("-");return function(P){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P;const[A,D,E,z,L]=(0,m.default)(),{getPrefixCls:W,iconPrefixCls:F,csp:V}=(0,o.useContext)(c.ConfigContext),G=W(),Q=L?"css":"js",q=(0,j.default)(Q),{max:Z,min:te}=(0,O.default)(Q),I={theme:A,token:z,hashId:E,nonce:()=>V==null?void 0:V.nonce,clientOnly:d.clientOnly,layer:{name:"antd"},order:d.order||-999};return(0,l.useStyleRegister)(Object.assign(Object.assign({},I),{clientOnly:!1,path:["Shared",G]}),()=>[{"&":(0,p.genLinkStyle)(z)}]),(0,w.default)(F,V),[(0,l.useStyleRegister)(Object.assign(Object.assign({},I),{path:[b,P,F]}),()=>{if(d.injectStyle===!1)return[];const{token:k,flush:H}=(0,i.default)(z),X=C(f,D,_),ue=`.${P}`,$=n(f,D,X,{deprecatedTokens:d.deprecatedTokens});L&&Object.keys(X).forEach(ee=>{X[ee]=`var(${(0,l.token2CSSVar)(ee,v(f,L.prefix))})`});const N=(0,i.merge)(k,{componentCls:ue,prefixCls:P,iconCls:`.${F}`,antCls:`.${G}`,calc:q,max:Z,min:te},L?X:$),J=T(N,{hashId:E,prefixCls:P,rootPrefixCls:G,iconPrefixCls:F});return H(f,$),[d.resetStyle===!1?null:(0,p.genCommonStyle)(N,P,R,d.resetFont),J]}),E]}}const y=(M,T,_,d)=>{const S=s(M,T,_,Object.assign({resetStyle:!1,order:-998},d));return b=>{let{prefixCls:P,rootCls:R=P}=b;return S(P,R),null}};e.genSubStyleComponent=y;const x=(M,T,_)=>{function d(A){return`${M}${A.slice(0,1).toUpperCase()}${A.slice(1)}`}const{unitless:S={},injectStyle:f=!0}=_!=null?_:{},b={[d("zIndexPopup")]:!0};Object.keys(S).forEach(A=>{b[d(A)]=S[A]});const P=A=>{let{rootCls:D,cssVar:E}=A;const[,z]=(0,m.default)();return(0,l.useCSSVarRegister)({path:[M],prefix:E.prefix,key:E==null?void 0:E.key,unitless:Object.assign(Object.assign({},m.unitless),b),ignore:m.ignore,token:z,scope:D},()=>{const L=C(M,z,T),W=n(M,z,L,{deprecatedTokens:_==null?void 0:_.deprecatedTokens});return Object.keys(L).forEach(F=>{W[d(F)]=W[F],delete W[F]}),W}),null};return A=>{const[,,,,D]=(0,m.default)();return[E=>f&&D?o.default.createElement(o.default.Fragment,null,o.default.createElement(P,{rootCls:A,cssVar:D,component:M}),E):E,D==null?void 0:D.key]}},h=(M,T,_,d)=>{const S=s(M,T,_,d),f=x(Array.isArray(M)?M[0]:M,_,d);return function(b){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:b;const[,R]=S(b,P),[A,D]=f(P);return[A,R,D]}};e.genStyleHooks=h},39228:function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var r=t(67679);function a(o,l){return r.PresetColors.reduce((g,c)=>{const p=o[`${c}1`],m=o[`${c}3`],j=o[`${c}6`],O=o[`${c}7`];return Object.assign(Object.assign({},g),l(c,{lightColor:p,lightBorderColor:m,darkColor:j,textColor:O}))},{})}},99021:function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(94834);function a(g){return g>=0&&g<=255}function o(g,c){const{r:p,g:m,b:j,a:O}=new r.TinyColor(g).toRgb();if(O<1)return g;const{r:i,g:w,b:C}=new r.TinyColor(c).toRgb();for(let n=.01;n<=1;n+=.01){const v=Math.round((p-i*(1-n))/n),s=Math.round((m-w*(1-n))/n),y=Math.round((j-C*(1-n))/n);if(a(v)&&a(s)&&a(y))return new r.TinyColor({r:v,g:s,b:y,a:Math.round(n*100)/100}).toRgbString()}return new r.TinyColor({r:p,g:m,b:j,a:1}).toRgbString()}var l=e.default=o},44584:function(u,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var r=t(1499);function a(o){return o==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var l=arguments.length,g=new Array(l),c=0;c(0,r.unit)(p)).join(",")})`},min:function(){for(var l=arguments.length,g=new Array(l),c=0;c(0,r.unit)(p)).join(",")})`}}}},76326:function(u,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e._statistic_build_=void 0,e.merge=a,e.statistic=void 0;const t=typeof CSSINJS_STATISTIC!="undefined";let r=!0;function a(){for(var m=arguments.length,j=new Array(m),O=0;O{Object.keys(w).forEach(n=>{Object.defineProperty(i,n,{configurable:!0,enumerable:!0,get:()=>w[n]})})}),r=!0,i}const o=e.statistic={},l=e._statistic_build_={};function g(){}const c=m=>{let j,O=m,i=g;return t&&typeof Proxy!="undefined"&&(j=new Set,O=new Proxy(m,{get(w,C){return r&&j.add(C),w[C]}}),i=(w,C)=>{var n;o[w]={global:Array.from(j),component:Object.assign(Object.assign({},(n=o[w])===null||n===void 0?void 0:n.component),C)}}),{token:O,keys:j,flush:i}};var p=e.default=c},50679:function(u,e,t){"use strict";var r=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=t(1499),o=t(9631),l=r(t(67202));const g=(p,m)=>{const[j,O]=(0,l.default)();return(0,a.useStyleRegister)({theme:j,token:O,hashId:"",path:["ant-design-icons",p],nonce:()=>m==null?void 0:m.nonce,layer:{name:"antd"}},()=>[{[`.${p}`]:Object.assign(Object.assign({},(0,o.resetIcon)()),{[`.${p} .${p}-icon`]:{display:"block"}})}])};var c=e.default=g},14339:function(u,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;const t={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};var r=e.default=t},40050:function(u,e,t){"use strict";"use client";var r=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(t(7329)),o=e.default=a.default},7329:function(u,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=e.default="5.18.0"},51367:function(u,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},r=e.default=t},91412:function(u,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},r=e.default=t},33590:function(u,e,t){"use strict";var r=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var a=r(t(87363)),o=t(11349);function l(g){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=[];return a.default.Children.forEach(g,function(m){m==null&&!c.keepEmpty||(Array.isArray(m)?p=p.concat(l(m)):(0,o.isFragment)(m)&&m.props?p=p.concat(l(m.props.children,c)):p.push(m))}),p}},14363:function(u,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}},13515:function(u,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,a){if(!r)return!1;if(r.contains)return r.contains(a);for(var o=a;o;){if(o===r)return!0;o=o.parentNode}return!1}},6625:function(u,e,t){"use strict";var r=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),e.clearContainerCache=y,e.injectCSS=C,e.removeCSS=v,e.updateCSS=x;var a=r(t(80624)),o=r(t(14363)),l=r(t(13515)),g="data-rc-order",c="data-rc-priority",p="rc-util-key",m=new Map;function j(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=h.mark;return M?M.startsWith("data-")?M:"data-".concat(M):p}function O(h){if(h.attachTo)return h.attachTo;var M=document.querySelector("head");return M||document.body}function i(h){return h==="queue"?"prependQueue":h?"prepend":"append"}function w(h){return Array.from((m.get(h)||h).children).filter(function(M){return M.tagName==="STYLE"})}function C(h){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,o.default)())return null;var T=M.csp,_=M.prepend,d=M.priority,S=d===void 0?0:d,f=i(_),b=f==="prependQueue",P=document.createElement("style");P.setAttribute(g,f),b&&S&&P.setAttribute(c,"".concat(S)),T!=null&&T.nonce&&(P.nonce=T==null?void 0:T.nonce),P.innerHTML=h;var R=O(M),A=R.firstChild;if(_){if(b){var D=(M.styles||w(R)).filter(function(E){if(!["prepend","prependQueue"].includes(E.getAttribute(g)))return!1;var z=Number(E.getAttribute(c)||0);return S>=z});if(D.length)return R.insertBefore(P,D[D.length-1].nextSibling),P}R.insertBefore(P,A)}else R.appendChild(P);return P}function n(h){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=O(M);return(M.styles||w(T)).find(function(_){return _.getAttribute(j(M))===h})}function v(h){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=n(h,M);if(T){var _=O(M);_.removeChild(T)}}function s(h,M){var T=m.get(h);if(!T||!(0,l.default)(document,T)){var _=C("",M),d=_.parentNode;m.set(h,d),h.removeChild(_)}}function y(){m.clear()}function x(h,M){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_=O(T),d=w(_),S=(0,a.default)((0,a.default)({},T),{},{styles:d});s(_,S);var f=n(M,S);if(f){var b,P;if((b=S.csp)!==null&&b!==void 0&&b.nonce&&f.nonce!==((P=S.csp)===null||P===void 0?void 0:P.nonce)){var R;f.nonce=(R=S.csp)===null||R===void 0?void 0:R.nonce}return f.innerHTML!==h&&(f.innerHTML=h),f}var A=C(h,S);return A.setAttribute(j(S),M),A}},76235:function(u,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShadowRoot=a,e.inShadow=r;function t(o){var l;return o==null||(l=o.getRootNode)===null||l===void 0?void 0:l.call(o)}function r(o){return t(o)instanceof ShadowRoot}function a(o){return r(o)?t(o):null}},90742:function(u,e,t){"use strict";var r=t(36178).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var a=r(t(87363));function o(l,g,c){var p=a.useRef({});return(!("value"in p.current)||c(p.current.condition,g))&&(p.current.value=l(),p.current.condition=g),p.current.value}},19765:function(u,e,t){"use strict";var r=t(73203).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(t(7501)),o=r(t(55620));function l(c,p){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,j=new Set;function O(i,w){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,n=j.has(i);if((0,o.default)(!n,"Warning: There may be circular references"),n)return!1;if(i===w)return!0;if(m&&C>1)return!1;j.add(i);var v=C+1;if(Array.isArray(i)){if(!Array.isArray(w)||i.length!==w.length)return!1;for(var s=0;s3&&arguments[3]!==void 0?arguments[3]:!1;return n.length&&s&&v===void 0&&!(0,c.default)(C,n.slice(0,-1))?C:p(C,n,v,s)}function j(C){return(0,a.default)(C)==="object"&&C!==null&&Object.getPrototypeOf(C)===Object.prototype}function O(C){return Array.isArray(C)?[]:{}}var i=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function w(){for(var C=arguments.length,n=new Array(C),v=0;vt.length)&&(r=t.length);for(var a=0,o=Array(r);a0&&a[0]!==void 0?a[0]:!0,e.next=3,w().getItem(M);case 3:return o=e.sent,t=i?B.AT.concat(o||[]):o||[],e.abrupt("return",t);case 6:case"end":return e.stop()}},n)}));return function(){return c.apply(this,arguments)}}(),F=function(){var c=h()(s()().mark(function n(i){var o,t,a,y,e;return s()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return o=(0,T.sq)(),t=D()().format("YYYY-MM-DD HH:mm:ss"),a=d()(d()({},i),{},{assetId:o,creatTime:t}),p.next=5,x(!1);case 5:return y=p.sent,e=y.concat(a),p.next=9,C(e);case 9:return p.abrupt("return",a);case 10:case"end":return p.stop()}},n)}));return function(i){return c.apply(this,arguments)}}(),R=null,_=function(){var c=h()(s()().mark(function n(i,o){var t,a,y,e;return s()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,x(!1);case 2:if(t=p.sent,a=t.findIndex(function(Y){return Y.assetId===i}),a!==-1){p.next=6;break}return p.abrupt("return",Promise.reject("\u8D44\u4EA7\u5305 ID \u4E0D\u5B58\u5728"));case 6:return y=t[a],e=d()(d()({},y),o),t[a]=e,p.next=11,C(t);case 11:return p.abrupt("return",e);case 12:case"end":return p.stop()}},n)}));return function(i,o){return c.apply(this,arguments)}}(),q=function(){var c=h()(s()().mark(function n(i){var o,t,a;return s()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x(!1);case 2:if(o=e.sent,t=o.findIndex(function(g){return g.assetId===i}),t!==-1){e.next=6;break}return e.abrupt("return",Promise.reject("\u8D44\u4EA7\u5305 ID \u4E0D\u5B58\u5728"));case 6:return a=o.splice(t,1),e.next=9,C(o);case 9:return e.abrupt("return",a);case 10:case"end":return e.stop()}},n)}));return function(i){return c.apply(this,arguments)}}(),m=l(75919),v={version:"v0.1",metadata:{name:"\u75AB\u60C5\u5404\u57CE\u5E02\u9996\u8F6E\u611F\u67D3\u9AD8\u5CF0\u671F\u9884\u6D4B\u53EF\u89C6\u5316",creatTime:"2022-12-21 16:00:15",description:"\u7B2C\u4E00\u6CE2\u75AB\u60C5\u8FBE\u5CF0\u9884\u6D4B\u4E0E\u7D2F\u8BA1\u611F\u67D3\u5360\u603B\u4EBA\u53E3\u5360\u6BD4\uFF0C\u9884\u6D4B\u6570\u636E\u6765\u6E90\u4E8E \u201C\u6570\u636E\u5E1D chenqin\u201D\u3002"},datasets:[{id:"12.19 \u5404\u57CE\u5E02\u9996\u8F6E\u611F\u67D3\u9AD8\u5CF0\u671F\u9884\u6D4B_5d159569-f5f0-41d1-a144-3522639f7eb7",metadata:{name:"12.19 \u5404\u57CE\u5E02\u9996\u8F6E\u611F\u67D3\u9AD8\u5CF0\u671F\u9884\u6D4B"},type:"remote",serviceType:"GET_FETCH_DATA_LIST",properties:{url:"https://mdn.alipayobjects.com/afts/file/A*Ji33RZ5FTx0AAAAAAAAAAAAADrd2AQ/12.19%20%E5%90%84%E5%9F%8E%E5%B8%82%E9%A6%96%E8%BD%AE%E6%84%9F%E6%9F%93%E9%AB%98%E5%B3%B0%E6%9C%9F%E9%A2%84%E6%B5%8B.json",requestOptions:{method:"GET"}},columns:[{type:"string",name:"\u57CE\u5E02\u540D\u79F0"},{type:"number",name:"\u8FBE\u5CF0\u8FDB\u5EA6\u6761"},{type:"number",name:"\u7ED3\u675F\u8FDB\u5EA6\u6761"},{type:"string",name:"\u7B2C\u4E00\u6CE2\u75AB\u60C5\u8FBE\u5CF0\u65E5\u671F"},{type:"string",name:"\u7B2C\u4E00\u6CE2\u75AB\u60C5\u7ED3\u675F\u65E5\u671F"},{type:"number",name:"\u7D2F\u8BA1\u611F\u67D3\u5360\u603B\u4EBA\u53E3\u6BD4\u503C"},{type:"number",name:"adcode"},{type:"string",name:"level"},{type:"string",name:"name"},{type:"string",name:"parent"},{type:"geo",name:"center"},{type:"geo",name:"centroid"},{type:"geo",name:"geometry"}]},{id:"12.20 \u5404\u57CE\u5E02\u9996\u8F6E\u611F\u67D3\u9AD8\u5CF0\u671F\u9884\u6D4B_d3aebe24-95de-4247-8bf7-d9fe31a8a841",metadata:{name:"12.20 \u5404\u57CE\u5E02\u9996\u8F6E\u611F\u67D3\u9AD8\u5CF0\u671F\u9884\u6D4B"},type:"remote",serviceType:"GET_FETCH_DATA_LIST",properties:{url:"https://mdn.alipayobjects.com/afts/file/A*3bbDQph-IqIAAAAAAAAAAAAADrd2AQ/12.20 \u5404\u57CE\u5E02\u9996\u8F6E\u611F\u67D3\u9AD8\u5CF0\u671F\u9884\u6D4B.json",requestOptions:{method:"GET"}},columns:[{type:"string",name:"\u57CE\u5E02\u540D\u79F0"},{type:"number",name:"\u8FBE\u5CF0\u8FDB\u5EA6\u6761"},{type:"number",name:"\u7ED3\u675F\u8FDB\u5EA6\u6761"},{type:"string",name:"\u7B2C\u4E00\u6CE2\u75AB\u60C5\u8FBE\u5CF0\u65E5\u671F"},{type:"string",name:"\u7B2C\u4E00\u6CE2\u75AB\u60C5\u7ED3\u675F\u65E5\u671F"},{type:"number",name:"\u7D2F\u8BA1\u611F\u67D3\u5360\u603B\u4EBA\u53E3\u6BD4\u503C"},{type:"number",name:"adcode"},{type:"string",name:"level"},{type:"string",name:"name"},{type:"string",name:"parent"},{type:"geo",name:"center"},{type:"geo",name:"centroid"},{type:"geo",name:"geometry"}]},{id:"12.20 \u5404\u7701\u4EFD\u9996\u8F6E\u611F\u67D3\u9AD8\u5CF0\u671F\u9884\u6D4B_bf99e076-cb01-4fa5-9e61-4966706a7edb",metadata:{name:"12.20 \u5404\u7701\u4EFD\u9996\u8F6E\u611F\u67D3\u9AD8\u5CF0\u671F\u9884\u6D4B"},type:"remote",serviceType:"GET_FETCH_DATA_LIST",properties:{url:"https://mdn.alipayobjects.com/afts/file/A*BHxBT6M6IFcAAAAAAAAAAAAADrd2AQ/12.20-province.json",requestOptions:{method:"GET"}},columns:[{type:"string",name:"\u7701\u4EFD\u540D\u79F0"},{type:"number",name:"\u8FBE\u5CF0\u8FDB\u5EA6\u6761"},{type:"number",name:"adcode"},{type:"string",name:"level"},{type:"string",name:"name"},{type:"string",name:"parent"},{type:"number",name:"childrenNum"},{type:"geo",name:"center"},{type:"geo",name:"centroid"},{type:"geo",name:"geometry"}]}],spec:{map:{basemap:"Gaode",config:{zoom:3.8,center:[107.30211,35.900851],pitch:0,bearing:0,style:"grey",WebGLParams:{preserveDrawingBuffer:!0},preserveDrawingBuffer:!0}},layers:[{id:"ChoroplethLayer_c3bd4d87-4bdd-492a-b417-9847c0518c0f_3441d548-2972-492d-969d-a20abc61aba0_123a500a-ec8d-4172-b383-661a791cd86f",type:"ChoroplethLayer",metadata:{name:"12.20 \u8FBE\u5CF0\u8FDB\u5EA6-\u5404\u57CE\u5E02\u9996\u8F6E\u611F\u67D3"},sourceConfig:{parser:{type:"json",geometry:"geometry"},datasetId:"12.20 \u5404\u57CE\u5E02\u9996\u8F6E\u611F\u67D3\u9AD8\u5CF0\u671F\u9884\u6D4B_d3aebe24-95de-4247-8bf7-d9fe31a8a841"},visConfig:{fillColor:{field:"\u8FBE\u5CF0\u8FDB\u5EA6\u6761",value:["#f1eef6","#d4b9da","#c994c7","#df65b0","#dd1c77","#980043"],scale:{type:"quantize"}},opacity:.8,strokeColor:"#ff9d4d",lineWidth:.5,lineOpacity:.4,label:{field:"\u8FBE\u5CF0\u8FDB\u5EA6\u6761",visible:!0,style:{fill:"#a9abb1",fontSize:13,textAnchor:"center",textOffset:[0,0]}},minZoom:0,maxZoom:24,blend:"normal",state:{active:{strokeColor:"yellow",fillColor:!1},select:{fillColor:!1,strokeColor:"red"}},visible:!1}},{id:"ChoroplethLayer_c3bd4d87-4bdd-492a-b417-9847c0518c0f_931c01e9-849e-475c-81c1-b9a67345d28b",type:"ChoroplethLayer",metadata:{name:"12.20 \u5360\u603B\u4EBA\u53E3\u6BD4\u503C-\u5404\u57CE\u5E02\u9996\u8F6E\u611F\u67D3"},sourceConfig:{parser:{type:"json",geometry:"geometry"},datasetId:"12.20 \u5404\u57CE\u5E02\u9996\u8F6E\u611F\u67D3\u9AD8\u5CF0\u671F\u9884\u6D4B_d3aebe24-95de-4247-8bf7-d9fe31a8a841"},visConfig:{fillColor:{field:"\u7D2F\u8BA1\u611F\u67D3\u5360\u603B\u4EBA\u53E3\u6BD4\u503C",value:["#fee5d9","#fcbba1","#fc9272","#fb6a4a","#de2d26","#a50f15"],scale:{type:"quantize"}},opacity:.8,strokeColor:"#a9abb1",lineWidth:.5,lineOpacity:.7,label:{field:"\u7D2F\u8BA1\u611F\u67D3\u5360\u603B\u4EBA\u53E3\u6BD4\u503C",visible:!0,style:{fill:"#a9abb1",fontSize:14,textAnchor:"center",textOffset:[0,0]}},minZoom:0,maxZoom:24,blend:"normal",state:{active:{strokeColor:"yellow",fillColor:!1},select:{fillColor:!1,strokeColor:"red"}},visible:!1}},{id:"BubbleLayer_db9994a9-e17e-45cc-b6bf-dbcbaf9f8310_ee2dd50f-b268-4ef0-8739-da416f650048",type:"BubbleLayer",metadata:{name:"12.20 \u5404\u9884\u6D4B\u57CE\u5E02\u540D\u79F0"},sourceConfig:{parser:{type:"json",geometry:"geometry"},datasetId:"12.20 \u5404\u57CE\u5E02\u9996\u8F6E\u611F\u67D3\u9AD8\u5CF0\u671F\u9884\u6D4B_d3aebe24-95de-4247-8bf7-d9fe31a8a841"},visConfig:{fillColor:"#a9abb1",opacity:0,strokeColor:"rgb(146, 112, 202)",lineWidth:0,lineOpacity:1,radius:0,label:{field:"\u57CE\u5E02\u540D\u79F0",visible:!0,style:{fill:"#c0c0c0",fontSize:12,textAnchor:"center",textOffset:[0,-30]}},minZoom:0,maxZoom:24,blend:"normal",state:{active:{fillColor:!1,strokeColor:"yellow"},select:{fillColor:!1,strokeColor:"red"}},visible:!1}},{id:"ChoroplethLayer_2377a64b-ef83-4151-a967-82fdc0749f97",type:"ChoroplethLayer",metadata:{name:"12.20 \u8FBE\u5CF0\u8FDB\u5EA6-\u5404\u7701\u4EFD\u9996\u8F6E\u611F\u67D3"},sourceConfig:{parser:{type:"json",geometry:"geometry"},datasetId:"12.20 \u5404\u7701\u4EFD\u9996\u8F6E\u611F\u67D3\u9AD8\u5CF0\u671F\u9884\u6D4B_bf99e076-cb01-4fa5-9e61-4966706a7edb"},visConfig:{fillColor:{field:"\u8FBE\u5CF0\u8FDB\u5EA6\u6761",value:["#fee5d9","#fcbba1","#fc9272","#fb6a4a","#de2d26","#a50f15"],scale:{type:"quantize",unknown:"#c0c0c0"}},opacity:1,strokeColor:"#a9abb1",lineWidth:.4,lineOpacity:.5,label:{visible:!1,style:{fill:"#a9abb1",fontSize:14,textAnchor:"center",textOffset:[0,0]}},minZoom:0,maxZoom:24,blend:"normal",state:{active:{strokeColor:"yellow",fillColor:!1},select:{fillColor:!1,strokeColor:"red"}},visible:!0}},{id:"BubbleLayer_9cc7d746-45bc-454c-b760-65ef3fa4dc9f",type:"BubbleLayer",metadata:{name:"12.20 \u5404\u7701\u4EFD\u540D\u79F0"},sourceConfig:{parser:{type:"json",geometry:"center"},datasetId:"12.20 \u5404\u7701\u4EFD\u9996\u8F6E\u611F\u67D3\u9AD8\u5CF0\u671F\u9884\u6D4B_bf99e076-cb01-4fa5-9e61-4966706a7edb"},visConfig:{fillColor:"#a9abb1",opacity:0,strokeColor:"rgb(146, 112, 202)",lineWidth:0,lineOpacity:1,radius:0,label:{field:"\u7701\u4EFD\u540D\u79F0",visible:!0,style:{fill:"#fff",fontSize:14,textAnchor:"center",textOffset:[0,0]}},minZoom:0,maxZoom:24,blend:"normal",state:{active:{fillColor:!1,strokeColor:"yellow"},select:{fillColor:!1,strokeColor:"red"}},visible:!0}},{id:"BubbleLayer_1cc7d746-45bc-454c-b760-55ef3fa4dc8f",type:"BubbleLayer",metadata:{name:"12.20 \u5404\u7701\u4EFD\u6307\u6570"},sourceConfig:{parser:{type:"json",geometry:"center"},datasetId:"12.20 \u5404\u7701\u4EFD\u9996\u8F6E\u611F\u67D3\u9AD8\u5CF0\u671F\u9884\u6D4B_bf99e076-cb01-4fa5-9e61-4966706a7edb"},visConfig:{fillColor:"#a9abb1",opacity:0,strokeColor:"rgb(146, 112, 202)",lineWidth:0,lineOpacity:1,radius:0,label:{field:"\u8FBE\u5CF0\u8FDB\u5EA6\u6761",visible:!0,style:{fill:"#fff",fontSize:14,textAnchor:"center",textOffset:[0,-30]}},minZoom:0,maxZoom:24,blend:"normal",state:{active:{fillColor:!1,strokeColor:"yellow"},select:{fillColor:!1,strokeColor:"red"}},visible:!0}}],widgets:[{id:"AnalysisLayout",type:"AnalysisLayout",metadata:{name:"\u5E03\u5C40\u7EC4\u4EF6"},properties:{showFloatPanel:!1,showSidePanel:!1,showBottomPanel:!0}},{id:"AdministrativeSelectControl",type:"AdministrativeSelectControl",metadata:{name:"\u884C\u653F\u533A\u57DF\u9009\u62E9\u5668"},properties:{position:"lefttop"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LocationSearchControl1",type:"LocationSearchControl",metadata:{name:"\u4F4D\u7F6E\u67E5\u8BE2"},properties:{position:"lefttop"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"ZoomControl1",type:"ZoomControl",metadata:{name:"\u7F29\u653E\u5668"},properties:{position:"bottomright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"PropertiesPanel",type:"PropertiesPanel",metadata:{name:"\u5C5E\u6027\u9762\u677F"},properties:{isOpen:!1,items:[{layerId:"ChoroplethLayer_c3bd4d87-4bdd-492a-b417-9847c0518c0f_3441d548-2972-492d-969d-a20abc61aba0_123a500a-ec8d-4172-b383-661a791cd86f",datasetId:"12",enable:{"20\u5404\u57CE\u5E02\u9996\u8F6E\u611F\u67D3\u9AD8\u5CF0\u671F\u9884\u6D4B_d3aebe24-95de-4247-8bf7-d9fe31a8a841":!1}},{layerId:"ChoroplethLayer_c3bd4d87-4bdd-492a-b417-9847c0518c0f_931c01e9-849e-475c-81c1-b9a67345d28b",datasetId:"12",enable:{"20\u5404\u7701\u4EFD\u9996\u8F6E\u611F\u67D3\u9AD8\u5CF0\u671F\u9884\u6D4B_bf99e076-cb01-4fa5-9e61-4966706a7edb":!1}},{layerId:"BubbleLayer_db9994a9-e17e-45cc-b6bf-dbcbaf9f8310_ee2dd50f-b268-4ef0-8739-da416f650048",datasetId:"12",enable:{"20\u5404\u57CE\u5E02\u9996\u8F6E\u611F\u67D3\u9AD8\u5CF0\u671F\u9884\u6D4B_d3aebe24-95de-4247-8bf7-d9fe31a8a841":!1}},{layerId:"ChoroplethLayer_2377a64b-ef83-4151-a967-82fdc0749f97",datasetId:"12",enable:{"20\u5404\u7701\u4EFD\u9996\u8F6E\u611F\u67D3\u9AD8\u5CF0\u671F\u9884\u6D4B_bf99e076-cb01-4fa5-9e61-4966706a7edb":!1}},{layerId:"BubbleLayer_9cc7d746-45bc-454c-b760-65ef3fa4dc9f",datasetId:"12",enable:{"20\u5404\u7701\u4EFD\u9996\u8F6E\u611F\u67D3\u9AD8\u5CF0\u671F\u9884\u6D4B_bf99e076-cb01-4fa5-9e61-4966706a7edb":!1}}]},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LayerPopup",type:"LayerPopup",metadata:{name:"\u56FE\u5C42\u4FE1\u606F\u6846"},properties:{isOpen:!0,trigger:"hover",items:[{layerId:"ChoroplethLayer_c3bd4d87-4bdd-492a-b417-9847c0518c0f_3441d548-2972-492d-969d-a20abc61aba0_123a500a-ec8d-4172-b383-661a791cd86f",fields:[{field:"\u57CE\u5E02\u540D\u79F0"},{field:"\u8FBE\u5CF0\u8FDB\u5EA6\u6761"},{field:"\u7ED3\u675F\u8FDB\u5EA6\u6761"},{field:"\u7B2C\u4E00\u6CE2\u75AB\u60C5\u8FBE\u5CF0\u65E5\u671F"},{field:"\u7B2C\u4E00\u6CE2\u75AB\u60C5\u7ED3\u675F\u65E5\u671F"},{field:"\u7D2F\u8BA1\u611F\u67D3\u5360\u603B\u4EBA\u53E3\u6BD4\u503C"}]},{layerId:"ChoroplethLayer_c3bd4d87-4bdd-492a-b417-9847c0518c0f_931c01e9-849e-475c-81c1-b9a67345d28b",fields:[{field:"\u57CE\u5E02\u540D\u79F0"},{field:"\u8FBE\u5CF0\u8FDB\u5EA6\u6761"},{field:"\u7ED3\u675F\u8FDB\u5EA6\u6761"},{field:"\u7B2C\u4E00\u6CE2\u75AB\u60C5\u8FBE\u5CF0\u65E5\u671F"},{field:"\u7B2C\u4E00\u6CE2\u75AB\u60C5\u7ED3\u675F\u65E5\u671F"},{field:"\u7D2F\u8BA1\u611F\u67D3\u5360\u603B\u4EBA\u53E3\u6BD4\u503C"}]},{layerId:"BubbleLayer_db9994a9-e17e-45cc-b6bf-dbcbaf9f8310_ee2dd50f-b268-4ef0-8739-da416f650048",fields:[]},{layerId:"ChoroplethLayer_2377a64b-ef83-4151-a967-82fdc0749f97",fields:[{field:"\u7701\u4EFD\u540D\u79F0"},{field:"\u8FBE\u5CF0\u8FDB\u5EA6\u6761"}]},{layerId:"BubbleLayer_9cc7d746-45bc-454c-b760-65ef3fa4dc9f",fields:[]}]},container:{id:"AnalysisLayout",slot:"controls"}},{id:"FullscreenControl1",type:"FullscreenControl",metadata:{name:"\u5730\u56FE\u5168\u5C4F"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MapViewSettingControl1",type:"MapViewSettingControl",metadata:{name:"\u5730\u56FE\u503E\u89D2"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LegendWidget1",type:"LegendWidget",metadata:{name:"\u56FE\u4F8B\u7EC4\u4EF6"},properties:{position:"topright",open:!0},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MapThemeControl2",type:"MapThemeControl",metadata:{name:"\u5730\u56FE\u4E3B\u9898"},properties:{position:"bottomright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MouseLocationControl4",type:"MouseLocationControl",metadata:{name:"\u5149\u6807\u7ECF\u7EAC\u5EA6"},properties:{position:"bottomleft"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"ScaleControl3",type:"ScaleControl",metadata:{name:"\u6BD4\u4F8B\u5C3A"},properties:{position:"bottomleft"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MiniChart_4b419c39-0c9a-4cd4-b8c9-333dc4097e77",type:"MiniChart",metadata:{name:"12.19 \u5404\u57CE\u5E02\u8FBE\u5CF0\u8FDB\u5EA6\u6BD4"},properties:{datasetId:"12.19 \u5404\u57CE\u5E02\u9996\u8F6E\u611F\u67D3\u9AD8\u5CF0\u671F\u9884\u6D4B_5d159569-f5f0-41d1-a144-3522639f7eb7",chartType:"column",xField:"\u57CE\u5E02\u540D\u79F0",yField:"\u8FBE\u5CF0\u8FDB\u5EA6\u6761",sortBy:"y",orderBy:"DESC"},container:{id:"AnalysisLayout",slot:"bottomPanel"}},{id:"MiniChart_0b419c39-0c9a-4cd4-b8c9-333dc4097e37",type:"MiniChart",metadata:{name:"12.20 \u5404\u7701\u4EFD\u8FBE\u5CF0\u8FDB\u5EA6\u6BD4"},properties:{datasetId:"12.20 \u5404\u7701\u4EFD\u9996\u8F6E\u611F\u67D3\u9AD8\u5CF0\u671F\u9884\u6D4B_bf99e076-cb01-4fa5-9e61-4966706a7edb",chartType:"column",xField:"\u7701\u4EFD\u540D\u79F0",yField:"\u8FBE\u5CF0\u8FDB\u5EA6\u6761",sortBy:"y",orderBy:"DESC"},container:{id:"AnalysisLayout",slot:"bottomPanel"}},{id:"MiniChart_1e1ef926-4924-4eb2-99b6-b396ee87663c",type:"MiniChart",metadata:{name:"12.20 \u5404\u57CE\u5E02\u611F\u67D3\u5360\u603B\u4EBA\u53E3\u6BD4"},properties:{datasetId:"12.20 \u5404\u57CE\u5E02\u9996\u8F6E\u611F\u67D3\u9AD8\u5CF0\u671F\u9884\u6D4B_d3aebe24-95de-4247-8bf7-d9fe31a8a841",chartType:"column",xField:"\u57CE\u5E02\u540D\u79F0",yField:"\u7D2F\u8BA1\u611F\u67D3\u5360\u603B\u4EBA\u53E3\u6BD4\u503C",sortBy:"y",orderBy:"DESC"},container:{id:"AnalysisLayout",slot:"bottomPanel"}}]}},r=v,u={version:"v0.1",metadata:{name:"AI \u9065\u611F",description:"SAM \u56FE\u50CF\u5206\u5272\u5927\u6A21\u578B\u5728\u9065\u611F\u9886\u57DF\u7684\u5E94\u7528\uFF1AAI \u8BC6\u522B\u3001\u63D0\u53D6\u5BB6\u4E61\u6240\u5728\u57CE\u5E02\u4F53\u80B2\u9986\u3001\u98DE\u673A\u573A\u98DE\u673A\u3001\u81EA\u5BB6\u623F\u4EA7\u7B49\u8F6E\u5ED3\u3002",creatTime:"2023-05-24 16:48:56"},datasets:[{id:"57f6893a-f9ab-49c7-888b-a07551432828",type:"raster-tile",metadata:{name:"Google \u536B\u661F\u5F71\u50CF",description:"XYZ Tile",serviceType:"XYZ Tile"},properties:{url:"https://www.google.com/maps/vt?lyrs=s@820&gl=cn&x={x}&y={y}&z={z}",type:"xyz-tile",tileSize:256,minZoom:0,maxZoom:18}}],spec:{map:{basemap:"Gaode",config:{zoom:17,center:[120.104836,30.261078],pitch:0,bearing:0,style:"dark",preserveDrawingBuffer:!0,rotation:0,viewMode:"2D",dragRotate:!0,pitchWithRotate:!0,WebGLParams:{preserveDrawingBuffer:!0}}},layers:[{id:"ed7c2a49-2e7a-4767-b362-474ea15b2ac5",type:"TileLayer",metadata:{name:"\u8C37\u6B4C\u74E6\u7247\u56FE\u5C42"},sourceConfig:{datasetId:"57f6893a-f9ab-49c7-888b-a07551432828",parser:{type:"rasterTile"}},visConfig:{visible:!0}}],widgets:[{id:"SamLayout",type:"SamLayout",metadata:{name:"\u5E03\u5C40\u7EC4\u4EF6"},properties:{showSidePanel:!0}},{id:"SamComponent",type:"SamComponent",metadata:{name:"\u9065\u611F\u56FE\u50CF\u5206\u5272"},properties:{modelUrl:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/file/A*eRf_QauRmqoAAAAAAAAAAAAADmJ7AQ/sam_onnx_example.glb",embeddingUrl:"https://sam.lvisei.icu/api",strokeColor:"#8274FF",editorTheme:"vs-dark"},container:{id:"SamLayout",slot:"sidePanel"}},{id:"AdministrativeSelectControl",type:"AdministrativeSelectControl",metadata:{name:"\u884C\u653F\u533A\u57DF\u9009\u62E9\u5668"},properties:{position:"lefttop"},container:{id:"SamLayout",slot:"controls"}},{id:"LocationSearchControl_d6b4f11f-c76d-4899-b325-98e680c984eb",type:"LocationSearchControl",metadata:{name:"\u4F4D\u7F6E\u67E5\u8BE2"},properties:{position:"lefttop"},container:{id:"SamLayout",slot:"controls"}},{id:"MouseLocationControl_88d28c82-8c2b-4930-8f5d-d1393070d6a9",type:"MouseLocationControl",metadata:{name:"\u5149\u6807\u7ECF\u7EAC\u5EA6"},properties:{position:"bottomleft"},container:{id:"SamLayout",slot:"controls"}},{id:"ScaleControl_155a2899-cfc2-4dc9-8d24-05cc74f5b1e8",type:"ScaleControl",metadata:{name:"\u6BD4\u4F8B\u5C3A"},properties:{position:"bottomleft"},container:{id:"SamLayout",slot:"controls"}},{id:"MeasureControl_47906900-6411-40aa-ae06-26c83e66763d",type:"MeasureControl",metadata:{name:"\u8DDD\u79BB/\u9762\u79EF\u6D4B\u91CF"},properties:{position:"bottomleft",color:"#ec25fa"},container:{id:"SamLayout",slot:"controls"}}]}},A=u,k={version:"v0.1",metadata:{name:"\u4E2D\u56FD\u7B2C\u4E03\u6B21\u4EBA\u53E3\u666E\u67E5-\u57CE\u5E02\u4EBA\u53E3\u589E\u957F\u7387",creatTime:"2023-06-21 16:17:13",description:"\u4E2D\u56FD\u7B2C\u4E03\u6B21\u4EBA\u53E3\u666E\u67E5\u57CE\u5E02\u6570\u636E\uFF0C\u7EDF\u8BA1\u65F6\u95F4\u70B9\u4E3A 2020 \u5E74\u5E95\u3002\u4EBA\u53E3\u589E\u957F\u7387\uFF0C\u6839\u636E 2010 \u5E74\u7684\u7B2C\u516D\u6B21\u4EBA\u53E3\u666E\u67E5\u6570\u636E\u8BA1\u7B97\u83B7\u5F97\u3002\u6570\u636E\u6765\u6E90\uFF1Ahttps://github.com/leiii/census\u3002"},datasets:[{id:"9e4711d0-5d01-44ce-bde8-bfebe44ba007",type:"remote",metadata:{name:"\u4E2D\u56FD\u7B2C\u4E03\u6B21\u4EBA\u53E3\u666E\u67E5-\u57CE\u5E02\u6570\u636E"},serviceType:"GET_FETCH_DATA_LIST",properties:{url:"https://mdn.alipayobjects.com/afts/file/A*7fwkRJRGetkAAAAAAAAAAAAADrd2AQ/population-growth.json",requestOptions:{method:"GET",headers:{}}}}],spec:{map:{basemap:"Gaode",config:{zoom:4,center:[109.286937,32.653319],pitch:0,bearing:0,style:"grey",WebGLParams:{preserveDrawingBuffer:!0},rotation:0,viewMode:"2D",dragRotate:!0,pitchWithRotate:!0},logoPosition:"leftbottom"},layers:[{id:"ChinaAdminLayer_a1633686-6c37-46ea-916e-43aa718802bb",type:"ChinaAdminLayer",metadata:{name:"\u4E2D\u56FD\u7B2C\u4E03\u6B21\u4EBA\u53E3\u666E\u67E5-\u57CE\u5E02\u6570\u636E\u56FE\u5C42"},sourceConfig:{parser:{type:"json"},countryAdConfig:{countryGranularity:"city",countryAdType:"adcode",countryAdField:"\u57CE\u5E02\u4EE3\u7801"},datasetId:"9e4711d0-5d01-44ce-bde8-bfebe44ba007"},visConfig:{fillColor:{field:"\u4EBA\u53E3\u589E\u957F\u7387\uFF08%\uFF09",value:["#4575b4","#74add1","#abd9e9","#e0f3f8","#fee090","#fdae61","#f46d43","#d73027"],scale:{type:"quantize",unknown:"#c0c0c0"},isReversed:!0},opacity:.7,strokeColor:"#a9abb1",lineWidth:.5,lineOpacity:.7,label:{visible:!1,style:{fill:"red",fontSize:14,textAnchor:"center",textOffset:[0,0]}},minZoom:0,maxZoom:24,blend:"normal",showNationalBorders:!1,showAdminLabel:!1,adminLabelColor:"#fff",adminLabelFontSize:12,adminLabelStroke:"#606060",adminLabelStrokeWidth:.5,state:{active:{strokeColor:"yellow",fillColor:!1},select:{fillColor:!1,strokeColor:"red"}},visible:!0}}],widgets:[{id:"AnalysisLayout",type:"AnalysisLayout",metadata:{name:"\u5E03\u5C40\u7EC4\u4EF6"},properties:{showFloatPanel:!1,showSidePanel:!1,showBottomPanel:!0}},{id:"AdministrativeSelectControl",type:"AdministrativeSelectControl",metadata:{name:"\u884C\u653F\u533A\u57DF\u9009\u62E9\u5668"},properties:{position:"lefttop",showBounds:!1},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LocationSearchControl",type:"LocationSearchControl",metadata:{name:"\u4F4D\u7F6E\u67E5\u8BE2"},properties:{position:"lefttop"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"ZoomControl1",type:"ZoomControl",metadata:{name:"\u7F29\u653E\u5668"},properties:{position:"bottomright",showZoom:!0},container:{id:"AnalysisLayout",slot:"controls"}},{id:"PropertiesPanel",type:"PropertiesPanel",metadata:{name:"\u5C5E\u6027\u9762\u677F"},properties:{isOpen:!1,items:[{layerId:"ChinaAdminLayer_a1633686-6c37-46ea-916e-43aa718802bb",datasetId:"\u4E2D\u56FD\u7B2C\u4E03\u6B21\u4EBA\u53E3\u666E\u67E5-\u57CE\u5E02\u6570\u636E_d4bd6b32-1484-429e-8374-1201fa17c1f2",enable:!1}]},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LayerPopup",type:"LayerPopup",metadata:{name:"\u56FE\u5C42\u4FE1\u606F\u6846"},properties:{isOpen:!0,trigger:"click",items:[{layerId:"ChinaAdminLayer_a1633686-6c37-46ea-916e-43aa718802bb",fields:[{field:"\u57CE\u5E02"},{field:"\u7701"},{field:"\u4EBA\u53E3\u589E\u957F\u7387\uFF08%\uFF09"},{field:"\u5E38\u4F4F\u4EBA\u53E32020"},{field:"\u5E38\u4F4F\u4EBA\u53E32010"},{field:"\u5E73\u5747\u5BB6\u5EAD\u6237\u4EBA\u65702020"},{field:"\u5E73\u5747\u5BB6\u5EAD\u6237\u4EBA\u65702010"},{field:"\u6027\u522B\u6BD4\u4F8B2020\uFF08\u7537\u6027/\u5973\u6027\uFF09"},{field:"\u6027\u522B\u6BD4\u4F8B2010\uFF08\u7537\u6027/\u5973\u6027\uFF09"}]}]},container:{id:"AnalysisLayout",slot:"controls"}},{id:"FullscreenControl",type:"FullscreenControl",metadata:{name:"\u5730\u56FE\u5168\u5C4F"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MapViewSettingControl1",type:"MapViewSettingControl",metadata:{name:"\u5730\u56FE\u503E\u89D2"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LegendWidget1",type:"LegendWidget",metadata:{name:"\u56FE\u4F8B\u7EC4\u4EF6"},properties:{position:"topright",open:!0},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MapThemeControl",type:"MapThemeControl",metadata:{name:"\u5730\u56FE\u4E3B\u9898"},properties:{position:"bottomright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"ScaleControl",type:"ScaleControl",metadata:{name:"\u6BD4\u4F8B\u5C3A"},properties:{position:"leftbottom"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"ea0b8946-3e3d-4a87-a4a0-5dd08e7a2eed",type:"ExportImageControl",metadata:{name:"\u5BFC\u51FA\u56FE\u7247"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MiniChart_51f71f89-1f1a-4d98-b1db-662f127ea725",type:"MiniChart",metadata:{name:"\u5404\u7701\u4EFD\u4EBA\u53E3\u589E\u957F\u7387 (%)"},properties:{chartType:"column",sortBy:"y",orderBy:"ASC",aggregationMethod:"avel",datasetId:"9e4711d0-5d01-44ce-bde8-bfebe44ba007",xField:"\u7701",yField:"\u4EBA\u53E3\u589E\u957F\u7387\uFF08%\uFF09",adaptive:!1,chartWidth:800,chartHeight:274},container:{id:"AnalysisLayout",slot:"bottomPanel"}},{id:"MiniChart_4714ca90-0e28-4f6b-9c6f-475611968633",type:"MiniChart",metadata:{name:"\u5404\u57CE\u5E02\u4EBA\u53E3\u589E\u957F\u7387 (%)"},properties:{chartType:"column",sortBy:"y",orderBy:"ASC",aggregationMethod:"avel",datasetId:"9e4711d0-5d01-44ce-bde8-bfebe44ba007",xField:"\u57CE\u5E02",yField:"\u4EBA\u53E3\u589E\u957F\u7387\uFF08%\uFF09",adaptive:!1,chartWidth:1400,chartHeight:274},container:{id:"AnalysisLayout",slot:"bottomPanel"}}]}},L=k,S={version:"v0.1",metadata:{name:"\u4E2D\u56FD\u7B2C\u4E03\u6B21\u4EBA\u53E3\u666E\u67E5-\u7701\u4EFD\u4EBA\u53E3\u6027\u522B\u6BD4",creatTime:"2023-06-21 17:17:48",description:"\u4E2D\u56FD\u7B2C\u4E03\u6B21\u4EBA\u53E3\u666E\u67E5\u7701\u4EFD\u6570\u636E\uFF0C\u7EDF\u8BA1\u65F6\u95F4\u70B9\u4E3A 2020 \u5E74\u5E95\u3002\u6570\u636E\u6765\u6E90\uFF1Ahttps://github.com/leiii/census\u3002"},datasets:[{id:"1e06bfa2-3f0e-4dc3-9714-7f4e05aff82f",type:"remote",metadata:{name:"\u4E2D\u56FD\u7B2C\u4E03\u6B21\u4EBA\u53E3\u666E\u67E5-\u7701\u4EFD\u6570\u636E"},serviceType:"GET_FETCH_DATA_LIST",properties:{url:"https://mdn.alipayobjects.com/afts/file/A*JODYRJsGj2UAAAAAAAAAAAAADrd2AQ/census-provice.json",requestOptions:{method:"GET",headers:{}}}}],spec:{map:{basemap:"Gaode",config:{zoom:4,center:[109.41985,34.032325],pitch:0,bearing:0,style:"grey",WebGLParams:{preserveDrawingBuffer:!0},rotation:0,viewMode:"2D",dragRotate:!0,pitchWithRotate:!0},logoPosition:"leftbottom"},layers:[{id:"ChinaAdminLayer_fd790301-780b-4e56-a183-48dfa32f11c8",type:"ChinaAdminLayer",metadata:{name:"\u4E2D\u56FD\u7B2C\u4E03\u6B21\u4EBA\u53E3\u666E\u67E5-\u7701\u4EFD\u6570\u636E\u56FE\u5C42"},sourceConfig:{parser:{type:"json"},countryAdConfig:{countryGranularity:"province",countryAdType:"adcode",countryAdField:"\u533A\u5212\u4EE3\u7801"},datasetId:"1e06bfa2-3f0e-4dc3-9714-7f4e05aff82f"},visConfig:{fillColor:{field:"\u6027\u522B\u6BD4\uFF08\u5973=100\uFF09",value:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#4a1486"],scale:{type:"quantize",unknown:"#c0c0c0"},isReversed:!1},opacity:.8,strokeColor:"#a9abb1",lineWidth:.5,lineOpacity:.7,label:{visible:!1,style:{fill:"red",fontSize:14,textAnchor:"center",textOffset:[0,0]}},minZoom:0,maxZoom:24,blend:"normal",showNationalBorders:!1,showAdminLabel:!0,adminLabelColor:"#fff",adminLabelFontSize:12,adminLabelStroke:"#606060",adminLabelStrokeWidth:.5,state:{active:{strokeColor:"yellow",fillColor:!1},select:{fillColor:!1,strokeColor:"red"}},visible:!0}}],widgets:[{id:"AnalysisLayout",type:"AnalysisLayout",metadata:{name:"\u5E03\u5C40\u7EC4\u4EF6"},properties:{showFloatPanel:!1,showSidePanel:!1,showBottomPanel:!1}},{id:"AdministrativeSelectControl",type:"AdministrativeSelectControl",metadata:{name:"\u884C\u653F\u533A\u57DF\u9009\u62E9\u5668"},properties:{position:"lefttop",showBounds:!1},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LocationSearchControl",type:"LocationSearchControl",metadata:{name:"\u4F4D\u7F6E\u67E5\u8BE2"},properties:{position:"lefttop"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"ZoomControl1",type:"ZoomControl",metadata:{name:"\u7F29\u653E\u5668"},properties:{position:"bottomright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"PropertiesPanel",type:"PropertiesPanel",metadata:{name:"\u5C5E\u6027\u9762\u677F"},properties:{isOpen:!1,items:[{layerId:"ChinaAdminLayer_fd790301-780b-4e56-a183-48dfa32f11c8",datasetId:"\u4E2D\u56FD\u7B2C\u4E03\u6B21\u4EBA\u53E3\u666E\u67E5-\u7701\u4EFD\u6570\u636E_9680e6f7-7520-41ea-9149-20c3996c2d15",enable:!1}]},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LayerPopup",type:"LayerPopup",metadata:{name:"\u56FE\u5C42\u4FE1\u606F\u6846"},properties:{isOpen:!0,trigger:"click",items:[{layerId:"ChinaAdminLayer_fd790301-780b-4e56-a183-48dfa32f11c8",fields:[{field:"\u533A\u5212"},{field:"\u6027\u522B\u6BD4\uFF08\u5973=100\uFF09"},{field:"\u4EBA\u53E3\u6570_\u7537"},{field:"\u4EBA\u53E3\u6570_\u5973"},{field:"\u4EBA\u53E3\u6570_\u5408\u8BA1"},{field:"\u5C11\u6570\u6C11\u65CF\u4EBA\u53E3\u6BD4\u91CD\uFF08%\uFF09"},{field:"\u57CE\u9547\u4EBA\u53E3"},{field:"\u4E61\u6751\u4EBA\u53E3"},{field:"\u57CE\u533A\u4EBA\u53E3"}]}]},container:{id:"AnalysisLayout",slot:"controls"}},{id:"FullscreenControl",type:"FullscreenControl",metadata:{name:"\u5730\u56FE\u5168\u5C4F"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MapViewSettingControl1",type:"MapViewSettingControl",metadata:{name:"\u5730\u56FE\u503E\u89D2"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LegendWidget1",type:"LegendWidget",metadata:{name:"\u56FE\u4F8B\u7EC4\u4EF6"},properties:{position:"topright",open:!0},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MapThemeControl",type:"MapThemeControl",metadata:{name:"\u5730\u56FE\u4E3B\u9898"},properties:{position:"bottomright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"ScaleControl",type:"ScaleControl",metadata:{name:"\u6BD4\u4F8B\u5C3A"},properties:{position:"leftbottom"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"ea0b8946-3e3d-4a87-a4a0-5dd08e7a2eed",type:"ExportImageControl",metadata:{name:"\u5BFC\u51FA\u56FE\u7247"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MiniChart_9ef6fce2-7803-4537-9c09-05f4d962552c",type:"MiniChart",metadata:{name:"\u7701\u4EFD\u4EBA\u53E3\u6027\u522B\u6BD4\uFF08\u5973=100\uFF09"},properties:{chartType:"line",sortBy:"y",orderBy:"ASC",aggregationMethod:"sum",datasetId:"1e06bfa2-3f0e-4dc3-9714-7f4e05aff82f",xField:"\u533A\u5212",yField:"\u6027\u522B\u6BD4\uFF08\u5973=100\uFF09"},container:{id:"AnalysisLayout",slot:"bottomPanel"}}]}},P=S,I={version:"v0.1",metadata:{name:"\u5168\u56FD\u9AD8\u7B49\u5B66\u6821\u5206\u5E03",creatTime:"2023-07-01 12:47:13",description:"\u6570\u636E\u6765\u6E90\uFF1A\u6559\u80B2\u90E8 http://www.moe.gov.cn/jyb_xxgk/s5743/s5744/A03/202110/t20211025_574874.html"},datasets:[{id:"196055b3-7587-4d8e-aabd-5b1c76176bf4",type:"remote",metadata:{name:"\u5168\u56FD\u666E\u901A\u9AD8\u7B49\u5B66\u6821\u540D\u5355"},serviceType:"GET_FETCH_DATA_LIST",properties:{url:"https://mdn.alipayobjects.com/afts/file/A*ikZuSbVR6P4AAAAAAAAAAAAADrd2AQ/china-university-list.json",requestOptions:{method:"GET",headers:{}}}}],spec:{map:{basemap:"Gaode",config:{zoom:4.35,center:[108.309857,37.033557],pitch:0,bearing:0,style:"grey",WebGLParams:{preserveDrawingBuffer:!0},rotation:0,viewMode:"2D",dragRotate:!0,pitchWithRotate:!0,preserveDrawingBuffer:!0},logoPosition:"leftbottom"},layers:[{id:"ChinaAdminLayer_499be742-6e8b-478d-ae61-466679d9ddf4",type:"ChinaAdminLayer",metadata:{name:"\u9AD8\u6821\u7701\u4EFD\u56FE\u5C42"},sourceConfig:{parser:{type:"json"},countryAdConfig:{countryGranularity:"province",countryAdType:"adname",countryAdField:"\u6240\u5728\u57CE\u5E02"},datasetId:"196055b3-7587-4d8e-aabd-5b1c76176bf4"},visConfig:{fillColor:"#5d7092",opacity:.3,strokeColor:"#269a99",lineWidth:1,lineOpacity:1,label:{visible:!1,style:{fill:"red",fontSize:14,textAnchor:"center",textOffset:[0,0]}},minZoom:0,maxZoom:24,blend:"normal",showAdminLabel:!0,adminLabelColor:"#a9abb1",adminLabelFontSize:14,showNationalBorders:!1,adminLabelStroke:"#323232",adminLabelStrokeWidth:.5,state:{active:{strokeColor:"yellow",fillColor:!1},select:{fillColor:!1,strokeColor:"red"}},visible:!0}},{id:"BubbleLayer_989764c2-0f33-480b-b09a-f14ea8b8435d",type:"BubbleLayer",metadata:{name:"\u9AD8\u6821\u5206\u5E03\u56FE\u5C42"},sourceConfig:{parser:{type:"json",x:"\u7ECF\u5EA6",y:"\u7EAC\u5EA6"},datasetId:"196055b3-7587-4d8e-aabd-5b1c76176bf4"},visConfig:{zIndex:1,fillColor:{field:"\u529E\u5B66\u6027\u8D28",value:["#1b9e77","#d95f02","#7570b3","#e7298a"],scale:{type:"cat",unknown:"#c0c0c0"},isReversed:!1},opacity:1,strokeColor:"rgb(146, 112, 202)",lineWidth:0,lineOpacity:1,radius:5,label:{visible:!1,style:{fill:"#c0c0c0",fontSize:15,textAnchor:"center",textOffset:[0,0]}},minZoom:0,maxZoom:24,blend:"normal",state:{active:{fillColor:!1,strokeColor:"yellow"},select:{fillColor:!1,strokeColor:"red"}},visible:!0}}],widgets:[{id:"AnalysisLayout",type:"AnalysisLayout",metadata:{name:"\u5E03\u5C40\u7EC4\u4EF6"},properties:{showFloatPanel:!1,showSidePanel:!1,showBottomPanel:!1}},{id:"AdministrativeSelectControl",type:"AdministrativeSelectControl",metadata:{name:"\u884C\u653F\u533A\u57DF\u9009\u62E9\u5668"},properties:{position:"lefttop",showBounds:!1},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LocationSearchControl",type:"LocationSearchControl",metadata:{name:"\u4F4D\u7F6E\u67E5\u8BE2"},properties:{position:"lefttop"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"ZoomControl1",type:"ZoomControl",metadata:{name:"\u7F29\u653E\u5668"},properties:{position:"bottomright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"PropertiesPanel",type:"PropertiesPanel",metadata:{name:"\u5C5E\u6027\u9762\u677F"},properties:{isOpen:!1,items:[{layerId:"BubbleLayer_989764c2-0f33-480b-b09a-f14ea8b8435d",datasetId:"\u5168\u56FD\u666E\u901A\u9AD8\u7B49\u5B66\u6821\u540D\u5355_cc3884a2-51a1-42b1-b50b-94d1d808027a",enable:!1},{layerId:"ChinaAdminLayer_499be742-6e8b-478d-ae61-466679d9ddf4",datasetId:"\u5168\u56FD\u666E\u901A\u9AD8\u7B49\u5B66\u6821\u540D\u5355_cc3884a2-51a1-42b1-b50b-94d1d808027a",enable:!1}]},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LayerPopup",type:"LayerPopup",metadata:{name:"\u56FE\u5C42\u4FE1\u606F\u6846"},properties:{isOpen:!0,trigger:"hover",items:[{layerId:"BubbleLayer_989764c2-0f33-480b-b09a-f14ea8b8435d",fields:[{field:"\u5B66\u6821\u540D\u79F0"},{field:"\u5B66\u6821\u6807\u8BC6\u7801"},{field:"\u4E3B\u7BA1\u90E8\u95E8"},{field:"\u6240\u5728\u57CE\u5E02"},{field:"\u529E\u5B66\u5C42\u6B21"},{field:"\u529E\u5B66\u6027\u8D28"}]},{layerId:"ChinaAdminLayer_499be742-6e8b-478d-ae61-466679d9ddf4",fields:[]}]},container:{id:"AnalysisLayout",slot:"controls"}},{id:"FullscreenControl",type:"FullscreenControl",metadata:{name:"\u5730\u56FE\u5168\u5C4F"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LegendWidget1",type:"LegendWidget",metadata:{name:"\u56FE\u4F8B\u7EC4\u4EF6"},properties:{position:"topright",open:!0},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MapThemeControl",type:"MapThemeControl",metadata:{name:"\u5730\u56FE\u4E3B\u9898"},properties:{position:"bottomright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"ea0b8946-3e3d-4a87-a4a0-5dd08e7a2eed",type:"ExportImageControl",metadata:{name:"\u5BFC\u51FA\u56FE\u7247"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}}]}},E=I,$={version:"v0.1",metadata:{name:"\u75AB\u60C5\u524D\u540E\u5168\u56FD\u4EBA\u53E3\u6D41\u52A8\u7F51\u7EDC\u7A7A\u95F4\u683C\u5C40",creatTime:"2023-09-04 15:35:08",description:"\u5229\u7528\u4EBA\u53E3\u8FC1\u79FB\u6570\u636E\uFF0C\u7ED8\u5236\u5168\u56FD\u7684\u4EBA\u53E3\u6D41\u52A8\u7F51\u7EDC\uFF0C\u8BC6\u522B\u75AB\u60C5\u524D\u540E\u4EBA\u53E3\u6D41\u52A8\u7684\u5DEE\u5F02\uFF0C\u6570\u636E\u6765\u6E90\uFF1Ahttps://pattern.swarma.org/article/228"},datasets:[{id:"pos_00326cb0-a99e-4a6b-8fe5-289e6195a814",metadata:{name:"\u7701\u4F1A\u57CE\u5E02"},data:[{id:0,\u540D\u79F0:"\u5317\u4EAC",\u7ECF\u5EA6:116.405285,\u7EAC\u5EA6:39.904989},{id:1,\u540D\u79F0:"\u6210\u90FD",\u7ECF\u5EA6:104.066301,\u7EAC\u5EA6:30.572961},{id:2,\u540D\u79F0:"\u5E7F\u5DDE",\u7ECF\u5EA6:113.264499,\u7EAC\u5EA6:23.130061},{id:3,\u540D\u79F0:"\u8D35\u9633",\u7ECF\u5EA6:106.628201,\u7EAC\u5EA6:26.646694},{id:4,\u540D\u79F0:"\u54C8\u5C14\u6EE8",\u7ECF\u5EA6:126.53505,\u7EAC\u5EA6:45.802981},{id:5,\u540D\u79F0:"\u6D77\u53E3",\u7ECF\u5EA6:110.198418,\u7EAC\u5EA6:20.045805},{id:6,\u540D\u79F0:"\u676D\u5DDE",\u7ECF\u5EA6:120.210792,\u7EAC\u5EA6:30.246026},{id:7,\u540D\u79F0:"\u5408\u80A5",\u7ECF\u5EA6:117.227267,\u7EAC\u5EA6:31.820567},{id:8,\u540D\u79F0:"\u547C\u548C\u6D69\u7279",\u7ECF\u5EA6:111.748814,\u7EAC\u5EA6:40.842127},{id:9,\u540D\u79F0:"\u6D4E\u5357",\u7ECF\u5EA6:117.120128,\u7EAC\u5EA6:36.652069},{id:10,\u540D\u79F0:"\u6606\u660E",\u7ECF\u5EA6:102.833669,\u7EAC\u5EA6:24.88149},{id:11,\u540D\u79F0:"\u62C9\u8428",\u7ECF\u5EA6:91.171924,\u7EAC\u5EA6:29.653491},{id:12,\u540D\u79F0:"\u5170\u5DDE",\u7ECF\u5EA6:103.834228,\u7EAC\u5EA6:36.060798},{id:13,\u540D\u79F0:"\u5357\u4EAC",\u7ECF\u5EA6:118.796624,\u7EAC\u5EA6:32.059344},{id:14,\u540D\u79F0:"\u5357\u5B81",\u7ECF\u5EA6:108.366407,\u7EAC\u5EA6:22.8177},{id:15,\u540D\u79F0:"\u4E0A\u6D77",\u7ECF\u5EA6:121.472644,\u7EAC\u5EA6:31.231706},{id:16,\u540D\u79F0:"\u6C88\u9633",\u7ECF\u5EA6:123.464675,\u7EAC\u5EA6:41.677576},{id:17,\u540D\u79F0:"\u592A\u539F",\u7ECF\u5EA6:112.549656,\u7EAC\u5EA6:37.870451},{id:18,\u540D\u79F0:"\u5929\u6D25",\u7ECF\u5EA6:117.190182,\u7EAC\u5EA6:39.125596},{id:19,\u540D\u79F0:"\u4E4C\u9C81\u6728\u9F50",\u7ECF\u5EA6:87.616824,\u7EAC\u5EA6:43.825377},{id:20,\u540D\u79F0:"\u897F\u5B81",\u7ECF\u5EA6:101.777795,\u7EAC\u5EA6:36.616621},{id:21,\u540D\u79F0:"\u9999\u6E2F\u7279\u522B\u884C\u653F\u533A",\u7ECF\u5EA6:114.171203,\u7EAC\u5EA6:22.277468},{id:22,\u540D\u79F0:"\u957F\u6C99",\u7ECF\u5EA6:112.938882,\u7EAC\u5EA6:28.228304},{id:23,\u540D\u79F0:"\u90D1\u5DDE",\u7ECF\u5EA6:113.625351,\u7EAC\u5EA6:34.746303},{id:24,\u540D\u79F0:"\u91CD\u5E86",\u7ECF\u5EA6:106.550483,\u7EAC\u5EA6:29.563707},{id:25,\u540D\u79F0:"\u53F0\u6E7E",\u7ECF\u5EA6:121.509062,\u7EAC\u5EA6:25.044332},{id:26,\u540D\u79F0:"\u897F\u5B89",\u7ECF\u5EA6:108.939645,\u7EAC\u5EA6:34.343207},{id:27,\u540D\u79F0:"\u798F\u5DDE",\u7ECF\u5EA6:119.296411,\u7EAC\u5EA6:26.074286},{id:28,\u540D\u79F0:"\u94F6\u5DDD",\u7ECF\u5EA6:106.230977,\u7EAC\u5EA6:38.487783},{id:29,\u540D\u79F0:"\u957F\u6625",\u7ECF\u5EA6:125.323643,\u7EAC\u5EA6:43.816996},{id:30,\u540D\u79F0:"\u6FB3\u95E8\u7279\u522B\u884C\u653F\u533A",\u7ECF\u5EA6:113.543076,\u7EAC\u5EA6:22.186927},{id:31,\u540D\u79F0:"\u5357\u660C",\u7ECF\u5EA6:115.857972,\u7EAC\u5EA6:28.682976},{id:32,\u540D\u79F0:"\u77F3\u5BB6\u5E84",\u7ECF\u5EA6:114.514976,\u7EAC\u5EA6:38.042007},{id:33,\u540D\u79F0:"\u6B66\u6C49",\u7ECF\u5EA6:114.304569,\u7EAC\u5EA6:30.593354}],type:"local",columns:[{type:"number",name:"id"},{type:"string",name:"\u540D\u79F0"},{type:"number",name:"\u7ECF\u5EA6"},{type:"number",name:"\u7EAC\u5EA6"}]},{id:"2019_spatial_flow_486dd0\u2026-447a-98a6-0b212baf89d4",metadata:{name:"2019-11-30 \u4EBA\u53E3\u6D41\u52A8\u6570\u636E"},type:"remote",serviceType:"GET_FETCH_DATA_LIST",properties:{url:"https://mdn.alipayobjects.com/afts/file/A*qfanQqmu5nwAAAAAAAAAAAAADrd2AQ/2019-11-30",requestOptions:{method:"GET"}},columns:[{type:"number",name:"id"},{type:"number",name:"startCityAdcode"},{type:"number",name:"endCityAdcode"},{type:"string",name:"startCity"},{type:"string",name:"endCity"},{type:"number",name:"slon"},{type:"number",name:"slat"},{type:"number",name:"elon"},{type:"number",name:"elat"},{type:"number",name:"willIdx"},{type:"number",name:"realIdx"},{type:"string",name:"level"}]},{id:"2020_spatial_flow_9300b3ce-ac26-40f6-a294-359df6d3a411",metadata:{name:"2020-02-20 \u4EBA\u53E3\u6D41\u52A8\u6570\u636E"},type:"remote",serviceType:"GET_FETCH_DATA_LIST",properties:{url:"https://mdn.alipayobjects.com/afts/file/A*rDijQajQPWgAAAAAAAAAAAAADrd2AQ/2020-02-20.json",requestOptions:{method:"GET"}},columns:[{type:"number",name:"id"},{type:"number",name:"startCityAdcode"},{type:"number",name:"endCityAdcode"},{type:"string",name:"startCity"},{type:"string",name:"endCity"},{type:"number",name:"slon"},{type:"number",name:"slat"},{type:"number",name:"elon"},{type:"number",name:"elat"},{type:"number",name:"willIdx"},{type:"number",name:"realIdx"},{type:"string",name:"level"}]}],spec:{map:{basemap:"Gaode",config:{zoom:3.74,center:[107.97437,38.531811],pitch:0,bearing:0,style:"grey",WebGLParams:{preserveDrawingBuffer:!0},preserveDrawingBuffer:!0}},layers:[{id:"ChinaAdminLayer_e740c737-532c-4dbf-b467-67a7381b648f",type:"ChinaAdminLayer",metadata:{name:"\u533A\u57DF\u56FE\u5C42"},sourceConfig:{parser:{type:"json"},countryAdConfig:{countryGranularity:"province",countryAdType:"adcode",countryAdField:"\u540D\u79F0"},datasetId:"pos_00326cb0-a99e-4a6b-8fe5-289e6195a814"},visConfig:{fillColor:"#7b807d",opacity:.5,strokeColor:"#232424",lineWidth:1,lineOpacity:.2,label:{visible:!1,style:{fill:"#a9abb1",fontSize:14,textAnchor:"center",textOffset:[0,0]}},minZoom:0,maxZoom:24,blend:"normal",showAdminLabel:!0,adminLabelColor:"#c6c5c5",adminLabelFontSize:14,showNationalBorders:!1,adminLabelStroke:"#323232",adminLabelStrokeWidth:.5,state:{active:!1},visible:!0,zIndex:1}},{id:"LineLayer_7a1206e5-7857-4a4e-a628-9aaf3d758f64",type:"LineLayer",metadata:{name:"2019-11-30 \u4EBA\u53E3\u6D41\u52A8\u6570\u636E"},sourceConfig:{parser:{type:"json",x:"slon",y:"slat",x1:"elon",y1:"elat"},datasetId:"2019_spatial_flow_486dd0\u2026-447a-98a6-0b212baf89d4"},visConfig:{size:{field:"realIdx",value:[1,3]},color:{field:"level",value:["#ffffff14","#0700ff81","#ff0000cb"],scale:{type:"cat"},isReversed:!0},style:{opacity:.6,lineType:"solid"},minZoom:0,maxZoom:24,blend:"normal",state:{active:{color:"yellow"}},visible:!0,zIndex:2}},{id:"LineLayer_7a1206e5-7857-4a4e-a628-9aaf3d758f64_192d4534-0045-410c-bf65-8e3641a52949",type:"LineLayer",metadata:{name:"2020-02-20 \u4EBA\u53E3\u6D41\u52A8\u6570\u636E"},sourceConfig:{parser:{type:"json",x:"slon",y:"slat",x1:"elon",y1:"elat"},datasetId:"2020_spatial_flow_9300b3ce-ac26-40f6-a294-359df6d3a411"},visConfig:{size:{field:"realIdx",value:[1,3]},color:{field:"level",value:["#ffffff14","#0700ff81","#ff0000cb"],scale:{type:"cat"},isReversed:!0},style:{opacity:.6,lineType:"solid"},minZoom:0,maxZoom:24,blend:"normal",state:{active:{color:"yellow"}},visible:!1,zIndex:3}},{id:"BubbleLayer_d630f924-8ea5-4ba3-a437-bdb21b052333_154b2ecb-d1f9-4082-8bb8-295656a74e7b",type:"BubbleLayer",metadata:{name:"\u7701\u4F1A\u57CE\u5E02\u56FE\u5C42"},sourceConfig:{parser:{type:"json",x:"\u7ECF\u5EA6",y:"\u7EAC\u5EA6"},datasetId:"pos_00326cb0-a99e-4a6b-8fe5-289e6195a814"},visConfig:{fillColor:"#2078b4",opacity:1,strokeColor:"#252426",lineWidth:1,lineOpacity:1,radius:5,label:{visible:!1,style:{fill:"#0d0c0c",fontSize:17,textAnchor:"top-left",textOffset:[0,12]}},minZoom:0,maxZoom:24,blend:"normal",state:{active:{fillColor:!1,strokeColor:"yellow"},select:{fillColor:!1,strokeColor:"red"}},visible:!0,zIndex:4}}],widgets:[{id:"AnalysisLayout",type:"AnalysisLayout",metadata:{name:"\u5E03\u5C40\u7EC4\u4EF6"},properties:{showFloatPanel:!1,showSidePanel:!1,showBottomPanel:!1}},{id:"AdministrativeSelectControl",type:"AdministrativeSelectControl",metadata:{name:"\u884C\u653F\u533A\u57DF\u9009\u62E9\u5668"},properties:{position:"lefttop"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LocationSearchControl",type:"LocationSearchControl",metadata:{name:"\u4F4D\u7F6E\u67E5\u8BE2"},properties:{position:"lefttop"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"ZoomControl",type:"ZoomControl",metadata:{name:"\u7F29\u653E\u5668"},properties:{position:"bottomright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"PropertiesPanel",type:"PropertiesPanel",metadata:{name:"\u5C5E\u6027\u9762\u677F"},properties:{isOpen:!1,items:[]},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LayerPopup",type:"LayerPopup",metadata:{name:"\u56FE\u5C42\u4FE1\u606F\u6846"},properties:{isOpen:!0,trigger:"hover",items:[{layerId:"BubbleLayer_d630f924-8ea5-4ba3-a437-bdb21b052333",fields:[]},{layerId:"LineLayer_7a1206e5-7857-4a4e-a628-9aaf3d758f64",fields:[]}]},container:{id:"AnalysisLayout",slot:"controls"}},{id:"FullscreenControl",type:"FullscreenControl",metadata:{name:"\u5730\u56FE\u5168\u5C4F"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LegendWidget",type:"LegendWidget",metadata:{name:"\u56FE\u4F8B\u7EC4\u4EF6"},properties:{position:"topright",open:!0},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MapThemeControl",type:"MapThemeControl",metadata:{name:"\u5730\u56FE\u4E3B\u9898"},properties:{position:"bottomright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"ea0b8946-3e3d-4a87-a4a0-5dd08e7a2eed",type:"ExportImageControl",metadata:{name:"\u5BFC\u51FA\u56FE\u7247"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}}]}},K=$,U={version:"v0.2",metadata:{name:"Earthquake \u53EF\u89C6\u5206\u6790\u6848\u4F8B",description:"Earthquake \u7B49\u7EA7\u4E0E\u9707\u6DF1\u5206\u5E03\u60C5\u51B5",creatTime:"2022-09-19 16:29:09"},datasets:[{id:"datasetId_1",metadata:{name:"Earthquake \u6570\u636E"},data:[{lng:105.005,lat:32.349,lnglat:"105.005, 32.349",depth:10,mag:5.2,time:1212640865530,title:"M 5.2 - Sichuan-Gansu border region, China"},{lng:104.602,lat:32.067,lnglat:"104.602, 32.067",depth:10,mag:5,time:1212462569360,title:"M 5.0 - Sichuan-Gansu border region, China"},{lng:105.272,lat:32.451,lnglat:"105.272, 32.451",depth:10,mag:5.2,time:1211177214760,title:"M 5.2 - Sichuan-Gansu border region, China"},{lng:105.042,lat:32.402,lnglat:"105.042, 32.402",depth:10,mag:5,time:1211170138690,title:"M 5.0 - Sichuan-Gansu border region, China"},{lng:104.982,lat:32.24,lnglat:"104.982, 32.24",depth:9,mag:5.8,time:1211044105480,title:"M 5.8 - Sichuan-Gansu border region, China"},{lng:103.665,lat:31.29,lnglat:"103.665, 31.29",depth:10,mag:5,time:1210969012190,title:"M 5.0 - eastern Sichuan, China"},{lng:103.351,lat:31.355,lnglat:"103.351, 31.355",depth:3,mag:5.6,time:1210915547320,title:"M 5.6 - eastern Sichuan, China"},{lng:104.214,lat:31.66,lnglat:"104.214, 31.66",depth:10,mag:5.1,time:1210798867e3,title:"M 5.1 - eastern Sichuan, China"},{lng:104.014,lat:31.356,lnglat:"104.014, 31.356",depth:10,mag:5.1,time:1210757203950,title:"M 5.1 - eastern Sichuan, China"},{lng:104.032,lat:31.996,lnglat:"104.032, 31.996",depth:10,mag:5.1,time:1210744497980,title:"M 5.1 - eastern Sichuan, China"},{lng:103.518,lat:31.325,lnglat:"103.518, 31.325",depth:18.8,mag:5.4,time:1210733679980,title:"M 5.4 - eastern Sichuan, China"},{lng:105.275,lat:32.416,lnglat:"105.275, 32.416",depth:10,mag:5,time:1210663156260,title:"M 5.0 - Sichuan-Gansu border region, China"},{lng:103.194,lat:30.89,lnglat:"103.194, 30.89",depth:9,mag:5.8,time:1210662428500,title:"M 5.8 - eastern Sichuan, China"},{lng:103.682,lat:31.205,lnglat:"103.682, 31.205",depth:10,mag:5,time:1210647638330,title:"M 5.0 - eastern Sichuan, China"},{lng:103.53,lat:31.298,lnglat:"103.53, 31.298",depth:10,mag:5.1,time:1210636486860,title:"M 5.1 - eastern Sichuan, China"},{lng:103.527,lat:31.282,lnglat:"103.527, 31.282",depth:10,mag:5.2,time:1210635978970,title:"M 5.2 - eastern Sichuan, China"},{lng:104.454,lat:31.746,lnglat:"104.454, 31.746",depth:32.7,mag:5.3,time:1210625134820,title:"M 5.3 - eastern Sichuan, China"},{lng:103.889,lat:31.413,lnglat:"103.889, 31.413",depth:21.7,mag:5.6,time:1210622930430,title:"M 5.6 - eastern Sichuan, China"},{lng:103.524,lat:31.178,lnglat:"103.524, 31.178",depth:34.8,mag:5,time:1210614875910,title:"M 5.0 - eastern Sichuan, China"},{lng:103.514,lat:31.058,lnglat:"103.514, 31.058",depth:10,mag:5,time:1210606133440,title:"M 5.0 - eastern Sichuan, China"},{lng:104.575,lat:31.952,lnglat:"104.575, 31.952",depth:10,mag:5.1,time:1210604939660,title:"M 5.1 - eastern Sichuan, China"},{lng:103.692,lat:31.243,lnglat:"103.692, 31.243",depth:17.4,mag:5,time:1210604731260,title:"M 5.0 - eastern Sichuan, China"},{lng:104.65,lat:32.12,lnglat:"104.65, 32.12",depth:18.3,mag:5,time:1210601727380,title:"M 5.0 - Sichuan-Gansu border region, China"},{lng:103.511,lat:31.028,lnglat:"103.511, 31.028",depth:10,mag:5,time:1210599654130,title:"M 5.0 - eastern Sichuan, China"},{lng:103.618,lat:31.214,lnglat:"103.618, 31.214",depth:10,mag:6.1,time:1210590662480,title:"M 6.1 - eastern Sichuan, China"},{lng:103.365,lat:30.966,lnglat:"103.365, 30.966",depth:10,mag:5,time:1210587820080,title:"M 5.0 - eastern Sichuan, China"},{lng:104.092,lat:31.527,lnglat:"104.092, 31.527",depth:10,mag:5.5,time:1210585344860,title:"M 5.5 - eastern Sichuan, China"},{lng:103.682,lat:31.206,lnglat:"103.682, 31.206",depth:10,mag:5,time:1210583220430,title:"M 5.0 - eastern Sichuan, China"},{lng:104.052,lat:31.503,lnglat:"104.052, 31.503",depth:10,mag:5,time:1210580499930,title:"M 5.0 - eastern Sichuan, China"},{lng:103.53,lat:31.1,lnglat:"103.53, 31.1",depth:10,mag:5,time:1210579858350,title:"M 5.0 - eastern Sichuan, China"},{lng:103.625,lat:31.243,lnglat:"103.625, 31.243",depth:10,mag:5.1,time:1210577682540,title:"M 5.1 - eastern Sichuan, China"},{lng:105.134,lat:32.165,lnglat:"105.134, 32.165",depth:10,mag:5,time:1210575905390,title:"M 5.0 - Sichuan-Gansu border region, China"},{lng:104.217,lat:31.636,lnglat:"104.217, 31.636",depth:10,mag:5.3,time:1210575694040,title:"M 5.3 - eastern Sichuan, China"},{lng:104.908,lat:32.195,lnglat:"104.908, 32.195",depth:10,mag:5,time:1210575642660,title:"M 5.0 - Sichuan-Gansu border region, China"},{lng:103.646,lat:31.216,lnglat:"103.646, 31.216",depth:10,mag:5,time:1210575628970,title:"M 5.0 - eastern Sichuan, China"},{lng:104.638,lat:31.857,lnglat:"104.638, 31.857",depth:10,mag:5.1,time:1210575454870,title:"M 5.1 - eastern Sichuan, China"},{lng:103.747,lat:31.146,lnglat:"103.747, 31.146",depth:10,mag:5.3,time:1210575258100,title:"M 5.3 - eastern Sichuan, China"},{lng:105.202,lat:32.372,lnglat:"105.202, 32.372",depth:10,mag:5.1,time:1210575210090,title:"M 5.1 - Sichuan-Gansu border region, China"},{lng:104.481,lat:31.906,lnglat:"104.481, 31.906",depth:10,mag:5.1,time:1210575036930,title:"M 5.1 - eastern Sichuan, China"},{lng:105.234,lat:32.436,lnglat:"105.234, 32.436",depth:10,mag:5.3,time:1210574939120,title:"M 5.3 - Sichuan-Gansu border region, China"},{lng:104.705,lat:31.272,lnglat:"104.705, 31.272",depth:10,mag:5.4,time:1210574637160,title:"M 5.4 - eastern Sichuan, China"},{lng:103.715,lat:31.211,lnglat:"103.715, 31.211",depth:10,mag:5.8,time:1210574594360,title:"M 5.8 - eastern Sichuan, China"},{lng:104.682,lat:31.342,lnglat:"104.682, 31.342",depth:10,mag:5.7,time:1210574528950,title:"M 5.7 - eastern Sichuan, China"},{lng:104.032,lat:31.586,lnglat:"104.032, 31.586",depth:10,mag:5.7,time:1210574516e3,title:"M 5.7 - eastern Sichuan, China"},{lng:104.787,lat:31.968,lnglat:"104.787, 31.968",depth:10,mag:5.2,time:1210574486530,title:"M 5.2 - eastern Sichuan, China"},{lng:103.322,lat:31.002,lnglat:"103.322, 31.002",depth:19,mag:7.9,time:1210573681570,title:"M 7.9 - eastern Sichuan, China"}],type:"local",columns:[]}],spec:{map:{basemap:"Gaode",config:{zoom:8,center:[104.215504,31.663526],pitch:0,bearing:0,style:"dark",WebGLParams:{preserveDrawingBuffer:!0}}},layers:[{id:"my-bubble-layer",type:"BubbleLayer",metadata:{name:"Earthquake \u5206\u5E03\u56FE\u5C42"},sourceConfig:{datasetId:"datasetId_1",parser:{type:"json",x:"lng",y:"lat"}},visConfig:{visible:!0,blend:"normal",autoFit:!1,maxZoom:24,minZoom:0,radius:{field:"depth",value:[13,36]},fillColor:{field:"mag",value:["#eff3ff","#bdd7e7","#6baed6","#3182bd","#08519c"],scale:{type:"quantize"}},opacity:.8,strokeColor:"rgb(146, 112, 202)",lineWidth:0,lineOpacity:1,state:{active:{fillColor:!1,strokeColor:"#FFF684"},select:{fillColor:!1,strokeColor:"red"}},label:{field:"",visible:!1,style:{fill:"#454d64",fontSize:14,stroke:"#fff",strokeWidth:0,textAnchor:"center",textOffset:[0,0]}}}}],widgets:[{id:"AnalysisLayout",type:"AnalysisLayout",metadata:{name:"\u5E03\u5C40\u7EC4\u4EF6"},properties:{showFloatPanel:!1,showSidePanel:!1,showBottomPanel:!1}},{id:"AdministrativeSelectControl",type:"AdministrativeSelectControl",metadata:{name:"\u884C\u653F\u533A\u57DF\u9009\u62E9\u5668"},properties:{position:"lefttop"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LocationSearchControl1",type:"LocationSearchControl",metadata:{name:"\u4F4D\u7F6E\u67E5\u8BE2"},properties:{position:"lefttop"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"ZoomControl1",type:"ZoomControl",metadata:{name:"\u7F29\u653E\u5668"},properties:{position:"bottomright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"PropertiesPanel",type:"PropertiesPanel",metadata:{name:"\u5C5E\u6027\u9762\u677F"},properties:{isOpen:!1,items:[{layerId:"my-bubble-layer",datasetId:"datasetId_1",enable:!1}]},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LayerPopup",type:"LayerPopup",metadata:{name:"\u56FE\u5C42\u4FE1\u606F\u6846"},properties:{isOpen:!0,trigger:"hover",items:[{layerId:"my-bubble-layer",fields:[{field:"lng",formatField:"lng"},{field:"lat",formatField:"lat"},{field:"depth",formatField:"depth"},{field:"mag",formatField:"mag"},{field:"time",formatField:"time"},{field:"title",formatField:"title"}]}]},container:{id:"AnalysisLayout",slot:"controls"}},{id:"FullscreenControl1",type:"FullscreenControl",metadata:{name:"\u5730\u56FE\u5168\u5C4F"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MapViewSettingControl1",type:"MapViewSettingControl",metadata:{name:"\u5730\u56FE\u503E\u89D2"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LegendWidget1",type:"LegendWidget",metadata:{name:"\u56FE\u4F8B\u7EC4\u4EF6"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MapThemeControl2",type:"MapThemeControl",metadata:{name:"\u5730\u56FE\u4E3B\u9898"},properties:{position:"bottomright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MouseLocationControl4",type:"MouseLocationControl",metadata:{name:"\u5149\u6807\u7ECF\u7EAC\u5EA6"},properties:{position:"bottomleft"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"ScaleControl3",type:"ScaleControl",metadata:{name:"\u6BD4\u4F8B\u5C3A"},properties:{position:"bottomleft"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"ExportImageControl_ea0b8946-3e3d-4a87-a4a0-5dd08e7a2eed",type:"ExportImageControl",metadata:{name:"\u5BFC\u51FA\u56FE\u7247"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MiniChart_0b419c39-0c9a-4cd4-b8c9-333dc4097e37",type:"MiniChart",metadata:{name:"Earthquake \u6DF1\u5EA6\u6298\u7EBF\u56FE"},properties:{datasetId:"datasetId_1",chartType:"line",xField:"time",yField:"depth"},container:{id:"AnalysisLayout",slot:"bottomPanel"}},{id:"MiniChart_dddef795-2b48-408e-b612-5e29816c58a0",type:"MiniChart",metadata:{name:"Earthquake \u6DF1\u5EA6\u67F1\u72B6\u56FE"},properties:{datasetId:"datasetId_1",chartType:"column",xField:"time",yField:"mag"},container:{id:"AnalysisLayout",slot:"bottomPanel"}}]}},X=U,ee={version:"v0.1",metadata:{name:"\u6D77\u6D0B\u4FDD\u62A4\u533A\u5206\u5E03",creatTime:"2022-12-16 16:04:51",description:"\u53EF\u89C6\u5316\u4E2D\u56FD\u6D77\u6D0B\u4FDD\u62A4\u533A\u5730\u57DF\u5206\u5E03\uFF0C\u6D77\u6D0B\u4FDD\u62A4\u533A\u5206\u7C7B\u4E3A\uFF1A\u6C34\u4EA7\u79CD\u8D28\u8D44\u6E90\u4FDD\u62A4\u533A\u3001\u6D77\u6D0B\u81EA\u7136\u4FDD\u62A4\u533A\u3001\u6D77\u6D0B\u516C\u56ED\u3001\u7279\u522B\u6D77\u6D0B\u4FDD\u62A4\u533A\u7684\u3002"},datasets:[{id:"online-map-of-Marine-protected-areas",type:"remote",metadata:{name:"\u6D77\u6D0B\u4FDD\u62A4\u533A\u5206\u5E03"},serviceType:"GET_FETCH_DATA_LIST",properties:{url:"https://mdn.alipayobjects.com/afts/file/A*MLyCRY9Z5DUAAAAAAAAAAAAADrd2AQ/marine-protected-areas.json",requestOptions:{method:"GET",headers:{}}}}],spec:{map:{basemap:"Gaode",config:{zoom:5,center:[117.392917,30.473057],pitch:15,bearing:0,style:"dark",WebGLParams:{preserveDrawingBuffer:!0},rotation:0,viewMode:"2D",dragRotate:!0,pitchWithRotate:!0},logoPosition:"leftbottom"},layers:[{id:"IconLayer_online-map-of-Marine-protected-areas",type:"IconLayer",metadata:{name:"\u6D77\u6D0B\u4FDD\u62A4\u533A\u56FE\u5C42"},sourceConfig:{parser:{type:"json",x:"Longitude",y:"Latitude"},datasetId:"online-map-of-Marine-protected-areas"},visConfig:{blend:"normal",icon:{field:"Type",value:["other_aquatic-germplasm-reserve","other_marine-nature-reserves","other_marine-park","other_special-marinep-protected-areas"],scale:{type:"cat",domain:["Aquatic Germplasm Reserve","Marine Nature Reserves","Marine Park","Special Marine Protected Areas"],unknown:"unknown_icon"}},iconAtlas:{"other_aquatic-germplasm-reserve":"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*sSbCRKP1RsgAAAAAAAAAAAAADmJ7AQ/original","other_marine-nature-reserves":"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*dPoYQoBq4f0AAAAAAAAAAAAADmJ7AQ/original","other_marine-park":"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*on7pR5VRjHsAAAAAAAAAAAAADmJ7AQ/original","other_special-marinep-protected-areas":"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*DulySrR5zuwAAAAAAAAAAAAADmJ7AQ/original",unknown_icon:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*EcQZS6JM69EAAAAAAAAAAAAADmJ7AQ/original"},iconStyle:{opacity:.9},label:{field:void 0,style:{fill:"#c0c0c0",fontSize:12,textAnchor:"center",textOffset:[0,0]},visible:!1},maxZoom:24,minZoom:0,radius:12,state:{active:!1},visible:!0}}],widgets:[{id:"AnalysisLayout",type:"AnalysisLayout",metadata:{name:"\u5E03\u5C40\u7EC4\u4EF6"},properties:{showFloatPanel:!1,showSidePanel:!1,showBottomPanel:!1}},{id:"LocationSearchControl1",type:"LocationSearchControl",metadata:{name:"\u4F4D\u7F6E\u67E5\u8BE2"},properties:{position:"lefttop"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"ZoomControl1",type:"ZoomControl",metadata:{name:"\u7F29\u653E\u5668"},properties:{position:"bottomright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"FullscreenControl1",type:"FullscreenControl",metadata:{name:"\u5730\u56FE\u5168\u5C4F"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MapViewSettingControl1",type:"MapViewSettingControl",metadata:{name:"\u5730\u56FE\u503E\u89D2"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LegendWidget1",type:"LegendWidget",metadata:{name:"\u56FE\u4F8B\u7EC4\u4EF6"},properties:{position:"topright",open:!0},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MapThemeControl2",type:"MapThemeControl",metadata:{name:"\u5730\u56FE\u4E3B\u9898"},properties:{position:"bottomright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MouseLocationControl4",type:"MouseLocationControl",metadata:{name:"\u5149\u6807\u7ECF\u7EAC\u5EA6"},properties:{position:"bottomleft"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"ScaleControl3",type:"ScaleControl",metadata:{name:"\u6BD4\u4F8B\u5C3A"},properties:{position:"bottomleft"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LayerPopup",type:"LayerPopup",metadata:{name:"\u56FE\u5C42\u4FE1\u606F\u6846"},properties:{isOpen:!0,trigger:"hover",items:[{layerId:"IconLayer_online-map-of-Marine-protected-areas",fields:[{field:"ChineseName"},{field:"Type"},{field:"Province"},{field:"Sea"}]}]},container:{id:"AnalysisLayout",slot:"controls"}}]}},te=ee,ae={version:"v0.1",metadata:{name:"\u4E0A\u6D77\u676D\u5DDE\u5357\u4EAC\u53CA\u5468\u8FB9\u65B0\u697C\u76D8",creatTime:"2023-10-16 20:59:27",description:"\u5730\u56FE\u4E0A\u6807\u8BC6\u51FA\u697C\u76D8\u7684\u5206\u5E03\u60C5\u51B5\uFF0C\u70B9\u7684\u5927\u5C0F\u8868\u793A\u5E73\u5747\u603B\u4EF7\uFF0C\u70B9\u989C\u8272\u6DF1\u6D45\u8868\u793A\u5747\u4EF7\uFF0C\u4ECE\u65F6\u95F4\u53D8\u5316\u548C\u7A7A\u95F4\u5206\u5E03\u7684\u89C6\u89D2\uFF0C\u6BCF\u5E74\u65B0\u697C\u76D8\u7684\u5206\u5E03\u53CA\u4EF7\u683C\u53D8\u5316\u7B49\u8D8B\u52BF\u3002",assetPackageIds:["@antv/li-core-assets","@antv/li-analysis-assets"]},datasets:[{id:"22f4b25e8e8-06f6-4c8b-9c56-7b3194101d62",metadata:{name:"\u6C5F\u6D59\u6CAA\u65B0\u697C\u76D8\u6570\u636E"},type:"remote",columns:[{type:"string",name:"_id"},{type:"string",name:"\u697C\u76D8\u540D"},{type:"string",name:"\u5730\u5740"},{type:"string",name:"\u5C0F\u533A\u540D\u79F0"},{type:"string",name:"\u57CE\u5E02\u540D\u79F0"},{type:"string",name:"\u5F00\u53D1\u5546"},{type:"string",name:"\u8857\u533A\u540D\u79F0"},{type:"string",name:"\u623F\u5C4B\u6B3E\u578B"},{type:"string",name:"\u623F\u5C4B\u7C7B\u522B"},{type:"number",name:"\u7EAC\u5EA6"},{type:"number",name:"\u7ECF\u5EA6"},{type:"number",name:"\u5747\u4EF7(\u5143/\u5E73\u7C73)"},{type:"number",name:"\u53C2\u8003\u603B\u4EF7(\u4E07\u5143)"},{type:"date",name:"\u5F00\u76D8\u65E5\u671F",format:"YYYY-MM-DD"},{type:"date",name:"\u623F\u4EF7\u786E\u8BA4\u65F6\u95F4",format:"YYYY/MM/DD HH:mm:ss"},{type:"string",name:"\u7269\u4E1A\u516C\u53F8"},{type:"string",name:"\u623F\u5C4B\u7167\u7247"}],filter:{relation:"AND",children:[{id:"98e123c7-102b-c762-ce71-3b235d2ed64b",type:"number",field:"\u5747\u4EF7(\u5143/\u5E73\u7C73)",operator:">",value:0},{id:"7dd5ca42-6fb2-ceb4-dbbb-95061d53980c",type:"number",field:"\u53C2\u8003\u603B\u4EF7(\u4E07\u5143)",operator:">",value:0},{id:"9c1b2298-d22a-fc24-b9d9-38bf1e61859e",type:"string",field:"\u57CE\u5E02\u540D\u79F0",operator:"IN",value:["\u4E0A\u6D77\u5E02","\u676D\u5DDE\u5E02","\u82CF\u5DDE\u5E02","\u6E56\u5DDE\u5E02","\u5609\u5174\u5E02","\u65E0\u9521\u5E02","\u5B81\u6CE2\u5E02","\u5E38\u5DDE\u5E02","\u821F\u5C71\u5E02","\u5357\u901A\u5E02","\u5357\u4EAC\u5E02","\u9547\u6C5F\u5E02","\u626C\u5DDE\u5E02","\u7ECD\u5174\u5E02"]},{id:"19045560-7474-ebee-0a79-f7a0700e9f8a",type:"string",field:"\u623F\u5C4B\u7C7B\u522B",operator:"IN",value:["\u4F4F\u5B85"]}]},serviceType:"GET_FETCH_DATA_LIST",properties:{url:"https://mdn.alipayobjects.com/afts/file/A*bcirT44OXmcAAAAAAAAAAAAADrd2AQ/new-housing-data-in-jzh.json",requestOptions:{method:"GET",headers:{}}}}],spec:{map:{basemap:"Gaode",config:{zoom:8.16,center:[119.679625,31.277315],pitch:0,bearing:0,style:"dark",WebGLParams:{preserveDrawingBuffer:!0},rotation:0,viewMode:"2D",dragRotate:!0,pitchWithRotate:!0},logoPosition:"leftbottom"},layers:[{id:"BubbleLayer_09d0f372-3b28-451e-902a-ae3f62181c68",type:"BubbleLayer",metadata:{name:"\u5468\u8FB9\u57CE\u5E02\u65B0\u697C\u76D8\u5747\u4EF7"},sourceConfig:{parser:{type:"json",x:"\u7ECF\u5EA6",y:"\u7EAC\u5EA6"},datasetId:"22f4b25e8e8-06f6-4c8b-9c56-7b3194101d62"},visConfig:{fillColor:{field:"\u5747\u4EF7(\u5143/\u5E73\u7C73)",value:["#ffffcc","#d9f0a3","#addd8e","#78c679","#31a354","#006837"],scale:{type:"quantile",unknown:"#c0c0c0"},isReversed:!1},opacity:.8,strokeColor:"rgb(146, 112, 202)",lineWidth:0,lineOpacity:1,radius:{field:"\u53C2\u8003\u603B\u4EF7(\u4E07\u5143)",value:[8,16]},label:{visible:!1,style:{fill:"#c0c0c0",fontSize:15,textAnchor:"center",textOffset:[0,0]}},minZoom:0,maxZoom:24,blend:"normal",state:{active:{fillColor:!1,strokeColor:"yellow"},select:{fillColor:!1,strokeColor:"red"}},visible:!0}}],widgets:[{id:"AnalysisLayout",type:"AnalysisLayout",metadata:{name:"\u5E03\u5C40\u7EC4\u4EF6"},properties:{showFloatPanel:!1,showSidePanel:!1,showBottomPanel:!1}},{id:"AdministrativeSelectControl",type:"AdministrativeSelectControl",metadata:{name:"\u884C\u653F\u533A\u57DF\u9009\u62E9\u5668"},properties:{position:"lefttop"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LocationSearchControl",type:"LocationSearchControl",metadata:{name:"\u4F4D\u7F6E\u67E5\u8BE2"},properties:{position:"lefttop"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"ZoomControl1",type:"ZoomControl",metadata:{name:"\u7F29\u653E\u5668"},properties:{position:"bottomleft",showZoom:!0},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LayerPopup",type:"LayerPopup",metadata:{name:"\u4FE1\u606F\u6846"},properties:{isOpen:!0,trigger:"hover",items:[{layerId:"BubbleLayer_09d0f372-3b28-451e-902a-ae3f62181c68",fields:[{field:"\u697C\u76D8\u540D"},{field:"\u5730\u5740"},{field:"\u5747\u4EF7(\u5143/\u5E73\u7C73)"},{field:"\u53C2\u8003\u603B\u4EF7(\u4E07\u5143)"},{field:"\u5F00\u76D8\u65E5\u671F"},{field:"\u623F\u5C4B\u7C7B\u522B"},{field:"\u5F00\u53D1\u5546"},{field:"\u57CE\u5E02\u540D\u79F0"},{field:"\u623F\u5C4B\u7167\u7247"}]}]},container:{id:"AnalysisLayout",slot:"controls"}},{id:"FullscreenControl",type:"FullscreenControl",metadata:{name:"\u5730\u56FE\u5168\u5C4F"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LegendWidget1",type:"LegendWidget",metadata:{name:"\u56FE\u4F8B\u7EC4\u4EF6"},properties:{position:"topright",open:!0},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MapThemeControl",type:"MapThemeControl",metadata:{name:"\u5730\u56FE\u4E3B\u9898"},properties:{position:"bottomleft"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"ea0b8946-3e3d-4a87-a4a0-5dd08e7a2eed",type:"ExportImageControl",metadata:{name:"\u5BFC\u51FA\u56FE\u7247"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MiniChart_e1ff393a-13b7-47ce-b0b2-0eb8d1a6607a",type:"MiniChart",metadata:{name:"\u57CE\u5E02\u697C\u76D8\u5747\u4EF7\u8D70\u52BF\uFF08\u5143/\u5E73\u7C73\uFF09"},properties:{chartType:"column",adaptive:!1,aggregationMethod:"avel",sortBy:"default",orderBy:"ASC",datasetId:"22f4b25e8e8-06f6-4c8b-9c56-7b3194101d62",xField:"\u57CE\u5E02\u540D\u79F0",yField:"\u5747\u4EF7(\u5143/\u5E73\u7C73)",chartWidth:760,chartHeight:274},container:{id:"AnalysisLayout",slot:"bottomPanel"}},{id:"TimeLine_a9460760-6dc9-4eaf-8d4f-892a797159c9",type:"TimeLine",metadata:{name:"\u65F6\u95F4\u8F74"},properties:{datasetId:"22f4b25e8e8-06f6-4c8b-9c56-7b3194101d62",dateField:"\u5F00\u76D8\u65E5\u671F",dateGranularity:"YYYY-MM"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MiniChart_6dbe309e-8d80-4023-a6a6-818f69784b7a",type:"MiniChart",metadata:{name:"\u57CE\u5E02\u65B0\u589E\u697C\u76D8\u6570\u91CF\u53D8\u5316"},properties:{chartType:"line",adaptive:!1,aggregationMethod:"count",sortBy:"default",orderBy:"ASC",datasetId:"22f4b25e8e8-06f6-4c8b-9c56-7b3194101d62",xField:"\u57CE\u5E02\u540D\u79F0",yField:"\u5747\u4EF7(\u5143/\u5E73\u7C73)",chartWidth:760,chartHeight:274},container:{id:"AnalysisLayout",slot:"bottomPanel"}},{id:"MiniChart_636edf3a-42d2-4650-8e00-4ddb6f9a829a",type:"MiniChart",metadata:{name:"\u697C\u76D8\u623F\u5C4B\u7C7B\u578B\u53D8\u5316"},properties:{chartType:"column",adaptive:!1,aggregationMethod:"count",sortBy:"x",orderBy:"ASC",datasetId:"22f4b25e8e8-06f6-4c8b-9c56-7b3194101d62",xField:"\u623F\u5C4B\u7C7B\u522B",yField:"\u5747\u4EF7(\u5143/\u5E73\u7C73)",chartWidth:660,chartHeight:274},container:{id:"AnalysisLayout",slot:"bottomPanel"}},{id:"PropertiesPanel_a4722b3c-fc5a-470f-bf01-f0527f452b8f",type:"PropertiesPanel",metadata:{name:"\u5C5E\u6027\u9762\u677F"},properties:{isOpen:!0,items:[{layerId:"BubbleLayer_09d0f372-3b28-451e-902a-ae3f62181c68",datasetId:"22f4b25e8e8-06f6-4c8b-9c56-7b3194101d62",enable:!0}]},container:{id:"AnalysisLayout",slot:"controls"}}]}},oe=ae,ne={version:"v0.1",metadata:{name:"\u4E0A\u6D77\u5BA2\u6D41\u5206\u6790",creatTime:"2023-09-22 16:24:55",description:"\u901A\u8FC7\u4E0D\u540C\u5730\u56FE\u7F29\u653E\u4E0B\u5BA2\u6D41\u7684\u81EA\u52A8\u805A\u5408\u80FD\u529B\uFF0C\u5E2E\u52A9\u7528\u6237\u6D1E\u5BDF\u57CE\u5E02\u7EF4\u5EA6\u4E0B\u7684\u5BA2\u6D41\u4F4D\u7F6E\u5206\u5E03\u548C\u6D41\u91CF\u6307\u6807\u3002"},datasets:[{id:"c88659da-b502-4eb5-b0b6-d37e92ee5f02",metadata:{name:"\u4E0A\u6D77\u5BA2\u6D41\u6570\u636E"},type:"remote",serviceType:"GET_FETCH_DATA_LIST",properties:{url:"https://mdn.alipayobjects.com/afts/file/A*IFRcRbYtXG8AAAAAAAAAAAAADrd2AQ/data2.json",requestOptions:{method:"GET"}}}],spec:{map:{basemap:"Gaode",config:{zoom:10.55,center:[121.460784,31.216565],pitch:0,bearing:0,style:"dark",WebGLParams:{preserveDrawingBuffer:!0},rotation:0,viewMode:"2D",dragRotate:!0,pitchWithRotate:!0},logoPosition:"leftbottom"},layers:[{id:"FlowLayer_76da712e-dea4-473b-b61c-a9f9a6e160fc",type:"FlowLayer",metadata:{name:"\u5BA2\u6D41\u805A\u5408\u56FE\u5C42"},sourceConfig:{parser:{type:"json",x:"f_lon",y:"f_lat",x1:"t_lon",y1:"t_lat",weight:"weight"},datasetId:"c88659da-b502-4eb5-b0b6-d37e92ee5f02"},visConfig:{clusterZoomStep:1,clusterNodeSize:64,clusterRadius:40,clusterExtent:512,maxTopFlowNum:5e3,circleOpacity:1,circleStrokeColor:"#000",circleStrokeWidth:1,fadeOpacityEnabled:!0,fadeOpacityAmount:32,lineStroke:"#000000",lineStrokeWidth:1,lineStrokeOpacity:.5,lineOpacity:1,circleColor:"#fff",circleRadius:{field:"weight",value:[1,16]},lineColor:{field:"weight",value:["#0570b0","#74a9cf","#bdc9e1","#f1eef6"]},lineWidth:{field:"weight",value:[1,16]},minZoom:0,maxZoom:24,blend:"normal",linColorIsReversed:!0,clusterType:"HCA",visible:!0}}],widgets:[{id:"AnalysisLayout",type:"AnalysisLayout",metadata:{name:"\u5E03\u5C40\u7EC4\u4EF6"},properties:{showFloatPanel:!1,showSidePanel:!1,showBottomPanel:!1}},{id:"AdministrativeSelectControl",type:"AdministrativeSelectControl",metadata:{name:"\u884C\u653F\u533A\u57DF\u9009\u62E9\u5668"},properties:{position:"lefttop"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LocationSearchControl",type:"LocationSearchControl",metadata:{name:"\u4F4D\u7F6E\u67E5\u8BE2"},properties:{position:"lefttop"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"ZoomControl",type:"ZoomControl",metadata:{name:"\u7F29\u653E\u5668"},properties:{position:"bottomright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"PropertiesPanel",type:"PropertiesPanel",metadata:{name:"\u5C5E\u6027\u9762\u677F"},properties:{isOpen:!1,items:[]},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LayerPopup",type:"LayerPopup",metadata:{name:"\u56FE\u5C42\u4FE1\u606F\u6846"},properties:{isOpen:!1,trigger:"hover",items:[{layerId:"FlowLayer_9b0234f4-9f63-45b5-b322-1febcae1c6a8",fields:[{field:"weight",formatField:"\u6743\u91CD"}]}]},container:{id:"AnalysisLayout",slot:"controls"}},{id:"FullscreenControl",type:"FullscreenControl",metadata:{name:"\u5730\u56FE\u5168\u5C4F"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MapViewSettingControl",type:"MapViewSettingControl",metadata:{name:"\u5730\u56FE\u503E\u89D2"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"LegendWidget",type:"LegendWidget",metadata:{name:"\u56FE\u4F8B\u7EC4\u4EF6"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MapThemeControl",type:"MapThemeControl",metadata:{name:"\u5730\u56FE\u4E3B\u9898"},properties:{position:"bottomright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"MouseLocationControl",type:"MouseLocationControl",metadata:{name:"\u5149\u6807\u7ECF\u7EAC\u5EA6"},properties:{position:"leftbottom"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"ScaleControl",type:"ScaleControl",metadata:{name:"\u6BD4\u4F8B\u5C3A"},properties:{position:"leftbottom"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"ea0b8946-3e3d-4a87-a4a0-5dd08e7a2eed",type:"ExportImageControl",metadata:{name:"\u5BFC\u51FA\u56FE\u7247"},properties:{position:"topright"},container:{id:"AnalysisLayout",slot:"controls"}},{id:"PropertiesPanel_e6e6b828-fe13-45e0-8f33-e432f8d461b5",type:"PropertiesPanel",metadata:{name:"\u5C5E\u6027\u9762\u677F"},properties:{isOpen:!0,items:[{layerId:"FlowLayer_76da712e-dea4-473b-b61c-a9f9a6e160fc",datasetId:"c88659da-b502-4eb5-b0b6-d37e92ee5f02",enable:!0}]},container:{id:"AnalysisLayout",slot:"controls"}}]}},ie=ne,re={version:"v0.1",metadata:{name:"Zelda: Tears of the Kingdom - Power by AntV L7VP",creatTime:"2023-05-05 14:38:33",description:"\u901A\u8FC7 L7VP \u642D\u5EFA\u7814\u53D1\u7684\u300A\u585E\u5C14\u8FBE\uFF1A\u738B\u56FD\u4E4B\u6CEA\u300B\u79FB\u52A8\u7AEF\u5730\u56FE\u5E94\u7528"},datasets:[{id:"20f29561-8381-4209-9ccf-04999d01db35",type:"raster-tile",metadata:{name:"Groundtiles",description:"XYZ Tile",serviceType:"XYZ Tile"},properties:{type:"xyz-tile",url:"https://tiles.lvisei.icu/zelda-2/groundtiles/{z}/{x}/{y}.png",tileSize:256,minZoom:0,maxZoom:7,extent:[-180,15.04206005516698,17.75066182074289,85.051355]}},{id:"734eb079-260c-4b3f-bf48-e28e92f88368",type:"raster-tile",metadata:{name:"Skytiles",description:"XYZ Tile",serviceType:"XYZ Tile"},properties:{type:"xyz-tile",url:"https://tiles.lvisei.icu/zelda-2/skytiles/{z}/{x}/{y}.png",tileSize:256,minZoom:0,maxZoom:7,extent:[-180,15.04206005516698,17.75066182074289,85.051355]}},{id:"f803ba2c-f41a-48d8-bb14-6f9d40e23cda",type:"raster-tile",metadata:{name:"Undergroundtiles",description:"XYZ Tile",serviceType:"XYZ Tile"},properties:{type:"xyz-tile",url:"https://tiles.lvisei.icu/zelda-2/undergroundtiles/{z}/{x}/{y}.png",tileSize:256,minZoom:0,maxZoom:7,extent:[-180,15.04206005516698,17.75066182074289,85.051355]}},{id:"3b8eac94-4114-4a24-83c5-8a2a21ab79d8",metadata:{name:"Zelda Mark"},type:"remote",serviceType:"GET_FETCH_DATA_LIST",properties:{url:"https://mdn.alipayobjects.com/afts/file/A*OwhUQ5bSRTUAAAAAAAAAAAAADrd2AQ/data.json",requestOptions:{method:"GET"}}}],spec:{map:{basemap:"Map",config:{zoom:3,minZoom:1,maxZoom:7,center:[-85.153576,74.287459],bounds:[-119.693328,85.021499,-54.115116,33.984887],maxBounds:[-180,15.04206005516698,17.75066182074289,85.051355],pitch:0,bearing:0,style:"dark",WebGLParams:{preserveDrawingBuffer:!0}}},layers:[{id:"b0c70759-7706-49c6-b98e-635624e8c6f4",type:"TileLayer",metadata:{name:"Underground Layer"},sourceConfig:{parser:{type:"rasterTile"},datasetId:"f803ba2c-f41a-48d8-bb14-6f9d40e23cda"},visConfig:{style:{opacity:1},minZoom:0,maxZoom:8,blend:"normal",visible:!1}},{id:"ab8af73f-fd47-4607-9eb2-686bef746e06",type:"TileLayer",metadata:{name:"Ground Layer"},sourceConfig:{parser:{type:"rasterTile"},datasetId:"20f29561-8381-4209-9ccf-04999d01db35"},visConfig:{style:{opacity:1},minZoom:0,maxZoom:8,blend:"normal",visible:!0}},{id:"7f4c248c-33cd-4133-842e-e256344d590c",type:"TileLayer",metadata:{name:"Sky Layer"},sourceConfig:{parser:{type:"rasterTile"},datasetId:"734eb079-260c-4b3f-bf48-e28e92f88368"},visConfig:{style:{opacity:1},minZoom:0,maxZoom:8,blend:"normal",visible:!1}}],widgets:[{id:"0ce6afbd-cd82-4879-9639-f2c978fdd920",type:"ZeldaMobileLayout",metadata:{name:"\u585E\u5C14\u8FBE\u5E94\u7528\u5E03\u5C40"},properties:{datasetId:"3b8eac94-4114-4a24-83c5-8a2a21ab79d8"}},{id:"ZeldaMoreControl",type:"ZeldaMoreControl",metadata:{name:"\u66F4\u591A\u63A7\u4EF6"},properties:{position:"topright"},container:{id:"0ce6afbd-cd82-4879-9639-f2c978fdd920",slot:"controls"}},{id:"ZeldaLayerControl",type:"ZeldaLayerControl",metadata:{name:"\u56FE\u5C42\u63A7\u4EF6"},properties:{position:"topright",undergroundLayerId:"b0c70759-7706-49c6-b98e-635624e8c6f4",groundLayerId:"ab8af73f-fd47-4607-9eb2-686bef746e06",skyLayerId:"7f4c248c-33cd-4133-842e-e256344d590c"},container:{id:"0ce6afbd-cd82-4879-9639-f2c978fdd920",slot:"controls"}},{id:"ZeldaZoomControl",type:"ZeldaZoomControl",metadata:{name:"\u7F29\u653E\u5668"},properties:{position:"topleft",showZoom:!0},container:{id:"0ce6afbd-cd82-4879-9639-f2c978fdd920",slot:"controls"}}]}},se=re,le=[{id:"09ccdf29-8bb0-4af8-8aa7-c89cfb4a2283",name:"\u5730\u9707\u7B49\u7EA7\u4E0E\u9707\u6DF1\u53EF\u89C6\u5316",description:"\u53EF\u89C6\u5316 5.12 \u6C76\u5DDD\u5730\u9707\u7B49\u7EA7\u5206\u5E03\u4E0E\u9707\u6DF1\u60C5\u51B5\uFF0C\u6570\u636E\u6765\u6E90\u4E8E\u4E2D\u56FD\u5730\u9707\u7F51\u3002",creatTime:"2022-09-19 16:29:09",type:"vis",tags:["\u7A7A\u95F4\u5206\u5E03"],thumbnail:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*9neiR5CbgAEAAAAAAAAAAAAADmJ7AQ/original",applicationConfig:X,assetPackageIds:[m.Jg,m.hg]},{id:"09ccdf29-8bb0-4af8-8aa7-c89cfb4a2280",name:"\u5168\u56FD\u9AD8\u7B49\u5B66\u6821\u5206\u5E03",description:"\u5168\u56FD\u9AD8\u7B49\u5B66\u6821\u540D\u5355\uFF0C\u622A\u81F32021\u5E749\u670830\u65E5\uFF0C\u5168\u56FD\u9AD8\u7B49\u5B66\u6821\u5171\u8BA13012\u6240\uFF0C\u672C\u540D\u5355\u672A\u5305\u542B\u9999\u6E2F\u7279\u522B\u884C\u653F\u533A\u3001\u6FB3\u95E8\u7279\u522B\u884C\u653F\u533A\u548C\u53F0\u6E7E\u5730\u533A\u9AD8\u7B49\u5B66\u6821\u3002\u6570\u636E\u6765\u6E90\uFF1A\u6559\u80B2\u90E8 http://www.moe.gov.cn/jyb_xxgk/s5743/s5744/A03/202110/t20211025_574874.html",creatTime:"2023-06-21 17:17:48",type:"vis",tags:["\u7A7A\u95F4\u5206\u5E03"],thumbnail:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*cmmnRpX12QsAAAAAAAAAAAAADmJ7AQ/original",applicationConfig:E,assetPackageIds:[m.Jg,m.hg]},{id:"09ccdf29-8bb0-4af8-8aa7-c89cfb4a2281",name:"\u7701\u4EFD\u4EBA\u53E3\u6027\u522B\u6BD4-\u7B2C\u4E03\u6B21\u4EBA\u53E3\u666E\u67E5",description:"\u4E2D\u56FD\u7B2C\u4E03\u6B21\u4EBA\u53E3\u666E\u67E5\u7701\u4EFD\u6570\u636E\uFF0C\u7EDF\u8BA1\u65F6\u95F4\u70B9\u4E3A 2020 \u5E74\u5E95\u3002\u6570\u636E\u6765\u6E90\uFF1Ahttps://github.com/leiii/census\u3002",creatTime:"2023-06-21 17:17:48",type:"vis",tags:["\u533A\u57DF\u5BF9\u6BD4"],thumbnail:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*KET9QaOLUDMAAAAAAAAAAAAADmJ7AQ/original",applicationConfig:P,assetPackageIds:[m.Jg,m.hg]},{id:"09ccdf29-8bb0-4af8-8aa7-c89cfb4a2282",name:"\u57CE\u5E02\u4EBA\u53E3\u589E\u957F\u7387-\u7B2C\u4E03\u6B21\u4EBA\u53E3\u666E\u67E5",description:"\u4E2D\u56FD\u7B2C\u4E03\u6B21\u4EBA\u53E3\u666E\u67E5\u57CE\u5E02\u6570\u636E\uFF0C\u7EDF\u8BA1\u65F6\u95F4\u70B9\u4E3A 2020 \u5E74\u5E95\u3002\u4EBA\u53E3\u589E\u957F\u7387\uFF0C\u6839\u636E 2010 \u5E74\u7684\u7B2C\u516D\u6B21\u4EBA\u53E3\u666E\u67E5\u6570\u636E\u8BA1\u7B97\u83B7\u5F97\u3002\u6570\u636E\u6765\u6E90\uFF1Ahttps://github.com/leiii/census\u3002",creatTime:"2023-06-21 17:17:48",type:"vis",tags:["\u533A\u57DF\u5BF9\u6BD4"],thumbnail:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*27vwSIc2J3UAAAAAAAAAAAAADmJ7AQ/original",applicationConfig:L,assetPackageIds:[m.Jg,m.hg]},{id:"8691fa68-7ff9-41b7-8644-1d6d87735715",name:"\u6D77\u6D0B\u4FDD\u62A4\u533A\u5206\u5E03",description:"\u53EF\u89C6\u5316\u4E2D\u56FD\u6D77\u6D0B\u4FDD\u62A4\u533A\u5730\u57DF\u5206\u5E03\uFF0C\u6D77\u6D0B\u4FDD\u62A4\u533A\u5206\u7C7B\u4E3A\uFF1A\u6C34\u4EA7\u79CD\u8D28\u8D44\u6E90\u4FDD\u62A4\u533A\u3001\u6D77\u6D0B\u81EA\u7136\u4FDD\u62A4\u533A\u3001\u6D77\u6D0B\u516C\u56ED\u3001\u7279\u522B\u6D77\u6D0B\u4FDD\u62A4\u533A\u7684\u3002",creatTime:"2022-12-16 16:04:51",type:"vis",tags:["\u6D77\u6D0B\u4FDD\u62A4"],thumbnail:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*vrAcQZKTxFAAAAAAAAAAAAAADmJ7AQ/original",applicationConfig:te,assetPackageIds:[m.Jg,m.hg]},{id:"c88659da-b502-4eb5-b0b6-d37e92ee5f02",name:"\u4E0A\u6D77\u57CE\u5E02\u5BA2\u6D41\u805A\u5408",description:"\u901A\u8FC7\u4E0D\u540C\u5730\u56FE\u7F29\u653E\u4E0B\u5BA2\u6D41\u7684\u81EA\u52A8\u805A\u5408\u80FD\u529B\uFF0C\u5E2E\u52A9\u7528\u6237\u6D1E\u5BDF\u57CE\u5E02\u7EF4\u5EA6\u4E0B\u7684\u5BA2\u6D41\u4F4D\u7F6E\u5206\u5E03\u548C\u6D41\u91CF\u6307\u6807\u3002",creatTime:"2023-09-22 16:24:55",type:"app",tags:["\u51FA\u884C"],thumbnail:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*QkXHRKsYGhgAAAAAAAAAAAAADmJ7AQ/original",applicationConfig:ie,assetPackageIds:[m.Jg,m.hg]},{id:"bb5772d7-acde-486e-a4f9-ed8ecaf8ce2c",name:"\u4E0A\u6D77\u676D\u5DDE\u5357\u4EAC\u53CA\u5468\u8FB9\u65B0\u697C\u76D8",description:"\u5730\u56FE\u4E0A\u6807\u8BC6\u51FA\u697C\u76D8\u7684\u5206\u5E03\u60C5\u51B5\uFF0C\u70B9\u7684\u5927\u5C0F\u8868\u793A\u5E73\u5747\u603B\u4EF7\uFF0C\u70B9\u989C\u8272\u6DF1\u6D45\u8868\u793A\u5747\u4EF7\uFF0C\u4ECE\u65F6\u95F4\u53D8\u5316\u548C\u7A7A\u95F4\u5206\u5E03\u7684\u89C6\u89D2\uFF0C\u6BCF\u5E74\u65B0\u697C\u76D8\u7684\u5206\u5E03\u53CA\u4EF7\u683C\u53D8\u5316\u7B49\u8D8B\u52BF\u3002\u6570\u636E\u6765\u6E90\u4E8E\uFF1Ahttps://github.com/yemanzhongting/picb",creatTime:"2023-10-16 20:59:27",type:"vis",tags:["\u7A7A\u95F4\u5206\u5E03","\u8D8B\u52BF\u53D8\u5316"],thumbnail:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*zv-MSIIa0k4AAAAAAAAAAAAADmJ7AQ/original",applicationConfig:oe,assetPackageIds:[m.Jg,m.hg]},{id:"8691fa68-7ff9-41b7-8644-1d6d87735714",name:"\u75AB\u60C5\u5404\u57CE\u5E02\u9996\u8F6E\u611F\u67D3\u9AD8\u5CF0\u671F\u9884\u6D4B\u53EF\u89C6\u5316",description:"\u7EDF\u8BA1\u5404\u57CE\u5E02\u7B2C\u4E00\u6CE2\u75AB\u60C5\u8FBE\u5CF0\u9884\u6D4B\u4E0E\u7D2F\u8BA1\u611F\u67D3\u5360\u603B\u4EBA\u53E3\u5360\u6BD4\uFF0C\u9884\u6D4B\u6570\u636E\u6765\u6E90\u4E8E \u201C\u6570\u636E\u5E1D chenqin\u201D\u3002",creatTime:"2022-12-16 16:04:51",type:"vis",tags:["\u533A\u57DF\u5BF9\u6BD4"],thumbnail:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*0j_NTK1efMYAAAAAAAAAAAAADmJ7AQ/original",applicationConfig:r,assetPackageIds:[m.Jg,m.hg]},{id:"3e1daebd-ac12-4ae2-9a54-fda10fab96bc",name:"\u75AB\u60C5\u524D\u540E\u5168\u56FD\u4EBA\u53E3\u6D41\u52A8\u7F51\u7EDC\u7A7A\u95F4\u683C\u5C40",description:"\u5229\u7528\u4EBA\u53E3\u8FC1\u79FB\u6570\u636E\uFF0C\u7ED8\u5236\u5168\u56FD\u7684\u4EBA\u53E3\u6D41\u52A8\u7F51\u7EDC\uFF0C\u8BC6\u522B\u75AB\u60C5\u524D\u540E\u4EBA\u53E3\u6D41\u52A8\u7684\u5DEE\u5F02\uFF0C\u6570\u636E\u6765\u6E90\uFF1Ahttps://pattern.swarma.org/article/228",creatTime:"2023-09-04 15:35:08",type:"vis",tags:["\u4EBA\u53E3\u6D41\u52A8"],thumbnail:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*384hSrP9CRAAAAAAAAAAAAAADmJ7AQ/original",applicationConfig:K,assetPackageIds:[m.Jg,m.hg]},{id:"fb85734d-a5d1-468f-966d-447b3d715a90",name:"AI \u9065\u611F",description:"SAM \u56FE\u50CF\u5206\u5272\u5927\u6A21\u578B\u5728\u9065\u611F\u9886\u57DF\u7684\u5E94\u7528\uFF1AAI \u8BC6\u522B\u3001\u63D0\u53D6\u5BB6\u4E61\u6240\u5728\u57CE\u5E02\u4F53\u80B2\u9986\u3001\u98DE\u673A\u573A\u98DE\u673A\u3001\u81EA\u5BB6\u623F\u4EA7\u7B49\u8F6E\u5ED3\u3002",creatTime:"2023-05-24 16:04:51",type:"app",tags:["\u9065\u611F"],thumbnail:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*Ge03Qo2cKv0AAAAAAAAAAAAADmJ7AQ/original",applicationConfig:A,assetPackageIds:[m.Jg,m.hg,"@antv/li-sam-assets"]}],de=[{id:"30dd22f0-99a4-4ae2-8858-91b00e7bbe87",name:"Zelda: Tears of the Kingdom - Power by AntV L7VP",description:"\u901A\u8FC7 L7VP \u642D\u5EFA\u7814\u53D1\u7684\u300A\u585E\u5C14\u8FBE\uFF1A\u738B\u56FD\u4E4B\u6CEA\u300B\u79FB\u52A8\u7AEF\u5730\u56FE\u5E94\u7528",creatTime:"2023-05-24 18:04:51",type:"app",tags:["\u79FB\u52A8\u7AEF"],thumbnail:"https://mdn.alipayobjects.com/huamei_iy7sau/afts/img/A*4uOxQ46zCusAAAAAAAAAAAAADruNAQ/original",applicationConfig:se,assetPackageIds:[m.Jg,"@lvisei/li-zelda-assets"],viewMode:"view"}],ce=[].concat(le,de),pe="CASES",J=function(){var c=h()(s()().mark(function n(){var i,o;return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,w().getItem(pe);case 2:return i=a.sent,o=ce.concat(i||[]),a.abrupt("return",o);case 5:case"end":return a.stop()}},n)}));return function(){return c.apply(this,arguments)}}(),me=function(){var c=h()(s()().mark(function n(i){var o,t,a;return s()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,J();case 2:if(o=e.sent,t=o.find(function(g){return g.id===i}),t!==void 0){e.next=6;break}return e.abrupt("return",Promise.reject("\u6848\u4F8B ID \u4E0D\u5B58\u5728"));case 6:return a=(0,T.Gp)(t),e.abrupt("return",a);case 8:case"end":return e.stop()}},n)}));return function(i){return c.apply(this,arguments)}}(),N=l(12611),H="PROJECTS",Q=function(n){return w().setItem(H,n)},j=function(){var c=h()(s()().mark(function n(){var i;return s()().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,w().getItem(H);case 2:return i=t.sent,t.abrupt("return",i||[]);case 4:case"end":return t.stop()}},n)}));return function(){return c.apply(this,arguments)}}(),ue=function(){var c=h()(s()().mark(function n(i){var o,t,a,y,e,g,p;return s()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return o=(0,T.sq)(),t=D()().format("YYYY-MM-DD HH:mm:ss"),a=(0,N.pick)(i,["description","assetPackageIds"]),y=d()(d()({},i.applicationConfig),{},{metadata:d()({name:i.projectName,creatTime:t},a)}),e=d()(d()({},i),{},{projectId:o,creatTime:t,applicationConfig:y}),b.next=7,j();case 7:return g=b.sent,p=g.concat(e),b.next=11,Q(p);case 11:return b.abrupt("return",e);case 12:case"end":return b.stop()}},n)}));return function(i){return c.apply(this,arguments)}}(),fe=function(){var c=h()(s()().mark(function n(i){var o,t,a;return s()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j();case 2:if(o=e.sent,t=o.find(function(g){return g.projectId===i}),t!==void 0){e.next=6;break}return e.abrupt("return",Promise.reject("\u9879\u76EE\u4E0D\u5B58\u5728"));case 6:return a=(0,T.PP)(t),e.abrupt("return",a);case 8:case"end":return e.stop()}},n)}));return function(i){return c.apply(this,arguments)}}(),ye=function(){var c=h()(s()().mark(function n(i,o){var t,a,y,e,g,p;return s()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,j();case 2:if(t=b.sent,a=t.findIndex(function(Ae){return Ae.projectId===i}),a!==-1){b.next=6;break}return b.abrupt("return",Promise.reject("\u9879\u76EE ID \u4E0D\u5B58\u5728"));case 6:return y=t[a],e=(0,N.pick)(o,["description","assetPackageIds"]),g=d()(d()({},o.applicationConfig),{},{metadata:d()({name:o.projectName},e)}),p=d()(d()(d()({},y),o),{},{applicationConfig:g}),t[a]=p,b.next=13,Q(t);case 13:return b.abrupt("return",p);case 14:case"end":return b.stop()}},n)}));return function(i,o){return c.apply(this,arguments)}}(),be=function(){var c=h()(s()().mark(function n(i){var o,t,a;return s()().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j();case 2:if(o=e.sent,t=o.findIndex(function(g){return g.projectId===i}),t!==-1){e.next=6;break}return e.abrupt("return",Promise.reject("\u9879\u76EE ID \u4E0D\u5B58\u5728"));case 6:return a=o.splice(t,1),e.next=9,Q(o);case 9:return e.abrupt("return",a);case 10:case"end":return e.stop()}},n)}));return function(i){return c.apply(this,arguments)}}()},9256:function(V,Z,l){l.d(Z,{Gp:function(){return h},PP:function(){return O},Rz:function(){return T},VZ:function(){return x},sq:function(){return m},lF:function(){return q}});var G=l(91055),d=l.n(G),f=l(90527),s=function(r){var u=r.spec.map;if(u.basemap!=="Map"){var A=d()({},u);return u.basemap==="Mapbox"?A.config=d()(d()({},A.config),{},{token:f.c3}):A.config=d()(d()({},A.config),{},{token:f.C_}),r.spec.map=A,r}return r},O=function(r){return r.applicationConfig=s(r.applicationConfig),r},h=function(r){return r.applicationConfig=s(r.applicationConfig),r},z=l(69024),D=l.n(z),W=l(57913),w=l.n(W),T=function(){var r={},u=w()(f.$l),A;try{for(u.s();!(A=u.n()).done;){var k=D()(A.value,2),L=k[1];if(Array.isArray(L.globals))L.globals.forEach(function(P){r[P]=window[P]});else{var S=L.globals;r[S]=window[S]}}}catch(P){u.e(P)}finally{u.f()}return r},B=function(r){return/\.css(\?.*)?$/.test(r)},M=function(r){return r.map(function(u){return'')}).join(` +\r `)},C=function(r){return r.map(function(u){return' + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + + \ No newline at end of file diff --git a/layouts__Map.9c22ad79.async.js b/layouts__Map.9c22ad79.async.js new file mode 100644 index 00000000..44028946 --- /dev/null +++ b/layouts__Map.9c22ad79.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_antv_li_website=self.webpackChunk_antv_li_website||[]).push([[462],{94941:function(s,t,e){e.r(t);var r=e(81821),O=e.n(r),l=e(40795),E=e(90527),o=e(70293),a=function(){return(0,o.jsx)(r.ConfigProvider,{theme:E.qQ,children:(0,o.jsx)(l.j3,{})})};t.default=a},164:function(s,t,e){var r=e(87363),O=Symbol.for("react.element"),l=Symbol.for("react.fragment"),E=Object.prototype.hasOwnProperty,o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function d(u,_,v){var n,f={},i=null,P=null;v!==void 0&&(i=""+v),_.key!==void 0&&(i=""+_.key),_.ref!==void 0&&(P=_.ref);for(n in _)E.call(_,n)&&!a.hasOwnProperty(n)&&(f[n]=_[n]);if(u&&u.defaultProps)for(n in _=u.defaultProps,_)f[n]===void 0&&(f[n]=_[n]);return{$$typeof:O,type:u,key:i,ref:P,props:f,_owner:o.current}}t.Fragment=l,t.jsx=d,t.jsxs=d},70293:function(s,t,e){s.exports=e(164)}}]); diff --git a/layouts__WorkSpace.45a16990.chunk.css b/layouts__WorkSpace.45a16990.chunk.css new file mode 100644 index 00000000..4ec82c8d --- /dev/null +++ b/layouts__WorkSpace.45a16990.chunk.css @@ -0,0 +1 @@ +.layout___umcct{min-height:100%}.header___eYi1O{position:fixed;z-index:10;display:flex;justify-content:space-between;width:100%}.left___JfthQ{display:flex;align-items:center}.logo___F4yXN{display:flex;align-items:center;margin-right:30px;cursor:pointer}.logo-img___aQmKS{width:26px;height:26px}.logo-text___Ro2pP{padding:0 10px;font-weight:500;font-size:20px}.logo-desc___ZgZ6z{color:#ffffffb3;font-size:13px}.menu___iLdR6{min-width:180px;background-color:transparent;border-bottom:none}.right-section___pP1KA{text-align:right} diff --git a/layouts__WorkSpace.c626b5bc.async.js b/layouts__WorkSpace.c626b5bc.async.js new file mode 100644 index 00000000..e8dd353d --- /dev/null +++ b/layouts__WorkSpace.c626b5bc.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_antv_li_website=self.webpackChunk_antv_li_website||[]).push([[624],{93707:function(te,W,s){s.d(W,{wy:function(){return R},QR:function(){return H},nK:function(){return F},z2:function(){return q}});var w=s(69024),x=s.n(w),L=s(81821),y=s(40795),R=function(){var T=L.Modal.useModal(),E=x()(T,2),f=E[0],j=E[1],N=(0,y.TH)(),M=function(){N.pathname.includes("/builder/")||N.pathname.includes("/app/")?y.m8.push({pathname:"/project"}):y.m8.push({pathname:"/case"})};return{emptyModal:function(X){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M,K=5,Q,e,t=f.warning({title:X,content:"".concat(K," \u79D2\u540E\u4F1A\u81EA\u52A8\u9000\u5230\u4E0A\u4E00\u9875\u9762\u3002"),onOk:function(){Q&&clearInterval(Q),e&&clearTimeout(e),$()}});Q=setInterval(function(){K-=1,t.update({content:"".concat(K," \u79D2\u540E\u81EA\u52A8\u4F1A\u9000\u5230\u4E0A\u4E00\u9875\u9762\u3002")})},1e3),e=setTimeout(function(){clearInterval(Q),t.destroy(),$()},K*1e3)},emptyContextHolder:j}},p=s(87363);function m(z){var T="https://private-alipayobjects.alipay.com/alipay-rmsdeploy-image/rmsportal/RKuAiriJqrUhyqW.png",E=new Image,f,j=function(M){f||(f=!0,E.src="",z(M))};return E.onload=function(){return j("responded")},E.onerror=function(){return j("error")},E.src=T,setTimeout(function(){return j("timeout")},1500)}var P="L7VP_DOT_NOT_SHOW_PROMPT_MODAL",i;function F(){var z=(0,p.useState)(!1),T=x()(z,2),E=T[0],f=T[1];return(0,p.useEffect)(function(){var j;(j=i)!==null&&j!==void 0||(i=new Promise(function(N){m(function(M){return N(M!=="timeout"&&M!=="error")})})),i.then(f)},[]),E}function H(){var z=["li.antv.antgroup.com","locationinsight.antv.antgroup.com"].includes(window.location.hostname),T=F(),E=L.Modal.useModal(),f=x()(E,2),j=f[0],N=f[1],M=z&&T;return(0,p.useEffect)(function(){if(M){var G=window.localStorage.getItem(P);if(!(G&&G!=="true"&&Date.now()-new Date(G).getTime()<5*24*60*60*1e3)){var X=function(){window.localStorage.setItem(P,new Date().toISOString())},$=function(){var Q=window.location.href.replace(window.location.host,"li.antgroup-inc.cn");window.location.replace(Q)};j.confirm({icon:null,title:"\u63D0\u793A",content:"\u5185\u7F51\u7528\u6237\u63A8\u8350\u8BBF\u95EE\u5185\u7F51\u7248\u4EE5\u83B7\u5F97\u5B8C\u6574\u7684\u529F\u80FD\u4F53\u9A8C\uFF5E",cancelText:"5 \u5929\u5185\u4E0D\u518D\u663E\u793A",okText:"\u7ACB\u5373\u524D\u5F80",onCancel:X,onOk:$})}}},[M]),N}var Z=s(51490),v=s.n(Z),S=s(91055),_=s.n(S),b=s(88104),A=s.n(b),k=s(25435),D=s(6079),B=s(12611),C=s(9256),J=s(74090),q=function(T){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=(0,p.useState)([]),j=x()(f,2),N=j[0],M=j[1],G=(0,p.useState)(!1),X=x()(G,2),$=X[0],K=X[1],Q=(0,p.useState)(null),e=x()(Q,2),t=e[0],r=e[1],n=function(){var a=A()(v()().mark(function o(){var u,d,O;return v()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return K(!0),c.prev=1,c.next=4,(0,J.nl)();case 4:return u=c.sent,Array.isArray(T)&&(u=u.filter(function(g){return T.includes(g.assetId)})),u=u.map(function(g){return g.enable===!1?_()(_()({},g),{},{urls:[]}):g}),d=E.sandbox?_()(_()({},(0,B.isObject)(E.sandbox)?E.sandbox:{}),{},{injectEnv:(0,C.Rz)()}):!1,c.next=10,(0,k.loadAssetPackages)(u,_()(_()({},E),{},{sandbox:d}));case 10:O=c.sent,M(O),c.next=17;break;case 14:c.prev=14,c.t0=c.catch(1),r(new Error("\u8D44\u4EA7\u8BF7\u6C42\u6216\u52A0\u8F7D\u5931\u8D25, ".concat(c.t0)));case 17:return c.prev=17,K(!1),c.finish(17);case 20:case"end":return c.stop()}},o,null,[[1,14,17,20]])}));return function(){return a.apply(this,arguments)}}();return(0,D.Z)(function(){n()},[T]),{assets:N,loading:$,error:t}}},12528:function(te,W,s){s.r(W),s.d(W,{default:function(){return Z}});var w=s(16640),x=s(99067),L=s(39216),y=s(81821),R=s(88198),p=s(40795),m={layout:"layout___umcct",header:"header___eYi1O",left:"left___JfthQ",logo:"logo___F4yXN","logo-img":"logo-img___aQmKS","logo-text":"logo-text___Ro2pP","logo-desc":"logo-desc___ZgZ6z",menu:"menu___iLdR6","right-section":"right-section___pP1KA"},P=s(93707),i=s(70293),F=y.theme.useToken,H="https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*3YNMR5CIKosAAAAAAAAAAAAADmJ7AQ/original";function Z(){var v,S,_=(0,P.QR)(),b=F(),A=b.token,k=(0,x.F)(),D=k.md===!1,B=(0,p.TH)(),C=B.pathname,J=((v=(0,p.Ov)())===null||v===void 0||(v=v.clientRoutes[0].routes)===null||v===void 0||(v=v.find(function(f){return(f==null?void 0:f.name)==="workspace"}))===null||v===void 0?void 0:v.routes)||[],q=J==null?void 0:J.filter(function(f){return!f.hideInMenu}).map(function(f){return{key:f.path,label:f.name,disabled:f.disabled}}),z=((S=q.find(function(f){return f.key===C}))===null||S===void 0?void 0:S.label)||"";(0,L.Z)("L7VP ".concat(z));var T=[{key:"0",label:(0,i.jsx)("span",{onClick:function(){window.open(p.m8.createHref("/docs?path=get-started"))},children:"\u5FEB\u901F\u5165\u95E8"}),icon:(0,i.jsx)(w.ReadOutlined,{})},{key:"1",label:(0,i.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.yuque.com/forms/share/41efda19-f8cd-4269-99c0-a827aeeac8b3",children:"\u95EE\u9898\u53CD\u9988"}),icon:(0,i.jsx)(w.QuestionCircleOutlined,{})},{key:"2",label:(0,i.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.yuque.com/forms/share/30fcce09-67d8-4d3a-83f2-b2e1c9db0cfa",children:"\u95EE\u5377\u8C03\u67E5"}),icon:(0,i.jsx)(w.FileTextOutlined,{})}],E=function(){p.m8.push("/")};return(0,i.jsxs)(y.Layout,{className:m.layout,children:[(0,i.jsxs)(R.h4,{className:m.header,style:{color:A.colorText,backgroundColor:A.colorBgLayout},children:[(0,i.jsxs)("div",{className:m.left,children:[(0,i.jsxs)("div",{className:m.logo,onClick:E,children:[(0,i.jsx)("img",{className:m["logo-img"],src:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*xuDWR7uXkbkAAAAAAAAAAAAADmJ7AQ/original"}),(0,i.jsx)("span",{className:m["logo-text"],children:"L7VP"}),!D&&(0,i.jsx)("span",{className:m["logo-desc"],children:"\u5730\u7406\u7A7A\u95F4\u667A\u80FD\u53EF\u89C6\u5206\u6790\u5DE5\u5177"})]}),(0,i.jsx)(y.Menu,{className:m.menu,mode:"horizontal",defaultSelectedKeys:[C],selectedKeys:[C],items:q,onClick:function(j){p.m8.push("".concat(j.key))}})]}),(0,i.jsx)("div",{className:m["right-section"],children:(0,i.jsxs)(y.Space,{size:"small",children:[(0,i.jsx)(y.Button,{type:"text",size:"small",icon:(0,i.jsx)(w.ToolOutlined,{}),onClick:function(){p.m8.push("/asset-market")},children:"\u8D44\u4EA7\u5E02\u573A"}),(0,i.jsx)(y.Dropdown,{menu:{items:T},placement:"bottomRight",children:(0,i.jsx)(y.Button,{type:"text",size:"small",icon:(0,i.jsx)(w.ReadOutlined,{}),onClick:function(){window.open(p.m8.createHref("/docs"))},children:"\u5E2E\u52A9\u6587\u6863"})}),(0,i.jsx)(y.Popover,{placement:"bottom",trigger:"hover",content:(0,i.jsx)("img",{width:200,src:H}),children:(0,i.jsx)(y.Button,{type:"text",size:"small",icon:(0,i.jsx)(w.DingdingOutlined,{}),children:"\u4F7F\u7528\u4EA4\u6D41"})}),(0,i.jsx)("a",{href:"https://github.com/antvis/L7VP",target:"_blank",rel:"noreferrer",children:(0,i.jsx)(y.Button,{type:"text",size:"small",icon:(0,i.jsx)(w.GithubOutlined,{}),children:"GitHub"})})]})})]}),(0,i.jsxs)(R.VY,{style:{color:A.colorText,marginTop:"64px",padding:"50px"},children:[_,(0,i.jsx)(p.j3,{})]})]})}},6079:function(te,W,s){s.d(W,{Z:function(){return p}});var w=s(87363),x=s(54335),L=s.n(x),y=function(m,P){return m===void 0&&(m=[]),P===void 0&&(P=[]),L()(m,P)},R=function(m){return function(P,i){var F=(0,w.useRef)(),H=(0,w.useRef)(0);(i===void 0||!y(i,F.current))&&(F.current=i,H.current+=1),m(P,[H.current])}},p=R(w.useEffect)},99067:function(te,W,s){s.d(W,{F:function(){return Z}});var w=s(85556),x=s(87363),L=s.n(x),y=s(24252),R=new Set,p,m={xs:0,sm:576,md:768,lg:992,xl:1200};function P(){var v,S,_=p;if(F(),_!==p)try{for(var b=(0,w.XA)(R),A=b.next();!A.done;A=b.next()){var k=A.value;k()}}catch(D){v={error:D}}finally{try{A&&!A.done&&(S=b.return)&&S.call(b)}finally{if(v)throw v.error}}}var i=!1;function F(){var v,S,_=window.innerWidth,b={},A=!1;try{for(var k=(0,w.XA)(Object.keys(m)),D=k.next();!D.done;D=k.next()){var B=D.value;b[B]=_>=m[B],b[B]!==p[B]&&(A=!0)}}catch(C){v={error:C}}finally{try{D&&!D.done&&(S=k.return)&&S.call(k)}finally{if(v)throw v.error}}A&&(p=b)}function H(v){m=v,p&&F()}function Z(){y.Z&&!i&&(p={},F(),window.addEventListener("resize",P),i=!0);var v=(0,w.CR)((0,x.useState)(p),2),S=v[0],_=v[1];return(0,x.useEffect)(function(){if(y.Z){i||window.addEventListener("resize",P);var b=function(){_(p)};return R.add(b),function(){R.delete(b),R.size===0&&(window.removeEventListener("resize",P),i=!1)}}},[]),S}},85556:function(te,W,s){s.d(W,{CR:function(){return A},Jh:function(){return v},XA:function(){return b},ZT:function(){return x},_T:function(){return y},ev:function(){return B},mG:function(){return Z},pi:function(){return L},pr:function(){return D}});var w=function(e,t){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},w(e,t)};function x(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");w(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var L=function(){return L=Object.assign||function(t){for(var r,n=1,a=arguments.length;n=0;d--)(u=e[d])&&(o=(a<3?u(o):a>3?u(t,r,o):u(t,r))||o);return a>3&&o&&Object.defineProperty(t,r,o),o}function p(e,t){return function(r,n){t(r,n,e)}}function m(e,t,r,n,a,o){function u(Y){if(Y!==void 0&&typeof Y!="function")throw new TypeError("Function expected");return Y}for(var d=n.kind,O=d==="getter"?"get":d==="setter"?"set":"value",l=!t&&e?n.static?e:e.prototype:null,c=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),g,ee=!1,h=r.length-1;h>=0;h--){var I={};for(var U in n)I[U]=U==="access"?{}:n[U];for(var U in n.access)I.access[U]=n.access[U];I.addInitializer=function(Y){if(ee)throw new TypeError("Cannot add initializers after decoration has completed");o.push(u(Y||null))};var V=(0,r[h])(d==="accessor"?{get:c.get,set:c.set}:c[O],I);if(d==="accessor"){if(V===void 0)continue;if(V===null||typeof V!="object")throw new TypeError("Object expected");(g=u(V.get))&&(c.get=g),(g=u(V.set))&&(c.set=g),(g=u(V.init))&&a.unshift(g)}else(g=u(V))&&(d==="field"?a.unshift(g):c[O]=g)}l&&Object.defineProperty(l,n.name,c),ee=!0}function P(e,t,r){for(var n=arguments.length>2,a=0;a0&&o[o.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function A(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,o=[],u;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)o.push(a.value)}catch(d){u={error:d}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(u)throw u.error}}return o}function k(){for(var e=[],t=0;t1||O(h,U)})},I&&(a[h]=I(a[h])))}function O(h,I){try{l(n[h](I))}catch(U){ee(o[0][3],U)}}function l(h){h.value instanceof C?Promise.resolve(h.value.v).then(c,g):ee(o[0][2],h)}function c(h){O("next",h)}function g(h){O("throw",h)}function ee(h,I){h(I),o.shift(),o.length&&O(o[0][0],o[0][1])}}function q(e){var t,r;return t={},n("next"),n("throw",function(a){throw a}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(a,o){t[a]=e[a]?function(u){return(r=!r)?{value:C(e[a](u)),done:!1}:o?o(u):u}:o}}function z(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof b=="function"?b(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(u){return new Promise(function(d,O){u=e[o](u),a(d,O,u.done,u.value)})}}function a(o,u,d,O){Promise.resolve(O).then(function(l){o({value:l,done:d})},u)}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var E=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function f(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&S(t,e,r);return E(t,e),t}function j(e){return e&&e.__esModule?e:{default:e}}function N(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function M(e,t,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(e,r):a?a.value=r:t.set(e,r),r}function G(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function X(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,a;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(a=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");a&&(n=function(){try{a.call(this)}catch(o){return Promise.reject(o)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var $=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function K(e){function t(n){e.error=e.hasError?new $(n,e.error,"An error was suppressed during disposal."):n,e.hasError=!0}function r(){for(;e.stack.length;){var n=e.stack.pop();try{var a=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(a).then(r,function(o){return t(o),r()})}catch(o){t(o)}}if(e.hasError)throw e.error}return r()}var Q={__extends:x,__assign:L,__rest:y,__decorate:R,__param:p,__metadata:H,__awaiter:Z,__generator:v,__createBinding:S,__exportStar:_,__values:b,__read:A,__spread:k,__spreadArrays:D,__spreadArray:B,__await:C,__asyncGenerator:J,__asyncDelegator:q,__asyncValues:z,__makeTemplateObject:T,__importStar:f,__importDefault:j,__classPrivateFieldGet:N,__classPrivateFieldSet:M,__classPrivateFieldIn:G,__addDisposableResource:X,__disposeResources:K}}}]); diff --git a/layouts__index.55480e25.async.js b/layouts__index.55480e25.async.js new file mode 100644 index 00000000..d5aed11c --- /dev/null +++ b/layouts__index.55480e25.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_antv_li_website=self.webpackChunk_antv_li_website||[]).push([[717],{87415:function(u,l,n){n.r(l),n.d(l,{default:function(){return O}});var a=n(90527),E=n(85582),o=n(81821),v=n.n(o),s=n(29512),e=n(64866),f=n.n(e),P=n(40795),_=n(70293),D=o.theme.useToken,M=function(){var d=D(),t=d.token;return(0,_.jsx)(E.xB,{styles:{body:{color:t.colorText,fontSize:t.fontSize,fontFamily:t.fontFamily,lineHeight:t.lineHeight,background:t.colorBgLayout}}})};function O(){return(0,_.jsxs)(o.ConfigProvider,{locale:s.Z,theme:a.BA,children:[(0,_.jsx)(P.j3,{}),(0,_.jsx)(M,{})]})}}}]); diff --git a/p__AssetMarket__index.99143dcb.async.js b/p__AssetMarket__index.99143dcb.async.js new file mode 100644 index 00000000..7b84f881 --- /dev/null +++ b/p__AssetMarket__index.99143dcb.async.js @@ -0,0 +1,108 @@ +(self.webpackChunk_antv_li_website=self.webpackChunk_antv_li_website||[]).push([[921],{58390:function(S,$,i){"use strict";i.r($),i.d($,{default:function(){return pt}});var W=i(69024),f=i.n(W),x=i(16640),P=i.n(x),N=i(25435),D=i(39216),t=i(81821),R=i(88198),k=i(87363),te=i(40795),Le=i(91055),E=i.n(Le),Te=i(29773),Be=i.n(Te),Ie=i(51490),ne=i.n(Ie),Oe=i(88104),De=i.n(Oe),Y=i(12611),we=function(o){return fetch("https://data.jsdelivr.com/v1/packages/npm/".concat(o),{method:"get"}).then(function(a){return a.json()})},Ve=function(o,a){return fetch("https://data.jsdelivr.com/v1/packages/npm/".concat(o,"@").concat(a,"/entrypoints"),{method:"get"}).then(function(n){return n.json()}).then(function(n){var r,s,h=[];return n!=null&&(r=n.entrypoints)!==null&&r!==void 0&&r.css?h=["https://fastly.jsdelivr.net/npm/".concat(o,"@").concat(a).concat(n.entrypoints.css.file)]:n!=null&&(s=n.entrypoints)!==null&&s!==void 0&&s.js&&(h=["https://fastly.jsdelivr.net/npm/".concat(o,"@").concat(a).concat(n.entrypoints.js.file)]),h})},ze=function(o){var a=/\.css(\?.*)?$/.test(o),n=/\.js(\?.*)?$/.test(o);return a||n},Ue=function(o){var a,n="-"+((a=o.match(/([^/]+)$/))===null||a===void 0?void 0:a[0]),r=n.replace(/\-[a-z]/g,function(s){return s[1].toUpperCase()});return r.substring(0,2)==="Li"?r.replace("Li","LI"):r},e=i(70293),$e=function(){return(0,e.jsx)(t.Form.List,{name:"urls",rules:[{validator:function(){var o=De()(ne()().mark(function n(r,s){return ne()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(!(!s||s.length<0)){d.next=2;break}return d.abrupt("return",Promise.reject(new Error("\u8BF7\u81F3\u5C11\u586B\u5199\u4E00\u4E2A CDN \u8D44\u6E90\u5730\u5740")));case 2:case"end":return d.stop()}},n)}));function a(n,r){return o.apply(this,arguments)}return a}()}],children:function(a,n,r){var s=n.add,h=n.remove,d=r.errors;return(0,e.jsxs)(e.Fragment,{children:[a.map(function(l,v){return(0,e.jsx)(t.Form.Item,{label:v===0?"CDN \u5730\u5740":"",wrapperCol:v===0?{span:24}:{span:20,offset:4},required:!1,children:(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,e.jsx)(t.Form.Item,E()(E()({},l),{},{validateTrigger:["onChange","onBlur"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165 CDN \u5730\u5740"},{type:"url",message:"URL \u5730\u5740\u4E0D\u5408\u6CD5"},{validator:function(b,j){return j?j&&ze(j)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8F93\u5165\u6709\u6548\u7684 JS \u6216 CSS \u8D44\u6E90\u5730\u5740")):Promise.reject()}}],noStyle:!0,children:(0,e.jsx)(t.Input,{placeholder:"\u8BF7\u8F93\u5165 URL\uFF0C\u4F8B\u5982\uFF1Ahttps://unpkg.com/@antv/li-analysis-assets@0.10.0/dist/umd/li-analysis-assets.min.js"})})),a.length>1?(0,e.jsx)(x.MinusCircleOutlined,{style:{marginLeft:8},onClick:function(){return h(l.name)}}):null]})},l.key)}),(0,e.jsxs)(t.Form.Item,{wrapperCol:{span:20,offset:4},children:[(0,e.jsx)(t.Button,{block:!0,type:"dashed",onClick:function(){return s()},icon:(0,e.jsx)(x.PlusOutlined,{}),children:a.length>0?"\u65B0\u589E CDN \u8D44\u6E90":"\u8F93\u5165 CDN \u5730\u5740"}),(0,e.jsx)(t.Form.ErrorList,{errors:d})]})]})}})},We=function(o){var a=o.open,n=o.initialValue,r=o.onSubmit,s=o.onCancel,h=t.Form.useForm(),d=f()(h,1),l=d[0],v=(0,k.useState)(!1),F=f()(v,2),b=F[0],j=F[1],L=(0,k.useState)(!1),A=f()(L,2),G=A[0],I=A[1],p=(0,k.useState)([]),_=f()(p,2),M=_[0],w=_[1],H=t.Form.useWatch("npmMirror",l),V=t.Form.useWatch("package",l),O=H==="npm",m=!(0,Y.isUndefined)(n==null?void 0:n.assetId),g=t.message.useMessage(),T=f()(g,2),z=T[0],J=T[1],Z=function(U){we(U).then(function(C){var q;if(C!=null&&(q=C.versions)!==null&&q!==void 0&&q.length){var ht=C.versions.map(function(Ee){return{label:Ee.version,value:Ee.version}});if(!(n!=null&&n.version)){var ee;l.setFieldValue("version",C==null||(ee=C.tags)===null||ee===void 0?void 0:ee.latest),l.setFieldValue("global",Ue(C==null?void 0:C.name)),l.setFieldValue("name",C==null?void 0:C.name)}w(ht),I(!1)}}).catch(function(){z.error("\u5305\u4FE1\u606F\u83B7\u53D6\u5931\u8D25\uFF01"),w([]),I(!1)})};(0,k.useEffect)(function(){m&&n?(l.setFieldsValue(n),O&&Z(n.package)):l.resetFields()},[n,a]);var vt=function(U){if(!O){r(U);return}j(!0),Ve(U.package,U.version).then(function(C){r(E()(E()({},U),{},{urls:C})),j(!1)}).catch(function(C){console.log("\u83B7\u53D6 CDN \u8D44\u6E90\u5931\u8D25\uFF01"),j(!1)})},Pe=function(){s()};return(0,e.jsx)(t.Modal,{title:"".concat(m?"\u4FEE\u6539":"\u5BFC\u5165","\u8D44\u4EA7\u5305"),width:600,open:a,footer:null,onCancel:Pe,centered:!0,destroyOnClose:!0,children:(0,e.jsxs)(t.Form,{initialValues:{npmMirror:"npm"},labelCol:{span:4},form:l,onFinish:vt,children:[(0,e.jsx)(t.Form.Item,{label:"\u5305\u955C\u50CF",name:"npmMirror",children:(0,e.jsxs)(t.Radio.Group,{children:[(0,e.jsx)(t.Radio.Button,{value:"npm",children:"NPM \u955C\u50CF"}),(0,e.jsx)(t.Radio.Button,{value:"private",children:"\u79C1\u6709\u955C\u50CF"})]})}),(0,e.jsx)(t.Form.Item,{label:"id",name:"assetId",style:{display:"none"},children:(0,e.jsx)(t.Input,{})}),J,(0,e.jsx)(t.Form.Item,{label:"\u5305\u540D",name:"package",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5305\u540D"}],children:(0,e.jsx)(t.Input,{disabled:m,placeholder:"\u8BF7\u8F93\u5165\u5305\u540D\uFF0C\u4F8B\u5982\uFF1A@antv/li-analysis-assets",addonAfter:O?(0,e.jsx)(t.Button,{disabled:(0,Y.isEmpty)(V),loading:G,size:"small",type:"link",onClick:function(){I(!0),Z(l.getFieldValue("package"))},children:"\u83B7\u53D6\u5305\u4FE1\u606F"}):null})}),(0,e.jsx)(t.Form.Item,{label:"\u7248\u672C\u53F7",name:"version",rules:[{required:!0,message:O?"\u8BF7\u9009\u62E9\u7248\u672C\u53F7":"\u8BF7\u8F93\u5165\u7248\u672C\u53F7"}],children:O?(0,e.jsx)(t.Select,{options:M,placeholder:"\u8BF7\u9009\u62E9\u7248\u672C\u53F7"}):(0,e.jsx)(t.Input,{placeholder:"\u8BF7\u8F93\u5165\u7248\u672C\u53F7"})}),(0,e.jsx)(t.Form.Item,{label:"UMD \u540D\u79F0",name:"global",rules:[{required:!0,message:"\u8BF7\u8F93\u5165 UMD \u540D\u79F0"}],children:(0,e.jsx)(t.Input,{placeholder:"\u8BF7\u8F93\u5165 UMD \u540D\u79F0\uFF0C\u4F8B\u5982\uFF1ALIAnalysisAssets"})}),!O&&(0,e.jsx)($e,{}),(0,e.jsx)(t.Form.Item,{label:"\u8D44\u4EA7\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D44\u4EA7\u540D\u79F0"}],children:(0,e.jsx)(t.Input,{placeholder:"\u8BF7\u8F93\u5165\u8D44\u4EA7\u540D\u79F0\uFF0C\u4F8B\u5982\uFF1A\u5B98\u65B9\u5206\u6790\u8D44\u4EA7"})}),(0,e.jsx)(t.Form.Item,{label:"\u8D44\u4EA7\u63CF\u8FF0",name:"description",rules:[{message:"\u8BF7\u8F93\u5165\u8D44\u4EA7\u63CF\u8FF0"}],children:(0,e.jsx)(t.Input.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8D44\u4EA7\u63CF\u8FF0\uFF0C\u4F8B\u5982\uFF1A\u5206\u6790\u8D44\u4EA7\u5305\uFF0C\u7528\u4E8E\u6570\u636E\u53EF\u89C6\u5206\u6790\u573A\u666F\uFF0C\u5305\u542B\u5206\u6790\u56FE\u5C42\u3001\u7EC4\u4EF6\u7B49",rows:4})}),(0,e.jsxs)(t.Form.Item,{style:{textAlign:"right",marginBottom:0},children:[(0,e.jsx)(t.Button,{htmlType:"button",onClick:Pe,style:{marginRight:20},children:"\u8FD4\u56DE"}),(0,e.jsx)(t.Button,{type:"primary",htmlType:"submit",loading:b,children:m?"\u786E\u8BA4":"\u5BFC\u5165"})]})]})})},Re=We,Ge=i(49231),c=i.n(Ge),u=i(87651),se,ae,re,oe,ie,le,ce,He=function(){var o=t.theme.useToken,a=o(),n=a.token,r=n.colorTextSecondary,s=n.colorPrimary;return{card:(0,u.iv)(se||(se=c()([` + cursor: pointer; + `]))),cardTitle:(0,u.iv)(ae||(ae=c()([` + display: flex; + + .ant-tag { + position: relative; + } + `]))),cardDescription:(0,u.iv)(re||(re=c()([` + height: 25px; + overflow: hidden; + color: `,`; + font-size: 13px; + white-space: nowrap; + text-overflow: ellipsis; + `])),r),cardPackage:(0,u.iv)(oe||(oe=c()([` + position: relative; + color: `,`; + font-size: 12px; + display: flex; + + .ant-tag { + position: relative; + } + `])),r),cardPackageVerson:(0,u.iv)(ie||(ie=c()([` + position: absolute; + margin-left: 5px; + color: `,`; + `])),s),cardPackagName:(0,u.iv)(le||(le=c()([` + line-height: 20px; + `]))),importAsset:(0,u.iv)(ce||(ce=c()([` + position: absolute; + top: -65px; + right: 0; + `])))}},Je=He,K=i(74090),Ke=i(90527),Ye=["assetId"],Q=function(o){return Ke.AT.some(function(a){return a.package===o})},Qe=function(o){var a=(0,k.useState)(!1),n=f()(a,2),r=n[0],s=n[1],h=(0,k.useState)(),d=f()(h,2),l=d[0],v=d[1],F=(0,k.useState)([]),b=f()(F,2),j=b[0],L=b[1],A=Je(),G=t.message.useMessage(),I=f()(G,2),p=I[0],_=I[1],M=function(){(0,K.nl)().then(function(g){L(g)})};(0,k.useEffect)(function(){M()},[]);var w=function(g){v(g),s(!0)},H=function(g){var T=g.assetId,z=Be()(g,Ye);(0,N.loadAssetPackages)([E()({},g)],{isLoadStyle:!1}).then(function(J){J&&(T?(0,K.rW)(T,z).then(function(Z){p.success("\u66F4\u65B0\u8D44\u4EA7\u6210\u529F\uFF01"),M(),s(!1),v(void 0)}):(0,K.fY)(g).then(function(){p.success("\u521B\u5EFA\u8D44\u4EA7\u6210\u529F\uFF01"),M(),s(!1),v(void 0)}))}).catch(function(){T?p.error("\u521B\u5EFA\u8D44\u4EA7\u5931\u8D25\uFF01"):p.error("\u8D44\u4EA7\u66F4\u65B0\u5931\u8D25\uFF01")})},V=function(g){(0,K.wM)(g).then(function(){p.success("\u8D44\u4EA7\u5220\u9664\u6210\u529F\uFF01"),M()})},O=function(g){var T=[{key:"editAsset",label:"\u4FEE\u6539\u8D44\u4EA7",disabled:Q(g.package),onClick:function(){w(g)}},{key:"delAsset",label:"\u5220\u9664\u8D44\u4EA7",disabled:Q(g.package),onClick:function(){V(g.assetId)}}];return(0,e.jsx)("div",{onClick:function(J){return J.stopPropagation()},children:(0,e.jsx)(t.Dropdown,{menu:{items:T},children:(0,e.jsx)(x.MoreOutlined,{})})})};return(0,e.jsxs)(t.Row,{gutter:[48,24],className:o.className,children:[j.map(function(m){var g;return(0,e.jsx)(t.Col,{xxl:6,xl:8,lg:12,md:12,sm:24,xs:24,children:(0,e.jsxs)(t.Card,{title:(0,e.jsxs)("div",{className:A.cardTitle,onClick:function(){Q(m.package)||w(m)},children:[(0,e.jsx)("div",{children:m.name}),((g=m.description)===null||g===void 0?void 0:g.includes("\u5B98\u65B9"))&&(0,e.jsx)("div",{children:(0,e.jsx)(t.Tag,{className:A.cardPackageVerson,children:"\u5B98\u65B9"})})]}),bordered:!1,className:A.card,extra:O(m),children:[(0,e.jsx)("p",{className:A.cardDescription,children:m.description&&m.description.length>26?(0,e.jsx)(t.Tooltip,{title:m.description,children:m.description}):m.description}),(0,e.jsxs)("div",{className:A.cardPackage,children:[(0,e.jsx)("div",{children:m.package}),(0,e.jsx)("div",{children:(0,e.jsx)(t.Tag,{className:A.cardPackageVerson,children:m.version})})]})]})},m.assetId)}),(0,e.jsx)(t.Button,{type:"primary",ghost:!0,className:A.importAsset,onClick:function(){return s(!0)},children:"\u5BFC\u5165\u8D44\u4EA7\u5305"}),(0,e.jsx)(Re,{open:r,initialValue:l,onSubmit:H,onCancel:function(){s(!1),v(void 0)}}),_]})},Ze=Qe,Xe=i(87971),qe=function(){return(0,e.jsxs)("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em",style:{fill:"currentcolor"},children:[(0,e.jsx)("path",{d:"M307.2 486.4V194.56c0-23.04 17.92-40.96 40.96-40.96h478.72c25.6 0 43.52 17.92 43.52 40.96v478.72c0 23.04-17.92 40.96-40.96 40.96h-158.72l-227.84-386.56c-2.56-2.56-5.12-7.68-10.24-10.24-12.8-7.68-28.16-2.56-35.84 10.24L307.2 486.4z"}),(0,e.jsx)("path",{d:"M445.44 448l243.2 417.28c7.68 12.8 2.56 28.16-10.24 35.84-5.12 2.56-7.68 2.56-12.8 2.56H179.2c-15.36 0-25.6-10.24-25.6-25.6 0-5.12 0-10.24 2.56-12.8l243.2-417.28c7.68-12.8 23.04-15.36 35.84-10.24 5.12 2.56 7.68 5.12 10.24 10.24z",fill:"#A9CFFF",style:{opacity:.36}})]})},et=function(){return(0,e.jsxs)("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",style:{fill:"currentcolor"},children:[(0,e.jsx)("path",{d:"M510.464 625.152c-7.168 0-13.824-2.048-19.968-6.144L113.664 365.568c-10.24-6.656-15.872-18.432-15.872-30.208 0-12.288 6.656-23.552 16.896-29.696l382.976-239.616c11.776-7.168 26.624-7.168 37.888 0l374.784 234.496c10.24 6.656 16.384 17.408 16.896 29.696 0 12.288-5.632 23.552-15.872 30.208L530.432 619.52c-6.144 3.584-13.312 5.632-19.968 5.632zM199.168 336.896l310.784 209.408 315.392-214.528L516.608 138.24l-317.44 198.656z",fill:"#A9CFFF",style:{opacity:.36}}),(0,e.jsx)("path",{d:"M508.416 807.936c-7.168 0-14.336-2.048-19.968-6.144L61.44 509.952c-16.384-11.264-20.48-33.28-9.216-49.664 11.264-16.384 33.28-20.48 49.664-9.216l406.528 277.504L919.552 445.44c16.384-11.264 38.4-7.168 49.664 9.216 11.264 16.384 7.168 38.4-9.216 49.664l-431.616 297.472c-5.632 3.584-12.8 6.144-19.968 6.144z"}),(0,e.jsx)("path",{d:"M506.88 982.016c-7.168 0-14.336-2.048-19.968-6.144l-427.008-291.328c-16.384-11.264-20.48-33.28-9.216-49.664 11.264-16.384 33.28-20.48 49.664-9.216L506.88 903.168l411.136-283.136c16.384-11.264 38.4-7.168 49.664 9.216 11.264 16.384 7.168 38.4-9.216 49.664l-431.104 296.96c-6.144 4.096-13.312 6.144-20.48 6.144z",fill:"#A9CFFF",style:{opacity:.36}})]})},ue,de,me,pe,ve,he,ge,fe,xe,tt=function(){var o=t.theme.useToken,a=o(),n=a.token,r=n.colorTextSecondary,s=n.colorPrimary;return{components:(0,u.iv)(ue||(ue=c()([` + padding: 15px 5px; + `]))),components__content:(0,u.iv)(de||(de=c()([` + position: relative; + display: flex; + align-items: center; + `]))),components__content__img:(0,u.iv)(me||(me=c()([` + span { + font-size: 60px; + + svg { + color: `,`; + } + } + `])),s),components__content__right:(0,u.iv)(pe||(pe=c()([` + display: flex; + flex-direction: column; + justify-content: space-between; + height: 80px; + overflow: hidden; + padding: 0 5px; + `]))),components__content__right__header:(0,u.iv)(ve||(ve=c()([` + display: flex; + align-items: center; + `]))),components__content__right__header__name:(0,u.iv)(he||(he=c()([` + height: 22px; + font-size: 14px; + `]))),components__content__right__header__verson:(0,u.iv)(ge||(ge=c()([` + margin-left: 4px; + color: `,`; + `])),s),components__content__right__description:(0,u.iv)(fe||(fe=c()([` + height: 18px; + overflow: hidden; + color: `,`; + font-size: 13px; + white-space: nowrap; + text-overflow: ellipsis; + `])),r),components__content__right__package:(0,u.iv)(xe||(xe=c()([` + color: `,`; + font-size: 12px; + display: -webkit-box; + overflow: hidden; + text-overflow: -o-ellipsis-lastline; + text-overflow: ellipsis; + -webkit-line-clamp: 1; + line-clamp: 1; + -webkit-box-orient: vertical; + `])),r)}},nt=tt,st=function(o){var a=o.list,n=o.icon,r=nt();return(0,e.jsx)(t.Row,{gutter:[48,24],children:a.map(function(s,h){var d,l=(0,e.jsx)(P(),{component:s.metadata.icon?s.metadata.icon:n}),v=(0,Y.isEmpty)(s.metadata.description)?"\u6682\u65E0\u63CF\u8FF0":s.metadata.description&&((d=s.metadata.description)===null||d===void 0?void 0:d.length)>20?(0,e.jsx)(t.Tooltip,{title:s.metadata.description,children:s.metadata.description}):s.metadata.description;return(0,e.jsx)(t.Col,{xxl:4,xl:6,lg:8,md:12,sm:24,xs:24,children:(0,e.jsx)(t.Card,{bordered:!1,className:r.components,bodyStyle:{overflow:"hidden",padding:0},children:(0,e.jsxs)("div",{className:r.components__content,children:[(0,e.jsx)("div",{className:r.components__content__img,children:l}),(0,e.jsxs)("div",{className:r.components__content__right,children:[(0,e.jsxs)("div",{className:r.components__content__right__header,children:[(0,e.jsx)("div",{className:r.components__content__right__header__name,children:s.metadata.displayName}),(0,e.jsx)(t.Tag,{className:r.components__content__right__header__verson,children:s.version})]}),(0,e.jsx)("span",{className:r.components__content__right__description,children:v}),(0,e.jsxs)("span",{className:r.components__content__right__package,children:[s.packageName,(0,e.jsx)("span",{style:{marginLeft:5},children:s.packageVersion})]})]})]})},h)},h)})})},ye=st,at=i(80445),je=i.n(at),rt=function(o){for(var a=[],n=[],r=function(){var d=o[s],l=d.metadata||{name:""};a.push.apply(a,je()(d.layers.map(function(v){return E()(E()({},v),{},{packageName:l.name,packageVersion:l.version})}))),n.push.apply(n,je()(d.widgets.map(function(v){return E()(E()({},v),{},{packageName:l.name,packageVersion:l.version})})))},s=0;s=0)&&Object.prototype.propertyIsEnumerable.call(x,D)&&(N[D]=x[D])}return N}S.exports=f,S.exports.__esModule=!0,S.exports.default=S.exports},24146:function(S){function $(i,W){if(i==null)return{};var f={},x=Object.keys(i),P,N;for(N=0;N=0)&&(f[P]=i[P]);return f}S.exports=$,S.exports.__esModule=!0,S.exports.default=S.exports}}]); diff --git a/p__AssetMarket__index.a7c44a91.chunk.css b/p__AssetMarket__index.a7c44a91.chunk.css new file mode 100644 index 00000000..2744afd7 --- /dev/null +++ b/p__AssetMarket__index.a7c44a91.chunk.css @@ -0,0 +1 @@ +.li-filter-list__add-btn{padding:5px 0;text-align:center;opacity:.8}.li-filter-list__add-icon{color:silver;font-size:15px}.li-filter-item{position:relative;margin:10px;padding:10px 15px 20px;text-align:left;border:1px solid;border-radius:4px}.li-filter-item__filter-field{display:flex;justify-content:space-between;height:25px;color:silver;font-size:12px}.li-filter-item__del-filter{width:20px;margin-left:30px;color:silver;opacity:.6}.li-filter-item__field-operator{display:flex;align-items:center;margin-bottom:12px}.li-filter-item__select-field{flex:1 1;border-radius:4px}.li-filter-item__select-operator{width:120px}.li-filter-item__filter-content-title{height:25px;color:silver;font-size:12px}.li-filter-item-filter-field-number{display:flex;align-content:space-around;width:100%}.li-filter-item-filter-field-number__one-way{flex:1 1;margin-right:10px}.li-filter-item-filter-field-number__input-number{display:flex;flex:1 1;justify-content:space-between}.li-filter-item-filter-field-string__value{flex:1 1;width:100%}.li-filter-item-filter-field-date{display:flex}.li-filter-item-filter-field-date-picker{flex:1 1;width:100%}.layout___hYknw{min-height:100%}.header___bnmp8{position:fixed;z-index:10;display:flex;align-items:center;justify-content:space-between;width:100%}.header-left___rV4Gd{display:flex;align-items:center;cursor:pointer}.logo___FD0Z4{display:flex;align-items:center;font-weight:500;font-size:18px}.logo-img___h8YRK{width:26px;height:26px;margin-right:10px}.content___zUqyK{margin-top:64px;padding:50px 102px}.content___zUqyK .my-components___By5le,.content___zUqyK .my-assets-marks___UEjSW{margin-top:10px} diff --git a/p__Builder__index.aff38dbd.async.js b/p__Builder__index.aff38dbd.async.js new file mode 100644 index 00000000..4025d393 --- /dev/null +++ b/p__Builder__index.aff38dbd.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_antv_li_website=self.webpackChunk_antv_li_website||[]).push([[623],{66698:function(Q,r,t){t.r(r),t.d(r,{default:function(){return I}});var N=t(91055),l=t.n(N),C=t(69024),u=t.n(C),c=t(93707),v=t(74090),M=t(9256),f=t(87971),a=t(87363),x=t(40795),m=t(34795),B=t(71022),p=t(70293);f.Ec.DefaultEditorWidgets=m.es;var P=function(){var o,T=(0,x.UO)(),g=T.id,n=g===void 0?"":g,s=(0,a.useMemo)(function(){return new f.Ec({assets:[],editorWidgets:m.Tl})},[]),U=(0,a.useState)([]),j=u()(U,2),H=j[0],K=j[1],W=(0,c.z2)(H),i=W.assets,$=(0,B.JV)(s),h=(0,c.wy)(),z=h.emptyModal,D=h.emptyContextHolder,F=(0,a.useState)({project:void 0}),y=u()(F,2),d=y[0],J=y[1],S=(o=d.project)===null||o===void 0?void 0:o.applicationConfig;(0,a.useMemo)(function(){return s.installAssets(i)},[i]),(0,a.useEffect)(function(){(0,v.e5)(n).then(function(e){K(e.assetPackageIds),J(function(A){return l()(l()({},A),{},{project:e})}),document.title="".concat(e.applicationConfig.metadata.name),(0,M.lF)(14,{c1:e.projectName,c2:e.creatTime})}).catch(function(e){z(e)})},[n]),(0,a.useEffect)(function(){var e=function(V){var E=d.project,G=E.projectName,L=E.description;(0,v.ty)(n,{projectName:G,description:L,applicationConfig:V})};return s.on("change",e),function(){s.off("change",e)}},[d.project,s,n]);var O=s.Editor,R=!!i.length&&S;return(0,p.jsxs)("div",{className:"li-builder",children:[D,R&&(0,p.jsx)(O,{className:"li-builder__editor",defaultActiveNavMenuKey:$,defaultApplication:S})]})},I=P}}]); diff --git a/p__Builder__index.bc8f1eb1.chunk.css b/p__Builder__index.bc8f1eb1.chunk.css new file mode 100644 index 00000000..caaa3447 --- /dev/null +++ b/p__Builder__index.bc8f1eb1.chunk.css @@ -0,0 +1 @@ +.li-filter-list__add-btn{padding:5px 0;text-align:center;opacity:.8}.li-filter-list__add-icon{color:silver;font-size:15px}.li-filter-item{position:relative;margin:10px;padding:10px 15px 20px;text-align:left;border:1px solid;border-radius:4px}.li-filter-item__filter-field{display:flex;justify-content:space-between;height:25px;color:silver;font-size:12px}.li-filter-item__del-filter{width:20px;margin-left:30px;color:silver;opacity:.6}.li-filter-item__field-operator{display:flex;align-items:center;margin-bottom:12px}.li-filter-item__select-field{flex:1 1;border-radius:4px}.li-filter-item__select-operator{width:120px}.li-filter-item__filter-content-title{height:25px;color:silver;font-size:12px}.li-filter-item-filter-field-number{display:flex;align-content:space-around;width:100%}.li-filter-item-filter-field-number__one-way{flex:1 1;margin-right:10px}.li-filter-item-filter-field-number__input-number{display:flex;flex:1 1;justify-content:space-between}.li-filter-item-filter-field-string__value{flex:1 1;width:100%}.li-filter-item-filter-field-date{display:flex}.li-filter-item-filter-field-date-picker{flex:1 1;width:100%}.li-builder{position:relative;display:flex;width:100vw;height:100vh}.li-builder__editor{width:100%} diff --git a/p__Case__index.331f4f99.async.js b/p__Case__index.331f4f99.async.js new file mode 100644 index 00000000..e2d771cf --- /dev/null +++ b/p__Case__index.331f4f99.async.js @@ -0,0 +1,29 @@ +(self.webpackChunk_antv_li_website=self.webpackChunk_antv_li_website||[]).push([[248],{93707:function(S,p,e){"use strict";e.d(p,{wy:function(){return M},QR:function(){return l},nK:function(){return T},z2:function(){return Z}});var m=e(69024),h=e.n(m),E=e(81821),o=e(40795),M=function(){var d=E.Modal.useModal(),r=h()(d,2),c=r[0],i=r[1],v=(0,o.TH)(),x=function(){v.pathname.includes("/builder/")||v.pathname.includes("/app/")?o.m8.push({pathname:"/project"}):o.m8.push({pathname:"/case"})};return{emptyModal:function(D){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x,j=5,O,L,B=c.warning({title:D,content:"".concat(j," \u79D2\u540E\u4F1A\u81EA\u52A8\u9000\u5230\u4E0A\u4E00\u9875\u9762\u3002"),onOk:function(){O&&clearInterval(O),L&&clearTimeout(L),P()}});O=setInterval(function(){j-=1,B.update({content:"".concat(j," \u79D2\u540E\u81EA\u52A8\u4F1A\u9000\u5230\u4E0A\u4E00\u9875\u9762\u3002")})},1e3),L=setTimeout(function(){clearInterval(O),B.destroy(),P()},j*1e3)},emptyContextHolder:i}},g=e(87363);function y(R){var d="https://private-alipayobjects.alipay.com/alipay-rmsdeploy-image/rmsportal/RKuAiriJqrUhyqW.png",r=new Image,c,i=function(x){c||(c=!0,r.src="",R(x))};return r.onload=function(){return i("responded")},r.onerror=function(){return i("error")},r.src=d,setTimeout(function(){return i("timeout")},1500)}var s="L7VP_DOT_NOT_SHOW_PROMPT_MODAL",a;function T(){var R=(0,g.useState)(!1),d=h()(R,2),r=d[0],c=d[1];return(0,g.useEffect)(function(){var i;(i=a)!==null&&i!==void 0||(a=new Promise(function(v){y(function(x){return v(x!=="timeout"&&x!=="error")})})),a.then(c)},[]),r}function l(){var R=["li.antv.antgroup.com","locationinsight.antv.antgroup.com"].includes(window.location.hostname),d=T(),r=E.Modal.useModal(),c=h()(r,2),i=c[0],v=c[1],x=R&&d;return(0,g.useEffect)(function(){if(x){var w=window.localStorage.getItem(s);if(!(w&&w!=="true"&&Date.now()-new Date(w).getTime()<5*24*60*60*1e3)){var D=function(){window.localStorage.setItem(s,new Date().toISOString())},P=function(){var O=window.location.href.replace(window.location.host,"li.antgroup-inc.cn");window.location.replace(O)};i.confirm({icon:null,title:"\u63D0\u793A",content:"\u5185\u7F51\u7528\u6237\u63A8\u8350\u8BBF\u95EE\u5185\u7F51\u7248\u4EE5\u83B7\u5F97\u5B8C\u6574\u7684\u529F\u80FD\u4F53\u9A8C\uFF5E",cancelText:"5 \u5929\u5185\u4E0D\u518D\u663E\u793A",okText:"\u7ACB\u5373\u524D\u5F80",onCancel:D,onOk:P})}}},[x]),v}var A=e(51490),C=e.n(A),k=e(91055),I=e.n(k),F=e(88104),V=e.n(F),W=e(25435),U=e(6079),G=e(12611),n=e(9256),K=e(74090),Z=function(d){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=(0,g.useState)([]),i=h()(c,2),v=i[0],x=i[1],w=(0,g.useState)(!1),D=h()(w,2),P=D[0],j=D[1],O=(0,g.useState)(null),L=h()(O,2),B=L[0],z=L[1],J=function(){var Q=V()(C()().mark(function N(){var t,f,b;return C()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return j(!0),u.prev=1,u.next=4,(0,K.nl)();case 4:return t=u.sent,Array.isArray(d)&&(t=t.filter(function($){return d.includes($.assetId)})),t=t.map(function($){return $.enable===!1?I()(I()({},$),{},{urls:[]}):$}),f=r.sandbox?I()(I()({},(0,G.isObject)(r.sandbox)?r.sandbox:{}),{},{injectEnv:(0,n.Rz)()}):!1,u.next=10,(0,W.loadAssetPackages)(t,I()(I()({},r),{},{sandbox:f}));case 10:b=u.sent,x(b),u.next=17;break;case 14:u.prev=14,u.t0=u.catch(1),z(new Error("\u8D44\u4EA7\u8BF7\u6C42\u6216\u52A0\u8F7D\u5931\u8D25, ".concat(u.t0)));case 17:return u.prev=17,j(!1),u.finish(17);case 20:case"end":return u.stop()}},N,null,[[1,14,17,20]])}));return function(){return Q.apply(this,arguments)}}();return(0,U.Z)(function(){J()},[d]),{assets:v,loading:P,error:B}}},63086:function(S,p,e){"use strict";e.r(p),e.d(p,{default:function(){return R}});var m=e(69024),h=e.n(m),E=e(16640),o=e(81821),M=e(87363),g=e(40795),y=e(49231),s=e.n(y),a=e(87651),T,l,A,C,k,I,F,V=function(){var r=o.theme.useToken,c=r(),i=c.token,v=i.colorBgElevated;return{cases:(0,a.iv)(T||(T=s()([` + padding: 0 95px; + `]))),catalogTitle:(0,a.iv)(l||(l=s()([` + font-size: 16px; + margin-bottom: 12px; + `]))),caseCard:(0,a.iv)(A||(A=s()([` + cursor: pointer; + } + `]))),caseImg:(0,a.iv)(C||(C=s()([` + width: 100%; + height: 240px; + object-fit: cover; + `]))),caseHead:(0,a.iv)(k||(k=s()([` + position: absolute; + top: 0; + width: 100%; + padding: 10px; + display: flex !important; + justify-content: space-between; + align-items: center; + `]))),caseTools:(0,a.iv)(I||(I=s()([` + border-radius: 20px; + &:hover { + background: `,`; + } + `])),v),itemDescription:(0,a.iv)(F||(F=s()([` + margin-bottom: 0 !important; + min-height: 44px; + `])))}},W=V,U=e(74090),G=e(93707),n=e(70293),K=o.Card.Meta,Z=function(){var r=W(),c=(0,M.useState)([]),i=h()(c,2),v=i[0],x=i[1],w=(0,M.useState)(!0),D=h()(w,2),P=D[0],j=D[1],O=(0,G.wy)(),L=O.emptyModal,B=O.emptyContextHolder,z=function(){return(0,U.uq)().then(function(t){x(t)}).catch(function(t){console.log("err: ",t)})};(0,M.useEffect)(function(){j(!0),z().finally(function(){return j(!1)})},[]);var J=function(t){var f=t.applicationConfig,b={projectName:"".concat(f==null?void 0:f.metadata.name,"_copy"),description:(f==null?void 0:f.metadata.description)||"",applicationConfig:f,assetPackageIds:t.assetPackageIds};(0,U.$L)(b).then(function(H){g.m8.push({pathname:"/project"})}).catch(function(){L("\u6DFB\u52A0\u5230\u9879\u76EE\u5931\u8D25")})},Q=function(t){var f,b=function(){var u=t.viewMode==="view"?"/app/".concat(t.id,"?type=case"):"/template/".concat(t.id,"?nav=layers");window.open(g.m8.createHref(u))};return(0,n.jsx)(o.Card,{className:r.caseCard,onClick:b,cover:(0,n.jsxs)("div",{children:[(0,n.jsx)("img",{alt:t.name,className:r.caseImg,src:t.thumbnail}),(0,n.jsxs)("div",{className:r.caseHead,onClick:function(u){return u.stopPropagation()},children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(o.Tag,{color:t.type==="vis"?"green":"blue",bordered:!1,children:t.type==="vis"?"\u53EF\u89C6\u5206\u6790":t.type==="app"?"\u5E94\u7528\u6848\u4F8B":"\u5176\u4ED6\u6848\u4F8B"}),t.tags.map(function(H){return(0,n.jsx)(o.Tag,{color:"cyan",bordered:!1,children:H},H)})]}),(0,n.jsx)("div",{className:r.caseTools,children:(0,n.jsxs)(o.Space,{children:[(0,n.jsx)(o.Tooltip,{title:"\u9884\u89C8",children:(0,n.jsx)(o.Button,{type:"text",shape:"circle",icon:(0,n.jsx)(E.DesktopOutlined,{}),onClick:b})}),(0,n.jsx)(o.Tooltip,{title:"\u514B\u9686",children:(0,n.jsx)("span",{onClick:function(){return J(t)},children:(0,n.jsx)(o.Button,{type:"text",shape:"circle",icon:(0,n.jsx)(E.ForkOutlined,{})})},"create map")})]})})]})]}),children:(0,n.jsx)(K,{title:(0,n.jsx)("span",{title:t.name,children:t.name}),description:(0,n.jsx)(o.Typography.Paragraph,{className:r.itemDescription,type:"secondary",ellipsis:{rows:2,tooltip:t.description.length>40&&{title:t.description}},children:(f=t.description)!==null&&f!==void 0?f:"\u6682\u65E0\u63CF\u8FF0"})})})};return P?(0,n.jsx)("div",{style:{textAlign:"center",padding:"60px 50px"},children:(0,n.jsx)(o.Spin,{})}):(0,n.jsxs)("div",{className:r.cases,children:[(0,n.jsx)("div",{className:r.catalogTitle,children:"\u6848\u4F8B\u5217\u8868"}),(0,n.jsx)(o.Row,{gutter:[48,24],children:v.map(function(N){return(0,n.jsx)(o.Col,{xxl:6,xl:8,lg:12,md:12,sm:24,xs:24,children:Q(N)},N.id)})}),B]})},R=Z},164:function(S,p,e){"use strict";var m=e(87363),h=Symbol.for("react.element"),E=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,M=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,g={key:!0,ref:!0,__self:!0,__source:!0};function y(s,a,T){var l,A={},C=null,k=null;T!==void 0&&(C=""+T),a.key!==void 0&&(C=""+a.key),a.ref!==void 0&&(k=a.ref);for(l in a)o.call(a,l)&&!g.hasOwnProperty(l)&&(A[l]=a[l]);if(s&&s.defaultProps)for(l in a=s.defaultProps,a)A[l]===void 0&&(A[l]=a[l]);return{$$typeof:h,type:s,key:C,ref:k,props:A,_owner:M.current}}p.Fragment=E,p.jsx=y,p.jsxs=y},70293:function(S,p,e){"use strict";S.exports=e(164)},6079:function(S,p,e){"use strict";e.d(p,{Z:function(){return g}});var m=e(87363),h=e(54335),E=e.n(h),o=function(y,s){return y===void 0&&(y=[]),s===void 0&&(s=[]),E()(y,s)},M=function(y){return function(s,a){var T=(0,m.useRef)(),l=(0,m.useRef)(0);(a===void 0||!o(a,T.current))&&(T.current=a,l.current+=1),y(s,[l.current])}},g=M(m.useEffect)},49231:function(S){function p(e,m){return m||(m=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(m)}}))}S.exports=p,S.exports.__esModule=!0,S.exports.default=S.exports}}]); diff --git a/p__Docs__index.18f59cd1.async.js b/p__Docs__index.18f59cd1.async.js new file mode 100644 index 00000000..cdf3cc3f --- /dev/null +++ b/p__Docs__index.18f59cd1.async.js @@ -0,0 +1,2 @@ +(self.webpackChunk_antv_li_website=self.webpackChunk_antv_li_website||[]).push([[18],{68865:function(t,c,e){"use strict";e.r(c),e.d(c,{default:function(){return g}});var o=e(69024),n=e.n(o),a=e(16640),p=e(39216),s=e(81821),r=e(29512),l=e(88198),u=e(12611),h=e(87363),i=e(40795),d={layout:"layout___wwFGN",header:"header___sa9IY","header-left":"header-left___Uu_i5",logo:"logo___vYItS","logo-img":"logo-img___t61zR",content:"content___YLKS1"},f=e(70293),_=function(){var m="L7VP \uFF5C \u6587\u6863",x=(0,h.useRef)(null),b=(0,i.lr)(),A=n()(b,1),$=A[0],v=$.get("path");(0,p.Z)(m);var y="https://www.yuque.com/antv/l7vp",C=(0,u.isEmpty)(v)?y:"".concat(y,"/").concat(v),T=function(){x.current};return(0,f.jsx)(s.ConfigProvider,{locale:r.Z,theme:{inherit:!1},children:(0,f.jsxs)(s.Layout,{className:d.layout,children:[(0,f.jsxs)(l.h4,{className:d.header,children:[(0,f.jsxs)("div",{className:d["header-left"],onClick:function(){i.m8.push("/")},children:[(0,f.jsx)("img",{className:d["logo-img"],src:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*xuDWR7uXkbkAAAAAAAAAAAAADmJ7AQ/original"}),(0,f.jsx)("div",{className:d.logo,children:m})]}),(0,f.jsx)("a",{href:"https://github.com/antvis/L7VP",target:"_blank",rel:"noreferrer",children:(0,f.jsx)(s.Button,{type:"text",size:"small",icon:(0,f.jsx)(a.GithubOutlined,{}),children:"GitHub"})})]}),(0,f.jsx)(l.VY,{className:d.content,children:(0,f.jsx)("iframe",{ref:x,src:C,onLoad:T,frameBorder:"0",style:{width:"100%",height:"calc(100vh - 164px)"},allow:"fullscreen"})})]})})},g=_},29512:function(t,c,e){"use strict";e.d(c,{Z:function(){return f}});var o={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"},n=o,a={locale:"zh_CN",yearFormat:"YYYY\u5E74",cellDateFormat:"D",cellMeridiemFormat:"A",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA"},p=a,r={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]};const l={lang:Object.assign({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeQuarterPlaceholder:["\u5F00\u59CB\u5B63\u5EA6","\u7ED3\u675F\u5B63\u5EA6"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},p),timePickerLocale:Object.assign({},r)};l.lang.ok="\u786E\u5B9A";var u=l,h=u;const i="${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}";var f={locale:"zh-cn",Pagination:n,DatePicker:u,TimePicker:r,Calendar:h,global:{placeholder:"\u8BF7\u9009\u62E9"},Table:{filterTitle:"\u7B5B\u9009",filterConfirm:"\u786E\u5B9A",filterReset:"\u91CD\u7F6E",filterEmptyText:"\u65E0\u7B5B\u9009\u9879",filterCheckall:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",emptyText:"\u6682\u65E0\u6570\u636E",selectAll:"\u5168\u9009\u5F53\u9875",selectInvert:"\u53CD\u9009\u5F53\u9875",selectNone:"\u6E05\u7A7A\u6240\u6709",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5E8F",expand:"\u5C55\u5F00\u884C",collapse:"\u5173\u95ED\u884C",triggerDesc:"\u70B9\u51FB\u964D\u5E8F",triggerAsc:"\u70B9\u51FB\u5347\u5E8F",cancelSort:"\u53D6\u6D88\u6392\u5E8F"},Modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",justOkText:"\u77E5\u9053\u4E86"},Tour:{Next:"\u4E0B\u4E00\u6B65",Previous:"\u4E0A\u4E00\u6B65",Finish:"\u7ED3\u675F\u5BFC\u89C8"},Popconfirm:{cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A"},Transfer:{titles:["",""],searchPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5F53\u9875",removeCurrent:"\u5220\u9664\u5F53\u9875",selectAll:"\u5168\u9009\u6240\u6709",deselectAll:"\u53D6\u6D88\u5168\u9009",removeAll:"\u5220\u9664\u5168\u90E8",selectInvert:"\u53CD\u9009\u5F53\u9875"},Upload:{uploading:"\u6587\u4EF6\u4E0A\u4F20\u4E2D",removeFile:"\u5220\u9664\u6587\u4EF6",uploadError:"\u4E0A\u4F20\u9519\u8BEF",previewFile:"\u9884\u89C8\u6587\u4EF6",downloadFile:"\u4E0B\u8F7D\u6587\u4EF6"},Empty:{description:"\u6682\u65E0\u6570\u636E"},Icon:{icon:"\u56FE\u6807"},Text:{edit:"\u7F16\u8F91",copy:"\u590D\u5236",copied:"\u590D\u5236\u6210\u529F",expand:"\u5C55\u5F00",collapse:"\u6536\u8D77"},Form:{optional:"\uFF08\u53EF\u9009\uFF09",defaultValidateMessages:{default:"\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",required:"\u8BF7\u8F93\u5165${label}",enum:"${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",whitespace:"${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",date:{format:"${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",parse:"${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",invalid:"${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"},types:{string:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},string:{len:"${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",min:"${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",max:"${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",range:"${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"},number:{len:"${label}\u5FC5\u987B\u7B49\u4E8E${len}",min:"${label}\u6700\u5C0F\u503C\u4E3A${min}",max:"${label}\u6700\u5927\u503C\u4E3A${max}",range:"${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"},array:{len:"\u987B\u4E3A${len}\u4E2A${label}",min:"\u6700\u5C11${min}\u4E2A${label}",max:"\u6700\u591A${max}\u4E2A${label}",range:"${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"},pattern:{mismatch:"${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"}}},Image:{preview:"\u9884\u89C8"},QRCode:{expired:"\u4E8C\u7EF4\u7801\u8FC7\u671F",refresh:"\u70B9\u51FB\u5237\u65B0",scanned:"\u5DF2\u626B\u63CF"},ColorPicker:{presetEmpty:"\u6682\u65E0"}}},40576:function(t){function c(e,o){(o==null||o>e.length)&&(o=e.length);for(var n=0,a=new Array(o);nt.length)&&(s=t.length);for(var u=0,n=new Array(s);u1&&arguments[1]!==void 0?arguments[1]:y,T=5,x,s,F=g.warning({title:j,content:"".concat(T," \u79D2\u540E\u4F1A\u81EA\u52A8\u9000\u5230\u4E0A\u4E00\u9875\u9762\u3002"),onOk:function(){x&&clearInterval(x),s&&clearTimeout(s),I()}});x=setInterval(function(){T-=1,F.update({content:"".concat(T," \u79D2\u540E\u81EA\u52A8\u4F1A\u9000\u5230\u4E0A\u4E00\u9875\u9762\u3002")})},1e3),s=setTimeout(function(){clearInterval(x),F.destroy(),I()},T*1e3)},emptyContextHolder:o}},l=e(87363);function t(M){var f="https://private-alipayobjects.alipay.com/alipay-rmsdeploy-image/rmsportal/RKuAiriJqrUhyqW.png",n=new Image,g,o=function(y){g||(g=!0,n.src="",M(y))};return n.onload=function(){return o("responded")},n.onerror=function(){return o("error")},n.src=f,setTimeout(function(){return o("timeout")},1500)}var d="L7VP_DOT_NOT_SHOW_PROMPT_MODAL",a;function A(){var M=(0,l.useState)(!1),f=i()(M,2),n=f[0],g=f[1];return(0,l.useEffect)(function(){var o;(o=a)!==null&&o!==void 0||(a=new Promise(function(h){t(function(y){return h(y!=="timeout"&&y!=="error")})})),a.then(g)},[]),n}function r(){var M=["li.antv.antgroup.com","locationinsight.antv.antgroup.com"].includes(window.location.hostname),f=A(),n=E.Modal.useModal(),g=i()(n,2),o=g[0],h=g[1],y=M&&f;return(0,l.useEffect)(function(){if(y){var O=window.localStorage.getItem(d);if(!(O&&O!=="true"&&Date.now()-new Date(O).getTime()<5*24*60*60*1e3)){var j=function(){window.localStorage.setItem(d,new Date().toISOString())},I=function(){var x=window.location.href.replace(window.location.host,"li.antgroup-inc.cn");window.location.replace(x)};o.confirm({icon:null,title:"\u63D0\u793A",content:"\u5185\u7F51\u7528\u6237\u63A8\u8350\u8BBF\u95EE\u5185\u7F51\u7248\u4EE5\u83B7\u5F97\u5B8C\u6574\u7684\u529F\u80FD\u4F53\u9A8C\uFF5E",cancelText:"5 \u5929\u5185\u4E0D\u518D\u663E\u793A",okText:"\u7ACB\u5373\u524D\u5F80",onCancel:j,onOk:I})}}},[y]),h}var c=e(51490),P=e.n(c),k=e(91055),L=e.n(k),b=e(88104),J=e.n(b),$=e(25435),w=e(6079),Q=e(12611),X=e(9256),B=e(74090),z=function(f){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=(0,l.useState)([]),o=i()(g,2),h=o[0],y=o[1],O=(0,l.useState)(!1),j=i()(O,2),I=j[0],T=j[1],x=(0,l.useState)(null),s=i()(x,2),F=s[0],Z=s[1],U=function(){var K=J()(P()().mark(function H(){var R,W,G;return P()().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return T(!0),u.prev=1,u.next=4,(0,B.nl)();case 4:return R=u.sent,Array.isArray(f)&&(R=R.filter(function(D){return f.includes(D.assetId)})),R=R.map(function(D){return D.enable===!1?L()(L()({},D),{},{urls:[]}):D}),W=n.sandbox?L()(L()({},(0,Q.isObject)(n.sandbox)?n.sandbox:{}),{},{injectEnv:(0,X.Rz)()}):!1,u.next=10,(0,$.loadAssetPackages)(R,L()(L()({},n),{},{sandbox:W}));case 10:G=u.sent,y(G),u.next=17;break;case 14:u.prev=14,u.t0=u.catch(1),Z(new Error("\u8D44\u4EA7\u8BF7\u6C42\u6216\u52A0\u8F7D\u5931\u8D25, ".concat(u.t0)));case 17:return u.prev=17,T(!1),u.finish(17);case 20:case"end":return u.stop()}},H,null,[[1,14,17,20]])}));return function(){return K.apply(this,arguments)}}();return(0,w.Z)(function(){U()},[f]),{assets:h,loading:I,error:F}}},88472:function(N,v,e){e.r(v),e.d(v,{default:function(){return L}});var S=e(69024),i=e.n(S),E=e(25435),m=e(81821),p=e(87363),l=e(40795),t={app:"app___RgPYz",header:"header___DVZmr",left:"left___iICbu",title:"title___mqrtD",actions:"actions___zOxzv",runtimeApp:"runtimeApp___gLFdu"},d=e(28535),a=e(9256),A=e(74090),r=e(93707),c=e(70293),P=m.theme.useToken,k=function(){var J=(0,l.UO)(),$=J.id,w=$===void 0?"":$,Q=(0,l.lr)(),X=i()(Q,1),B=X[0],z=B.get("type")||"project",M=B.get("embed")||"false",f=M==="true",n=z==="case",g=(0,p.useState)([]),o=i()(g,2),h=o[0],y=o[1],O=P(),j=O.token,I=(0,p.useMemo)(function(){return new E.LIRuntimeApp({assets:[]})},[]),T=(0,p.useState)(),x=i()(T,2),s=x[0],F=x[1],Z=(0,r.z2)(h),U=Z.assets,K=(0,r.wy)(),H=K.emptyModal,R=K.emptyContextHolder;(0,p.useMemo)(function(){return I.installAssets(U)},[U]),(0,p.useEffect)(function(){var V=function(Y){y(Y.assetPackageIds),F(Y.applicationConfig),document.title="".concat(Y.applicationConfig.metadata.name),(0,a.lF)(13,{c1:z,c2:w})};n?(0,A.S)(w).then(function(C){V(C)}).catch(function(C){H(C)}):(0,A.e5)(w).then(function(C){V(C)}).catch(function(C){H(C)})},[w]);var W=function(){l.m8.push(n?"/case":"/project")},G=function(){var C={projectName:"".concat(s==null?void 0:s.metadata.name,"_copy"),description:(s==null?void 0:s.metadata.description)||"",applicationConfig:s,assetPackageIds:h};(0,A.$L)(C).then(function(Y){l.m8.push({pathname:"/project"})}).catch(function(){H("\u590D\u5236\u5230\u9879\u76EE\u5931\u8D25")})},q=I.App,u=!!U.length&&s;if(!u)return null;var D=(0,c.jsxs)("div",{className:t.header,style:{color:j.colorText,backgroundColor:j.colorBgElevated},children:[(0,c.jsxs)("div",{className:t.left,children:[(0,c.jsx)(d.Z,{onClick:W}),(0,c.jsx)("p",{className:t.title,children:s.metadata.name})]}),!f&&n&&(0,c.jsx)("div",{className:t.actions,children:(0,c.jsx)(m.Space,{children:n&&(0,c.jsx)(m.Button,{size:"middle",type:"primary",onClick:G,children:"\u4F7F\u7528\u6848\u4F8B"})})})]});return(0,c.jsxs)("div",{className:t.app,children:[D,R,(0,c.jsx)(q,{className:t.runtimeApp,config:s})]})},L=k},28535:function(N,v,e){e.d(v,{Z:function(){return p}});var S={logo:"logo___wZlN1"},i=e(90527),E=e(70293),m=function(t){return(0,E.jsx)("div",{className:S.logo,onClick:t==null?void 0:t.onClick,children:(0,E.jsx)("img",{src:i.Oi})})},p=m},164:function(N,v,e){var S=e(87363),i=Symbol.for("react.element"),E=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,p=S.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function t(d,a,A){var r,c={},P=null,k=null;A!==void 0&&(P=""+A),a.key!==void 0&&(P=""+a.key),a.ref!==void 0&&(k=a.ref);for(r in a)m.call(a,r)&&!l.hasOwnProperty(r)&&(c[r]=a[r]);if(d&&d.defaultProps)for(r in a=d.defaultProps,a)c[r]===void 0&&(c[r]=a[r]);return{$$typeof:i,type:d,key:P,ref:k,props:c,_owner:p.current}}v.Fragment=E,v.jsx=t,v.jsxs=t},70293:function(N,v,e){N.exports=e(164)},6079:function(N,v,e){e.d(v,{Z:function(){return l}});var S=e(87363),i=e(54335),E=e.n(i),m=function(t,d){return t===void 0&&(t=[]),d===void 0&&(d=[]),E()(t,d)},p=function(t){return function(d,a){var A=(0,S.useRef)(),r=(0,S.useRef)(0);(a===void 0||!m(a,A.current))&&(A.current=a,r.current+=1),t(d,[r.current])}},l=p(S.useEffect)}}]); diff --git a/p__Preview__App.ffe853a3.chunk.css b/p__Preview__App.ffe853a3.chunk.css new file mode 100644 index 00000000..e7a8b73c --- /dev/null +++ b/p__Preview__App.ffe853a3.chunk.css @@ -0,0 +1 @@ +.app___RgPYz{position:relative;display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden}.header___DVZmr{display:flex;align-items:center;justify-content:space-between;height:50px;padding:0 10px}.left___iICbu{display:flex;align-items:center;width:100%}.title___mqrtD{width:90%;margin:0;padding:0 10px;overflow:hidden;font-weight:500;font-size:16px;white-space:nowrap;text-overflow:ellipsis}.actions___zOxzv{display:flex;align-items:center;margin-left:10px}.runtimeApp___gLFdu{flex:1 1;width:100%;height:100%;overflow:hidden}.logo___wZlN1{width:46px;text-align:center;cursor:pointer}.logo___wZlN1 img{width:26px;height:26px} diff --git a/p__Preview__Template.37d7985c.chunk.css b/p__Preview__Template.37d7985c.chunk.css new file mode 100644 index 00000000..be0a35e0 --- /dev/null +++ b/p__Preview__Template.37d7985c.chunk.css @@ -0,0 +1 @@ +.li-filter-list__add-btn{padding:5px 0;text-align:center;opacity:.8}.li-filter-list__add-icon{color:silver;font-size:15px}.li-filter-item{position:relative;margin:10px;padding:10px 15px 20px;text-align:left;border:1px solid;border-radius:4px}.li-filter-item__filter-field{display:flex;justify-content:space-between;height:25px;color:silver;font-size:12px}.li-filter-item__del-filter{width:20px;margin-left:30px;color:silver;opacity:.6}.li-filter-item__field-operator{display:flex;align-items:center;margin-bottom:12px}.li-filter-item__select-field{flex:1 1;border-radius:4px}.li-filter-item__select-operator{width:120px}.li-filter-item__filter-content-title{height:25px;color:silver;font-size:12px}.li-filter-item-filter-field-number{display:flex;align-content:space-around;width:100%}.li-filter-item-filter-field-number__one-way{flex:1 1;margin-right:10px}.li-filter-item-filter-field-number__input-number{display:flex;flex:1 1;justify-content:space-between}.li-filter-item-filter-field-string__value{flex:1 1;width:100%}.li-filter-item-filter-field-date{display:flex}.li-filter-item-filter-field-date-picker{flex:1 1;width:100%}.logo___wZlN1{width:46px;text-align:center;cursor:pointer}.logo___wZlN1 img{width:26px;height:26px}.header___vSBDU{display:flex;align-items:center;justify-content:space-between;height:50px;padding:0 10px}.left___CCuAe{display:flex;align-items:center;width:100%}.title___Gwl5p{width:90%;margin:0;padding:0 10px;overflow:hidden;font-weight:500;font-size:16px;white-space:nowrap;text-overflow:ellipsis}.actions___NoOm1{display:flex;align-items:center;padding-left:10px}.editor___Lqm3A{width:100vw;height:calc(100vh - 50px)} diff --git a/p__Preview__Template.8c0ba802.async.js b/p__Preview__Template.8c0ba802.async.js new file mode 100644 index 00000000..452bc6bd --- /dev/null +++ b/p__Preview__Template.8c0ba802.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_antv_li_website=self.webpackChunk_antv_li_website||[]).push([[49],{88087:function(P,c,t){t.r(c),t.d(c,{default:function(){return B}});var u=t(69024),l=t.n(u),d=t(87971),s=t(81821),v=t(12611),n=t(87363),o=t(40795),E=t(34795),L=t(71022),S=t(28535),i={header:"header___vSBDU",left:"left___CCuAe",title:"title___Gwl5p",actions:"actions___NoOm1",editor:"editor___Lqm3A"},h=t(74090),x=t(93707),a=t(70293),I=s.theme.useToken,M=function(){var z=(0,o.UO)(),C=z.id,m=C===void 0?"":C,r=(0,n.useMemo)(function(){return new d.Ec({assets:[],editorWidgets:E.FE})},[]),D=(0,n.useState)([]),j=l()(D,2),y=j[0],F=j[1],O=(0,x.z2)(y),f=O.assets,U=I(),A=U.token,Z=(0,L.JV)(r),T=(0,x.wy)(),k=T.emptyModal,H=T.emptyContextHolder,K=(0,n.useState)(),N=l()(K,2),g=N[0],$=N[1];(0,n.useMemo)(function(){return r.installAssets(f)},[f]),(0,n.useEffect)(function(){(0,h.S)(m).then(function(e){e.applicationConfig.metadata.assetPackageIds=e.assetPackageIds,F(e.assetPackageIds),$((0,v.cloneDeep)(e.applicationConfig)),document.title="".concat(e.applicationConfig.metadata.name)}).catch(function(e){k(e)})},[m]);var G=function(){o.m8.push("/case")},J=function(){var p=r.getApplicationConfig(),W={projectName:"".concat(p.metadata.name,"_copy"),description:p.metadata.description||"",applicationConfig:p,assetPackageIds:y};(0,h.$L)(W).then(function(){o.m8.push({pathname:"/project"})}).catch(function(){k(" \u6DFB\u52A0\u5230\u9879\u76EE\u5931\u8D25")})},R=r.Editor,V=!!f.length&&g;return(0,a.jsxs)(a.Fragment,{children:[V&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:i.header,style:{color:A.colorText,backgroundColor:A.colorBgElevated},children:[(0,a.jsxs)("div",{className:i.left,children:[(0,a.jsx)(S.Z,{onClick:G}),(0,a.jsx)("p",{className:i.title,children:g.metadata.name})]}),(0,a.jsx)("div",{className:i.actions,children:(0,a.jsxs)(s.Space,{children:[(0,a.jsx)(o.rU,{to:"/app/".concat(m,"?type=case"),target:"_blank",children:(0,a.jsx)(s.Button,{size:"middle",type:"primary",children:"\u9884\u89C8"})}),(0,a.jsx)(s.Button,{size:"middle",type:"primary",onClick:J,children:"\u6DFB\u52A0\u5230\u6211\u7684\u9879\u76EE"})]})})]}),(0,a.jsx)(R,{className:i.editor,defaultActiveNavMenuKey:Z,defaultApplication:g})]}),H]})},B=M},28535:function(P,c,t){t.d(c,{Z:function(){return v}});var u={logo:"logo___wZlN1"},l=t(90527),d=t(70293),s=function(o){return(0,d.jsx)("div",{className:u.logo,onClick:o==null?void 0:o.onClick,children:(0,d.jsx)("img",{src:l.Oi})})},v=s}}]); diff --git a/p__Project__New.0eb764a1.async.js b/p__Project__New.0eb764a1.async.js new file mode 100644 index 00000000..9558921b --- /dev/null +++ b/p__Project__New.0eb764a1.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_antv_li_website=self.webpackChunk_antv_li_website||[]).push([[532],{41783:function(u,n,a){a.r(n);var e=a(99212),r=a.n(e),t=a(87363),c=a.n(t),i=a(40795),s=a(3944),_=a(74090),o=a(90527),E=function(){var D=function(d){i.m8.push({pathname:"/builder/".concat(d.projectId)})},P=function(){var d=r()().format("YYYY-MM-DD HH:mm:ss"),l="\u672A\u547D\u540D_".concat(d),v=(0,s.R)(l,o.CN);(0,_.$L)({projectName:l,description:"\u65E0\u63CF\u8FF0\u4FE1\u606F",assetPackageIds:o.CN,applicationConfig:v}).then(function(M){D(M)})};return(0,t.useEffect)(function(){P()},[]),null};n.default=E},3944:function(u,n,a){a.d(n,{R:function(){return c}});var e=a(12611),r=a.n(e),t=a(90527),c=function(s,_){var o=_.includes(t.hg)?t.e1:t.Gj,E={version:"v0.1",metadata:{name:s},datasets:[],spec:{map:{basemap:"Gaode",config:{zoom:3,center:[120.153576,30.287459],pitch:0,bearing:0,style:"dark",WebGLParams:{preserveDrawingBuffer:!0}},logoPosition:"leftbottom"},layers:[],widgets:(0,e.cloneDeep)(o)}};return E}}}]); diff --git a/p__Project__index.9e9fbf42.chunk.css b/p__Project__index.9e9fbf42.chunk.css new file mode 100644 index 00000000..2bade5cd --- /dev/null +++ b/p__Project__index.9e9fbf42.chunk.css @@ -0,0 +1 @@ +.inputBorder___GpAvJ{border:1px solid rgba(255,255,255,.6)}.submitButton____lcIY{margin-bottom:100px;margin-left:411px}.tabs-item___Ec99P{height:400px}.upload-dragger-content___rhE1S{height:300px;padding-top:100px} diff --git a/p__Project__index.a7672fdc.async.js b/p__Project__index.a7672fdc.async.js new file mode 100644 index 00000000..190bc677 --- /dev/null +++ b/p__Project__index.a7672fdc.async.js @@ -0,0 +1,92 @@ +(self.webpackChunk_antv_li_website=self.webpackChunk_antv_li_website||[]).push([[721],{3944:function(X,C,l){"use strict";l.d(C,{R:function(){return p}});var x=l(12611),k=l.n(x),R=l(90527),p=function(s,Y){var L=Y.includes(R.hg)?R.e1:R.Gj,O={version:"v0.1",metadata:{name:s},datasets:[],spec:{map:{basemap:"Gaode",config:{zoom:3,center:[120.153576,30.287459],pitch:0,bearing:0,style:"dark",WebGLParams:{preserveDrawingBuffer:!0}},logoPosition:"leftbottom"},layers:[],widgets:(0,x.cloneDeep)(L)}};return O}},16736:function(X,C,l){"use strict";l.r(C),l.d(C,{default:function(){return Ke}});var x=l(12134),k=l.n(x),R=l(69024),p=l.n(R),m=l(16640),s=l(81821),Y=l(90005),L=l.n(Y),O=l(41991),w=l(87363),T=l(40795),q=l(51490),y=l.n(q),A=l(91055),M=l.n(A),E=l(88104),U=l.n(E),te=l(3944),V={inputBorder:"inputBorder___GpAvJ",submitButton:"submitButton____lcIY","tabs-item":"tabs-item___Ec99P"},z=l(74090),K=l(90527),i=l(70293),Se=s.Input.TextArea;function _e(Q){var b=Q.visible,D=Q.onVisibleChange,f=Q.project,N=Q.onSubmit,H=Q.type,G=s.Form.useForm(),ie=p()(G,1),F=ie[0],re=(0,w.useState)([]),pe=p()(re,2),me=pe[0],ve=pe[1],he=me.map(function($){return{label:$.name,value:$.assetId}});(0,w.useEffect)(function(){(0,z.nl)().then(function($){ve($)})},[]);var le=function(){var $=U()(y()().mark(function ce(){return y()().wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:F.validateFields().then(function(oe){if(H==="edit")f!=null&&f.projectId&&(0,z.ty)(f==null?void 0:f.projectId,M()(M()({},f),oe)).then(function(ae){N(ae),D(!1),F.resetFields()});else{var de=(0,te.R)(oe.projectName,oe.assetPackageIds);(0,z.$L)(M()(M()({},oe),{},{applicationConfig:de})).then(function(ae){N(ae),D(!1),F.resetFields()})}});case 1:case"end":return fe.stop()}},ce)}));return function(){return $.apply(this,arguments)}}();(0,w.useEffect)(function(){H==="edit"&&b&&F.setFieldsValue({projectName:f==null?void 0:f.projectName,description:f==null?void 0:f.description,assetPackageIds:(f==null?void 0:f.assetPackageIds)||K.CN})},[F,f,H,b]);var B=[{key:"1",label:"".concat(H==="edit"?"\u4FEE\u6539":"\u521B\u5EFA","\u9879\u76EE"),children:(0,i.jsxs)(s.Form,{form:F,layout:"vertical",initialValues:{assetPackageIds:K.CN},children:[(0,i.jsx)(s.Form.Item,{name:"projectName",label:"\u9879\u76EE\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}],children:(0,i.jsx)(s.Input,{placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",className:V.inputBorder})}),(0,i.jsx)(s.Form.Item,{name:"description",label:"\u9879\u76EE\u63CF\u8FF0",children:(0,i.jsx)(Se,{rows:2,className:V.inputBorder})}),(0,i.jsx)(s.Form.Item,{name:"assetPackageIds",label:"\u8D44\u4EA7\u5305",validateFirst:!0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9879\u76EE\u4F9D\u8D56\u7684\u8D44\u4EA7\u5305"},{validator:function(ce,ue){return ue.includes(K.Jg)?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u53EF\u89C6\u5316\u6838\u5FC3\u8D44\u4EA7"))}}],children:(0,i.jsx)(s.Select,{placeholder:"\u8BF7\u9009\u62E9\u8D44\u4EA7\u5305",mode:"multiple",options:he})})]})}];return(0,i.jsx)(s.Modal,{width:800,open:b,onOk:le,onCancel:function(){D(!1),F.resetFields()},destroyOnClose:!0,children:(0,i.jsx)(s.Tabs,{defaultActiveKey:"1",items:B,className:V["tabs-item"]})})}var je={"upload-dragger-content":"upload-dragger-content___rhE1S"};function Ee(Q){var b=Q.visible,D=Q.onVisibleChange,f=Q.onSubmit,N=(0,w.useState)(),H=p()(N,2),G=H[0],ie=H[1],F=s.message.useMessage(),re=p()(F,2),pe=re[0],me=re[1],ve=function(B){var $=B.file,ce=B.onSuccess,ue=new FileReader;ue.readAsText($),ue.onload=function(fe){try{var oe,de=JSON.parse((oe=fe.target)===null||oe===void 0?void 0:oe.result);if(de.version&&de.metadata&&de.datasets&&de.spec){var ae;ie(JSON.parse((ae=fe.target)===null||ae===void 0?void 0:ae.result))}else pe.error("\u6570\u636E\u65E0\u6CD5\u89E3\u6790\uFF0C\u8BF7\u68C0\u67E5\u6570\u636E\u7ED3\u6784")}catch(Ce){console.log("\u6587\u4EF6\u89E3\u6790\u5931\u8D25",Ce)}ce()}},he=[{key:"1",label:"\u5BFC\u5165\u9879\u76EE",children:(0,i.jsx)(s.Upload.Dragger,{name:"data",accept:".json",customRequest:ve,maxCount:1,children:(0,i.jsxs)("div",{className:je["upload-dragger-content"],children:[(0,i.jsx)("p",{className:"ant-upload-drag-icon",children:(0,i.jsx)(m.InboxOutlined,{})}),(0,i.jsx)("p",{className:"ant-upload-text",children:"\u70B9\u51FB\u6216\u5C06\u6570\u636E\u6587\u4EF6\u62D6\u62FD\u5230\u8FD9\u91CC\u4E0A\u4F20"})]})})}];return(0,i.jsxs)(s.Modal,{width:800,open:b,destroyOnClose:!0,onCancel:function(){return D(!1)},footer:(0,i.jsxs)(s.Space,{children:[(0,i.jsx)(s.Button,{onClick:function(){return D(!1)},children:"\u8FD4\u56DE"}),(0,i.jsx)(s.Button,{type:"primary",disabled:!G,onClick:function(){if(G){var B=G.metadata,$={projectName:B.name,description:(B==null?void 0:B.description)||"\u6682\u65E0\u9879\u76EE\u63CF\u8FF0",assetPackageIds:(B==null?void 0:B.assetPackageIds)||K.CN};(0,z.$L)(M()(M()({},$),{},{applicationConfig:G})).then(function(ce){f(),D(!1)})}},children:"\u5BFC\u5165"})]}),children:[me,(0,i.jsx)(s.Tabs,{defaultActiveKey:"1",items:he,className:je["tabs-item"]})]})}var Pe=l(99067),Te=l(49231),j=l.n(Te),g=l(87651),ge,be,xe,we,Ae,e,t,r,n,a,o=function(){var b=s.theme.useToken,D=b(),f=D.token,N=f.colorTextSecondary;return{navCard:(0,g.iv)(ge||(ge=j()([` + width: 100%; + height: 200px; + margin-bottom: 20px; + `]))),navCardTitle:(0,g.iv)(be||(be=j()([` + font-size: 20px; + font-weight: 500; + height: 60px; + display: flex; + justify-content: space-between; + align-items: flex-start; + `]))),navCardClosed:(0,g.iv)(xe||(xe=j()([` + font-size: 16px; + line-height: 22px; + padding: 0; + width: 22px; + height: 22px; + color: `,`; + `])),N),navCardContent:(0,g.iv)(we||(we=j()([` + display: flex; + justify-content: space-between; + `]))),navCardContentItem:(0,g.iv)(Ae||(Ae=j()([` + display: flex; + flex: 1; + margin-right: 10px; + align-items: flex-start; + `]))),itemSerialNumber:(0,g.iv)(e||(e=j()([` + margin-right: 5px; + font-size: 16px; + font-weight: 500; + height: 30px; + `]))),itemContent:(0,g.iv)(t||(t=j()([` + display: flex; + flex-direction: column; + width: 100%; + `]))),itemTitle:(0,g.iv)(r||(r=j()([` + font-size: 16px; + font-weight: 500; + height: 30px; + display: flex; + width: 100%; + margin-bottom: 10px; + justify-content: space-between; + align-items: flex-start; + `]))),itemTitleIcon:(0,g.iv)(n||(n=j()([` + font-size: 10px; + color: `,`; + margin-top: 7px; + margin-right: 20px; + `])),N),itemDesc:(0,g.iv)(a||(a=j()([` + color: `,`; + font-size: 12px; + `])),N)}},c=o,d=[{title:"\u51C6\u5907\u6570\u636E",description:"\u51C6\u5907\u597D\u8981\u8FDB\u884C\u5730\u7406\u53EF\u89C6\u5206\u6790\u7684\u6570\u636E"},{title:"\u521B\u5EFA\u9879\u76EE",description:"\u521B\u5EFA\u4E00\u4E2A\u9879\u76EE\u5F00\u59CB\u63A2\u7D22\u4F60\u51C6\u5907\u7684\u6570\u636E"},{title:"\u914D\u7F6E\u5BFC\u51FA",description:"\u914D\u7F6E\u53EF\u89C6\u56FE\u5C42\u4EE5\u53CA\u5206\u6790\u7EC4\u4EF6\uFF0C\u9884\u89C8\u6216\u5BFC\u51FA\u53EF\u89C6\u5206\u6790\u6210\u679C"}],P=function(){var b=c(),D=(0,w.useState)(!1),f=p()(D,2),N=f[0],H=f[1],G=(0,Pe.F)(),ie=G.md===!1;if(!(N||ie))return(0,i.jsxs)(s.Card,{className:L()(b.navCard),children:[(0,i.jsxs)("div",{className:b.navCardTitle,children:[(0,i.jsx)("div",{children:"\u5FEB\u6765\u63A2\u7D22\u4F60\u7684\u5730\u7406\u7A7A\u95F4\u6570\u636E\u5427\uFF5E"}),(0,i.jsx)(s.Button,{type:"text",className:b.navCardClosed,onClick:function(){H(!0)},children:(0,i.jsx)(m.CloseOutlined,{})})]}),(0,i.jsx)("div",{className:b.navCardContent,children:d.map(function(F,re){return(0,i.jsxs)("div",{className:b.navCardContentItem,children:[(0,i.jsx)("div",{className:b.itemSerialNumber,children:re+1}),(0,i.jsxs)("div",{className:b.itemContent,children:[(0,i.jsxs)("div",{className:b.itemTitle,children:[F.title," ",re+1!==d.length&&(0,i.jsx)(m.RightOutlined,{className:b.itemTitleIcon})]}),(0,i.jsx)("div",{className:b.itemDesc,children:F.description})]})]},re)})})]})},u=P,h,_,se,v,I,W,Z,ne,De,Fe,Le=function(){var b=s.theme.useToken,D=b(),f=D.token,N=f.colorTextSecondary,H=f.colorPrimaryText,G=f.colorText,ie=f.colorBgElevated;return{project:(0,g.iv)(h||(h=j()([` + padding: 0 95px; + `]))),projectTabs:(0,g.iv)(_||(_=j()([` + .ant-tabs-tab-active .ant-tabs-tab-btn { + color: `,` !important; + } + .ant-tabs-ink-bar { + background: `,` !important; + } + `])),G,G),projectCard:(0,g.iv)(se||(se=j()([` + cursor: pointer; + `]))),projectCardImg:(0,g.iv)(v||(v=j()([` + height: 200px; + object-fit: cover; + width: 100%; + `]))),projectCardTools:(0,g.iv)(I||(I=j()([` + position: absolute; + top: 10px; + right: 10px; + border-radius: 20px; + &:hover { + background: `,`; + } + `])),ie),itemDescription:(0,g.iv)(W||(W=j()([` + margin-bottom: 0 !important; + `]))),addCard:(0,g.iv)(Z||(Z=j()([` + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + min-height: 113px; + color: `,`; + `])),N),addCardIcon:(0,g.iv)(ne||(ne=j()([` + font-size: 20px; + margin-bottom: 12px; + `]))),importBtnIcon:(0,g.iv)(De||(De=j()([` + transition: transform 0.1s linear, -webkit-transform 0.1s linear; + `]))),importBtnIconRotate:(0,g.iv)(Fe||(Fe=j()([` + transform: rotate(180deg); + `])))}},Me=Le,Ue=l(9256),Ve=s.Card.Meta,ze=function(){var b=(0,w.useState)(!0),D=p()(b,2),f=D[0],N=D[1],H=(0,w.useState)(!1),G=p()(H,2),ie=G[0],F=G[1],re=(0,w.useState)(!1),pe=p()(re,2),me=pe[0],ve=pe[1],he=(0,w.useState)("add"),le=p()(he,2),B=le[0],$=le[1],ce=(0,w.useState)(),ue=p()(ce,2),fe=ue[0],oe=ue[1],de=(0,w.useState)([]),ae=p()(de,2),Ce=ae[0],Re=ae[1],ee=Me(),We=(0,w.useState)(!1),Ne=p()(We,2),Ge=Ne[0],$e=Ne[1],Oe=function(){return(0,z.ku)().then(function(J){J.length?Re(K.RI.concat(J)):Re(K.RI)}).catch(function(J){console.log("err: ",J)})};(0,w.useEffect)(function(){N(!0),Oe().finally(function(){return N(!1)})},[]);var Be=function(){window.open(T.m8.createHref("/new"))},ke=function(J){T.m8.push({pathname:"/builder/".concat(J.projectId)})},Je=function(J){B==="edit"?Oe():ke(J)},Xe=function(){Oe()},Qe={right:(0,i.jsx)(s.Space,{children:(0,i.jsx)(s.Dropdown.Button,{type:"primary",icon:(0,i.jsx)(m.DownOutlined,{className:L()(ee.importBtnIcon,k()({},ee.importBtnIconRotate,Ge))}),menu:{items:[{key:"importProject",label:"\u5BFC\u5165\u9879\u76EE",onClick:function(){ve(!0)}}]},onClick:function(){return Be()},onOpenChange:function(J){$e(J)},children:"\u521B\u5EFA\u9879\u76EE"})})},Ze=[{key:"my-project",label:"\u6211\u7684\u9879\u76EE",children:(0,i.jsxs)(s.Row,{gutter:[48,24],children:[Ce.map(function(S){var J,Ie,He=[{key:"2",label:"\u5BFC\u51FA\u9879\u76EE",onClick:function(){(0,O.Di)("".concat(S.projectName,".json"),JSON.stringify(S.applicationConfig))}},{key:"3",label:"\u5220\u9664\u9879\u76EE",onClick:function(){(0,z.th)(S.projectId).then(function(){Oe()})}}],Ye=(0,i.jsx)(s.Card,{className:ee.projectCard,onClick:function(){return ke(S)},cover:(0,i.jsxs)("div",{children:[(0,i.jsx)("img",{className:ee.projectCardImg,src:"https://gw.alipayobjects.com/mdn/rms_816329/afts/img/A*OREXQ4vgQRIAAAAAAAAAAAAAARQnAQ"}),(0,i.jsx)("div",{className:ee.projectCardTools,onClick:function(qe){return qe.stopPropagation()},children:(0,i.jsxs)(s.Space,{children:[(0,i.jsx)(s.Tooltip,{title:"\u9884\u89C8\u9879\u76EE",children:(0,i.jsx)(s.Button,{type:"text",shape:"circle",icon:(0,i.jsx)(m.DesktopOutlined,{}),onClick:function(){(0,Ue.lF)(11),window.open(T.m8.createHref("/app/".concat(S.projectId,"?type=project")))}})}),(0,i.jsx)(s.Tooltip,{title:"\u4FEE\u6539\u9879\u76EE",children:(0,i.jsx)(s.Button,{type:"text",shape:"circle",icon:(0,i.jsx)(m.EditOutlined,{}),onClick:function(){$("edit"),oe(S),F(!0)}})}),(0,i.jsx)(s.Dropdown,{menu:{items:He},children:(0,i.jsx)(s.Button,{type:"text",shape:"circle",icon:(0,i.jsx)(m.EllipsisOutlined,{})})})]})})]}),children:(0,i.jsx)(Ve,{title:(0,i.jsx)("span",{title:S.projectName,children:S.projectName}),description:(0,i.jsx)("div",{children:(0,i.jsx)(s.Typography.Paragraph,{className:ee.itemDescription,type:"secondary",ellipsis:{rows:1,tooltip:((J=S.description)===null||J===void 0?void 0:J.length)>20&&{title:S.description}},children:(Ie=S.description)!==null&&Ie!==void 0?Ie:"\u6682\u65E0\u9879\u76EE\u63CF\u8FF0"})})})});return(0,i.jsx)(s.Col,{xxl:6,xl:8,lg:12,md:12,sm:24,xs:24,children:Ye},S.projectId)}),Ce.length===0&&(0,i.jsx)(s.Col,{xxl:6,xl:8,lg:12,md:12,sm:24,xs:24,children:(0,i.jsx)(s.Card,{bordered:!1,className:ee.projectCard,onClick:Be,children:(0,i.jsxs)("div",{className:ee.addCard,children:[(0,i.jsx)(m.PlusOutlined,{className:ee.addCardIcon}),(0,i.jsx)("span",{children:"\u6682\u65E0\u9879\u76EE\uFF0C\u521B\u5EFA\u4E00\u4E2A\u5427"})]})})})]})}];return f?(0,i.jsx)("div",{style:{textAlign:"center",padding:"60px 50px"},children:(0,i.jsx)(s.Spin,{})}):(0,i.jsxs)("div",{className:ee.project,children:[(0,i.jsx)(u,{}),(0,i.jsx)(s.Tabs,{defaultActiveKey:"my-project",tabBarExtraContent:Qe,items:Ze,className:ee.projectTabs}),(0,i.jsx)(_e,{visible:ie,onVisibleChange:F,project:fe,type:B,onSubmit:Je}),(0,i.jsx)(Ee,{visible:me,onVisibleChange:ve,onSubmit:Xe})]})},Ke=ze},164:function(X,C,l){"use strict";var x=l(87363),k=Symbol.for("react.element"),R=Symbol.for("react.fragment"),p=Object.prototype.hasOwnProperty,m=x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function Y(L,O,w){var T,q={},y=null,A=null;w!==void 0&&(y=""+w),O.key!==void 0&&(y=""+O.key),O.ref!==void 0&&(A=O.ref);for(T in O)p.call(O,T)&&!s.hasOwnProperty(T)&&(q[T]=O[T]);if(L&&L.defaultProps)for(T in O=L.defaultProps,O)q[T]===void 0&&(q[T]=O[T]);return{$$typeof:k,type:L,key:y,ref:A,props:q,_owner:m.current}}C.Fragment=R,C.jsx=Y,C.jsxs=Y},70293:function(X,C,l){"use strict";X.exports=l(164)},99067:function(X,C,l){"use strict";l.d(C,{F:function(){return q}});var x=l(85556),k=l(87363),R=l.n(k),p=l(24252),m=new Set,s,Y={xs:0,sm:576,md:768,lg:992,xl:1200};function L(){var y,A,M=s;if(w(),M!==s)try{for(var E=(0,x.XA)(m),U=E.next();!U.done;U=E.next()){var te=U.value;te()}}catch(V){y={error:V}}finally{try{U&&!U.done&&(A=E.return)&&A.call(E)}finally{if(y)throw y.error}}}var O=!1;function w(){var y,A,M=window.innerWidth,E={},U=!1;try{for(var te=(0,x.XA)(Object.keys(Y)),V=te.next();!V.done;V=te.next()){var z=V.value;E[z]=M>=Y[z],E[z]!==s[z]&&(U=!0)}}catch(K){y={error:K}}finally{try{V&&!V.done&&(A=te.return)&&A.call(te)}finally{if(y)throw y.error}}U&&(s=E)}function T(y){Y=y,s&&w()}function q(){p.Z&&!O&&(s={},w(),window.addEventListener("resize",L),O=!0);var y=(0,x.CR)((0,k.useState)(s),2),A=y[0],M=y[1];return(0,k.useEffect)(function(){if(p.Z){O||window.addEventListener("resize",L);var E=function(){M(s)};return m.add(E),function(){m.delete(E),m.size===0&&(window.removeEventListener("resize",L),O=!1)}}},[]),A}},24252:function(X,C){"use strict";var l=!!(typeof window!="undefined"&&window.document&&window.document.createElement);C.Z=l},41991:function(X,C){"use strict";var l;l={value:!0};function x(p,m){var s=document.createElement("a");s.href=m,s.download=p,s.click()}l=x;function k(p,m){var s=URL.createObjectURL(m);x(p,s),URL.revokeObjectURL(s)}C.lm=k;function R(p,m){k(p,new Blob([m],{type:"octet/stream"}))}C.Di=R},49231:function(X){function C(l,x){return x||(x=l.slice(0)),Object.freeze(Object.defineProperties(l,{raw:{value:Object.freeze(x)}}))}X.exports=C,X.exports.__esModule=!0,X.exports.default=X.exports},85556:function(X,C,l){"use strict";l.d(C,{CR:function(){return U},Jh:function(){return y},XA:function(){return E},ZT:function(){return k},_T:function(){return p},ev:function(){return z},mG:function(){return q},pi:function(){return R},pr:function(){return V}});var x=function(e,t){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},x(e,t)};function k(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");x(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var R=function(){return R=Object.assign||function(t){for(var r,n=1,a=arguments.length;n=0;d--)(c=e[d])&&(o=(a<3?c(o):a>3?c(t,r,o):c(t,r))||o);return a>3&&o&&Object.defineProperty(t,r,o),o}function s(e,t){return function(r,n){t(r,n,e)}}function Y(e,t,r,n,a,o){function c(ne){if(ne!==void 0&&typeof ne!="function")throw new TypeError("Function expected");return ne}for(var d=n.kind,P=d==="getter"?"get":d==="setter"?"set":"value",u=!t&&e?n.static?e:e.prototype:null,h=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),_,se=!1,v=r.length-1;v>=0;v--){var I={};for(var W in n)I[W]=W==="access"?{}:n[W];for(var W in n.access)I.access[W]=n.access[W];I.addInitializer=function(ne){if(se)throw new TypeError("Cannot add initializers after decoration has completed");o.push(c(ne||null))};var Z=(0,r[v])(d==="accessor"?{get:h.get,set:h.set}:h[P],I);if(d==="accessor"){if(Z===void 0)continue;if(Z===null||typeof Z!="object")throw new TypeError("Object expected");(_=c(Z.get))&&(h.get=_),(_=c(Z.set))&&(h.set=_),(_=c(Z.init))&&a.unshift(_)}else(_=c(Z))&&(d==="field"?a.unshift(_):h[P]=_)}u&&Object.defineProperty(u,n.name,h),se=!0}function L(e,t,r){for(var n=arguments.length>2,a=0;a0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function U(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,o=[],c;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)o.push(a.value)}catch(d){c={error:d}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(c)throw c.error}}return o}function te(){for(var e=[],t=0;t1||P(v,W)})},I&&(a[v]=I(a[v])))}function P(v,I){try{u(n[v](I))}catch(W){se(o[0][3],W)}}function u(v){v.value instanceof K?Promise.resolve(v.value.v).then(h,_):se(o[0][2],v)}function h(v){P("next",v)}function _(v){P("throw",v)}function se(v,I){v(I),o.shift(),o.length&&P(o[0][0],o[0][1])}}function Se(e){var t,r;return t={},n("next"),n("throw",function(a){throw a}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(a,o){t[a]=e[a]?function(c){return(r=!r)?{value:K(e[a](c)),done:!1}:o?o(c):c}:o}}function _e(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof E=="function"?E(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(c){return new Promise(function(d,P){c=e[o](c),a(d,P,c.done,c.value)})}}function a(o,c,d,P){Promise.resolve(P).then(function(u){o({value:u,done:d})},c)}}function je(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var Ee=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function Pe(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&A(t,e,r);return Ee(t,e),t}function Te(e){return e&&e.__esModule?e:{default:e}}function j(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function g(e,t,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(e,r):a?a.value=r:t.set(e,r),r}function ge(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function be(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,a;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(a=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");a&&(n=function(){try{a.call(this)}catch(o){return Promise.reject(o)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var xe=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function we(e){function t(n){e.error=e.hasError?new xe(n,e.error,"An error was suppressed during disposal."):n,e.hasError=!0}function r(){for(;e.stack.length;){var n=e.stack.pop();try{var a=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(a).then(r,function(o){return t(o),r()})}catch(o){t(o)}}if(e.hasError)throw e.error}return r()}var Ae={__extends:k,__assign:R,__rest:p,__decorate:m,__param:s,__metadata:T,__awaiter:q,__generator:y,__createBinding:A,__exportStar:M,__values:E,__read:U,__spread:te,__spreadArrays:V,__spreadArray:z,__await:K,__asyncGenerator:i,__asyncDelegator:Se,__asyncValues:_e,__makeTemplateObject:je,__importStar:Pe,__importDefault:Te,__classPrivateFieldGet:j,__classPrivateFieldSet:g,__classPrivateFieldIn:ge,__addDisposableResource:be,__disposeResources:we}}}]); diff --git a/preload_helper.993f9b25.js b/preload_helper.993f9b25.js new file mode 100644 index 00000000..b5dfb234 --- /dev/null +++ b/preload_helper.993f9b25.js @@ -0,0 +1 @@ +!function(){"use strict";var t="/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"@antv/li-website","b":"webpack","f":[["p__Docs__index.5fcb1db2.chunk.css",18],["p__Docs__index.18f59cd1.async.js",18],["22.4b25dfec.async.js",22],["27.bf5ed734.async.js",27],["p__Preview__Template.37d7985c.chunk.css",49],["p__Preview__Template.8c0ba802.async.js",49],["90.cceb899f.async.js",90],["p__Case__index.331f4f99.async.js",248],["p__Home__index.802b2a5e.chunk.css",371],["p__Home__index.dc6d27ca.async.js",371],["415.d328352a.async.js",415],["layouts__Map.9c22ad79.async.js",462],["486.74a27100.async.js",486],["527.8796b3f7.async.js",527],["p__Project__New.0eb764a1.async.js",532],["533.6c75b745.async.js",533],["p__Builder__index.bc8f1eb1.chunk.css",623],["p__Builder__index.aff38dbd.async.js",623],["layouts__WorkSpace.45a16990.chunk.css",624],["layouts__WorkSpace.c626b5bc.async.js",624],["653.b173ad49.async.js",653],["666.aa3e79cf.async.js",666],["706.1444e281.async.js",706],["layouts__index.55480e25.async.js",717],["p__Project__index.9e9fbf42.chunk.css",721],["p__Project__index.a7672fdc.async.js",721],["781.fdfb64c8.chunk.css",781],["781.84da0ba1.async.js",781],["795.a62f37dd.async.js",795],["831.797bc60f.async.js",831],["p__AssetMarket__index.a7c44a91.chunk.css",921],["p__AssetMarket__index.99143dcb.async.js",921],["p__Preview__App.ffe853a3.chunk.css",944],["p__Preview__App.7abfbb4b.async.js",944]],"r":{"/":[8,9,20,2,6,10,12,13,18,19,29,3,23],"/project":[2,6,12,13,20,24,25,10,18,19,29,3,23],"/case":[2,6,7,12,13,20,10,18,19,29,3,23],"/asset-market":[2,6,10,12,13,20,21,22,29,30,31,3,23],"/new":[2,6,12,13,14,20,3,23],"/docs":[0,1,10,29,2,3,13,20,23],"/builder/:id":[2,6,10,12,13,16,17,20,21,22,26,27,28,11,3,23],"/app/:id":[2,6,12,13,20,32,33,11,3,23],"/template/:id":[2,4,5,6,10,12,13,20,21,22,26,27,28,11,3,23]}},{publicPath:"/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}(); \ No newline at end of file diff --git a/static/insight-into-data.009996fe.jpg b/static/insight-into-data.009996fe.jpg new file mode 100644 index 00000000..b7cb3e49 Binary files /dev/null and b/static/insight-into-data.009996fe.jpg differ diff --git a/static/safe-storage.9fb864d9.jpg b/static/safe-storage.9fb864d9.jpg new file mode 100644 index 00000000..3b0e1ab7 Binary files /dev/null and b/static/safe-storage.9fb864d9.jpg differ diff --git a/static/visualization-data.85d410fc.jpg b/static/visualization-data.85d410fc.jpg new file mode 100644 index 00000000..703e240b Binary files /dev/null and b/static/visualization-data.85d410fc.jpg differ diff --git a/static/widget-attr.eb94e759.jpg b/static/widget-attr.eb94e759.jpg new file mode 100644 index 00000000..64cf49ca Binary files /dev/null and b/static/widget-attr.eb94e759.jpg differ diff --git a/umi.9746363a.js b/umi.9746363a.js new file mode 100644 index 00000000..a8154343 --- /dev/null +++ b/umi.9746363a.js @@ -0,0 +1,22 @@ +!(function(){var Ia=Object.defineProperty,ba=Object.defineProperties;var Aa=Object.getOwnPropertyDescriptors;var Sn=Object.getOwnPropertySymbols;var Ta=Object.prototype.hasOwnProperty,Ra=Object.prototype.propertyIsEnumerable;var On=(Rr,Or,g)=>Or in Rr?Ia(Rr,Or,{enumerable:!0,configurable:!0,writable:!0,value:g}):Rr[Or]=g,ne=(Rr,Or)=>{for(var g in Or||(Or={}))Ta.call(Or,g)&&On(Rr,g,Or[g]);if(Sn)for(var g of Sn(Or))Ra.call(Or,g)&&On(Rr,g,Or[g]);return Rr},En=(Rr,Or)=>ba(Rr,Aa(Or));(function(){var Rr={82602:function(o,v,t){"use strict";t.d(v,{fi:function(){return c},m8:function(){return i}});var r=t(58335),e=t.n(r),n=t(91055),a=t.n(n),s=t(39405),i,u="/";function c(p){var h;return p.type==="hash"?h=(0,s.q_)():p.type==="memory"?h=(0,s.PP)(p):h=(0,s.lX)(),p.basename&&(u=p.basename),i=a()(a()({},h),{},{push:function(m,O){h.push(l(m,h),O)},replace:function(m,O){h.replace(l(m,h),O)},get location(){return h.location},get action(){return h.action}}),h}function f(p){p&&(i=p)}function l(p,h){if(typeof p=="string")return"".concat(d(u)).concat(p);if(e()(p)==="object"){var y=h.location.pathname;return a()(a()({},p),{},{pathname:p.pathname?"".concat(d(u)).concat(p.pathname):y})}else throw new Error("Unexpected to: ".concat(p))}function d(p){return p.slice(-1)==="/"?p.slice(0,-1):p}},40795:function(o,v,t){"use strict";t.d(v,{Ac:function(){return It},rU:function(){return R},j3:function(){return n.j3},Q$:function(){return Tt},m8:function(){return Ft.m8},Ov:function(){return x.Ov},TH:function(){return n.TH},bx:function(){return n.bx},UO:function(){return n.UO},lr:function(){return S}});var r=t(87363),e=t.n(r),n=t(13653),a=t(39405);function s(){return s=Object.assign||function(T){for(var D=1;D=0)&&(K[ft]=T[ft]);return K}const u=["onClick","reloadDocument","replace","state","target","to"],c=null;function f(T,D){if(!T){typeof console!="undefined"&&console.warn(D);try{throw new Error(D)}catch(K){}}}function l(T){let{basename:D,children:K,window:Y}=T,ft=useRef();ft.current==null&&(ft.current=createBrowserHistory({window:Y}));let st=ft.current,[St,At]=useState({action:st.action,location:st.location});return useLayoutEffect(()=>st.listen(At),[st]),createElement(Router,{basename:D,children:K,location:St.location,navigationType:St.action,navigator:st})}function d(T){let{basename:D,children:K,window:Y}=T,ft=useRef();ft.current==null&&(ft.current=createHashHistory({window:Y}));let st=ft.current,[St,At]=useState({action:st.action,location:st.location});return useLayoutEffect(()=>st.listen(At),[st]),createElement(Router,{basename:D,children:K,location:St.location,navigationType:St.action,navigator:st})}function p(T){let{basename:D,children:K,history:Y}=T;const[ft,st]=useState({action:Y.action,location:Y.location});return useLayoutEffect(()=>Y.listen(st),[Y]),createElement(Router,{basename:D,children:K,location:ft.location,navigationType:ft.action,navigator:Y})}function h(T){return!!(T.metaKey||T.altKey||T.ctrlKey||T.shiftKey)}const y=(0,r.forwardRef)(function(D,K){let{onClick:Y,reloadDocument:ft,replace:st=!1,state:St,target:At,to:Z}=D,ut=i(D,u),Ot=(0,n.oQ)(Z),lt=O(Z,{replace:st,state:St,target:At});function Ct(dt){Y&&Y(dt),!dt.defaultPrevented&&!ft&<(dt)}return(0,r.createElement)("a",s({},ut,{href:Ot,onClick:Ct,ref:K,target:At}))}),m=null;function O(T,D){let{target:K,replace:Y,state:ft}=D===void 0?{}:D,st=(0,n.s0)(),St=(0,n.TH)(),At=(0,n.WU)(T);return(0,r.useCallback)(Z=>{if(Z.button===0&&(!K||K==="_self")&&!h(Z)){Z.preventDefault();let ut=!!Y||(0,a.Ep)(St)===(0,a.Ep)(At);st(T,{replace:ut,state:ft})}},[St,st,At,Y,ft,K,T])}function S(T){let D=(0,r.useRef)(E(T)),K=(0,n.TH)(),Y=(0,r.useMemo)(()=>{let St=E(K.search);for(let At of D.current.keys())St.has(At)||D.current.getAll(At).forEach(Z=>{St.append(At,Z)});return St},[K.search]),ft=(0,n.s0)(),st=(0,r.useCallback)((St,At)=>{ft("?"+E(St),At)},[ft]);return[Y,st]}function E(T){return T===void 0&&(T=""),new URLSearchParams(typeof T=="string"||Array.isArray(T)||T instanceof URLSearchParams?T:Object.keys(T).reduce((D,K)=>{let Y=T[K];return D.concat(Array.isArray(Y)?Y.map(ft=>[K,ft]):[[K,Y]])},[]))}var I=t(88610),A=t(44240),x=t(7394),b=["prefetch"];function R(T){var D,K=T.prefetch,Y=(0,A.Z)(T,b),ft=(0,x.Ov)(),st=typeof T.to=="string"?T.to:(D=T.to)===null||D===void 0?void 0:D.pathname;return st?e().createElement(y,(0,I.Z)({onMouseEnter:function(){var At;return K&&st&&((At=ft.preloadRoute)===null||At===void 0?void 0:At.call(ft,st))}},Y),T.children):null}function U(T){"@babel/helpers - typeof";return U=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},U(T)}function C(){"use strict";C=function(){return D};var T,D={},K=Object.prototype,Y=K.hasOwnProperty,ft=Object.defineProperty||function(bt,ht,Et){bt[ht]=Et.value},st=typeof Symbol=="function"?Symbol:{},St=st.iterator||"@@iterator",At=st.asyncIterator||"@@asyncIterator",Z=st.toStringTag||"@@toStringTag";function ut(bt,ht,Et){return Object.defineProperty(bt,ht,{value:Et,enumerable:!0,configurable:!0,writable:!0}),bt[ht]}try{ut({},"")}catch(bt){ut=function(Et,Mt,$t){return Et[Mt]=$t}}function Ot(bt,ht,Et,Mt){var $t=ht&&ht.prototype instanceof er?ht:er,Lt=Object.create($t.prototype),kt=new Zr(Mt||[]);return ft(Lt,"_invoke",{value:Kr(bt,Et,kt)}),Lt}function lt(bt,ht,Et){try{return{type:"normal",arg:bt.call(ht,Et)}}catch(Mt){return{type:"throw",arg:Mt}}}D.wrap=Ot;var Ct="suspendedStart",dt="suspendedYield",Wt="executing",Rt="completed",Zt={};function er(){}function sr(){}function Qt(){}var Cr={};ut(Cr,St,function(){return this});var Yr=Object.getPrototypeOf,Jr=Yr&&Yr(Yr(oe([])));Jr&&Jr!==K&&Y.call(Jr,St)&&(Cr=Jr);var Mr=Qt.prototype=er.prototype=Object.create(Cr);function he(bt){["next","throw","return"].forEach(function(ht){ut(bt,ht,function(Et){return this._invoke(ht,Et)})})}function vr(bt,ht){function Et($t,Lt,kt,pr){var gr=lt(bt[$t],bt,Lt);if(gr.type!=="throw"){var $r=gr.arg,jr=$r.value;return jr&&U(jr)=="object"&&Y.call(jr,"__await")?ht.resolve(jr.__await).then(function(W){Et("next",W,kt,pr)},function(W){Et("throw",W,kt,pr)}):ht.resolve(jr).then(function(W){$r.value=W,kt($r)},function(W){return Et("throw",W,kt,pr)})}pr(gr.arg)}var Mt;ft(this,"_invoke",{value:function(Lt,kt){function pr(){return new ht(function(gr,$r){Et(Lt,kt,gr,$r)})}return Mt=Mt?Mt.then(pr,pr):pr()}})}function Kr(bt,ht,Et){var Mt=Ct;return function($t,Lt){if(Mt===Wt)throw new Error("Generator is already running");if(Mt===Rt){if($t==="throw")throw Lt;return{value:T,done:!0}}for(Et.method=$t,Et.arg=Lt;;){var kt=Et.delegate;if(kt){var pr=Nr(kt,Et);if(pr){if(pr===Zt)continue;return pr}}if(Et.method==="next")Et.sent=Et._sent=Et.arg;else if(Et.method==="throw"){if(Mt===Ct)throw Mt=Rt,Et.arg;Et.dispatchException(Et.arg)}else Et.method==="return"&&Et.abrupt("return",Et.arg);Mt=Wt;var gr=lt(bt,ht,Et);if(gr.type==="normal"){if(Mt=Et.done?Rt:dt,gr.arg===Zt)continue;return{value:gr.arg,done:Et.done}}gr.type==="throw"&&(Mt=Rt,Et.method="throw",Et.arg=gr.arg)}}}function Nr(bt,ht){var Et=ht.method,Mt=bt.iterator[Et];if(Mt===T)return ht.delegate=null,Et==="throw"&&bt.iterator.return&&(ht.method="return",ht.arg=T,Nr(bt,ht),ht.method==="throw")||Et!=="return"&&(ht.method="throw",ht.arg=new TypeError("The iterator does not provide a '"+Et+"' method")),Zt;var $t=lt(Mt,bt.iterator,ht.arg);if($t.type==="throw")return ht.method="throw",ht.arg=$t.arg,ht.delegate=null,Zt;var Lt=$t.arg;return Lt?Lt.done?(ht[bt.resultName]=Lt.value,ht.next=bt.nextLoc,ht.method!=="return"&&(ht.method="next",ht.arg=T),ht.delegate=null,Zt):Lt:(ht.method="throw",ht.arg=new TypeError("iterator result is not an object"),ht.delegate=null,Zt)}function be(bt){var ht={tryLoc:bt[0]};1 in bt&&(ht.catchLoc=bt[1]),2 in bt&&(ht.finallyLoc=bt[2],ht.afterLoc=bt[3]),this.tryEntries.push(ht)}function ae(bt){var ht=bt.completion||{};ht.type="normal",delete ht.arg,bt.completion=ht}function Zr(bt){this.tryEntries=[{tryLoc:"root"}],bt.forEach(be,this),this.reset(!0)}function oe(bt){if(bt||bt===""){var ht=bt[St];if(ht)return ht.call(bt);if(typeof bt.next=="function")return bt;if(!isNaN(bt.length)){var Et=-1,Mt=function $t(){for(;++Et=0;--$t){var Lt=this.tryEntries[$t],kt=Lt.completion;if(Lt.tryLoc==="root")return Mt("end");if(Lt.tryLoc<=this.prev){var pr=Y.call(Lt,"catchLoc"),gr=Y.call(Lt,"finallyLoc");if(pr&&gr){if(this.prev=0;--Mt){var $t=this.tryEntries[Mt];if($t.tryLoc<=this.prev&&Y.call($t,"finallyLoc")&&this.prev<$t.finallyLoc){var Lt=$t;break}}Lt&&(ht==="break"||ht==="continue")&&Lt.tryLoc<=Et&&Et<=Lt.finallyLoc&&(Lt=null);var kt=Lt?Lt.completion:{};return kt.type=ht,kt.arg=Et,Lt?(this.method="next",this.next=Lt.finallyLoc,Zt):this.complete(kt)},complete:function(ht,Et){if(ht.type==="throw")throw ht.arg;return ht.type==="break"||ht.type==="continue"?this.next=ht.arg:ht.type==="return"?(this.rval=this.arg=ht.arg,this.method="return",this.next="end"):ht.type==="normal"&&Et&&(this.next=Et),Zt},finish:function(ht){for(var Et=this.tryEntries.length-1;Et>=0;--Et){var Mt=this.tryEntries[Et];if(Mt.finallyLoc===ht)return this.complete(Mt.completion,Mt.afterLoc),ae(Mt),Zt}},catch:function(ht){for(var Et=this.tryEntries.length-1;Et>=0;--Et){var Mt=this.tryEntries[Et];if(Mt.tryLoc===ht){var $t=Mt.completion;if($t.type==="throw"){var Lt=$t.arg;ae(Mt)}return Lt}}throw new Error("illegal catch attempt")},delegateYield:function(ht,Et,Mt){return this.delegate={iterator:oe(ht),resultName:Et,nextLoc:Mt},this.method==="next"&&(this.arg=T),Zt}},D}function G(T,D){if(U(T)!="object"||!T)return T;var K=T[Symbol.toPrimitive];if(K!==void 0){var Y=K.call(T,D||"default");if(U(Y)!="object")return Y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)(T)}function N(T){var D=G(T,"string");return U(D)=="symbol"?D:String(D)}function J(T,D,K){return D=N(D),D in T?Object.defineProperty(T,D,{value:K,enumerable:!0,configurable:!0,writable:!0}):T[D]=K,T}function k(T,D){var K=Object.keys(T);if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols(T);D&&(Y=Y.filter(function(ft){return Object.getOwnPropertyDescriptor(T,ft).enumerable})),K.push.apply(K,Y)}return K}function tt(T){for(var D=1;DT.length)&&(D=T.length);for(var K=0,Y=new Array(D);K=T.length?{done:!0}:{done:!1,value:T[Y++]}},e:function(ut){throw ut},f:ft}}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 st=!0,St=!1,At;return{s:function(){K=K.call(T)},n:function(){var ut=K.next();return st=ut.done,ut},e:function(ut){St=!0,At=ut},f:function(){try{!st&&K.return!=null&&K.return()}finally{if(St)throw At}}}}function P(T){if(Array.isArray(T))return T}function F(T){if(typeof Symbol!="undefined"&&T[Symbol.iterator]!=null||T["@@iterator"]!=null)return Array.from(T)}function rt(){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 it(T){return P(T)||F(T)||L(T)||rt()}function V(T,D){if(!(T instanceof D))throw new TypeError("Cannot call a class as a function")}function $(T,D){for(var K=0;K-1,"register failed, invalid key ".concat(ft," ").concat(K.path?"from plugin ".concat(K.path):"",".")),Y.hooks[ft]=(Y.hooks[ft]||[]).concat(K.apply[ft])})}},{key:"getHooks",value:function(K){var Y=K.split("."),ft=it(Y),st=ft[0],St=ft.slice(1),At=this.hooks[st]||[];return St.length&&(At=At.map(function(Z){try{var ut=Z,Ot=j(St),lt;try{for(Ot.s();!(lt=Ot.n()).done;){var Ct=lt.value;ut=ut[Ct]}}catch(dt){Ot.e(dt)}finally{Ot.f()}return ut}catch(dt){return null}}).filter(Boolean)),At}},{key:"applyPlugins",value:function(K){var Y=K.key,ft=K.type,st=K.initialValue,St=K.args,At=K.async,Z=this.getHooks(Y)||[];switch(St&&nt(U(St)==="object","applyPlugins failed, args must be plain object."),At&&nt(ft===It.modify||ft===It.event,"async only works with modify and event type."),ft){case It.modify:return At?Z.reduce(function(){var ut=Q(C().mark(function Ot(lt,Ct){var dt;return C().wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:if(nt(typeof Ct=="function"||U(Ct)==="object"||vt(Ct),"applyPlugins failed, all hooks for key ".concat(Y," must be function, plain object or Promise.")),!vt(lt)){Rt.next=5;break}return Rt.next=4,lt;case 4:lt=Rt.sent;case 5:if(typeof Ct!="function"){Rt.next=16;break}if(dt=Ct(lt,St),!vt(dt)){Rt.next=13;break}return Rt.next=10,dt;case 10:return Rt.abrupt("return",Rt.sent);case 13:return Rt.abrupt("return",dt);case 14:Rt.next=21;break;case 16:if(!vt(Ct)){Rt.next=20;break}return Rt.next=19,Ct;case 19:Ct=Rt.sent;case 20:return Rt.abrupt("return",tt(tt({},lt),Ct));case 21:case"end":return Rt.stop()}},Ot)}));return function(Ot,lt){return ut.apply(this,arguments)}}(),vt(st)?st:Promise.resolve(st)):Z.reduce(function(ut,Ot){return nt(typeof Ot=="function"||U(Ot)==="object","applyPlugins failed, all hooks for key ".concat(Y," must be function or plain object.")),typeof Ot=="function"?Ot(ut,St):tt(tt({},ut),Ot)},st);case It.event:return Q(C().mark(function ut(){var Ot,lt,Ct,dt;return C().wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:Ot=j(Z),Rt.prev=1,Ot.s();case 3:if((lt=Ot.n()).done){Rt.next=12;break}if(Ct=lt.value,nt(typeof Ct=="function","applyPlugins failed, all hooks for key ".concat(Y," must be function.")),dt=Ct(St),!(At&&vt(dt))){Rt.next=10;break}return Rt.next=10,dt;case 10:Rt.next=3;break;case 12:Rt.next=17;break;case 14:Rt.prev=14,Rt.t0=Rt.catch(1),Ot.e(Rt.t0);case 17:return Rt.prev=17,Ot.f(),Rt.finish(17);case 20:case"end":return Rt.stop()}},ut,null,[[1,14,17,20]])}))();case It.compose:return function(){return yt({fns:Z.concat(st),args:St})()}}}}],[{key:"create",value:function(K){var Y=new T({validKeys:K.validKeys});return K.plugins.forEach(function(ft){Y.register(ft)}),Y}}]),T}(),Ft=t(82602),Ht=t(58335),Ut=t.n(Ht),dr=0,fr=0;function rr(T,D){if(0)var K}function lr(T){return JSON.stringify(T,null,2)}function Pr(T){var D=T.length>1?T.map(br).join(" "):T[0];return Ut()(D)==="object"?"".concat(lr(D)):D.toString()}function br(T){return Ut()(T)==="object"?"".concat(JSON.stringify(T)):T.toString()}var or={log:function(){for(var D=arguments.length,K=new Array(D),Y=0;Y(T[K]==null&&u(!1),T[K])).replace(/\/*\*$/,D=>T["*"]==null?"":T["*"].replace(/^\/*/,"/"))}function p(at,T,D){D===void 0&&(D="/");let K=typeof T=="string"?(0,r.cP)(T):T,Y=Q(K.pathname||"/",D);if(Y==null)return null;let ft=h(at);y(ft);let st=null;for(let St=0;st==null&&St{let st={relativePath:Y.path||"",caseSensitive:Y.caseSensitive===!0,childrenIndex:ft,route:Y};st.relativePath.startsWith("/")&&(st.relativePath.startsWith(K)||u(!1),st.relativePath=st.relativePath.slice(K.length));let St=M([K,st.relativePath]),At=D.concat(st);Y.children&&Y.children.length>0&&(Y.index===!0&&u(!1),h(Y.children,T,At,St)),!(Y.path==null&&!Y.index)&&T.push({path:St,score:b(St,Y.index),routesMeta:At})}),T}function y(at){at.sort((T,D)=>T.score!==D.score?D.score-T.score:R(T.routesMeta.map(K=>K.childrenIndex),D.routesMeta.map(K=>K.childrenIndex)))}const m=/^:\w+$/,O=3,S=2,E=1,I=10,A=-2,x=at=>at==="*";function b(at,T){let D=at.split("/"),K=D.length;return D.some(x)&&(K+=A),T&&(K+=S),D.filter(Y=>!x(Y)).reduce((Y,ft)=>Y+(m.test(ft)?O:ft===""?E:I),K)}function R(at,T){return at.length===T.length&&at.slice(0,-1).every((K,Y)=>K===T[Y])?at[at.length-1]-T[T.length-1]:0}function U(at,T){let{routesMeta:D}=at,K={},Y="/",ft=[];for(let st=0;st{if(ut==="*"){let lt=St[Ot]||"";st=ft.slice(0,ft.length-lt.length).replace(/(.)\/+$/,"$1")}return Z[ut]=N(St[Ot]||"",ut),Z},{}),pathname:ft,pathnameBase:st,pattern:at}}function G(at,T,D){T===void 0&&(T=!1),D===void 0&&(D=!0);let K=[],Y="^"+at.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(st,St)=>(K.push(St),"([^\\/]+)"));return at.endsWith("*")?(K.push("*"),Y+=at==="*"||at==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):Y+=D?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(Y,T?void 0:"i"),K]}function N(at,T){try{return decodeURIComponent(at)}catch(D){return at}}function J(at,T){T===void 0&&(T="/");let{pathname:D,search:K="",hash:Y=""}=typeof at=="string"?(0,r.cP)(at):at;return{pathname:D?D.startsWith("/")?D:k(D,T):T,search:j(K),hash:P(Y)}}function k(at,T){let D=T.replace(/\/+$/,"").split("/");return at.split("/").forEach(Y=>{Y===".."?D.length>1&&D.pop():Y!=="."&&D.push(Y)}),D.length>1?D.join("/"):"/"}function tt(at,T,D){let K=typeof at=="string"?(0,r.cP)(at):at,Y=at===""||K.pathname===""?"/":K.pathname,ft;if(Y==null)ft=D;else{let St=T.length-1;if(Y.startsWith("..")){let At=Y.split("/");for(;At[0]==="..";)At.shift(),St-=1;K.pathname=At.join("/")}ft=St>=0?T[St]:"/"}let st=J(K,ft);return Y&&Y!=="/"&&Y.endsWith("/")&&!st.pathname.endsWith("/")&&(st.pathname+="/"),st}function q(at){return at===""||at.pathname===""?"/":typeof at=="string"?(0,r.cP)(at).pathname:at.pathname}function Q(at,T){if(T==="/")return at;if(!at.toLowerCase().startsWith(T.toLowerCase()))return null;let D=at.charAt(T.length);return D&&D!=="/"?null:at.slice(T.length)||"/"}const M=at=>at.join("/").replace(/\/\/+/g,"/"),L=at=>at.replace(/\/+$/,"").replace(/^\/*/,"/"),j=at=>!at||at==="?"?"":at.startsWith("?")?at:"?"+at,P=at=>!at||at==="#"?"":at.startsWith("#")?at:"#"+at;function F(at){rt()||u(!1);let{basename:T,navigator:D}=(0,e.useContext)(a),{hash:K,pathname:Y,search:ft}=Tt(at),st=Y;if(T!=="/"){let St=q(at),At=St!=null&&St.endsWith("/");st=Y==="/"?T+(At?"/":""):M([T,Y])}return D.createHref({pathname:st,search:ft,hash:K})}function rt(){return(0,e.useContext)(s)!=null}function it(){return rt()||u(!1),(0,e.useContext)(s).location}function V(){return useContext(s).navigationType}function $(at){rt()||u(!1);let{pathname:T}=it();return useMemo(()=>C(at,T),[T,at])}function H(){rt()||u(!1);let{basename:at,navigator:T}=(0,e.useContext)(a),{matches:D}=(0,e.useContext)(i),{pathname:K}=it(),Y=JSON.stringify(D.map(St=>St.pathnameBase)),ft=(0,e.useRef)(!1);return(0,e.useEffect)(()=>{ft.current=!0}),(0,e.useCallback)(function(St,At){if(At===void 0&&(At={}),!ft.current)return;if(typeof St=="number"){T.go(St);return}let Z=tt(St,JSON.parse(Y),K);at!=="/"&&(Z.pathname=M([at,Z.pathname])),(At.replace?T.replace:T.push)(Z,At.state)},[at,T,Y,K])}const nt=(0,e.createContext)(null);function yt(){return(0,e.useContext)(nt)}function vt(at){let T=(0,e.useContext)(i).outlet;return T&&(0,e.createElement)(nt.Provider,{value:at},T)}function It(){let{matches:at}=(0,e.useContext)(i),T=at[at.length-1];return T?T.params:{}}function Tt(at){let{matches:T}=(0,e.useContext)(i),{pathname:D}=it(),K=JSON.stringify(T.map(Y=>Y.pathnameBase));return(0,e.useMemo)(()=>tt(at,JSON.parse(K),D),[at,K,D])}function Ft(at,T){rt()||u(!1);let{matches:D}=(0,e.useContext)(i),K=D[D.length-1],Y=K?K.params:{},ft=K?K.pathname:"/",st=K?K.pathnameBase:"/",St=K&&K.route,At=it(),Z;if(T){var ut;let dt=typeof T=="string"?(0,r.cP)(T):T;st==="/"||(ut=dt.pathname)!=null&&ut.startsWith(st)||u(!1),Z=dt}else Z=At;let Ot=Z.pathname||"/",lt=st==="/"?Ot:Ot.slice(st.length)||"/",Ct=p(at,{pathname:lt});return Ht(Ct&&Ct.map(dt=>Object.assign({},dt,{params:Object.assign({},Y,dt.params),pathname:M([st,dt.pathname]),pathnameBase:dt.pathnameBase==="/"?st:M([st,dt.pathnameBase])})),D)}function Ht(at,T){return T===void 0&&(T=[]),at==null?null:at.reduceRight((D,K,Y)=>(0,e.createElement)(i.Provider,{children:K.route.element!==void 0?K.route.element:D,value:{outlet:D,matches:T.concat(at.slice(0,Y+1))}}),null)}function Ut(at){let{basename:T,children:D,initialEntries:K,initialIndex:Y}=at,ft=useRef();ft.current==null&&(ft.current=createMemoryHistory({initialEntries:K,initialIndex:Y}));let st=ft.current,[St,At]=useState({action:st.action,location:st.location});return useLayoutEffect(()=>st.listen(At),[st]),createElement(lr,{basename:T,children:D,location:St.location,navigationType:St.action,navigator:st})}function dr(at){let{to:T,replace:D,state:K}=at;rt()||u(!1);let Y=H();return(0,e.useEffect)(()=>{Y(T,{replace:D,state:K})}),null}function fr(at){return vt(at.context)}function rr(at){u(!1)}function lr(at){let{basename:T="/",children:D=null,location:K,navigationType:Y=r.aU.Pop,navigator:ft,static:st=!1}=at;rt()&&u(!1);let St=L(T),At=(0,e.useMemo)(()=>({basename:St,navigator:ft,static:st}),[St,ft,st]);typeof K=="string"&&(K=(0,r.cP)(K));let{pathname:Z="/",search:ut="",hash:Ot="",state:lt=null,key:Ct="default"}=K,dt=(0,e.useMemo)(()=>{let Wt=Q(Z,St);return Wt==null?null:{pathname:Wt,search:ut,hash:Ot,state:lt,key:Ct}},[St,Z,ut,Ot,lt,Ct]);return dt==null?null:(0,e.createElement)(a.Provider,{value:At},(0,e.createElement)(s.Provider,{children:D,value:{location:dt,navigationType:Y}}))}function Pr(at){let{children:T,location:D}=at;return Ft(br(T),D)}function br(at){let T=[];return Children.forEach(at,D=>{if(!isValidElement(D))return;if(D.type===Fragment){T.push.apply(T,br(D.props.children));return}D.type!==rr&&u(!1);let K={caseSensitive:D.props.caseSensitive,element:D.props.element,index:D.props.index,path:D.props.path};D.props.children&&(K.children=br(D.props.children)),T.push(K)}),T}function or(at){return Ht(at)}},39405:function(o,v,t){"use strict";t.d(v,{Ep:function(){return m},PP:function(){return l},aU:function(){return e},cP:function(){return O},lX:function(){return c},q_:function(){return f}});var r=t(25773),e;(function(S){S.Pop="POP",S.Push="PUSH",S.Replace="REPLACE"})(e||(e={}));var n=function(S){return S};function a(S,E){if(!S){typeof console!="undefined"&&console.warn(E);try{throw new Error(E)}catch(I){}}}var s="beforeunload",i="hashchange",u="popstate";function c(S){S===void 0&&(S={});var E=S,I=E.window,A=I===void 0?document.defaultView:I,x=A.history;function b(){var V=A.location,$=V.pathname,H=V.search,nt=V.hash,yt=x.state||{};return[yt.idx,n({pathname:$,search:H,hash:nt,state:yt.usr||null,key:yt.key||"default"})]}var R=null;function U(){if(R)tt.call(R),R=null;else{var V=e.Pop,$=b(),H=$[0],nt=$[1];if(tt.length){if(H!=null){var yt=N-H;yt&&(R={action:V,location:nt,retry:function(){rt(yt*-1)}},rt(yt))}}else j(V)}}A.addEventListener(u,U);var C=e.Pop,G=b(),N=G[0],J=G[1],k=h(),tt=h();N==null&&(N=0,x.replaceState((0,r.Z)({},x.state,{idx:N}),""));function q(V){return typeof V=="string"?V:m(V)}function Q(V,$){return $===void 0&&($=null),n((0,r.Z)({pathname:J.pathname,hash:"",search:""},typeof V=="string"?O(V):V,{state:$,key:y()}))}function M(V,$){return[{usr:V.state,key:V.key,idx:$},q(V)]}function L(V,$,H){return!tt.length||(tt.call({action:V,location:$,retry:H}),!1)}function j(V){C=V;var $=b();N=$[0],J=$[1],k.call({action:C,location:J})}function P(V,$){var H=e.Push,nt=Q(V,$);function yt(){P(V,$)}if(L(H,nt,yt)){var vt=M(nt,N+1),It=vt[0],Tt=vt[1];try{x.pushState(It,"",Tt)}catch(Ft){A.location.assign(Tt)}j(H)}}function F(V,$){var H=e.Replace,nt=Q(V,$);function yt(){F(V,$)}if(L(H,nt,yt)){var vt=M(nt,N),It=vt[0],Tt=vt[1];x.replaceState(It,"",Tt),j(H)}}function rt(V){x.go(V)}var it={get action(){return C},get location(){return J},createHref:q,push:P,replace:F,go:rt,back:function(){rt(-1)},forward:function(){rt(1)},listen:function($){return k.push($)},block:function($){var H=tt.push($);return tt.length===1&&A.addEventListener(s,p),function(){H(),tt.length||A.removeEventListener(s,p)}}};return it}function f(S){S===void 0&&(S={});var E=S,I=E.window,A=I===void 0?document.defaultView:I,x=A.history;function b(){var $=O(A.location.hash.substr(1)),H=$.pathname,nt=H===void 0?"/":H,yt=$.search,vt=yt===void 0?"":yt,It=$.hash,Tt=It===void 0?"":It,Ft=x.state||{};return[Ft.idx,n({pathname:nt,search:vt,hash:Tt,state:Ft.usr||null,key:Ft.key||"default"})]}var R=null;function U(){if(R)tt.call(R),R=null;else{var $=e.Pop,H=b(),nt=H[0],yt=H[1];if(tt.length){if(nt!=null){var vt=N-nt;vt&&(R={action:$,location:yt,retry:function(){it(vt*-1)}},it(vt))}}else P($)}}A.addEventListener(u,U),A.addEventListener(i,function(){var $=b(),H=$[1];m(H)!==m(J)&&U()});var C=e.Pop,G=b(),N=G[0],J=G[1],k=h(),tt=h();N==null&&(N=0,x.replaceState((0,r.Z)({},x.state,{idx:N}),""));function q(){var $=document.querySelector("base"),H="";if($&&$.getAttribute("href")){var nt=A.location.href,yt=nt.indexOf("#");H=yt===-1?nt:nt.slice(0,yt)}return H}function Q($){return q()+"#"+(typeof $=="string"?$:m($))}function M($,H){return H===void 0&&(H=null),n((0,r.Z)({pathname:J.pathname,hash:"",search:""},typeof $=="string"?O($):$,{state:H,key:y()}))}function L($,H){return[{usr:$.state,key:$.key,idx:H},Q($)]}function j($,H,nt){return!tt.length||(tt.call({action:$,location:H,retry:nt}),!1)}function P($){C=$;var H=b();N=H[0],J=H[1],k.call({action:C,location:J})}function F($,H){var nt=e.Push,yt=M($,H);function vt(){F($,H)}if(j(nt,yt,vt)){var It=L(yt,N+1),Tt=It[0],Ft=It[1];try{x.pushState(Tt,"",Ft)}catch(Ht){A.location.assign(Ft)}P(nt)}}function rt($,H){var nt=e.Replace,yt=M($,H);function vt(){rt($,H)}if(j(nt,yt,vt)){var It=L(yt,N),Tt=It[0],Ft=It[1];x.replaceState(Tt,"",Ft),P(nt)}}function it($){x.go($)}var V={get action(){return C},get location(){return J},createHref:Q,push:F,replace:rt,go:it,back:function(){it(-1)},forward:function(){it(1)},listen:function(H){return k.push(H)},block:function(H){var nt=tt.push(H);return tt.length===1&&A.addEventListener(s,p),function(){nt(),tt.length||A.removeEventListener(s,p)}}};return V}function l(S){S===void 0&&(S={});var E=S,I=E.initialEntries,A=I===void 0?["/"]:I,x=E.initialIndex,b=A.map(function(P){var F=n((0,r.Z)({pathname:"/",search:"",hash:"",state:null,key:y()},typeof P=="string"?O(P):P));return F}),R=d(x==null?b.length-1:x,0,b.length-1),U=e.Pop,C=b[R],G=h(),N=h();function J(P){return typeof P=="string"?P:m(P)}function k(P,F){return F===void 0&&(F=null),n((0,r.Z)({pathname:C.pathname,search:"",hash:""},typeof P=="string"?O(P):P,{state:F,key:y()}))}function tt(P,F,rt){return!N.length||(N.call({action:P,location:F,retry:rt}),!1)}function q(P,F){U=P,C=F,G.call({action:U,location:C})}function Q(P,F){var rt=e.Push,it=k(P,F);function V(){Q(P,F)}tt(rt,it,V)&&(R+=1,b.splice(R,b.length,it),q(rt,it))}function M(P,F){var rt=e.Replace,it=k(P,F);function V(){M(P,F)}tt(rt,it,V)&&(b[R]=it,q(rt,it))}function L(P){var F=d(R+P,0,b.length-1),rt=e.Pop,it=b[F];function V(){L(P)}tt(rt,it,V)&&(R=F,q(rt,it))}var j={get index(){return R},get action(){return U},get location(){return C},createHref:J,push:Q,replace:M,go:L,back:function(){L(-1)},forward:function(){L(1)},listen:function(F){return G.push(F)},block:function(F){return N.push(F)}};return j}function d(S,E,I){return Math.min(Math.max(S,E),I)}function p(S){S.preventDefault(),S.returnValue=""}function h(){var S=[];return{get length(){return S.length},push:function(I){return S.push(I),function(){S=S.filter(function(A){return A!==I})}},call:function(I){S.forEach(function(A){return A&&A(I)})}}}function y(){return Math.random().toString(36).substr(2,8)}function m(S){var E=S.pathname,I=E===void 0?"/":E,A=S.search,x=A===void 0?"":A,b=S.hash,R=b===void 0?"":b;return x&&x!=="?"&&(I+=x.charAt(0)==="?"?x:"?"+x),R&&R!=="#"&&(I+=R.charAt(0)==="#"?R:"#"+R),I}function O(S){var E={};if(S){var I=S.indexOf("#");I>=0&&(E.hash=S.substr(I),S=S.substr(0,I));var A=S.indexOf("?");A>=0&&(E.search=S.substr(A),S=S.substr(0,A)),S&&(E.pathname=S)}return E}},3996:function(o){"use strict";var v=function(t,r,e,n,a,s,i,u){if(!t){var c;if(r===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[e,n,a,s,i,u],l=0;c=new Error(r.replace(/%s/g,function(){return f[l++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};o.exports=v},58772:function(o,v,t){"use strict";var r=t(90331);function e(){}function n(){}n.resetWarningCache=e,o.exports=function(){function a(u,c,f,l,d,p){if(p!==r){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}a.isRequired=a;function s(){return a}var i={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:s,element:a,elementType:a,instanceOf:s,node:a,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:e};return i.PropTypes=i,i}},23615:function(o,v,t){if(0)var r,e;else o.exports=t(58772)()},90331:function(o){"use strict";var v="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";o.exports=v},37634:function(o,v,t){"use strict";var r=t(61533);if(1)v.createRoot=r.createRoot,v.hydrateRoot=r.hydrateRoot;else var e},54335:function(o){var v=typeof Element!="undefined",t=typeof Map=="function",r=typeof Set=="function",e=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function n(a,s){if(a===s)return!0;if(a&&s&&typeof a=="object"&&typeof s=="object"){if(a.constructor!==s.constructor)return!1;var i,u,c;if(Array.isArray(a)){if(i=a.length,i!=s.length)return!1;for(u=i;u--!==0;)if(!n(a[u],s[u]))return!1;return!0}var f;if(t&&a instanceof Map&&s instanceof Map){if(a.size!==s.size)return!1;for(f=a.entries();!(u=f.next()).done;)if(!s.has(u.value[0]))return!1;for(f=a.entries();!(u=f.next()).done;)if(!n(u.value[1],s.get(u.value[0])))return!1;return!0}if(r&&a instanceof Set&&s instanceof Set){if(a.size!==s.size)return!1;for(f=a.entries();!(u=f.next()).done;)if(!s.has(u.value[0]))return!1;return!0}if(e&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(s)){if(i=a.length,i!=s.length)return!1;for(u=i;u--!==0;)if(a[u]!==s[u])return!1;return!0}if(a.constructor===RegExp)return a.source===s.source&&a.flags===s.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof s.valueOf=="function")return a.valueOf()===s.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof s.toString=="function")return a.toString()===s.toString();if(c=Object.keys(a),i=c.length,i!==Object.keys(s).length)return!1;for(u=i;u--!==0;)if(!Object.prototype.hasOwnProperty.call(s,c[u]))return!1;if(v&&a instanceof Element)return!1;for(u=i;u--!==0;)if(!((c[u]==="_owner"||c[u]==="__v"||c[u]==="__o")&&a.$$typeof)&&!n(a[c[u]],s[c[u]]))return!1;return!0}return a!==a&&s!==s}o.exports=function(s,i){try{return n(s,i)}catch(u){if((u.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw u}}},86248:function(o){var v=function(t){"use strict";var r=Object.prototype,e=r.hasOwnProperty,n=Object.defineProperty||function(M,L,j){M[L]=j.value},a,s=typeof Symbol=="function"?Symbol:{},i=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function f(M,L,j){return Object.defineProperty(M,L,{value:j,enumerable:!0,configurable:!0,writable:!0}),M[L]}try{f({},"")}catch(M){f=function(L,j,P){return L[j]=P}}function l(M,L,j,P){var F=L&&L.prototype instanceof S?L:S,rt=Object.create(F.prototype),it=new tt(P||[]);return n(rt,"_invoke",{value:G(M,j,it)}),rt}t.wrap=l;function d(M,L,j){try{return{type:"normal",arg:M.call(L,j)}}catch(P){return{type:"throw",arg:P}}}var p="suspendedStart",h="suspendedYield",y="executing",m="completed",O={};function S(){}function E(){}function I(){}var A={};f(A,i,function(){return this});var x=Object.getPrototypeOf,b=x&&x(x(q([])));b&&b!==r&&e.call(b,i)&&(A=b);var R=I.prototype=S.prototype=Object.create(A);E.prototype=I,n(R,"constructor",{value:I,configurable:!0}),n(I,"constructor",{value:E,configurable:!0}),E.displayName=f(I,c,"GeneratorFunction");function U(M){["next","throw","return"].forEach(function(L){f(M,L,function(j){return this._invoke(L,j)})})}t.isGeneratorFunction=function(M){var L=typeof M=="function"&&M.constructor;return L?L===E||(L.displayName||L.name)==="GeneratorFunction":!1},t.mark=function(M){return Object.setPrototypeOf?Object.setPrototypeOf(M,I):(M.__proto__=I,f(M,c,"GeneratorFunction")),M.prototype=Object.create(R),M},t.awrap=function(M){return{__await:M}};function C(M,L){function j(rt,it,V,$){var H=d(M[rt],M,it);if(H.type==="throw")$(H.arg);else{var nt=H.arg,yt=nt.value;return yt&&typeof yt=="object"&&e.call(yt,"__await")?L.resolve(yt.__await).then(function(vt){j("next",vt,V,$)},function(vt){j("throw",vt,V,$)}):L.resolve(yt).then(function(vt){nt.value=vt,V(nt)},function(vt){return j("throw",vt,V,$)})}}var P;function F(rt,it){function V(){return new L(function($,H){j(rt,it,$,H)})}return P=P?P.then(V,V):V()}n(this,"_invoke",{value:F})}U(C.prototype),f(C.prototype,u,function(){return this}),t.AsyncIterator=C,t.async=function(M,L,j,P,F){F===void 0&&(F=Promise);var rt=new C(l(M,L,j,P),F);return t.isGeneratorFunction(L)?rt:rt.next().then(function(it){return it.done?it.value:rt.next()})};function G(M,L,j){var P=p;return function(rt,it){if(P===y)throw new Error("Generator is already running");if(P===m){if(rt==="throw")throw it;return Q()}for(j.method=rt,j.arg=it;;){var V=j.delegate;if(V){var $=N(V,j);if($){if($===O)continue;return $}}if(j.method==="next")j.sent=j._sent=j.arg;else if(j.method==="throw"){if(P===p)throw P=m,j.arg;j.dispatchException(j.arg)}else j.method==="return"&&j.abrupt("return",j.arg);P=y;var H=d(M,L,j);if(H.type==="normal"){if(P=j.done?m:h,H.arg===O)continue;return{value:H.arg,done:j.done}}else H.type==="throw"&&(P=m,j.method="throw",j.arg=H.arg)}}}function N(M,L){var j=L.method,P=M.iterator[j];if(P===a)return L.delegate=null,j==="throw"&&M.iterator.return&&(L.method="return",L.arg=a,N(M,L),L.method==="throw")||j!=="return"&&(L.method="throw",L.arg=new TypeError("The iterator does not provide a '"+j+"' method")),O;var F=d(P,M.iterator,L.arg);if(F.type==="throw")return L.method="throw",L.arg=F.arg,L.delegate=null,O;var rt=F.arg;if(!rt)return L.method="throw",L.arg=new TypeError("iterator result is not an object"),L.delegate=null,O;if(rt.done)L[M.resultName]=rt.value,L.next=M.nextLoc,L.method!=="return"&&(L.method="next",L.arg=a);else return rt;return L.delegate=null,O}U(R),f(R,c,"Generator"),f(R,i,function(){return this}),f(R,"toString",function(){return"[object Generator]"});function J(M){var L={tryLoc:M[0]};1 in M&&(L.catchLoc=M[1]),2 in M&&(L.finallyLoc=M[2],L.afterLoc=M[3]),this.tryEntries.push(L)}function k(M){var L=M.completion||{};L.type="normal",delete L.arg,M.completion=L}function tt(M){this.tryEntries=[{tryLoc:"root"}],M.forEach(J,this),this.reset(!0)}t.keys=function(M){var L=Object(M),j=[];for(var P in L)j.push(P);return j.reverse(),function F(){for(;j.length;){var rt=j.pop();if(rt in L)return F.value=rt,F.done=!1,F}return F.done=!0,F}};function q(M){if(M){var L=M[i];if(L)return L.call(M);if(typeof M.next=="function")return M;if(!isNaN(M.length)){var j=-1,P=function F(){for(;++j=0;--P){var F=this.tryEntries[P],rt=F.completion;if(F.tryLoc==="root")return j("end");if(F.tryLoc<=this.prev){var it=e.call(F,"catchLoc"),V=e.call(F,"finallyLoc");if(it&&V){if(this.prev=0;--j){var P=this.tryEntries[j];if(P.tryLoc<=this.prev&&e.call(P,"finallyLoc")&&this.prev=0;--L){var j=this.tryEntries[L];if(j.finallyLoc===M)return this.complete(j.completion,j.afterLoc),k(j),O}},catch:function(M){for(var L=this.tryEntries.length-1;L>=0;--L){var j=this.tryEntries[L];if(j.tryLoc===M){var P=j.completion;if(P.type==="throw"){var F=P.arg;k(j)}return F}}throw new Error("illegal catch attempt")},delegateYield:function(M,L,j){return this.delegate={iterator:q(M),resultName:L,nextLoc:j},this.method==="next"&&(this.arg=a),O}},t}(o.exports);try{regeneratorRuntime=v}catch(t){typeof globalThis=="object"?globalThis.regeneratorRuntime=v:Function("r","regeneratorRuntime = r")(v)}},74445:function(o){o.exports=function(t,r,e,n){var a=e?e.call(n,t,r):void 0;if(a!==void 0)return!!a;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var s=Object.keys(t),i=Object.keys(r);if(s.length!==i.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(r),c=0;c=0;--it){var V=this.tryEntries[it],$=V.completion;if(V.tryLoc==="root")return rt("end");if(V.tryLoc<=this.prev){var H=i.call(V,"catchLoc"),nt=i.call(V,"finallyLoc");if(H&&nt){if(this.prev=0;--rt){var it=this.tryEntries[rt];if(it.tryLoc<=this.prev&&i.call(it,"finallyLoc")&&this.prev=0;--F){var rt=this.tryEntries[F];if(rt.finallyLoc===P)return this.complete(rt.completion,rt.afterLoc),Q(rt),I}},catch:function(P){for(var F=this.tryEntries.length-1;F>=0;--F){var rt=this.tryEntries[F];if(rt.tryLoc===P){var it=rt.completion;if(it.type==="throw"){var V=it.arg;Q(rt)}return V}}throw new Error("illegal catch attempt")},delegateYield:function(P,F,rt){return this.delegate={iterator:L(P),resultName:F,nextLoc:rt},this.method==="next"&&(this.arg=n),I}},a}o.exports=e,o.exports.__esModule=!0,o.exports.default=o.exports},3398:function(o,v,t){var r=t(58335).default;function e(n,a){if(r(n)!="object"||!n)return n;var s=n[Symbol.toPrimitive];if(s!==void 0){var i=s.call(n,a||"default");if(r(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}o.exports=e,o.exports.__esModule=!0,o.exports.default=o.exports},38142:function(o,v,t){var r=t(58335).default,e=t(3398);function n(a){var s=e(a,"string");return r(s)=="symbol"?s:String(s)}o.exports=n,o.exports.__esModule=!0,o.exports.default=o.exports},58335:function(o){function v(t){"@babel/helpers - typeof";return o.exports=v=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},o.exports.__esModule=!0,o.exports.default=o.exports,v(t)}o.exports=v,o.exports.__esModule=!0,o.exports.default=o.exports},61575:function(o,v,t){"use strict";var r=t(55893),e=t(85545),n=TypeError;o.exports=function(a){if(r(a))return a;throw new n(e(a)+" is not a function")}},87329:function(o,v,t){"use strict";var r=t(25434),e=t(85545),n=TypeError;o.exports=function(a){if(r(a))return a;throw new n(e(a)+" is not a constructor")}},26188:function(o,v,t){"use strict";var r=t(63843).has;o.exports=function(e){return r(e),e}},99272:function(o,v,t){"use strict";var r=t(55893),e=String,n=TypeError;o.exports=function(a){if(typeof a=="object"||r(a))return a;throw new n("Can't set "+e(a)+" as a prototype")}},77085:function(o,v,t){"use strict";var r=t(17276).has;o.exports=function(e){return r(e),e}},35561:function(o){"use strict";var v=TypeError;o.exports=function(t){if(typeof t=="string")return t;throw new v("Argument is not a string")}},51369:function(o,v,t){"use strict";var r=t(83614).has;o.exports=function(e){return r(e),e}},18521:function(o,v,t){"use strict";var r=t(55316).has;o.exports=function(e){return r(e),e}},30215:function(o,v,t){"use strict";var r=t(11550),e=t(46406),n=t(45898),a=t(99972),s=t(61575),i=t(87707),u=t(56628),c=t(67936),f=c("asyncDispose"),l=c("dispose"),d=e([].push),p=function(y,m){if(m==="async-dispose"){var O=u(y,f);return O!==void 0?O:(O=u(y,l),function(){r(O,this)})}return u(y,l)},h=function(y,m,O){return arguments.length<3&&!i(y)&&(O=s(p(a(y),m))),O===void 0?function(){}:n(O,y)};o.exports=function(y,m,O,S){var E;if(arguments.length<4){if(i(m)&&O==="sync-dispose")return;E=h(m,O)}else E=h(void 0,O,S);d(y.stack,E)}},49408:function(o,v,t){"use strict";var r=t(67936),e=t(9464),n=t(27144).f,a=r("unscopables"),s=Array.prototype;s[a]===void 0&&n(s,a,{configurable:!0,value:e(null)}),o.exports=function(i){s[a][i]=!0}},49064:function(o,v,t){"use strict";var r=t(2075),e=TypeError;o.exports=function(n,a){if(r(a,n))return n;throw new e("Incorrect invocation")}},41456:function(o,v,t){"use strict";var r=t(15287),e=String,n=TypeError;o.exports=function(a){if(a===void 0||r(a))return a;throw new n(e(a)+" is not an object or undefined")}},99972:function(o,v,t){"use strict";var r=t(15287),e=String,n=TypeError;o.exports=function(a){if(r(a))return a;throw new n(e(a)+" is not an object")}},91377:function(o,v,t){"use strict";var r=t(85683),e=TypeError;o.exports=function(n){if(r(n)==="Uint8Array")return n;throw new e("Argument is not an Uint8Array")}},38730:function(o){"use strict";o.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},34195:function(o,v,t){"use strict";var r=t(28692),e=t(63048),n=TypeError;o.exports=r(ArrayBuffer.prototype,"byteLength","get")||function(a){if(e(a)!=="ArrayBuffer")throw new n("ArrayBuffer expected");return a.byteLength}},18359:function(o,v,t){"use strict";var r=t(46406),e=t(34195),n=r(ArrayBuffer.prototype.slice);o.exports=function(a){if(e(a)!==0)return!1;try{return n(a,0,0),!1}catch(s){return!0}}},45828:function(o,v,t){"use strict";var r=t(5306);o.exports=r(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})},99459:function(o,v,t){"use strict";var r=t(77802),e=t(46406),n=t(28692),a=t(85947),s=t(18359),i=t(34195),u=t(17662),c=t(84758),f=r.structuredClone,l=r.ArrayBuffer,d=r.DataView,p=r.TypeError,h=Math.min,y=l.prototype,m=d.prototype,O=e(y.slice),S=n(y,"resizable","get"),E=n(y,"maxByteLength","get"),I=e(m.getInt8),A=e(m.setInt8);o.exports=(c||u)&&function(x,b,R){var U=i(x),C=b===void 0?U:a(b),G=!S||!S(x),N;if(s(x))throw new p("ArrayBuffer is detached");if(c&&(x=f(x,{transfer:[x]}),U===C&&(R||G)))return x;if(U>=C&&(!R||G))N=O(x,0,C);else{var J=R&&!G&&E?{maxByteLength:E(x)}:void 0;N=new l(C,J);for(var k=new d(x),tt=new d(N),q=h(C,U),Q=0;Q1?arguments[1]:void 0,C=R>2?arguments[2]:void 0;return new(l("Promise"))(function(G){var N=n(x);U!==void 0&&(U=r(U,C));var J=f(N,m),k=J?void 0:c(N)||E,tt=a(b)?new b:[],q=J?s(N,J):new h(u(i(N,k)));G(y(q,U,tt))})}},61837:function(o,v,t){"use strict";var r=t(19969);o.exports=function(e,n,a){for(var s=0,i=arguments.length>2?a:r(n),u=new e(i);i>s;)u[s]=n[s++];return u}},28111:function(o,v,t){"use strict";var r=t(45898),e=t(46406),n=t(25366),a=t(85864),s=t(19969),i=t(63843),u=i.Map,c=i.get,f=i.has,l=i.set,d=e([].push);o.exports=function(h){for(var y=a(this),m=n(y),O=r(h,arguments.length>1?arguments[1]:void 0),S=new u,E=s(m),I=0,A,x;E>I;I++)x=m[I],A=O(x,I,y),f(S,A)?d(c(S,A),x):l(S,A,[x]);return S}},87624:function(o,v,t){"use strict";var r=t(45898),e=t(46406),n=t(25366),a=t(85864),s=t(83662),i=t(19969),u=t(9464),c=t(61837),f=Array,l=e([].push);o.exports=function(d,p,h,y){for(var m=a(d),O=n(m),S=r(p,h),E=u(null),I=i(O),A=0,x,b,R;I>A;A++)R=O[A],b=s(S(R,A,m)),b in E?l(E[b],R):E[b]=[R];if(y&&(x=y(m),x!==f))for(b in E)E[b]=c(x,E[b]);return E}},22971:function(o,v,t){"use strict";var r=t(79405),e=t(29961),n=t(19969),a=function(s){return function(i,u,c){var f=r(i),l=n(f),d=e(c,l),p;if(s&&u!==u){for(;l>d;)if(p=f[d++],p!==p)return!0}else for(;l>d;d++)if((s||d in f)&&f[d]===u)return s||d||0;return!s&&-1}};o.exports={includes:a(!0),indexOf:a(!1)}},88877:function(o,v,t){"use strict";var r=t(45898),e=t(25366),n=t(85864),a=t(19969),s=function(i){var u=i===1;return function(c,f,l){for(var d=n(c),p=e(d),h=a(p),y=r(f,l),m,O;h-- >0;)if(m=p[h],O=y(m,h,d),O)switch(i){case 0:return m;case 1:return h}return u?-1:void 0}};o.exports={findLast:s(0),findLastIndex:s(1)}},96767:function(o,v,t){"use strict";var r=t(45898),e=t(46406),n=t(25366),a=t(85864),s=t(19969),i=t(55008),u=e([].push),c=function(f){var l=f===1,d=f===2,p=f===3,h=f===4,y=f===6,m=f===7,O=f===5||y;return function(S,E,I,A){for(var x=a(S),b=n(x),R=s(b),U=r(E,I),C=0,G=A||i,N=l?G(S,R):d||m?G(S,0):void 0,J,k;R>C;C++)if((O||C in b)&&(J=b[C],k=U(J,C,x),f))if(l)N[C]=k;else if(k)switch(f){case 3:return!0;case 5:return J;case 6:return C;case 2:u(N,J)}else switch(f){case 4:return!1;case 7:u(N,J)}return y?-1:p||h?h:N}};o.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},40519:function(o,v,t){"use strict";var r=t(5306);o.exports=function(e,n){var a=[][e];return!!a&&r(function(){a.call(null,n||function(){return 1},1)})}},9813:function(o,v,t){"use strict";var r=t(61575),e=t(85864),n=t(25366),a=t(19969),s=TypeError,i=function(u){return function(c,f,l,d){var p=e(c),h=n(p),y=a(p);r(f);var m=u?y-1:0,O=u?-1:1;if(l<2)for(;;){if(m in h){d=h[m],m+=O;break}if(m+=O,u?m<0:y<=m)throw new s("Reduce of empty array with no initial value")}for(;u?m>=0:y>m;m+=O)m in h&&(d=f(d,h[m],m,p));return d}};o.exports={left:i(!1),right:i(!0)}},58576:function(o,v,t){"use strict";var r=t(3877),e=t(65289),n=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(i){return i instanceof TypeError}}();o.exports=s?function(i,u){if(e(i)&&!a(i,"length").writable)throw new n("Cannot set read only .length");return i.length=u}:function(i,u){return i.length=u}},27665:function(o,v,t){"use strict";var r=t(29961),e=t(19969),n=t(76968),a=Array,s=Math.max;o.exports=function(i,u,c){for(var f=e(i),l=r(u,f),d=r(c===void 0?f:c,f),p=a(s(d-l,0)),h=0;l=c||l<0)throw new n("Incorrect index");for(var d=new s(c),p=0;p1?arguments[1]:void 0,p,h,y,m;return a(this),p=d!==void 0,p&&n(d),s(f)?new this:(h=[],p?(y=0,m=r(d,l>2?arguments[2]:void 0),i(f,function(O){e(u,h,m(O,y++))})):i(f,u,{that:h}),new this(h))}},47819:function(o,v,t){"use strict";var r=t(30039);o.exports=function(){return new this(r(arguments))}},43861:function(o,v,t){"use strict";var r=t(9464),e=t(15023),n=t(89990),a=t(45898),s=t(49064),i=t(87707),u=t(82003),c=t(57227),f=t(64160),l=t(77001),d=t(3877),p=t(77898).fastKey,h=t(9930),y=h.set,m=h.getterFor;o.exports={getConstructor:function(O,S,E,I){var A=O(function(C,G){s(C,x),y(C,{type:S,index:r(null),first:void 0,last:void 0,size:0}),d||(C.size=0),i(G)||u(G,C[I],{that:C,AS_ENTRIES:E})}),x=A.prototype,b=m(S),R=function(C,G,N){var J=b(C),k=U(C,G),tt,q;return k?k.value=N:(J.last=k={index:q=p(G,!0),key:G,value:N,previous:tt=J.last,next:void 0,removed:!1},J.first||(J.first=k),tt&&(tt.next=k),d?J.size++:C.size++,q!=="F"&&(J.index[q]=k)),C},U=function(C,G){var N=b(C),J=p(G),k;if(J!=="F")return N.index[J];for(k=N.first;k;k=k.next)if(k.key===G)return k};return n(x,{clear:function(){for(var G=this,N=b(G),J=N.index,k=N.first;k;)k.removed=!0,k.previous&&(k.previous=k.previous.next=void 0),delete J[k.index],k=k.next;N.first=N.last=void 0,d?N.size=0:G.size=0},delete:function(C){var G=this,N=b(G),J=U(G,C);if(J){var k=J.next,tt=J.previous;delete N.index[J.index],J.removed=!0,tt&&(tt.next=k),k&&(k.previous=tt),N.first===J&&(N.first=k),N.last===J&&(N.last=tt),d?N.size--:G.size--}return!!J},forEach:function(G){for(var N=b(this),J=a(G,arguments.length>1?arguments[1]:void 0),k;k=k?k.next:N.first;)for(J(k.value,k.key,this);k&&k.removed;)k=k.previous},has:function(G){return!!U(this,G)}}),n(x,E?{get:function(G){var N=U(this,G);return N&&N.value},set:function(G,N){return R(this,G===0?0:G,N)}}:{add:function(G){return R(this,G=G===0?0:G,G)}}),d&&e(x,"size",{configurable:!0,get:function(){return b(this).size}}),A},setStrong:function(O,S,E){var I=S+" Iterator",A=m(S),x=m(I);c(O,S,function(b,R){y(this,{type:I,target:b,state:A(b),kind:R,last:void 0})},function(){for(var b=x(this),R=b.kind,U=b.last;U&&U.removed;)U=U.previous;return!b.target||!(b.last=U=U?U.next:b.state.first)?(b.target=void 0,f(void 0,!0)):f(R==="keys"?U.key:R==="values"?U.value:[U.key,U.value],!1)},E?"entries":"values",!E,!0),l(S)}}},18683:function(o,v,t){"use strict";var r=t(46406),e=t(89990),n=t(77898).getWeakData,a=t(49064),s=t(99972),i=t(87707),u=t(15287),c=t(82003),f=t(96767),l=t(4130),d=t(9930),p=d.set,h=d.getterFor,y=f.find,m=f.findIndex,O=r([].splice),S=0,E=function(x){return x.frozen||(x.frozen=new I)},I=function(){this.entries=[]},A=function(x,b){return y(x.entries,function(R){return R[0]===b})};I.prototype={get:function(x){var b=A(this,x);if(b)return b[1]},has:function(x){return!!A(this,x)},set:function(x,b){var R=A(this,x);R?R[1]=b:this.entries.push([x,b])},delete:function(x){var b=m(this.entries,function(R){return R[0]===x});return~b&&O(this.entries,b,1),!!~b}},o.exports={getConstructor:function(x,b,R,U){var C=x(function(k,tt){a(k,G),p(k,{type:b,id:S++,frozen:void 0}),i(tt)||c(tt,k[U],{that:k,AS_ENTRIES:R})}),G=C.prototype,N=h(b),J=function(k,tt,q){var Q=N(k),M=n(s(tt),!0);return M===!0?E(Q).set(tt,q):M[Q.id]=q,k};return e(G,{delete:function(k){var tt=N(this);if(!u(k))return!1;var q=n(k);return q===!0?E(tt).delete(k):q&&l(q,tt.id)&&delete q[tt.id]},has:function(tt){var q=N(this);if(!u(tt))return!1;var Q=n(tt);return Q===!0?E(q).has(tt):Q&&l(Q,q.id)}}),e(G,R?{get:function(tt){var q=N(this);if(u(tt)){var Q=n(tt);return Q===!0?E(q).get(tt):Q?Q[q.id]:void 0}},set:function(tt,q){return J(this,tt,q)}}:{add:function(tt){return J(this,tt,!0)}}),C}}},91739:function(o,v,t){"use strict";var r=t(92390),e=t(77802),n=t(46406),a=t(75031),s=t(67205),i=t(77898),u=t(82003),c=t(49064),f=t(55893),l=t(87707),d=t(15287),p=t(5306),h=t(87246),y=t(13581),m=t(91074);o.exports=function(O,S,E){var I=O.indexOf("Map")!==-1,A=O.indexOf("Weak")!==-1,x=I?"set":"add",b=e[O],R=b&&b.prototype,U=b,C={},G=function(M){var L=n(R[M]);s(R,M,M==="add"?function(P){return L(this,P===0?0:P),this}:M==="delete"?function(j){return A&&!d(j)?!1:L(this,j===0?0:j)}:M==="get"?function(P){return A&&!d(P)?void 0:L(this,P===0?0:P)}:M==="has"?function(P){return A&&!d(P)?!1:L(this,P===0?0:P)}:function(P,F){return L(this,P===0?0:P,F),this})},N=a(O,!f(b)||!(A||R.forEach&&!p(function(){new b().entries().next()})));if(N)U=E.getConstructor(S,O,I,x),i.enable();else if(a(O,!0)){var J=new U,k=J[x](A?{}:-0,1)!==J,tt=p(function(){J.has(1)}),q=h(function(M){new b(M)}),Q=!A&&p(function(){for(var M=new b,L=5;L--;)M[x](L,L);return!M.has(-0)});q||(U=S(function(M,L){c(M,R);var j=m(new b,M,U);return l(L)||u(L,j[x],{that:j,AS_ENTRIES:I}),j}),U.prototype=R,R.constructor=U),(tt||Q)&&(G("delete"),G("has"),I&&G("get")),(Q||k)&&G(x),A&&R.clear&&delete R.clear}return C[O]=U,r({global:!0,constructor:!0,forced:U!==b},C),y(U,O),A||E.setStrong(U,O,I),U}},35898:function(o,v,t){"use strict";t(81970),t(84750);var r=t(51570),e=t(9464),n=t(15287),a=Object,s=TypeError,i=r("Map"),u=r("WeakMap"),c=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=e(null)};c.prototype.get=function(l,d){return this[l]||(this[l]=d())},c.prototype.next=function(l,d,p){var h=p?this.objectsByIndex[l]||(this.objectsByIndex[l]=new u):this.primitives||(this.primitives=new i),y=h.get(d);return y||h.set(d,y=new c),y};var f=new c;o.exports=function(){var l=f,d=arguments.length,p,h;for(p=0;pt)throw v("Maximum allowed index exceeded");return r}},94062:function(o){"use strict";o.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},1405:function(o,v,t){"use strict";var r=t(83279),e=t(16576);o.exports=!r&&!e&&typeof window=="object"&&typeof document=="object"},73517:function(o){"use strict";o.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},83279:function(o){"use strict";o.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},27580:function(o,v,t){"use strict";var r=t(22626);o.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},16576:function(o,v,t){"use strict";var r=t(77802),e=t(63048);o.exports=e(r.process)==="process"},22626:function(o){"use strict";o.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},7245:function(o,v,t){"use strict";var r=t(77802),e=t(22626),n=r.process,a=r.Deno,s=n&&n.versions||a&&a.version,i=s&&s.v8,u,c;i&&(u=i.split("."),c=u[0]>0&&u[0]<4?1:+(u[0]+u[1])),!c&&e&&(u=e.match(/Edge\/(\d+)/),(!u||u[1]>=74)&&(u=e.match(/Chrome\/(\d+)/),u&&(c=+u[1]))),o.exports=c},14286:function(o){"use strict";o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},93939:function(o,v,t){"use strict";var r=t(46406),e=Error,n=r("".replace),a=function(u){return String(new e(u).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,i=s.test(a);o.exports=function(u,c){if(i&&typeof u=="string"&&!e.prepareStackTrace)for(;c--;)u=n(u,s,"");return u}},83452:function(o,v,t){"use strict";var r=t(89251),e=t(93939),n=t(64815),a=Error.captureStackTrace;o.exports=function(s,i,u,c){n&&(a?a(s,i):r(s,"stack",e(u,c)))}},64815:function(o,v,t){"use strict";var r=t(5306),e=t(49637);o.exports=!r(function(){var n=new Error("a");return"stack"in n?(Object.defineProperty(n,"stack",e(1,7)),n.stack!==7):!0})},92390:function(o,v,t){"use strict";var r=t(77802),e=t(20010).f,n=t(89251),a=t(67205),s=t(13630),i=t(30779),u=t(75031);o.exports=function(c,f){var l=c.target,d=c.global,p=c.stat,h,y,m,O,S,E;if(d?y=r:p?y=r[l]||s(l,{}):y=(r[l]||{}).prototype,y)for(m in f){if(S=f[m],c.dontCallGetSet?(E=e(y,m),O=E&&E.value):O=y[m],h=u(d?m:l+(p?".":"#")+m,c.forced),!h&&O!==void 0){if(typeof S==typeof O)continue;i(S,O)}(c.sham||O&&O.sham)&&n(S,"sham",!0),a(y,m,S,c)}}},5306:function(o){"use strict";o.exports=function(v){try{return!!v()}catch(t){return!0}}},87766:function(o,v,t){"use strict";var r=t(5306);o.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},56415:function(o,v,t){"use strict";var r=t(67219),e=Function.prototype,n=e.apply,a=e.call;o.exports=typeof Reflect=="object"&&Reflect.apply||(r?a.bind(n):function(){return a.apply(n,arguments)})},45898:function(o,v,t){"use strict";var r=t(38717),e=t(61575),n=t(67219),a=r(r.bind);o.exports=function(s,i){return e(s),i===void 0?s:n?a(s,i):function(){return s.apply(i,arguments)}}},67219:function(o,v,t){"use strict";var r=t(5306);o.exports=!r(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})},11550:function(o,v,t){"use strict";var r=t(67219),e=Function.prototype.call;o.exports=r?e.bind(e):function(){return e.apply(e,arguments)}},16158:function(o,v,t){"use strict";var r=t(46406),e=t(61575);o.exports=function(){return r(e(this))}},9656:function(o,v,t){"use strict";var r=t(3877),e=t(4130),n=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=e(n,"name"),i=s&&function(){}.name==="something",u=s&&(!r||r&&a(n,"name").configurable);o.exports={EXISTS:s,PROPER:i,CONFIGURABLE:u}},28692:function(o,v,t){"use strict";var r=t(46406),e=t(61575);o.exports=function(n,a,s){try{return r(e(Object.getOwnPropertyDescriptor(n,a)[s]))}catch(i){}}},38717:function(o,v,t){"use strict";var r=t(63048),e=t(46406);o.exports=function(n){if(r(n)==="Function")return e(n)}},46406:function(o,v,t){"use strict";var r=t(67219),e=Function.prototype,n=e.call,a=r&&e.bind.bind(n,n);o.exports=r?a:function(s){return function(){return n.apply(s,arguments)}}},53220:function(o){"use strict";var v=TypeError;o.exports=function(t){var r=t&&t.alphabet;if(r===void 0||r==="base64"||r==="base64url")return r||"base64";throw new v("Incorrect `alphabet` option")}},52402:function(o,v,t){"use strict";var r=t(11550),e=t(55893),n=t(99972),a=t(10066),s=t(85536),i=t(56628),u=t(67936),c=t(12232),f=u("asyncIterator");o.exports=function(l){var d=n(l),p=!0,h=i(d,f),y;return e(h)||(h=s(d),p=!1),h!==void 0?y=r(h,d):(y=d,p=!0),n(y),a(p?y:new c(a(y)))}},36532:function(o,v,t){"use strict";var r=t(11550),e=t(12232),n=t(99972),a=t(43159),s=t(10066),i=t(56628),u=t(67936),c=u("asyncIterator");o.exports=function(f,l){var d=arguments.length<2?i(f,c):l;return d?n(r(d,f)):new e(s(a(f)))}},79853:function(o,v,t){"use strict";var r=t(77802);o.exports=function(e,n){var a=r[e],s=a&&a.prototype;return s&&s[n]}},51570:function(o,v,t){"use strict";var r=t(77802),e=t(55893),n=function(a){return e(a)?a:void 0};o.exports=function(a,s){return arguments.length<2?n(r[a]):r[a]&&r[a][s]}},10066:function(o){"use strict";o.exports=function(v){return{iterator:v,next:v.next,done:!1}}},39832:function(o,v,t){"use strict";var r=t(11550),e=t(99972),n=t(10066),a=t(85536);o.exports=function(s,i){(!i||typeof s!="string")&&e(s);var u=a(s);return n(e(u!==void 0?r(u,s):s))}},85536:function(o,v,t){"use strict";var r=t(85683),e=t(56628),n=t(87707),a=t(59921),s=t(67936),i=s("iterator");o.exports=function(u){if(!n(u))return e(u,i)||e(u,"@@iterator")||a[r(u)]}},43159:function(o,v,t){"use strict";var r=t(11550),e=t(61575),n=t(99972),a=t(85545),s=t(85536),i=TypeError;o.exports=function(u,c){var f=arguments.length<2?s(u):c;if(e(f))return n(r(f,u));throw new i(a(u)+" is not iterable")}},36695:function(o,v,t){"use strict";var r=t(46406),e=t(65289),n=t(55893),a=t(63048),s=t(42755),i=r([].push);o.exports=function(u){if(n(u))return u;if(e(u)){for(var c=u.length,f=[],l=0;l]*>)/g,c=/\$([$&'`]|\d{1,2})/g;o.exports=function(f,l,d,p,h,y){var m=d+f.length,O=p.length,S=c;return h!==void 0&&(h=e(h),S=u),s(y,S,function(E,I){var A;switch(a(I,0)){case"$":return"$";case"&":return f;case"`":return i(l,0,d);case"'":return i(l,m);case"<":A=h[i(I,1,-1)];break;default:var x=+I;if(x===0)return E;if(x>O){var b=n(x/10);return b===0?E:b<=O?p[b-1]===void 0?a(I,1):p[b-1]+a(I,1):E}A=p[x-1]}return A===void 0?"":A})}},77802:function(o,v,t){"use strict";var r=function(e){return e&&e.Math===Math&&e};o.exports=r(typeof globalThis=="object"&&globalThis)||r(typeof window=="object"&&window)||r(typeof self=="object"&&self)||r(typeof t.g=="object"&&t.g)||r(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},4130:function(o,v,t){"use strict";var r=t(46406),e=t(85864),n=r({}.hasOwnProperty);o.exports=Object.hasOwn||function(s,i){return n(e(s),i)}},63421:function(o){"use strict";o.exports={}},34419:function(o){"use strict";o.exports=function(v,t){try{arguments.length===1?console.error(v):console.error(v,t)}catch(r){}}},12343:function(o,v,t){"use strict";var r=t(51570);o.exports=r("document","documentElement")},33075:function(o,v,t){"use strict";var r=t(3877),e=t(5306),n=t(19800);o.exports=!r&&!e(function(){return Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a!==7})},26157:function(o){"use strict";var v=Array,t=Math.abs,r=Math.pow,e=Math.floor,n=Math.log,a=Math.LN2,s=function(u,c,f){var l=v(f),d=f*8-c-1,p=(1<>1,y=c===23?r(2,-24)-r(2,-77):0,m=u<0||u===0&&1/u<0?1:0,O=0,S,E,I;for(u=t(u),u!==u||u===1/0?(E=u!==u?1:0,S=p):(S=e(n(u)/a),I=r(2,-S),u*I<1&&(S--,I*=2),S+h>=1?u+=y/I:u+=y*r(2,1-h),u*I>=2&&(S++,I/=2),S+h>=p?(E=0,S=p):S+h>=1?(E=(u*I-1)*r(2,c),S+=h):(E=u*r(2,h-1)*r(2,c),S=0));c>=8;)l[O++]=E&255,E/=256,c-=8;for(S=S<0;)l[O++]=S&255,S/=256,d-=8;return l[--O]|=m*128,l},i=function(u,c){var f=u.length,l=f*8-c-1,d=(1<>1,h=l-7,y=f-1,m=u[y--],O=m&127,S;for(m>>=7;h>0;)O=O*256+u[y--],h-=8;for(S=O&(1<<-h)-1,O>>=-h,h+=c;h>0;)S=S*256+u[y--],h-=8;if(O===0)O=1-p;else{if(O===d)return S?NaN:m?-1/0:1/0;S+=r(2,c),O-=p}return(m?-1:1)*S*r(2,O-c)};o.exports={pack:s,unpack:i}},25366:function(o,v,t){"use strict";var r=t(46406),e=t(5306),n=t(63048),a=Object,s=r("".split);o.exports=e(function(){return!a("z").propertyIsEnumerable(0)})?function(i){return n(i)==="String"?s(i,""):a(i)}:a},91074:function(o,v,t){"use strict";var r=t(55893),e=t(15287),n=t(71126);o.exports=function(a,s,i){var u,c;return n&&r(u=s.constructor)&&u!==i&&e(c=u.prototype)&&c!==i.prototype&&n(a,c),a}},85088:function(o,v,t){"use strict";var r=t(46406),e=t(55893),n=t(64830),a=r(Function.toString);e(n.inspectSource)||(n.inspectSource=function(s){return a(s)}),o.exports=n.inspectSource},71281:function(o,v,t){"use strict";var r=t(15287),e=t(89251);o.exports=function(n,a){r(a)&&"cause"in a&&e(n,"cause",a.cause)}},77898:function(o,v,t){"use strict";var r=t(92390),e=t(46406),n=t(63421),a=t(15287),s=t(4130),i=t(27144).f,u=t(17397),c=t(92348),f=t(50593),l=t(46350),d=t(87766),p=!1,h=l("meta"),y=0,m=function(x){i(x,h,{value:{objectID:"O"+y++,weakData:{}}})},O=function(x,b){if(!a(x))return typeof x=="symbol"?x:(typeof x=="string"?"S":"P")+x;if(!s(x,h)){if(!f(x))return"F";if(!b)return"E";m(x)}return x[h].objectID},S=function(x,b){if(!s(x,h)){if(!f(x))return!0;if(!b)return!1;m(x)}return x[h].weakData},E=function(x){return d&&p&&f(x)&&!s(x,h)&&m(x),x},I=function(){A.enable=function(){},p=!0;var x=u.f,b=e([].splice),R={};R[h]=1,x(R).length&&(u.f=function(U){for(var C=x(U),G=0,N=C.length;GC;C++)if(N=q(y[C]),N&&u(h,N))return N;return new p(!1)}R=c(y,U)}for(J=I?y.next:R.next;!(k=e(J,R)).done;){try{N=q(k.value)}catch(Q){l(R,"throw",Q)}if(typeof N=="object"&&N&&u(h,N))return N}return new p(!1)}},36335:function(o,v,t){"use strict";var r=t(11550),e=t(99972),n=t(56628);o.exports=function(a,s,i){var u,c;e(a);try{if(u=n(a,"return"),!u){if(s==="throw")throw i;return i}u=r(u,a)}catch(f){c=!0,u=f}if(s==="throw")throw i;if(c)throw u;return e(u),i}},23691:function(o,v,t){"use strict";var r=t(4760).IteratorPrototype,e=t(9464),n=t(49637),a=t(13581),s=t(59921),i=function(){return this};o.exports=function(u,c,f,l){var d=c+" Iterator";return u.prototype=e(r,{next:n(+!l,f)}),a(u,d,!1,!0),s[d]=i,u}},65299:function(o,v,t){"use strict";var r=t(11550),e=t(9464),n=t(89251),a=t(89990),s=t(67936),i=t(9930),u=t(56628),c=t(4760).IteratorPrototype,f=t(64160),l=t(36335),d=s("toStringTag"),p="IteratorHelper",h="WrapForValidIterator",y=i.set,m=function(E){var I=i.getterFor(E?h:p);return a(e(c),{next:function(){var x=I(this);if(E)return x.nextHandler();try{var b=x.done?void 0:x.nextHandler();return f(b,x.done)}catch(R){throw x.done=!0,R}},return:function(){var A=I(this),x=A.iterator;if(A.done=!0,E){var b=u(x,"return");return b?r(b,x):f(void 0,!0)}if(A.inner)try{l(A.inner.iterator,"normal")}catch(R){return l(x,"throw",R)}return l(x,"normal"),f(void 0,!0)}})},O=m(!0),S=m(!1);n(S,d,"Iterator Helper"),o.exports=function(E,I){var A=function(b,R){R?(R.iterator=b.iterator,R.next=b.next):R=b,R.type=I?h:p,R.nextHandler=E,R.counter=0,R.done=!1,y(this,R)};return A.prototype=I?O:S,A}},57227:function(o,v,t){"use strict";var r=t(92390),e=t(11550),n=t(99),a=t(9656),s=t(55893),i=t(23691),u=t(96900),c=t(71126),f=t(13581),l=t(89251),d=t(67205),p=t(67936),h=t(59921),y=t(4760),m=a.PROPER,O=a.CONFIGURABLE,S=y.IteratorPrototype,E=y.BUGGY_SAFARI_ITERATORS,I=p("iterator"),A="keys",x="values",b="entries",R=function(){return this};o.exports=function(U,C,G,N,J,k,tt){i(G,C,N);var q=function($){if($===J&&P)return P;if(!E&&$&&$ in L)return L[$];switch($){case A:return function(){return new G(this,$)};case x:return function(){return new G(this,$)};case b:return function(){return new G(this,$)}}return function(){return new G(this)}},Q=C+" Iterator",M=!1,L=U.prototype,j=L[I]||L["@@iterator"]||J&&L[J],P=!E&&j||q(J),F=C==="Array"&&L.entries||j,rt,it,V;if(F&&(rt=u(F.call(new U)),rt!==Object.prototype&&rt.next&&(!n&&u(rt)!==S&&(c?c(rt,S):s(rt[I])||d(rt,I,R)),f(rt,Q,!0,!0),n&&(h[Q]=R))),m&&J===x&&j&&j.name!==x&&(!n&&O?l(L,"name",x):(M=!0,P=function(){return e(j,this)})),J)if(it={values:q(x),keys:k?P:q(A),entries:q(b)},tt)for(V in it)(E||M||!(V in L))&&d(L,V,it[V]);else r({target:C,proto:!0,forced:E||M},it);return(!n||tt)&&L[I]!==P&&d(L,I,P,{name:J}),h[C]=P,it}},71732:function(o,v,t){"use strict";var r=t(11550),e=t(65493),n=function(a,s){return[s,a]};o.exports=function(){return r(e,this,n)}},65493:function(o,v,t){"use strict";var r=t(11550),e=t(61575),n=t(99972),a=t(10066),s=t(65299),i=t(30608),u=s(function(){var c=this.iterator,f=n(r(this.next,c)),l=this.done=!!f.done;if(!l)return i(c,this.mapper,[f.value,this.counter++],!0)});o.exports=function(f){return n(this),e(f),new u(a(this),{mapper:f})}},4760:function(o,v,t){"use strict";var r=t(5306),e=t(55893),n=t(15287),a=t(9464),s=t(96900),i=t(67205),u=t(67936),c=t(99),f=u("iterator"),l=!1,d,p,h;[].keys&&(h=[].keys(),"next"in h?(p=s(s(h)),p!==Object.prototype&&(d=p)):l=!0);var y=!n(d)||r(function(){var m={};return d[f].call(m)!==m});y?d={}:c&&(d=a(d)),e(d[f])||i(d,f,function(){return this}),o.exports={IteratorPrototype:d,BUGGY_SAFARI_ITERATORS:l}},59921:function(o){"use strict";o.exports={}},19969:function(o,v,t){"use strict";var r=t(9099);o.exports=function(e){return r(e.length)}},73911:function(o,v,t){"use strict";var r=t(46406),e=t(5306),n=t(55893),a=t(4130),s=t(3877),i=t(9656).CONFIGURABLE,u=t(85088),c=t(9930),f=c.enforce,l=c.get,d=String,p=Object.defineProperty,h=r("".slice),y=r("".replace),m=r([].join),O=s&&!e(function(){return p(function(){},"length",{value:8}).length!==8}),S=String(String).split("String"),E=o.exports=function(I,A,x){h(d(A),0,7)==="Symbol("&&(A="["+y(d(A),/^Symbol\(([^)]*)\)/,"$1")+"]"),x&&x.getter&&(A="get "+A),x&&x.setter&&(A="set "+A),(!a(I,"name")||i&&I.name!==A)&&(s?p(I,"name",{value:A,configurable:!0}):I.name=A),O&&x&&a(x,"arity")&&I.length!==x.arity&&p(I,"length",{value:x.arity});try{x&&a(x,"constructor")&&x.constructor?s&&p(I,"prototype",{writable:!1}):I.prototype&&(I.prototype=void 0)}catch(R){}var b=f(I);return a(b,"source")||(b.source=m(S,typeof A=="string"?A:"")),I};Function.prototype.toString=E(function(){return n(this)&&l(this).source||u(this)},"toString")},63843:function(o,v,t){"use strict";var r=t(46406),e=Map.prototype;o.exports={Map,set:r(e.set),get:r(e.get),has:r(e.has),remove:r(e.delete),proto:e}},54793:function(o,v,t){"use strict";var r=t(46406),e=t(82557),n=t(63843),a=n.Map,s=n.proto,i=r(s.forEach),u=r(s.entries),c=u(new a).next;o.exports=function(f,l,d){return d?e({iterator:u(f),next:c},function(p){return l(p[1],p[0])}):i(f,l)}},40828:function(o,v,t){"use strict";var r=t(11550),e=t(61575),n=t(55893),a=t(99972),s=TypeError;o.exports=function(u,c){var f=a(this),l=e(f.get),d=e(f.has),p=e(f.set),h=arguments.length>2?arguments[2]:void 0,y;if(!n(c)&&!n(h))throw new s("At least one callback required");return r(d,f,u)?(y=r(l,f,u),n(c)&&(y=c(y),r(p,f,u,y))):n(h)&&(y=h(),r(p,f,u,y)),y}},58740:function(o,v,t){"use strict";var r=t(37024),e=.0009765625,n=65504,a=6103515625e-14;o.exports=Math.f16round||function(i){return r(i,e,n,a)}},37024:function(o,v,t){"use strict";var r=t(18349),e=Math.abs,n=2220446049250313e-31,a=1/n,s=function(i){return i+a-a};o.exports=function(i,u,c,f){var l=+i,d=e(l),p=r(l);if(dc||y!==y?p*(1/0):p*y}},92565:function(o,v,t){"use strict";var r=t(37024),e=11920928955078125e-23,n=34028234663852886e22,a=11754943508222875e-54;o.exports=Math.fround||function(i){return r(i,e,n,a)}},96840:function(o){"use strict";o.exports=Math.scale||function(t,r,e,n,a){var s=+t,i=+r,u=+e,c=+n,f=+a;return s!==s||i!==i||u!==u||c!==c||f!==f?NaN:s===1/0||s===-1/0?s:(s-i)*(f-c)/(u-i)+c}},18349:function(o){"use strict";o.exports=Math.sign||function(t){var r=+t;return r===0||r!==r?r:r<0?-1:1}},61402:function(o){"use strict";var v=Math.ceil,t=Math.floor;o.exports=Math.trunc||function(e){var n=+e;return(n>0?t:v)(n)}},14041:function(o,v,t){"use strict";var r=t(5306);o.exports=!r(function(){var e="9007199254740993",n=JSON.rawJSON(e);return!JSON.isRawJSON(n)||JSON.stringify(n)!==e})},77117:function(o,v,t){"use strict";var r=t(61575),e=TypeError,n=function(a){var s,i;this.promise=new a(function(u,c){if(s!==void 0||i!==void 0)throw new e("Bad Promise constructor");s=u,i=c}),this.resolve=r(s),this.reject=r(i)};o.exports.f=function(a){return new n(a)}},93819:function(o,v,t){"use strict";var r=t(42755);o.exports=function(e,n){return e===void 0?arguments.length<2?"":n:r(e)}},48935:function(o){"use strict";var v=RangeError;o.exports=function(t){if(t===t)return t;throw new v("NaN is not allowed")}},73894:function(o,v,t){"use strict";var r=t(77802),e=r.isFinite;o.exports=Number.isFinite||function(a){return typeof a=="number"&&e(a)}},39195:function(o,v,t){"use strict";var r=t(9930),e=t(23691),n=t(64160),a=t(87707),s=t(15287),i=t(15023),u=t(3877),c="Incorrect Iterator.range arguments",f="NumericRangeIterator",l=r.set,d=r.getterFor(f),p=RangeError,h=TypeError,y=e(function(S,E,I,A,x,b){if(typeof S!=A||E!==1/0&&E!==-1/0&&typeof E!=A)throw new h(c);if(S===1/0||S===-1/0)throw new p(c);var R=E>S,U=!1,C;if(I===void 0)C=void 0;else if(s(I))C=I.step,U=!!I.inclusive;else if(typeof I==A)C=I;else throw new h(c);if(a(C)&&(C=R?b:-b),typeof C!=A)throw new h(c);if(C===1/0||C===-1/0||C===x&&S!==E)throw new p(c);var G=S!==S||E!==E||C!==C||E>S!=C>x;l(this,{type:f,start:S,end:E,step:C,inclusive:U,hitsEnd:G,currentCount:x,zero:x}),u||(this.start=S,this.end=E,this.step=C,this.inclusive=U)},f,function(){var S=d(this);if(S.hitsEnd)return n(void 0,!0);var E=S.start,I=S.end,A=S.step,x=E+A*S.currentCount++;x===I&&(S.hitsEnd=!0);var b=S.inclusive,R;return I>E?R=b?x>I:x>=I:R=b?I>x:I>=x,R?(S.hitsEnd=!0,n(void 0,!0)):n(x,!1)}),m=function(O){i(y.prototype,O,{get:function(){return d(this)[O]},set:function(){},configurable:!0,enumerable:!1})};u&&(m("start"),m("end"),m("inclusive"),m("step")),o.exports=y},9464:function(o,v,t){"use strict";var r=t(99972),e=t(33872),n=t(14286),a=t(63421),s=t(12343),i=t(19800),u=t(50139),c=">",f="<",l="prototype",d="script",p=u("IE_PROTO"),h=function(){},y=function(I){return f+d+c+I+f+"/"+d+c},m=function(I){I.write(y("")),I.close();var A=I.parentWindow.Object;return I=null,A},O=function(){var I=i("iframe"),A="java"+d+":",x;return I.style.display="none",s.appendChild(I),I.src=String(A),x=I.contentWindow.document,x.open(),x.write(y("document.F=Object")),x.close(),x.F},S,E=function(){try{S=new ActiveXObject("htmlfile")}catch(A){}E=typeof document!="undefined"?document.domain&&S?m(S):O():m(S);for(var I=n.length;I--;)delete E[l][n[I]];return E()};a[p]=!0,o.exports=Object.create||function(A,x){var b;return A!==null?(h[l]=r(A),b=new h,h[l]=null,b[p]=A):b=E(),x===void 0?b:e.f(b,x)}},33872:function(o,v,t){"use strict";var r=t(3877),e=t(27475),n=t(27144),a=t(99972),s=t(79405),i=t(51008);v.f=r&&!e?Object.defineProperties:function(c,f){a(c);for(var l=s(f),d=i(f),p=d.length,h=0,y;p>h;)n.f(c,y=d[h++],l[y]);return c}},27144:function(o,v,t){"use strict";var r=t(3877),e=t(33075),n=t(27475),a=t(99972),s=t(83662),i=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",l="configurable",d="writable";v.f=r?n?function(h,y,m){if(a(h),y=s(y),a(m),typeof h=="function"&&y==="prototype"&&"value"in m&&d in m&&!m[d]){var O=c(h,y);O&&O[d]&&(h[y]=m.value,m={configurable:l in m?m[l]:O[l],enumerable:f in m?m[f]:O[f],writable:!1})}return u(h,y,m)}:u:function(h,y,m){if(a(h),y=s(y),a(m),e)try{return u(h,y,m)}catch(O){}if("get"in m||"set"in m)throw new i("Accessors not supported");return"value"in m&&(h[y]=m.value),h}},20010:function(o,v,t){"use strict";var r=t(3877),e=t(11550),n=t(71940),a=t(49637),s=t(79405),i=t(83662),u=t(4130),c=t(33075),f=Object.getOwnPropertyDescriptor;v.f=r?f:function(d,p){if(d=s(d),p=i(p),c)try{return f(d,p)}catch(h){}if(u(d,p))return a(!e(n.f,d,p),d[p])}},92348:function(o,v,t){"use strict";var r=t(63048),e=t(79405),n=t(17397).f,a=t(27665),s=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],i=function(u){try{return n(u)}catch(c){return a(s)}};o.exports.f=function(c){return s&&r(c)==="Window"?i(c):n(e(c))}},17397:function(o,v,t){"use strict";var r=t(65079),e=t(14286),n=e.concat("length","prototype");v.f=Object.getOwnPropertyNames||function(s){return r(s,n)}},76855:function(o,v){"use strict";v.f=Object.getOwnPropertySymbols},96900:function(o,v,t){"use strict";var r=t(4130),e=t(55893),n=t(85864),a=t(50139),s=t(29494),i=a("IE_PROTO"),u=Object,c=u.prototype;o.exports=s?u.getPrototypeOf:function(f){var l=n(f);if(r(l,i))return l[i];var d=l.constructor;return e(d)&&l instanceof d?d.prototype:l instanceof u?c:null}},50593:function(o,v,t){"use strict";var r=t(5306),e=t(15287),n=t(63048),a=t(45828),s=Object.isExtensible,i=r(function(){s(1)});o.exports=i||a?function(c){return!e(c)||a&&n(c)==="ArrayBuffer"?!1:s?s(c):!0}:s},2075:function(o,v,t){"use strict";var r=t(46406);o.exports=r({}.isPrototypeOf)},34965:function(o,v,t){"use strict";var r=t(9930),e=t(23691),n=t(64160),a=t(4130),s=t(51008),i=t(85864),u="Object Iterator",c=r.set,f=r.getterFor(u);o.exports=e(function(d,p){var h=i(d);c(this,{type:u,mode:p,object:h,keys:s(h),index:0})},"Object",function(){for(var d=f(this),p=d.keys;;){if(p===null||d.index>=p.length)return d.object=d.keys=null,n(void 0,!0);var h=p[d.index++],y=d.object;if(a(y,h)){switch(d.mode){case"keys":return n(h,!1);case"values":return n(y[h],!1)}return n([h,y[h]],!1)}}})},65079:function(o,v,t){"use strict";var r=t(46406),e=t(4130),n=t(79405),a=t(22971).indexOf,s=t(63421),i=r([].push);o.exports=function(u,c){var f=n(u),l=0,d=[],p;for(p in f)!e(s,p)&&e(f,p)&&i(d,p);for(;c.length>l;)e(f,p=c[l++])&&(~a(d,p)||i(d,p));return d}},51008:function(o,v,t){"use strict";var r=t(65079),e=t(14286);o.exports=Object.keys||function(a){return r(a,e)}},71940:function(o,v){"use strict";var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,e=r&&!t.call({1:2},1);v.f=e?function(a){var s=r(this,a);return!!s&&s.enumerable}:t},71126:function(o,v,t){"use strict";var r=t(28692),e=t(99972),n=t(99272);o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var a=!1,s={},i;try{i=r(Object.prototype,"__proto__","set"),i(s,[]),a=s instanceof Array}catch(u){}return function(c,f){return e(c),n(f),a?i(c,f):c.__proto__=f,c}}():void 0)},51253:function(o,v,t){"use strict";var r=t(11550),e=t(55893),n=t(15287),a=TypeError;o.exports=function(s,i){var u,c;if(i==="string"&&e(u=s.toString)&&!n(c=r(u,s))||e(u=s.valueOf)&&!n(c=r(u,s))||i!=="string"&&e(u=s.toString)&&!n(c=r(u,s)))return c;throw new a("Can't convert object to primitive value")}},6627:function(o,v,t){"use strict";var r=t(51570),e=t(46406),n=t(17397),a=t(76855),s=t(99972),i=e([].concat);o.exports=r("Reflect","ownKeys")||function(c){var f=n.f(s(c)),l=a.f;return l?i(f,l(c)):f}},85718:function(o,v,t){"use strict";var r=t(46406),e=t(4130),n=SyntaxError,a=parseInt,s=String.fromCharCode,i=r("".charAt),u=r("".slice),c=r(/./.exec),f={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":` +`,"\\r":"\r","\\t":" "},l=/^[\da-f]{4}$/i,d=/^[\u0000-\u001F]$/;o.exports=function(p,h){for(var y=!0,m="";hp,O=n(h)?h:c(h),S=m?i(arguments,p):[],E=m?function(){e(O,this,S)}:O;return d?l(E,y):l(E)}:l}},36254:function(o,v,t){"use strict";var r=t(17276),e=t(90051),n=r.Set,a=r.add;o.exports=function(s){var i=new n;return e(s,function(u){a(i,u)}),i}},36594:function(o,v,t){"use strict";var r=t(77085),e=t(17276),n=t(36254),a=t(92509),s=t(30460),i=t(90051),u=t(82557),c=e.has,f=e.remove;o.exports=function(d){var p=r(this),h=s(d),y=n(p);return a(p)<=h.size?i(p,function(m){h.includes(m)&&f(y,m)}):u(h.getIterator(),function(m){c(p,m)&&f(y,m)}),y}},17276:function(o,v,t){"use strict";var r=t(46406),e=Set.prototype;o.exports={Set,add:r(e.add),has:r(e.has),remove:r(e.delete),proto:e}},72698:function(o,v,t){"use strict";var r=t(77085),e=t(17276),n=t(92509),a=t(30460),s=t(90051),i=t(82557),u=e.Set,c=e.add,f=e.has;o.exports=function(d){var p=r(this),h=a(d),y=new u;return n(p)>h.size?i(h.getIterator(),function(m){f(p,m)&&c(y,m)}):s(p,function(m){h.includes(m)&&c(y,m)}),y}},51818:function(o,v,t){"use strict";var r=t(77085),e=t(17276).has,n=t(92509),a=t(30460),s=t(90051),i=t(82557),u=t(36335);o.exports=function(f){var l=r(this),d=a(f);if(n(l)<=d.size)return s(l,function(h){if(d.includes(h))return!1},!0)!==!1;var p=d.getIterator();return i(p,function(h){if(e(l,h))return u(p,"normal",!1)})!==!1}},76153:function(o,v,t){"use strict";var r=t(77085),e=t(92509),n=t(90051),a=t(30460);o.exports=function(i){var u=r(this),c=a(i);return e(u)>c.size?!1:n(u,function(f){if(!c.includes(f))return!1},!0)!==!1}},58816:function(o,v,t){"use strict";var r=t(77085),e=t(17276).has,n=t(92509),a=t(30460),s=t(82557),i=t(36335);o.exports=function(c){var f=r(this),l=a(c);if(n(f)=y?f?"":void 0:(m=i(p,h),m<55296||m>56319||h+1===y||(O=i(p,h+1))<56320||O>57343?f?s(p,h):m:f?u(p,h,h+2):(m-55296<<10)+(O-56320)+65536)}};o.exports={codeAt:c(!1),charAt:c(!0)}},5340:function(o,v,t){"use strict";var r=t(51570),e=t(46406),n=String.fromCharCode,a=r("String","fromCodePoint"),s=e("".charAt),i=e("".charCodeAt),u=e("".indexOf),c=e("".slice),f=48,l=57,d=97,p=102,h=65,y=70,m=function(E,I){var A=i(E,I);return A>=f&&A<=l},O=function(E,I,A){if(A>=E.length)return-1;for(var x=0;I=f&&E<=l?E-f:E>=d&&E<=p?E-d+10:E>=h&&E<=y?E-h+10:-1};o.exports=function(E){for(var I="",A=0,x=0,b;(x=u(E,"\\",x))>-1;){if(I+=c(E,A,x),++x===E.length)return;var R=s(E,x++);switch(R){case"b":I+="\b";break;case"t":I+=" ";break;case"n":I+=` +`;break;case"v":I+="\v";break;case"f":I+="\f";break;case"r":I+="\r";break;case"\r":x1114111)return;I+=a(b);break;default:if(m(R,0))return;I+=R}A=x}return I+c(E,A)}},84758:function(o,v,t){"use strict";var r=t(77802),e=t(5306),n=t(7245),a=t(1405),s=t(83279),i=t(16576),u=r.structuredClone;o.exports=!!u&&!e(function(){if(s&&n>92||i&&n>94||a&&n>97)return!1;var c=new ArrayBuffer(8),f=u(c,{transfer:[c]});return c.byteLength!==0||f.byteLength!==8})},34053:function(o,v,t){"use strict";var r=t(7245),e=t(5306),n=t(77802),a=n.String;o.exports=!!Object.getOwnPropertySymbols&&!e(function(){var s=Symbol("symbol detection");return!a(s)||!(Object(s)instanceof Symbol)||!Symbol.sham&&r&&r<41})},15160:function(o,v,t){"use strict";var r=t(51570),e=t(46406),n=r("Symbol"),a=n.keyFor,s=e(n.prototype.valueOf);o.exports=n.isRegisteredSymbol||function(u){try{return a(s(u))!==void 0}catch(c){return!1}}},5243:function(o,v,t){"use strict";for(var r=t(19231),e=t(51570),n=t(46406),a=t(103),s=t(67936),i=e("Symbol"),u=i.isWellKnownSymbol,c=e("Object","getOwnPropertyNames"),f=n(i.prototype.valueOf),l=r("wks"),d=0,p=c(i),h=p.length;d0?e(r(n),9007199254740991):0}},85864:function(o,v,t){"use strict";var r=t(46762),e=Object;o.exports=function(n){return e(r(n))}},34404:function(o,v,t){"use strict";var r=t(82407),e=RangeError;o.exports=function(n,a){var s=r(n);if(s%a)throw new e("Wrong offset");return s}},82407:function(o,v,t){"use strict";var r=t(15930),e=RangeError;o.exports=function(n){var a=r(n);if(a<0)throw new e("The argument can't be less than 0");return a}},46090:function(o,v,t){"use strict";var r=t(11550),e=t(15287),n=t(103),a=t(56628),s=t(51253),i=t(67936),u=TypeError,c=i("toPrimitive");o.exports=function(f,l){if(!e(f)||n(f))return f;var d=a(f,c),p;if(d){if(l===void 0&&(l="default"),p=r(d,f,l),!e(p)||n(p))return p;throw new u("Can't convert object to primitive value")}return l===void 0&&(l="number"),s(f,l)}},83662:function(o,v,t){"use strict";var r=t(46090),e=t(103);o.exports=function(n){var a=r(n,"string");return e(a)?a:a+""}},60126:function(o,v,t){"use strict";var r=t(51570),e=t(55893),n=t(47456),a=t(15287),s=r("Set"),i=function(u){return a(u)&&typeof u.size=="number"&&e(u.has)&&e(u.keys)};o.exports=function(u){return i(u)?u:n(u)?new s(u):u}},46623:function(o,v,t){"use strict";var r=t(67936),e=r("toStringTag"),n={};n[e]="z",o.exports=String(n)==="[object z]"},42755:function(o,v,t){"use strict";var r=t(85683),e=String;o.exports=function(n){if(r(n)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(n)}},20473:function(o){"use strict";var v=Math.round;o.exports=function(t){var r=v(t);return r<0?0:r>255?255:r&255}},9571:function(o,v,t){"use strict";var r=t(16576);o.exports=function(e){try{if(r)return Function('return require("'+e+'")')()}catch(n){}}},85545:function(o){"use strict";var v=String;o.exports=function(t){try{return v(t)}catch(r){return"Object"}}},3884:function(o,v,t){"use strict";var r=t(61837),e=t(37149);o.exports=function(n,a){return r(e(n),a)}},37149:function(o,v,t){"use strict";var r=t(70562),e=t(16759),n=r.aTypedArrayConstructor,a=r.getTypedArrayConstructor;o.exports=function(s){return n(e(s,a(s)))}},46350:function(o,v,t){"use strict";var r=t(46406),e=0,n=Math.random(),a=r(1 .toString);o.exports=function(s){return"Symbol("+(s===void 0?"":s)+")_"+a(++e+n,36)}},40506:function(o,v,t){"use strict";var r=t(5306),e=t(67936),n=t(3877),a=t(99),s=e("iterator");o.exports=!r(function(){var i=new URL("b?a=1&b=2&c=3","http://a"),u=i.searchParams,c=new URLSearchParams("a=1&a=2&b=3"),f="";return i.pathname="c%20d",u.forEach(function(l,d){u.delete("b"),f+=d+l}),c.delete("a",2),c.delete("b",void 0),a&&(!i.toJSON||!c.has("a",1)||c.has("a",2)||!c.has("a",void 0)||c.has("b"))||!u.size&&(a||!n)||!u.sort||i.href!=="http://a/c%20d?a=1&c=3"||u.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!u[s]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||f!=="a1c3"||new URL("http://x",void 0).host!=="x"})},90345:function(o,v,t){"use strict";var r=t(34053);o.exports=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},27475:function(o,v,t){"use strict";var r=t(3877),e=t(5306);o.exports=r&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},7443:function(o){"use strict";var v=TypeError;o.exports=function(t,r){if(tI&&l(k,arguments[I]),k});if(C.prototype=R,x!=="Error"?s?s(C,U):i(C,U,{name:!0}):p&&E in b&&(u(C,b,E),u(C,b,"prepareStackTrace")),i(C,b),!h)try{R.name!==x&&n(R,"name",x),R.constructor=C}catch(G){}return C}}},54643:function(o,v,t){"use strict";var r=t(92390),e=t(51570),n=t(56415),a=t(5306),s=t(35357),i="AggregateError",u=e(i),c=!a(function(){return u([1]).errors[0]!==1})&&a(function(){return u([1],i,{cause:7}).cause!==7});r({global:!0,constructor:!0,arity:2,forced:c},{AggregateError:s(i,function(f){return function(d,p){return n(f,this,arguments)}},c,!0)})},56718:function(o,v,t){"use strict";var r=t(92390),e=t(2075),n=t(96900),a=t(71126),s=t(30779),i=t(9464),u=t(89251),c=t(49637),f=t(71281),l=t(83452),d=t(82003),p=t(93819),h=t(67936),y=h("toStringTag"),m=Error,O=[].push,S=function(A,x){var b=e(E,this),R;a?R=a(new m,b?n(this):E):(R=b?this:i(E),u(R,y,"Error")),x!==void 0&&u(R,"message",p(x)),l(R,S,R.stack,1),arguments.length>2&&f(R,arguments[2]);var U=[];return d(A,O,{that:U}),u(R,"errors",U),R};a?a(S,m):s(S,m,{name:!0});var E=S.prototype=i(m.prototype,{constructor:c(1,S),message:c(1,""),name:c(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:S})},60314:function(o,v,t){"use strict";t(56718)},51344:function(o,v,t){"use strict";var r=t(92390),e=t(85864),n=t(19969),a=t(15930),s=t(49408);r({target:"Array",proto:!0},{at:function(u){var c=e(this),f=n(c),l=a(u),d=l>=0?l:f+l;return d<0||d>=f?void 0:c[d]}}),s("at")},15342:function(o,v,t){"use strict";var r=t(92390),e=t(88877).findLastIndex,n=t(49408);r({target:"Array",proto:!0},{findLastIndex:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),n("findLastIndex")},91109:function(o,v,t){"use strict";var r=t(92390),e=t(88877).findLast,n=t(49408);r({target:"Array",proto:!0},{findLast:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),n("findLast")},63517:function(o,v,t){"use strict";var r=t(92390),e=t(85864),n=t(19969),a=t(58576),s=t(59060),i=t(5306),u=i(function(){return[].push.call({length:4294967296},1)!==4294967297}),c=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(l){return l instanceof TypeError}},f=u||!c();r({target:"Array",proto:!0,arity:1,forced:f},{push:function(d){var p=e(this),h=n(p),y=arguments.length;s(h+y);for(var m=0;m79&&a<83,u=i||!n("reduceRight");r({target:"Array",proto:!0,forced:u},{reduceRight:function(f){return e(this,f,arguments.length,arguments.length>1?arguments[1]:void 0)}})},92815:function(o,v,t){"use strict";var r=t(92390),e=t(9813).left,n=t(40519),a=t(7245),s=t(16576),i=!s&&a>79&&a<83,u=i||!n("reduce");r({target:"Array",proto:!0,forced:u},{reduce:function(f){var l=arguments.length;return e(this,f,l,l>1?arguments[1]:void 0)}})},33118:function(o,v,t){"use strict";var r=t(92390),e=t(96519),n=t(79405),a=t(49408),s=Array;r({target:"Array",proto:!0},{toReversed:function(){return e(n(this),s)}}),a("toReversed")},59340:function(o,v,t){"use strict";var r=t(92390),e=t(46406),n=t(61575),a=t(79405),s=t(61837),i=t(79853),u=t(49408),c=Array,f=e(i("Array","sort"));r({target:"Array",proto:!0},{toSorted:function(d){d!==void 0&&n(d);var p=a(this),h=s(c,p);return f(h,d)}}),u("toSorted")},70891:function(o,v,t){"use strict";var r=t(92390),e=t(49408),n=t(59060),a=t(19969),s=t(29961),i=t(79405),u=t(15930),c=Array,f=Math.max,l=Math.min;r({target:"Array",proto:!0},{toSpliced:function(p,h){var y=i(this),m=a(y),O=s(p,m),S=arguments.length,E=0,I,A,x,b;for(S===0?I=A=0:S===1?(I=0,A=m-O):(I=S-2,A=l(f(u(h),0),m-O)),x=n(m+I-A),b=c(x);E=0?h:p+h;return y<0||y>=p?void 0:u(d,y)}})},93824:function(o,v,t){"use strict";var r=t(92390),e=t(46406),n=t(46762),a=t(42755),s=e("".charCodeAt);r({target:"String",proto:!0},{isWellFormed:function(){for(var u=a(n(this)),c=u.length,f=0;f=56320||++f>=c||(s(u,f)&64512)!==56320))return!1}return!0}})},25037:function(o,v,t){"use strict";var r=t(92390),e=t(11550),n=t(46406),a=t(46762),s=t(55893),i=t(87707),u=t(18210),c=t(42755),f=t(56628),l=t(78163),d=t(55338),p=t(67936),h=t(99),y=p("replace"),m=TypeError,O=n("".indexOf),S=n("".replace),E=n("".slice),I=Math.max,A=function(x,b,R){return R>x.length?-1:b===""?R:O(x,b,R)};r({target:"String",proto:!0},{replaceAll:function(b,R){var U=a(this),C,G,N,J,k,tt,q,Q,M,L=0,j=0,P="";if(!i(b)){if(C=u(b),C&&(G=c(a(l(b))),!~O(G,"g")))throw new m("`.replaceAll` does not allow non-global regexes");if(N=f(b,y),N)return e(N,b,U,R);if(h&&C)return S(c(U),b,R)}for(J=c(U),k=c(b),tt=s(R),tt||(R=c(R)),q=k.length,Q=I(1,q),L=A(J,k,0);L!==-1;)M=tt?c(R(k,L,J)):d(k,J,L,[],void 0,R),P+=E(J,j,L)+M,j=L+q,L=A(J,k,L+Q);return j=56320||E+1>=O||(f(m,E+1)&64512)!==56320?S[E]=p:(S[E]=c(m,E),S[++E]=c(m,E))}return l(S,"")}})},50534:function(o,v,t){"use strict";var r=t(70562),e=t(19969),n=t(15930),a=r.aTypedArray,s=r.exportTypedArrayMethod;s("at",function(u){var c=a(this),f=e(c),l=n(u),d=l>=0?l:f+l;return d<0||d>=f?void 0:c[d]})},72827:function(o,v,t){"use strict";var r=t(70562),e=t(88877).findLastIndex,n=r.aTypedArray,a=r.exportTypedArrayMethod;a("findLastIndex",function(i){return e(n(this),i,arguments.length>1?arguments[1]:void 0)})},24761:function(o,v,t){"use strict";var r=t(70562),e=t(88877).findLast,n=r.aTypedArray,a=r.exportTypedArrayMethod;a("findLast",function(i){return e(n(this),i,arguments.length>1?arguments[1]:void 0)})},24496:function(o,v,t){"use strict";var r=t(77802),e=t(11550),n=t(70562),a=t(19969),s=t(34404),i=t(85864),u=t(5306),c=r.RangeError,f=r.Int8Array,l=f&&f.prototype,d=l&&l.set,p=n.aTypedArray,h=n.exportTypedArrayMethod,y=!u(function(){var O=new Uint8ClampedArray(2);return e(d,O,{length:1,0:3},1),O[1]!==3}),m=y&&n.NATIVE_ARRAY_BUFFER_VIEWS&&u(function(){var O=new f(2);return O.set(1),O.set("2",1),O[0]!==0||O[1]!==2});h("set",function(S){p(this);var E=s(arguments.length>1?arguments[1]:void 0,1),I=i(S);if(y)return e(d,this,I,E);var A=this.length,x=a(I),b=0;if(x+E>A)throw new c("Wrong length");for(;b1?arguments[1]:void 0)}}),n("filterOut")},63208:function(o,v,t){"use strict";var r=t(92390),e=t(96767).filterReject,n=t(49408);r({target:"Array",proto:!0,forced:!0},{filterReject:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),n("filterReject")},91246:function(o,v,t){"use strict";var r=t(92390),e=t(62170);r({target:"Array",stat:!0},{fromAsync:e})},80214:function(o,v,t){"use strict";var r=t(92390),e=t(40519),n=t(49408),a=t(28111),s=t(99);r({target:"Array",proto:!0,name:"groupToMap",forced:s||!e("groupByToMap")},{groupByToMap:a}),n("groupByToMap")},52912:function(o,v,t){"use strict";var r=t(92390),e=t(87624),n=t(40519),a=t(49408);r({target:"Array",proto:!0,forced:!n("groupBy")},{groupBy:function(i){var u=arguments.length>1?arguments[1]:void 0;return e(this,i,u)}}),a("groupBy")},41425:function(o,v,t){"use strict";var r=t(92390),e=t(49408),n=t(28111),a=t(99);r({target:"Array",proto:!0,forced:a},{groupToMap:n}),e("groupToMap")},61449:function(o,v,t){"use strict";var r=t(92390),e=t(87624),n=t(49408);r({target:"Array",proto:!0},{group:function(s){var i=arguments.length>1?arguments[1]:void 0;return e(this,s,i)}}),n("group")},89175:function(o,v,t){"use strict";var r=t(92390),e=t(65289),n=Object.isFrozen,a=function(s,i){if(!n||!e(s)||!n(s))return!1;for(var u=0,c=s.length,f;u1?arguments[1]:!1);return n([u&255,u>>8&255],10)}})},95770:function(o,v,t){"use strict";var r=t(92390),e=t(46406),n=e(DataView.prototype.getUint8);r({target:"DataView",proto:!0,forced:!0},{getUint8Clamped:function(s){return n(this,s)}})},79531:function(o,v,t){"use strict";var r=t(92390),e=t(46406),n=t(85683),a=t(85947),s=t(26157).pack,i=t(58740),u=TypeError,c=e(DataView.prototype.setUint16);r({target:"DataView",proto:!0},{setFloat16:function(l,d){if(n(this)!=="DataView")throw new u("Incorrect receiver");var p=a(l),h=s(i(d),10,2);return c(this,p,h[1]<<8|h[0],arguments.length>2?arguments[2]:!1)}})},23329:function(o,v,t){"use strict";var r=t(92390),e=t(46406),n=t(85683),a=t(85947),s=t(20473),i=TypeError,u=e(DataView.prototype.setUint8);r({target:"DataView",proto:!0,forced:!0},{setUint8Clamped:function(f,l){if(n(this)!=="DataView")throw new i("Incorrect receiver");var d=a(f);return u(this,d,s(l))}})},51798:function(o,v,t){"use strict";var r=t(92390),e=t(3877),n=t(51570),a=t(61575),s=t(49064),i=t(67205),u=t(89990),c=t(15023),f=t(67936),l=t(9930),d=t(30215),p=n("SuppressedError"),h=ReferenceError,y=f("dispose"),m=f("toStringTag"),O="DisposableStack",S=l.set,E=l.getterFor(O),I="sync-dispose",A="disposed",x="pending",b=function(C){var G=E(C);if(G.state===A)throw new h(O+" already disposed");return G},R=function(){S(s(this,U),{type:O,state:x,stack:[]}),e||(this.disposed=!1)},U=R.prototype;u(U,{dispose:function(){var G=E(this);if(G.state!==A){G.state=A,e||(this.disposed=!0);for(var N=G.stack,J=N.length,k=!1,tt;J;){var q=N[--J];N[J]=null;try{q()}catch(Q){k?tt=new p(Q,tt):(k=!0,tt=Q)}}if(G.stack=null,k)throw tt}},use:function(G){return d(b(this),G,I),G},adopt:function(G,N){var J=b(this);return a(N),d(J,void 0,I,function(){N(G)}),G},defer:function(G){var N=b(this);a(G),d(N,void 0,I,G)},move:function(){var G=b(this),N=new R;return E(N).stack=G.stack,G.stack=[],G.state=A,e||(this.disposed=!0),N}}),e&&c(U,"disposed",{configurable:!0,get:function(){return E(this).state===A}}),i(U,y,U.dispose,{name:"dispose"}),i(U,m,O,{nonWritable:!0}),r({global:!0,constructor:!0},{DisposableStack:R})},68663:function(o,v,t){"use strict";var r=t(92390),e=t(16158);r({target:"Function",proto:!0,forced:!0},{demethodize:e})},29505:function(o,v,t){"use strict";var r=t(92390),e=t(46406),n=t(55893),a=t(85088),s=t(4130),i=t(3877),u=Object.getOwnPropertyDescriptor,c=/^\s*class\b/,f=e(c.exec),l=function(d){try{if(!i||!f(c,a(d)))return!1}catch(h){}var p=u(d,"prototype");return!!p&&s(p,"writable")&&!p.writable};r({target:"Function",stat:!0,sham:!0,forced:!0},{isCallable:function(p){return n(p)&&!l(p)}})},32787:function(o,v,t){"use strict";var r=t(92390),e=t(25434);r({target:"Function",stat:!0,forced:!0},{isConstructor:e})},94583:function(o,v,t){"use strict";var r=t(67936),e=t(27144).f,n=r("metadata"),a=Function.prototype;a[n]===void 0&&e(a,n,{value:null})},89508:function(o,v,t){"use strict";var r=t(92390),e=t(16158);r({target:"Function",proto:!0,forced:!0,name:"demethodize"},{unThis:e})},385:function(o,v,t){"use strict";var r=t(92390),e=t(71732);r({target:"Iterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:e})},74413:function(o,v,t){"use strict";var r=t(92390),e=t(77802),n=t(49064),a=t(99972),s=t(55893),i=t(96900),u=t(15023),c=t(76968),f=t(5306),l=t(4130),d=t(67936),p=t(4760).IteratorPrototype,h=t(3877),y=t(99),m="constructor",O="Iterator",S=d("toStringTag"),E=TypeError,I=e[O],A=y||!s(I)||I.prototype!==p||!f(function(){I({})}),x=function(){if(n(this,p),i(this)===p)throw new E("Abstract class Iterator not directly constructable")},b=function(R,U){h?u(p,R,{configurable:!0,get:function(){return U},set:function(C){if(a(this),this===p)throw new E("You can't redefine this property");l(this,R)?this[R]=C:c(this,R,C)}}):p[R]=U};l(p,S)||b(S,O),(A||!l(p,m)||p[m]===Object)&&b(m,x),x.prototype=p,r({global:!0,constructor:!0,forced:A},{Iterator:x})},21848:function(o,v,t){"use strict";var r=t(11550),e=t(67205),n=t(56628),a=t(4130),s=t(67936),i=t(4760).IteratorPrototype,u=s("dispose");a(i,u)||e(i,u,function(){var c=n(this,"return");c&&r(c,this)})},65618:function(o,v,t){"use strict";var r=t(92390),e=t(11550),n=t(99972),a=t(10066),s=t(48935),i=t(82407),u=t(65299),c=t(99),f=u(function(){for(var l=this.iterator,d=this.next,p,h;this.remaining;)if(this.remaining--,p=n(e(d,l)),h=this.done=!!p.done,h)return;if(p=n(e(d,l)),h=this.done=!!p.done,!h)return p.value});r({target:"Iterator",proto:!0,real:!0,forced:c},{drop:function(d){n(this);var p=i(s(+d));return new f(a(this),{remaining:p})}})},92243:function(o,v,t){"use strict";var r=t(92390),e=t(82003),n=t(61575),a=t(99972),s=t(10066);r({target:"Iterator",proto:!0,real:!0},{every:function(u){a(this),n(u);var c=s(this),f=0;return!e(c,function(l,d){if(!u(l,f++))return d()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},62285:function(o,v,t){"use strict";var r=t(92390),e=t(11550),n=t(61575),a=t(99972),s=t(10066),i=t(65299),u=t(30608),c=t(99),f=i(function(){for(var l=this.iterator,d=this.predicate,p=this.next,h,y,m;;){if(h=a(e(p,l)),y=this.done=!!h.done,y)return;if(m=h.value,u(l,d,[m,this.counter++],!0))return m}});r({target:"Iterator",proto:!0,real:!0,forced:c},{filter:function(d){return a(this),n(d),new f(s(this),{predicate:d})}})},69108:function(o,v,t){"use strict";var r=t(92390),e=t(82003),n=t(61575),a=t(99972),s=t(10066);r({target:"Iterator",proto:!0,real:!0},{find:function(u){a(this),n(u);var c=s(this),f=0;return e(c,function(l,d){if(u(l,f++))return d(l)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},59889:function(o,v,t){"use strict";var r=t(92390),e=t(11550),n=t(61575),a=t(99972),s=t(10066),i=t(39832),u=t(65299),c=t(36335),f=t(99),l=u(function(){for(var d=this.iterator,p=this.mapper,h,y;;){if(y=this.inner)try{if(h=a(e(y.next,y.iterator)),!h.done)return h.value;this.inner=null}catch(m){c(d,"throw",m)}if(h=a(e(this.next,d)),this.done=!!h.done)return;try{this.inner=i(p(h.value,this.counter++),!1)}catch(m){c(d,"throw",m)}}});r({target:"Iterator",proto:!0,real:!0,forced:f},{flatMap:function(p){return a(this),n(p),new l(s(this),{mapper:p,inner:null})}})},20779:function(o,v,t){"use strict";var r=t(92390),e=t(82003),n=t(61575),a=t(99972),s=t(10066);r({target:"Iterator",proto:!0,real:!0},{forEach:function(u){a(this),n(u);var c=s(this),f=0;e(c,function(l){u(l,f++)},{IS_RECORD:!0})}})},92364:function(o,v,t){"use strict";var r=t(92390),e=t(11550),n=t(85864),a=t(2075),s=t(4760).IteratorPrototype,i=t(65299),u=t(39832),c=t(99),f=i(function(){return e(this.next,this.iterator)},!0);r({target:"Iterator",stat:!0,forced:c},{from:function(d){var p=u(typeof d=="string"?n(d):d,!0);return a(s,p.iterator)?p.iterator:new f(p)}})},3230:function(o,v,t){"use strict";var r=t(92390),e=t(71732);r({target:"Iterator",proto:!0,real:!0,forced:!0},{indexed:e})},57637:function(o,v,t){"use strict";var r=t(92390),e=t(65493),n=t(99);r({target:"Iterator",proto:!0,real:!0,forced:n},{map:e})},47425:function(o,v,t){"use strict";var r=t(92390),e=t(39195),n=TypeError;r({target:"Iterator",stat:!0,forced:!0},{range:function(s,i,u){if(typeof s=="number")return new e(s,i,u,"number",0,1);if(typeof s=="bigint")return new e(s,i,u,"bigint",BigInt(0),BigInt(1));throw new n("Incorrect Iterator.range arguments")}})},98704:function(o,v,t){"use strict";var r=t(92390),e=t(82003),n=t(61575),a=t(99972),s=t(10066),i=TypeError;r({target:"Iterator",proto:!0,real:!0},{reduce:function(c){a(this),n(c);var f=s(this),l=arguments.length<2,d=l?void 0:arguments[1],p=0;if(e(f,function(h){l?(l=!1,d=h):d=c(d,h,p),p++},{IS_RECORD:!0}),l)throw new i("Reduce of empty iterator with no initial value");return d}})},67551:function(o,v,t){"use strict";var r=t(92390),e=t(82003),n=t(61575),a=t(99972),s=t(10066);r({target:"Iterator",proto:!0,real:!0},{some:function(u){a(this),n(u);var c=s(this),f=0;return e(c,function(l,d){if(u(l,f++))return d()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},84846:function(o,v,t){"use strict";var r=t(92390),e=t(11550),n=t(99972),a=t(10066),s=t(48935),i=t(82407),u=t(65299),c=t(36335),f=t(99),l=u(function(){var d=this.iterator;if(!this.remaining--)return this.done=!0,c(d,"normal",void 0);var p=n(e(this.next,d)),h=this.done=!!p.done;if(!h)return p.value});r({target:"Iterator",proto:!0,real:!0,forced:f},{take:function(p){n(this);var h=i(s(+p));return new l(a(this),{remaining:h})}})},8505:function(o,v,t){"use strict";var r=t(92390),e=t(99972),n=t(82003),a=t(10066),s=[].push;r({target:"Iterator",proto:!0,real:!0},{toArray:function(){var u=[];return n(a(e(this)),s,{that:u,IS_RECORD:!0}),u}})},931:function(o,v,t){"use strict";var r=t(92390),e=t(99972),n=t(12232),a=t(84004),s=t(10066),i=t(99);r({target:"Iterator",proto:!0,real:!0,forced:i},{toAsync:function(){return new a(s(new n(s(e(this)))))}})},25794:function(o,v,t){"use strict";var r=t(92390),e=t(14041),n=t(85956);r({target:"JSON",stat:!0,forced:!e},{isRawJSON:n})},63115:function(o,v,t){"use strict";var r=t(92390),e=t(3877),n=t(77802),a=t(51570),s=t(46406),i=t(11550),u=t(55893),c=t(15287),f=t(65289),l=t(4130),d=t(42755),p=t(19969),h=t(76968),y=t(5306),m=t(85718),O=t(34053),S=n.JSON,E=n.Number,I=n.SyntaxError,A=S&&S.parse,x=a("Object","keys"),b=Object.getOwnPropertyDescriptor,R=s("".charAt),U=s("".slice),C=s(/./.exec),G=s([].push),N=/^\d$/,J=/^[1-9]$/,k=/^(?:-|\d)$/,tt=/^[\t\n\r ]$/,q=0,Q=1,M=function(V,$){V=d(V);var H=new F(V,0,""),nt=H.parse(),yt=nt.value,vt=H.skip(tt,nt.end);if(vt1?arguments[1]:void 0);return a(u,function(f,l){if(!c(f,l,u))return!1},!0)!==!1}})},41698:function(o,v,t){"use strict";var r=t(92390),e=t(45898),n=t(26188),a=t(63843),s=t(54793),i=a.Map,u=a.set;r({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(f){var l=n(this),d=e(f,arguments.length>1?arguments[1]:void 0),p=new i;return s(l,function(h,y){d(h,y,l)&&u(p,y,h)}),p}})},90216:function(o,v,t){"use strict";var r=t(92390),e=t(45898),n=t(26188),a=t(54793);r({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(i){var u=n(this),c=e(i,arguments.length>1?arguments[1]:void 0),f=a(u,function(l,d){if(c(l,d,u))return{key:d}},!0);return f&&f.key}})},55294:function(o,v,t){"use strict";var r=t(92390),e=t(45898),n=t(26188),a=t(54793);r({target:"Map",proto:!0,real:!0,forced:!0},{find:function(i){var u=n(this),c=e(i,arguments.length>1?arguments[1]:void 0),f=a(u,function(l,d){if(c(l,d,u))return{value:l}},!0);return f&&f.value}})},57212:function(o,v,t){"use strict";var r=t(92390),e=t(54892);r({target:"Map",stat:!0,forced:!0},{from:e})},76999:function(o,v,t){"use strict";var r=t(92390),e=t(29915),n=t(26188),a=t(54793);r({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(i){return a(n(this),function(u){if(e(u,i))return!0},!0)===!0}})},89337:function(o,v,t){"use strict";var r=t(92390),e=t(11550),n=t(82003),a=t(55893),s=t(61575),i=t(63843).Map;r({target:"Map",stat:!0,forced:!0},{keyBy:function(c,f){var l=a(this)?this:i,d=new l;s(f);var p=s(d.set);return n(c,function(h){e(p,d,f(h),h)}),d}})},91067:function(o,v,t){"use strict";var r=t(92390),e=t(26188),n=t(54793);r({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(s){var i=n(e(this),function(u,c){if(u===s)return{key:c}},!0);return i&&i.key}})},2126:function(o,v,t){"use strict";var r=t(92390),e=t(45898),n=t(26188),a=t(63843),s=t(54793),i=a.Map,u=a.set;r({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(f){var l=n(this),d=e(f,arguments.length>1?arguments[1]:void 0),p=new i;return s(l,function(h,y){u(p,d(h,y,l),h)}),p}})},18924:function(o,v,t){"use strict";var r=t(92390),e=t(45898),n=t(26188),a=t(63843),s=t(54793),i=a.Map,u=a.set;r({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(f){var l=n(this),d=e(f,arguments.length>1?arguments[1]:void 0),p=new i;return s(l,function(h,y){u(p,y,d(h,y,l))}),p}})},67699:function(o,v,t){"use strict";var r=t(92390),e=t(26188),n=t(82003),a=t(63843).set;r({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(i){for(var u=e(this),c=arguments.length,f=0;f1?arguments[1]:void 0);return a(u,function(f,l){if(c(f,l,u))return!0},!0)===!0}})},79890:function(o,v,t){"use strict";var r=t(92390),e=t(40828);r({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:e})},99830:function(o,v,t){"use strict";var r=t(92390),e=t(61575),n=t(26188),a=t(63843),s=TypeError,i=a.get,u=a.has,c=a.set;r({target:"Map",proto:!0,real:!0,forced:!0},{update:function(l,d){var p=n(this),h=arguments.length;e(d);var y=u(p,l);if(!y&&h<3)throw new s("Updating absent value");var m=y?i(p,l):e(h>2?arguments[2]:void 0)(l,p);return c(p,l,d(m,l,p)),p}})},36509:function(o,v,t){"use strict";var r=t(92390),e=t(40828);r({target:"Map",proto:!0,real:!0,forced:!0},{upsert:e})},85677:function(o,v,t){"use strict";var r=t(92390),e=Math.min,n=Math.max;r({target:"Math",stat:!0,forced:!0},{clamp:function(s,i,u){return e(u,n(i,s))}})},75873:function(o,v,t){"use strict";var r=t(92390);r({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180})},44885:function(o,v,t){"use strict";var r=t(92390),e=180/Math.PI;r({target:"Math",stat:!0,forced:!0},{degrees:function(a){return a*e}})},61739:function(o,v,t){"use strict";var r=t(92390),e=t(58740);r({target:"Math",stat:!0},{f16round:e})},35339:function(o,v,t){"use strict";var r=t(92390),e=t(96840),n=t(92565);r({target:"Math",stat:!0,forced:!0},{fscale:function(s,i,u,c,f){return n(e(s,i,u,c,f))}})},97397:function(o,v,t){"use strict";var r=t(92390);r({target:"Math",stat:!0,forced:!0},{iaddh:function(n,a,s,i){var u=n>>>0,c=a>>>0,f=s>>>0;return c+(i>>>0)+((u&f|(u|f)&~(u+f>>>0))>>>31)|0}})},12299:function(o,v,t){"use strict";var r=t(92390);r({target:"Math",stat:!0,forced:!0},{imulh:function(n,a){var s=65535,i=+n,u=+a,c=i&s,f=u&s,l=i>>16,d=u>>16,p=(l*f>>>0)+(c*f>>>16);return l*d+(p>>16)+((c*d>>>0)+(p&s)>>16)}})},88303:function(o,v,t){"use strict";var r=t(92390);r({target:"Math",stat:!0,forced:!0},{isubh:function(n,a,s,i){var u=n>>>0,c=a>>>0,f=s>>>0;return c-(i>>>0)-((~u&f|~(u^f)&u-f>>>0)>>>31)|0}})},85446:function(o,v,t){"use strict";var r=t(92390);r({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI})},37409:function(o,v,t){"use strict";var r=t(92390),e=Math.PI/180;r({target:"Math",stat:!0,forced:!0},{radians:function(a){return a*e}})},33266:function(o,v,t){"use strict";var r=t(92390),e=t(96840);r({target:"Math",stat:!0,forced:!0},{scale:e})},20220:function(o,v,t){"use strict";var r=t(92390),e=t(99972),n=t(73894),a=t(23691),s=t(64160),i=t(9930),u="Seeded Random",c=u+" Generator",f='Math.seededPRNG() argument should have a "seed" field with a finite value.',l=i.set,d=i.getterFor(c),p=TypeError,h=a(function(m){l(this,{type:c,seed:m%2147483647})},u,function(){var m=d(this),O=m.seed=(m.seed*1103515245+12345)%2147483647;return s((O&1073741823)/1073741823,!1)});r({target:"Math",stat:!0,forced:!0},{seededPRNG:function(m){var O=e(m).seed;if(!n(O))throw new p(f);return new h(O)}})},59929:function(o,v,t){"use strict";var r=t(92390);r({target:"Math",stat:!0,forced:!0},{signbit:function(n){var a=+n;return a===a&&a===0?1/a===-1/0:a<0}})},12247:function(o,v,t){"use strict";var r=t(92390);r({target:"Math",stat:!0,forced:!0},{umulh:function(n,a){var s=65535,i=+n,u=+a,c=i&s,f=u&s,l=i>>>16,d=u>>>16,p=(l*f>>>0)+(c*f>>>16);return l*d+(p>>>16)+((c*d>>>0)+(p&s)>>>16)}})},25388:function(o,v,t){"use strict";var r=t(92390),e=t(46406),n=t(15930),a="Invalid number representation",s="Invalid radix",i=RangeError,u=SyntaxError,c=TypeError,f=parseInt,l=Math.pow,d=/^[\d.a-z]+$/,p=e("".charAt),h=e(d.exec),y=e(1 .toString),m=e("".slice),O=e("".split);r({target:"Number",stat:!0,forced:!0},{fromString:function(E,I){var A=1;if(typeof E!="string")throw new c(a);if(!E.length)throw new u(a);if(p(E,0)==="-"&&(A=-1,E=m(E,1),!E.length))throw new u(a);var x=I===void 0?10:n(I);if(x<2||x>36)throw new i(s);if(!h(d,E))throw new u(a);var b=O(E,"."),R=f(b[0],x);if(b.length>1&&(R+=f(b[1],x)/l(x,b[1].length)),x===10&&y(R,x)!==E)throw new u(a);return A*R}})},49021:function(o,v,t){"use strict";var r=t(92390),e=t(39195);r({target:"Number",stat:!0,forced:!0},{range:function(a,s,i){return new e(a,s,i,"number",0,1)}})},39227:function(o,v,t){"use strict";var r=t(92390),e=t(34965);r({target:"Object",stat:!0,forced:!0},{iterateEntries:function(a){return new e(a,"entries")}})},13199:function(o,v,t){"use strict";var r=t(92390),e=t(34965);r({target:"Object",stat:!0,forced:!0},{iterateKeys:function(a){return new e(a,"keys")}})},45323:function(o,v,t){"use strict";var r=t(92390),e=t(34965);r({target:"Object",stat:!0,forced:!0},{iterateValues:function(a){return new e(a,"values")}})},88848:function(o,v,t){"use strict";var r=t(92390),e=t(11550),n=t(3877),a=t(77001),s=t(61575),i=t(99972),u=t(49064),c=t(55893),f=t(87707),l=t(15287),d=t(56628),p=t(67205),h=t(89990),y=t(15023),m=t(34419),O=t(67936),S=t(9930),E=O("observable"),I="Observable",A="Subscription",x="SubscriptionObserver",b=S.getterFor,R=S.set,U=b(I),C=b(A),G=b(x),N=function(Q){this.observer=i(Q),this.cleanup=void 0,this.subscriptionObserver=void 0};N.prototype={type:A,clean:function(){var Q=this.cleanup;if(Q){this.cleanup=void 0;try{Q()}catch(M){m(M)}}},close:function(){if(!n){var Q=this.facade,M=this.subscriptionObserver;Q.closed=!0,M&&(M.closed=!0)}this.observer=void 0},isClosed:function(){return this.observer===void 0}};var J=function(Q,M){var L=R(this,new N(Q)),j;n||(this.closed=!1);try{(j=d(Q,"start"))&&e(j,Q,this)}catch(it){m(it)}if(!L.isClosed()){var P=L.subscriptionObserver=new k(L);try{var F=M(P),rt=F;f(F)||(L.cleanup=c(F.unsubscribe)?function(){rt.unsubscribe()}:s(F))}catch(it){P.error(it);return}L.isClosed()&&L.clean()}};J.prototype=h({},{unsubscribe:function(){var M=C(this);M.isClosed()||(M.close(),M.clean())}}),n&&y(J.prototype,"closed",{configurable:!0,get:function(){return C(this).isClosed()}});var k=function(Q){R(this,{type:x,subscriptionState:Q}),n||(this.closed=!1)};k.prototype=h({},{next:function(M){var L=G(this).subscriptionState;if(!L.isClosed()){var j=L.observer;try{var P=d(j,"next");P&&e(P,j,M)}catch(F){m(F)}}},error:function(M){var L=G(this).subscriptionState;if(!L.isClosed()){var j=L.observer;L.close();try{var P=d(j,"error");P?e(P,j,M):m(M)}catch(F){m(F)}L.clean()}},complete:function(){var M=G(this).subscriptionState;if(!M.isClosed()){var L=M.observer;M.close();try{var j=d(L,"complete");j&&e(j,L)}catch(P){m(P)}M.clean()}}}),n&&y(k.prototype,"closed",{configurable:!0,get:function(){return G(this).subscriptionState.isClosed()}});var tt=function(M){u(this,q),R(this,{type:I,subscriber:s(M)})},q=tt.prototype;h(q,{subscribe:function(M){var L=arguments.length;return new J(c(M)?{next:M,error:L>1?arguments[1]:void 0,complete:L>2?arguments[2]:void 0}:l(M)?M:{},U(this).subscriber)}}),p(q,E,function(){return this}),r({global:!0,constructor:!0,forced:!0},{Observable:tt}),a(I)},90508:function(o,v,t){"use strict";var r=t(92390),e=t(51570),n=t(11550),a=t(99972),s=t(25434),i=t(43159),u=t(56628),c=t(82003),f=t(67936),l=f("observable");r({target:"Observable",stat:!0,forced:!0},{from:function(p){var h=s(this)?this:e("Observable"),y=u(a(p),l);if(y){var m=a(n(y,p));return m.constructor===h?m:new h(function(S){return m.subscribe(S)})}var O=i(p);return new h(function(S){c(O,function(E,I){if(S.next(E),S.closed)return I()},{IS_ITERATOR:!0,INTERRUPTED:!0}),S.complete()})}})},7975:function(o,v,t){"use strict";t(88848),t(90508),t(95273)},95273:function(o,v,t){"use strict";var r=t(92390),e=t(51570),n=t(25434),a=e("Array");r({target:"Observable",stat:!0,forced:!0},{of:function(){for(var i=n(this)?this:e("Observable"),u=arguments.length,c=a(u),f=0;f?@[\\\\\\]^`{|}~"+a+"]","g");r({target:"RegExp",stat:!0,forced:!0},{escape:function(f){var l=n(f),d=s(l,0);return(d>47&&d<58?"\\x3":"")+i(l,u,"\\$&")}})},54370:function(o,v,t){"use strict";var r=t(92390),e=t(77085),n=t(17276).add;r({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var s=e(this),i=0,u=arguments.length;i1?arguments[1]:void 0);return a(u,function(f){if(!c(f,f,u))return!1},!0)!==!1}})},75397:function(o,v,t){"use strict";var r=t(92390),e=t(45898),n=t(77085),a=t(17276),s=t(90051),i=a.Set,u=a.add;r({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(f){var l=n(this),d=e(f,arguments.length>1?arguments[1]:void 0),p=new i;return s(l,function(h){d(h,h,l)&&u(p,h)}),p}})},18829:function(o,v,t){"use strict";var r=t(92390),e=t(45898),n=t(77085),a=t(90051);r({target:"Set",proto:!0,real:!0,forced:!0},{find:function(i){var u=n(this),c=e(i,arguments.length>1?arguments[1]:void 0),f=a(u,function(l){if(c(l,l,u))return{value:l}},!0);return f&&f.value}})},60064:function(o,v,t){"use strict";var r=t(92390),e=t(54892);r({target:"Set",stat:!0,forced:!0},{from:e})},51429:function(o,v,t){"use strict";var r=t(92390),e=t(11550),n=t(60126),a=t(72698);r({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(i){return e(a,this,n(i))}})},95498:function(o,v,t){"use strict";var r=t(92390),e=t(5306),n=t(72698),a=t(90677),s=!a("intersection")||e(function(){return Array.from(new Set([1,2,3]).intersection(new Set([3,2])))!=="3,2"});r({target:"Set",proto:!0,real:!0,forced:s},{intersection:n})},25376:function(o,v,t){"use strict";var r=t(92390),e=t(11550),n=t(60126),a=t(51818);r({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(i){return e(a,this,n(i))}})},61842:function(o,v,t){"use strict";var r=t(92390),e=t(51818),n=t(90677);r({target:"Set",proto:!0,real:!0,forced:!n("isDisjointFrom")},{isDisjointFrom:e})},95864:function(o,v,t){"use strict";var r=t(92390),e=t(11550),n=t(60126),a=t(76153);r({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(i){return e(a,this,n(i))}})},38333:function(o,v,t){"use strict";var r=t(92390),e=t(76153),n=t(90677);r({target:"Set",proto:!0,real:!0,forced:!n("isSubsetOf")},{isSubsetOf:e})},94565:function(o,v,t){"use strict";var r=t(92390),e=t(11550),n=t(60126),a=t(58816);r({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(i){return e(a,this,n(i))}})},63990:function(o,v,t){"use strict";var r=t(92390),e=t(58816),n=t(90677);r({target:"Set",proto:!0,real:!0,forced:!n("isSupersetOf")},{isSupersetOf:e})},95073:function(o,v,t){"use strict";var r=t(92390),e=t(46406),n=t(77085),a=t(90051),s=t(42755),i=e([].join),u=e([].push);r({target:"Set",proto:!0,real:!0,forced:!0},{join:function(f){var l=n(this),d=f===void 0?",":s(f),p=[];return a(l,function(h){u(p,h)}),i(p,d)}})},65204:function(o,v,t){"use strict";var r=t(92390),e=t(45898),n=t(77085),a=t(17276),s=t(90051),i=a.Set,u=a.add;r({target:"Set",proto:!0,real:!0,forced:!0},{map:function(f){var l=n(this),d=e(f,arguments.length>1?arguments[1]:void 0),p=new i;return s(l,function(h){u(p,d(h,h,l))}),p}})},75478:function(o,v,t){"use strict";var r=t(92390),e=t(47819);r({target:"Set",stat:!0,forced:!0},{of:e})},47072:function(o,v,t){"use strict";var r=t(92390),e=t(61575),n=t(77085),a=t(90051),s=TypeError;r({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(u){var c=n(this),f=arguments.length<2,l=f?void 0:arguments[1];if(e(u),a(c,function(d){f?(f=!1,l=d):l=u(l,d,d,c)}),f)throw new s("Reduce of empty set with no initial value");return l}})},98391:function(o,v,t){"use strict";var r=t(92390),e=t(45898),n=t(77085),a=t(90051);r({target:"Set",proto:!0,real:!0,forced:!0},{some:function(i){var u=n(this),c=e(i,arguments.length>1?arguments[1]:void 0);return a(u,function(f){if(c(f,f,u))return!0},!0)===!0}})},22727:function(o,v,t){"use strict";var r=t(92390),e=t(11550),n=t(60126),a=t(35146);r({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(i){return e(a,this,n(i))}})},24338:function(o,v,t){"use strict";var r=t(92390),e=t(35146),n=t(90677);r({target:"Set",proto:!0,real:!0,forced:!n("symmetricDifference")},{symmetricDifference:e})},19647:function(o,v,t){"use strict";var r=t(92390),e=t(11550),n=t(60126),a=t(88534);r({target:"Set",proto:!0,real:!0,forced:!0},{union:function(i){return e(a,this,n(i))}})},2002:function(o,v,t){"use strict";var r=t(92390),e=t(88534),n=t(90677);r({target:"Set",proto:!0,real:!0,forced:!n("union")},{union:e})},36736:function(o,v,t){"use strict";var r=t(92390),e=t(48373).charAt,n=t(46762),a=t(15930),s=t(42755);r({target:"String",proto:!0,forced:!0},{at:function(u){var c=s(n(this)),f=c.length,l=a(u),d=l>=0?l:f+l;return d<0||d>=f?void 0:e(c,d)}})},2309:function(o,v,t){"use strict";var r=t(92390),e=t(23691),n=t(64160),a=t(46762),s=t(42755),i=t(9930),u=t(48373),c=u.codeAt,f=u.charAt,l="String Iterator",d=i.set,p=i.getterFor(l),h=e(function(m){d(this,{type:l,string:m,index:0})},"String",function(){var m=p(this),O=m.string,S=m.index,E;return S>=O.length?n(void 0,!0):(E=f(O,S),m.index+=E.length,n({codePoint:c(E,0),position:S},!1))});r({target:"String",proto:!0,forced:!0},{codePoints:function(){return new h(s(a(this)))}})},34602:function(o,v,t){"use strict";var r=t(92390),e=t(54231);r({target:"String",stat:!0,forced:!0},{cooked:e})},95746:function(o,v,t){"use strict";var r=t(87766),e=t(92390),n=t(73911),a=t(46406),s=t(56415),i=t(99972),u=t(85864),c=t(55893),f=t(19969),l=t(27144).f,d=t(27665),p=t(83614),h=t(54231),y=t(5340),m=t(77880),O=new p.WeakMap,S=p.get,E=p.has,I=p.set,A=Array,x=TypeError,b=Object.freeze||Object,R=Object.isFrozen,U=Math.min,C=a("".charAt),G=a("".slice),N=a("".split),J=a(/./.exec),k=/([\n\u2028\u2029]|\r\n?)/g,tt=RegExp("^["+m+"]*"),q=RegExp("[^"+m+"]"),Q="Invalid tag",M="Invalid opening line",L="Invalid closing line",j=function($){var H=$.raw;if(r&&!R(H))throw new x("Raw template should be frozen");if(E(O,H))return S(O,H);var nt=P(H),yt=rt(nt);return l(yt,"raw",{value:b(nt)}),b(yt),I(O,H,yt),yt},P=function($){var H=u($),nt=f(H),yt=A(nt),vt=A(nt),It=0,Tt,Ft,Ht,Ut;if(!nt)throw new x(Q);for(;It0)throw new x(M);Tt[1]=""}if(fr){if(Tt.length===1||J(q,Tt[Tt.length-1]))throw new x(L);Tt[Tt.length-2]="",Tt[Tt.length-1]=""}for(var rr=2;rr1?arguments[1]:void 0);return n(this,c)},!0)},69904:function(o,v,t){"use strict";var r=t(70562),e=t(96767).filterReject,n=t(3884),a=r.aTypedArray,s=r.exportTypedArrayMethod;s("filterReject",function(u){var c=e(a(this),u,arguments.length>1?arguments[1]:void 0);return n(this,c)},!0)},33822:function(o,v,t){"use strict";var r=t(51570),e=t(87329),n=t(62170),a=t(70562),s=t(61837),i=a.aTypedArrayConstructor,u=a.exportTypedArrayStaticMethod;u("fromAsync",function(f){var l=this,d=arguments.length,p=d>1?arguments[1]:void 0,h=d>2?arguments[2]:void 0;return new(r("Promise"))(function(y){e(l),y(n(f,p,h))}).then(function(y){return s(i(l),y)})},!0)},27340:function(o,v,t){"use strict";var r=t(70562),e=t(87624),n=t(37149),a=r.aTypedArray,s=r.exportTypedArrayMethod;s("groupBy",function(u){var c=arguments.length>1?arguments[1]:void 0;return e(a(this),u,c,n)},!0)},39475:function(o,v,t){"use strict";var r=t(70562),e=t(19969),n=t(9843),a=t(29961),s=t(65770),i=t(15930),u=t(5306),c=r.aTypedArray,f=r.getTypedArrayConstructor,l=r.exportTypedArrayMethod,d=Math.max,p=Math.min,h=!u(function(){var y=new Int8Array([1]),m=y.toSpliced(1,0,{valueOf:function(){return y[0]=2,3}});return m[0]!==2||m[1]!==3});l("toSpliced",function(m,O){var S=c(this),E=f(S),I=e(S),A=a(m,I),x=arguments.length,b=0,R,U,C,G,N,J,k;if(x===0)R=U=0;else if(x===1)R=0,U=I-A;else if(U=p(d(i(O),0),I-A),R=x-2,R){G=new E(R),C=n(G);for(var tt=2;tt1?a(arguments[1]):void 0,R=f(b)==="base64"?l:d,U=b?!!b.strict:!1,C=U?x:m(x,E,"");if(C.length%4===0)O(C,-2)==="=="?C=O(C,0,-2):O(C,-1)==="="&&(C=O(C,0,-1));else if(U)throw new h("Input is not correctly padded");var G=C.length%4;switch(G){case 1:throw new h("Bad input length");case 2:C+="AA";break;case 3:C+="A"}for(var N=[],J=0,k=C.length,tt=function(M){var L=y(C,J+M);if(!i(R,L))throw new h('Bad char in input: "'+L+'"');return R[L]<<18-6*M};J>16&255,q>>8&255,q&255)}var Q=N.length;if(G===2){if(U&&N[Q-2]!==0)throw new h(I);Q-=2}else if(G===3){if(U&&N[Q-1]!==0)throw new h(I);Q--}return u(p,N,Q)}})},33247:function(o,v,t){"use strict";var r=t(92390),e=t(77802),n=t(46406),a=t(35561),s=e.Uint8Array,i=e.SyntaxError,u=e.parseInt,c=/[^\da-f]/i,f=n(c.exec),l=n("".slice);s&&r({target:"Uint8Array",stat:!0,forced:!0},{fromHex:function(p){a(p);var h=p.length;if(h%2)throw new i("String should have an even number of characters");if(f(c,p))throw new i("String should only contain hex characters");for(var y=new s(h/2),m=0;m>6*x&63)};S+21&&!l(arguments[1])?y(arguments[1]):void 0,lt=Ot?Ot.transfer:void 0,Ct,dt;lt!==void 0&&(Ct=new j,dt=St(lt,Ct));var Wt=st(ut,Ct);return dt&&At(dt),Wt}})},19875:function(o,v,t){"use strict";var r=t(67205),e=t(46406),n=t(42755),a=t(7443),s=URLSearchParams,i=s.prototype,u=e(i.append),c=e(i.delete),f=e(i.forEach),l=e([].push),d=new s("a=1&a=2&b=3");d.delete("a",1),d.delete("b",void 0),d+""!="a=2"&&r(i,"delete",function(p){var h=arguments.length,y=h<2?void 0:arguments[1];if(h&&y===void 0)return c(this,p);var m=[];f(this,function(R,U){l(m,{key:U,value:R})}),a(h,1);for(var O=n(p),S=n(y),E=0,I=0,A=!1,x=m.length,b;E=0)&&(ot[Pt]=W[Pt]);return ot}function s(W,et){if(W==null)return{};var ot=a(W,et),pt,Pt;if(Object.getOwnPropertySymbols){var Dt=Object.getOwnPropertySymbols(W);for(Pt=0;Pt=0)&&Object.prototype.propertyIsEnumerable.call(W,pt)&&(ot[pt]=W[pt])}return ot}function i(W,et){return u(W)||c(W,et)||f(W,et)||d()}function u(W){if(Array.isArray(W))return W}function c(W,et){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(W)))){var ot=[],pt=!0,Pt=!1,Dt=void 0;try{for(var qt=W[Symbol.iterator](),ur;!(pt=(ur=qt.next()).done)&&(ot.push(ur.value),!(et&&ot.length===et));pt=!0);}catch(hr){Pt=!0,Dt=hr}finally{try{!pt&&qt.return!=null&&qt.return()}finally{if(Pt)throw Dt}}return ot}}function f(W,et){if(W){if(typeof W=="string")return l(W,et);var ot=Object.prototype.toString.call(W).slice(8,-1);if(ot==="Object"&&W.constructor&&(ot=W.constructor.name),ot==="Map"||ot==="Set")return Array.from(W);if(ot==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ot))return l(W,et)}}function l(W,et){(et==null||et>W.length)&&(et=W.length);for(var ot=0,pt=new Array(et);ot=W.length?W.apply(this,Pt):function(){for(var qt=arguments.length,ur=new Array(qt),hr=0;hr1&&arguments[1]!==void 0?arguments[1]:{};J.initial(W),J.handler(et);var ot={current:W},pt=O(Q)(ot,et),Pt=O(q)(ot),Dt=O(J.changes)(W),qt=O(tt)(ot);function ur(){var Er=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(Xr){return Xr};return J.selector(Er),Er(ot.current)}function hr(Er){m(pt,Pt,Dt,qt)(Er)}return[ur,hr]}function tt(W,et){return I(et)?et(W.current):et}function q(W,et){return W.current=y(y({},W.current),et),et}function Q(W,et,ot){return I(et)?et(W.current):Object.keys(ot).forEach(function(pt){var Pt;return(Pt=et[pt])===null||Pt===void 0?void 0:Pt.call(et,W.current[pt])}),ot}var M={create:k},L=M,j={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}},P=j;function F(W){return function et(){for(var ot=this,pt=arguments.length,Pt=new Array(pt),Dt=0;Dt=W.length?W.apply(this,Pt):function(){for(var qt=arguments.length,ur=new Array(qt),hr=0;hr{pt.current=!1}:W,et)}var vr=he;function Kr(){}function Nr(W,et,ot,pt){return be(W,pt)||ae(W,et,ot,pt)}function be(W,et){return W.editor.getModel(Zr(W,et))}function ae(W,et,ot,pt){return W.editor.createModel(et,ot,pt?Zr(W,pt):void 0)}function Zr(W,et){return W.Uri.parse(et)}function oe({original:W,modified:et,language:ot,originalLanguage:pt,modifiedLanguage:Pt,originalModelPath:Dt,modifiedModelPath:qt,keepCurrentOriginalModel:ur=!1,keepCurrentModifiedModel:hr=!1,theme:Er="light",loading:Xr="Loading...",options:Lr={},height:Ae="100%",width:Te="100%",className:Re,wrapperProps:Pe={},beforeMount:Ce=Kr,onMount:we=Kr}){let[Ir,se]=(0,lt.useState)(!1),[Hr,yr]=(0,lt.useState)(!0),mr=(0,lt.useRef)(null),ir=(0,lt.useRef)(null),ue=(0,lt.useRef)(null),Sr=(0,lt.useRef)(we),Xt=(0,lt.useRef)(Ce),Qr=(0,lt.useRef)(!1);Mr(()=>{let Bt=Ot.init();return Bt.then(_t=>(ir.current=_t)&&yr(!1)).catch(_t=>(_t==null?void 0:_t.type)!=="cancelation"&&console.error("Monaco initialization: error:",_t)),()=>mr.current?ie():Bt.cancel()}),vr(()=>{if(mr.current&&ir.current){let Bt=mr.current.getOriginalEditor(),_t=Nr(ir.current,W||"",pt||ot||"text",Dt||"");_t!==Bt.getModel()&&Bt.setModel(_t)}},[Dt],Ir),vr(()=>{if(mr.current&&ir.current){let Bt=mr.current.getModifiedEditor(),_t=Nr(ir.current,et||"",Pt||ot||"text",qt||"");_t!==Bt.getModel()&&Bt.setModel(_t)}},[qt],Ir),vr(()=>{let Bt=mr.current.getModifiedEditor();Bt.getOption(ir.current.editor.EditorOption.readOnly)?Bt.setValue(et||""):et!==Bt.getValue()&&(Bt.executeEdits("",[{range:Bt.getModel().getFullModelRange(),text:et||"",forceMoveMarkers:!0}]),Bt.pushUndoStop())},[et],Ir),vr(()=>{var Bt,_t;(_t=(Bt=mr.current)==null?void 0:Bt.getModel())==null||_t.original.setValue(W||"")},[W],Ir),vr(()=>{let{original:Bt,modified:_t}=mr.current.getModel();ir.current.editor.setModelLanguage(Bt,pt||ot||"text"),ir.current.editor.setModelLanguage(_t,Pt||ot||"text")},[ot,pt,Pt],Ir),vr(()=>{var Bt;(Bt=ir.current)==null||Bt.editor.setTheme(Er)},[Er],Ir),vr(()=>{var Bt;(Bt=mr.current)==null||Bt.updateOptions(Lr)},[Lr],Ir);let ye=(0,lt.useCallback)(()=>{var Br;if(!ir.current)return;Xt.current(ir.current);let Bt=Nr(ir.current,W||"",pt||ot||"text",Dt||""),_t=Nr(ir.current,et||"",Pt||ot||"text",qt||"");(Br=mr.current)==null||Br.setModel({original:Bt,modified:_t})},[ot,et,Pt,W,pt,Dt,qt]),ge=(0,lt.useCallback)(()=>{var Bt;!Qr.current&&ue.current&&(mr.current=ir.current.editor.createDiffEditor(ue.current,ne({automaticLayout:!0},Lr)),ye(),(Bt=ir.current)==null||Bt.editor.setTheme(Er),se(!0),Qr.current=!0)},[Lr,Er,ye]);(0,lt.useEffect)(()=>{Ir&&Sr.current(mr.current,ir.current)},[Ir]),(0,lt.useEffect)(()=>{!Hr&&!Ir&&ge()},[Hr,Ir,ge]);function ie(){var _t,Br,kr,fe;let Bt=(_t=mr.current)==null?void 0:_t.getModel();ur||((Br=Bt==null?void 0:Bt.original)==null||Br.dispose()),hr||((kr=Bt==null?void 0:Bt.modified)==null||kr.dispose()),(fe=mr.current)==null||fe.dispose()}return lt.createElement(Yr,{width:Te,height:Ae,isEditorReady:Ir,loading:Xr,_ref:ue,className:Re,wrapperProps:Pe})}var bt=oe,ht=(0,lt.memo)(bt);function Et(){let[W,et]=Ie(ce.__getMonacoInstance());return Mr(()=>{let ot;return W||(ot=ce.init(),ot.then(pt=>{et(pt)})),()=>ot==null?void 0:ot.cancel()}),W}var Mt=null;function $t(W){let et=(0,lt.useRef)();return(0,lt.useEffect)(()=>{et.current=W},[W]),et.current}var Lt=$t,kt=new Map;function pr({defaultValue:W,defaultLanguage:et,defaultPath:ot,value:pt,language:Pt,path:Dt,theme:qt="light",line:ur,loading:hr="Loading...",options:Er={},overrideServices:Xr={},saveViewState:Lr=!0,keepCurrentModel:Ae=!1,width:Te="100%",height:Re="100%",className:Pe,wrapperProps:Ce={},beforeMount:we=Kr,onMount:Ir=Kr,onChange:se,onValidate:Hr=Kr}){let[yr,mr]=(0,lt.useState)(!1),[ir,ue]=(0,lt.useState)(!0),Sr=(0,lt.useRef)(null),Xt=(0,lt.useRef)(null),Qr=(0,lt.useRef)(null),ye=(0,lt.useRef)(Ir),ge=(0,lt.useRef)(we),ie=(0,lt.useRef)(),Bt=(0,lt.useRef)(pt),_t=Lt(Dt),Br=(0,lt.useRef)(!1),kr=(0,lt.useRef)(!1);Mr(()=>{let zt=Ot.init();return zt.then(tr=>(Sr.current=tr)&&ue(!1)).catch(tr=>(tr==null?void 0:tr.type)!=="cancelation"&&console.error("Monaco initialization: error:",tr)),()=>Xt.current?en():zt.cancel()}),vr(()=>{var tr,Ar,le,qr;let zt=Nr(Sr.current,W||pt||"",et||Pt||"",Dt||ot||"");zt!==((tr=Xt.current)==null?void 0:tr.getModel())&&(Lr&&kt.set(_t,(Ar=Xt.current)==null?void 0:Ar.saveViewState()),(le=Xt.current)==null||le.setModel(zt),Lr&&((qr=Xt.current)==null||qr.restoreViewState(kt.get(Dt))))},[Dt],yr),vr(()=>{var zt;(zt=Xt.current)==null||zt.updateOptions(Er)},[Er],yr),vr(()=>{!Xt.current||pt===void 0||(Xt.current.getOption(Sr.current.editor.EditorOption.readOnly)?Xt.current.setValue(pt):pt!==Xt.current.getValue()&&(kr.current=!0,Xt.current.executeEdits("",[{range:Xt.current.getModel().getFullModelRange(),text:pt,forceMoveMarkers:!0}]),Xt.current.pushUndoStop(),kr.current=!1))},[pt],yr),vr(()=>{var tr,Ar;let zt=(tr=Xt.current)==null?void 0:tr.getModel();zt&&Pt&&((Ar=Sr.current)==null||Ar.editor.setModelLanguage(zt,Pt))},[Pt],yr),vr(()=>{var zt;ur!==void 0&&((zt=Xt.current)==null||zt.revealLine(ur))},[ur],yr),vr(()=>{var zt;(zt=Sr.current)==null||zt.editor.setTheme(qt)},[qt],yr);let fe=(0,lt.useCallback)(()=>{var zt;if(!(!Qr.current||!Sr.current)&&!Br.current){ge.current(Sr.current);let tr=Dt||ot,Ar=Nr(Sr.current,pt||W||"",et||Pt||"",tr||"");Xt.current=(zt=Sr.current)==null?void 0:zt.editor.create(Qr.current,ne({model:Ar,automaticLayout:!0},Er),Xr),Lr&&Xt.current.restoreViewState(kt.get(tr)),Sr.current.editor.setTheme(qt),ur!==void 0&&Xt.current.revealLine(ur),mr(!0),Br.current=!0}},[W,et,ot,pt,Pt,Dt,Er,Xr,Lr,qt,ur]);(0,lt.useEffect)(()=>{yr&&ye.current(Xt.current,Sr.current)},[yr]),(0,lt.useEffect)(()=>{!ir&&!yr&&fe()},[ir,yr,fe]),Bt.current=pt,(0,lt.useEffect)(()=>{var zt,tr;yr&&se&&((zt=ie.current)==null||zt.dispose(),ie.current=(tr=Xt.current)==null?void 0:tr.onDidChangeModelContent(Ar=>{kr.current||se(Xt.current.getValue(),Ar)}))},[yr,se]),(0,lt.useEffect)(()=>{if(yr){let zt=Sr.current.editor.onDidChangeMarkers(tr=>{var le;let Ar=(le=Xt.current.getModel())==null?void 0:le.uri;if(Ar&&tr.find(qr=>qr.path===Ar.path)){let qr=Sr.current.editor.getModelMarkers({resource:Ar});Hr==null||Hr(qr)}});return()=>{zt==null||zt.dispose()}}return()=>{}},[yr,Hr]);function en(){var zt,tr;(zt=ie.current)==null||zt.dispose(),Ae?Lr&&kt.set(Dt,Xt.current.saveViewState()):(tr=Xt.current.getModel())==null||tr.dispose(),Xt.current.dispose()}return lt.createElement(Yr,{width:Te,height:Re,isEditorReady:yr,loading:hr,_ref:Qr,className:Pe,wrapperProps:Ce})}var gr=pr,$r=(0,lt.memo)(gr),jr=$r},88610:function(o,v,t){"use strict";t.d(v,{Z:function(){return r}});function r(){return r=Object.assign?Object.assign.bind():function(e){for(var n=1;n=0)&&(s[u]=n[u]);return s}function e(n,a){if(n==null)return{};var s=r(n,a),i,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(n);for(u=0;u=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(s[i]=n[i])}return s}}},Or={};function g(o){var v=Or[o];if(v!==void 0)return v.exports;var t=Or[o]={id:o,loaded:!1,exports:{}};return Rr[o].call(t.exports,t,t.exports,g),t.loaded=!0,t.exports}g.m=Rr,function(){g.n=function(o){var v=o&&o.__esModule?function(){return o.default}:function(){return o};return g.d(v,{a:v}),v}}(),function(){g.d=function(o,v){for(var t in v)g.o(v,t)&&!g.o(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:v[t]})}}(),function(){g.f={},g.e=function(o){return Promise.all(Object.keys(g.f).reduce(function(v,t){return g.f[t](o,v),v},[]))}}(),function(){g.u=function(o){return""+({18:"p__Docs__index",49:"p__Preview__Template",248:"p__Case__index",371:"p__Home__index",462:"layouts__Map",532:"p__Project__New",623:"p__Builder__index",624:"layouts__WorkSpace",717:"layouts__index",721:"p__Project__index",921:"p__AssetMarket__index",944:"p__Preview__App"}[o]||o)+"."+{18:"18f59cd1",22:"4b25dfec",27:"bf5ed734",49:"8c0ba802",90:"cceb899f",248:"331f4f99",371:"dc6d27ca",415:"d328352a",462:"9c22ad79",486:"74a27100",527:"8796b3f7",532:"0eb764a1",533:"6c75b745",575:"73a866df",623:"aff38dbd",624:"c626b5bc",632:"61acca0b",653:"b173ad49",666:"aa3e79cf",697:"6a1839dc",706:"1444e281",717:"55480e25",721:"a7672fdc",757:"95dfa340",781:"84da0ba1",795:"a62f37dd",831:"797bc60f",921:"99143dcb",944:"7abfbb4b"}[o]+".async.js"}}(),function(){g.miniCssF=function(o){return""+({18:"p__Docs__index",49:"p__Preview__Template",371:"p__Home__index",623:"p__Builder__index",624:"layouts__WorkSpace",721:"p__Project__index",921:"p__AssetMarket__index",944:"p__Preview__App"}[o]||o)+"."+{18:"5fcb1db2",49:"37d7985c",371:"802b2a5e",575:"1b719830",623:"bc8f1eb1",624:"45a16990",697:"1b719830",721:"9e9fbf42",757:"1b719830",781:"fdfb64c8",921:"a7c44a91",944:"ffe853a3"}[o]+".chunk.css"}}(),function(){g.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(o){if(typeof window=="object")return window}}()}(),function(){g.hmd=function(o){return o=Object.create(o),o.children||(o.children=[]),Object.defineProperty(o,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+o.id)}}),o}}(),function(){g.o=function(o,v){return Object.prototype.hasOwnProperty.call(o,v)}}(),function(){var o={},v="@antv/li-website:";g.l=function(t,r,e,n){if(o[t]){o[t].push(r);return}var a,s;if(e!==void 0)for(var i=document.getElementsByTagName("script"),u=0;uw.length)&&(B=w.length);for(var X=0,z=new Array(B);X0&&arguments[0]!==void 0?arguments[0]:"";return w.endsWith("/")?w:"".concat(w,"/")}var jn=g(44240),Ln=g(88610),on=Nt().createContext(void 0);function Dn(){return Nt().useContext(on)}var Nn=["redirect"];function sn(w){var B=w.routesById,X=w.parentId,z=w.routeComponents;return Object.keys(B).filter(function(ct){return B[ct].parentId===X}).map(function(ct){var gt=Bn(Vr({route:B[ct],routeComponent:z[ct],loadingComponent:w.loadingComponent,reactRouter5Compat:w.reactRouter5Compat},w.reactRouter5Compat&&{hasChildren:Object.keys(B).filter(function(xt){return B[xt].parentId===ct}).length>0})),mt=sn({routesById:B,routeComponents:z,parentId:gt.id,loadingComponent:w.loadingComponent,reactRouter5Compat:w.reactRouter5Compat});return mt.length>0&&(gt.children=mt,gt.routes=mt),gt})}function $n(w){var B=(0,Fr.UO)(),X=(0,Fr.Gn)(w.to,B),z=(0,je.T$)(),ct=(0,Fr.TH)();if(z!=null&&z.keepQuery){var gt=ct.search+ct.hash;X+=gt}var mt=Vr(Vr({},w),{},{to:X});return Nt().createElement(Fr.Fg,(0,Ln.Z)({replace:!0},mt))}function Bn(w){var B=w.route,X=B.redirect,z=(0,jn.Z)(B,Nn),ct=w.reactRouter5Compat?Un:Wn;return Vr({element:X?Nt().createElement($n,{to:X}):Nt().createElement(on.Provider,{value:{route:w.route}},Nt().createElement(ct,{loader:Nt().memo(w.routeComponent),loadingComponent:w.loadingComponent||Fn,hasChildren:w.hasChildren}))},z)}function Fn(){return Nt().createElement("div",null)}function Un(w){var B=Dn(),X=B.route,z=(0,je.Ov)(),ct=z.history,gt=z.clientRoutes,mt=(0,Fr.UO)(),xt={params:mt,isExact:!0,path:X.path,url:ct.location.pathname},wt=w.loader;return Nt().createElement(Nt().Suspense,{fallback:Nt().createElement(w.loadingComponent,null)},Nt().createElement(wt,{location:ct.location,match:xt,history:ct,params:mt,route:X,routes:gt},w.hasChildren&&Nt().createElement(Fr.j3,null)))}function Wn(w){var B=w.loader;return Nt().createElement(Nt().Suspense,{fallback:Nt().createElement(w.loadingComponent,null)},Nt().createElement(B,null))}var Ue=null;function _o(){return Ue}function Gn(w){var B=w.history,X=Nt().useState({action:B.action,location:B.location}),z=Fe(X,2),ct=z[0],gt=z[1];return(0,Dr.useLayoutEffect)(function(){return B.listen(gt)},[B]),(0,Dr.useLayoutEffect)(function(){function mt(xt){w.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:w.routes,clientRoutes:w.clientRoutes,location:xt.location,action:xt.action,basename:w.basename,isFirst:!!xt.isFirst}})}return mt({location:ct.location,action:ct.action,isFirst:!0}),B.listen(mt)},[B,w.routes,w.clientRoutes]),Nt().createElement(Fr.F0,{navigator:B,location:ct.location,basename:w.basename},w.children)}function Kn(){var w=(0,je.Ov)(),B=w.clientRoutes;return(0,Fr.V$)(B)}var Hn=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],Vn=function(B,X){var z=B.basename||"/",ct=sn({routesById:B.routes,routeComponents:B.routeComponents,loadingComponent:B.loadingComponent,reactRouter5Compat:B.reactRouter5Compat});B.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:ct}});for(var gt=Nt().createElement(Gn,{basename:z,pluginManager:B.pluginManager,routes:B.routes,clientRoutes:ct,history:B.history},X),mt=0,xt=Hn;mt=0||(ct[X]=w[X]);return ct}var jt={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},_n={rel:["amphtml","canonical","alternate"]},ta={type:["application/ld+json"]},ra={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},fn=Object.keys(jt).map(function(w){return jt[w]}),Le={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},ea=Object.keys(Le).reduce(function(w,B){return w[Le[B]]=B,w},{}),ve=function(w,B){for(var X=w.length-1;X>=0;X-=1){var z=w[X];if(Object.prototype.hasOwnProperty.call(z,B))return z[B]}return null},na=function(w){var B=ve(w,jt.TITLE),X=ve(w,"titleTemplate");if(Array.isArray(B)&&(B=B.join("")),X&&B)return X.replace(/%s/g,function(){return B});var z=ve(w,"defaultTitle");return B||z||void 0},aa=function(w){return ve(w,"onChangeClientState")||function(){}},He=function(w,B){return B.filter(function(X){return X[w]!==void 0}).map(function(X){return X[w]}).reduce(function(X,z){return ar({},X,z)},{})},oa=function(w,B){return B.filter(function(X){return X[jt.BASE]!==void 0}).map(function(X){return X[jt.BASE]}).reverse().reduce(function(X,z){if(!X.length)for(var ct=Object.keys(z),gt=0;gt/g,">").replace(/"/g,""").replace(/'/g,"'")},dn=function(w){return Object.keys(w).reduce(function(B,X){var z=w[X]!==void 0?X+'="'+w[X]+'"':""+X;return B?B+" "+z:z},"")},pn=function(w,B){return B===void 0&&(B={}),Object.keys(w).reduce(function(X,z){return X[Le[z]||z]=w[z],X},B)},De=function(w,B){return B.map(function(X,z){var ct,gt=((ct={key:z})["data-rh"]=!0,ct);return Object.keys(X).forEach(function(mt){var xt=Le[mt]||mt;xt==="innerHTML"||xt==="cssText"?gt.dangerouslySetInnerHTML={__html:X.innerHTML||X.cssText}:gt[xt]=X[mt]}),Nt().createElement(w,gt)})},wr=function(w,B,X){switch(w){case jt.TITLE:return{toComponent:function(){return ct=B.titleAttributes,(gt={key:z=B.title})["data-rh"]=!0,mt=pn(ct,gt),[Nt().createElement(jt.TITLE,mt,z)];var z,ct,gt,mt},toString:function(){return function(z,ct,gt,mt){var xt=dn(gt),wt=ln(ct);return xt?"<"+z+' data-rh="true" '+xt+">"+ze(wt,mt)+"":"<"+z+' data-rh="true">'+ze(wt,mt)+""}(w,B.title,B.titleAttributes,X)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return pn(B)},toString:function(){return dn(B)}};default:return{toComponent:function(){return De(w,B)},toString:function(){return function(z,ct,gt){return ct.reduce(function(mt,xt){var wt=Object.keys(xt).filter(function(Jt){return!(Jt==="innerHTML"||Jt==="cssText")}).reduce(function(Jt,Kt){var cr=xt[Kt]===void 0?Kt:Kt+'="'+ze(xt[Kt],gt)+'"';return Jt?Jt+" "+cr:cr},""),Vt=xt.innerHTML||xt.cssText||"",Yt=ua.indexOf(z)===-1;return mt+"<"+z+' data-rh="true" '+wt+(Yt?"/>":">"+Vt+"")},"")}(w,B,X)}}}},Ye=function(w){var B=w.baseTag,X=w.bodyAttributes,z=w.encode,ct=w.htmlAttributes,gt=w.noscriptTags,mt=w.styleTags,xt=w.title,wt=xt===void 0?"":xt,Vt=w.titleAttributes,Yt=w.linkTags,Jt=w.metaTags,Kt=w.scriptTags,cr={toComponent:function(){},toString:function(){return""}};if(w.prioritizeSeoTags){var xr=function(nr){var Tr=nr.linkTags,Ur=nr.scriptTags,_r=nr.encode,te=Ve(nr.metaTags,ra),re=Ve(Tr,_n),Ee=Ve(Ur,ta);return{priorityMethods:{toComponent:function(){return[].concat(De(jt.META,te.priority),De(jt.LINK,re.priority),De(jt.SCRIPT,Ee.priority))},toString:function(){return wr(jt.META,te.priority,_r)+" "+wr(jt.LINK,re.priority,_r)+" "+wr(jt.SCRIPT,Ee.priority,_r)}},metaTags:te.default,linkTags:re.default,scriptTags:Ee.default}}(w);cr=xr.priorityMethods,Yt=xr.linkTags,Jt=xr.metaTags,Kt=xr.scriptTags}return{priority:cr,base:wr(jt.BASE,B,z),bodyAttributes:wr("bodyAttributes",X,z),htmlAttributes:wr("htmlAttributes",ct,z),link:wr(jt.LINK,Yt,z),meta:wr(jt.META,Jt,z),noscript:wr(jt.NOSCRIPT,gt,z),script:wr(jt.SCRIPT,Kt,z),style:wr(jt.STYLE,mt,z),title:wr(jt.TITLE,{title:wt,titleAttributes:Vt},z)}},Ne=[],Je=function(w,B){var X=this;B===void 0&&(B=typeof document!="undefined"),this.instances=[],this.value={setHelmet:function(z){X.context.helmet=z},helmetInstances:{get:function(){return X.canUseDOM?Ne:X.instances},add:function(z){(X.canUseDOM?Ne:X.instances).push(z)},remove:function(z){var ct=(X.canUseDOM?Ne:X.instances).indexOf(z);(X.canUseDOM?Ne:X.instances).splice(ct,1)}}},this.context=w,this.canUseDOM=B,B||(w.helmet=Ye({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},hn=Nt().createContext({}),ia=Gt().shape({setHelmet:Gt().func,helmetInstances:Gt().shape({get:Gt().func,add:Gt().func,remove:Gt().func})}),ca=typeof document!="undefined",de=function(w){function B(X){var z;return(z=w.call(this,X)||this).helmetData=new Je(z.props.context,B.canUseDOM),z}return Ge(B,w),B.prototype.render=function(){return Nt().createElement(hn.Provider,{value:this.helmetData.value},this.props.children)},B}(Dr.Component);de.canUseDOM=ca,de.propTypes={context:Gt().shape({helmet:Gt().shape()}),children:Gt().node.isRequired},de.defaultProps={context:{}},de.displayName="HelmetProvider";var pe=function(w,B){var X,z=document.head||document.querySelector(jt.HEAD),ct=z.querySelectorAll(w+"[data-rh]"),gt=[].slice.call(ct),mt=[];return B&&B.length&&B.forEach(function(xt){var wt=document.createElement(w);for(var Vt in xt)Object.prototype.hasOwnProperty.call(xt,Vt)&&(Vt==="innerHTML"?wt.innerHTML=xt.innerHTML:Vt==="cssText"?wt.styleSheet?wt.styleSheet.cssText=xt.cssText:wt.appendChild(document.createTextNode(xt.cssText)):wt.setAttribute(Vt,xt[Vt]===void 0?"":xt[Vt]));wt.setAttribute("data-rh","true"),gt.some(function(Yt,Jt){return X=Jt,wt.isEqualNode(Yt)})?gt.splice(X,1):mt.push(wt)}),gt.forEach(function(xt){return xt.parentNode.removeChild(xt)}),mt.forEach(function(xt){return z.appendChild(xt)}),{oldTags:gt,newTags:mt}},Ze=function(w,B){var X=document.getElementsByTagName(w)[0];if(X){for(var z=X.getAttribute("data-rh"),ct=z?z.split(","):[],gt=[].concat(ct),mt=Object.keys(B),xt=0;xt=0;Jt-=1)X.removeAttribute(gt[Jt]);ct.length===gt.length?X.removeAttribute("data-rh"):X.getAttribute("data-rh")!==mt.join(",")&&X.setAttribute("data-rh",mt.join(","))}},yn=function(w,B){var X=w.baseTag,z=w.htmlAttributes,ct=w.linkTags,gt=w.metaTags,mt=w.noscriptTags,xt=w.onChangeClientState,wt=w.scriptTags,Vt=w.styleTags,Yt=w.title,Jt=w.titleAttributes;Ze(jt.BODY,w.bodyAttributes),Ze(jt.HTML,z),function(nr,Tr){nr!==void 0&&document.title!==nr&&(document.title=ln(nr)),Ze(jt.TITLE,Tr)}(Yt,Jt);var Kt={baseTag:pe(jt.BASE,X),linkTags:pe(jt.LINK,ct),metaTags:pe(jt.META,gt),noscriptTags:pe(jt.NOSCRIPT,mt),scriptTags:pe(jt.SCRIPT,wt),styleTags:pe(jt.STYLE,Vt)},cr={},xr={};Object.keys(Kt).forEach(function(nr){var Tr=Kt[nr],Ur=Tr.newTags,_r=Tr.oldTags;Ur.length&&(cr[nr]=Ur),_r.length&&(xr[nr]=Kt[nr].oldTags)}),B&&B(),xt(w,cr,xr)},Se=null,$e=function(w){function B(){for(var z,ct=arguments.length,gt=new Array(ct),mt=0;mt elements are self-closing and can not contain children. Refer to our API for more information.")}},X.flattenArrayTypeChildren=function(z){var ct,gt=z.child,mt=z.arrayTypeChildren;return ar({},mt,((ct={})[gt.type]=[].concat(mt[gt.type]||[],[ar({},z.newChildProps,this.mapNestedChildrenToProps(gt,z.nestedChildren))]),ct))},X.mapObjectTypeChildren=function(z){var ct,gt,mt=z.child,xt=z.newProps,wt=z.newChildProps,Vt=z.nestedChildren;switch(mt.type){case jt.TITLE:return ar({},xt,((ct={})[mt.type]=Vt,ct.titleAttributes=ar({},wt),ct));case jt.BODY:return ar({},xt,{bodyAttributes:ar({},wt)});case jt.HTML:return ar({},xt,{htmlAttributes:ar({},wt)});default:return ar({},xt,((gt={})[mt.type]=ar({},wt),gt))}},X.mapArrayTypeChildrenToProps=function(z,ct){var gt=ar({},ct);return Object.keys(z).forEach(function(mt){var xt;gt=ar({},gt,((xt={})[mt]=z[mt],xt))}),gt},X.warnOnInvalidChildren=function(z,ct){return un()(fn.some(function(gt){return z.type===gt}),typeof z.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+fn.join(", ")+" are allowed. Helmet does not support rendering <"+z.type+"> elements. Refer to our API for more information."),un()(!ct||typeof ct=="string"||Array.isArray(ct)&&!ct.some(function(gt){return typeof gt!="string"}),"Helmet expects a string as a child of <"+z.type+">. Did you forget to wrap your children in braces? ( <"+z.type+">{``} ) Refer to our API for more information."),!0},X.mapChildrenToProps=function(z,ct){var gt=this,mt={};return Nt().Children.forEach(z,function(xt){if(xt&&xt.props){var wt=xt.props,Vt=wt.children,Yt=cn(wt,fa),Jt=Object.keys(Yt).reduce(function(cr,xr){return cr[ea[xr]||xr]=Yt[xr],cr},{}),Kt=xt.type;switch(typeof Kt=="symbol"?Kt=Kt.toString():gt.warnOnInvalidChildren(xt,Vt),Kt){case jt.FRAGMENT:ct=gt.mapChildrenToProps(Vt,ct);break;case jt.LINK:case jt.META:case jt.NOSCRIPT:case jt.SCRIPT:case jt.STYLE:mt=gt.flattenArrayTypeChildren({child:xt,arrayTypeChildren:mt,newChildProps:Jt,nestedChildren:Vt});break;default:ct=gt.mapObjectTypeChildren({child:xt,newProps:ct,newChildProps:Jt,nestedChildren:Vt})}}}),this.mapArrayTypeChildrenToProps(mt,ct)},X.render=function(){var z=this.props,ct=z.children,gt=cn(z,la),mt=ar({},gt),xt=gt.helmetData;return ct&&(mt=this.mapChildrenToProps(ct,mt)),!xt||xt instanceof Je||(xt=new Je(xt.context,xt.instances)),xt?Nt().createElement($e,ar({},mt,{context:xt.value,helmetData:void 0})):Nt().createElement(hn.Consumer,null,function(wt){return Nt().createElement($e,ar({},mt,{context:wt}))})},B}(Dr.Component);Xe.propTypes={base:Gt().object,bodyAttributes:Gt().object,children:Gt().oneOfType([Gt().arrayOf(Gt().node),Gt().node]),defaultTitle:Gt().string,defer:Gt().bool,encodeSpecialCharacters:Gt().bool,htmlAttributes:Gt().object,link:Gt().arrayOf(Gt().object),meta:Gt().arrayOf(Gt().object),noscript:Gt().arrayOf(Gt().object),onChangeClientState:Gt().func,script:Gt().arrayOf(Gt().object),style:Gt().arrayOf(Gt().object),title:Gt().string,titleAttributes:Gt().object,titleTemplate:Gt().string,prioritizeSeoTags:Gt().bool,helmetData:Gt().object},Xe.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},Xe.displayName="Helmet";var va={},da=function(B){return Nt().createElement(de,{context:va},B)},Oe=g(40795);function ts(w){return w.default?typeof w.default=="function"?w.default():w.default:w}function pa(){return[{apply:o,path:void 0}]}function ha(){return["patchRoutes","patchClientRoutes","modifyContextOpts","modifyClientRenderOpts","rootContainer","innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","render","onRouteChange"]}var Qe=null;function ya(){return Qe=Oe.Q$.create({plugins:pa(),validKeys:ha()}),Qe}function rs(){return Qe}var ga=g(82602),ma="/",xa=!1;function Sa(){return ke.apply(this,arguments)}function ke(){return ke=a()(t()().mark(function w(){var B,X,z,ct,gt,mt,xt,wt;return t()().wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:return B=ya(),Yt.next=3,Yn(B);case 3:return X=Yt.sent,z=X.routes,ct=X.routeComponents,Yt.next=8,B.applyPlugins({key:"patchRoutes",type:Oe.Ac.event,args:{routes:z,routeComponents:ct}});case 8:return gt=B.applyPlugins({key:"modifyContextOpts",type:Oe.Ac.modify,initialValue:{}}),mt=gt.basename||"/",xt=gt.historyType||"hash",wt=(0,ga.fi)(e()({type:xt,basename:mt},gt.historyOpts)),Yt.abrupt("return",B.applyPlugins({key:"render",type:Oe.Ac.compose,initialValue:function(){var Kt={routes:z,routeComponents:ct,pluginManager:B,rootElement:gt.rootElement||document.getElementById("root"),publicPath:ma,runtimePublicPath:xa,history:wt,historyType:xt,basename:mt,callback:gt.callback},cr=B.applyPlugins({key:"modifyClientRenderOpts",type:Oe.Ac.modify,initialValue:Kt});return zn(cr)}})());case 13:case"end":return Yt.stop()}},w)})),ke.apply(this,arguments)}Sa(),window.g_umi={version:"4.2.9"}})()})(); +}()); \ No newline at end of file diff --git a/umi.b350ea43.css b/umi.b350ea43.css new file mode 100644 index 00000000..1f01c876 --- /dev/null +++ b/umi.b350ea43.css @@ -0,0 +1 @@ +body ::-webkit-scrollbar{width:7px;height:7px;-webkit-appearance:none;appearance:none}body ::-webkit-scrollbar-thumb{background:#303030;border-radius:3px;cursor:pointer}body ::-webkit-scrollbar-thumb:hover{background-color:#434343}body ::-webkit-scrollbar-track{background:none;border-radius:0}#root{position:relative;width:100%;height:100%}.amap-copyright{display:none!important}